var RA=e=>{throw TypeError(e)};var ov=(e,t,n)=>t.has(e)||RA("Cannot "+n);var R=(e,t,n)=>(ov(e,t,"read from private field"),n?n.call(e):t.get(e)),ce=(e,t,n)=>t.has(e)?RA("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),te=(e,t,n,r)=>(ov(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ne=(e,t,n)=>(ov(e,t,"access private method"),n);var lh=(e,t,n,r)=>({set _(a){te(e,t,a,n)},get _(){return R(e,t,r)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var ch=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var WP={exports:{}},Ey={};/**
 * @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 Tz=Symbol.for("react.transitional.element"),Cz=Symbol.for("react.fragment");function XP(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:Tz,type:e,key:r,ref:t!==void 0?t:null,props:n}}Ey.Fragment=Cz;Ey.jsx=XP;Ey.jsxs=XP;WP.exports=Ey;var c=WP.exports,QP={exports:{}},xe={};/**
 * @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 mS=Symbol.for("react.transitional.element"),_z=Symbol.for("react.portal"),Pz=Symbol.for("react.fragment"),Mz=Symbol.for("react.strict_mode"),Rz=Symbol.for("react.profiler"),Dz=Symbol.for("react.consumer"),kz=Symbol.for("react.context"),$z=Symbol.for("react.forward_ref"),Lz=Symbol.for("react.suspense"),zz=Symbol.for("react.memo"),ZP=Symbol.for("react.lazy"),Iz=Symbol.for("react.activity"),DA=Symbol.iterator;function Bz(e){return e===null||typeof e!="object"?null:(e=DA&&e[DA]||e["@@iterator"],typeof e=="function"?e:null)}var JP={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},eM=Object.assign,tM={};function Cc(e,t,n){this.props=e,this.context=t,this.refs=tM,this.updater=n||JP}Cc.prototype.isReactComponent={};Cc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Cc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function nM(){}nM.prototype=Cc.prototype;function yS(e,t,n){this.props=e,this.context=t,this.refs=tM,this.updater=n||JP}var gS=yS.prototype=new nM;gS.constructor=yS;eM(gS,Cc.prototype);gS.isPureReactComponent=!0;var kA=Array.isArray;function Jb(){}var it={H:null,A:null,T:null,S:null},rM=Object.prototype.hasOwnProperty;function vS(e,t,n){var r=n.ref;return{$$typeof:mS,type:e,key:t,ref:r!==void 0?r:null,props:n}}function Uz(e,t){return vS(e.type,t,e.props)}function bS(e){return typeof e=="object"&&e!==null&&e.$$typeof===mS}function Fz(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var $A=/\/+/g;function lv(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Fz(""+e.key):t.toString(36)}function Vz(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Jb,Jb):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Vo(e,t,n,r,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case mS:case _z:s=!0;break;case ZP:return s=e._init,Vo(s(e._payload),t,n,r,a)}}if(s)return a=a(e),s=r===""?"."+lv(e,0):r,kA(a)?(n="",s!=null&&(n=s.replace($A,"$&/")+"/"),Vo(a,t,n,"",function(u){return u})):a!=null&&(bS(a)&&(a=Uz(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace($A,"$&/")+"/")+s)),t.push(a)),1;s=0;var o=r===""?".":r+":";if(kA(e))for(var l=0;l<e.length;l++)r=e[l],i=o+lv(r,l),s+=Vo(r,t,n,i,a);else if(l=Bz(e),typeof l=="function")for(e=l.call(e),l=0;!(r=e.next()).done;)r=r.value,i=o+lv(r,l++),s+=Vo(r,t,n,i,a);else if(i==="object"){if(typeof e.then=="function")return Vo(Vz(e),t,n,r,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return s}function uh(e,t,n){if(e==null)return e;var r=[],a=0;return Vo(e,r,"","",function(i){return t.call(n,i,a++)}),r}function Hz(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var LA=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},qz={map:uh,forEach:function(e,t,n){uh(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return uh(e,function(){t++}),t},toArray:function(e){return uh(e,function(t){return t})||[]},only:function(e){if(!bS(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};xe.Activity=Iz;xe.Children=qz;xe.Component=Cc;xe.Fragment=Pz;xe.Profiler=Rz;xe.PureComponent=yS;xe.StrictMode=Mz;xe.Suspense=Lz;xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=it;xe.__COMPILER_RUNTIME={__proto__:null,c:function(e){return it.H.useMemoCache(e)}};xe.cache=function(e){return function(){return e.apply(null,arguments)}};xe.cacheSignal=function(){return null};xe.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=eM({},e.props),a=e.key;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)!rM.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(r[i]=t[i]);var i=arguments.length-2;if(i===1)r.children=n;else if(1<i){for(var s=Array(i),o=0;o<i;o++)s[o]=arguments[o+2];r.children=s}return vS(e.type,a,r)};xe.createContext=function(e){return e={$$typeof:kz,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Dz,_context:e},e};xe.createElement=function(e,t,n){var r,a={},i=null;if(t!=null)for(r in t.key!==void 0&&(i=""+t.key),t)rM.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(a[r]=t[r]);var s=arguments.length-2;if(s===1)a.children=n;else if(1<s){for(var o=Array(s),l=0;l<s;l++)o[l]=arguments[l+2];a.children=o}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)a[r]===void 0&&(a[r]=s[r]);return vS(e,i,a)};xe.createRef=function(){return{current:null}};xe.forwardRef=function(e){return{$$typeof:$z,render:e}};xe.isValidElement=bS;xe.lazy=function(e){return{$$typeof:ZP,_payload:{_status:-1,_result:e},_init:Hz}};xe.memo=function(e,t){return{$$typeof:zz,type:e,compare:t===void 0?null:t}};xe.startTransition=function(e){var t=it.T,n={};it.T=n;try{var r=e(),a=it.S;a!==null&&a(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(Jb,LA)}catch(i){LA(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),it.T=t}};xe.unstable_useCacheRefresh=function(){return it.H.useCacheRefresh()};xe.use=function(e){return it.H.use(e)};xe.useActionState=function(e,t,n){return it.H.useActionState(e,t,n)};xe.useCallback=function(e,t){return it.H.useCallback(e,t)};xe.useContext=function(e){return it.H.useContext(e)};xe.useDebugValue=function(){};xe.useDeferredValue=function(e,t){return it.H.useDeferredValue(e,t)};xe.useEffect=function(e,t){return it.H.useEffect(e,t)};xe.useEffectEvent=function(e){return it.H.useEffectEvent(e)};xe.useId=function(){return it.H.useId()};xe.useImperativeHandle=function(e,t,n){return it.H.useImperativeHandle(e,t,n)};xe.useInsertionEffect=function(e,t){return it.H.useInsertionEffect(e,t)};xe.useLayoutEffect=function(e,t){return it.H.useLayoutEffect(e,t)};xe.useMemo=function(e,t){return it.H.useMemo(e,t)};xe.useOptimistic=function(e,t){return it.H.useOptimistic(e,t)};xe.useReducer=function(e,t,n){return it.H.useReducer(e,t,n)};xe.useRef=function(e){return it.H.useRef(e)};xe.useState=function(e){return it.H.useState(e)};xe.useSyncExternalStore=function(e,t,n){return it.H.useSyncExternalStore(e,t,n)};xe.useTransition=function(){return it.H.useTransition()};xe.version="19.2.7";QP.exports=xe;var A=QP.exports;const _=Ie(A);var aM={exports:{}},Ty={},iM={exports:{}},sM={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(M,L){var I=M.length;M.push(L);e:for(;0<I;){var F=I-1>>>1,q=M[F];if(0<a(q,L))M[F]=L,M[I]=q,I=F;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var L=M[0],I=M.pop();if(I!==L){M[0]=I;e:for(var F=0,q=M.length,W=q>>>1;F<W;){var K=2*(F+1)-1,ne=M[K],J=K+1,ye=M[J];if(0>a(ne,I))J<q&&0>a(ye,ne)?(M[F]=ye,M[J]=I,F=J):(M[F]=ne,M[K]=I,F=K);else if(J<q&&0>a(ye,I))M[F]=ye,M[J]=I,F=J;else break e}}return L}function a(M,L){var I=M.sortIndex-L.sortIndex;return I!==0?I:M.id-L.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],u=[],f=1,d=null,h=3,p=!1,m=!1,g=!1,v=!1,y=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function w(M){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=M)r(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(u)}}function S(M){if(g=!1,w(M),!m)if(n(l)!==null)m=!0,j||(j=!0,C());else{var L=n(u);L!==null&&k(S,L.startTime-M)}}var j=!1,O=-1,N=5,E=-1;function T(){return v?!0:!(e.unstable_now()-E<N)}function P(){if(v=!1,j){var M=e.unstable_now();E=M;var L=!0;try{e:{m=!1,g&&(g=!1,b(O),O=-1),p=!0;var I=h;try{t:{for(w(M),d=n(l);d!==null&&!(d.expirationTime>M&&T());){var F=d.callback;if(typeof F=="function"){d.callback=null,h=d.priorityLevel;var q=F(d.expirationTime<=M);if(M=e.unstable_now(),typeof q=="function"){d.callback=q,w(M),L=!0;break t}d===n(l)&&r(l),w(M)}else r(l);d=n(l)}if(d!==null)L=!0;else{var W=n(u);W!==null&&k(S,W.startTime-M),L=!1}}break e}finally{d=null,h=I,p=!1}L=void 0}}finally{L?C():j=!1}}}var C;if(typeof x=="function")C=function(){x(P)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,D=$.port2;$.port1.onmessage=P,C=function(){D.postMessage(null)}}else C=function(){y(P,0)};function k(M,L){O=y(function(){M(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(M){M.callback=null},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function(M){switch(h){case 1:case 2:case 3:var L=3;break;default:L=h}var I=h;h=L;try{return M()}finally{h=I}},e.unstable_requestPaint=function(){v=!0},e.unstable_runWithPriority=function(M,L){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var I=h;h=M;try{return L()}finally{h=I}},e.unstable_scheduleCallback=function(M,L,I){var F=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?F+I:F):I=F,M){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=I+q,M={id:f++,callback:L,priorityLevel:M,startTime:I,expirationTime:q,sortIndex:-1},I>F?(M.sortIndex=I,t(u,M),n(l)===null&&M===n(u)&&(g?(b(O),O=-1):g=!0,k(S,I-F))):(M.sortIndex=q,t(l,M),m||p||(m=!0,j||(j=!0,C()))),M},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(M){var L=h;return function(){var I=h;h=L;try{return M.apply(this,arguments)}finally{h=I}}}})(sM);iM.exports=sM;var Kz=iM.exports,oM={exports:{}},xn={};/**
 * @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 Gz=A;function lM(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function fi(){}var pn={d:{f:fi,r:function(){throw Error(lM(522))},D:fi,C:fi,L:fi,m:fi,X:fi,S:fi,M:fi},p:0,findDOMNode:null},Yz=Symbol.for("react.portal");function Wz(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Yz,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var zu=Gz.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Cy(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}xn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=pn;xn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(lM(299));return Wz(e,t,null,n)};xn.flushSync=function(e){var t=zu.T,n=pn.p;try{if(zu.T=null,pn.p=2,e)return e()}finally{zu.T=t,pn.p=n,pn.d.f()}};xn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,pn.d.C(e,t))};xn.prefetchDNS=function(e){typeof e=="string"&&pn.d.D(e)};xn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=Cy(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?pn.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:i}):n==="script"&&pn.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};xn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Cy(t.as,t.crossOrigin);pn.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&pn.d.M(e)};xn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=Cy(n,t.crossOrigin);pn.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};xn.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Cy(t.as,t.crossOrigin);pn.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else pn.d.m(e)};xn.requestFormReset=function(e){pn.d.r(e)};xn.unstable_batchedUpdates=function(e,t){return e(t)};xn.useFormState=function(e,t,n){return zu.H.useFormState(e,t,n)};xn.useFormStatus=function(){return zu.H.useHostTransitionStatus()};xn.version="19.2.7";function cM(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cM)}catch(e){console.error(e)}}cM(),oM.exports=xn;var Xz=oM.exports;/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Lt=Kz,uM=A,Qz=Xz;function U(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function fM(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Nd(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function dM(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function hM(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function zA(e){if(Nd(e)!==e)throw Error(U(188))}function Zz(e){var t=e.alternate;if(!t){if(t=Nd(e),t===null)throw Error(U(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var i=a.alternate;if(i===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return zA(a),e;if(i===r)return zA(a),t;i=i.sibling}throw Error(U(188))}if(n.return!==r.return)n=a,r=i;else{for(var s=!1,o=a.child;o;){if(o===n){s=!0,n=a,r=i;break}if(o===r){s=!0,r=a,n=i;break}o=o.sibling}if(!s){for(o=i.child;o;){if(o===n){s=!0,n=i,r=a;break}if(o===r){s=!0,r=i,n=a;break}o=o.sibling}if(!s)throw Error(U(189))}}if(n.alternate!==r)throw Error(U(190))}if(n.tag!==3)throw Error(U(188));return n.stateNode.current===n?e:t}function pM(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=pM(e),t!==null)return t;e=e.sibling}return null}var st=Object.assign,Jz=Symbol.for("react.element"),fh=Symbol.for("react.transitional.element"),Eu=Symbol.for("react.portal"),Ko=Symbol.for("react.fragment"),mM=Symbol.for("react.strict_mode"),ex=Symbol.for("react.profiler"),yM=Symbol.for("react.consumer"),Ma=Symbol.for("react.context"),xS=Symbol.for("react.forward_ref"),tx=Symbol.for("react.suspense"),nx=Symbol.for("react.suspense_list"),SS=Symbol.for("react.memo"),yi=Symbol.for("react.lazy"),rx=Symbol.for("react.activity"),eI=Symbol.for("react.memo_cache_sentinel"),IA=Symbol.iterator;function au(e){return e===null||typeof e!="object"?null:(e=IA&&e[IA]||e["@@iterator"],typeof e=="function"?e:null)}var tI=Symbol.for("react.client.reference");function ax(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===tI?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ko:return"Fragment";case ex:return"Profiler";case mM:return"StrictMode";case tx:return"Suspense";case nx:return"SuspenseList";case rx:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Eu:return"Portal";case Ma:return e.displayName||"Context";case yM:return(e._context.displayName||"Context")+".Consumer";case xS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case SS:return t=e.displayName||null,t!==null?t:ax(e.type)||"Memo";case yi:t=e._payload,e=e._init;try{return ax(e(t))}catch{}}return null}var Tu=Array.isArray,he=uM.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,De=Qz.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qs={pending:!1,data:null,method:null,action:null},ix=[],Go=-1;function ha(e){return{current:e}}function Kt(e){0>Go||(e.current=ix[Go],ix[Go]=null,Go--)}function Je(e,t){Go++,ix[Go]=e.current,e.current=t}var ia=ha(null),pf=ha(null),Ii=ha(null),Cp=ha(null);function _p(e,t){switch(Je(Ii,t),Je(pf,e),Je(ia,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?q2(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=q2(t),e=$D(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Kt(ia),Je(ia,e)}function Il(){Kt(ia),Kt(pf),Kt(Ii)}function sx(e){e.memoizedState!==null&&Je(Cp,e);var t=ia.current,n=$D(t,e.type);t!==n&&(Je(pf,e),Je(ia,n))}function Pp(e){pf.current===e&&(Kt(ia),Kt(pf)),Cp.current===e&&(Kt(Cp),Of._currentValue=qs)}var cv,BA;function gs(e){if(cv===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);cv=t&&t[1]||"",BA=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+cv+e+BA}var uv=!1;function fv(e,t){if(!e||uv)return"";uv=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(p){var h=p}Reflect.construct(e,[],d)}else{try{d.call()}catch(p){h=p}e.call(d.prototype)}}else{try{throw Error()}catch(p){h=p}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(p){if(p&&h&&typeof p.stack=="string")return[p.stack,h.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),s=i[0],o=i[1];if(s&&o){var l=s.split(`
`),u=o.split(`
`);for(a=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;if(r===l.length||a===u.length)for(r=l.length-1,a=u.length-1;1<=r&&0<=a&&l[r]!==u[a];)a--;for(;1<=r&&0<=a;r--,a--)if(l[r]!==u[a]){if(r!==1||a!==1)do if(r--,a--,0>a||l[r]!==u[a]){var f=`
`+l[r].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=r&&0<=a);break}}}finally{uv=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?gs(n):""}function nI(e,t){switch(e.tag){case 26:case 27:case 5:return gs(e.type);case 16:return gs("Lazy");case 13:return e.child!==t&&t!==null?gs("Suspense Fallback"):gs("Suspense");case 19:return gs("SuspenseList");case 0:case 15:return fv(e.type,!1);case 11:return fv(e.type.render,!1);case 1:return fv(e.type,!0);case 31:return gs("Activity");default:return""}}function UA(e){try{var t="",n=null;do t+=nI(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
Error generating stack: `+r.message+`
`+r.stack}}var ox=Object.prototype.hasOwnProperty,wS=Lt.unstable_scheduleCallback,dv=Lt.unstable_cancelCallback,rI=Lt.unstable_shouldYield,aI=Lt.unstable_requestPaint,Gn=Lt.unstable_now,iI=Lt.unstable_getCurrentPriorityLevel,gM=Lt.unstable_ImmediatePriority,vM=Lt.unstable_UserBlockingPriority,Mp=Lt.unstable_NormalPriority,sI=Lt.unstable_LowPriority,bM=Lt.unstable_IdlePriority,oI=Lt.log,lI=Lt.unstable_setDisableYieldValue,Ed=null,Yn=null;function Mi(e){if(typeof oI=="function"&&lI(e),Yn&&typeof Yn.setStrictMode=="function")try{Yn.setStrictMode(Ed,e)}catch{}}var Wn=Math.clz32?Math.clz32:fI,cI=Math.log,uI=Math.LN2;function fI(e){return e>>>=0,e===0?32:31-(cI(e)/uI|0)|0}var dh=256,hh=262144,ph=4194304;function vs(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function _y(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var a=0,i=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var o=r&134217727;return o!==0?(r=o&~i,r!==0?a=vs(r):(s&=o,s!==0?a=vs(s):n||(n=o&~e,n!==0&&(a=vs(n))))):(o=r&~i,o!==0?a=vs(o):s!==0?a=vs(s):n||(n=r&~e,n!==0&&(a=vs(n)))),a===0?0:t!==0&&t!==a&&!(t&i)&&(i=a&-a,n=t&-t,i>=n||i===32&&(n&4194048)!==0)?t:a}function Td(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function dI(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function xM(){var e=ph;return ph<<=1,!(ph&62914560)&&(ph=4194304),e}function hv(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Cd(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function hI(e,t,n,r,a,i){var s=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=s&~n;0<n;){var f=31-Wn(n),d=1<<f;o[f]=0,l[f]=-1;var h=u[f];if(h!==null)for(u[f]=null,f=0;f<h.length;f++){var p=h[f];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&SM(e,r,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(s&~t))}function SM(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Wn(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function wM(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Wn(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function jM(e,t){var n=t&-t;return n=n&42?1:jS(n),n&(e.suspendedLanes|t)?0:n}function jS(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function AS(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function AM(){var e=De.p;return e!==0?e:(e=window.event,e===void 0?32:GD(e.type))}function FA(e,t){var n=De.p;try{return De.p=e,t()}finally{De.p=n}}var rs=Math.random().toString(36).slice(2),Jt="__reactFiber$"+rs,Mn="__reactProps$"+rs,_c="__reactContainer$"+rs,lx="__reactEvents$"+rs,pI="__reactListeners$"+rs,mI="__reactHandles$"+rs,VA="__reactResources$"+rs,_d="__reactMarker$"+rs;function OS(e){delete e[Jt],delete e[Mn],delete e[lx],delete e[pI],delete e[mI]}function Yo(e){var t=e[Jt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[_c]||n[Jt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=X2(e);e!==null;){if(n=e[Jt])return n;e=X2(e)}return t}e=n,n=e.parentNode}return null}function Pc(e){if(e=e[Jt]||e[_c]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Cu(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(U(33))}function pl(e){var t=e[VA];return t||(t=e[VA]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ht(e){e[_d]=!0}var OM=new Set,NM={};function vo(e,t){Bl(e,t),Bl(e+"Capture",t)}function Bl(e,t){for(NM[e]=t,e=0;e<t.length;e++)OM.add(t[e])}var yI=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),HA={},qA={};function gI(e){return ox.call(qA,e)?!0:ox.call(HA,e)?!1:yI.test(e)?qA[e]=!0:(HA[e]=!0,!1)}function tp(e,t,n){if(gI(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function mh(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function ba(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function ur(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function EM(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vI(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(s){n=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function cx(e){if(!e._valueTracker){var t=EM(e)?"checked":"value";e._valueTracker=vI(e,t,""+e[t])}}function TM(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=EM(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Rp(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var bI=/[\n"\\]/g;function hr(e){return e.replace(bI,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ux(e,t,n,r,a,i,s,o){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ur(t)):e.value!==""+ur(t)&&(e.value=""+ur(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?fx(e,s,ur(t)):n!=null?fx(e,s,ur(n)):r!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+ur(o):e.removeAttribute("name")}function CM(e,t,n,r,a,i,s,o){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){cx(e);return}n=n!=null?""+ur(n):"",t=t!=null?""+ur(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}r=r??a,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=o?e.checked:!!r,e.defaultChecked=!!r,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s),cx(e)}function fx(e,t,n){t==="number"&&Rp(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function ml(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ur(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,r&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function _M(e,t,n){if(t!=null&&(t=""+ur(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ur(n):""}function PM(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(U(92));if(Tu(r)){if(1<r.length)throw Error(U(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=ur(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),cx(e)}function Ul(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xI=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 KA(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||xI.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function MM(e,t,n){if(t!=null&&typeof t!="object")throw Error(U(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&KA(e,a,r)}else for(var i in t)t.hasOwnProperty(i)&&KA(e,i,t[i])}function NS(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var SI=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"]]),wI=/^[\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 np(e){return wI.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ra(){}var dx=null;function ES(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wo=null,yl=null;function GA(e){var t=Pc(e);if(t&&(e=t.stateNode)){var n=e[Mn]||null;e:switch(e=t.stateNode,t.type){case"input":if(ux(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+hr(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Mn]||null;if(!a)throw Error(U(90));ux(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&TM(r)}break e;case"textarea":_M(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&ml(e,!!n.multiple,t,!1)}}}var pv=!1;function RM(e,t,n){if(pv)return e(t,n);pv=!0;try{var r=e(t);return r}finally{if(pv=!1,(Wo!==null||yl!==null)&&(Fy(),Wo&&(t=Wo,e=yl,yl=Wo=null,GA(t),e)))for(t=0;t<e.length;t++)GA(e[t])}}function mf(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Mn]||null;if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(U(231,t,typeof n));return n}var Ga=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hx=!1;if(Ga)try{var iu={};Object.defineProperty(iu,"passive",{get:function(){hx=!0}}),window.addEventListener("test",iu,iu),window.removeEventListener("test",iu,iu)}catch{hx=!1}var Ri=null,TS=null,rp=null;function DM(){if(rp)return rp;var e,t=TS,n=t.length,r,a="value"in Ri?Ri.value:Ri.textContent,i=a.length;for(e=0;e<n&&t[e]===a[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===a[i-r];r++);return rp=a.slice(e,1<r?1-r:void 0)}function ap(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function yh(){return!0}function YA(){return!1}function Rn(e){function t(n,r,a,i,s){this._reactName=n,this._targetInst=a,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?yh:YA,this.isPropagationStopped=YA,this}return st(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=yh)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=yh)},persist:function(){},isPersistent:yh}),t}var bo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Py=Rn(bo),Pd=st({},bo,{view:0,detail:0}),jI=Rn(Pd),mv,yv,su,My=st({},Pd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:CS,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==su&&(su&&e.type==="mousemove"?(mv=e.screenX-su.screenX,yv=e.screenY-su.screenY):yv=mv=0,su=e),mv)},movementY:function(e){return"movementY"in e?e.movementY:yv}}),WA=Rn(My),AI=st({},My,{dataTransfer:0}),OI=Rn(AI),NI=st({},Pd,{relatedTarget:0}),gv=Rn(NI),EI=st({},bo,{animationName:0,elapsedTime:0,pseudoElement:0}),TI=Rn(EI),CI=st({},bo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_I=Rn(CI),PI=st({},bo,{data:0}),XA=Rn(PI),MI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},RI={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"},DI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=DI[e])?!!t[e]:!1}function CS(){return kI}var $I=st({},Pd,{key:function(e){if(e.key){var t=MI[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ap(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?RI[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:CS,charCode:function(e){return e.type==="keypress"?ap(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ap(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),LI=Rn($I),zI=st({},My,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),QA=Rn(zI),II=st({},Pd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:CS}),BI=Rn(II),UI=st({},bo,{propertyName:0,elapsedTime:0,pseudoElement:0}),FI=Rn(UI),VI=st({},My,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),HI=Rn(VI),qI=st({},bo,{newState:0,oldState:0}),KI=Rn(qI),GI=[9,13,27,32],_S=Ga&&"CompositionEvent"in window,Iu=null;Ga&&"documentMode"in document&&(Iu=document.documentMode);var YI=Ga&&"TextEvent"in window&&!Iu,kM=Ga&&(!_S||Iu&&8<Iu&&11>=Iu),ZA=" ",JA=!1;function $M(e,t){switch(e){case"keyup":return GI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function LM(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xo=!1;function WI(e,t){switch(e){case"compositionend":return LM(t);case"keypress":return t.which!==32?null:(JA=!0,ZA);case"textInput":return e=t.data,e===ZA&&JA?null:e;default:return null}}function XI(e,t){if(Xo)return e==="compositionend"||!_S&&$M(e,t)?(e=DM(),rp=TS=Ri=null,Xo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return kM&&t.locale!=="ko"?null:t.data;default:return null}}var QI={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 e2(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!QI[e.type]:t==="textarea"}function zM(e,t,n,r){Wo?yl?yl.push(r):yl=[r]:Wo=r,t=Qp(t,"onChange"),0<t.length&&(n=new Py("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Bu=null,yf=null;function ZI(e){RD(e,0)}function Ry(e){var t=Cu(e);if(TM(t))return e}function t2(e,t){if(e==="change")return t}var IM=!1;if(Ga){var vv;if(Ga){var bv="oninput"in document;if(!bv){var n2=document.createElement("div");n2.setAttribute("oninput","return;"),bv=typeof n2.oninput=="function"}vv=bv}else vv=!1;IM=vv&&(!document.documentMode||9<document.documentMode)}function r2(){Bu&&(Bu.detachEvent("onpropertychange",BM),yf=Bu=null)}function BM(e){if(e.propertyName==="value"&&Ry(yf)){var t=[];zM(t,yf,e,ES(e)),RM(ZI,t)}}function JI(e,t,n){e==="focusin"?(r2(),Bu=t,yf=n,Bu.attachEvent("onpropertychange",BM)):e==="focusout"&&r2()}function e8(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ry(yf)}function t8(e,t){if(e==="click")return Ry(t)}function n8(e,t){if(e==="input"||e==="change")return Ry(t)}function r8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jn=typeof Object.is=="function"?Object.is:r8;function gf(e,t){if(Jn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!ox.call(t,a)||!Jn(e[a],t[a]))return!1}return!0}function a2(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function i2(e,t){var n=a2(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=a2(n)}}function UM(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?UM(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function FM(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Rp(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rp(e.document)}return t}function PS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var a8=Ga&&"documentMode"in document&&11>=document.documentMode,Qo=null,px=null,Uu=null,mx=!1;function s2(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mx||Qo==null||Qo!==Rp(r)||(r=Qo,"selectionStart"in r&&PS(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Uu&&gf(Uu,r)||(Uu=r,r=Qp(px,"onSelect"),0<r.length&&(t=new Py("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Qo)))}function ds(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Zo={animationend:ds("Animation","AnimationEnd"),animationiteration:ds("Animation","AnimationIteration"),animationstart:ds("Animation","AnimationStart"),transitionrun:ds("Transition","TransitionRun"),transitionstart:ds("Transition","TransitionStart"),transitioncancel:ds("Transition","TransitionCancel"),transitionend:ds("Transition","TransitionEnd")},xv={},VM={};Ga&&(VM=document.createElement("div").style,"AnimationEvent"in window||(delete Zo.animationend.animation,delete Zo.animationiteration.animation,delete Zo.animationstart.animation),"TransitionEvent"in window||delete Zo.transitionend.transition);function xo(e){if(xv[e])return xv[e];if(!Zo[e])return e;var t=Zo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in VM)return xv[e]=t[n];return e}var HM=xo("animationend"),qM=xo("animationiteration"),KM=xo("animationstart"),i8=xo("transitionrun"),s8=xo("transitionstart"),o8=xo("transitioncancel"),GM=xo("transitionend"),YM=new Map,yx="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(" ");yx.push("scrollEnd");function Vr(e,t){YM.set(e,t),vo(t,[e])}var Dp=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},cr=[],Jo=0,MS=0;function Dy(){for(var e=Jo,t=MS=Jo=0;t<e;){var n=cr[t];cr[t++]=null;var r=cr[t];cr[t++]=null;var a=cr[t];cr[t++]=null;var i=cr[t];if(cr[t++]=null,r!==null&&a!==null){var s=r.pending;s===null?a.next=a:(a.next=s.next,s.next=a),r.pending=a}i!==0&&WM(n,a,i)}}function ky(e,t,n,r){cr[Jo++]=e,cr[Jo++]=t,cr[Jo++]=n,cr[Jo++]=r,MS|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function RS(e,t,n,r){return ky(e,t,n,r),kp(e)}function So(e,t){return ky(e,null,null,t),kp(e)}function WM(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var a=!1,i=e.return;i!==null;)i.childLanes|=n,r=i.alternate,r!==null&&(r.childLanes|=n),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(a=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,a&&t!==null&&(a=31-Wn(n),e=i.hiddenUpdates,r=e[a],r===null?e[a]=[t]:r.push(t),t.lane=n|536870912),i):null}function kp(e){if(50<Xu)throw Xu=0,Lx=null,Error(U(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var el={};function l8(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Hn(e,t,n,r){return new l8(e,t,n,r)}function DS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ia(e,t){var n=e.alternate;return n===null?(n=Hn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function XM(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ip(e,t,n,r,a,i){var s=0;if(r=e,typeof e=="function")DS(e)&&(s=1);else if(typeof e=="string")s=hB(e,n,ia.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case rx:return e=Hn(31,n,t,a),e.elementType=rx,e.lanes=i,e;case Ko:return Ks(n.children,a,i,t);case mM:s=8,a|=24;break;case ex:return e=Hn(12,n,t,a|2),e.elementType=ex,e.lanes=i,e;case tx:return e=Hn(13,n,t,a),e.elementType=tx,e.lanes=i,e;case nx:return e=Hn(19,n,t,a),e.elementType=nx,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ma:s=10;break e;case yM:s=9;break e;case xS:s=11;break e;case SS:s=14;break e;case yi:s=16,r=null;break e}s=29,n=Error(U(130,e===null?"null":typeof e,"")),r=null}return t=Hn(s,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function Ks(e,t,n,r){return e=Hn(7,e,r,t),e.lanes=n,e}function Sv(e,t,n){return e=Hn(6,e,null,t),e.lanes=n,e}function QM(e){var t=Hn(18,null,null,0);return t.stateNode=e,t}function wv(e,t,n){return t=Hn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var o2=new WeakMap;function pr(e,t){if(typeof e=="object"&&e!==null){var n=o2.get(e);return n!==void 0?n:(t={value:e,source:t,stack:UA(t)},o2.set(e,t),t)}return{value:e,source:t,stack:UA(t)}}var tl=[],nl=0,$p=null,vf=0,fr=[],dr=0,Zi=null,Qr=1,Zr="";function Ta(e,t){tl[nl++]=vf,tl[nl++]=$p,$p=e,vf=t}function ZM(e,t,n){fr[dr++]=Qr,fr[dr++]=Zr,fr[dr++]=Zi,Zi=e;var r=Qr;e=Zr;var a=32-Wn(r)-1;r&=~(1<<a),n+=1;var i=32-Wn(t)+a;if(30<i){var s=a-a%5;i=(r&(1<<s)-1).toString(32),r>>=s,a-=s,Qr=1<<32-Wn(t)+a|n<<a|r,Zr=i+e}else Qr=1<<i|n<<a|r,Zr=e}function kS(e){e.return!==null&&(Ta(e,1),ZM(e,1,0))}function $S(e){for(;e===$p;)$p=tl[--nl],tl[nl]=null,vf=tl[--nl],tl[nl]=null;for(;e===Zi;)Zi=fr[--dr],fr[dr]=null,Zr=fr[--dr],fr[dr]=null,Qr=fr[--dr],fr[dr]=null}function JM(e,t){fr[dr++]=Qr,fr[dr++]=Zr,fr[dr++]=Zi,Qr=t.id,Zr=t.overflow,Zi=e}var en=null,at=null,Ce=!1,Bi=null,mr=!1,gx=Error(U(519));function Ji(e){var t=Error(U(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bf(pr(t,e)),gx}function l2(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Jt]=e,t[Mn]=r,n){case"dialog":we("cancel",t),we("close",t);break;case"iframe":case"object":case"embed":we("load",t);break;case"video":case"audio":for(n=0;n<jf.length;n++)we(jf[n],t);break;case"source":we("error",t);break;case"img":case"image":case"link":we("error",t),we("load",t);break;case"details":we("toggle",t);break;case"input":we("invalid",t),CM(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":we("invalid",t);break;case"textarea":we("invalid",t),PM(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||kD(t.textContent,n)?(r.popover!=null&&(we("beforetoggle",t),we("toggle",t)),r.onScroll!=null&&we("scroll",t),r.onScrollEnd!=null&&we("scrollend",t),r.onClick!=null&&(t.onclick=Ra),t=!0):t=!1,t||Ji(e,!0)}function c2(e){for(en=e.return;en;)switch(en.tag){case 5:case 31:case 13:mr=!1;return;case 27:case 3:mr=!0;return;default:en=en.return}}function Ro(e){if(e!==en)return!1;if(!Ce)return c2(e),Ce=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Fx(e.type,e.memoizedProps)),n=!n),n&&at&&Ji(e),c2(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));at=W2(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));at=W2(e)}else t===27?(t=at,as(e.type)?(e=Kx,Kx=null,at=e):at=t):at=en?br(e.stateNode.nextSibling):null;return!0}function to(){at=en=null,Ce=!1}function jv(){var e=Bi;return e!==null&&(En===null?En=e:En.push.apply(En,e),Bi=null),e}function bf(e){Bi===null?Bi=[e]:Bi.push(e)}var vx=ha(null),wo=null,Da=null;function bi(e,t,n){Je(vx,t._currentValue),t._currentValue=n}function Ba(e){e._currentValue=vx.current,Kt(vx)}function bx(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function xx(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var s=a.child;i=i.firstContext;e:for(;i!==null;){var o=i;i=a;for(var l=0;l<t.length;l++)if(o.context===t[l]){i.lanes|=n,o=i.alternate,o!==null&&(o.lanes|=n),bx(i.return,n,e),r||(s=null);break e}i=o.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(U(341));s.lanes|=n,i=s.alternate,i!==null&&(i.lanes|=n),bx(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Mc(e,t,n,r){e=null;for(var a=t,i=!1;a!==null;){if(!i){if(a.flags&524288)i=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(U(387));if(s=s.memoizedProps,s!==null){var o=a.type;Jn(a.pendingProps.value,s.value)||(e!==null?e.push(o):e=[o])}}else if(a===Cp.current){if(s=a.alternate,s===null)throw Error(U(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Of):e=[Of])}a=a.return}e!==null&&xx(t,e,n,r),t.flags|=262144}function Lp(e){for(e=e.firstContext;e!==null;){if(!Jn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function no(e){wo=e,Da=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function nn(e){return eR(wo,e)}function gh(e,t){return wo===null&&no(e),eR(e,t)}function eR(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Da===null){if(e===null)throw Error(U(308));Da=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Da=Da.next=t;return n}var c8=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},u8=Lt.unstable_scheduleCallback,f8=Lt.unstable_NormalPriority,Tt={$$typeof:Ma,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function LS(){return{controller:new c8,data:new Map,refCount:0}}function Md(e){e.refCount--,e.refCount===0&&u8(f8,function(){e.controller.abort()})}var Fu=null,Sx=0,Fl=0,gl=null;function d8(e,t){if(Fu===null){var n=Fu=[];Sx=0,Fl=lw(),gl={status:"pending",value:void 0,then:function(r){n.push(r)}}}return Sx++,t.then(u2,u2),t}function u2(){if(--Sx===0&&Fu!==null){gl!==null&&(gl.status="fulfilled");var e=Fu;Fu=null,Fl=0,gl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function h8(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(r.status="rejected",r.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),r}var f2=he.S;he.S=function(e,t){pD=Gn(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&d8(e,t),f2!==null&&f2(e,t)};var Gs=ha(null);function zS(){var e=Gs.current;return e!==null?e:We.pooledCache}function sp(e,t){t===null?Je(Gs,Gs.current):Je(Gs,t.pool)}function tR(){var e=zS();return e===null?null:{parent:Tt._currentValue,pool:e}}var Rc=Error(U(460)),IS=Error(U(474)),$y=Error(U(542)),zp={then:function(){}};function d2(e){return e=e.status,e==="fulfilled"||e==="rejected"}function nR(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Ra,Ra),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,p2(e),e;default:if(typeof t.status=="string")t.then(Ra,Ra);else{if(e=We,e!==null&&100<e.shellSuspendCounter)throw Error(U(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=r}},function(r){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,p2(e),e}throw Ys=t,Rc}}function bs(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ys=n,Rc):n}}var Ys=null;function h2(){if(Ys===null)throw Error(U(459));var e=Ys;return Ys=null,e}function p2(e){if(e===Rc||e===$y)throw Error(U(483))}var vl=null,xf=0;function vh(e){var t=xf;return xf+=1,vl===null&&(vl=[]),nR(vl,e,t)}function ou(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function bh(e,t){throw t.$$typeof===Jz?Error(U(525)):(e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function rR(e){function t(y,b){if(e){var x=y.deletions;x===null?(y.deletions=[b],y.flags|=16):x.push(b)}}function n(y,b){if(!e)return null;for(;b!==null;)t(y,b),b=b.sibling;return null}function r(y){for(var b=new Map;y!==null;)y.key!==null?b.set(y.key,y):b.set(y.index,y),y=y.sibling;return b}function a(y,b){return y=Ia(y,b),y.index=0,y.sibling=null,y}function i(y,b,x){return y.index=x,e?(x=y.alternate,x!==null?(x=x.index,x<b?(y.flags|=67108866,b):x):(y.flags|=67108866,b)):(y.flags|=1048576,b)}function s(y){return e&&y.alternate===null&&(y.flags|=67108866),y}function o(y,b,x,w){return b===null||b.tag!==6?(b=Sv(x,y.mode,w),b.return=y,b):(b=a(b,x),b.return=y,b)}function l(y,b,x,w){var S=x.type;return S===Ko?f(y,b,x.props.children,w,x.key):b!==null&&(b.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===yi&&bs(S)===b.type)?(b=a(b,x.props),ou(b,x),b.return=y,b):(b=ip(x.type,x.key,x.props,null,y.mode,w),ou(b,x),b.return=y,b)}function u(y,b,x,w){return b===null||b.tag!==4||b.stateNode.containerInfo!==x.containerInfo||b.stateNode.implementation!==x.implementation?(b=wv(x,y.mode,w),b.return=y,b):(b=a(b,x.children||[]),b.return=y,b)}function f(y,b,x,w,S){return b===null||b.tag!==7?(b=Ks(x,y.mode,w,S),b.return=y,b):(b=a(b,x),b.return=y,b)}function d(y,b,x){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=Sv(""+b,y.mode,x),b.return=y,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case fh:return x=ip(b.type,b.key,b.props,null,y.mode,x),ou(x,b),x.return=y,x;case Eu:return b=wv(b,y.mode,x),b.return=y,b;case yi:return b=bs(b),d(y,b,x)}if(Tu(b)||au(b))return b=Ks(b,y.mode,x,null),b.return=y,b;if(typeof b.then=="function")return d(y,vh(b),x);if(b.$$typeof===Ma)return d(y,gh(y,b),x);bh(y,b)}return null}function h(y,b,x,w){var S=b!==null?b.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return S!==null?null:o(y,b,""+x,w);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case fh:return x.key===S?l(y,b,x,w):null;case Eu:return x.key===S?u(y,b,x,w):null;case yi:return x=bs(x),h(y,b,x,w)}if(Tu(x)||au(x))return S!==null?null:f(y,b,x,w,null);if(typeof x.then=="function")return h(y,b,vh(x),w);if(x.$$typeof===Ma)return h(y,b,gh(y,x),w);bh(y,x)}return null}function p(y,b,x,w,S){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return y=y.get(x)||null,o(b,y,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case fh:return y=y.get(w.key===null?x:w.key)||null,l(b,y,w,S);case Eu:return y=y.get(w.key===null?x:w.key)||null,u(b,y,w,S);case yi:return w=bs(w),p(y,b,x,w,S)}if(Tu(w)||au(w))return y=y.get(x)||null,f(b,y,w,S,null);if(typeof w.then=="function")return p(y,b,x,vh(w),S);if(w.$$typeof===Ma)return p(y,b,x,gh(b,w),S);bh(b,w)}return null}function m(y,b,x,w){for(var S=null,j=null,O=b,N=b=0,E=null;O!==null&&N<x.length;N++){O.index>N?(E=O,O=null):E=O.sibling;var T=h(y,O,x[N],w);if(T===null){O===null&&(O=E);break}e&&O&&T.alternate===null&&t(y,O),b=i(T,b,N),j===null?S=T:j.sibling=T,j=T,O=E}if(N===x.length)return n(y,O),Ce&&Ta(y,N),S;if(O===null){for(;N<x.length;N++)O=d(y,x[N],w),O!==null&&(b=i(O,b,N),j===null?S=O:j.sibling=O,j=O);return Ce&&Ta(y,N),S}for(O=r(O);N<x.length;N++)E=p(O,y,N,x[N],w),E!==null&&(e&&E.alternate!==null&&O.delete(E.key===null?N:E.key),b=i(E,b,N),j===null?S=E:j.sibling=E,j=E);return e&&O.forEach(function(P){return t(y,P)}),Ce&&Ta(y,N),S}function g(y,b,x,w){if(x==null)throw Error(U(151));for(var S=null,j=null,O=b,N=b=0,E=null,T=x.next();O!==null&&!T.done;N++,T=x.next()){O.index>N?(E=O,O=null):E=O.sibling;var P=h(y,O,T.value,w);if(P===null){O===null&&(O=E);break}e&&O&&P.alternate===null&&t(y,O),b=i(P,b,N),j===null?S=P:j.sibling=P,j=P,O=E}if(T.done)return n(y,O),Ce&&Ta(y,N),S;if(O===null){for(;!T.done;N++,T=x.next())T=d(y,T.value,w),T!==null&&(b=i(T,b,N),j===null?S=T:j.sibling=T,j=T);return Ce&&Ta(y,N),S}for(O=r(O);!T.done;N++,T=x.next())T=p(O,y,N,T.value,w),T!==null&&(e&&T.alternate!==null&&O.delete(T.key===null?N:T.key),b=i(T,b,N),j===null?S=T:j.sibling=T,j=T);return e&&O.forEach(function(C){return t(y,C)}),Ce&&Ta(y,N),S}function v(y,b,x,w){if(typeof x=="object"&&x!==null&&x.type===Ko&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case fh:e:{for(var S=x.key;b!==null;){if(b.key===S){if(S=x.type,S===Ko){if(b.tag===7){n(y,b.sibling),w=a(b,x.props.children),w.return=y,y=w;break e}}else if(b.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===yi&&bs(S)===b.type){n(y,b.sibling),w=a(b,x.props),ou(w,x),w.return=y,y=w;break e}n(y,b);break}else t(y,b);b=b.sibling}x.type===Ko?(w=Ks(x.props.children,y.mode,w,x.key),w.return=y,y=w):(w=ip(x.type,x.key,x.props,null,y.mode,w),ou(w,x),w.return=y,y=w)}return s(y);case Eu:e:{for(S=x.key;b!==null;){if(b.key===S)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){n(y,b.sibling),w=a(b,x.children||[]),w.return=y,y=w;break e}else{n(y,b);break}else t(y,b);b=b.sibling}w=wv(x,y.mode,w),w.return=y,y=w}return s(y);case yi:return x=bs(x),v(y,b,x,w)}if(Tu(x))return m(y,b,x,w);if(au(x)){if(S=au(x),typeof S!="function")throw Error(U(150));return x=S.call(x),g(y,b,x,w)}if(typeof x.then=="function")return v(y,b,vh(x),w);if(x.$$typeof===Ma)return v(y,b,gh(y,x),w);bh(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,b!==null&&b.tag===6?(n(y,b.sibling),w=a(b,x),w.return=y,y=w):(n(y,b),w=Sv(x,y.mode,w),w.return=y,y=w),s(y)):n(y,b)}return function(y,b,x,w){try{xf=0;var S=v(y,b,x,w);return vl=null,S}catch(O){if(O===Rc||O===$y)throw O;var j=Hn(29,O,null,y.mode);return j.lanes=w,j.return=y,j}finally{}}}var ro=rR(!0),aR=rR(!1),gi=!1;function BS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wx(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ui(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Fi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Me&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=kp(e),WM(e,null,n),t}return ky(e,r,t,n),kp(e)}function Vu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wM(e,n)}}function Av(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?a=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?a=i=t:i=i.next=t}else a=i=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var jx=!1;function Hu(){if(jx){var e=gl;if(e!==null)throw e}}function qu(e,t,n,r){jx=!1;var a=e.updateQueue;gi=!1;var i=a.firstBaseUpdate,s=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var l=o,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var f=e.alternate;f!==null&&(f=f.updateQueue,o=f.lastBaseUpdate,o!==s&&(o===null?f.firstBaseUpdate=u:o.next=u,f.lastBaseUpdate=l))}if(i!==null){var d=a.baseState;s=0,f=u=l=null,o=i;do{var h=o.lane&-536870913,p=h!==o.lane;if(p?(Ee&h)===h:(r&h)===h){h!==0&&h===Fl&&(jx=!0),f!==null&&(f=f.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var m=e,g=o;h=t;var v=n;switch(g.tag){case 1:if(m=g.payload,typeof m=="function"){d=m.call(v,d,h);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,h=typeof m=="function"?m.call(v,d,h):m,h==null)break e;d=st({},d,h);break e;case 2:gi=!0}}h=o.callback,h!==null&&(e.flags|=64,p&&(e.flags|=8192),p=a.callbacks,p===null?a.callbacks=[h]:p.push(h))}else p={lane:h,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(u=f=p,l=d):f=f.next=p,s|=h;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;p=o,o=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(!0);f===null&&(l=d),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=f,i===null&&(a.shared.lanes=0),ts|=s,e.lanes=s,e.memoizedState=d}}function iR(e,t){if(typeof e!="function")throw Error(U(191,e));e.call(t)}function sR(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)iR(n[e],t)}var Vl=ha(null),Ip=ha(0);function m2(e,t){e=Qa,Je(Ip,e),Je(Vl,t),Qa=e|t.baseLanes}function Ax(){Je(Ip,Qa),Je(Vl,Vl.current)}function US(){Qa=Ip.current,Kt(Vl),Kt(Ip)}var er=ha(null),vr=null;function xi(e){var t=e.alternate;Je(St,St.current&1),Je(er,e),vr===null&&(t===null||Vl.current!==null||t.memoizedState!==null)&&(vr=e)}function Ox(e){Je(St,St.current),Je(er,e),vr===null&&(vr=e)}function oR(e){e.tag===22?(Je(St,St.current),Je(er,e),vr===null&&(vr=e)):Si()}function Si(){Je(St,St.current),Je(er,er.current)}function Vn(e){Kt(er),vr===e&&(vr=null),Kt(St)}var St=ha(0);function Bp(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Hx(n)||qx(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ya=0,Se=null,Ge=null,Nt=null,Up=!1,bl=!1,ao=!1,Fp=0,Sf=0,xl=null,p8=0;function mt(){throw Error(U(321))}function FS(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jn(e[n],t[n]))return!1;return!0}function VS(e,t,n,r,a,i){return Ya=i,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,he.H=e===null||e.memoizedState===null?zR:ew,ao=!1,i=n(r,a),ao=!1,bl&&(i=cR(t,n,r,a)),lR(e),i}function lR(e){he.H=wf;var t=Ge!==null&&Ge.next!==null;if(Ya=0,Nt=Ge=Se=null,Up=!1,Sf=0,xl=null,t)throw Error(U(300));e===null||_t||(e=e.dependencies,e!==null&&Lp(e)&&(_t=!0))}function cR(e,t,n,r){Se=e;var a=0;do{if(bl&&(xl=null),Sf=0,bl=!1,25<=a)throw Error(U(301));if(a+=1,Nt=Ge=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}he.H=IR,i=t(n,r)}while(bl);return i}function m8(){var e=he.H,t=e.useState()[0];return t=typeof t.then=="function"?Rd(t):t,e=e.useState()[0],(Ge!==null?Ge.memoizedState:null)!==e&&(Se.flags|=1024),t}function HS(){var e=Fp!==0;return Fp=0,e}function qS(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function KS(e){if(Up){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Up=!1}Ya=0,Nt=Ge=Se=null,bl=!1,Sf=Fp=0,xl=null}function hn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nt===null?Se.memoizedState=Nt=e:Nt=Nt.next=e,Nt}function jt(){if(Ge===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Ge.next;var t=Nt===null?Se.memoizedState:Nt.next;if(t!==null)Nt=t,Ge=e;else{if(e===null)throw Se.alternate===null?Error(U(467)):Error(U(310));Ge=e,e={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},Nt===null?Se.memoizedState=Nt=e:Nt=Nt.next=e}return Nt}function Ly(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rd(e){var t=Sf;return Sf+=1,xl===null&&(xl=[]),e=nR(xl,e,t),t=Se,(Nt===null?t.memoizedState:Nt.next)===null&&(t=t.alternate,he.H=t===null||t.memoizedState===null?zR:ew),e}function zy(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Rd(e);if(e.$$typeof===Ma)return nn(e)}throw Error(U(438,String(e)))}function GS(e){var t=null,n=Se.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Se.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Ly(),Se.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=eI;return t.index++,n}function Wa(e,t){return typeof t=="function"?t(e):t}function op(e){var t=jt();return YS(t,Ge,e)}function YS(e,t,n){var r=e.queue;if(r===null)throw Error(U(311));r.lastRenderedReducer=n;var a=e.baseQueue,i=r.pending;if(i!==null){if(a!==null){var s=a.next;a.next=i.next,i.next=s}t.baseQueue=a=i,r.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var o=s=null,l=null,u=t,f=!1;do{var d=u.lane&-536870913;if(d!==u.lane?(Ee&d)===d:(Ya&d)===d){var h=u.revertLane;if(h===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===Fl&&(f=!0);else if((Ya&h)===h){u=u.next,h===Fl&&(f=!0);continue}else d={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(o=l=d,s=i):l=l.next=d,Se.lanes|=h,ts|=h;d=u.action,ao&&n(i,d),i=u.hasEagerState?u.eagerState:n(i,d)}else h={lane:d,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(o=l=h,s=i):l=l.next=h,Se.lanes|=d,ts|=d;u=u.next}while(u!==null&&u!==t);if(l===null?s=i:l.next=o,!Jn(i,e.memoizedState)&&(_t=!0,f&&(n=gl,n!==null)))throw n;e.memoizedState=i,e.baseState=s,e.baseQueue=l,r.lastRenderedState=i}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Ov(e){var t=jt(),n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do i=e(i,s.action),s=s.next;while(s!==a);Jn(i,t.memoizedState)||(_t=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function uR(e,t,n){var r=Se,a=jt(),i=Ce;if(i){if(n===void 0)throw Error(U(407));n=n()}else n=t();var s=!Jn((Ge||a).memoizedState,n);if(s&&(a.memoizedState=n,_t=!0),a=a.queue,WS(hR.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||Nt!==null&&Nt.memoizedState.tag&1){if(r.flags|=2048,Hl(9,{destroy:void 0},dR.bind(null,r,a,n,t),null),We===null)throw Error(U(349));i||Ya&127||fR(r,t,n)}return n}function fR(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t=Ly(),Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function dR(e,t,n,r){t.value=n,t.getSnapshot=r,pR(t)&&mR(e)}function hR(e,t,n){return n(function(){pR(t)&&mR(e)})}function pR(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jn(e,n)}catch{return!0}}function mR(e){var t=So(e,2);t!==null&&_n(t,e,2)}function Nx(e){var t=hn();if(typeof e=="function"){var n=e;if(e=n(),ao){Mi(!0);try{n()}finally{Mi(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wa,lastRenderedState:e},t}function yR(e,t,n,r){return e.baseState=n,YS(e,Ge,typeof r=="function"?r:Wa)}function y8(e,t,n,r,a){if(By(e))throw Error(U(485));if(e=t.action,e!==null){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){i.listeners.push(s)}};he.T!==null?n(!0):i.isTransition=!1,r(i),n=t.pending,n===null?(i.next=t.pending=i,gR(t,i)):(i.next=n.next,t.pending=n.next=i)}}function gR(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var i=he.T,s={};he.T=s;try{var o=n(a,r),l=he.S;l!==null&&l(s,o),y2(e,t,o)}catch(u){Ex(e,t,u)}finally{i!==null&&s.types!==null&&(i.types=s.types),he.T=i}}else try{i=n(a,r),y2(e,t,i)}catch(u){Ex(e,t,u)}}function y2(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){g2(e,t,r)},function(r){return Ex(e,t,r)}):g2(e,t,n)}function g2(e,t,n){t.status="fulfilled",t.value=n,vR(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,gR(e,n)))}function Ex(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,vR(t),t=t.next;while(t!==r)}e.action=null}function vR(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function bR(e,t){return t}function v2(e,t){if(Ce){var n=We.formState;if(n!==null){e:{var r=Se;if(Ce){if(at){t:{for(var a=at,i=mr;a.nodeType!==8;){if(!i){a=null;break t}if(a=br(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){at=br(a.nextSibling),r=a.data==="F!";break e}}Ji(r)}r=!1}r&&(t=n[0])}}return n=hn(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bR,lastRenderedState:t},n.queue=r,n=kR.bind(null,Se,r),r.dispatch=n,r=Nx(!1),i=JS.bind(null,Se,!1,r.queue),r=hn(),a={state:t,dispatch:null,action:e,pending:null},r.queue=a,n=y8.bind(null,Se,a,i,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function b2(e){var t=jt();return xR(t,Ge,e)}function xR(e,t,n){if(t=YS(e,t,bR)[0],e=op(Wa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Rd(t)}catch(s){throw s===Rc?$y:s}else r=t;t=jt();var a=t.queue,i=a.dispatch;return n!==t.memoizedState&&(Se.flags|=2048,Hl(9,{destroy:void 0},g8.bind(null,a,n),null)),[r,i,e]}function g8(e,t){e.action=t}function x2(e){var t=jt(),n=Ge;if(n!==null)return xR(t,n,e);jt(),t=t.memoizedState,n=jt();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Hl(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Se.updateQueue,t===null&&(t=Ly(),Se.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function SR(){return jt().memoizedState}function lp(e,t,n,r){var a=hn();Se.flags|=e,a.memoizedState=Hl(1|t,{destroy:void 0},n,r===void 0?null:r)}function Iy(e,t,n,r){var a=jt();r=r===void 0?null:r;var i=a.memoizedState.inst;Ge!==null&&r!==null&&FS(r,Ge.memoizedState.deps)?a.memoizedState=Hl(t,i,n,r):(Se.flags|=e,a.memoizedState=Hl(1|t,i,n,r))}function S2(e,t){lp(8390656,8,e,t)}function WS(e,t){Iy(2048,8,e,t)}function v8(e){Se.flags|=4;var t=Se.updateQueue;if(t===null)t=Ly(),Se.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function wR(e){var t=jt().memoizedState;return v8({ref:t,nextImpl:e}),function(){if(Me&2)throw Error(U(440));return t.impl.apply(void 0,arguments)}}function jR(e,t){return Iy(4,2,e,t)}function AR(e,t){return Iy(4,4,e,t)}function OR(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function NR(e,t,n){n=n!=null?n.concat([e]):null,Iy(4,4,OR.bind(null,t,e),n)}function XS(){}function ER(e,t){var n=jt();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&FS(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function TR(e,t){var n=jt();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&FS(t,r[1]))return r[0];if(r=e(),ao){Mi(!0);try{e()}finally{Mi(!1)}}return n.memoizedState=[r,t],r}function QS(e,t,n){return n===void 0||Ya&1073741824&&!(Ee&261930)?e.memoizedState=t:(e.memoizedState=n,e=yD(),Se.lanes|=e,ts|=e,n)}function CR(e,t,n,r){return Jn(n,t)?n:Vl.current!==null?(e=QS(e,n,r),Jn(e,t)||(_t=!0),e):!(Ya&42)||Ya&1073741824&&!(Ee&261930)?(_t=!0,e.memoizedState=n):(e=yD(),Se.lanes|=e,ts|=e,t)}function _R(e,t,n,r,a){var i=De.p;De.p=i!==0&&8>i?i:8;var s=he.T,o={};he.T=o,JS(e,!1,t,n);try{var l=a(),u=he.S;if(u!==null&&u(o,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var f=h8(l,r);Ku(e,t,f,Xn(e))}else Ku(e,t,r,Xn(e))}catch(d){Ku(e,t,{then:function(){},status:"rejected",reason:d},Xn())}finally{De.p=i,s!==null&&o.types!==null&&(s.types=o.types),he.T=s}}function b8(){}function Tx(e,t,n,r){if(e.tag!==5)throw Error(U(476));var a=PR(e).queue;_R(e,a,t,qs,n===null?b8:function(){return MR(e),n(r)})}function PR(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:qs,baseState:qs,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wa,lastRenderedState:qs},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function MR(e){var t=PR(e);t.next===null&&(t=e.alternate.memoizedState),Ku(e,t.next.queue,{},Xn())}function ZS(){return nn(Of)}function RR(){return jt().memoizedState}function DR(){return jt().memoizedState}function x8(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Xn();e=Ui(n);var r=Fi(t,e,n);r!==null&&(_n(r,t,n),Vu(r,t,n)),t={cache:LS()},e.payload=t;return}t=t.return}}function S8(e,t,n){var r=Xn();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},By(e)?$R(t,n):(n=RS(e,t,n,r),n!==null&&(_n(n,e,r),LR(n,t,r)))}function kR(e,t,n){var r=Xn();Ku(e,t,n,r)}function Ku(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(By(e))$R(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,o=i(s,n);if(a.hasEagerState=!0,a.eagerState=o,Jn(o,s))return ky(e,t,a,0),We===null&&Dy(),!1}catch{}finally{}if(n=RS(e,t,a,r),n!==null)return _n(n,e,r),LR(n,t,r),!0}return!1}function JS(e,t,n,r){if(r={lane:2,revertLane:lw(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},By(e)){if(t)throw Error(U(479))}else t=RS(e,n,r,2),t!==null&&_n(t,e,2)}function By(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function $R(e,t){bl=Up=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function LR(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wM(e,n)}}var wf={readContext:nn,use:zy,useCallback:mt,useContext:mt,useEffect:mt,useImperativeHandle:mt,useLayoutEffect:mt,useInsertionEffect:mt,useMemo:mt,useReducer:mt,useRef:mt,useState:mt,useDebugValue:mt,useDeferredValue:mt,useTransition:mt,useSyncExternalStore:mt,useId:mt,useHostTransitionStatus:mt,useFormState:mt,useActionState:mt,useOptimistic:mt,useMemoCache:mt,useCacheRefresh:mt};wf.useEffectEvent=mt;var zR={readContext:nn,use:zy,useCallback:function(e,t){return hn().memoizedState=[e,t===void 0?null:t],e},useContext:nn,useEffect:S2,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,lp(4194308,4,OR.bind(null,t,e),n)},useLayoutEffect:function(e,t){return lp(4194308,4,e,t)},useInsertionEffect:function(e,t){lp(4,2,e,t)},useMemo:function(e,t){var n=hn();t=t===void 0?null:t;var r=e();if(ao){Mi(!0);try{e()}finally{Mi(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=hn();if(n!==void 0){var a=n(t);if(ao){Mi(!0);try{n(t)}finally{Mi(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=S8.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=hn();return e={current:e},t.memoizedState=e},useState:function(e){e=Nx(e);var t=e.queue,n=kR.bind(null,Se,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:XS,useDeferredValue:function(e,t){var n=hn();return QS(n,e,t)},useTransition:function(){var e=Nx(!1);return e=_R.bind(null,Se,e.queue,!0,!1),hn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Se,a=hn();if(Ce){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),We===null)throw Error(U(349));Ee&127||fR(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,S2(hR.bind(null,r,i,e),[e]),r.flags|=2048,Hl(9,{destroy:void 0},dR.bind(null,r,i,n,t),null),n},useId:function(){var e=hn(),t=We.identifierPrefix;if(Ce){var n=Zr,r=Qr;n=(r&~(1<<32-Wn(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Fp++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=p8++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ZS,useFormState:v2,useActionState:v2,useOptimistic:function(e){var t=hn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=JS.bind(null,Se,!0,n),n.dispatch=t,[e,t]},useMemoCache:GS,useCacheRefresh:function(){return hn().memoizedState=x8.bind(null,Se)},useEffectEvent:function(e){var t=hn(),n={impl:e};return t.memoizedState=n,function(){if(Me&2)throw Error(U(440));return n.impl.apply(void 0,arguments)}}},ew={readContext:nn,use:zy,useCallback:ER,useContext:nn,useEffect:WS,useImperativeHandle:NR,useInsertionEffect:jR,useLayoutEffect:AR,useMemo:TR,useReducer:op,useRef:SR,useState:function(){return op(Wa)},useDebugValue:XS,useDeferredValue:function(e,t){var n=jt();return CR(n,Ge.memoizedState,e,t)},useTransition:function(){var e=op(Wa)[0],t=jt().memoizedState;return[typeof e=="boolean"?e:Rd(e),t]},useSyncExternalStore:uR,useId:RR,useHostTransitionStatus:ZS,useFormState:b2,useActionState:b2,useOptimistic:function(e,t){var n=jt();return yR(n,Ge,e,t)},useMemoCache:GS,useCacheRefresh:DR};ew.useEffectEvent=wR;var IR={readContext:nn,use:zy,useCallback:ER,useContext:nn,useEffect:WS,useImperativeHandle:NR,useInsertionEffect:jR,useLayoutEffect:AR,useMemo:TR,useReducer:Ov,useRef:SR,useState:function(){return Ov(Wa)},useDebugValue:XS,useDeferredValue:function(e,t){var n=jt();return Ge===null?QS(n,e,t):CR(n,Ge.memoizedState,e,t)},useTransition:function(){var e=Ov(Wa)[0],t=jt().memoizedState;return[typeof e=="boolean"?e:Rd(e),t]},useSyncExternalStore:uR,useId:RR,useHostTransitionStatus:ZS,useFormState:x2,useActionState:x2,useOptimistic:function(e,t){var n=jt();return Ge!==null?yR(n,Ge,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:GS,useCacheRefresh:DR};IR.useEffectEvent=wR;function Nv(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:st({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Cx={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Xn(),a=Ui(r);a.payload=t,n!=null&&(a.callback=n),t=Fi(e,a,r),t!==null&&(_n(t,e,r),Vu(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Xn(),a=Ui(r);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Fi(e,a,r),t!==null&&(_n(t,e,r),Vu(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xn(),r=Ui(n);r.tag=2,t!=null&&(r.callback=t),t=Fi(e,r,n),t!==null&&(_n(t,e,n),Vu(t,e,n))}};function w2(e,t,n,r,a,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!gf(n,r)||!gf(a,i):!0}function j2(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Cx.enqueueReplaceState(t,t.state,null)}function io(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=st({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function BR(e){Dp(e)}function UR(e){console.error(e)}function FR(e){Dp(e)}function Vp(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function A2(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function _x(e,t,n){return n=Ui(n),n.tag=3,n.payload={element:null},n.callback=function(){Vp(e,t)},n}function VR(e){return e=Ui(e),e.tag=3,e}function HR(e,t,n,r){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var i=r.value;e.payload=function(){return a(i)},e.callback=function(){A2(t,n,r)}}var s=n.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){A2(t,n,r),typeof a!="function"&&(Vi===null?Vi=new Set([this]):Vi.add(this));var o=r.stack;this.componentDidCatch(r.value,{componentStack:o!==null?o:""})})}function w8(e,t,n,r,a){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&Mc(t,n,a,!0),n=er.current,n!==null){switch(n.tag){case 31:case 13:return vr===null?Yp():n.alternate===null&&bt===0&&(bt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===zp?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Lv(e,r,a)),!1;case 22:return n.flags|=65536,r===zp?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Lv(e,r,a)),!1}throw Error(U(435,n.tag))}return Lv(e,r,a),Yp(),!1}if(Ce)return t=er.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==gx&&(e=Error(U(422),{cause:r}),bf(pr(e,n)))):(r!==gx&&(t=Error(U(423),{cause:r}),bf(pr(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=pr(r,n),a=_x(e.stateNode,r,a),Av(e,a),bt!==4&&(bt=2)),!1;var i=Error(U(520),{cause:r});if(i=pr(i,n),Wu===null?Wu=[i]:Wu.push(i),bt!==4&&(bt=2),t===null)return!0;r=pr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=_x(n.stateNode,r,e),Av(n,e),!1;case 1:if(t=n.type,i=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Vi===null||!Vi.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,a=VR(a),HR(a,e,n,r),Av(n,a),!1}n=n.return}while(n!==null);return!1}var tw=Error(U(461)),_t=!1;function Qt(e,t,n,r){t.child=e===null?aR(t,null,n,r):ro(t,e.child,n,r)}function O2(e,t,n,r,a){n=n.render;var i=t.ref;if("ref"in r){var s={};for(var o in r)o!=="ref"&&(s[o]=r[o])}else s=r;return no(t),r=VS(e,t,n,s,i,a),o=HS(),e!==null&&!_t?(qS(e,t,a),Xa(e,t,a)):(Ce&&o&&kS(t),t.flags|=1,Qt(e,t,r,a),t.child)}function N2(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!DS(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,qR(e,t,i,r,a)):(e=ip(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!nw(e,a)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:gf,n(s,r)&&e.ref===t.ref)return Xa(e,t,a)}return t.flags|=1,e=Ia(i,r),e.ref=t.ref,e.return=t,t.child=e}function qR(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(gf(i,r)&&e.ref===t.ref)if(_t=!1,t.pendingProps=r=i,nw(e,a))e.flags&131072&&(_t=!0);else return t.lanes=e.lanes,Xa(e,t,a)}return Px(e,t,n,r,a)}function KR(e,t,n,r){var a=r.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if(t.flags&128){if(i=i!==null?i.baseLanes|n:n,e!==null){for(r=t.child=e.child,a=0;r!==null;)a=a|r.lanes|r.childLanes,r=r.sibling;r=a&~i}else r=0,t.child=null;return E2(e,t,i,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&sp(t,i!==null?i.cachePool:null),i!==null?m2(t,i):Ax(),oR(t);else return r=t.lanes=536870912,E2(e,t,i!==null?i.baseLanes|n:n,n,r)}else i!==null?(sp(t,i.cachePool),m2(t,i),Si(),t.memoizedState=null):(e!==null&&sp(t,null),Ax(),Si());return Qt(e,t,a,n),t.child}function _u(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function E2(e,t,n,r,a){var i=zS();return i=i===null?null:{parent:Tt._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&sp(t,null),Ax(),oR(t),e!==null&&Mc(e,t,r,!0),t.childLanes=a,null}function cp(e,t){return t=Hp({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function T2(e,t,n){return ro(t,e.child,null,n),e=cp(t,t.pendingProps),e.flags|=2,Vn(t),t.memoizedState=null,e}function j8(e,t,n){var r=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ce){if(r.mode==="hidden")return e=cp(t,r),t.lanes=536870912,_u(null,e);if(Ox(t),(e=at)?(e=zD(e,mr),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zi!==null?{id:Qr,overflow:Zr}:null,retryLane:536870912,hydrationErrors:null},n=QM(e),n.return=t,t.child=n,en=t,at=null)):e=null,e===null)throw Ji(t);return t.lanes=536870912,null}return cp(t,r)}var i=e.memoizedState;if(i!==null){var s=i.dehydrated;if(Ox(t),a)if(t.flags&256)t.flags&=-257,t=T2(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(U(558));else if(_t||Mc(e,t,n,!1),a=(n&e.childLanes)!==0,_t||a){if(r=We,r!==null&&(s=jM(r,n),s!==0&&s!==i.retryLane))throw i.retryLane=s,So(e,s),_n(r,e,s),tw;Yp(),t=T2(e,t,n)}else e=i.treeContext,at=br(s.nextSibling),en=t,Ce=!0,Bi=null,mr=!1,e!==null&&JM(t,e),t=cp(t,r),t.flags|=4096;return t}return e=Ia(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function up(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(U(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Px(e,t,n,r,a){return no(t),n=VS(e,t,n,r,void 0,a),r=HS(),e!==null&&!_t?(qS(e,t,a),Xa(e,t,a)):(Ce&&r&&kS(t),t.flags|=1,Qt(e,t,n,a),t.child)}function C2(e,t,n,r,a,i){return no(t),t.updateQueue=null,n=cR(t,r,n,a),lR(e),r=HS(),e!==null&&!_t?(qS(e,t,i),Xa(e,t,i)):(Ce&&r&&kS(t),t.flags|=1,Qt(e,t,n,i),t.child)}function _2(e,t,n,r,a){if(no(t),t.stateNode===null){var i=el,s=n.contextType;typeof s=="object"&&s!==null&&(i=nn(s)),i=new n(r,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Cx,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=r,i.state=t.memoizedState,i.refs={},BS(t),s=n.contextType,i.context=typeof s=="object"&&s!==null?nn(s):el,i.state=t.memoizedState,s=n.getDerivedStateFromProps,typeof s=="function"&&(Nv(t,n,s,r),i.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(s=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),s!==i.state&&Cx.enqueueReplaceState(i,i.state,null),qu(t,r,i,a),Hu(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){i=t.stateNode;var o=t.memoizedProps,l=io(n,o);i.props=l;var u=i.context,f=n.contextType;s=el,typeof f=="object"&&f!==null&&(s=nn(f));var d=n.getDerivedStateFromProps;f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o||u!==s)&&j2(t,i,r,s),gi=!1;var h=t.memoizedState;i.state=h,qu(t,r,i,a),Hu(),u=t.memoizedState,o||h!==u||gi?(typeof d=="function"&&(Nv(t,n,d,r),u=t.memoizedState),(l=gi||w2(t,n,l,r,h,u,s))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=s,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,wx(e,t),s=t.memoizedProps,f=io(n,s),i.props=f,d=t.pendingProps,h=i.context,u=n.contextType,l=el,typeof u=="object"&&u!==null&&(l=nn(u)),o=n.getDerivedStateFromProps,(u=typeof o=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==d||h!==l)&&j2(t,i,r,l),gi=!1,h=t.memoizedState,i.state=h,qu(t,r,i,a),Hu();var p=t.memoizedState;s!==d||h!==p||gi||e!==null&&e.dependencies!==null&&Lp(e.dependencies)?(typeof o=="function"&&(Nv(t,n,o,r),p=t.memoizedState),(f=gi||w2(t,n,f,r,h,p,l)||e!==null&&e.dependencies!==null&&Lp(e.dependencies))?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,p,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,p,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=l,r=f):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,up(e,t),r=(t.flags&128)!==0,i||r?(i=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&r?(t.child=ro(t,e.child,null,a),t.child=ro(t,null,n,a)):Qt(e,t,n,a),t.memoizedState=i.state,e=t.child):e=Xa(e,t,a),e}function P2(e,t,n,r){return to(),t.flags|=256,Qt(e,t,n,r),t.child}var Ev={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Tv(e){return{baseLanes:e,cachePool:tR()}}function Cv(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Kn),e}function GR(e,t,n){var r=t.pendingProps,a=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(St.current&2)!==0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ce){if(a?xi(t):Si(),(e=at)?(e=zD(e,mr),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zi!==null?{id:Qr,overflow:Zr}:null,retryLane:536870912,hydrationErrors:null},n=QM(e),n.return=t,t.child=n,en=t,at=null)):e=null,e===null)throw Ji(t);return qx(e)?t.lanes=32:t.lanes=536870912,null}var o=r.children;return r=r.fallback,a?(Si(),a=t.mode,o=Hp({mode:"hidden",children:o},a),r=Ks(r,a,n,null),o.return=t,r.return=t,o.sibling=r,t.child=o,r=t.child,r.memoizedState=Tv(n),r.childLanes=Cv(e,s,n),t.memoizedState=Ev,_u(null,r)):(xi(t),Mx(t,o))}var l=e.memoizedState;if(l!==null&&(o=l.dehydrated,o!==null)){if(i)t.flags&256?(xi(t),t.flags&=-257,t=_v(e,t,n)):t.memoizedState!==null?(Si(),t.child=e.child,t.flags|=128,t=null):(Si(),o=r.fallback,a=t.mode,r=Hp({mode:"visible",children:r.children},a),o=Ks(o,a,n,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,ro(t,e.child,null,n),r=t.child,r.memoizedState=Tv(n),r.childLanes=Cv(e,s,n),t.memoizedState=Ev,t=_u(null,r));else if(xi(t),qx(o)){if(s=o.nextSibling&&o.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(U(419)),r.stack="",r.digest=s,bf({value:r,source:null,stack:null}),t=_v(e,t,n)}else if(_t||Mc(e,t,n,!1),s=(n&e.childLanes)!==0,_t||s){if(s=We,s!==null&&(r=jM(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,So(e,r),_n(s,e,r),tw;Hx(o)||Yp(),t=_v(e,t,n)}else Hx(o)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,at=br(o.nextSibling),en=t,Ce=!0,Bi=null,mr=!1,e!==null&&JM(t,e),t=Mx(t,r.children),t.flags|=4096);return t}return a?(Si(),o=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=Ia(l,{mode:"hidden",children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u!==null?o=Ia(u,o):(o=Ks(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,_u(null,r),r=t.child,o=e.child.memoizedState,o===null?o=Tv(n):(a=o.cachePool,a!==null?(l=Tt._currentValue,a=a.parent!==l?{parent:l,pool:l}:a):a=tR(),o={baseLanes:o.baseLanes|n,cachePool:a}),r.memoizedState=o,r.childLanes=Cv(e,s,n),t.memoizedState=Ev,_u(e.child,r)):(xi(t),n=e.child,e=n.sibling,n=Ia(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Mx(e,t){return t=Hp({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Hp(e,t){return e=Hn(22,e,null,t),e.lanes=0,e}function _v(e,t,n){return ro(t,e.child,null,n),e=Mx(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function M2(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),bx(e.return,t,n)}function Pv(e,t,n,r,a,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,treeForkCount:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=a,s.treeForkCount=i)}function YR(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;r=r.children;var s=St.current,o=(s&2)!==0;if(o?(s=s&1|2,t.flags|=128):s&=1,Je(St,s),Qt(e,t,r,n),r=Ce?vf:0,!o&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&M2(e,n,t);else if(e.tag===19)M2(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&Bp(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Pv(t,!1,a,n,i,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Bp(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Pv(t,!0,n,null,i,r);break;case"together":Pv(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Xa(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ts|=t.lanes,!(n&t.childLanes))if(e!==null){if(Mc(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,n=Ia(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ia(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function nw(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Lp(e)))}function A8(e,t,n){switch(t.tag){case 3:_p(t,t.stateNode.containerInfo),bi(t,Tt,e.memoizedState.cache),to();break;case 27:case 5:sx(t);break;case 4:_p(t,t.stateNode.containerInfo);break;case 10:bi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ox(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(xi(t),t.flags|=128,null):n&t.child.childLanes?GR(e,t,n):(xi(t),e=Xa(e,t,n),e!==null?e.sibling:null);xi(t);break;case 19:var a=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(Mc(e,t,n,!1),r=(n&t.childLanes)!==0),a){if(r)return YR(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Je(St,St.current),r)break;return null;case 22:return t.lanes=0,KR(e,t,n,t.pendingProps);case 24:bi(t,Tt,e.memoizedState.cache)}return Xa(e,t,n)}function WR(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)_t=!0;else{if(!nw(e,n)&&!(t.flags&128))return _t=!1,A8(e,t,n);_t=!!(e.flags&131072)}else _t=!1,Ce&&t.flags&1048576&&ZM(t,vf,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=bs(t.elementType),t.type=e,typeof e=="function")DS(e)?(r=io(e,r),t.tag=1,t=_2(null,t,e,r,n)):(t.tag=0,t=Px(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===xS){t.tag=11,t=O2(null,t,e,r,n);break e}else if(a===SS){t.tag=14,t=N2(null,t,e,r,n);break e}}throw t=ax(e)||e,Error(U(306,t,""))}}return t;case 0:return Px(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=io(r,t.pendingProps),_2(e,t,r,a,n);case 3:e:{if(_p(t,t.stateNode.containerInfo),e===null)throw Error(U(387));r=t.pendingProps;var i=t.memoizedState;a=i.element,wx(e,t),qu(t,r,null,n);var s=t.memoizedState;if(r=s.cache,bi(t,Tt,r),r!==i.cache&&xx(t,[Tt],n,!0),Hu(),r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=P2(e,t,r,n);break e}else if(r!==a){a=pr(Error(U(424)),t),bf(a),t=P2(e,t,r,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(at=br(e.firstChild),en=t,Ce=!0,Bi=null,mr=!0,n=aR(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(to(),r===a){t=Xa(e,t,n);break e}Qt(e,t,r,n)}t=t.child}return t;case 26:return up(e,t),e===null?(n=Z2(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ce||(n=t.type,e=t.pendingProps,r=Zp(Ii.current).createElement(n),r[Jt]=t,r[Mn]=e,rn(r,n,e),Ht(r),t.stateNode=r):t.memoizedState=Z2(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return sx(t),e===null&&Ce&&(r=t.stateNode=ID(t.type,t.pendingProps,Ii.current),en=t,mr=!0,a=at,as(t.type)?(Kx=a,at=br(r.firstChild)):at=a),Qt(e,t,t.pendingProps.children,n),up(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ce&&((a=r=at)&&(r=eB(r,t.type,t.pendingProps,mr),r!==null?(t.stateNode=r,en=t,at=br(r.firstChild),mr=!1,a=!0):a=!1),a||Ji(t)),sx(t),a=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,r=i.children,Fx(a,i)?r=null:s!==null&&Fx(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=VS(e,t,m8,null,null,n),Of._currentValue=a),up(e,t),Qt(e,t,r,n),t.child;case 6:return e===null&&Ce&&((e=n=at)&&(n=tB(n,t.pendingProps,mr),n!==null?(t.stateNode=n,en=t,at=null,e=!0):e=!1),e||Ji(t)),null;case 13:return GR(e,t,n);case 4:return _p(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ro(t,null,r,n):Qt(e,t,r,n),t.child;case 11:return O2(e,t,t.type,t.pendingProps,n);case 7:return Qt(e,t,t.pendingProps,n),t.child;case 8:return Qt(e,t,t.pendingProps.children,n),t.child;case 12:return Qt(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,bi(t,t.type,r.value),Qt(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,no(t),a=nn(a),r=r(a),t.flags|=1,Qt(e,t,r,n),t.child;case 14:return N2(e,t,t.type,t.pendingProps,n);case 15:return qR(e,t,t.type,t.pendingProps,n);case 19:return YR(e,t,n);case 31:return j8(e,t,n);case 22:return KR(e,t,n,t.pendingProps);case 24:return no(t),r=nn(Tt),e===null?(a=zS(),a===null&&(a=We,i=LS(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:r,cache:a},BS(t),bi(t,Tt,a)):(e.lanes&n&&(wx(e,t),qu(t,null,null,n),Hu()),a=e.memoizedState,i=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),bi(t,Tt,r)):(r=i.cache,bi(t,Tt,r),r!==a.cache&&xx(t,[Tt],n,!0))),Qt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(U(156,t.tag))}function xa(e){e.flags|=4}function Mv(e,t,n,r,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(bD())e.flags|=8192;else throw Ys=zp,IS}else e.flags&=-16777217}function R2(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!FD(t))if(bD())e.flags|=8192;else throw Ys=zp,IS}function xh(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?xM():536870912,e.lanes|=t,ql|=t)}function lu(e,t){if(!Ce)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function tt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function O8(e,t,n){var r=t.pendingProps;switch($S(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tt(t),null;case 1:return tt(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ba(Tt),Il(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ro(t)?xa(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,jv())),tt(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(xa(t),i!==null?(tt(t),R2(t,i)):(tt(t),Mv(t,a,null,r,n))):i?i!==e.memoizedState?(xa(t),tt(t),R2(t,i)):(tt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&xa(t),tt(t),Mv(t,a,e,r,n)),null;case 27:if(Pp(t),n=Ii.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&xa(t);else{if(!r){if(t.stateNode===null)throw Error(U(166));return tt(t),null}e=ia.current,Ro(t)?l2(t):(e=ID(a,r,n),t.stateNode=e,xa(t))}return tt(t),null;case 5:if(Pp(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&xa(t);else{if(!r){if(t.stateNode===null)throw Error(U(166));return tt(t),null}if(i=ia.current,Ro(t))l2(t);else{var s=Zp(Ii.current);switch(i){case 1:i=s.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=s.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=s.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof r.is=="string"?s.createElement("select",{is:r.is}):s.createElement("select"),r.multiple?i.multiple=!0:r.size&&(i.size=r.size);break;default:i=typeof r.is=="string"?s.createElement(a,{is:r.is}):s.createElement(a)}}i[Jt]=t,i[Mn]=r;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)i.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=i;e:switch(rn(i,a,r),a){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&xa(t)}}return tt(t),Mv(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&xa(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(U(166));if(e=Ii.current,Ro(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=en,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Jt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||kD(e.nodeValue,n)),e||Ji(t,!0)}else e=Zp(e).createTextNode(r),e[Jt]=t,t.stateNode=e}return tt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ro(t),n!==null){if(e===null){if(!r)throw Error(U(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(557));e[Jt]=t}else to(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;tt(t),e=!1}else n=jv(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Vn(t),t):(Vn(t),null);if(t.flags&128)throw Error(U(558))}return tt(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ro(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(U(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(U(317));a[Jt]=t}else to(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;tt(t),a=!1}else a=jv(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Vn(t),t):(Vn(t),null)}return Vn(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),i=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),i!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),xh(t,t.updateQueue),tt(t),null);case 4:return Il(),e===null&&cw(t.stateNode.containerInfo),tt(t),null;case 10:return Ba(t.type),tt(t),null;case 19:if(Kt(St),r=t.memoizedState,r===null)return tt(t),null;if(a=(t.flags&128)!==0,i=r.rendering,i===null)if(a)lu(r,!1);else{if(bt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Bp(e),i!==null){for(t.flags|=128,lu(r,!1),e=i.updateQueue,t.updateQueue=e,xh(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)XM(n,e),n=n.sibling;return Je(St,St.current&1|2),Ce&&Ta(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Gn()>Kp&&(t.flags|=128,a=!0,lu(r,!1),t.lanes=4194304)}else{if(!a)if(e=Bp(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,xh(t,e),lu(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!Ce)return tt(t),null}else 2*Gn()-r.renderingStartTime>Kp&&n!==536870912&&(t.flags|=128,a=!0,lu(r,!1),t.lanes=4194304);r.isBackwards?(i.sibling=t.child,t.child=i):(e=r.last,e!==null?e.sibling=i:t.child=i,r.last=i)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Gn(),e.sibling=null,n=St.current,Je(St,a?n&1|2:n&1),Ce&&Ta(t,r.treeForkCount),e):(tt(t),null);case 22:case 23:return Vn(t),US(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(tt(t),t.subtreeFlags&6&&(t.flags|=8192)):tt(t),n=t.updateQueue,n!==null&&xh(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&Kt(Gs),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ba(Tt),tt(t),null;case 25:return null;case 30:return null}throw Error(U(156,t.tag))}function N8(e,t){switch($S(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ba(Tt),Il(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Pp(t),null;case 31:if(t.memoizedState!==null){if(Vn(t),t.alternate===null)throw Error(U(340));to()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Vn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));to()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Kt(St),null;case 4:return Il(),null;case 10:return Ba(t.type),null;case 22:case 23:return Vn(t),US(),e!==null&&Kt(Gs),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ba(Tt),null;case 25:return null;default:return null}}function XR(e,t){switch($S(t),t.tag){case 3:Ba(Tt),Il();break;case 26:case 27:case 5:Pp(t);break;case 4:Il();break;case 31:t.memoizedState!==null&&Vn(t);break;case 13:Vn(t);break;case 19:Kt(St);break;case 10:Ba(t.type);break;case 22:case 23:Vn(t),US(),e!==null&&Kt(Gs);break;case 24:Ba(Tt)}}function Dd(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var i=n.create,s=n.inst;r=i(),s.destroy=r}n=n.next}while(n!==a)}}catch(o){Ue(t,t.return,o)}}function es(e,t,n){try{var r=t.updateQueue,a=r!==null?r.lastEffect:null;if(a!==null){var i=a.next;r=i;do{if((r.tag&e)===e){var s=r.inst,o=s.destroy;if(o!==void 0){s.destroy=void 0,a=t;var l=n,u=o;try{u()}catch(f){Ue(a,l,f)}}}r=r.next}while(r!==i)}}catch(f){Ue(t,t.return,f)}}function QR(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{sR(t,n)}catch(r){Ue(e,e.return,r)}}}function ZR(e,t,n){n.props=io(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Ue(e,t,r)}}function Gu(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(a){Ue(e,t,a)}}function Jr(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(a){Ue(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){Ue(e,t,a)}else n.current=null}function JR(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(a){Ue(e,e.return,a)}}function Rv(e,t,n){try{var r=e.stateNode;Y8(r,e.type,n,t),r[Mn]=t}catch(a){Ue(e,e.return,a)}}function eD(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&as(e.type)||e.tag===4}function Dv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||eD(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&as(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Rx(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ra));else if(r!==4&&(r===27&&as(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Rx(e,t,n),e=e.sibling;e!==null;)Rx(e,t,n),e=e.sibling}function qp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&as(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(qp(e,t,n),e=e.sibling;e!==null;)qp(e,t,n),e=e.sibling}function tD(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);rn(t,r,n),t[Jt]=e,t[Mn]=n}catch(i){Ue(e,e.return,i)}}var Pa=!1,Et=!1,kv=!1,D2=typeof WeakSet=="function"?WeakSet:Set,Vt=null;function E8(e,t){if(e=e.containerInfo,Bx=nm,e=FM(e),PS(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,u=0,f=0,d=e,h=null;t:for(;;){for(var p;d!==n||a!==0&&d.nodeType!==3||(o=s+a),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++u===a&&(o=s),h===i&&++f===r&&(l=s),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ux={focusedElem:e,selectionRange:n},nm=!1,Vt=t;Vt!==null;)if(t=Vt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Vt=e;else for(;Vt!==null;){switch(t=Vt,i=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&i!==null){e=void 0,n=t,a=i.memoizedProps,i=i.memoizedState,r=n.stateNode;try{var m=io(n.type,a);e=r.getSnapshotBeforeUpdate(m,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(g){Ue(n,n.return,g)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Vx(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Vx(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(U(163))}if(e=t.sibling,e!==null){e.return=t.return,Vt=e;break}Vt=t.return}}function nD(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:wa(e,n),r&4&&Dd(5,n);break;case 1:if(wa(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(s){Ue(n,n.return,s)}else{var a=io(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){Ue(n,n.return,s)}}r&64&&QR(n),r&512&&Gu(n,n.return);break;case 3:if(wa(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{sR(e,t)}catch(s){Ue(n,n.return,s)}}break;case 27:t===null&&r&4&&tD(n);case 26:case 5:wa(e,n),t===null&&r&4&&JR(n),r&512&&Gu(n,n.return);break;case 12:wa(e,n);break;case 31:wa(e,n),r&4&&iD(e,n);break;case 13:wa(e,n),r&4&&sD(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=$8.bind(null,n),nB(e,n))));break;case 22:if(r=n.memoizedState!==null||Pa,!r){t=t!==null&&t.memoizedState!==null||Et,a=Pa;var i=Et;Pa=r,(Et=t)&&!i?Oa(e,n,(n.subtreeFlags&8772)!==0):wa(e,n),Pa=a,Et=i}break;case 30:break;default:wa(e,n)}}function rD(e){var t=e.alternate;t!==null&&(e.alternate=null,rD(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&OS(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ct=null,Nn=!1;function Sa(e,t,n){for(n=n.child;n!==null;)aD(e,t,n),n=n.sibling}function aD(e,t,n){if(Yn&&typeof Yn.onCommitFiberUnmount=="function")try{Yn.onCommitFiberUnmount(Ed,n)}catch{}switch(n.tag){case 26:Et||Jr(n,t),Sa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Et||Jr(n,t);var r=ct,a=Nn;as(n.type)&&(ct=n.stateNode,Nn=!1),Sa(e,t,n),Qu(n.stateNode),ct=r,Nn=a;break;case 5:Et||Jr(n,t);case 6:if(r=ct,a=Nn,ct=null,Sa(e,t,n),ct=r,Nn=a,ct!==null)if(Nn)try{(ct.nodeType===9?ct.body:ct.nodeName==="HTML"?ct.ownerDocument.body:ct).removeChild(n.stateNode)}catch(i){Ue(n,t,i)}else try{ct.removeChild(n.stateNode)}catch(i){Ue(n,t,i)}break;case 18:ct!==null&&(Nn?(e=ct,G2(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Wl(e)):G2(ct,n.stateNode));break;case 4:r=ct,a=Nn,ct=n.stateNode.containerInfo,Nn=!0,Sa(e,t,n),ct=r,Nn=a;break;case 0:case 11:case 14:case 15:es(2,n,t),Et||es(4,n,t),Sa(e,t,n);break;case 1:Et||(Jr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&ZR(n,t,r)),Sa(e,t,n);break;case 21:Sa(e,t,n);break;case 22:Et=(r=Et)||n.memoizedState!==null,Sa(e,t,n),Et=r;break;default:Sa(e,t,n)}}function iD(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Wl(e)}catch(n){Ue(t,t.return,n)}}}function sD(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Wl(e)}catch(n){Ue(t,t.return,n)}}function T8(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new D2),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new D2),t;default:throw Error(U(435,e.tag))}}function Sh(e,t){var n=T8(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var a=L8.bind(null,e,r);r.then(a,a)}})}function wn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],i=e,s=t,o=s;e:for(;o!==null;){switch(o.tag){case 27:if(as(o.type)){ct=o.stateNode,Nn=!1;break e}break;case 5:ct=o.stateNode,Nn=!1;break e;case 3:case 4:ct=o.stateNode.containerInfo,Nn=!0;break e}o=o.return}if(ct===null)throw Error(U(160));aD(i,s,a),ct=null,Nn=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)oD(t,e),t=t.sibling}var Dr=null;function oD(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:wn(t,e),jn(e),r&4&&(es(3,e,e.return),Dd(3,e),es(5,e,e.return));break;case 1:wn(t,e),jn(e),r&512&&(Et||n===null||Jr(n,n.return)),r&64&&Pa&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=Dr;if(wn(t,e),jn(e),r&512&&(Et||n===null||Jr(n,n.return)),r&4){var i=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(r){case"title":i=a.getElementsByTagName("title")[0],(!i||i[_d]||i[Jt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(r),a.head.insertBefore(i,a.querySelector("head > title"))),rn(i,r,n),i[Jt]=e,Ht(i),r=i;break e;case"link":var s=eO("link","href",a).get(r+(n.href||""));if(s){for(var o=0;o<s.length;o++)if(i=s[o],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(o,1);break t}}i=a.createElement(r),rn(i,r,n),a.head.appendChild(i);break;case"meta":if(s=eO("meta","content",a).get(r+(n.content||""))){for(o=0;o<s.length;o++)if(i=s[o],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){s.splice(o,1);break t}}i=a.createElement(r),rn(i,r,n),a.head.appendChild(i);break;default:throw Error(U(468,r))}i[Jt]=e,Ht(i),r=i}e.stateNode=r}else tO(a,e.type,e.stateNode);else e.stateNode=J2(a,r,e.memoizedProps);else i!==r?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,r===null?tO(a,e.type,e.stateNode):J2(a,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Rv(e,e.memoizedProps,n.memoizedProps)}break;case 27:wn(t,e),jn(e),r&512&&(Et||n===null||Jr(n,n.return)),n!==null&&r&4&&Rv(e,e.memoizedProps,n.memoizedProps);break;case 5:if(wn(t,e),jn(e),r&512&&(Et||n===null||Jr(n,n.return)),e.flags&32){a=e.stateNode;try{Ul(a,"")}catch(m){Ue(e,e.return,m)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Rv(e,a,n!==null?n.memoizedProps:a)),r&1024&&(kv=!0);break;case 6:if(wn(t,e),jn(e),r&4){if(e.stateNode===null)throw Error(U(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(m){Ue(e,e.return,m)}}break;case 3:if(hp=null,a=Dr,Dr=Jp(t.containerInfo),wn(t,e),Dr=a,jn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Wl(t.containerInfo)}catch(m){Ue(e,e.return,m)}kv&&(kv=!1,lD(e));break;case 4:r=Dr,Dr=Jp(e.stateNode.containerInfo),wn(t,e),jn(e),Dr=r;break;case 12:wn(t,e),jn(e);break;case 31:wn(t,e),jn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Sh(e,r)));break;case 13:wn(t,e),jn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Uy=Gn()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Sh(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Pa,f=Et;if(Pa=u||a,Et=f||l,wn(t,e),Et=f,Pa=u,jn(e),r&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Pa||Et||xs(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(i=l.stateNode,a)s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{o=l.stateNode;var d=l.memoizedProps.style,h=d!=null&&d.hasOwnProperty("display")?d.display:null;o.style.display=h==null||typeof h=="boolean"?"":(""+h).trim()}}catch(m){Ue(l,l.return,m)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?"":l.memoizedProps}catch(m){Ue(l,l.return,m)}}}else if(t.tag===18){if(n===null){l=t;try{var p=l.stateNode;a?Y2(p,!0):Y2(l.stateNode,!1)}catch(m){Ue(l,l.return,m)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,Sh(e,n))));break;case 19:wn(t,e),jn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Sh(e,r)));break;case 30:break;case 21:break;default:wn(t,e),jn(e)}}function jn(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(eD(r)){n=r;break}r=r.return}if(n==null)throw Error(U(160));switch(n.tag){case 27:var a=n.stateNode,i=Dv(e);qp(e,i,a);break;case 5:var s=n.stateNode;n.flags&32&&(Ul(s,""),n.flags&=-33);var o=Dv(e);qp(e,o,s);break;case 3:case 4:var l=n.stateNode.containerInfo,u=Dv(e);Rx(e,u,l);break;default:throw Error(U(161))}}catch(f){Ue(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function lD(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;lD(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function wa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)nD(e,t.alternate,t),t=t.sibling}function xs(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:es(4,t,t.return),xs(t);break;case 1:Jr(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&ZR(t,t.return,n),xs(t);break;case 27:Qu(t.stateNode);case 26:case 5:Jr(t,t.return),xs(t);break;case 22:t.memoizedState===null&&xs(t);break;case 30:xs(t);break;default:xs(t)}e=e.sibling}}function Oa(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,a=e,i=t,s=i.flags;switch(i.tag){case 0:case 11:case 15:Oa(a,i,n),Dd(4,i);break;case 1:if(Oa(a,i,n),r=i,a=r.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(u){Ue(r,r.return,u)}if(r=i,a=r.updateQueue,a!==null){var o=r.stateNode;try{var l=a.shared.hiddenCallbacks;if(l!==null)for(a.shared.hiddenCallbacks=null,a=0;a<l.length;a++)iR(l[a],o)}catch(u){Ue(r,r.return,u)}}n&&s&64&&QR(i),Gu(i,i.return);break;case 27:tD(i);case 26:case 5:Oa(a,i,n),n&&r===null&&s&4&&JR(i),Gu(i,i.return);break;case 12:Oa(a,i,n);break;case 31:Oa(a,i,n),n&&s&4&&iD(a,i);break;case 13:Oa(a,i,n),n&&s&4&&sD(a,i);break;case 22:i.memoizedState===null&&Oa(a,i,n),Gu(i,i.return);break;case 30:break;default:Oa(a,i,n)}t=t.sibling}}function rw(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Md(n))}function aw(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Md(e))}function _r(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)cD(e,t,n,r),t=t.sibling}function cD(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:_r(e,t,n,r),a&2048&&Dd(9,t);break;case 1:_r(e,t,n,r);break;case 3:_r(e,t,n,r),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Md(e)));break;case 12:if(a&2048){_r(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,s=i.id,o=i.onPostCommit;typeof o=="function"&&o(s,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(l){Ue(t,t.return,l)}}else _r(e,t,n,r);break;case 31:_r(e,t,n,r);break;case 13:_r(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,s=t.alternate,t.memoizedState!==null?i._visibility&2?_r(e,t,n,r):Yu(e,t):i._visibility&2?_r(e,t,n,r):(i._visibility|=2,Ho(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),a&2048&&rw(s,t);break;case 24:_r(e,t,n,r),a&2048&&aw(t.alternate,t);break;default:_r(e,t,n,r)}}function Ho(e,t,n,r,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,s=t,o=n,l=r,u=s.flags;switch(s.tag){case 0:case 11:case 15:Ho(i,s,o,l,a),Dd(8,s);break;case 23:break;case 22:var f=s.stateNode;s.memoizedState!==null?f._visibility&2?Ho(i,s,o,l,a):Yu(i,s):(f._visibility|=2,Ho(i,s,o,l,a)),a&&u&2048&&rw(s.alternate,s);break;case 24:Ho(i,s,o,l,a),a&&u&2048&&aw(s.alternate,s);break;default:Ho(i,s,o,l,a)}t=t.sibling}}function Yu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:Yu(n,r),a&2048&&rw(r.alternate,r);break;case 24:Yu(n,r),a&2048&&aw(r.alternate,r);break;default:Yu(n,r)}t=t.sibling}}var Pu=8192;function Do(e,t,n){if(e.subtreeFlags&Pu)for(e=e.child;e!==null;)uD(e,t,n),e=e.sibling}function uD(e,t,n){switch(e.tag){case 26:Do(e,t,n),e.flags&Pu&&e.memoizedState!==null&&pB(n,Dr,e.memoizedState,e.memoizedProps);break;case 5:Do(e,t,n);break;case 3:case 4:var r=Dr;Dr=Jp(e.stateNode.containerInfo),Do(e,t,n),Dr=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Pu,Pu=16777216,Do(e,t,n),Pu=r):Do(e,t,n));break;default:Do(e,t,n)}}function fD(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function cu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Vt=r,hD(r,e)}fD(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)dD(e),e=e.sibling}function dD(e){switch(e.tag){case 0:case 11:case 15:cu(e),e.flags&2048&&es(9,e,e.return);break;case 3:cu(e);break;case 12:cu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,fp(e)):cu(e);break;default:cu(e)}}function fp(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Vt=r,hD(r,e)}fD(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:es(8,t,t.return),fp(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,fp(t));break;default:fp(t)}e=e.sibling}}function hD(e,t){for(;Vt!==null;){var n=Vt;switch(n.tag){case 0:case 11:case 15:es(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Md(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Vt=r;else e:for(n=e;Vt!==null;){r=Vt;var a=r.sibling,i=r.return;if(rD(r),r===n){Vt=null;break e}if(a!==null){a.return=i,Vt=a;break e}Vt=i}}}var C8={getCacheForType:function(e){var t=nn(Tt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return nn(Tt).controller.signal}},_8=typeof WeakMap=="function"?WeakMap:Map,Me=0,We=null,je=null,Ee=0,Be=0,zn=null,Di=!1,Dc=!1,iw=!1,Qa=0,bt=0,ts=0,Ws=0,sw=0,Kn=0,ql=0,Wu=null,En=null,Dx=!1,Uy=0,pD=0,Kp=1/0,Gp=null,Vi=null,kt=0,Hi=null,Kl=null,Ua=0,kx=0,$x=null,mD=null,Xu=0,Lx=null;function Xn(){return Me&2&&Ee!==0?Ee&-Ee:he.T!==null?lw():AM()}function yD(){if(Kn===0)if(!(Ee&536870912)||Ce){var e=hh;hh<<=1,!(hh&3932160)&&(hh=262144),Kn=e}else Kn=536870912;return e=er.current,e!==null&&(e.flags|=32),Kn}function _n(e,t,n){(e===We&&(Be===2||Be===9)||e.cancelPendingCommit!==null)&&(Gl(e,0),ki(e,Ee,Kn,!1)),Cd(e,n),(!(Me&2)||e!==We)&&(e===We&&(!(Me&2)&&(Ws|=n),bt===4&&ki(e,Ee,Kn,!1)),pa(e))}function gD(e,t,n){if(Me&6)throw Error(U(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Td(e,t),a=r?R8(e,t):$v(e,t,!0),i=r;do{if(a===0){Dc&&!r&&ki(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!P8(n)){a=$v(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var o=e;a=Wu;var l=o.current.memoizedState.isDehydrated;if(l&&(Gl(o,s).flags|=256),s=$v(o,s,!1),s!==2){if(iw&&!l){o.errorRecoveryDisabledLanes|=i,Ws|=i,a=4;break e}i=En,En=a,i!==null&&(En===null?En=i:En.push.apply(En,i))}a=s}if(i=!1,a!==2)continue}}if(a===1){Gl(e,0),ki(e,t,0,!0);break}e:{switch(r=e,i=a,i){case 0:case 1:throw Error(U(345));case 4:if((t&4194048)!==t)break;case 6:ki(r,t,Kn,!Di);break e;case 2:En=null;break;case 3:case 5:break;default:throw Error(U(329))}if((t&62914560)===t&&(a=Uy+300-Gn(),10<a)){if(ki(r,t,Kn,!Di),_y(r,0,!0)!==0)break e;Ua=t,r.timeoutHandle=LD(k2.bind(null,r,n,En,Gp,Dx,t,Kn,Ws,ql,Di,i,"Throttled",-0,0),a);break e}k2(r,n,En,Gp,Dx,t,Kn,Ws,ql,Di,i,null,-0,0)}}break}while(!0);pa(e)}function k2(e,t,n,r,a,i,s,o,l,u,f,d,h,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)===16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ra},uD(t,i,d);var m=(i&62914560)===i?Uy-Gn():(i&4194048)===i?pD-Gn():0;if(m=mB(d,m),m!==null){Ua=i,e.cancelPendingCommit=m(L2.bind(null,e,t,i,n,r,a,s,o,l,f,d,null,h,p)),ki(e,i,s,!u);return}}L2(e,t,i,n,r,a,s,o,l)}function P8(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var a=n[r],i=a.getSnapshot;a=a.value;try{if(!Jn(i(),a))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ki(e,t,n,r){t&=~sw,t&=~Ws,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var i=31-Wn(a),s=1<<i;r[i]=-1,a&=~s}n!==0&&SM(e,n,t)}function Fy(){return Me&6?!0:(kd(0),!1)}function ow(){if(je!==null){if(Be===0)var e=je.return;else e=je,Da=wo=null,KS(e),vl=null,xf=0,e=je;for(;e!==null;)XR(e.alternate,e),e=e.return;je=null}}function Gl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Q8(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ua=0,ow(),We=e,je=n=Ia(e.current,null),Ee=t,Be=0,zn=null,Di=!1,Dc=Td(e,t),iw=!1,ql=Kn=sw=Ws=ts=bt=0,En=Wu=null,Dx=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var a=31-Wn(r),i=1<<a;t|=e[a],r&=~i}return Qa=t,Dy(),n}function vD(e,t){Se=null,he.H=wf,t===Rc||t===$y?(t=h2(),Be=3):t===IS?(t=h2(),Be=4):Be=t===tw?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,zn=t,je===null&&(bt=1,Vp(e,pr(t,e.current)))}function bD(){var e=er.current;return e===null?!0:(Ee&4194048)===Ee?vr===null:(Ee&62914560)===Ee||Ee&536870912?e===vr:!1}function xD(){var e=he.H;return he.H=wf,e===null?wf:e}function SD(){var e=he.A;return he.A=C8,e}function Yp(){bt=4,Di||(Ee&4194048)!==Ee&&er.current!==null||(Dc=!0),!(ts&134217727)&&!(Ws&134217727)||We===null||ki(We,Ee,Kn,!1)}function $v(e,t,n){var r=Me;Me|=2;var a=xD(),i=SD();(We!==e||Ee!==t)&&(Gp=null,Gl(e,t)),t=!1;var s=bt;e:do try{if(Be!==0&&je!==null){var o=je,l=zn;switch(Be){case 8:ow(),s=6;break e;case 3:case 2:case 9:case 6:er.current===null&&(t=!0);var u=Be;if(Be=0,zn=null,rl(e,o,l,u),n&&Dc){s=0;break e}break;default:u=Be,Be=0,zn=null,rl(e,o,l,u)}}M8(),s=bt;break}catch(f){vD(e,f)}while(!0);return t&&e.shellSuspendCounter++,Da=wo=null,Me=r,he.H=a,he.A=i,je===null&&(We=null,Ee=0,Dy()),s}function M8(){for(;je!==null;)wD(je)}function R8(e,t){var n=Me;Me|=2;var r=xD(),a=SD();We!==e||Ee!==t?(Gp=null,Kp=Gn()+500,Gl(e,t)):Dc=Td(e,t);e:do try{if(Be!==0&&je!==null){t=je;var i=zn;t:switch(Be){case 1:Be=0,zn=null,rl(e,t,i,1);break;case 2:case 9:if(d2(i)){Be=0,zn=null,$2(t);break}t=function(){Be!==2&&Be!==9||We!==e||(Be=7),pa(e)},i.then(t,t);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:d2(i)?(Be=0,zn=null,$2(t)):(Be=0,zn=null,rl(e,t,i,7));break;case 5:var s=null;switch(je.tag){case 26:s=je.memoizedState;case 5:case 27:var o=je;if(s?FD(s):o.stateNode.complete){Be=0,zn=null;var l=o.sibling;if(l!==null)je=l;else{var u=o.return;u!==null?(je=u,Vy(u)):je=null}break t}}Be=0,zn=null,rl(e,t,i,5);break;case 6:Be=0,zn=null,rl(e,t,i,6);break;case 8:ow(),bt=6;break e;default:throw Error(U(462))}}D8();break}catch(f){vD(e,f)}while(!0);return Da=wo=null,he.H=r,he.A=a,Me=n,je!==null?0:(We=null,Ee=0,Dy(),bt)}function D8(){for(;je!==null&&!rI();)wD(je)}function wD(e){var t=WR(e.alternate,e,Qa);e.memoizedProps=e.pendingProps,t===null?Vy(e):je=t}function $2(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=C2(n,t,t.pendingProps,t.type,void 0,Ee);break;case 11:t=C2(n,t,t.pendingProps,t.type.render,t.ref,Ee);break;case 5:KS(t);default:XR(n,t),t=je=XM(t,Qa),t=WR(n,t,Qa)}e.memoizedProps=e.pendingProps,t===null?Vy(e):je=t}function rl(e,t,n,r){Da=wo=null,KS(t),vl=null,xf=0;var a=t.return;try{if(w8(e,a,t,n,Ee)){bt=1,Vp(e,pr(n,e.current)),je=null;return}}catch(i){if(a!==null)throw je=a,i;bt=1,Vp(e,pr(n,e.current)),je=null;return}t.flags&32768?(Ce||r===1?e=!0:Dc||Ee&536870912?e=!1:(Di=e=!0,(r===2||r===9||r===3||r===6)&&(r=er.current,r!==null&&r.tag===13&&(r.flags|=16384))),jD(t,e)):Vy(t)}function Vy(e){var t=e;do{if(t.flags&32768){jD(t,Di);return}e=t.return;var n=O8(t.alternate,t,Qa);if(n!==null){je=n;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);bt===0&&(bt=5)}function jD(e,t){do{var n=N8(e.alternate,e);if(n!==null){n.flags&=32767,je=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){je=e;return}je=e=n}while(e!==null);bt=6,je=null}function L2(e,t,n,r,a,i,s,o,l){e.cancelPendingCommit=null;do Hy();while(kt!==0);if(Me&6)throw Error(U(327));if(t!==null){if(t===e.current)throw Error(U(177));if(i=t.lanes|t.childLanes,i|=MS,hI(e,n,i,s,o,l),e===We&&(je=We=null,Ee=0),Kl=t,Hi=e,Ua=n,kx=i,$x=a,mD=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,z8(Mp,function(){return TD(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,t.subtreeFlags&13878||r){r=he.T,he.T=null,a=De.p,De.p=2,s=Me,Me|=4;try{E8(e,t,n)}finally{Me=s,De.p=a,he.T=r}}kt=1,AD(),OD(),ND()}}function AD(){if(kt===1){kt=0;var e=Hi,t=Kl,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=he.T,he.T=null;var r=De.p;De.p=2;var a=Me;Me|=4;try{oD(t,e);var i=Ux,s=FM(e.containerInfo),o=i.focusedElem,l=i.selectionRange;if(s!==o&&o&&o.ownerDocument&&UM(o.ownerDocument.documentElement,o)){if(l!==null&&PS(o)){var u=l.start,f=l.end;if(f===void 0&&(f=u),"selectionStart"in o)o.selectionStart=u,o.selectionEnd=Math.min(f,o.value.length);else{var d=o.ownerDocument||document,h=d&&d.defaultView||window;if(h.getSelection){var p=h.getSelection(),m=o.textContent.length,g=Math.min(l.start,m),v=l.end===void 0?g:Math.min(l.end,m);!p.extend&&g>v&&(s=v,v=g,g=s);var y=i2(o,g),b=i2(o,v);if(y&&b&&(p.rangeCount!==1||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==b.node||p.focusOffset!==b.offset)){var x=d.createRange();x.setStart(y.node,y.offset),p.removeAllRanges(),g>v?(p.addRange(x),p.extend(b.node,b.offset)):(x.setEnd(b.node,b.offset),p.addRange(x))}}}}for(d=[],p=o;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<d.length;o++){var w=d[o];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}nm=!!Bx,Ux=Bx=null}finally{Me=a,De.p=r,he.T=n}}e.current=t,kt=2}}function OD(){if(kt===2){kt=0;var e=Hi,t=Kl,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=he.T,he.T=null;var r=De.p;De.p=2;var a=Me;Me|=4;try{nD(e,t.alternate,t)}finally{Me=a,De.p=r,he.T=n}}kt=3}}function ND(){if(kt===4||kt===3){kt=0,aI();var e=Hi,t=Kl,n=Ua,r=mD;t.subtreeFlags&10256||t.flags&10256?kt=5:(kt=0,Kl=Hi=null,ED(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Vi=null),AS(n),t=t.stateNode,Yn&&typeof Yn.onCommitFiberRoot=="function")try{Yn.onCommitFiberRoot(Ed,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=he.T,a=De.p,De.p=2,he.T=null;try{for(var i=e.onRecoverableError,s=0;s<r.length;s++){var o=r[s];i(o.value,{componentStack:o.stack})}}finally{he.T=t,De.p=a}}Ua&3&&Hy(),pa(e),a=e.pendingLanes,n&261930&&a&42?e===Lx?Xu++:(Xu=0,Lx=e):Xu=0,kd(0)}}function ED(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Md(t)))}function Hy(){return AD(),OD(),ND(),TD()}function TD(){if(kt!==5)return!1;var e=Hi,t=kx;kx=0;var n=AS(Ua),r=he.T,a=De.p;try{De.p=32>n?32:n,he.T=null,n=$x,$x=null;var i=Hi,s=Ua;if(kt=0,Kl=Hi=null,Ua=0,Me&6)throw Error(U(331));var o=Me;if(Me|=4,dD(i.current),cD(i,i.current,s,n),Me=o,kd(0,!1),Yn&&typeof Yn.onPostCommitFiberRoot=="function")try{Yn.onPostCommitFiberRoot(Ed,i)}catch{}return!0}finally{De.p=a,he.T=r,ED(e,t)}}function z2(e,t,n){t=pr(n,t),t=_x(e.stateNode,t,2),e=Fi(e,t,2),e!==null&&(Cd(e,2),pa(e))}function Ue(e,t,n){if(e.tag===3)z2(e,e,n);else for(;t!==null;){if(t.tag===3){z2(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Vi===null||!Vi.has(r))){e=pr(n,e),n=VR(2),r=Fi(t,n,2),r!==null&&(HR(n,r,t,e),Cd(r,2),pa(r));break}}t=t.return}}function Lv(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new _8;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(iw=!0,a.add(n),e=k8.bind(null,e,t,n),t.then(e,e))}function k8(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,We===e&&(Ee&n)===n&&(bt===4||bt===3&&(Ee&62914560)===Ee&&300>Gn()-Uy?!(Me&2)&&Gl(e,0):sw|=n,ql===Ee&&(ql=0)),pa(e)}function CD(e,t){t===0&&(t=xM()),e=So(e,t),e!==null&&(Cd(e,t),pa(e))}function $8(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),CD(e,n)}function L8(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(U(314))}r!==null&&r.delete(t),CD(e,n)}function z8(e,t){return wS(e,t)}var Wp=null,qo=null,zx=!1,Xp=!1,zv=!1,$i=0;function pa(e){e!==qo&&e.next===null&&(qo===null?Wp=qo=e:qo=qo.next=e),Xp=!0,zx||(zx=!0,B8())}function kd(e,t){if(!zv&&Xp){zv=!0;do for(var n=!1,r=Wp;r!==null;){if(e!==0){var a=r.pendingLanes;if(a===0)var i=0;else{var s=r.suspendedLanes,o=r.pingedLanes;i=(1<<31-Wn(42|e)+1)-1,i&=a&~(s&~o),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,I2(r,i))}else i=Ee,i=_y(r,r===We?i:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(i&3)||Td(r,i)||(n=!0,I2(r,i));r=r.next}while(n);zv=!1}}function I8(){_D()}function _D(){Xp=zx=!1;var e=0;$i!==0&&X8()&&(e=$i);for(var t=Gn(),n=null,r=Wp;r!==null;){var a=r.next,i=PD(r,t);i===0?(r.next=null,n===null?Wp=a:n.next=a,a===null&&(qo=n)):(n=r,(e!==0||i&3)&&(Xp=!0)),r=a}kt!==0&&kt!==5||kd(e),$i!==0&&($i=0)}function PD(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var s=31-Wn(i),o=1<<s,l=a[s];l===-1?(!(o&n)||o&r)&&(a[s]=dI(o,t)):l<=t&&(e.expiredLanes|=o),i&=~o}if(t=We,n=Ee,n=_y(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Be===2||Be===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&dv(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Td(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&dv(r),AS(n)){case 2:case 8:n=vM;break;case 32:n=Mp;break;case 268435456:n=bM;break;default:n=Mp}return r=MD.bind(null,e),n=wS(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&dv(r),e.callbackPriority=2,e.callbackNode=null,2}function MD(e,t){if(kt!==0&&kt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Hy()&&e.callbackNode!==n)return null;var r=Ee;return r=_y(e,e===We?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(gD(e,r,t),PD(e,Gn()),e.callbackNode!=null&&e.callbackNode===n?MD.bind(null,e):null)}function I2(e,t){if(Hy())return null;gD(e,t,!0)}function B8(){Z8(function(){Me&6?wS(gM,I8):_D()})}function lw(){if($i===0){var e=Fl;e===0&&(e=dh,dh<<=1,!(dh&261888)&&(dh=256)),$i=e}return $i}function B2(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:np(""+e)}function U2(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function U8(e,t,n,r,a){if(t==="submit"&&n&&n.stateNode===a){var i=B2((a[Mn]||null).action),s=r.submitter;s&&(t=(t=s[Mn]||null)?B2(t.formAction):s.getAttribute("formAction"),t!==null&&(i=t,s=null));var o=new Py("action","action",null,r,a);e.push({event:o,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if($i!==0){var l=s?U2(a,s):new FormData(a);Tx(n,{pending:!0,data:l,method:a.method,action:i},null,l)}}else typeof i=="function"&&(o.preventDefault(),l=s?U2(a,s):new FormData(a),Tx(n,{pending:!0,data:l,method:a.method,action:i},i,l))},currentTarget:a}]})}}for(var Iv=0;Iv<yx.length;Iv++){var Bv=yx[Iv],F8=Bv.toLowerCase(),V8=Bv[0].toUpperCase()+Bv.slice(1);Vr(F8,"on"+V8)}Vr(HM,"onAnimationEnd");Vr(qM,"onAnimationIteration");Vr(KM,"onAnimationStart");Vr("dblclick","onDoubleClick");Vr("focusin","onFocus");Vr("focusout","onBlur");Vr(i8,"onTransitionRun");Vr(s8,"onTransitionStart");Vr(o8,"onTransitionCancel");Vr(GM,"onTransitionEnd");Bl("onMouseEnter",["mouseout","mouseover"]);Bl("onMouseLeave",["mouseout","mouseover"]);Bl("onPointerEnter",["pointerout","pointerover"]);Bl("onPointerLeave",["pointerout","pointerover"]);vo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));vo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));vo("onBeforeInput",["compositionend","keypress","textInput","paste"]);vo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));vo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));vo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jf="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(" "),H8=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(jf));function RD(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var o=r[s],l=o.instance,u=o.currentTarget;if(o=o.listener,l!==i&&a.isPropagationStopped())break e;i=o,a.currentTarget=u;try{i(a)}catch(f){Dp(f)}a.currentTarget=null,i=l}else for(s=0;s<r.length;s++){if(o=r[s],l=o.instance,u=o.currentTarget,o=o.listener,l!==i&&a.isPropagationStopped())break e;i=o,a.currentTarget=u;try{i(a)}catch(f){Dp(f)}a.currentTarget=null,i=l}}}}function we(e,t){var n=t[lx];n===void 0&&(n=t[lx]=new Set);var r=e+"__bubble";n.has(r)||(DD(t,e,2,!1),n.add(r))}function Uv(e,t,n){var r=0;t&&(r|=4),DD(n,e,r,t)}var wh="_reactListening"+Math.random().toString(36).slice(2);function cw(e){if(!e[wh]){e[wh]=!0,OM.forEach(function(n){n!=="selectionchange"&&(H8.has(n)||Uv(n,!1,e),Uv(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wh]||(t[wh]=!0,Uv("selectionchange",!1,t))}}function DD(e,t,n,r){switch(GD(t)){case 2:var a=vB;break;case 8:a=bB;break;default:a=hw}n=a.bind(null,t,n,e),a=void 0,!hx||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),r?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Fv(e,t,n,r,a){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var o=r.stateNode.containerInfo;if(o===a)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===a)return;s=s.return}for(;o!==null;){if(s=Yo(o),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=i=s;continue e}o=o.parentNode}}r=r.return}RM(function(){var u=i,f=ES(n),d=[];e:{var h=YM.get(e);if(h!==void 0){var p=Py,m=e;switch(e){case"keypress":if(ap(n)===0)break e;case"keydown":case"keyup":p=LI;break;case"focusin":m="focus",p=gv;break;case"focusout":m="blur",p=gv;break;case"beforeblur":case"afterblur":p=gv;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=WA;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=OI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=BI;break;case HM:case qM:case KM:p=TI;break;case GM:p=FI;break;case"scroll":case"scrollend":p=jI;break;case"wheel":p=HI;break;case"copy":case"cut":case"paste":p=_I;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=QA;break;case"toggle":case"beforetoggle":p=KI}var g=(t&4)!==0,v=!g&&(e==="scroll"||e==="scrollend"),y=g?h!==null?h+"Capture":null:h;g=[];for(var b=u,x;b!==null;){var w=b;if(x=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||x===null||y===null||(w=mf(b,y),w!=null&&g.push(Af(b,w,x))),v)break;b=b.return}0<g.length&&(h=new p(h,m,null,n,f),d.push({event:h,listeners:g}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==dx&&(m=n.relatedTarget||n.fromElement)&&(Yo(m)||m[_c]))break e;if((p||h)&&(h=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,p?(m=n.relatedTarget||n.toElement,p=u,m=m?Yo(m):null,m!==null&&(v=Nd(m),g=m.tag,m!==v||g!==5&&g!==27&&g!==6)&&(m=null)):(p=null,m=u),p!==m)){if(g=WA,w="onMouseLeave",y="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(g=QA,w="onPointerLeave",y="onPointerEnter",b="pointer"),v=p==null?h:Cu(p),x=m==null?h:Cu(m),h=new g(w,b+"leave",p,n,f),h.target=v,h.relatedTarget=x,w=null,Yo(f)===u&&(g=new g(y,b+"enter",m,n,f),g.target=x,g.relatedTarget=v,w=g),v=w,p&&m)t:{for(g=q8,y=p,b=m,x=0,w=y;w;w=g(w))x++;w=0;for(var S=b;S;S=g(S))w++;for(;0<x-w;)y=g(y),x--;for(;0<w-x;)b=g(b),w--;for(;x--;){if(y===b||b!==null&&y===b.alternate){g=y;break t}y=g(y),b=g(b)}g=null}else g=null;p!==null&&F2(d,h,p,g,!1),m!==null&&v!==null&&F2(d,v,m,g,!0)}}e:{if(h=u?Cu(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var j=t2;else if(e2(h))if(IM)j=n8;else{j=e8;var O=JI}else p=h.nodeName,!p||p.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?u&&NS(u.elementType)&&(j=t2):j=t8;if(j&&(j=j(e,u))){zM(d,j,n,f);break e}O&&O(e,h,u),e==="focusout"&&u&&h.type==="number"&&u.memoizedProps.value!=null&&fx(h,"number",h.value)}switch(O=u?Cu(u):window,e){case"focusin":(e2(O)||O.contentEditable==="true")&&(Qo=O,px=u,Uu=null);break;case"focusout":Uu=px=Qo=null;break;case"mousedown":mx=!0;break;case"contextmenu":case"mouseup":case"dragend":mx=!1,s2(d,n,f);break;case"selectionchange":if(a8)break;case"keydown":case"keyup":s2(d,n,f)}var N;if(_S)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else Xo?$M(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(kM&&n.locale!=="ko"&&(Xo||E!=="onCompositionStart"?E==="onCompositionEnd"&&Xo&&(N=DM()):(Ri=f,TS="value"in Ri?Ri.value:Ri.textContent,Xo=!0)),O=Qp(u,E),0<O.length&&(E=new XA(E,e,null,n,f),d.push({event:E,listeners:O}),N?E.data=N:(N=LM(n),N!==null&&(E.data=N)))),(N=YI?WI(e,n):XI(e,n))&&(E=Qp(u,"onBeforeInput"),0<E.length&&(O=new XA("onBeforeInput","beforeinput",null,n,f),d.push({event:O,listeners:E}),O.data=N)),U8(d,e,u,n,f)}RD(d,t)})}function Af(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qp(e,t){for(var n=t+"Capture",r=[];e!==null;){var a=e,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=mf(e,n),a!=null&&r.unshift(Af(e,a,i)),a=mf(e,t),a!=null&&r.push(Af(e,a,i))),e.tag===3)return r;e=e.return}return[]}function q8(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function F2(e,t,n,r,a){for(var i=t._reactName,s=[];n!==null&&n!==r;){var o=n,l=o.alternate,u=o.stateNode;if(o=o.tag,l!==null&&l===r)break;o!==5&&o!==26&&o!==27||u===null||(l=u,a?(u=mf(n,i),u!=null&&s.unshift(Af(n,u,l))):a||(u=mf(n,i),u!=null&&s.push(Af(n,u,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var K8=/\r\n?/g,G8=/\u0000|\uFFFD/g;function V2(e){return(typeof e=="string"?e:""+e).replace(K8,`
`).replace(G8,"")}function kD(e,t){return t=V2(t),V2(e)===t}function qe(e,t,n,r,a,i){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Ul(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Ul(e,""+r);break;case"className":mh(e,"class",r);break;case"tabIndex":mh(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":mh(e,n,r);break;case"style":MM(e,r,i);break;case"data":if(t!=="object"){mh(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=np(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(n==="formAction"?(t!=="input"&&qe(e,t,"name",a.name,a,null),qe(e,t,"formEncType",a.formEncType,a,null),qe(e,t,"formMethod",a.formMethod,a,null),qe(e,t,"formTarget",a.formTarget,a,null)):(qe(e,t,"encType",a.encType,a,null),qe(e,t,"method",a.method,a,null),qe(e,t,"target",a.target,a,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=np(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=Ra);break;case"onScroll":r!=null&&we("scroll",e);break;case"onScrollEnd":r!=null&&we("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(U(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(U(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=np(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":we("beforetoggle",e),we("toggle",e),tp(e,"popover",r);break;case"xlinkActuate":ba(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ba(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ba(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ba(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ba(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ba(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ba(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ba(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ba(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":tp(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=SI.get(n)||n,tp(e,n,r))}}function Ix(e,t,n,r,a,i){switch(n){case"style":MM(e,r,i);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(U(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(U(60));e.innerHTML=n}}break;case"children":typeof r=="string"?Ul(e,r):(typeof r=="number"||typeof r=="bigint")&&Ul(e,""+r);break;case"onScroll":r!=null&&we("scroll",e);break;case"onScrollEnd":r!=null&&we("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Ra);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!NM.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),i=e[Mn]||null,i=i!=null?i[n]:null,typeof i=="function"&&e.removeEventListener(t,i,a),typeof r=="function")){typeof i!="function"&&i!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):tp(e,n,r)}}}function rn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",e),we("load",e);var r=!1,a=!1,i;for(i in n)if(n.hasOwnProperty(i)){var s=n[i];if(s!=null)switch(i){case"src":r=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(U(137,t));default:qe(e,t,i,s,n,null)}}a&&qe(e,t,"srcSet",n.srcSet,n,null),r&&qe(e,t,"src",n.src,n,null);return;case"input":we("invalid",e);var o=i=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var f=n[r];if(f!=null)switch(r){case"name":a=f;break;case"type":s=f;break;case"checked":l=f;break;case"defaultChecked":u=f;break;case"value":i=f;break;case"defaultValue":o=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(U(137,t));break;default:qe(e,t,r,f,n,null)}}CM(e,i,o,l,u,s,a,!1);return;case"select":we("invalid",e),r=s=i=null;for(a in n)if(n.hasOwnProperty(a)&&(o=n[a],o!=null))switch(a){case"value":i=o;break;case"defaultValue":s=o;break;case"multiple":r=o;default:qe(e,t,a,o,n,null)}t=i,n=s,e.multiple=!!r,t!=null?ml(e,!!r,t,!1):n!=null&&ml(e,!!r,n,!0);return;case"textarea":we("invalid",e),i=a=r=null;for(s in n)if(n.hasOwnProperty(s)&&(o=n[s],o!=null))switch(s){case"value":r=o;break;case"defaultValue":a=o;break;case"children":i=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(U(91));break;default:qe(e,t,s,o,n,null)}PM(e,r,a,i);return;case"option":for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:qe(e,t,l,r,n,null)}return;case"dialog":we("beforetoggle",e),we("toggle",e),we("cancel",e),we("close",e);break;case"iframe":case"object":we("load",e);break;case"video":case"audio":for(r=0;r<jf.length;r++)we(jf[r],e);break;case"image":we("error",e),we("load",e);break;case"details":we("toggle",e);break;case"embed":case"source":case"link":we("error",e),we("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(U(137,t));default:qe(e,t,u,r,n,null)}return;default:if(NS(t)){for(f in n)n.hasOwnProperty(f)&&(r=n[f],r!==void 0&&Ix(e,t,f,r,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(r=n[o],r!=null&&qe(e,t,o,r,n,null))}function Y8(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,s=null,o=null,l=null,u=null,f=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&d!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":l=d;default:r.hasOwnProperty(p)||qe(e,t,p,null,r,d)}}for(var h in r){var p=r[h];if(d=n[h],r.hasOwnProperty(h)&&(p!=null||d!=null))switch(h){case"type":i=p;break;case"name":a=p;break;case"checked":u=p;break;case"defaultChecked":f=p;break;case"value":s=p;break;case"defaultValue":o=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(U(137,t));break;default:p!==d&&qe(e,t,h,p,r,d)}}ux(e,s,o,l,u,f,i,a);return;case"select":p=s=o=h=null;for(i in n)if(l=n[i],n.hasOwnProperty(i)&&l!=null)switch(i){case"value":break;case"multiple":p=l;default:r.hasOwnProperty(i)||qe(e,t,i,null,r,l)}for(a in r)if(i=r[a],l=n[a],r.hasOwnProperty(a)&&(i!=null||l!=null))switch(a){case"value":h=i;break;case"defaultValue":o=i;break;case"multiple":s=i;default:i!==l&&qe(e,t,a,i,r,l)}t=o,n=s,r=p,h!=null?ml(e,!!n,h,!1):!!r!=!!n&&(t!=null?ml(e,!!n,t,!0):ml(e,!!n,n?[]:"",!1));return;case"textarea":p=h=null;for(o in n)if(a=n[o],n.hasOwnProperty(o)&&a!=null&&!r.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:qe(e,t,o,null,r,a)}for(s in r)if(a=r[s],i=n[s],r.hasOwnProperty(s)&&(a!=null||i!=null))switch(s){case"value":h=a;break;case"defaultValue":p=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(U(91));break;default:a!==i&&qe(e,t,s,a,r,i)}_M(e,h,p);return;case"option":for(var m in n)if(h=n[m],n.hasOwnProperty(m)&&h!=null&&!r.hasOwnProperty(m))switch(m){case"selected":e.selected=!1;break;default:qe(e,t,m,null,r,h)}for(l in r)if(h=r[l],p=n[l],r.hasOwnProperty(l)&&h!==p&&(h!=null||p!=null))switch(l){case"selected":e.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:qe(e,t,l,h,r,p)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)h=n[g],n.hasOwnProperty(g)&&h!=null&&!r.hasOwnProperty(g)&&qe(e,t,g,null,r,h);for(u in r)if(h=r[u],p=n[u],r.hasOwnProperty(u)&&h!==p&&(h!=null||p!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(U(137,t));break;default:qe(e,t,u,h,r,p)}return;default:if(NS(t)){for(var v in n)h=n[v],n.hasOwnProperty(v)&&h!==void 0&&!r.hasOwnProperty(v)&&Ix(e,t,v,void 0,r,h);for(f in r)h=r[f],p=n[f],!r.hasOwnProperty(f)||h===p||h===void 0&&p===void 0||Ix(e,t,f,h,r,p);return}}for(var y in n)h=n[y],n.hasOwnProperty(y)&&h!=null&&!r.hasOwnProperty(y)&&qe(e,t,y,null,r,h);for(d in r)h=r[d],p=n[d],!r.hasOwnProperty(d)||h===p||h==null&&p==null||qe(e,t,d,h,r,p)}function H2(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function W8(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var a=n[r],i=a.transferSize,s=a.initiatorType,o=a.duration;if(i&&o&&H2(s)){for(s=0,o=a.responseEnd,r+=1;r<n.length;r++){var l=n[r],u=l.startTime;if(u>o)break;var f=l.transferSize,d=l.initiatorType;f&&H2(d)&&(l=l.responseEnd,s+=f*(l<o?1:(o-u)/(l-u)))}if(--r,t+=8*(i+s)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Bx=null,Ux=null;function Zp(e){return e.nodeType===9?e:e.ownerDocument}function q2(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function $D(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Fx(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Vv=null;function X8(){var e=window.event;return e&&e.type==="popstate"?e===Vv?!1:(Vv=e,!0):(Vv=null,!1)}var LD=typeof setTimeout=="function"?setTimeout:void 0,Q8=typeof clearTimeout=="function"?clearTimeout:void 0,K2=typeof Promise=="function"?Promise:void 0,Z8=typeof queueMicrotask=="function"?queueMicrotask:typeof K2<"u"?function(e){return K2.resolve(null).then(e).catch(J8)}:LD;function J8(e){setTimeout(function(){throw e})}function as(e){return e==="head"}function G2(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(r===0){e.removeChild(a),Wl(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")Qu(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Qu(n);for(var i=n.firstChild;i;){var s=i.nextSibling,o=i.nodeName;i[_d]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=s}}else n==="body"&&Qu(e.ownerDocument.body);n=a}while(n);Wl(t)}function Y2(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=r}while(n)}function Vx(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Vx(n),OS(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function eB(e,t,n,r){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[_d])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=br(e.nextSibling),e===null)break}return null}function tB(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=br(e.nextSibling),e===null))return null;return e}function zD(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=br(e.nextSibling),e===null))return null;return e}function Hx(e){return e.data==="$?"||e.data==="$~"}function qx(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function nB(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function br(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Kx=null;function W2(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return br(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function X2(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function ID(e,t,n){switch(t=Zp(n),e){case"html":if(e=t.documentElement,!e)throw Error(U(452));return e;case"head":if(e=t.head,!e)throw Error(U(453));return e;case"body":if(e=t.body,!e)throw Error(U(454));return e;default:throw Error(U(451))}}function Qu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);OS(e)}var xr=new Map,Q2=new Set;function Jp(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ri=De.d;De.d={f:rB,r:aB,D:iB,C:sB,L:oB,m:lB,X:uB,S:cB,M:fB};function rB(){var e=ri.f(),t=Fy();return e||t}function aB(e){var t=Pc(e);t!==null&&t.tag===5&&t.type==="form"?MR(t):ri.r(e)}var kc=typeof document>"u"?null:document;function BD(e,t,n){var r=kc;if(r&&typeof t=="string"&&t){var a=hr(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Q2.has(a)||(Q2.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),rn(t,"link",e),Ht(t),r.head.appendChild(t)))}}function iB(e){ri.D(e),BD("dns-prefetch",e,null)}function sB(e,t){ri.C(e,t),BD("preconnect",e,t)}function oB(e,t,n){ri.L(e,t,n);var r=kc;if(r&&e&&t){var a='link[rel="preload"][as="'+hr(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+hr(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+hr(n.imageSizes)+'"]')):a+='[href="'+hr(e)+'"]';var i=a;switch(t){case"style":i=Yl(e);break;case"script":i=$c(e)}xr.has(i)||(e=st({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),xr.set(i,e),r.querySelector(a)!==null||t==="style"&&r.querySelector($d(i))||t==="script"&&r.querySelector(Ld(i))||(t=r.createElement("link"),rn(t,"link",e),Ht(t),r.head.appendChild(t)))}}function lB(e,t){ri.m(e,t);var n=kc;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+hr(r)+'"][href="'+hr(e)+'"]',i=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=$c(e)}if(!xr.has(i)&&(e=st({rel:"modulepreload",href:e},t),xr.set(i,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ld(i)))return}r=n.createElement("link"),rn(r,"link",e),Ht(r),n.head.appendChild(r)}}}function cB(e,t,n){ri.S(e,t,n);var r=kc;if(r&&e){var a=pl(r).hoistableStyles,i=Yl(e);t=t||"default";var s=a.get(i);if(!s){var o={loading:0,preload:null};if(s=r.querySelector($d(i)))o.loading=5;else{e=st({rel:"stylesheet",href:e,"data-precedence":t},n),(n=xr.get(i))&&uw(e,n);var l=s=r.createElement("link");Ht(l),rn(l,"link",e),l._p=new Promise(function(u,f){l.onload=u,l.onerror=f}),l.addEventListener("load",function(){o.loading|=1}),l.addEventListener("error",function(){o.loading|=2}),o.loading|=4,dp(s,t,r)}s={type:"stylesheet",instance:s,count:1,state:o},a.set(i,s)}}}function uB(e,t){ri.X(e,t);var n=kc;if(n&&e){var r=pl(n).hoistableScripts,a=$c(e),i=r.get(a);i||(i=n.querySelector(Ld(a)),i||(e=st({src:e,async:!0},t),(t=xr.get(a))&&fw(e,t),i=n.createElement("script"),Ht(i),rn(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function fB(e,t){ri.M(e,t);var n=kc;if(n&&e){var r=pl(n).hoistableScripts,a=$c(e),i=r.get(a);i||(i=n.querySelector(Ld(a)),i||(e=st({src:e,async:!0,type:"module"},t),(t=xr.get(a))&&fw(e,t),i=n.createElement("script"),Ht(i),rn(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function Z2(e,t,n,r){var a=(a=Ii.current)?Jp(a):null;if(!a)throw Error(U(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Yl(n.href),n=pl(a).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Yl(n.href);var i=pl(a).hoistableStyles,s=i.get(e);if(s||(a=a.ownerDocument||a,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,s),(i=a.querySelector($d(e)))&&!i._p&&(s.instance=i,s.state.loading=5),xr.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},xr.set(e,n),i||dB(a,e,n,s.state))),t&&r===null)throw Error(U(528,""));return s}if(t&&r!==null)throw Error(U(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=$c(n),n=pl(a).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(U(444,e))}}function Yl(e){return'href="'+hr(e)+'"'}function $d(e){return'link[rel="stylesheet"]['+e+"]"}function UD(e){return st({},e,{"data-precedence":e.precedence,precedence:null})}function dB(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),rn(t,"link",n),Ht(t),e.head.appendChild(t))}function $c(e){return'[src="'+hr(e)+'"]'}function Ld(e){return"script[async]"+e}function J2(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+hr(n.href)+'"]');if(r)return t.instance=r,Ht(r),r;var a=st({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Ht(r),rn(r,"style",a),dp(r,n.precedence,e),t.instance=r;case"stylesheet":a=Yl(n.href);var i=e.querySelector($d(a));if(i)return t.state.loading|=4,t.instance=i,Ht(i),i;r=UD(n),(a=xr.get(a))&&uw(r,a),i=(e.ownerDocument||e).createElement("link"),Ht(i);var s=i;return s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),rn(i,"link",r),t.state.loading|=4,dp(i,n.precedence,e),t.instance=i;case"script":return i=$c(n.src),(a=e.querySelector(Ld(i)))?(t.instance=a,Ht(a),a):(r=n,(a=xr.get(i))&&(r=st({},n),fw(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),Ht(a),rn(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(U(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,dp(r,n.precedence,e));return t.instance}function dp(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,i=a,s=0;s<r.length;s++){var o=r[s];if(o.dataset.precedence===t)i=o;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function uw(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function fw(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var hp=null;function eO(e,t,n){if(hp===null){var r=new Map,a=hp=new Map;a.set(n,r)}else a=hp,r=a.get(n),r||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var i=n[a];if(!(i[_d]||i[Jt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var s=i.getAttribute(t)||"";s=e+s;var o=r.get(s);o?o.push(i):r.set(s,[i])}}return r}function tO(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function hB(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function FD(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function pB(e,t,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var a=Yl(r.href),i=t.querySelector($d(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=em.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,Ht(i);return}i=t.ownerDocument||t,r=UD(r),(a=xr.get(a))&&uw(r,a),i=i.createElement("link"),Ht(i);var s=i;s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),rn(i,"link",r),n.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=em.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Hv=0;function mB(e,t){return e.stylesheets&&e.count===0&&pp(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&pp(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Hv===0&&(Hv=62500*W8());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&pp(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Hv?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function em(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)pp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var tm=null;function pp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tm=new Map,t.forEach(yB,e),tm=null,em.call(e))}function yB(e,t){if(!(t.state.loading&4)){var n=tm.get(e);if(n)var r=n.get(null);else{n=new Map,tm.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var s=a[i];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(n.set(s.dataset.precedence,s),r=s)}r&&n.set(null,r)}a=t.instance,s=a.getAttribute("data-precedence"),i=n.get(s)||r,i===r&&n.set(null,a),n.set(s,a),this.count++,r=em.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),i?i.parentNode.insertBefore(a,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Of={$$typeof:Ma,Provider:null,Consumer:null,_currentValue:qs,_currentValue2:qs,_threadCount:0};function gB(e,t,n,r,a,i,s,o,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=hv(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hv(0),this.hiddenUpdates=hv(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function VD(e,t,n,r,a,i,s,o,l,u,f,d){return e=new gB(e,t,n,s,l,u,f,d,o),t=1,i===!0&&(t|=24),i=Hn(3,null,null,t),e.current=i,i.stateNode=e,t=LS(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},BS(i),e}function HD(e){return e?(e=el,e):el}function qD(e,t,n,r,a,i){a=HD(a),r.context===null?r.context=a:r.pendingContext=a,r=Ui(t),r.payload={element:n},i=i===void 0?null:i,i!==null&&(r.callback=i),n=Fi(e,r,t),n!==null&&(_n(n,e,t),Vu(n,e,t))}function nO(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function dw(e,t){nO(e,t),(e=e.alternate)&&nO(e,t)}function KD(e){if(e.tag===13||e.tag===31){var t=So(e,67108864);t!==null&&_n(t,e,67108864),dw(e,67108864)}}function rO(e){if(e.tag===13||e.tag===31){var t=Xn();t=jS(t);var n=So(e,t);n!==null&&_n(n,e,t),dw(e,t)}}var nm=!0;function vB(e,t,n,r){var a=he.T;he.T=null;var i=De.p;try{De.p=2,hw(e,t,n,r)}finally{De.p=i,he.T=a}}function bB(e,t,n,r){var a=he.T;he.T=null;var i=De.p;try{De.p=8,hw(e,t,n,r)}finally{De.p=i,he.T=a}}function hw(e,t,n,r){if(nm){var a=Gx(r);if(a===null)Fv(e,t,r,rm,n),aO(e,r);else if(SB(a,e,t,n,r))r.stopPropagation();else if(aO(e,r),t&4&&-1<xB.indexOf(e)){for(;a!==null;){var i=Pc(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var s=vs(i.pendingLanes);if(s!==0){var o=i;for(o.pendingLanes|=2,o.entangledLanes|=2;s;){var l=1<<31-Wn(s);o.entanglements[1]|=l,s&=~l}pa(i),!(Me&6)&&(Kp=Gn()+500,kd(0))}}break;case 31:case 13:o=So(i,2),o!==null&&_n(o,i,2),Fy(),dw(i,2)}if(i=Gx(r),i===null&&Fv(e,t,r,rm,n),i===a)break;a=i}a!==null&&r.stopPropagation()}else Fv(e,t,r,null,n)}}function Gx(e){return e=ES(e),pw(e)}var rm=null;function pw(e){if(rm=null,e=Yo(e),e!==null){var t=Nd(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=dM(t),e!==null)return e;e=null}else if(n===31){if(e=hM(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return rm=e,null}function GD(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(iI()){case gM:return 2;case vM:return 8;case Mp:case sI:return 32;case bM:return 268435456;default:return 32}default:return 32}}var Yx=!1,qi=null,Ki=null,Gi=null,Nf=new Map,Ef=new Map,wi=[],xB="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 aO(e,t){switch(e){case"focusin":case"focusout":qi=null;break;case"dragenter":case"dragleave":Ki=null;break;case"mouseover":case"mouseout":Gi=null;break;case"pointerover":case"pointerout":Nf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ef.delete(t.pointerId)}}function uu(e,t,n,r,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[a]},t!==null&&(t=Pc(t),t!==null&&KD(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function SB(e,t,n,r,a){switch(t){case"focusin":return qi=uu(qi,e,t,n,r,a),!0;case"dragenter":return Ki=uu(Ki,e,t,n,r,a),!0;case"mouseover":return Gi=uu(Gi,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return Nf.set(i,uu(Nf.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,Ef.set(i,uu(Ef.get(i)||null,e,t,n,r,a)),!0}return!1}function YD(e){var t=Yo(e.target);if(t!==null){var n=Nd(t);if(n!==null){if(t=n.tag,t===13){if(t=dM(n),t!==null){e.blockedOn=t,FA(e.priority,function(){rO(n)});return}}else if(t===31){if(t=hM(n),t!==null){e.blockedOn=t,FA(e.priority,function(){rO(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gx(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);dx=r,n.target.dispatchEvent(r),dx=null}else return t=Pc(n),t!==null&&KD(t),e.blockedOn=n,!1;t.shift()}return!0}function iO(e,t,n){mp(e)&&n.delete(t)}function wB(){Yx=!1,qi!==null&&mp(qi)&&(qi=null),Ki!==null&&mp(Ki)&&(Ki=null),Gi!==null&&mp(Gi)&&(Gi=null),Nf.forEach(iO),Ef.forEach(iO)}function jh(e,t){e.blockedOn===t&&(e.blockedOn=null,Yx||(Yx=!0,Lt.unstable_scheduleCallback(Lt.unstable_NormalPriority,wB)))}var Ah=null;function sO(e){Ah!==e&&(Ah=e,Lt.unstable_scheduleCallback(Lt.unstable_NormalPriority,function(){Ah===e&&(Ah=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if(typeof r!="function"){if(pw(r||n)===null)continue;break}var i=Pc(n);i!==null&&(e.splice(t,3),t-=3,Tx(i,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function Wl(e){function t(l){return jh(l,e)}qi!==null&&jh(qi,e),Ki!==null&&jh(Ki,e),Gi!==null&&jh(Gi,e),Nf.forEach(t),Ef.forEach(t);for(var n=0;n<wi.length;n++){var r=wi[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<wi.length&&(n=wi[0],n.blockedOn===null);)YD(n),n.blockedOn===null&&wi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var a=n[r],i=n[r+1],s=a[Mn]||null;if(typeof i=="function")s||sO(n);else if(s){var o=null;if(i&&i.hasAttribute("formAction")){if(a=i,s=i[Mn]||null)o=s.formAction;else if(pw(a)!==null)continue}else o=s.action;typeof o=="function"?n[r+1]=o:(n.splice(r,3),r-=3),sO(n)}}}function WD(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(s){return a=s})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function mw(e){this._internalRoot=e}qy.prototype.render=mw.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));var n=t.current,r=Xn();qD(n,r,e,t,null,null)};qy.prototype.unmount=mw.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qD(e.current,2,null,e,null,null),Fy(),t[_c]=null}};function qy(e){this._internalRoot=e}qy.prototype.unstable_scheduleHydration=function(e){if(e){var t=AM();e={blockedOn:null,target:e,priority:t};for(var n=0;n<wi.length&&t!==0&&t<wi[n].priority;n++);wi.splice(n,0,e),n===0&&YD(e)}};var oO=uM.version;if(oO!=="19.2.7")throw Error(U(527,oO,"19.2.7"));De.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=Zz(t),e=e!==null?pM(e):null,e=e===null?null:e.stateNode,e};var jB={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:he,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Oh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Oh.isDisabled&&Oh.supportsFiber)try{Ed=Oh.inject(jB),Yn=Oh}catch{}}Ty.createRoot=function(e,t){if(!fM(e))throw Error(U(299));var n=!1,r="",a=BR,i=UR,s=FR;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=VD(e,1,!1,null,null,n,r,null,a,i,s,WD),e[_c]=t.current,cw(e),new mw(t)};Ty.hydrateRoot=function(e,t,n){if(!fM(e))throw Error(U(299));var r=!1,a="",i=BR,s=UR,o=FR,l=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(s=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.formState!==void 0&&(l=n.formState)),t=VD(e,1,!0,t,n??null,r,a,l,i,s,o,WD),t.context=HD(null),n=t.current,r=Xn(),r=jS(r),a=Ui(r),a.callback=null,Fi(n,a,r),n=r,t.current.lanes=n,Cd(t,n),pa(t),e[_c]=t.current,cw(e),new qy(t)};Ty.version="19.2.7";function XD(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(XD)}catch(e){console.error(e)}}XD(),aM.exports=Ty;var AB=aM.exports;const OB=Ie(AB);var zd=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},$s,Ai,Nl,IP,NB=(IP=class extends zd{constructor(){super();ce(this,$s);ce(this,Ai);ce(this,Nl);te(this,Nl,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){R(this,Ai)||this.setEventListener(R(this,Nl))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,Ai))==null||t.call(this),te(this,Ai,void 0))}setEventListener(t){var n;te(this,Nl,t),(n=R(this,Ai))==null||n.call(this),te(this,Ai,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){R(this,$s)!==t&&(te(this,$s,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof R(this,$s)=="boolean"?R(this,$s):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},$s=new WeakMap,Ai=new WeakMap,Nl=new WeakMap,IP),yw=new NB,EB={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Oi,pS,BP,TB=(BP=class{constructor(){ce(this,Oi,EB);ce(this,pS,!1)}setTimeoutProvider(e){te(this,Oi,e)}setTimeout(e,t){return R(this,Oi).setTimeout(e,t)}clearTimeout(e){R(this,Oi).clearTimeout(e)}setInterval(e,t){return R(this,Oi).setInterval(e,t)}clearInterval(e){R(this,Oi).clearInterval(e)}},Oi=new WeakMap,pS=new WeakMap,BP),Es=new TB;function CB(e){setTimeout(e,0)}var _B=typeof window>"u"||"Deno"in globalThis;function Tn(){}function PB(e,t){return typeof e=="function"?e(t):e}function Wx(e){return typeof e=="number"&&e>=0&&e!==1/0}function QD(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Yi(e,t){return typeof e=="function"?e(t):e}function Un(e,t){return typeof e=="function"?e(t):e}function lO(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:s,stale:o}=e;if(s){if(r){if(t.queryHash!==gw(s,t.options))return!1}else if(!Cf(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||a&&a!==t.state.fetchStatus||i&&!i(t))}function cO(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Tf(t.options.mutationKey)!==Tf(i))return!1}else if(!Cf(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function gw(e,t){return((t==null?void 0:t.queryKeyHashFn)||Tf)(e)}function Tf(e){return JSON.stringify(e,(t,n)=>Qx(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Cf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Cf(e[n],t[n])):!1}var MB=Object.prototype.hasOwnProperty;function ZD(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=uO(e)&&uO(t);if(!r&&!(Qx(e)&&Qx(t)))return t;const i=(r?e:Object.keys(e)).length,s=r?t:Object.keys(t),o=s.length,l=r?new Array(o):{};let u=0;for(let f=0;f<o;f++){const d=r?f:s[f],h=e[d],p=t[d];if(h===p){l[d]=h,(r?f<i:MB.call(e,d))&&u++;continue}if(h===null||p===null||typeof h!="object"||typeof p!="object"){l[d]=p;continue}const m=ZD(h,p,n+1);l[d]=m,m===h&&u++}return i===o&&u===i?e:l}function Xx(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function uO(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Qx(e){if(!fO(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!fO(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function fO(e){return Object.prototype.toString.call(e)==="[object Object]"}function RB(e){return new Promise(t=>{Es.setTimeout(t,e)})}function Zx(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ZD(e,t):t}function DB(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function kB(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var vw=Symbol();function JD(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===vw?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ek(e,t){return typeof e=="function"?e(...t):!!e}function $B(e,t,n){let r=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??(a=t()),r||(r=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var _f=(()=>{let e=()=>_B;return{isServer(){return e()},setIsServer(t){e=t}}})();function Jx(){let e,t;const n=new Promise((a,i)=>{e=a,t=i});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var LB=CB;function zB(){let e=[],t=0,n=o=>{o()},r=o=>{o()},a=LB;const i=o=>{t?e.push(o):a(()=>{n(o)})},s=()=>{const o=e;e=[],o.length&&a(()=>{r(()=>{o.forEach(l=>{n(l)})})})};return{batch:o=>{let l;t++;try{l=o()}finally{t--,t||s()}return l},batchCalls:o=>(...l)=>{i(()=>{o(...l)})},schedule:i,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{a=o}}}var Zt=zB(),El,Ni,Tl,UP,IB=(UP=class extends zd{constructor(){super();ce(this,El,!0);ce(this,Ni);ce(this,Tl);te(this,Tl,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){R(this,Ni)||this.setEventListener(R(this,Tl))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,Ni))==null||t.call(this),te(this,Ni,void 0))}setEventListener(t){var n;te(this,Tl,t),(n=R(this,Ni))==null||n.call(this),te(this,Ni,t(this.setOnline.bind(this)))}setOnline(t){R(this,El)!==t&&(te(this,El,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return R(this,El)}},El=new WeakMap,Ni=new WeakMap,Tl=new WeakMap,UP),am=new IB;function BB(e){return Math.min(1e3*2**e,3e4)}function tk(e){return(e??"online")==="online"?am.isOnline():!0}var e0=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function nk(e){let t=!1,n=0,r;const a=Jx(),i=()=>a.status!=="pending",s=g=>{var v;if(!i()){const y=new e0(g);h(y),(v=e.onCancel)==null||v.call(e,y)}},o=()=>{t=!0},l=()=>{t=!1},u=()=>yw.isFocused()&&(e.networkMode==="always"||am.isOnline())&&e.canRun(),f=()=>tk(e.networkMode)&&e.canRun(),d=g=>{i()||(r==null||r(),a.resolve(g))},h=g=>{i()||(r==null||r(),a.reject(g))},p=()=>new Promise(g=>{var v;r=y=>{(i()||u())&&g(y)},(v=e.onPause)==null||v.call(e)}).then(()=>{var g;r=void 0,i()||(g=e.onContinue)==null||g.call(e)}),m=()=>{if(i())return;let g;const v=n===0?e.initialPromise:void 0;try{g=v??e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(d).catch(y=>{var j;if(i())return;const b=e.retry??(_f.isServer()?0:3),x=e.retryDelay??BB,w=typeof x=="function"?x(n,y):x,S=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,y);if(t||!S){h(y);return}n++,(j=e.onFail)==null||j.call(e,n,y),RB(w).then(()=>u()?void 0:p()).then(()=>{t?h(y):m()})})};return{promise:a,status:()=>a.status,cancel:s,continue:()=>(r==null||r(),a),cancelRetry:o,continueRetry:l,canStart:f,start:()=>(f()?m():p().then(m),a)}}var Ls,FP,rk=(FP=class{constructor(){ce(this,Ls)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Wx(this.gcTime)&&te(this,Ls,Es.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(_f.isServer()?1/0:5*60*1e3))}clearGcTimeout(){R(this,Ls)!==void 0&&(Es.clearTimeout(R(this,Ls)),te(this,Ls,void 0))}},Ls=new WeakMap,FP);function UB(e){return{onFetch:(t,n)=>{var f,d,h,p,m;const r=t.options,a=(h=(d=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],s=((m=t.state.data)==null?void 0:m.pageParams)||[];let o={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const v=x=>{$B(x,()=>t.signal,()=>g=!0)},y=JD(t.options,t.fetchOptions),b=async(x,w,S)=>{if(g)return Promise.reject(t.signal.reason);if(w==null&&x.pages.length)return Promise.resolve(x);const O=(()=>{const P={client:t.client,queryKey:t.queryKey,pageParam:w,direction:S?"backward":"forward",meta:t.options.meta};return v(P),P})(),N=await y(O),{maxPages:E}=t.options,T=S?kB:DB;return{pages:T(x.pages,N,E),pageParams:T(x.pageParams,w,E)}};if(a&&i.length){const x=a==="backward",w=x?FB:dO,S={pages:i,pageParams:s},j=w(r,S);o=await b(S,j,x)}else{const x=e??i.length;do{const w=l===0?s[0]??r.initialPageParam:dO(r,o);if(l>0&&w==null)break;o=await b(o,w),l++}while(l<x)}return o};t.options.persister?t.fetchFn=()=>{var g,v;return(v=(g=t.options).persister)==null?void 0:v.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function dO(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function FB(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Cl,zs,_l,lr,Is,Bt,Sd,Bs,Bn,ak,Na,VP,VB=(VP=class extends rk{constructor(t){super();ce(this,Bn);ce(this,Cl);ce(this,zs);ce(this,_l);ce(this,lr);ce(this,Is);ce(this,Bt);ce(this,Sd);ce(this,Bs);te(this,Bs,!1),te(this,Sd,t.defaultOptions),this.setOptions(t.options),this.observers=[],te(this,Is,t.client),te(this,lr,R(this,Is).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,te(this,zs,pO(this.options)),this.state=t.state??R(this,zs),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return R(this,Cl)}get promise(){var t;return(t=R(this,Bt))==null?void 0:t.promise}setOptions(t){if(this.options={...R(this,Sd),...t},t!=null&&t._type&&te(this,Cl,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=pO(this.options);n.data!==void 0&&(this.setState(hO(n.data,n.dataUpdatedAt)),te(this,zs,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,lr).remove(this)}setData(t,n){const r=Zx(this.state.data,t,this.options);return Ne(this,Bn,Na).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){Ne(this,Bn,Na).call(this,{type:"setState",state:t})}cancel(t){var r,a;const n=(r=R(this,Bt))==null?void 0:r.promise;return(a=R(this,Bt))==null||a.cancel(t),n?n.then(Tn).catch(Tn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return R(this,zs)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Un(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vw||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Yi(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!QD(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,Bt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,Bt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),R(this,lr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(R(this,Bt)&&(R(this,Bs)||Ne(this,Bn,ak).call(this)?R(this,Bt).cancel({revert:!0}):R(this,Bt).cancelRetry()),this.scheduleGc()),R(this,lr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ne(this,Bn,Na).call(this,{type:"invalidate"})}async fetch(t,n){var u,f,d,h,p,m,g,v,y,b,x;if(this.state.fetchStatus!=="idle"&&((u=R(this,Bt))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(R(this,Bt))return R(this,Bt).continueRetry(),R(this,Bt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find(S=>S.options.queryFn);w&&this.setOptions(w.options)}const r=new AbortController,a=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(te(this,Bs,!0),r.signal)})},i=()=>{const w=JD(this.options,n),j=(()=>{const O={client:R(this,Is),queryKey:this.queryKey,meta:this.meta};return a(O),O})();return te(this,Bs,!1),this.options.persister?this.options.persister(w,j,this):w(j)},o=(()=>{const w={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:R(this,Is),state:this.state,fetchFn:i};return a(w),w})(),l=R(this,Cl)==="infinite"?UB(this.options.pages):this.options.behavior;l==null||l.onFetch(o,this),te(this,_l,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=o.fetchOptions)==null?void 0:f.meta))&&Ne(this,Bn,Na).call(this,{type:"fetch",meta:(d=o.fetchOptions)==null?void 0:d.meta}),te(this,Bt,nk({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,onCancel:w=>{w instanceof e0&&w.revert&&this.setState({...R(this,_l),fetchStatus:"idle"}),r.abort()},onFail:(w,S)=>{Ne(this,Bn,Na).call(this,{type:"failed",failureCount:w,error:S})},onPause:()=>{Ne(this,Bn,Na).call(this,{type:"pause"})},onContinue:()=>{Ne(this,Bn,Na).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}));try{const w=await R(this,Bt).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(p=(h=R(this,lr).config).onSuccess)==null||p.call(h,w,this),(g=(m=R(this,lr).config).onSettled)==null||g.call(m,w,this.state.error,this),w}catch(w){if(w instanceof e0){if(w.silent)return R(this,Bt).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw Ne(this,Bn,Na).call(this,{type:"error",error:w}),(y=(v=R(this,lr).config).onError)==null||y.call(v,w,this),(x=(b=R(this,lr).config).onSettled)==null||x.call(b,this.state.data,w,this),w}finally{this.scheduleGc()}}},Cl=new WeakMap,zs=new WeakMap,_l=new WeakMap,lr=new WeakMap,Is=new WeakMap,Bt=new WeakMap,Sd=new WeakMap,Bs=new WeakMap,Bn=new WeakSet,ak=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Na=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...ik(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...hO(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return te(this,_l,t.manual?a:void 0),a;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Zt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),R(this,lr).notify({query:this,type:"updated",action:t})})},VP);function ik(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:tk(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function hO(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function pO(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var On,Te,wd,dn,Us,Pl,Ca,Ei,jd,Ml,Rl,Fs,Vs,Ti,Dl,ze,Mu,t0,n0,r0,a0,i0,s0,o0,sk,HP,HB=(HP=class extends zd{constructor(t,n){super();ce(this,ze);ce(this,On);ce(this,Te);ce(this,wd);ce(this,dn);ce(this,Us);ce(this,Pl);ce(this,Ca);ce(this,Ei);ce(this,jd);ce(this,Ml);ce(this,Rl);ce(this,Fs);ce(this,Vs);ce(this,Ti);ce(this,Dl,new Set);this.options=n,te(this,On,t),te(this,Ei,null),te(this,Ca,Jx()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(R(this,Te).addObserver(this),mO(R(this,Te),this.options)?Ne(this,ze,Mu).call(this):this.updateResult(),Ne(this,ze,a0).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return l0(R(this,Te),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return l0(R(this,Te),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ne(this,ze,i0).call(this),Ne(this,ze,s0).call(this),R(this,Te).removeObserver(this)}setOptions(t){const n=this.options,r=R(this,Te);if(this.options=R(this,On).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Un(this.options.enabled,R(this,Te))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ne(this,ze,o0).call(this),R(this,Te).setOptions(this.options),n._defaulted&&!Xx(this.options,n)&&R(this,On).getQueryCache().notify({type:"observerOptionsUpdated",query:R(this,Te),observer:this});const a=this.hasListeners();a&&yO(R(this,Te),r,this.options,n)&&Ne(this,ze,Mu).call(this),this.updateResult(),a&&(R(this,Te)!==r||Un(this.options.enabled,R(this,Te))!==Un(n.enabled,R(this,Te))||Yi(this.options.staleTime,R(this,Te))!==Yi(n.staleTime,R(this,Te)))&&Ne(this,ze,t0).call(this);const i=Ne(this,ze,n0).call(this);a&&(R(this,Te)!==r||Un(this.options.enabled,R(this,Te))!==Un(n.enabled,R(this,Te))||i!==R(this,Ti))&&Ne(this,ze,r0).call(this,i)}getOptimisticResult(t){const n=R(this,On).getQueryCache().build(R(this,On),t),r=this.createResult(n,t);return KB(this,r)&&(te(this,dn,r),te(this,Pl,this.options),te(this,Us,R(this,Te).state)),r}getCurrentResult(){return R(this,dn)}trackResult(t,n){return new Proxy(t,{get:(r,a)=>(this.trackProp(a),n==null||n(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&R(this,Ca).status==="pending"&&R(this,Ca).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,a))})}trackProp(t){R(this,Dl).add(t)}getCurrentQuery(){return R(this,Te)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=R(this,On).defaultQueryOptions(t),r=R(this,On).getQueryCache().build(R(this,On),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Ne(this,ze,Mu).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),R(this,dn)))}createResult(t,n){var E;const r=R(this,Te),a=this.options,i=R(this,dn),s=R(this,Us),o=R(this,Pl),u=t!==r?t.state:R(this,wd),{state:f}=t;let d={...f},h=!1,p;if(n._optimisticResults){const T=this.hasListeners(),P=!T&&mO(t,n),C=T&&yO(t,r,n,a);(P||C)&&(d={...d,...ik(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:v}=d;p=d.data;let y=!1;if(n.placeholderData!==void 0&&p===void 0&&v==="pending"){let T;i!=null&&i.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData)?(T=i.data,y=!0):T=typeof n.placeholderData=="function"?n.placeholderData((E=R(this,Rl))==null?void 0:E.state.data,R(this,Rl)):n.placeholderData,T!==void 0&&(v="success",p=Zx(i==null?void 0:i.data,T,n),h=!0)}if(n.select&&p!==void 0&&!y)if(i&&p===(s==null?void 0:s.data)&&n.select===R(this,jd))p=R(this,Ml);else try{te(this,jd,n.select),p=n.select(p),p=Zx(i==null?void 0:i.data,p,n),te(this,Ml,p),te(this,Ei,null)}catch(T){te(this,Ei,T)}R(this,Ei)&&(m=R(this,Ei),p=R(this,Ml),g=Date.now(),v="error");const b=d.fetchStatus==="fetching",x=v==="pending",w=v==="error",S=x&&b,j=p!==void 0,N={status:v,fetchStatus:d.fetchStatus,isPending:x,isSuccess:v==="success",isError:w,isInitialLoading:S,isLoading:S,data:p,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:w&&!j,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:w&&j,isStale:bw(t,n),refetch:this.refetch,promise:R(this,Ca),isEnabled:Un(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const T=N.data!==void 0,P=N.status==="error"&&!T,C=k=>{P?k.reject(N.error):T&&k.resolve(N.data)},$=()=>{const k=te(this,Ca,N.promise=Jx());C(k)},D=R(this,Ca);switch(D.status){case"pending":t.queryHash===r.queryHash&&C(D);break;case"fulfilled":(P||N.data!==D.value)&&$();break;case"rejected":(!P||N.error!==D.reason)&&$();break}}return N}updateResult(){const t=R(this,dn),n=this.createResult(R(this,Te),this.options);if(te(this,Us,R(this,Te).state),te(this,Pl,this.options),R(this,Us).data!==void 0&&te(this,Rl,R(this,Te)),Xx(n,t))return;te(this,dn,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,i=typeof a=="function"?a():a;if(i==="all"||!i&&!R(this,Dl).size)return!0;const s=new Set(i??R(this,Dl));return this.options.throwOnError&&s.add("error"),Object.keys(R(this,dn)).some(o=>{const l=o;return R(this,dn)[l]!==t[l]&&s.has(l)})};Ne(this,ze,sk).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ne(this,ze,a0).call(this)}},On=new WeakMap,Te=new WeakMap,wd=new WeakMap,dn=new WeakMap,Us=new WeakMap,Pl=new WeakMap,Ca=new WeakMap,Ei=new WeakMap,jd=new WeakMap,Ml=new WeakMap,Rl=new WeakMap,Fs=new WeakMap,Vs=new WeakMap,Ti=new WeakMap,Dl=new WeakMap,ze=new WeakSet,Mu=function(t){Ne(this,ze,o0).call(this);let n=R(this,Te).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Tn)),n},t0=function(){Ne(this,ze,i0).call(this);const t=Yi(this.options.staleTime,R(this,Te));if(_f.isServer()||R(this,dn).isStale||!Wx(t))return;const r=QD(R(this,dn).dataUpdatedAt,t)+1;te(this,Fs,Es.setTimeout(()=>{R(this,dn).isStale||this.updateResult()},r))},n0=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(R(this,Te)):this.options.refetchInterval)??!1},r0=function(t){Ne(this,ze,s0).call(this),te(this,Ti,t),!(_f.isServer()||Un(this.options.enabled,R(this,Te))===!1||!Wx(R(this,Ti))||R(this,Ti)===0)&&te(this,Vs,Es.setInterval(()=>{(this.options.refetchIntervalInBackground||yw.isFocused())&&Ne(this,ze,Mu).call(this)},R(this,Ti)))},a0=function(){Ne(this,ze,t0).call(this),Ne(this,ze,r0).call(this,Ne(this,ze,n0).call(this))},i0=function(){R(this,Fs)!==void 0&&(Es.clearTimeout(R(this,Fs)),te(this,Fs,void 0))},s0=function(){R(this,Vs)!==void 0&&(Es.clearInterval(R(this,Vs)),te(this,Vs,void 0))},o0=function(){const t=R(this,On).getQueryCache().build(R(this,On),this.options);if(t===R(this,Te))return;const n=R(this,Te);te(this,Te,t),te(this,wd,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},sk=function(t){Zt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(R(this,dn))}),R(this,On).getQueryCache().notify({query:R(this,Te),type:"observerResultsUpdated"})})},HP);function qB(e,t){return Un(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&Un(t.retryOnMount,e)===!1)}function mO(e,t){return qB(e,t)||e.state.data!==void 0&&l0(e,t,t.refetchOnMount)}function l0(e,t,n){if(Un(t.enabled,e)!==!1&&Yi(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&bw(e,t)}return!1}function yO(e,t,n,r){return(e!==t||Un(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&bw(e,n)}function bw(e,t){return Un(t.enabled,e)!==!1&&e.isStaleByTime(Yi(t.staleTime,e))}function KB(e,t){return!Xx(e.getCurrentResult(),t)}var Ad,Gr,sn,Hs,Yr,di,qP,GB=(qP=class extends rk{constructor(t){super();ce(this,Yr);ce(this,Ad);ce(this,Gr);ce(this,sn);ce(this,Hs);te(this,Ad,t.client),this.mutationId=t.mutationId,te(this,sn,t.mutationCache),te(this,Gr,[]),this.state=t.state||YB(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){R(this,Gr).includes(t)||(R(this,Gr).push(t),this.clearGcTimeout(),R(this,sn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){te(this,Gr,R(this,Gr).filter(n=>n!==t)),this.scheduleGc(),R(this,sn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){R(this,Gr).length||(this.state.status==="pending"?this.scheduleGc():R(this,sn).remove(this))}continue(){var t;return((t=R(this,Hs))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,o,l,u,f,d,h,p,m,g,v,y,b,x,w,S,j,O;const n=()=>{Ne(this,Yr,di).call(this,{type:"continue"})},r={client:R(this,Ad),meta:this.options.meta,mutationKey:this.options.mutationKey};te(this,Hs,nk({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(N,E)=>{Ne(this,Yr,di).call(this,{type:"failed",failureCount:N,error:E})},onPause:()=>{Ne(this,Yr,di).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,sn).canRun(this)}));const a=this.state.status==="pending",i=!R(this,Hs).canStart();try{if(a)n();else{Ne(this,Yr,di).call(this,{type:"pending",variables:t,isPaused:i}),R(this,sn).config.onMutate&&await R(this,sn).config.onMutate(t,this,r);const E=await((o=(s=this.options).onMutate)==null?void 0:o.call(s,t,r));E!==this.state.context&&Ne(this,Yr,di).call(this,{type:"pending",context:E,variables:t,isPaused:i})}const N=await R(this,Hs).start();return await((u=(l=R(this,sn).config).onSuccess)==null?void 0:u.call(l,N,t,this.state.context,this,r)),await((d=(f=this.options).onSuccess)==null?void 0:d.call(f,N,t,this.state.context,r)),await((p=(h=R(this,sn).config).onSettled)==null?void 0:p.call(h,N,null,this.state.variables,this.state.context,this,r)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,N,null,t,this.state.context,r)),Ne(this,Yr,di).call(this,{type:"success",data:N}),N}catch(N){try{await((y=(v=R(this,sn).config).onError)==null?void 0:y.call(v,N,t,this.state.context,this,r))}catch(E){Promise.reject(E)}try{await((x=(b=this.options).onError)==null?void 0:x.call(b,N,t,this.state.context,r))}catch(E){Promise.reject(E)}try{await((S=(w=R(this,sn).config).onSettled)==null?void 0:S.call(w,void 0,N,this.state.variables,this.state.context,this,r))}catch(E){Promise.reject(E)}try{await((O=(j=this.options).onSettled)==null?void 0:O.call(j,void 0,N,t,this.state.context,r))}catch(E){Promise.reject(E)}throw Ne(this,Yr,di).call(this,{type:"error",error:N}),N}finally{R(this,sn).runNext(this)}}},Ad=new WeakMap,Gr=new WeakMap,sn=new WeakMap,Hs=new WeakMap,Yr=new WeakSet,di=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Zt.batch(()=>{R(this,Gr).forEach(r=>{r.onMutationUpdate(t)}),R(this,sn).notify({mutation:this,type:"updated",action:t})})},qP);function YB(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _a,Rr,Od,KP,WB=(KP=class extends zd{constructor(t={}){super();ce(this,_a);ce(this,Rr);ce(this,Od);this.config=t,te(this,_a,new Set),te(this,Rr,new Map),te(this,Od,0)}build(t,n,r){const a=new GB({client:t,mutationCache:this,mutationId:++lh(this,Od)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){R(this,_a).add(t);const n=Nh(t);if(typeof n=="string"){const r=R(this,Rr).get(n);r?r.push(t):R(this,Rr).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(R(this,_a).delete(t)){const n=Nh(t);if(typeof n=="string"){const r=R(this,Rr).get(n);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&R(this,Rr).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Nh(t);if(typeof n=="string"){const r=R(this,Rr).get(n),a=r==null?void 0:r.find(i=>i.state.status==="pending");return!a||a===t}else return!0}runNext(t){var r;const n=Nh(t);if(typeof n=="string"){const a=(r=R(this,Rr).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Zt.batch(()=>{R(this,_a).forEach(t=>{this.notify({type:"removed",mutation:t})}),R(this,_a).clear(),R(this,Rr).clear()})}getAll(){return Array.from(R(this,_a))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>cO(n,r))}findAll(t={}){return this.getAll().filter(n=>cO(t,n))}notify(t){Zt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Zt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Tn))))}},_a=new WeakMap,Rr=new WeakMap,Od=new WeakMap,KP);function Nh(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Wr,GP,XB=(GP=class extends zd{constructor(t={}){super();ce(this,Wr);this.config=t,te(this,Wr,new Map)}build(t,n,r){const a=n.queryKey,i=n.queryHash??gw(a,n);let s=this.get(i);return s||(s=new VB({client:t,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(s)),s}add(t){R(this,Wr).has(t.queryHash)||(R(this,Wr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=R(this,Wr).get(t.queryHash);n&&(t.destroy(),n===t&&R(this,Wr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Zt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return R(this,Wr).get(t)}getAll(){return[...R(this,Wr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>lO(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>lO(t,r)):n}notify(t){Zt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Zt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Zt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Wr=new WeakMap,GP),yt,Ci,_i,kl,$l,Pi,Ll,zl,YP,QB=(YP=class{constructor(e={}){ce(this,yt);ce(this,Ci);ce(this,_i);ce(this,kl);ce(this,$l);ce(this,Pi);ce(this,Ll);ce(this,zl);te(this,yt,e.queryCache||new XB),te(this,Ci,e.mutationCache||new WB),te(this,_i,e.defaultOptions||{}),te(this,kl,new Map),te(this,$l,new Map),te(this,Pi,0)}mount(){lh(this,Pi)._++,R(this,Pi)===1&&(te(this,Ll,yw.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,yt).onFocus())})),te(this,zl,am.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,yt).onOnline())})))}unmount(){var e,t;lh(this,Pi)._--,R(this,Pi)===0&&((e=R(this,Ll))==null||e.call(this),te(this,Ll,void 0),(t=R(this,zl))==null||t.call(this),te(this,zl,void 0))}isFetching(e){return R(this,yt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return R(this,Ci).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=R(this,yt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=R(this,yt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Yi(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return R(this,yt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=R(this,yt).get(r.queryHash),i=a==null?void 0:a.state.data,s=PB(t,i);if(s!==void 0)return R(this,yt).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Zt.batch(()=>R(this,yt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=R(this,yt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=R(this,yt);Zt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=R(this,yt);return Zt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Zt.batch(()=>R(this,yt).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Tn).catch(Tn)}invalidateQueries(e,t={}){return Zt.batch(()=>(R(this,yt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Zt.batch(()=>R(this,yt).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(Tn)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Tn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=R(this,yt).build(this,t);return n.isStaleByTime(Yi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Tn).catch(Tn)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Tn).catch(Tn)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return am.isOnline()?R(this,Ci).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,yt)}getMutationCache(){return R(this,Ci)}getDefaultOptions(){return R(this,_i)}setDefaultOptions(e){te(this,_i,e)}setQueryDefaults(e,t){R(this,kl).set(Tf(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...R(this,kl).values()],n={};return t.forEach(r=>{Cf(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){R(this,$l).set(Tf(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...R(this,$l).values()],n={};return t.forEach(r=>{Cf(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...R(this,_i).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=gw(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===vw&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...R(this,_i).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){R(this,yt).clear(),R(this,Ci).clear()}},yt=new WeakMap,Ci=new WeakMap,_i=new WeakMap,kl=new WeakMap,$l=new WeakMap,Pi=new WeakMap,Ll=new WeakMap,zl=new WeakMap,YP),ok=A.createContext(void 0),Gt=e=>{const t=A.useContext(ok);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ZB=({client:e,children:t})=>(A.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(ok.Provider,{value:e,children:t})),lk=A.createContext(!1),JB=()=>A.useContext(lk);lk.Provider;function eU(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var tU=A.createContext(eU()),nU=()=>A.useContext(tU),rU=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?ek(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},aU=e=>{A.useEffect(()=>{e.clearReset()},[e])},iU=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||ek(n,[e.error,r])),sU=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},oU=(e,t)=>e.isLoading&&e.isFetching&&!t,lU=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,gO=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function cU(e,t,n){var p,m,g,v;const r=JB(),a=nU(),i=Gt(),s=i.defaultQueryOptions(e);(m=(p=i.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||m.call(p,s);const o=i.getQueryCache().get(s.queryHash),l=e.subscribed!==!1;s._optimisticResults=r?"isRestoring":l?"optimistic":void 0,sU(s),rU(s,a,o),aU(a);const u=!i.getQueryCache().get(s.queryHash),[f]=A.useState(()=>new t(i,s)),d=f.getOptimisticResult(s),h=!r&&l;if(A.useSyncExternalStore(A.useCallback(y=>{const b=h?f.subscribe(Zt.batchCalls(y)):Tn;return f.updateResult(),b},[f,h]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),A.useEffect(()=>{f.setOptions(s)},[s,f]),lU(s,d))throw gO(s,f,a);if(iU({result:d,errorResetBoundary:a,throwOnError:s.throwOnError,query:o,suspense:s.suspense}))throw d.error;if((v=(g=i.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||v.call(g,s,d),s.experimental_prefetchInRender&&!_f.isServer()&&oU(d,r)){const y=u?gO(s,f,a):o==null?void 0:o.promise;y==null||y.catch(Tn).finally(()=>{f.updateResult()})}return s.notifyOnChangeProps?d:f.trackResult(d)}function se(e,t){return cU(e,HB)}/**
 * react-router v7.17.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var vO="popstate";function bO(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function uU(e={}){function t(r,a){var u;let i=(u=a.state)==null?void 0:u.masked,{pathname:s,search:o,hash:l}=i||r.location;return c0("",{pathname:s,search:o,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default",i?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,a){return typeof a=="string"?a:Pf(a)}return dU(t,n,null,e)}function ft(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Sr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function fU(){return Math.random().toString(36).substring(2,10)}function xO(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 c0(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Lc(t):t,state:n,key:t&&t.key||r||fU(),mask:a}}function Pf({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 Lc(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 dU(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,s=a.history,o="POP",l=null,u=f();u==null&&(u=0,s.replaceState({...s.state,idx:u},""));function f(){return(s.state||{idx:null}).idx}function d(){o="POP";let v=f(),y=v==null?null:v-u;u=v,l&&l({action:o,location:g.location,delta:y})}function h(v,y){o="PUSH";let b=bO(v)?v:c0(g.location,v,y);u=f()+1;let x=xO(b,u),w=g.createHref(b.mask||b);try{s.pushState(x,"",w)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;a.location.assign(w)}i&&l&&l({action:o,location:g.location,delta:1})}function p(v,y){o="REPLACE";let b=bO(v)?v:c0(g.location,v,y);u=f();let x=xO(b,u),w=g.createHref(b.mask||b);s.replaceState(x,"",w),i&&l&&l({action:o,location:g.location,delta:0})}function m(v){return hU(a,v)}let g={get action(){return o},get location(){return e(a,s)},listen(v){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(vO,d),l=v,()=>{a.removeEventListener(vO,d),l=null}},createHref(v){return t(a,v)},createURL:m,encodeLocation(v){let y=m(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:p,go(v){return s.go(v)}};return g}function hU(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),ft(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:Pf(t);return a=a.replace(/ $/,"%20"),!n&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function ck(e,t,n="/"){return pU(e,t,n,!1)}function pU(e,t,n,r,a){let i=typeof t=="string"?Lc(t):t,s=Za(i.pathname||"/",n);if(s==null)return null;let o=mU(e),l=null,u=EU(s);for(let f=0;l==null&&f<o.length;++f)l=OU(o[f],u,r);return l}function mU(e){let t=uk(e);return yU(t),t}function uk(e,t=[],n=[],r="",a=!1){let i=(s,o,l=a,u)=>{let f={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&l)return;ft(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length)}let d=Ir([r,f.relativePath]),h=n.concat(f);s.children&&s.children.length>0&&(ft(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),uk(s.children,t,h,d,l)),!(s.path==null&&!s.index)&&t.push({path:d,score:jU(d,s.index),routesMeta:h})};return e.forEach((s,o)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,o);else for(let u of fk(s.path))i(s,o,!0,u)}),t}function fk(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let s=fk(r.join("/")),o=[];return o.push(...s.map(l=>l===""?i:[i,l].join("/"))),a&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function yU(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:AU(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var gU=/^:[\w-]+$/,vU=3,bU=2,xU=1,SU=10,wU=-2,SO=e=>e==="*";function jU(e,t){let n=e.split("/"),r=n.length;return n.some(SO)&&(r+=wU),t&&(r+=bU),n.filter(a=>!SO(a)).reduce((a,i)=>a+(gU.test(i)?vU:i===""?xU:SU),r)}function AU(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 OU(e,t,n=!1){let{routesMeta:r}=e,a={},i="/",s=[];for(let o=0;o<r.length;++o){let l=r[o],u=o===r.length-1,f=i==="/"?t:t.slice(i.length)||"/",d=im({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},f),h=l.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=im({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},f)),!d)return null;Object.assign(a,d.params),s.push({params:a,pathname:Ir([i,d.pathname]),pathnameBase:PU(Ir([i,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(i=Ir([i,d.pathnameBase]))}return s}function im(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=NU(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],s=i.replace(/(.)\/+$/,"$1"),o=a.slice(1);return{params:r.reduce((u,{paramName:f,isOptional:d},h)=>{if(f==="*"){let m=o[h]||"";s=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const p=o[h];return d&&!p?u[f]=void 0:u[f]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function NU(e,t=!1,n=!0){Sr(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,(s,o,l,u,f)=>{if(r.push({paramName:o,isOptional:l!=null}),l){let d=f.charAt(u+s.length);return d&&d!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}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 EU(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Sr(!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 Za(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)||"/"}var TU=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function CU(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Lc(e):e,i;return n?(n=dk(n),n.startsWith("/")?i=wO(n.substring(1),"/"):i=wO(n,t)):i=t,{pathname:i,search:MU(r),hash:RU(a)}}function wO(e,t){let n=sm(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function qv(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 _U(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function xw(e){let t=_U(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Ky(e,t,n,r=!1){let a;typeof e=="string"?a=Lc(e):(a={...e},ft(!a.pathname||!a.pathname.includes("?"),qv("?","pathname","search",a)),ft(!a.pathname||!a.pathname.includes("#"),qv("#","pathname","hash",a)),ft(!a.search||!a.search.includes("#"),qv("#","search","hash",a)));let i=e===""||a.pathname==="",s=i?"/":a.pathname,o;if(s==null)o=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),d-=1;a.pathname=h.join("/")}o=d>=0?t[d]:"/"}let l=CU(a,o),u=s&&s!=="/"&&s.endsWith("/"),f=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}var dk=e=>e.replace(/\/\/+/g,"/"),Ir=e=>dk(e.join("/")),sm=e=>e.replace(/\/+$/,""),PU=e=>sm(e).replace(/^\/*/,"/"),MU=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,RU=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,DU=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 kU(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function $U(e){let t=e.map(n=>n.route.path).filter(Boolean);return Ir(t)||"/"}var hk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function pk(e,t){let n=e;if(typeof n!="string"||!TU.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(hk)try{let i=new URL(window.location.href),s=n.startsWith("//")?new URL(i.protocol+n):new URL(n),o=Za(s.pathname,t);s.origin===i.origin&&o!=null?n=o+s.search+s.hash:a=!0}catch{Sr(!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 mk=["POST","PUT","PATCH","DELETE"];new Set(mk);var LU=["GET",...mk];new Set(LU);var zc=A.createContext(null);zc.displayName="DataRouter";var Gy=A.createContext(null);Gy.displayName="DataRouterState";var yk=A.createContext(!1);function zU(){return A.useContext(yk)}var gk=A.createContext({isTransitioning:!1});gk.displayName="ViewTransition";var IU=A.createContext(new Map);IU.displayName="Fetchers";var BU=A.createContext(null);BU.displayName="Await";var nr=A.createContext(null);nr.displayName="Navigation";var Id=A.createContext(null);Id.displayName="Location";var Or=A.createContext({outlet:null,matches:[],isDataRoute:!1});Or.displayName="Route";var Sw=A.createContext(null);Sw.displayName="RouteError";var vk="REACT_ROUTER_ERROR",UU="REDIRECT",FU="ROUTE_ERROR_RESPONSE";function VU(e){if(e.startsWith(`${vk}:${UU}:{`))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 HU(e){if(e.startsWith(`${vk}:${FU}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new DU(t.status,t.statusText,t.data)}catch{}}function qU(e,{relative:t}={}){ft(Ic(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=A.useContext(nr),{hash:a,pathname:i,search:s}=Bd(e,{relative:t}),o=i;return n!=="/"&&(o=i==="/"?n:Ir([n,i])),r.createHref({pathname:o,search:s,hash:a})}function Ic(){return A.useContext(Id)!=null}function Nr(){return ft(Ic(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(Id).location}var bk="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function xk(e){A.useContext(nr).static||A.useLayoutEffect(e)}function Yt(){let{isDataRoute:e}=A.useContext(Or);return e?s7():KU()}function KU(){ft(Ic(),"useNavigate() may be used only in the context of a <Router> component.");let e=A.useContext(zc),{basename:t,navigator:n}=A.useContext(nr),{matches:r}=A.useContext(Or),{pathname:a}=Nr(),i=JSON.stringify(xw(r)),s=A.useRef(!1);return xk(()=>{s.current=!0}),A.useCallback((l,u={})=>{if(Sr(s.current,bk),!s.current)return;if(typeof l=="number"){n.go(l);return}let f=Ky(l,JSON.parse(i),a,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Ir([t,f.pathname])),(u.replace?n.replace:n.push)(f,u.state,u)},[t,n,i,a,e])}var GU=A.createContext(null);function YU(e){let t=A.useContext(Or).outlet;return A.useMemo(()=>t&&A.createElement(GU.Provider,{value:e},t),[t,e])}function Sk(){let{matches:e}=A.useContext(Or),t=e[e.length-1];return(t==null?void 0:t.params)??{}}function Bd(e,{relative:t}={}){let{matches:n}=A.useContext(Or),{pathname:r}=Nr(),a=JSON.stringify(xw(n));return A.useMemo(()=>Ky(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function WU(e,t){return wk(e,t)}function wk(e,t,n){var v;ft(Ic(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=A.useContext(nr),{matches:a}=A.useContext(Or),i=a[a.length-1],s=i?i.params:{},o=i?i.pathname:"/",l=i?i.pathnameBase:"/",u=i&&i.route;{let y=u&&u.path||"";Ak(o,!u||y.endsWith("*")||y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${o}" (under <Route path="${y}">) 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="${y}"> to <Route path="${y==="/"?"*":`${y}/*`}">.`)}let f=Nr(),d;if(t){let y=typeof t=="string"?Lc(t):t;ft(l==="/"||((v=y.pathname)==null?void 0:v.startsWith(l)),`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 "${l}" but pathname "${y.pathname}" was given in the \`location\` prop.`),d=y}else d=f;let h=d.pathname||"/",p=h;if(l!=="/"){let y=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(y.length).join("/")}let m=n&&n.state.matches.length?n.state.matches.map(y=>Object.assign(y,{route:n.manifest[y.route.id]||y.route})):ck(e,{pathname:p});Sr(u||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),Sr(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=e7(m&&m.map(y=>Object.assign({},y,{params:Object.assign({},s,y.params),pathname:Ir([l,r.encodeLocation?r.encodeLocation(y.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?l:Ir([l,r.encodeLocation?r.encodeLocation(y.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathnameBase])})),a,n);return t&&g?A.createElement(Id.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...d},navigationType:"POP"}},g):g}function XU(){let e=i7(),t=kU(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:i},"ErrorBoundary")," or"," ",A.createElement("code",{style:i},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},t),n?A.createElement("pre",{style:a},n):null,s)}var QU=A.createElement(XU,null),jk=class extends A.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=HU(e.digest);n&&(e=n)}let t=e!==void 0?A.createElement(Or.Provider,{value:this.props.routeContext},A.createElement(Sw.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?A.createElement(ZU,{error:e},t):t}};jk.contextType=yk;var Kv=new WeakMap;function ZU({children:e,error:t}){let{basename:n}=A.useContext(nr);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=VU(t.digest);if(r){let a=Kv.get(t);if(a)throw a;let i=pk(r.location,n);if(hk&&!Kv.get(t))if(i.isExternal||r.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw Kv.set(t,s),s}return A.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function JU({routeContext:e,match:t,children:n}){let r=A.useContext(zc);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),A.createElement(Or.Provider,{value:e},n)}function e7(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,i=r==null?void 0:r.errors;if(i!=null){let f=a.findIndex(d=>d.route.id&&(i==null?void 0:i[d.route.id])!==void 0);ft(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,f+1))}let s=!1,o=-1;if(n&&r){s=r.renderFallback;for(let f=0;f<a.length;f++){let d=a[f];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(o=f),d.route.id){let{loaderData:h,errors:p}=r,m=d.route.loader&&!h.hasOwnProperty(d.route.id)&&(!p||p[d.route.id]===void 0);if(d.route.lazy||m){n.isStatic&&(s=!0),o>=0?a=a.slice(0,o+1):a=[a[0]];break}}}}let l=n==null?void 0:n.onError,u=r&&l?(f,d)=>{var h,p;l(f,{location:r.location,params:((p=(h=r.matches)==null?void 0:h[0])==null?void 0:p.params)??{},pattern:$U(r.matches),errorInfo:d})}:void 0;return a.reduceRight((f,d,h)=>{let p,m=!1,g=null,v=null;r&&(p=i&&d.route.id?i[d.route.id]:void 0,g=d.route.errorElement||QU,s&&(o<0&&h===0?(Ak("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,v=null):o===h&&(m=!0,v=d.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,h+1)),b=()=>{let x;return p?x=g:m?x=v:d.route.Component?x=A.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=f,A.createElement(JU,{match:d,routeContext:{outlet:f,matches:y,isDataRoute:r!=null},children:x})};return r&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?A.createElement(jk,{location:r.location,revalidation:r.revalidation,component:g,error:p,children:b(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:u}):b()},null)}function ww(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function t7(e){let t=A.useContext(zc);return ft(t,ww(e)),t}function n7(e){let t=A.useContext(Gy);return ft(t,ww(e)),t}function r7(e){let t=A.useContext(Or);return ft(t,ww(e)),t}function jw(e){let t=r7(e),n=t.matches[t.matches.length-1];return ft(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function a7(){return jw("useRouteId")}function i7(){var r;let e=A.useContext(Sw),t=n7("useRouteError"),n=jw("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function s7(){let{router:e}=t7("useNavigate"),t=jw("useNavigate"),n=A.useRef(!1);return xk(()=>{n.current=!0}),A.useCallback(async(a,i={})=>{Sr(n.current,bk),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var jO={};function Ak(e,t,n){!t&&!jO[e]&&(jO[e]=!0,Sr(!1,n))}A.memo(o7);function o7({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:i}){return wk(e,void 0,{manifest:t,state:r,isStatic:a,onError:i})}function om({to:e,replace:t,state:n,relative:r}){ft(Ic(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=A.useContext(nr);Sr(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=A.useContext(Or),{pathname:s}=Nr(),o=Yt(),l=Ky(e,xw(i),s,r==="path"),u=JSON.stringify(l);return A.useEffect(()=>{o(JSON.parse(u),{replace:t,state:n,relative:r})},[o,u,r,t,n]),null}function Ok(e){return YU(e.context)}function ve(e){ft(!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 l7({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,useTransitions:s}){ft(!Ic(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),l=A.useMemo(()=>({basename:o,navigator:a,static:i,useTransitions:s,future:{}}),[o,a,i,s]);typeof n=="string"&&(n=Lc(n));let{pathname:u="/",search:f="",hash:d="",state:h=null,key:p="default",mask:m}=n,g=A.useMemo(()=>{let v=Za(u,o);return v==null?null:{location:{pathname:v,search:f,hash:d,state:h,key:p,mask:m},navigationType:r}},[o,u,f,d,h,p,r,m]);return Sr(g!=null,`<Router basename="${o}"> is not able to match the URL "${u}${f}${d}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:A.createElement(nr.Provider,{value:l},A.createElement(Id.Provider,{children:t,value:g}))}function c7({children:e,location:t}){return WU(u0(e),t)}function u0(e,t=[]){let n=[];return A.Children.forEach(e,(r,a)=>{if(!A.isValidElement(r))return;let i=[...t,a];if(r.type===A.Fragment){n.push.apply(n,u0(r.props.children,i));return}ft(r.type===ve,`[${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>`),ft(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=u0(r.props.children,i)),n.push(s)}),n}var yp="get",gp="application/x-www-form-urlencoded";function Yy(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function u7(e){return Yy(e)&&e.tagName.toLowerCase()==="button"}function f7(e){return Yy(e)&&e.tagName.toLowerCase()==="form"}function d7(e){return Yy(e)&&e.tagName.toLowerCase()==="input"}function h7(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function p7(e,t){return e.button===0&&(!t||t==="_self")&&!h7(e)}function f0(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}function m7(e,t){let n=f0(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(i=>{n.append(a,i)})}),n}var Eh=null;function y7(){if(Eh===null)try{new FormData(document.createElement("form"),0),Eh=!1}catch{Eh=!0}return Eh}var g7=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Gv(e){return e!=null&&!g7.has(e)?(Sr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${gp}"`),null):e}function v7(e,t){let n,r,a,i,s;if(f7(e)){let o=e.getAttribute("action");r=o?Za(o,t):null,n=e.getAttribute("method")||yp,a=Gv(e.getAttribute("enctype"))||gp,i=new FormData(e)}else if(u7(e)||d7(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||o.getAttribute("action");if(r=l?Za(l,t):null,n=e.getAttribute("formmethod")||o.getAttribute("method")||yp,a=Gv(e.getAttribute("formenctype"))||Gv(o.getAttribute("enctype"))||gp,i=new FormData(o,e),!y7()){let{name:u,type:f,value:d}=e;if(f==="image"){let h=u?`${u}.`:"";i.append(`${h}x`,"0"),i.append(`${h}y`,"0")}else u&&i.append(u,d)}}else{if(Yy(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=yp,r=null,a=gp,s=e}return i&&a==="text/plain"&&(s=i,i=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:i,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Aw(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Nk(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&&Za(a.pathname,t)==="/"?a.pathname=`${sm(t)}/_root.${r}`:a.pathname=`${sm(a.pathname)}.${r}`,a}async function b7(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 x7(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 S7(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let s=await b7(i,n);return s.links?s.links():[]}return[]}));return O7(r.flat(1).filter(x7).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function AO(e,t,n,r,a,i){let s=(l,u)=>n[u]?l.route.id!==n[u].route.id:!0,o=(l,u)=>{var f;return n[u].pathname!==l.pathname||((f=n[u].route.path)==null?void 0:f.endsWith("*"))&&n[u].params["*"]!==l.params["*"]};return i==="assets"?t.filter((l,u)=>s(l,u)||o(l,u)):i==="data"?t.filter((l,u)=>{var d;let f=r.routes[l.route.id];if(!f||!f.hasLoader)return!1;if(s(l,u)||o(l,u))return!0;if(l.route.shouldRevalidate){let h=l.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((d=n[0])==null?void 0:d.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function w7(e,t,{includeHydrateFallback:n}={}){return j7(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let i=[a.module];return a.clientActionModule&&(i=i.concat(a.clientActionModule)),a.clientLoaderModule&&(i=i.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(i=i.concat(a.hydrateFallbackModule)),a.imports&&(i=i.concat(a.imports)),i}).flat(1))}function j7(e){return[...new Set(e)]}function A7(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function O7(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(A7(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function Ow(){let e=A.useContext(zc);return Aw(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function N7(){let e=A.useContext(Gy);return Aw(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Nw=A.createContext(void 0);Nw.displayName="FrameworkContext";function Ew(){let e=A.useContext(Nw);return Aw(e,"You must render this element inside a <HydratedRouter> element"),e}function E7(e,t){let n=A.useContext(Nw),[r,a]=A.useState(!1),[i,s]=A.useState(!1),{onFocus:o,onBlur:l,onMouseEnter:u,onMouseLeave:f,onTouchStart:d}=t,h=A.useRef(null);A.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let g=y=>{y.forEach(b=>{s(b.isIntersecting)})},v=new IntersectionObserver(g,{threshold:.5});return h.current&&v.observe(h.current),()=>{v.disconnect()}}},[e]),A.useEffect(()=>{if(r){let g=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(g)}}},[r]);let p=()=>{a(!0)},m=()=>{a(!1),s(!1)};return n?e!=="intent"?[i,h,{}]:[i,h,{onFocus:fu(o,p),onBlur:fu(l,m),onMouseEnter:fu(u,p),onMouseLeave:fu(f,m),onTouchStart:fu(d,p)}]:[!1,h,{}]}function fu(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function T7({page:e,...t}){let n=zU(),{router:r}=Ow(),a=A.useMemo(()=>ck(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?n?A.createElement(_7,{page:e,matches:a,...t}):A.createElement(P7,{page:e,matches:a,...t}):null}function C7(e){let{manifest:t,routeModules:n}=Ew(),[r,a]=A.useState([]);return A.useEffect(()=>{let i=!1;return S7(e,t,n).then(s=>{i||a(s)}),()=>{i=!0}},[e,t,n]),r}function _7({page:e,matches:t,...n}){let r=Nr(),{future:a}=Ew(),{basename:i}=Ow(),s=A.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let o=Nk(e,i,a.v8_trailingSlashAwareDataRequests,"rsc"),l=!1,u=[];for(let f of t)typeof f.route.shouldRevalidate=="function"?l=!0:u.push(f.route.id);return l&&u.length>0&&o.searchParams.set("_routes",u.join(",")),[o.pathname+o.search]},[i,a.v8_trailingSlashAwareDataRequests,e,r,t]);return A.createElement(A.Fragment,null,s.map(o=>A.createElement("link",{key:o,rel:"prefetch",as:"fetch",href:o,...n})))}function P7({page:e,matches:t,...n}){let r=Nr(),{future:a,manifest:i,routeModules:s}=Ew(),{basename:o}=Ow(),{loaderData:l,matches:u}=N7(),f=A.useMemo(()=>AO(e,t,u,i,r,"data"),[e,t,u,i,r]),d=A.useMemo(()=>AO(e,t,u,i,r,"assets"),[e,t,u,i,r]),h=A.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let g=new Set,v=!1;if(t.forEach(b=>{var w;let x=i.routes[b.route.id];!x||!x.hasLoader||(!f.some(S=>S.route.id===b.route.id)&&b.route.id in l&&((w=s[b.route.id])!=null&&w.shouldRevalidate)||x.hasClientLoader?v=!0:g.add(b.route.id))}),g.size===0)return[];let y=Nk(e,o,a.v8_trailingSlashAwareDataRequests,"data");return v&&g.size>0&&y.searchParams.set("_routes",t.filter(b=>g.has(b.route.id)).map(b=>b.route.id).join(",")),[y.pathname+y.search]},[o,a.v8_trailingSlashAwareDataRequests,l,r,i,f,t,e,s]),p=A.useMemo(()=>w7(d,i),[d,i]),m=C7(d);return A.createElement(A.Fragment,null,h.map(g=>A.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),p.map(g=>A.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),m.map(({key:g,link:v})=>A.createElement("link",{key:g,nonce:n.nonce,...v,crossOrigin:v.crossOrigin??n.crossOrigin})))}function M7(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var R7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{R7&&(window.__reactRouterVersion="7.17.0")}catch{}function D7({basename:e,children:t,useTransitions:n,window:r}){let a=A.useRef();a.current==null&&(a.current=uU({window:r,v5Compat:!0}));let i=a.current,[s,o]=A.useState({action:i.action,location:i.location}),l=A.useCallback(u=>{n===!1?o(u):A.startTransition(()=>o(u))},[n]);return A.useLayoutEffect(()=>i.listen(l),[i,l]),A.createElement(l7,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:i,useTransitions:n})}var Ek=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Le=A.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:s,mask:o,state:l,target:u,to:f,preventScrollReset:d,viewTransition:h,defaultShouldRevalidate:p,...m},g){let{basename:v,navigator:y,useTransitions:b}=A.useContext(nr),x=typeof f=="string"&&Ek.test(f),w=pk(f,v);f=w.to;let S=qU(f,{relative:a}),j=Nr(),O=null;if(o){let k=Ky(o,[],j.mask?j.mask.pathname:"/",!0);v!=="/"&&(k.pathname=k.pathname==="/"?v:Ir([v,k.pathname])),O=y.createHref(k)}let[N,E,T]=E7(r,m),P=L7(f,{replace:s,mask:o,state:l,target:u,preventScrollReset:d,relative:a,viewTransition:h,defaultShouldRevalidate:p,useTransitions:b});function C(k){t&&t(k),k.defaultPrevented||P(k)}let $=!(w.isExternal||i),D=A.createElement("a",{...m,...T,href:($?O:void 0)||w.absoluteURL||S,onClick:$?C:t,ref:M7(g,E),target:u,"data-discover":!x&&n==="render"?"true":void 0});return N&&!x?A.createElement(A.Fragment,null,D,A.createElement(T7,{page:S})):D});Le.displayName="Link";var vp=A.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:s,viewTransition:o,children:l,...u},f){let d=Bd(s,{relative:u.relative}),h=Nr(),p=A.useContext(Gy),{navigator:m,basename:g}=A.useContext(nr),v=p!=null&&F7(d)&&o===!0,y=m.encodeLocation?m.encodeLocation(d).pathname:d.pathname,b=h.pathname,x=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(b=b.toLowerCase(),x=x?x.toLowerCase():null,y=y.toLowerCase()),x&&g&&(x=Za(x,g)||x);const w=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let S=b===y||!a&&b.startsWith(y)&&b.charAt(w)==="/",j=x!=null&&(x===y||!a&&x.startsWith(y)&&x.charAt(y.length)==="/"),O={isActive:S,isPending:j,isTransitioning:v},N=S?t:void 0,E;typeof r=="function"?E=r(O):E=[r,S?"active":null,j?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let T=typeof i=="function"?i(O):i;return A.createElement(Le,{...u,"aria-current":N,className:E,ref:f,style:T,to:s,viewTransition:o},typeof l=="function"?l(O):l)});vp.displayName="NavLink";var k7=A.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:s=yp,action:o,onSubmit:l,relative:u,preventScrollReset:f,viewTransition:d,defaultShouldRevalidate:h,...p},m)=>{let{useTransitions:g}=A.useContext(nr),v=B7(),y=U7(o,{relative:u}),b=s.toLowerCase()==="get"?"get":"post",x=typeof o=="string"&&Ek.test(o),w=S=>{if(l&&l(S),S.defaultPrevented)return;S.preventDefault();let j=S.nativeEvent.submitter,O=(j==null?void 0:j.getAttribute("formmethod"))||s,N=()=>v(j||S.currentTarget,{fetcherKey:t,method:O,navigate:n,replace:a,state:i,relative:u,preventScrollReset:f,viewTransition:d,defaultShouldRevalidate:h});g&&n!==!1?A.startTransition(()=>N()):N()};return A.createElement("form",{ref:m,method:b,action:y,onSubmit:r?l:w,...p,"data-discover":!x&&e==="render"?"true":void 0})});k7.displayName="Form";function $7(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Tk(e){let t=A.useContext(zc);return ft(t,$7(e)),t}function L7(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:i,relative:s,viewTransition:o,defaultShouldRevalidate:l,useTransitions:u}={}){let f=Yt(),d=Nr(),h=Bd(e,{relative:s});return A.useCallback(p=>{if(p7(p,t)){p.preventDefault();let m=n!==void 0?n:Pf(d)===Pf(h),g=()=>f(e,{replace:m,mask:r,state:a,preventScrollReset:i,relative:s,viewTransition:o,defaultShouldRevalidate:l});u?A.startTransition(()=>g()):g()}},[d,f,h,n,r,a,t,e,i,s,o,l,u])}function Ck(e){Sr(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=A.useRef(f0(e)),n=A.useRef(!1),r=Nr(),a=A.useMemo(()=>m7(r.search,n.current?null:t.current),[r.search]),i=Yt(),s=A.useCallback((o,l)=>{const u=f0(typeof o=="function"?o(new URLSearchParams(a)):o);n.current=!0,i("?"+u,l)},[i,a]);return[a,s]}var z7=0,I7=()=>`__${String(++z7)}__`;function B7(){let{router:e}=Tk("useSubmit"),{basename:t}=A.useContext(nr),n=a7(),r=e.fetch,a=e.navigate;return A.useCallback(async(i,s={})=>{let{action:o,method:l,encType:u,formData:f,body:d}=v7(i,t);if(s.navigate===!1){let h=s.fetcherKey||I7();await r(h,n,s.action||o,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:f,body:d,formMethod:s.method||l,formEncType:s.encType||u,flushSync:s.flushSync})}else await a(s.action||o,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:f,body:d,formMethod:s.method||l,formEncType:s.encType||u,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,a,t,n])}function U7(e,{relative:t}={}){let{basename:n}=A.useContext(nr),r=A.useContext(Or);ft(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...Bd(e||".",{relative:t})},s=Nr();if(e==null){i.search=s.search;let o=new URLSearchParams(i.search),l=o.getAll("index");if(l.some(f=>f==="")){o.delete("index"),l.filter(d=>d).forEach(d=>o.append("index",d));let f=o.toString();i.search=f?`?${f}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:Ir([n,i.pathname])),Pf(i)}function F7(e,{relative:t}={}){let n=A.useContext(gk);ft(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Tk("useViewTransitionState"),a=Bd(e,{relative:t});if(!n.isTransitioning)return!1;let i=Za(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Za(n.nextLocation.pathname,r)||n.nextLocation.pathname;return im(a.pathname,s)!=null||im(a.pathname,i)!=null}const _k=A.createContext(null);function V7({children:e}){const[t,n]=A.useState(()=>localStorage.getItem("mall_zip")||""),[r,a]=A.useState(()=>{const m=localStorage.getItem("mall_store_id");return m?Number(m):null}),[i,s]=A.useState(()=>localStorage.getItem("mall_store_name")||""),[o,l]=A.useState(()=>localStorage.getItem("mall_token")),[u,f]=A.useState(0),d=(m,g,v)=>{n(m),a(g),s(v),localStorage.setItem("mall_zip",m),localStorage.setItem("mall_store_id",String(g)),localStorage.setItem("mall_store_name",v)},h=()=>{n(""),a(null),s(""),localStorage.removeItem("mall_zip"),localStorage.removeItem("mall_store_id"),localStorage.removeItem("mall_store_name")},p=m=>{l(m),m?localStorage.setItem("mall_token",m):localStorage.removeItem("mall_token")};return A.useEffect(()=>{const m=()=>l(localStorage.getItem("mall_token"));return window.addEventListener("storage",m),()=>window.removeEventListener("storage",m)},[]),c.jsx(_k.Provider,{value:{zip:t,storeId:r,storeName:i,setZone:d,clearZone:h,custToken:o,setCustToken:p,cartCount:u,setCartCount:f},children:e})}const Sn=()=>A.useContext(_k),Ae=e=>`$${(Number(e)||0).toFixed(2)}`,Tw=A.createContext({});function Bc(e){const t=A.useRef(null);return t.current===null&&(t.current=e()),t.current}const Wy=A.createContext(null),Xy=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class H7 extends A.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function q7({children:e,isPresent:t}){const n=A.useId(),r=A.useRef(null),a=A.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=A.useContext(Xy);return A.useInsertionEffect(()=>{const{width:s,height:o,top:l,left:u}=a.current;if(t||!r.current||!s||!o)return;r.current.dataset.motionPopId=n;const f=document.createElement("style");return i&&(f.nonce=i),document.head.appendChild(f),f.sheet&&f.sheet.insertRule(`
          [data-motion-pop-id="${n}"] {
            position: absolute !important;
            width: ${s}px !important;
            height: ${o}px !important;
            top: ${l}px !important;
            left: ${u}px !important;
          }
        `),()=>{document.head.removeChild(f)}},[t]),c.jsx(H7,{isPresent:t,childRef:r,sizeRef:a,children:A.cloneElement(e,{ref:r})})}const K7=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:i,mode:s})=>{const o=Bc(G7),l=A.useId(),u=A.useCallback(d=>{o.set(d,!0);for(const h of o.values())if(!h)return;r&&r()},[o,r]),f=A.useMemo(()=>({id:l,initial:t,isPresent:n,custom:a,onExitComplete:u,register:d=>(o.set(d,!1),()=>o.delete(d))}),i?[Math.random(),u]:[n,u]);return A.useMemo(()=>{o.forEach((d,h)=>o.set(h,!1))},[n]),A.useEffect(()=>{!n&&!o.size&&r&&r()},[n]),s==="popLayout"&&(e=c.jsx(q7,{isPresent:n,children:e})),c.jsx(Wy.Provider,{value:f,children:e})};function G7(){return new Map}function Pk(e=!0){const t=A.useContext(Wy);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,i=A.useId();A.useEffect(()=>{e&&a(i)},[e]);const s=A.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}const Th=e=>e.key||"";function OO(e){const t=[];return A.Children.forEach(e,n=>{A.isValidElement(n)&&t.push(n)}),t}const Cw=typeof window<"u",Qy=Cw?A.useLayoutEffect:A.useEffect,d0=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:i="sync",propagate:s=!1})=>{const[o,l]=Pk(s),u=A.useMemo(()=>OO(e),[e]),f=s&&!o?[]:u.map(Th),d=A.useRef(!0),h=A.useRef(u),p=Bc(()=>new Map),[m,g]=A.useState(u),[v,y]=A.useState(u);Qy(()=>{d.current=!1,h.current=u;for(let w=0;w<v.length;w++){const S=Th(v[w]);f.includes(S)?p.delete(S):p.get(S)!==!0&&p.set(S,!1)}},[v,f.length,f.join("-")]);const b=[];if(u!==m){let w=[...u];for(let S=0;S<v.length;S++){const j=v[S],O=Th(j);f.includes(O)||(w.splice(S,0,j),b.push(j))}i==="wait"&&b.length&&(w=b),y(OO(w)),g(u);return}const{forceRender:x}=A.useContext(Tw);return c.jsx(c.Fragment,{children:v.map(w=>{const S=Th(w),j=s&&!o?!1:u===v||f.includes(S),O=()=>{if(p.has(S))p.set(S,!0);else return;let N=!0;p.forEach(E=>{E||(N=!1)}),N&&(x==null||x(),y(h.current),s&&(l==null||l()),r&&r())};return c.jsx(K7,{isPresent:j,initial:!d.current||n?void 0:!1,custom:j?void 0:t,presenceAffectsLayout:a,mode:i,onExitComplete:j?void 0:O,children:w},S)})})},vn=e=>e;let Y7=vn,Mk=vn;function _w(e){let t;return()=>(t===void 0&&(t=e()),t)}const so=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Fa=e=>e*1e3,Va=e=>e/1e3,W7={useManualTiming:!1};function X7(e){let t=new Set,n=new Set,r=!1,a=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function o(u){i.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,f=!1,d=!1)=>{const p=d&&r?t:n;return f&&i.add(u),p.has(u)||p.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(s=u,r){a=!0;return}r=!0,[t,n]=[n,t],t.forEach(o),t.clear(),r=!1,a&&(a=!1,l.process(u))}};return l}const Ch=["read","resolveKeyframes","update","preRender","render","postRender"],Q7=40;function Rk(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Ch.reduce((y,b)=>(y[b]=X7(i),y),{}),{read:o,resolveKeyframes:l,update:u,preRender:f,render:d,postRender:h}=s,p=()=>{const y=performance.now();n=!1,a.delta=r?1e3/60:Math.max(Math.min(y-a.timestamp,Q7),1),a.timestamp=y,a.isProcessing=!0,o.process(a),l.process(a),u.process(a),f.process(a),d.process(a),h.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(p))},m=()=>{n=!0,r=!0,a.isProcessing||e(p)};return{schedule:Ch.reduce((y,b)=>{const x=s[b];return y[b]=(w,S=!1,j=!1)=>(n||m(),x.schedule(w,S,j)),y},{}),cancel:y=>{for(let b=0;b<Ch.length;b++)s[Ch[b]].cancel(y)},state:a,steps:s}}const{schedule:Re,cancel:Ur,state:Ut,steps:Yv}=Rk(typeof requestAnimationFrame<"u"?requestAnimationFrame:vn,!0),Dk=A.createContext({strict:!1}),NO={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"]},Xl={};for(const e in NO)Xl[e]={isEnabled:t=>NO[e].some(n=>!!t[n])};function Z7(e){for(const t in e)Xl[t]={...Xl[t],...e[t]}}const J7=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","ignoreStrict","viewport"]);function lm(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||J7.has(e)}let kk=e=>!lm(e);function eF(e){e&&(kk=t=>t.startsWith("on")?!lm(t):e(t))}try{eF(require("@emotion/is-prop-valid").default)}catch{}function tF(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(kk(a)||n===!0&&lm(a)||!t&&!lm(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}function nF(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,a)=>a==="create"?e:(t.has(a)||t.set(a,e(a)),t.get(a))})}const Zy=A.createContext({});function Mf(e){return typeof e=="string"||Array.isArray(e)}function Jy(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Pw=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Mw=["initial",...Pw];function eg(e){return Jy(e.animate)||Mw.some(t=>Mf(e[t]))}function $k(e){return!!(eg(e)||e.variants)}function rF(e,t){if(eg(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Mf(n)?n:void 0,animate:Mf(r)?r:void 0}}return e.inherit!==!1?t:{}}function aF(e){const{initial:t,animate:n}=rF(e,A.useContext(Zy));return A.useMemo(()=>({initial:t,animate:n}),[EO(t),EO(n)])}function EO(e){return Array.isArray(e)?e.join(" "):e}const iF=Symbol.for("motionComponentSymbol");function al(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function sF(e,t,n){return A.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):al(n)&&(n.current=r))},[t])}const Rw=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),oF="framerAppearId",Lk="data-"+Rw(oF),{schedule:Dw}=Rk(queueMicrotask,!1),zk=A.createContext({});function lF(e,t,n,r,a){var i,s;const{visualElement:o}=A.useContext(Zy),l=A.useContext(Dk),u=A.useContext(Wy),f=A.useContext(Xy).reducedMotion,d=A.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:o,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:f}));const h=d.current,p=A.useContext(zk);h&&!h.projection&&a&&(h.type==="html"||h.type==="svg")&&cF(d.current,n,a,p);const m=A.useRef(!1);A.useInsertionEffect(()=>{h&&m.current&&h.update(n,u)});const g=n[Lk],v=A.useRef(!!g&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,g))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,g)));return Qy(()=>{h&&(m.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Dw.render(h.render),v.current&&h.animationState&&h.animationState.animateChanges())}),A.useEffect(()=>{h&&(!v.current&&h.animationState&&h.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,g)}),v.current=!1))}),h}function cF(e,t,n,r){const{layoutId:a,layout:i,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ik(e.parent)),e.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!s||o&&al(o),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function Ik(e){if(e)return e.options.allowProjection!==!1?e.projection:Ik(e.parent)}function uF({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:a}){var i,s;e&&Z7(e);function o(u,f){let d;const h={...A.useContext(Xy),...u,layoutId:fF(u)},{isStatic:p}=h,m=aF(u),g=r(u,p);if(!p&&Cw){dF();const v=hF(h);d=v.MeasureLayout,m.visualElement=lF(a,g,h,t,v.ProjectionNode)}return c.jsxs(Zy.Provider,{value:m,children:[d&&m.visualElement?c.jsx(d,{visualElement:m.visualElement,...h}):null,n(a,u,sF(g,m.visualElement,f),g,p,m.visualElement)]})}o.displayName=`motion.${typeof a=="string"?a:`create(${(s=(i=a.displayName)!==null&&i!==void 0?i:a.name)!==null&&s!==void 0?s:""})`}`;const l=A.forwardRef(o);return l[iF]=a,l}function fF({layoutId:e}){const t=A.useContext(Tw).id;return t&&e!==void 0?t+"-"+e:e}function dF(e,t){A.useContext(Dk).strict}function hF(e){const{drag:t,layout:n}=Xl;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const pF=["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 kw(e){return typeof e!="string"||e.includes("-")?!1:!!(pF.indexOf(e)>-1||/[A-Z]/u.test(e))}function TO(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function $w(e,t,n,r){if(typeof t=="function"){const[a,i]=TO(r);t=t(n!==void 0?n:e.custom,a,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,i]=TO(r);t=t(n!==void 0?n:e.custom,a,i)}return t}const h0=e=>Array.isArray(e),mF=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),yF=e=>h0(e)?e[e.length-1]||0:e,un=e=>!!(e&&e.getVelocity);function bp(e){const t=un(e)?e.get():e;return mF(t)?t.toValue():t}function gF({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,a,i){const s={latestValues:vF(r,a,i,e),renderState:t()};return n&&(s.onMount=o=>n({props:r,current:o,...s}),s.onUpdate=o=>n(o)),s}const Bk=e=>(t,n)=>{const r=A.useContext(Zy),a=A.useContext(Wy),i=()=>gF(e,t,r,a);return n?i():Bc(i)};function vF(e,t,n,r){const a={},i=r(e,{});for(const h in i)a[h]=bp(i[h]);let{initial:s,animate:o}=e;const l=eg(e),u=$k(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let f=n?n.initial===!1:!1;f=f||s===!1;const d=f?o:s;if(d&&typeof d!="boolean"&&!Jy(d)){const h=Array.isArray(d)?d:[d];for(let p=0;p<h.length;p++){const m=$w(e,h[p]);if(m){const{transitionEnd:g,transition:v,...y}=m;for(const b in y){let x=y[b];if(Array.isArray(x)){const w=f?x.length-1:0;x=x[w]}x!==null&&(a[b]=x)}for(const b in g)a[b]=g[b]}}}return a}const Uc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],jo=new Set(Uc),Uk=e=>t=>typeof t=="string"&&t.startsWith(e),Fk=Uk("--"),bF=Uk("var(--"),Lw=e=>bF(e)?xF.test(e.split("/*")[0].trim()):!1,xF=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Vk=(e,t)=>t&&typeof e=="number"?t.transform(e):e,fa=(e,t,n)=>n>t?t:n<e?e:n,Fc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Rf={...Fc,transform:e=>fa(0,1,e)},_h={...Fc,default:1},Ud=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),hi=Ud("deg"),sa=Ud("%"),fe=Ud("px"),SF=Ud("vh"),wF=Ud("vw"),CO={...sa,parse:e=>sa.parse(e)/100,transform:e=>sa.transform(e*100)},jF={borderWidth:fe,borderTopWidth:fe,borderRightWidth:fe,borderBottomWidth:fe,borderLeftWidth:fe,borderRadius:fe,radius:fe,borderTopLeftRadius:fe,borderTopRightRadius:fe,borderBottomRightRadius:fe,borderBottomLeftRadius:fe,width:fe,maxWidth:fe,height:fe,maxHeight:fe,top:fe,right:fe,bottom:fe,left:fe,padding:fe,paddingTop:fe,paddingRight:fe,paddingBottom:fe,paddingLeft:fe,margin:fe,marginTop:fe,marginRight:fe,marginBottom:fe,marginLeft:fe,backgroundPositionX:fe,backgroundPositionY:fe},AF={rotate:hi,rotateX:hi,rotateY:hi,rotateZ:hi,scale:_h,scaleX:_h,scaleY:_h,scaleZ:_h,skew:hi,skewX:hi,skewY:hi,distance:fe,translateX:fe,translateY:fe,translateZ:fe,x:fe,y:fe,z:fe,perspective:fe,transformPerspective:fe,opacity:Rf,originX:CO,originY:CO,originZ:fe},_O={...Fc,transform:Math.round},zw={...jF,...AF,zIndex:_O,size:fe,fillOpacity:Rf,strokeOpacity:Rf,numOctaves:_O},OF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},NF=Uc.length;function EF(e,t,n){let r="",a=!0;for(let i=0;i<NF;i++){const s=Uc[i],o=e[s];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(s.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||n){const u=Vk(o,zw[s]);if(!l){a=!1;const f=OF[s]||s;r+=`${f}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function Iw(e,t,n){const{style:r,vars:a,transformOrigin:i}=e;let s=!1,o=!1;for(const l in t){const u=t[l];if(jo.has(l)){s=!0;continue}else if(Fk(l)){a[l]=u;continue}else{const f=Vk(u,zw[l]);l.startsWith("origin")?(o=!0,i[l]=f):r[l]=f}}if(t.transform||(s||n?r.transform=EF(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:l="50%",originY:u="50%",originZ:f=0}=i;r.transformOrigin=`${l} ${u} ${f}`}}const TF={offset:"stroke-dashoffset",array:"stroke-dasharray"},CF={offset:"strokeDashoffset",array:"strokeDasharray"};function _F(e,t,n=1,r=0,a=!0){e.pathLength=1;const i=a?TF:CF;e[i.offset]=fe.transform(-r);const s=fe.transform(t),o=fe.transform(n);e[i.array]=`${s} ${o}`}function PO(e,t,n){return typeof e=="string"?e:fe.transform(t+n*e)}function PF(e,t,n){const r=PO(t,e.x,e.width),a=PO(n,e.y,e.height);return`${r} ${a}`}function Bw(e,{attrX:t,attrY:n,attrScale:r,originX:a,originY:i,pathLength:s,pathSpacing:o=1,pathOffset:l=0,...u},f,d){if(Iw(e,u,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:p,dimensions:m}=e;h.transform&&(m&&(p.transform=h.transform),delete h.transform),m&&(a!==void 0||i!==void 0||p.transform)&&(p.transformOrigin=PF(m,a!==void 0?a:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),s!==void 0&&_F(h,s,o,l,!1)}const Uw=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Hk=()=>({...Uw(),attrs:{}}),Fw=e=>typeof e=="string"&&e.toLowerCase()==="svg";function qk(e,{style:t,vars:n},r,a){Object.assign(e.style,t,a&&a.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Kk=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"]);function Gk(e,t,n,r){qk(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(Kk.has(a)?a:Rw(a),t.attrs[a])}const cm={};function MF(e){Object.assign(cm,e)}function Yk(e,{layout:t,layoutId:n}){return jo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!cm[e]||e==="opacity")}function Vw(e,t,n){var r;const{style:a}=e,i={};for(const s in a)(un(a[s])||t.style&&un(t.style[s])||Yk(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=a[s]);return i}function Wk(e,t,n){const r=Vw(e,t,n);for(const a in e)if(un(e[a])||un(t[a])){const i=Uc.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[i]=e[a]}return r}function RF(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const MO=["x","y","width","height","cx","cy","r"],DF={useVisualState:Bk({scrapeMotionValuesFromProps:Wk,createRenderState:Hk,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:a})=>{if(!n)return;let i=!!e.drag;if(!i){for(const o in a)if(jo.has(o)){i=!0;break}}if(!i)return;let s=!t;if(t)for(let o=0;o<MO.length;o++){const l=MO[o];e[l]!==t[l]&&(s=!0)}s&&Re.read(()=>{RF(n,r),Re.render(()=>{Bw(r,a,Fw(n.tagName),e.transformTemplate),Gk(n,r)})})}})},kF={useVisualState:Bk({scrapeMotionValuesFromProps:Vw,createRenderState:Uw})};function Xk(e,t,n){for(const r in t)!un(t[r])&&!Yk(r,n)&&(e[r]=t[r])}function $F({transformTemplate:e},t){return A.useMemo(()=>{const n=Uw();return Iw(n,t,e),Object.assign({},n.vars,n.style)},[t])}function LF(e,t){const n=e.style||{},r={};return Xk(r,n,e),Object.assign(r,$F(e,t)),r}function zF(e,t){const n={},r=LF(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}function IF(e,t,n,r){const a=A.useMemo(()=>{const i=Hk();return Bw(i,t,Fw(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Xk(i,e.style,e),a.style={...i,...a.style}}return a}function BF(e=!1){return(n,r,a,{latestValues:i},s)=>{const l=(kw(n)?IF:zF)(r,i,s,n),u=tF(r,typeof n=="string",e),f=n!==A.Fragment?{...u,...l,ref:a}:{},{children:d}=r,h=A.useMemo(()=>un(d)?d.get():d,[d]);return A.createElement(n,{...f,children:h})}}function UF(e,t){return function(r,{forwardMotionProps:a}={forwardMotionProps:!1}){const s={...kw(r)?DF:kF,preloadedFeatures:e,useRender:BF(a),createVisualElement:t,Component:r};return uF(s)}}function Qk(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}function tg(e,t,n){const r=e.getProps();return $w(r,t,n!==void 0?n:r.custom,e)}const Zk=_w(()=>window.ScrollTimeline!==void 0);class FF{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(a=>{if(Zk()&&a.attachTimeline)return a.attachTimeline(t);if(typeof n=="function")return n(a)});return()=>{r.forEach((a,i)=>{a&&a(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class VF extends FF{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Hw(e,t){return e?e[t]||e.default||e:void 0}const p0=2e4;function Jk(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<p0;)t+=n,r=e.next(t);return t>=p0?1/0:t}function qw(e){return typeof e=="function"}function RO(e,t){e.timeline=t,e.onfinish=null}const Kw=e=>Array.isArray(e)&&typeof e[0]=="number",HF={linearEasing:void 0};function qF(e,t){const n=_w(e);return()=>{var r;return(r=HF[t])!==null&&r!==void 0?r:n()}}const um=qF(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),e$=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let i=0;i<a;i++)r+=e(so(0,a-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function t$(e){return!!(typeof e=="function"&&um()||!e||typeof e=="string"&&(e in m0||um())||Kw(e)||Array.isArray(e)&&e.every(t$))}const Ru=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,m0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ru([0,.65,.55,1]),circOut:Ru([.55,0,1,.45]),backIn:Ru([.31,.01,.66,-.59]),backOut:Ru([.33,1.53,.69,.99])};function n$(e,t){if(e)return typeof e=="function"&&um()?e$(e,t):Kw(e)?Ru(e):Array.isArray(e)?e.map(n=>n$(n,t)||m0.easeOut):m0[e]}const Mr={x:!1,y:!1};function r$(){return Mr.x||Mr.y}function a$(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let a=document;const i=(r=void 0)!==null&&r!==void 0?r:a.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function i$(e,t){const n=a$(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function DO(e){return t=>{t.pointerType==="touch"||r$()||e(t)}}function KF(e,t,n={}){const[r,a,i]=i$(e,n),s=DO(o=>{const{target:l}=o,u=t(o);if(typeof u!="function"||!l)return;const f=DO(d=>{u(d),l.removeEventListener("pointerleave",f)});l.addEventListener("pointerleave",f,a)});return r.forEach(o=>{o.addEventListener("pointerenter",s,a)}),i}const s$=(e,t)=>t?e===t?!0:s$(e,t.parentElement):!1,Gw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,GF=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function YF(e){return GF.has(e.tagName)||e.tabIndex!==-1}const Du=new WeakSet;function kO(e){return t=>{t.key==="Enter"&&e(t)}}function Wv(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const WF=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=kO(()=>{if(Du.has(n))return;Wv(n,"down");const a=kO(()=>{Wv(n,"up")}),i=()=>Wv(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function $O(e){return Gw(e)&&!r$()}function XF(e,t,n={}){const[r,a,i]=i$(e,n),s=o=>{const l=o.currentTarget;if(!$O(o)||Du.has(l))return;Du.add(l);const u=t(o),f=(p,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),!(!$O(p)||!Du.has(l))&&(Du.delete(l),typeof u=="function"&&u(p,{success:m}))},d=p=>{f(p,n.useGlobalTarget||s$(l,p.target))},h=p=>{f(p,!1)};window.addEventListener("pointerup",d,a),window.addEventListener("pointercancel",h,a)};return r.forEach(o=>{!YF(o)&&o.getAttribute("tabindex")===null&&(o.tabIndex=0),(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,a),o.addEventListener("focus",u=>WF(u,a),a)}),i}function QF(e){return e==="x"||e==="y"?Mr[e]?null:(Mr[e]=!0,()=>{Mr[e]=!1}):Mr.x||Mr.y?null:(Mr.x=Mr.y=!0,()=>{Mr.x=Mr.y=!1})}const o$=new Set(["width","height","top","left","right","bottom",...Uc]);let xp;function ZF(){xp=void 0}const oa={now:()=>(xp===void 0&&oa.set(Ut.isProcessing||W7.useManualTiming?Ut.timestamp:performance.now()),xp),set:e=>{xp=e,queueMicrotask(ZF)}};function Yw(e,t){e.indexOf(t)===-1&&e.push(t)}function Ww(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Xw{constructor(){this.subscriptions=[]}add(t){return Yw(this.subscriptions,t),()=>Ww(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 i=0;i<a;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Qw(e,t){return t?e*(1e3/t):0}const LO=30,JF=e=>!isNaN(parseFloat(e)),Zu={current:void 0};class e9{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,a=!0)=>{const i=oa.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=oa.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=JF(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 Xw);const r=this.events[t].add(n);return t==="change"?()=>{r(),Re.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,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}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()}get(){return Zu.current&&Zu.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=oa.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>LO)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,LO);return Qw(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(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ea(e,t){return new e9(e,t)}function t9(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ea(n))}function n9(e,t){const n=tg(e,t);let{transitionEnd:r={},transition:a={},...i}=n||{};i={...i,...r};for(const s in i){const o=yF(i[s]);t9(e,s,o)}}function r9(e){return!!(un(e)&&e.add)}function y0(e,t){const n=e.getValue("willChange");if(r9(n))return n.add(t)}function l$(e){return e.props[Lk]}const c$=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,a9=1e-7,i9=12;function s9(e,t,n,r,a){let i,s,o=0;do s=t+(n-t)/2,i=c$(s,r,a)-e,i>0?n=s:t=s;while(Math.abs(i)>a9&&++o<i9);return s}function Fd(e,t,n,r){if(e===t&&n===r)return vn;const a=i=>s9(i,0,1,e,n);return i=>i===0||i===1?i:c$(a(i),t,r)}const u$=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,f$=e=>t=>1-e(1-t),d$=Fd(.33,1.53,.69,.99),Zw=f$(d$),h$=u$(Zw),p$=e=>(e*=2)<1?.5*Zw(e):.5*(2-Math.pow(2,-10*(e-1))),Jw=e=>1-Math.sin(Math.acos(e)),m$=f$(Jw),y$=u$(Jw),g$=e=>/^0[^.\s]+$/u.test(e);function o9(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||g$(e):!0}const Ju=e=>Math.round(e*1e5)/1e5,ej=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function l9(e){return e==null}const c9=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tj=(e,t)=>n=>!!(typeof n=="string"&&c9.test(n)&&n.startsWith(e)||t&&!l9(n)&&Object.prototype.hasOwnProperty.call(n,t)),v$=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,i,s,o]=r.match(ej);return{[e]:parseFloat(a),[t]:parseFloat(i),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},u9=e=>fa(0,255,e),Xv={...Fc,transform:e=>Math.round(u9(e))},Ts={test:tj("rgb","red"),parse:v$("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Xv.transform(e)+", "+Xv.transform(t)+", "+Xv.transform(n)+", "+Ju(Rf.transform(r))+")"};function f9(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 g0={test:tj("#"),parse:f9,transform:Ts.transform},il={test:tj("hsl","hue"),parse:v$("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+sa.transform(Ju(t))+", "+sa.transform(Ju(n))+", "+Ju(Rf.transform(r))+")"},on={test:e=>Ts.test(e)||g0.test(e)||il.test(e),parse:e=>Ts.test(e)?Ts.parse(e):il.test(e)?il.parse(e):g0.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ts.transform(e):il.transform(e)},d9=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function h9(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(ej))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(d9))===null||n===void 0?void 0:n.length)||0)>0}const b$="number",x$="color",p9="var",m9="var(",zO="${}",y9=/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 Df(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let i=0;const o=t.replace(y9,l=>(on.test(l)?(r.color.push(i),a.push(x$),n.push(on.parse(l))):l.startsWith(m9)?(r.var.push(i),a.push(p9),n.push(l)):(r.number.push(i),a.push(b$),n.push(parseFloat(l))),++i,zO)).split(zO);return{values:n,split:o,indexes:r,types:a}}function S$(e){return Df(e).values}function w$(e){const{split:t,types:n}=Df(e),r=t.length;return a=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],a[s]!==void 0){const o=n[s];o===b$?i+=Ju(a[s]):o===x$?i+=on.transform(a[s]):i+=a[s]}return i}}const g9=e=>typeof e=="number"?0:e;function v9(e){const t=S$(e);return w$(e)(t.map(g9))}const ns={test:h9,parse:S$,createTransformer:w$,getAnimatableNone:v9},b9=new Set(["brightness","contrast","saturate","opacity"]);function x9(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ej)||[];if(!r)return e;const a=n.replace(r,"");let i=b9.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+a+")"}const S9=/\b([a-z-]*)\(.*?\)/gu,v0={...ns,getAnimatableNone:e=>{const t=e.match(S9);return t?t.map(x9).join(" "):e}},w9={...zw,color:on,backgroundColor:on,outlineColor:on,fill:on,stroke:on,borderColor:on,borderTopColor:on,borderRightColor:on,borderBottomColor:on,borderLeftColor:on,filter:v0,WebkitFilter:v0},nj=e=>w9[e];function j$(e,t){let n=nj(e);return n!==v0&&(n=ns),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const j9=new Set(["auto","none","0"]);function A9(e,t,n){let r=0,a;for(;r<e.length&&!a;){const i=e[r];typeof i=="string"&&!j9.has(i)&&Df(i).values.length&&(a=e[r]),r++}if(a&&n)for(const i of t)e[i]=j$(n,a)}const IO=e=>e===Fc||e===fe,BO=(e,t)=>parseFloat(e.split(", ")[t]),UO=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const a=r.match(/^matrix3d\((.+)\)$/u);if(a)return BO(a[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?BO(i[1],e):0}},O9=new Set(["x","y","z"]),N9=Uc.filter(e=>!O9.has(e));function E9(e){const t=[];return N9.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ql={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-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:UO(4,13),y:UO(5,14)};Ql.translateX=Ql.x;Ql.translateY=Ql.y;const Xs=new Set;let b0=!1,x0=!1;function A$(){if(x0){const e=Array.from(Xs).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=E9(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(([i,s])=>{var o;(o=r.getValue(i))===null||o===void 0||o.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}x0=!1,b0=!1,Xs.forEach(e=>e.complete()),Xs.clear()}function O$(){Xs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(x0=!0)})}function T9(){O$(),A$()}class rj{constructor(t,n,r,a,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Xs.add(this),b0||(b0=!0,Re.read(O$),Re.resolveKeyframes(A$))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const s=a==null?void 0:a.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const l=r.readValue(n,o);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=o),a&&s===void 0&&a.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Xs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Xs.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const N$=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),C9=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function _9(e){const t=C9.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function E$(e,t,n=1){const[r,a]=_9(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return N$(s)?parseFloat(s):s}return Lw(a)?E$(a,t,n+1):a}const T$=e=>t=>t.test(e),P9={test:e=>e==="auto",parse:e=>e},C$=[Fc,fe,sa,hi,wF,SF,P9],FO=e=>C$.find(T$(e));class _$ extends rj{constructor(t,n,r,a,i){super(t,n,r,a,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),Lw(u))){const f=E$(u,n.current);f!==void 0&&(t[l]=f),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!o$.has(r)||t.length!==2)return;const[a,i]=t,s=FO(a),o=FO(i);if(s!==o)if(IO(s)&&IO(o))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)o9(t[a])&&r.push(a);r.length&&A9(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=Ql[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 t;const{element:n,name:r,unresolvedKeyframes:a}=this;if(!n||!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const s=a.length-1,o=a[s];a[s]=Ql[r](n.measureViewportBox(),window.getComputedStyle(n.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const VO=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ns.test(e)||e==="0")&&!e.startsWith("url("));function M9(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 R9(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=VO(a,t),o=VO(i,t);return!s||!o?!1:M9(e)||(n==="spring"||qw(n))&&r}const D9=e=>e!==null;function ng(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(D9),i=t&&n!=="loop"&&t%2===1?0:a.length-1;return!i||r===void 0?a[i]:r}const k9=40;class P${constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=oa.now(),this.options={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:i,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>k9?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&T9(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=oa.now(),this.hasAttemptedResolve=!0;const{name:r,type:a,velocity:i,delay:s,onComplete:o,onUpdate:l,isGenerator:u}=this.options;if(!u&&!R9(t,r,a,i))if(s)this.options.duration=0;else{l&&l(ng(t,this.options,n)),o&&o(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ht=(e,t,n)=>e+(t-e)*n;function Qv(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 $9({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,i=0,s=0;if(!t)a=i=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;a=Qv(l,o,e+1/3),i=Qv(l,o,e),s=Qv(l,o,e-1/3)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function fm(e,t){return n=>n>0?t:e}const Zv=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},L9=[g0,Ts,il],z9=e=>L9.find(t=>t.test(e));function HO(e){const t=z9(e);if(!t)return!1;let n=t.parse(e);return t===il&&(n=$9(n)),n}const qO=(e,t)=>{const n=HO(e),r=HO(t);if(!n||!r)return fm(e,t);const a={...n};return i=>(a.red=Zv(n.red,r.red,i),a.green=Zv(n.green,r.green,i),a.blue=Zv(n.blue,r.blue,i),a.alpha=ht(n.alpha,r.alpha,i),Ts.transform(a))},I9=(e,t)=>n=>t(e(n)),Vd=(...e)=>e.reduce(I9),S0=new Set(["none","hidden"]);function B9(e,t){return S0.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function U9(e,t){return n=>ht(e,t,n)}function aj(e){return typeof e=="number"?U9:typeof e=="string"?Lw(e)?fm:on.test(e)?qO:H9:Array.isArray(e)?M$:typeof e=="object"?on.test(e)?qO:F9:fm}function M$(e,t){const n=[...e],r=n.length,a=e.map((i,s)=>aj(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=a[s](i);return n}}function F9(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=aj(e[a])(e[a],t[a]));return a=>{for(const i in r)n[i]=r[i](a);return n}}function V9(e,t){var n;const r=[],a={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],o=e.indexes[s][a[s]],l=(n=e.values[o])!==null&&n!==void 0?n:0;r[i]=l,a[s]++}return r}const H9=(e,t)=>{const n=ns.createTransformer(t),r=Df(e),a=Df(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?S0.has(e)&&!a.values.length||S0.has(t)&&!r.values.length?B9(e,t):Vd(M$(V9(r,a),a.values),n):fm(e,t)};function R$(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ht(e,t,n):aj(e)(e,t)}const q9=5;function D$(e,t,n){const r=Math.max(t-q9,0);return Qw(n-e(r),t-r)}const gt={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},Jv=.001;function K9({duration:e=gt.duration,bounce:t=gt.bounce,velocity:n=gt.velocity,mass:r=gt.mass}){let a,i,s=1-t;s=fa(gt.minDamping,gt.maxDamping,s),e=fa(gt.minDuration,gt.maxDuration,Va(e)),s<1?(a=u=>{const f=u*s,d=f*e,h=f-n,p=w0(u,s),m=Math.exp(-d);return Jv-h/p*m},i=u=>{const d=u*s*e,h=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,m=Math.exp(-d),g=w0(Math.pow(u,2),s);return(-a(u)+Jv>0?-1:1)*((h-p)*m)/g}):(a=u=>{const f=Math.exp(-u*e),d=(u-n)*e+1;return-Jv+f*d},i=u=>{const f=Math.exp(-u*e),d=(n-u)*(e*e);return f*d});const o=5/e,l=Y9(a,i,o);if(e=Fa(e),isNaN(l))return{stiffness:gt.stiffness,damping:gt.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const G9=12;function Y9(e,t,n){let r=n;for(let a=1;a<G9;a++)r=r-e(r)/t(r);return r}function w0(e,t){return e*Math.sqrt(1-t*t)}const W9=["duration","bounce"],X9=["stiffness","damping","mass"];function KO(e,t){return t.some(n=>e[n]!==void 0)}function Q9(e){let t={velocity:gt.velocity,stiffness:gt.stiffness,damping:gt.damping,mass:gt.mass,isResolvedFromDuration:!1,...e};if(!KO(e,X9)&&KO(e,W9))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,i=2*fa(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:gt.mass,stiffness:a,damping:i}}else{const n=K9(e);t={...t,...n,mass:gt.mass},t.isResolvedFromDuration=!0}return t}function k$(e=gt.visualDuration,t=gt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:i},{stiffness:l,damping:u,mass:f,duration:d,velocity:h,isResolvedFromDuration:p}=Q9({...n,velocity:-Va(n.velocity||0)}),m=h||0,g=u/(2*Math.sqrt(l*f)),v=s-i,y=Va(Math.sqrt(l/f)),b=Math.abs(v)<5;r||(r=b?gt.restSpeed.granular:gt.restSpeed.default),a||(a=b?gt.restDelta.granular:gt.restDelta.default);let x;if(g<1){const S=w0(y,g);x=j=>{const O=Math.exp(-g*y*j);return s-O*((m+g*y*v)/S*Math.sin(S*j)+v*Math.cos(S*j))}}else if(g===1)x=S=>s-Math.exp(-y*S)*(v+(m+y*v)*S);else{const S=y*Math.sqrt(g*g-1);x=j=>{const O=Math.exp(-g*y*j),N=Math.min(S*j,300);return s-O*((m+g*y*v)*Math.sinh(N)+S*v*Math.cosh(N))/S}}const w={calculatedDuration:p&&d||null,next:S=>{const j=x(S);if(p)o.done=S>=d;else{let O=0;g<1&&(O=S===0?Fa(m):D$(x,S,j));const N=Math.abs(O)<=r,E=Math.abs(s-j)<=a;o.done=N&&E}return o.value=o.done?s:j,o},toString:()=>{const S=Math.min(Jk(w),p0),j=e$(O=>w.next(S*O).value,S,30);return S+"ms "+j}};return w}function GO({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:s,min:o,max:l,restDelta:u=.5,restSpeed:f}){const d=e[0],h={done:!1,value:d},p=N=>o!==void 0&&N<o||l!==void 0&&N>l,m=N=>o===void 0?l:l===void 0||Math.abs(o-N)<Math.abs(l-N)?o:l;let g=n*t;const v=d+g,y=s===void 0?v:s(v);y!==v&&(g=y-d);const b=N=>-g*Math.exp(-N/r),x=N=>y+b(N),w=N=>{const E=b(N),T=x(N);h.done=Math.abs(E)<=u,h.value=h.done?y:T};let S,j;const O=N=>{p(h.value)&&(S=N,j=k$({keyframes:[h.value,m(h.value)],velocity:D$(x,N,h.value),damping:a,stiffness:i,restDelta:u,restSpeed:f}))};return O(0),{calculatedDuration:null,next:N=>{let E=!1;return!j&&S===void 0&&(E=!0,w(N),O(N)),S!==void 0&&N>=S?j.next(N-S):(!E&&w(N),h)}}}const Z9=Fd(.42,0,1,1),J9=Fd(0,0,.58,1),$$=Fd(.42,0,.58,1),eV=e=>Array.isArray(e)&&typeof e[0]!="number",tV={linear:vn,easeIn:Z9,easeInOut:$$,easeOut:J9,circIn:Jw,circInOut:y$,circOut:m$,backIn:Zw,backInOut:h$,backOut:d$,anticipate:p$},YO=e=>{if(Kw(e)){Mk(e.length===4);const[t,n,r,a]=e;return Fd(t,n,r,a)}else if(typeof e=="string")return tV[e];return e};function nV(e,t,n){const r=[],a=n||R$,i=e.length-1;for(let s=0;s<i;s++){let o=a(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||vn:t;o=Vd(l,o)}r.push(o)}return r}function ij(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const i=e.length;if(Mk(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=nV(t,r,a),l=o.length,u=f=>{if(s&&f<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(f<e[d+1]);d++);const h=so(e[d],e[d+1],f);return o[d](h)};return n?f=>u(fa(e[0],e[i-1],f)):u}function rV(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=so(0,t,r);e.push(ht(n,1,a))}}function L$(e){const t=[0];return rV(t,e.length-1),t}function aV(e,t){return e.map(n=>n*t)}function iV(e,t){return e.map(()=>t||$$).splice(0,e.length-1)}function dm({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=eV(r)?r.map(YO):YO(r),i={done:!1,value:t[0]},s=aV(n&&n.length===t.length?n:L$(t),e),o=ij(s,t,{ease:Array.isArray(a)?a:iV(t,a)});return{calculatedDuration:e,next:l=>(i.value=o(l),i.done=l>=e,i)}}const sV=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Re.update(t,!0),stop:()=>Ur(t),now:()=>Ut.isProcessing?Ut.timestamp:oa.now()}},oV={decay:GO,inertia:GO,tween:dm,keyframes:dm,spring:k$},lV=e=>e/100;class sj extends P${constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:a,keyframes:i}=this.options,s=(a==null?void 0:a.KeyframeResolver)||rj,o=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(i,o,n,r,a),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:a=0,repeatType:i,velocity:s=0}=this.options,o=qw(n)?n:oV[n]||dm;let l,u;o!==dm&&typeof t[0]!="number"&&(l=Vd(lV,R$(t[0],t[1])),t=[0,100]);const f=o({...this.options,keyframes:t});i==="mirror"&&(u=o({...this.options,keyframes:[...t].reverse(),velocity:-s})),f.calculatedDuration===null&&(f.calculatedDuration=Jk(f));const{calculatedDuration:d}=f,h=d+a,p=h*(r+1)-a;return{generator:f,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:h,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:N}=this.options;return{done:!0,value:N[N.length-1]}}const{finalKeyframe:a,generator:i,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:l,calculatedDuration:u,totalDuration:f,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:h,repeat:p,repeatType:m,repeatDelay:g,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const y=this.currentTime-h*(this.speed>=0?1:-1),b=this.speed>=0?y<0:y>f;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let x=this.currentTime,w=i;if(p){const N=Math.min(this.currentTime,f)/d;let E=Math.floor(N),T=N%1;!T&&N>=1&&(T=1),T===1&&E--,E=Math.min(E,p+1),!!(E%2)&&(m==="reverse"?(T=1-T,g&&(T-=g/d)):m==="mirror"&&(w=s)),x=fa(0,1,T)*d}const S=b?{done:!1,value:l[0]}:w.next(x);o&&(S.value=o(S.value));let{done:j}=S;!b&&u!==null&&(j=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&j);return O&&a!==void 0&&(S.value=ng(l,this.options,a)),v&&v(S.value),O&&this.finish(),S}get duration(){const{resolved:t}=this;return t?Va(t.calculatedDuration):0}get time(){return Va(this.currentTime)}set time(t){t=Fa(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Va(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=sV,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const cV=new Set(["opacity","clipPath","filter","transform"]);function uV(e,t,n,{delay:r=0,duration:a=300,repeat:i=0,repeatType:s="loop",ease:o="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const f=n$(o,a);return Array.isArray(f)&&(u.easing=f),e.animate(u,{delay:r,duration:a,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}const fV=_w(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),hm=10,dV=2e4;function hV(e){return qw(e.type)||e.type==="spring"||!t$(e.ease)}function pV(e,t){const n=new sj({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const a=[];let i=0;for(;!r.done&&i<dV;)r=n.sample(i),a.push(r.value),i+=hm;return{times:void 0,keyframes:a,duration:i-hm,ease:"linear"}}const z$={anticipate:p$,backInOut:h$,circInOut:y$};function mV(e){return e in z$}class WO extends P${constructor(t){super(t);const{name:n,motionValue:r,element:a,keyframes:i}=this.options;this.resolver=new _$(i,(s,o)=>this.onKeyframesResolved(s,o),n,r,a),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:a,ease:i,type:s,motionValue:o,name:l,startTime:u}=this.options;if(!o.owner||!o.owner.current)return!1;if(typeof i=="string"&&um()&&mV(i)&&(i=z$[i]),hV(this.options)){const{onComplete:d,onUpdate:h,motionValue:p,element:m,...g}=this.options,v=pV(t,g);t=v.keyframes,t.length===1&&(t[1]=t[0]),r=v.duration,a=v.times,i=v.ease,s="keyframes"}const f=uV(o.owner.current,l,t,{...this.options,duration:r,times:a,ease:i});return f.startTime=u??this.calcStartTime(),this.pendingTimeline?(RO(f,this.pendingTimeline),this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:d}=this.options;o.set(ng(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:r,times:a,type:s,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Va(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Va(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Fa(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return vn;const{animation:r}=n;RO(r,t)}return vn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:a,type:i,ease:s,times:o}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:f,onComplete:d,element:h,...p}=this.options,m=new sj({...p,keyframes:r,duration:a,type:i,ease:s,times:o,isGenerator:!0}),g=Fa(this.time);u.setWithVelocity(m.sample(g-hm).value,m.sample(g).value,hm)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:a,repeatType:i,damping:s,type:o}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return fV()&&r&&cV.has(r)&&!l&&!u&&!a&&i!=="mirror"&&s!==0&&o!=="inertia"}}const yV={type:"spring",stiffness:500,damping:25,restSpeed:10},gV=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),vV={type:"keyframes",duration:.8},bV={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},xV=(e,{keyframes:t})=>t.length>2?vV:jo.has(e)?e.startsWith("scale")?gV(t[1]):yV:bV;function SV({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:i,repeatType:s,repeatDelay:o,from:l,elapsed:u,...f}){return!!Object.keys(f).length}const oj=(e,t,n,r={},a,i)=>s=>{const o=Hw(r,e)||{},l=o.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Fa(l);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:h=>{t.set(h),o.onUpdate&&o.onUpdate(h)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:i?void 0:a};SV(o)||(f={...f,...xV(e,f)}),f.duration&&(f.duration=Fa(f.duration)),f.repeatDelay&&(f.repeatDelay=Fa(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let d=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const h=ng(f.keyframes,o);if(h!==void 0)return Re.update(()=>{f.onUpdate(h),f.onComplete()}),new VF([])}return!i&&WO.supports(f)?new WO(f):new sj(f)};function wV({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function I$(e,t,{delay:n=0,transitionOverride:r,type:a}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:o,...l}=t;r&&(s=r);const u=[],f=a&&e.animationState&&e.animationState.getState()[a];for(const d in l){const h=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),p=l[d];if(p===void 0||f&&wV(f,d))continue;const m={delay:n,...Hw(s||{},d)};let g=!1;if(window.MotionHandoffAnimation){const y=l$(e);if(y){const b=window.MotionHandoffAnimation(y,d,Re);b!==null&&(m.startTime=b,g=!0)}}y0(e,d),h.start(oj(d,h,p,e.shouldReduceMotion&&o$.has(d)?{type:!1}:m,e,g));const v=h.animation;v&&u.push(v)}return o&&Promise.all(u).then(()=>{Re.update(()=>{o&&n9(e,o)})}),u}function j0(e,t,n={}){var r;const a=tg(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(i=n.transitionOverride);const s=a?()=>Promise.all(I$(e,a,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:f=0,staggerChildren:d,staggerDirection:h}=i;return jV(e,t,f+u,d,h,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,f]=l==="beforeChildren"?[s,o]:[o,s];return u().then(()=>f())}else return Promise.all([s(),o(n.delay)])}function jV(e,t,n=0,r=0,a=1,i){const s=[],o=(e.variantChildren.size-1)*r,l=a===1?(u=0)=>u*r:(u=0)=>o-u*r;return Array.from(e.variantChildren).sort(AV).forEach((u,f)=>{u.notify("AnimationStart",t),s.push(j0(u,t,{...i,delay:n+l(f)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function AV(e,t){return e.sortNodePosition(t)}function OV(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(i=>j0(e,i,n));r=Promise.all(a)}else if(typeof t=="string")r=j0(e,t,n);else{const a=typeof t=="function"?tg(e,t,n.custom):t;r=Promise.all(I$(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const NV=Mw.length;function B$(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?B$(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<NV;n++){const r=Mw[n],a=e.props[r];(Mf(a)||a===!1)&&(t[r]=a)}return t}const EV=[...Pw].reverse(),TV=Pw.length;function CV(e){return t=>Promise.all(t.map(({animation:n,options:r})=>OV(e,n,r)))}function _V(e){let t=CV(e),n=XO(),r=!0;const a=l=>(u,f)=>{var d;const h=tg(e,f,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(h){const{transition:p,transitionEnd:m,...g}=h;u={...u,...g,...m}}return u};function i(l){t=l(e)}function s(l){const{props:u}=e,f=B$(e.parent)||{},d=[],h=new Set;let p={},m=1/0;for(let v=0;v<TV;v++){const y=EV[v],b=n[y],x=u[y]!==void 0?u[y]:f[y],w=Mf(x),S=y===l?b.isActive:null;S===!1&&(m=v);let j=x===f[y]&&x!==u[y]&&w;if(j&&r&&e.manuallyAnimateOnMount&&(j=!1),b.protectedKeys={...p},!b.isActive&&S===null||!x&&!b.prevProp||Jy(x)||typeof x=="boolean")continue;const O=PV(b.prevProp,x);let N=O||y===l&&b.isActive&&!j&&w||v>m&&w,E=!1;const T=Array.isArray(x)?x:[x];let P=T.reduce(a(y),{});S===!1&&(P={});const{prevResolvedValues:C={}}=b,$={...C,...P},D=L=>{N=!0,h.has(L)&&(E=!0,h.delete(L)),b.needsAnimating[L]=!0;const I=e.getValue(L);I&&(I.liveStyle=!1)};for(const L in $){const I=P[L],F=C[L];if(p.hasOwnProperty(L))continue;let q=!1;h0(I)&&h0(F)?q=!Qk(I,F):q=I!==F,q?I!=null?D(L):h.add(L):I!==void 0&&h.has(L)?D(L):b.protectedKeys[L]=!0}b.prevProp=x,b.prevResolvedValues=P,b.isActive&&(p={...p,...P}),r&&e.blockInitialAnimation&&(N=!1),N&&(!(j&&O)||E)&&d.push(...T.map(L=>({animation:L,options:{type:y}})))}if(h.size){const v={};h.forEach(y=>{const b=e.getBaseTarget(y),x=e.getValue(y);x&&(x.liveStyle=!0),v[y]=b??null}),d.push({animation:v})}let g=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(d):Promise.resolve()}function o(l,u){var f;if(n[l].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var p;return(p=h.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:s,setActive:o,setAnimateFunction:i,getState:()=>n,reset:()=>{n=XO(),r=!0}}}function PV(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Qk(t,e):!1}function hs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function XO(){return{animate:hs(!0),whileInView:hs(),whileHover:hs(),whileTap:hs(),whileDrag:hs(),whileFocus:hs(),exit:hs()}}class is{constructor(t){this.isMounted=!1,this.node=t}update(){}}class MV extends is{constructor(t){super(t),t.animationState||(t.animationState=_V(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Jy(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===void 0||t.call(this)}}let RV=0;class DV extends is{constructor(){super(...arguments),this.id=RV++}update(){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;const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const kV={animation:{Feature:MV},exit:{Feature:DV}};function kf(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Hd(e){return{point:{x:e.pageX,y:e.pageY}}}const $V=e=>t=>Gw(t)&&e(t,Hd(t));function ef(e,t,n,r){return kf(e,t,$V(n),r)}const QO=(e,t)=>Math.abs(e-t);function LV(e,t){const n=QO(e.x,t.x),r=QO(e.y,t.y);return Math.sqrt(n**2+r**2)}class U${constructor(t,n,{transformPagePoint:r,contextWindow:a,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=tb(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,p=LV(d.offset,{x:0,y:0})>=3;if(!h&&!p)return;const{point:m}=d,{timestamp:g}=Ut;this.history.push({...m,timestamp:g});const{onStart:v,onMove:y}=this.handlers;h||(v&&v(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=eb(h,this.transformPagePoint),Re.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:p,onSessionEnd:m,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=tb(d.type==="pointercancel"?this.lastMoveEventInfo:eb(h,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,v),m&&m(d,v)},!Gw(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=a||window;const s=Hd(t),o=eb(s,this.transformPagePoint),{point:l}=o,{timestamp:u}=Ut;this.history=[{...l,timestamp:u}];const{onSessionStart:f}=n;f&&f(t,tb(o,this.history)),this.removeListeners=Vd(ef(this.contextWindow,"pointermove",this.handlePointerMove),ef(this.contextWindow,"pointerup",this.handlePointerUp),ef(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ur(this.updatePoint)}}function eb(e,t){return t?{point:t(e.point)}:e}function ZO(e,t){return{x:e.x-t.x,y:e.y-t.y}}function tb({point:e},t){return{point:e,delta:ZO(e,F$(t)),offset:ZO(e,zV(t)),velocity:IV(t,.1)}}function zV(e){return e[0]}function F$(e){return e[e.length-1]}function IV(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=F$(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Fa(t)));)n--;if(!r)return{x:0,y:0};const i=Va(a.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(a.x-r.x)/i,y:(a.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const V$=1e-4,BV=1-V$,UV=1+V$,H$=.01,FV=0-H$,VV=0+H$;function tr(e){return e.max-e.min}function HV(e,t,n){return Math.abs(e-t)<=n}function JO(e,t,n,r=.5){e.origin=r,e.originPoint=ht(t.min,t.max,e.origin),e.scale=tr(n)/tr(t),e.translate=ht(n.min,n.max,e.origin)-e.originPoint,(e.scale>=BV&&e.scale<=UV||isNaN(e.scale))&&(e.scale=1),(e.translate>=FV&&e.translate<=VV||isNaN(e.translate))&&(e.translate=0)}function tf(e,t,n,r){JO(e.x,t.x,n.x,r?r.originX:void 0),JO(e.y,t.y,n.y,r?r.originY:void 0)}function eN(e,t,n){e.min=n.min+t.min,e.max=e.min+tr(t)}function qV(e,t,n){eN(e.x,t.x,n.x),eN(e.y,t.y,n.y)}function tN(e,t,n){e.min=t.min-n.min,e.max=e.min+tr(t)}function nf(e,t,n){tN(e.x,t.x,n.x),tN(e.y,t.y,n.y)}function KV(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ht(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ht(n,e,r.max):Math.min(e,n)),e}function nN(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 GV(e,{top:t,left:n,bottom:r,right:a}){return{x:nN(e.x,n,a),y:nN(e.y,t,r)}}function rN(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 YV(e,t){return{x:rN(e.x,t.x),y:rN(e.y,t.y)}}function WV(e,t){let n=.5;const r=tr(e),a=tr(t);return a>r?n=so(t.min,t.max-r,e.min):r>a&&(n=so(e.min,e.max-a,t.min)),fa(0,1,n)}function XV(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 A0=.35;function QV(e=A0){return e===!1?e=0:e===!0&&(e=A0),{x:aN(e,"left","right"),y:aN(e,"top","bottom")}}function aN(e,t,n){return{min:iN(e,t),max:iN(e,n)}}function iN(e,t){return typeof e=="number"?e:e[t]||0}const sN=()=>({translate:0,scale:1,origin:0,originPoint:0}),sl=()=>({x:sN(),y:sN()}),oN=()=>({min:0,max:0}),xt=()=>({x:oN(),y:oN()});function or(e){return[e("x"),e("y")]}function q$({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ZV({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function JV(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 nb(e){return e===void 0||e===1}function O0({scale:e,scaleX:t,scaleY:n}){return!nb(e)||!nb(t)||!nb(n)}function Ss(e){return O0(e)||K$(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function K$(e){return lN(e.x)||lN(e.y)}function lN(e){return e&&e!=="0%"}function pm(e,t,n){const r=e-n,a=t*r;return n+a}function cN(e,t,n,r,a){return a!==void 0&&(e=pm(e,a,r)),pm(e,n,r)+t}function N0(e,t=0,n=1,r,a){e.min=cN(e.min,t,n,r,a),e.max=cN(e.max,t,n,r,a)}function G$(e,{x:t,y:n}){N0(e.x,t.translate,t.scale,t.originPoint),N0(e.y,n.translate,n.scale,n.originPoint)}const uN=.999999999999,fN=1.0000000000001;function eH(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let i,s;for(let o=0;o<a;o++){i=n[o],s=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&ll(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,G$(e,s)),r&&Ss(i.latestValues)&&ll(e,i.latestValues))}t.x<fN&&t.x>uN&&(t.x=1),t.y<fN&&t.y>uN&&(t.y=1)}function ol(e,t){e.min=e.min+t,e.max=e.max+t}function dN(e,t,n,r,a=.5){const i=ht(e.min,e.max,a);N0(e,t,n,i,r)}function ll(e,t){dN(e.x,t.x,t.scaleX,t.scale,t.originX),dN(e.y,t.y,t.scaleY,t.scale,t.originY)}function Y$(e,t){return q$(JV(e.getBoundingClientRect(),t))}function tH(e,t,n){const r=Y$(e,n),{scroll:a}=t;return a&&(ol(r.x,a.offset.x),ol(r.y,a.offset.y)),r}const W$=({current:e})=>e?e.ownerDocument.defaultView:null,nH=new WeakMap;class rH{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=xt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const a=f=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Hd(f).point)},i=(f,d)=>{const{drag:h,dragPropagation:p,onDragStart:m}=this.getProps();if(h&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=QF(h),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),or(v=>{let y=this.getAxisMotionValue(v).get()||0;if(sa.test(y)){const{projection:b}=this.visualElement;if(b&&b.layout){const x=b.layout.layoutBox[v];x&&(y=tr(x)*(parseFloat(y)/100))}}this.originPoint[v]=y}),m&&Re.postRender(()=>m(f,d)),y0(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(f,d)=>{const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:m,onDrag:g}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=d;if(p&&this.currentDirection===null){this.currentDirection=aH(v),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,v),this.updateAxis("y",d.point,v),this.visualElement.render(),g&&g(f,d)},o=(f,d)=>this.stop(f,d),l=()=>or(f=>{var d;return this.getAnimationState(f)==="paused"&&((d=this.getAxisMotionValue(f).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new U$(t,{onSessionStart:a,onStart:i,onMove:s,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:W$(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:a}=n;this.startAnimation(a);const{onDragEnd:i}=this.getProps();i&&Re.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!Ph(t,a,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=KV(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&al(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&a?this.constraints=GV(a.layoutBox,n):this.constraints=!1,this.elastic=QV(r),i!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&or(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=XV(a.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!al(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const i=tH(r,a.root,this.visualElement.getTransformPagePoint());let s=YV(a.layout.layoutBox,i);if(n){const o=n(ZV(s));this.hasMutatedConstraints=!!o,o&&(s=q$(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},u=or(f=>{if(!Ph(f,n,this.currentDirection))return;let d=l&&l[f]||{};s&&(d={min:0,max:0});const h=a?200:1e6,p=a?40:1e7,m={type:"inertia",velocity:r?t[f]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(f,m)});return Promise.all(u).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return y0(this.visualElement,t),r.start(oj(t,r,0,n,this.visualElement,!1))}stopAnimation(){or(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){or(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){or(n=>{const{drag:r}=this.getProps();if(!Ph(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,i=this.getAxisMotionValue(n);if(a&&a.layout){const{min:s,max:o}=a.layout.layoutBox[n];i.set(t[n]-ht(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!al(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};or(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const l=o.get();a[s]=WV({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),or(s=>{if(!Ph(s,t,null))return;const o=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];o.set(ht(l,u,a[s]))})}addListeners(){if(!this.visualElement.current)return;nH.set(this.visualElement,this);const t=this.visualElement.current,n=ef(t,"pointerdown",l=>{const{drag:u,dragListener:f=!0}=this.getProps();u&&f&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();al(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,i=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),Re.read(r);const s=kf(window,"resize",()=>this.scalePositionWithinConstraints()),o=a.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(or(f=>{const d=this.getAxisMotionValue(f);d&&(this.originPoint[f]+=l[f].translate,d.set(d.get()+l[f].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:i=!1,dragElastic:s=A0,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:i,dragElastic:s,dragMomentum:o}}}function Ph(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function aH(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class iH extends is{constructor(t){super(t),this.removeGroupControls=vn,this.removeListeners=vn,this.controls=new rH(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||vn}unmount(){this.removeGroupControls(),this.removeListeners()}}const hN=e=>(t,n)=>{e&&Re.postRender(()=>e(t,n))};class sH extends is{constructor(){super(...arguments),this.removePointerDownListener=vn}onPointerDown(t){this.session=new U$(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:W$(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:hN(t),onStart:hN(n),onMove:r,onEnd:(i,s)=>{delete this.session,a&&Re.postRender(()=>a(i,s))}}}mount(){this.removePointerDownListener=ef(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Sp={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pN(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const du={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(fe.test(e))e=parseFloat(e);else return e;const n=pN(e,t.target.x),r=pN(e,t.target.y);return`${n}% ${r}%`}},oH={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=ns.parse(e);if(a.length>5)return r;const i=ns.createTransformer(e),s=typeof a[0]!="number"?1:0,o=n.x.scale*t.x,l=n.y.scale*t.y;a[0+s]/=o,a[1+s]/=l;const u=ht(o,l,.5);return typeof a[2+s]=="number"&&(a[2+s]/=u),typeof a[3+s]=="number"&&(a[3+s]/=u),i(a)}};class lH extends A.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:i}=t;MF(cH),i&&(n.group&&n.group.add(i),r&&r.register&&a&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Sp.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,a||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Re.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Dw.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;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 X$(e){const[t,n]=Pk(),r=A.useContext(Tw);return c.jsx(lH,{...e,layoutGroup:r,switchLayoutGroup:A.useContext(zk),isPresent:t,safeToRemove:n})}const cH={borderRadius:{...du,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:du,borderTopRightRadius:du,borderBottomLeftRadius:du,borderBottomRightRadius:du,boxShadow:oH};function uH(e,t,n){const r=un(e)?e:ea(e);return r.start(oj("",r,t,n)),r.animation}function fH(e){return e instanceof SVGElement&&e.tagName!=="svg"}const dH=(e,t)=>e.depth-t.depth;class hH{constructor(){this.children=[],this.isDirty=!1}add(t){Yw(this.children,t),this.isDirty=!0}remove(t){Ww(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(dH),this.isDirty=!1,this.children.forEach(t)}}function pH(e,t){const n=oa.now(),r=({timestamp:a})=>{const i=a-n;i>=t&&(Ur(r),e(i-t))};return Re.read(r,!0),()=>Ur(r)}const Q$=["TopLeft","TopRight","BottomLeft","BottomRight"],mH=Q$.length,mN=e=>typeof e=="string"?parseFloat(e):e,yN=e=>typeof e=="number"||fe.test(e);function yH(e,t,n,r,a,i){a?(e.opacity=ht(0,n.opacity!==void 0?n.opacity:1,gH(r)),e.opacityExit=ht(t.opacity!==void 0?t.opacity:1,0,vH(r))):i&&(e.opacity=ht(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<mH;s++){const o=`border${Q$[s]}Radius`;let l=gN(t,o),u=gN(n,o);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||yN(l)===yN(u)?(e[o]=Math.max(ht(mN(l),mN(u),r),0),(sa.test(u)||sa.test(l))&&(e[o]+="%")):e[o]=u}(t.rotate||n.rotate)&&(e.rotate=ht(t.rotate||0,n.rotate||0,r))}function gN(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const gH=Z$(0,.5,m$),vH=Z$(.5,.95,vn);function Z$(e,t,n){return r=>r<e?0:r>t?1:n(so(e,t,r))}function vN(e,t){e.min=t.min,e.max=t.max}function rr(e,t){vN(e.x,t.x),vN(e.y,t.y)}function bN(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function xN(e,t,n,r,a){return e-=t,e=pm(e,1/n,r),a!==void 0&&(e=pm(e,1/a,r)),e}function bH(e,t=0,n=1,r=.5,a,i=e,s=e){if(sa.test(t)&&(t=parseFloat(t),t=ht(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=ht(i.min,i.max,r);e===i&&(o-=t),e.min=xN(e.min,t,n,o,a),e.max=xN(e.max,t,n,o,a)}function SN(e,t,[n,r,a],i,s){bH(e,t[n],t[r],t[a],t.scale,i,s)}const xH=["x","scaleX","originX"],SH=["y","scaleY","originY"];function wN(e,t,n,r){SN(e.x,t,xH,n?n.x:void 0,r?r.x:void 0),SN(e.y,t,SH,n?n.y:void 0,r?r.y:void 0)}function jN(e){return e.translate===0&&e.scale===1}function J$(e){return jN(e.x)&&jN(e.y)}function AN(e,t){return e.min===t.min&&e.max===t.max}function wH(e,t){return AN(e.x,t.x)&&AN(e.y,t.y)}function ON(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function e3(e,t){return ON(e.x,t.x)&&ON(e.y,t.y)}function NN(e){return tr(e.x)/tr(e.y)}function EN(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class jH{constructor(){this.members=[]}add(t){Yw(this.members,t),t.scheduleRender()}remove(t){if(Ww(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){const n=this.members.findIndex(a=>t===a);if(n===0)return!1;let r;for(let a=n;a>=0;a--){const i=this.members[a];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function AH(e,t,n){let r="";const a=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((a||i||s)&&(r=`translate3d(${a}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:f,rotateX:d,rotateY:h,skewX:p,skewY:m}=n;u&&(r=`perspective(${u}px) ${r}`),f&&(r+=`rotate(${f}deg) `),d&&(r+=`rotateX(${d}deg) `),h&&(r+=`rotateY(${h}deg) `),p&&(r+=`skewX(${p}deg) `),m&&(r+=`skewY(${m}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(r+=`scale(${o}, ${l})`),r||"none"}const ws={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ku=typeof window<"u"&&window.MotionDebug!==void 0,rb=["","X","Y","Z"],OH={visibility:"hidden"},TN=1e3;let NH=0;function ab(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function t3(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=l$(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Re,!(a||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t3(r)}function n3({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(s={},o=t==null?void 0:t()){this.id=NH++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ku&&(ws.totalNodes=ws.resolvedTargetDeltas=ws.recalculatedProjection=0),this.nodes.forEach(CH),this.nodes.forEach(DH),this.nodes.forEach(kH),this.nodes.forEach(_H),ku&&window.MotionDebug.record(ws)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new hH)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Xw),this.eventHandlers.get(s).add(o)}notifyListeners(s,...o){const l=this.eventHandlers.get(s);l&&l.notify(...o)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,o=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=fH(s),this.instance=s;const{layoutId:l,layout:u,visualElement:f}=this.options;if(f&&!f.current&&f.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),o&&(u||l)&&(this.isLayoutDirty=!0),e){let d;const h=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=pH(h,250),Sp.hasAnimatedSinceResize&&(Sp.hasAnimatedSinceResize=!1,this.nodes.forEach(_N))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&f&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeTargetChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||f.getDefaultTransition()||BH,{onLayoutAnimationStart:v,onLayoutAnimationComplete:y}=f.getProps(),b=!this.targetLayout||!e3(this.targetLayout,m)||p,x=!h&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||h&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,x);const w={...Hw(g,"layout"),onPlay:v,onComplete:y};(f.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else h||_N(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ur(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($H),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&t3(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const d=this.path[f];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(CN);return}this.isUpdating||this.nodes.forEach(MH),this.isUpdating=!1,this.nodes.forEach(RH),this.nodes.forEach(EH),this.nodes.forEach(TH),this.clearAllSnapshots();const o=oa.now();Ut.delta=fa(0,1e3/60,o-Ut.timestamp),Ut.timestamp=o,Ut.isProcessing=!0,Yv.update.process(Ut),Yv.preRender.process(Ut),Yv.render.process(Ut),Ut.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Dw.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(PH),this.sharedNodes.forEach(LH)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Re.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Re.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=xt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(o=!1),o){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!a)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!J$(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,f=u!==this.prevTransformTemplateValue;s&&(o||Ss(this.latestValues)||f)&&(a(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return s&&(l=this.removeTransform(l)),UH(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:o}=this.options;if(!o)return xt();const l=o.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(FH))){const{scroll:f}=this.root;f&&(ol(l.x,f.offset.x),ol(l.y,f.offset.y))}return l}removeElementScroll(s){var o;const l=xt();if(rr(l,s),!((o=this.scroll)===null||o===void 0)&&o.wasRoot)return l;for(let u=0;u<this.path.length;u++){const f=this.path[u],{scroll:d,options:h}=f;f!==this.root&&d&&h.layoutScroll&&(d.wasRoot&&rr(l,s),ol(l.x,d.offset.x),ol(l.y,d.offset.y))}return l}applyTransform(s,o=!1){const l=xt();rr(l,s);for(let u=0;u<this.path.length;u++){const f=this.path[u];!o&&f.options.layoutScroll&&f.scroll&&f!==f.root&&ll(l,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),Ss(f.latestValues)&&ll(l,f.latestValues)}return Ss(this.latestValues)&&ll(l,this.latestValues),l}removeTransform(s){const o=xt();rr(o,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Ss(u.latestValues))continue;O0(u.latestValues)&&u.updateSnapshot();const f=xt(),d=u.measurePageBox();rr(f,d),wN(o,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,f)}return Ss(this.latestValues)&&wN(o,this.latestValues),o}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==Ut.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var o;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:h}=this.options;if(!(!this.layout||!(d||h))){if(this.resolvedRelativeTargetAt=Ut.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xt(),this.relativeTargetOrigin=xt(),nf(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),rr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=xt(),this.targetWithTransforms=xt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),qV(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rr(this.target,this.layout.layoutBox),G$(this.target,this.targetDelta)):rr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xt(),this.relativeTargetOrigin=xt(),nf(this.relativeTargetOrigin,this.target,p.target),rr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ku&&ws.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||O0(this.parent.latestValues)||K$(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const o=this.getLead(),l=!!this.resumingFrom||this!==o;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Ut.timestamp&&(u=!1),u)return;const{layout:f,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||d))return;rr(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,p=this.treeScale.y;eH(this.layoutCorrected,this.treeScale,this.path,l),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=xt());const{target:m}=o;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(bN(this.prevProjectionDelta.x,this.projectionDelta.x),bN(this.prevProjectionDelta.y,this.projectionDelta.y)),tf(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==p||!EN(this.projectionDelta.x,this.prevProjectionDelta.x)||!EN(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),ku&&ws.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var o;if((o=this.options.visualElement)===null||o===void 0||o.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=sl(),this.projectionDelta=sl(),this.projectionDeltaWithTransform=sl()}setAnimationOrigin(s,o=!1){const l=this.snapshot,u=l?l.latestValues:{},f={...this.latestValues},d=sl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const h=xt(),p=l?l.source:void 0,m=this.layout?this.layout.source:void 0,g=p!==m,v=this.getStack(),y=!v||v.members.length<=1,b=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some(IH));this.animationProgress=0;let x;this.mixTargetDelta=w=>{const S=w/1e3;PN(d.x,s.x,S),PN(d.y,s.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(nf(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),zH(this.relativeTarget,this.relativeTargetOrigin,h,S),x&&wH(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=xt()),rr(x,this.relativeTarget)),g&&(this.animationValues=f,yH(f,u,this.latestValues,S,b,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ur(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Re.update(()=>{Sp.hasAnimatedSinceResize=!0,this.currentAnimation=uH(0,TN,{...s,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(TN),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:l,layout:u,latestValues:f}=s;if(!(!o||!l||!u)){if(this!==s&&this.layout&&u&&r3(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||xt();const d=tr(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const h=tr(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}rr(o,l),ll(o,f),tf(this.projectionDeltaWithTransform,this.layoutCorrected,o,f)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new jH),this.sharedNodes.get(s).add(o);const u=o.options.initialPromotionConfig;o.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:o}=this.options;return o?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:o}=this.options;return o?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const u={};l.z&&ab("z",s,u,this.animationValues);for(let f=0;f<rb.length;f++)ab(`rotate${rb[f]}`,s,u,this.animationValues),ab(`skew${rb[f]}`,s,u,this.animationValues);s.render();for(const f in u)s.setStaticValue(f,u[f]),this.animationValues&&(this.animationValues[f]=u[f]);s.scheduleRender()}getProjectionStyles(s){var o,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return OH;const u={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=bp(s==null?void 0:s.pointerEvents)||"",u.transform=f?f(this.latestValues,""):"none",u;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=bp(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Ss(this.latestValues)&&(g.transform=f?f({},""):"none",this.hasProjected=!1),g}const h=d.animationValues||d.latestValues;this.applyTransformsToTarget(),u.transform=AH(this.projectionDeltaWithTransform,this.treeScale,h),f&&(u.transform=f(h,u.transform));const{x:p,y:m}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${m.origin*100}% 0`,d.animationValues?u.opacity=d===this?(l=(o=h.opacity)!==null&&o!==void 0?o:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:u.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const g in cm){if(h[g]===void 0)continue;const{correct:v,applyTo:y}=cm[g],b=u.transform==="none"?h[g]:v(h[g],d);if(y){const x=y.length;for(let w=0;w<x;w++)u[y[w]]=b}else u[g]=b}return this.options.layoutId&&(u.pointerEvents=d===this?bp(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var o;return(o=s.currentAnimation)===null||o===void 0?void 0:o.stop()}),this.root.nodes.forEach(CN),this.root.sharedNodes.clear()}}}function EH(e){e.updateLayout()}function TH(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:a}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?or(d=>{const h=s?n.measuredBox[d]:n.layoutBox[d],p=tr(h);h.min=r[d].min,h.max=h.min+p}):r3(i,n.layoutBox,r)&&or(d=>{const h=s?n.measuredBox[d]:n.layoutBox[d],p=tr(r[d]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const o=sl();tf(o,r,n.layoutBox);const l=sl();s?tf(l,e.applyTransform(a,!0),n.measuredBox):tf(l,r,n.layoutBox);const u=!J$(o);let f=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:p}=d;if(h&&p){const m=xt();nf(m,n.layoutBox,h.layoutBox);const g=xt();nf(g,r,p.layoutBox),e3(m,g)||(f=!0),d.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:o,hasLayoutChanged:u,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function CH(e){ku&&ws.totalNodes++,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 _H(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function PH(e){e.clearSnapshot()}function CN(e){e.clearMeasurements()}function MH(e){e.isLayoutDirty=!1}function RH(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function _N(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function DH(e){e.resolveTargetDelta()}function kH(e){e.calcProjection()}function $H(e){e.resetSkewAndRotation()}function LH(e){e.removeLeadSnapshot()}function PN(e,t,n){e.translate=ht(t.translate,0,n),e.scale=ht(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function MN(e,t,n,r){e.min=ht(t.min,n.min,r),e.max=ht(t.max,n.max,r)}function zH(e,t,n,r){MN(e.x,t.x,n.x,r),MN(e.y,t.y,n.y,r)}function IH(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const BH={duration:.45,ease:[.4,0,.1,1]},RN=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),DN=RN("applewebkit/")&&!RN("chrome/")?Math.round:vn;function kN(e){e.min=DN(e.min),e.max=DN(e.max)}function UH(e){kN(e.x),kN(e.y)}function r3(e,t,n){return e==="position"||e==="preserve-aspect"&&!HV(NN(t),NN(n),.2)}function FH(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const VH=n3({attachResizeListener:(e,t)=>kf(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ib={current:void 0},a3=n3({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ib.current){const e=new VH({});e.mount(window),e.setOptions({layoutScroll:!0}),ib.current=e}return ib.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),HH={pan:{Feature:sH},drag:{Feature:iH,ProjectionNode:a3,MeasureLayout:X$}};function $N(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,i=r[a];i&&Re.postRender(()=>i(t,Hd(t)))}class qH extends is{mount(){const{current:t}=this.node;t&&(this.unmount=KF(t,n=>($N(this.node,n,"Start"),r=>$N(this.node,r,"End"))))}unmount(){}}class KH extends is{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=Vd(kf(this.node.current,"focus",()=>this.onFocus()),kf(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function LN(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),i=r[a];i&&Re.postRender(()=>i(t,Hd(t)))}class GH extends is{mount(){const{current:t}=this.node;t&&(this.unmount=XF(t,n=>(LN(this.node,n,"Start"),(r,{success:a})=>LN(this.node,r,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const E0=new WeakMap,sb=new WeakMap,YH=e=>{const t=E0.get(e.target);t&&t(e)},WH=e=>{e.forEach(YH)};function XH({root:e,...t}){const n=e||document;sb.has(n)||sb.set(n,{});const r=sb.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(WH,{root:e,...t})),r[a]}function QH(e,t,n){const r=XH(t);return E0.set(e,n),r.observe(e),()=>{E0.delete(e),r.unobserve(e)}}const ZH={some:0,all:1};class JH extends is{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:ZH[a]},o=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:f,onViewportLeave:d}=this.node.getProps(),h=u?f:d;h&&h(l)};return QH(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(eq(t,n))&&this.startObserver()}unmount(){}}function eq({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const tq={inView:{Feature:JH},tap:{Feature:GH},focus:{Feature:KH},hover:{Feature:qH}},nq={layout:{ProjectionNode:a3,MeasureLayout:X$}},mm={current:null},lj={current:!1};function i3(){if(lj.current=!0,!!Cw)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>mm.current=e.matches;e.addListener(t),t()}else mm.current=!1}const rq=[...C$,on,ns],aq=e=>rq.find(T$(e)),zN=new WeakMap;function iq(e,t,n){for(const r in t){const a=t[r],i=n[r];if(un(a))e.addValue(r,a);else if(un(i))e.addValue(r,ea(a,{owner:e}));else if(i!==a)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(a):s.hasAnimated||s.set(a)}else{const s=e.getStaticValue(r);e.addValue(r,ea(s!==void 0?s:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const IN=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sq{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,blockInitialAnimation:i,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=rj,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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 p=oa.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,Re.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:f}=s;this.onUpdate=f,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=eg(n),this.isVariantNode=$k(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in h){const m=h[p];l[p]!==void 0&&un(m)&&m.set(l[p],!1)}}mount(t){this.current=t,zN.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((n,r)=>this.bindToMotionValue(r,n)),lj.current||i3(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:mm.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){zN.delete(this.current),this.projection&&this.projection.unmount(),Ur(this.notifyUpdate),Ur(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=jo.has(t),a=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Re.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),i(),s&&s(),n.owner&&n.stop()})}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 Xl){const n=Xl[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 i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):xt()}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<IN.length;r++){const a=IN[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const i="on"+a,s=t[i];s&&(this.propEventSubscriptions[a]=this.on(a,s))}this.prevMotionValues=iq(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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=ea(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(N$(a)||g$(a))?a=parseFloat(a):!aq(a)&&ns.test(n)&&(a=j$(t,n)),this.setBaseTarget(t,un(a)?a.get():a)),un(a)?a.get():a}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let a;if(typeof r=="string"||typeof r=="object"){const s=$w(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(a=s[t])}if(r&&a!==void 0)return a;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!un(i)?i:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Xw),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class s3 extends sq{constructor(){super(...arguments),this.KeyframeResolver=_$}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;un(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function oq(e){return window.getComputedStyle(e)}class lq extends s3{constructor(){super(...arguments),this.type="html",this.renderInstance=qk}readValueFromInstance(t,n){if(jo.has(n)){const r=nj(n);return r&&r.default||0}else{const r=oq(t),a=(Fk(n)?r.getPropertyValue(n):r[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Y$(t,n)}build(t,n,r){Iw(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Vw(t,n,r)}}class cq extends s3{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=xt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(jo.has(n)){const r=nj(n);return r&&r.default||0}return n=Kk.has(n)?n:Rw(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Wk(t,n,r)}build(t,n,r){Bw(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,a){Gk(t,n,r,a)}mount(t){this.isSVGTag=Fw(t.tagName),super.mount(t)}}const uq=(e,t)=>kw(e)?new cq(t):new lq(t,{allowProjection:e!==A.Fragment}),fq=UF({...kV,...tq,...HH,...nq},uq),Ct=nF(fq);function o3(e,t){let n;const r=()=>{const{currentTime:a}=t,s=(a===null?0:a.value)/100;n!==s&&e(s),n=s};return Re.update(r,!0),()=>Ur(r)}const wp=new WeakMap;let pi;function dq(e,t){if(t){const{inlineSize:n,blockSize:r}=t[0];return{width:n,height:r}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function hq({target:e,contentRect:t,borderBoxSize:n}){var r;(r=wp.get(e))===null||r===void 0||r.forEach(a=>{a({target:e,contentSize:t,get size(){return dq(e,n)}})})}function pq(e){e.forEach(hq)}function mq(){typeof ResizeObserver>"u"||(pi=new ResizeObserver(pq))}function yq(e,t){pi||mq();const n=a$(e);return n.forEach(r=>{let a=wp.get(r);a||(a=new Set,wp.set(r,a)),a.add(t),pi==null||pi.observe(r)}),()=>{n.forEach(r=>{const a=wp.get(r);a==null||a.delete(t),a!=null&&a.size||pi==null||pi.unobserve(r)})}}const jp=new Set;let rf;function gq(){rf=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};jp.forEach(n=>n(t))},window.addEventListener("resize",rf)}function vq(e){return jp.add(e),rf||gq(),()=>{jp.delete(e),!jp.size&&rf&&(rf=void 0)}}function bq(e,t){return typeof e=="function"?vq(e):yq(e,t)}const xq=50,BN=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Sq=()=>({time:0,x:BN(),y:BN()}),wq={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function UN(e,t,n,r){const a=n[t],{length:i,position:s}=wq[t],o=a.current,l=n.time;a.current=e[`scroll${s}`],a.scrollLength=e[`scroll${i}`]-e[`client${i}`],a.offset.length=0,a.offset[0]=0,a.offset[1]=a.scrollLength,a.progress=so(0,a.scrollLength,a.current);const u=r-l;a.velocity=u>xq?0:Qw(a.current-o,u)}function jq(e,t,n){UN(e,"x",t,n),UN(e,"y",t,n),t.time=n}function Aq(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const a=r.getBoundingClientRect();r=r.parentElement;const i=r.getBoundingClientRect();n.x+=a.left-i.left,n.y+=a.top-i.top}else if(r instanceof SVGGraphicsElement){const{x:a,y:i}=r.getBBox();n.x+=a,n.y+=i;let s=null,o=r.parentNode;for(;!s;)o.tagName==="svg"&&(s=o),o=r.parentNode;r=s}else break;return n}const T0={start:0,center:.5,end:1};function FN(e,t,n=0){let r=0;if(e in T0&&(e=T0[e]),typeof e=="string"){const a=parseFloat(e);e.endsWith("px")?r=a:e.endsWith("%")?e=a/100:e.endsWith("vw")?r=a/100*document.documentElement.clientWidth:e.endsWith("vh")?r=a/100*document.documentElement.clientHeight:e=a}return typeof e=="number"&&(r=t*e),n+r}const Oq=[0,0];function Nq(e,t,n,r){let a=Array.isArray(e)?e:Oq,i=0,s=0;return typeof e=="number"?a=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?a=e.split(" "):a=[e,T0[e]?e:"0"]),i=FN(a[0],n,r),s=FN(a[1],t),i-s}const Eq={All:[[0,0],[1,1]]},Tq={x:0,y:0};function Cq(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function _q(e,t,n){const{offset:r=Eq.All}=n,{target:a=e,axis:i="y"}=n,s=i==="y"?"height":"width",o=a!==e?Aq(a,e):Tq,l=a===e?{width:e.scrollWidth,height:e.scrollHeight}:Cq(a),u={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let f=!t[i].interpolate;const d=r.length;for(let h=0;h<d;h++){const p=Nq(r[h],u[s],l[s],o[i]);!f&&p!==t[i].interpolatorOffsets[h]&&(f=!0),t[i].offset[h]=p}f&&(t[i].interpolate=ij(t[i].offset,L$(r),{clamp:!1}),t[i].interpolatorOffsets=[...t[i].offset]),t[i].progress=fa(0,1,t[i].interpolate(t[i].current))}function Pq(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function Mq(e,t,n,r={}){return{measure:()=>Pq(e,r.target,n),update:a=>{jq(e,n,a),(r.offset||r.target)&&_q(e,n,r)},notify:()=>t(n)}}const hu=new WeakMap,VN=new WeakMap,ob=new WeakMap,HN=e=>e===document.documentElement?window:e;function cj(e,{container:t=document.documentElement,...n}={}){let r=ob.get(t);r||(r=new Set,ob.set(t,r));const a=Sq(),i=Mq(t,e,a,n);if(r.add(i),!hu.has(t)){const o=()=>{for(const h of r)h.measure()},l=()=>{for(const h of r)h.update(Ut.timestamp)},u=()=>{for(const h of r)h.notify()},f=()=>{Re.read(o,!1,!0),Re.read(l,!1,!0),Re.update(u,!1,!0)};hu.set(t,f);const d=HN(t);window.addEventListener("resize",f,{passive:!0}),t!==document.documentElement&&VN.set(t,bq(t,f)),d.addEventListener("scroll",f,{passive:!0})}const s=hu.get(t);return Re.read(s,!1,!0),()=>{var o;Ur(s);const l=ob.get(t);if(!l||(l.delete(i),l.size))return;const u=hu.get(t);hu.delete(t),u&&(HN(t).removeEventListener("scroll",u),(o=VN.get(t))===null||o===void 0||o(),window.removeEventListener("resize",u))}}function Rq({source:e,container:t,axis:n="y"}){e&&(t=e);const r={value:0},a=cj(i=>{r.value=i[n].progress*100},{container:t,axis:n});return{currentTime:r,cancel:a}}const lb=new Map;function l3({source:e,container:t=document.documentElement,axis:n="y"}={}){e&&(t=e),lb.has(t)||lb.set(t,{});const r=lb.get(t);return r[n]||(r[n]=Zk()?new ScrollTimeline({source:t,axis:n}):Rq({source:t,axis:n})),r[n]}function Dq(e){return e.length===2}function c3(e){return e&&(e.target||e.offset)}function kq(e,t){return Dq(e)||c3(t)?cj(n=>{e(n[t.axis].progress,n)},t):o3(e,l3(t))}function $q(e,t){if(e.flatten(),c3(t))return e.pause(),cj(n=>{e.time=e.duration*n[t.axis].progress},t);{const n=l3(t);return e.attachTimeline?e.attachTimeline(n,r=>(r.pause(),o3(a=>{r.time=r.duration*a},n))):vn}}function Lq(e,{axis:t="y",...n}={}){const r={axis:t,...n};return typeof e=="function"?kq(e,r):$q(e,r)}function qN(e,t){Y7(!!(!t||t.current))}const zq=()=>({scrollX:ea(0),scrollY:ea(0),scrollXProgress:ea(0),scrollYProgress:ea(0)});function Iq({container:e,target:t,layoutEffect:n=!0,...r}={}){const a=Bc(zq);return(n?Qy:A.useEffect)(()=>(qN("target",t),qN("container",e),Lq((s,{x:o,y:l})=>{a.scrollX.set(o.current),a.scrollXProgress.set(o.progress),a.scrollY.set(l.current),a.scrollYProgress.set(l.progress)},{...r,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0})),[e,t,JSON.stringify(r.offset)]),a}function Bq(e){const t=Bc(()=>ea(e)),{isStatic:n}=A.useContext(Xy);if(n){const[,r]=A.useState(e);A.useEffect(()=>t.on("change",r),[])}return t}function u3(e,t){const n=Bq(t()),r=()=>n.set(t());return r(),Qy(()=>{const a=()=>Re.preRender(r,!1,!0),i=e.map(s=>s.on("change",a));return()=>{i.forEach(s=>s()),Ur(r)}}),n}const Uq=e=>e&&typeof e=="object"&&e.mix,Fq=e=>Uq(e)?e.mix:void 0;function Vq(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],a=e[1+n],i=e[2+n],s=e[3+n],o=ij(a,i,{mixer:Fq(i[0]),...s});return t?o(r):o}function Hq(e){Zu.current=[],e();const t=u3(Zu.current,e);return Zu.current=void 0,t}function cb(e,t,n,r){if(typeof e=="function")return Hq(e);const a=typeof t=="function"?t:Vq(t,n,r);return Array.isArray(e)?KN(e,a):KN([e],([i])=>a(i))}function KN(e,t){const n=Bc(()=>[]);return u3(e,()=>{n.length=0;const r=e.length;for(let a=0;a<r;a++)n[a]=e[a].get();return t(n)})}function ai(){!lj.current&&i3();const[e]=A.useState(mm.current);return e}const pe=e=>typeof e=="string",pu=()=>{let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n},GN=e=>e==null?"":String(e),qq=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},Kq=/###/g,YN=e=>e&&e.includes("###")?e.replace(Kq,"."):e,WN=e=>!e||pe(e),af=(e,t,n)=>{const r=pe(t)?t.split("."):t;let a=0;for(;a<r.length-1;){if(WN(e))return{};const i=YN(r[a]);!e[i]&&n&&(e[i]=new n),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++a}return WN(e)?{}:{obj:e,k:YN(r[a])}},XN=(e,t,n)=>{const{obj:r,k:a}=af(e,t,Object);if(r!==void 0||t.length===1){r[a]=n;return}let i=t[t.length-1],s=t.slice(0,t.length-1),o=af(e,s,Object);for(;o.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),o=af(e,s,Object),o!=null&&o.obj&&typeof o.obj[`${o.k}.${i}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${i}`]=n},Gq=(e,t,n,r)=>{const{obj:a,k:i}=af(e,t,Object);a[i]=a[i]||[],a[i].push(n)},ym=(e,t)=>{const{obj:n,k:r}=af(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Yq=(e,t,n)=>{const r=ym(e,n);return r!==void 0?r:ym(t,n)},f3=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?pe(e[r])||e[r]instanceof String||pe(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):f3(e[r],t[r],n):e[r]=t[r]);return e},ja=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),Wq={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},Xq=e=>pe(e)?e.replace(/[&<>"'\/]/g,t=>Wq[t]):e;class Qq{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const Zq=[" ",",","?","!",";"],Jq=new Qq(20),eK=(e,t,n)=>{t=t||"",n=n||"";const r=Zq.filter(s=>!t.includes(s)&&!n.includes(s));if(r.length===0)return!0;const a=Jq.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!a.test(e);if(!i){const s=e.indexOf(n);s>0&&!a.test(e.substring(0,s))&&(i=!0)}return i},C0=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let a=e;for(let i=0;i<r.length;){if(!a||typeof a!="object")return;let s,o="";for(let l=i;l<r.length;++l)if(l!==i&&(o+=n),o+=r[l],s=a[o],s!==void 0){if(["string","number","boolean"].includes(typeof s)&&l<r.length-1)continue;i+=l-i+1;break}a=s}return a},$f=e=>e==null?void 0:e.replace(/_/g,"-"),tK={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}};class gm{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||tK,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,a){return a&&!this.debug?null:(t=t.map(i=>pe(i)?i.replace(/[\r\n\x00-\x1F\x7F]/g," "):i),pe(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new gm(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new gm(this.logger,t)}}var ta=new gm;let rg=class{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}once(t,n){const r=(...a)=>{n(...a),this.off(t,r)};return this.on(t,r),this}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([a,i])=>{for(let s=0;s<i;s++)a(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([a,i])=>{for(let s=0;s<i;s++)a(t,...n)})}};class QN extends rg{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.includes(t)||this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,a={}){var u,f;const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,s=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;t.includes(".")?o=t.split("."):(o=[t,n],r&&(Array.isArray(r)?o.push(...r):pe(r)&&i?o.push(...r.split(i)):o.push(r)));const l=ym(this.data,o);return!l&&!n&&!r&&t.includes(".")&&(t=o[0],n=o[1],r=o.slice(2).join(".")),l||!s||!pe(r)?l:C0((f=(u=this.data)==null?void 0:u[t])==null?void 0:f[n],r,i)}addResource(t,n,r,a,i={silent:!1}){const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let o=[t,n];r&&(o=o.concat(s?r.split(s):r)),t.includes(".")&&(o=t.split("."),a=n,n=o[1]),this.addNamespaces(n),XN(this.data,o,a),i.silent||this.emit("added",t,n,r,a)}addResources(t,n,r,a={silent:!1}){for(const i in r)(pe(r[i])||Array.isArray(r[i]))&&this.addResource(t,n,i,r[i],{silent:!0});a.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,a,i,s={silent:!1,skipCopy:!1}){let o=[t,n];t.includes(".")&&(o=t.split("."),a=r,r=n,n=o[1]),this.addNamespaces(n);let l=ym(this.data,o)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?f3(l,r,i):l={...l,...r},XN(this.data,o,l),s.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var d3={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(i=>{var s;t=((s=this.processors[i])==null?void 0:s.process(t,n,r,a))??t}),t}};const h3=Symbol("i18next/PATH_KEY");function nK(){const e=[],t=Object.create(null);let n;return t.get=(r,a)=>{var i;return(i=n==null?void 0:n.revoke)==null||i.call(n),a===h3?e:(e.push(a),n=Proxy.revocable(r,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}function Sl(e,t){const{[h3]:n}=e(nK()),r=(t==null?void 0:t.keySeparator)??".",a=(t==null?void 0:t.nsSeparator)??":",i=(t==null?void 0:t.enableSelector)==="strict";if(n.length>1&&a){const s=t==null?void 0:t.ns,o=i?Array.isArray(s)?s:s?[s]:null:Array.isArray(s)?s:null;if(o&&(i?o:o.length>1?o.slice(1):[]).includes(n[0]))return`${n[0]}${a}${n.slice(1).join(r)}`}return n.join(r)}const ub=e=>!pe(e)&&typeof e!="boolean"&&typeof e!="number";class vm extends rg{constructor(t,n={}){super(),qq(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ta.create("translator"),this.checkedLoadedFor={}}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const a=this.resolve(t,r);if((a==null?void 0:a.res)===void 0)return!1;const i=ub(a.res);return!(r.returnObjects===!1&&i)}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const s=r&&t.includes(r),o=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!eK(t,r,a);if(s&&!o){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:pe(i)?[i]:i};const u=t.split(r);(r!==a||r===a&&this.options.ns.includes(u[0]))&&(i=u.shift()),t=u.join(a)}return{key:t,namespaces:pe(i)?[i]:i}}translate(t,n,r){let a=typeof n=="object"?{...n}:n;if(typeof a!="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a=="object"&&(a={...a}),a||(a={}),t==null)return"";typeof t=="function"&&(t=Sl(t,{...this.options,...a})),Array.isArray(t)||(t=[String(t)]),t=t.map($=>typeof $=="function"?Sl($,{...this.options,...a}):String($));const i=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(t[t.length-1],a),u=l[l.length-1];let f=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;f===void 0&&(f=":");const d=a.lng||this.language,h=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((d==null?void 0:d.toLowerCase())==="cimode")return h?i?{res:`${u}${f}${o}`,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(a)}:`${u}${f}${o}`:i?{res:o,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(a)}:o;const p=this.resolve(t,a);let m=p==null?void 0:p.res;const g=(p==null?void 0:p.usedKey)||o,v=(p==null?void 0:p.exactUsedKey)||o,y=["[object Number]","[object Function]","[object RegExp]"],b=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,w=a.count!==void 0&&!pe(a.count),S=vm.hasDefaultValue(a),j=w?this.pluralResolver.getSuffix(d,a.count,a):"",O=a.ordinal&&w?this.pluralResolver.getSuffix(d,a.count,{ordinal:!1}):"",N=w&&!a.ordinal&&a.count===0,E=N&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${j}`]||a[`defaultValue${O}`]||a.defaultValue;let T=m;x&&!m&&S&&(T=E);const P=ub(T),C=Object.prototype.toString.apply(T);if(x&&T&&P&&!y.includes(C)&&!(pe(b)&&Array.isArray(T))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const $=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,T,{...a,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(p.res=$,p.usedParams=this.getUsedParamsDetails(a),p):$}if(s){const $=Array.isArray(T),D=$?[]:{},k=$?v:g;for(const M in T)if(Object.prototype.hasOwnProperty.call(T,M)){const L=`${k}${s}${M}`;S&&!m?D[M]=this.translate(L,{...a,defaultValue:ub(E)?E[M]:void 0,joinArrays:!1,ns:l}):D[M]=this.translate(L,{...a,joinArrays:!1,ns:l}),D[M]===L&&(D[M]=T[M])}m=D}}else if(x&&pe(b)&&Array.isArray(m))m=m.join(b),m&&(m=this.extendTranslation(m,t,a,r));else{let $=!1,D=!1;!this.isValidLookup(m)&&S&&($=!0,m=E),this.isValidLookup(m)||(D=!0,m=o);const M=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&D?void 0:m,L=S&&E!==m&&this.options.updateMissing;if(D||$||L){if(this.logger.log(L?"updateKey":"missingKey",d,u,w&&!L?`${o}${this.pluralResolver.getSuffix(d,a.count,a)}`:o,L?E:m),s){const W=this.resolve(o,{...a,keySeparator:!1});W&&W.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let I=[];const F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&F&&F[0])for(let W=0;W<F.length;W++)I.push(F[W]);else this.options.saveMissingTo==="all"?I=this.languageUtils.toResolveHierarchy(a.lng||this.language):I.push(a.lng||this.language);const q=(W,K,ne)=>{var ye;const J=S&&ne!==m?ne:M;this.options.missingKeyHandler?this.options.missingKeyHandler(W,u,K,J,L,a):(ye=this.backendConnector)!=null&&ye.saveMissing&&this.backendConnector.saveMissing(W,u,K,J,L,a),this.emit("missingKey",W,u,K,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&w?I.forEach(W=>{const K=this.pluralResolver.getSuffixes(W,a);N&&a[`defaultValue${this.options.pluralSeparator}zero`]&&!K.includes(`${this.options.pluralSeparator}zero`)&&K.push(`${this.options.pluralSeparator}zero`),K.forEach(ne=>{q([W],o+ne,a[`defaultValue${ne}`]||E)})}):q(I,o,E))}m=this.extendTranslation(m,t,a,p,r),D&&m===o&&this.options.appendNamespaceToMissingKey&&(m=`${u}${f}${o}`),(D||$)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${f}${o}`:o,$?m:void 0,a))}return i?(p.res=m,p.usedParams=this.getUsedParamsDetails(a),p):m}extendTranslation(t,n,r,a,i){var l,u;if((l=this.i18nFormat)!=null&&l.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=pe(t)&&(((u=r==null?void 0:r.interpolation)==null?void 0:u.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(f){const p=t.match(this.interpolator.nestingRegexp);d=p&&p.length}let h=r.replace&&!pe(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,r.lng||this.language||a.usedLng,r),f){const p=t.match(this.interpolator.nestingRegexp),m=p&&p.length;d<m&&(r.nest=!1)}!r.lng&&a&&a.res&&(r.lng=this.language||a.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...p)=>(i==null?void 0:i[0])===p[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${n[0]}`),null):this.translate(...p,n),r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,o=pe(s)?[s]:s;return t!=null&&(o!=null&&o.length)&&r.applyPostProcessor!==!1&&(t=d3.handle(o,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,a,i,s,o;return pe(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(l=>typeof l=="function"?Sl(l,{...this.options,...n}):l)),t.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,n),f=u.key;a=f;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const h=n.count!==void 0&&!pe(n.count),p=h&&!n.ordinal&&n.count===0,m=n.context!==void 0&&(pe(n.context)||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(v=>{var y,b;this.isValidLookup(r)||(o=v,!this.checkedLoadedFor[`${g[0]}-${v}`]&&((y=this.utils)!=null&&y.hasLoadedNamespace)&&!((b=this.utils)!=null&&b.hasLoadedNamespace(o))&&(this.checkedLoadedFor[`${g[0]}-${v}`]=!0,this.logger.warn(`key "${a}" for languages "${g.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(x=>{var j;if(this.isValidLookup(r))return;s=x;const w=[f];if((j=this.i18nFormat)!=null&&j.addLookupKeys)this.i18nFormat.addLookupKeys(w,f,x,v,n);else{let O;h&&(O=this.pluralResolver.getSuffix(x,n.count,n));const N=`${this.options.pluralSeparator}zero`,E=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(n.ordinal&&O.startsWith(E)&&w.push(f+O.replace(E,this.options.pluralSeparator)),w.push(f+O),p&&w.push(f+N)),m){const T=`${f}${this.options.contextSeparator||"_"}${n.context}`;w.push(T),h&&(n.ordinal&&O.startsWith(E)&&w.push(T+O.replace(E,this.options.pluralSeparator)),w.push(T+O),p&&w.push(T+N))}}let S;for(;S=w.pop();)this.isValidLookup(r)||(i=S,r=this.getResource(x,v,S,n))}))})}),{res:r,usedKey:a,exactUsedKey:i,usedLng:s,usedNS:o}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,a={}){var i;return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(t,n,r,a):this.resourceStore.getResource(t,n,r,a)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!pe(t.replace);let a=r?t.replace:t;if(r&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const i of n)delete a[i]}return a}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&r.startsWith(n)&&t[r]!==void 0)return!0;return!1}}class ZN{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ta.create("languageUtils")}getScriptPartFromCode(t){if(t=$f(t),!t||!t.includes("-"))return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=$f(t),!t||!t.includes("-"))return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(pe(t)&&t.includes("-")){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(t)}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const a=this.getScriptPartFromCode(r);if(this.isSupportedCode(a))return n=a;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(s=>s===i?!0:!s.includes("-")&&!i.includes("-")?!1:!!(s.includes("-")&&!i.includes("-")&&s.slice(0,s.indexOf("-"))===i||s.startsWith(i)&&i.length>1))}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),pe(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),a=[],i=s=>{s&&(this.isSupportedCode(s)?a.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return pe(t)&&(t.includes("-")||t.includes("_"))?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):pe(t)&&i(this.formatLanguageCode(t)),r.forEach(s=>{a.includes(s)||i(this.formatLanguageCode(s))}),a}}const JN={zero:0,one:1,two:2,few:3,many:4,other:5},eE={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class rK{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=ta.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=$f(t==="dev"?"en":t),a=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:a});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let s;try{s=new Intl.PluralRules(r,{type:a})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),eE;if(!t.match(/-|_/))return eE;const l=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(l,n)}return this.pluralRulesCache[i]=s,s}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(a=>`${n}${a}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((a,i)=>JN[a]-JN[i]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(t,n,r={}){const a=this.getRule(t,r);return a?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const tE=(e,t,n,r=".",a=!0)=>{let i=Yq(e,t,n);return!i&&a&&pe(n)&&(i=C0(e,n,r),i===void 0&&(i=C0(t,n,r))),i},fb=e=>e.replace(/\$/g,"$$$$");class nE{constructor(t={}){var n;this.logger=ta.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:i,prefixEscaped:s,suffix:o,suffixEscaped:l,formatSeparator:u,unescapeSuffix:f,unescapePrefix:d,nestingPrefix:h,nestingPrefixEscaped:p,nestingSuffix:m,nestingSuffixEscaped:g,nestingOptionsSeparator:v,maxReplaces:y,alwaysFormat:b}=t.interpolation;this.escape=n!==void 0?n:Xq,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=i?ja(i):s||"{{",this.suffix=o?ja(o):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=f?"":d?ja(d):"-",this.unescapeSuffix=this.unescapePrefix?"":f?ja(f):"",this.nestingPrefix=h?ja(h):p||ja("$t("),this.nestingSuffix=m?ja(m):g||ja(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=y||1e3,this.alwaysFormat=b!==void 0?b:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,a){var p;let i,s,o;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=m=>{if(!m.includes(this.formatSeparator)){const b=tE(n,l,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(b,void 0,r,{...a,...n,interpolationkey:m}):b}const g=m.split(this.formatSeparator),v=g.shift().trim(),y=g.join(this.formatSeparator).trim();return this.format(tE(n,l,v,this.options.keySeparator,this.options.ignoreJSONStructure),y,r,{...a,...n,interpolationkey:v})};this.resetRegExp(),!this.escapeValue&&typeof t=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(t)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const f=(a==null?void 0:a.missingInterpolationHandler)||this.options.missingInterpolationHandler,d=((p=a==null?void 0:a.interpolation)==null?void 0:p.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>fb(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?fb(this.escape(m)):fb(m)}].forEach(m=>{for(o=0;i=m.regex.exec(t);){const g=i[1].trim();if(s=u(g),s===void 0)if(typeof f=="function"){const y=f(t,i,a);s=pe(y)?y:""}else if(a&&Object.prototype.hasOwnProperty.call(a,g))s="";else if(d){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${t}`),s="";else!pe(s)&&!this.useRawValueToEscape&&(s=GN(s));const v=m.safeValue(s);if(t=t.replace(i[0],v),d?(m.regex.lastIndex+=s.length,m.regex.lastIndex-=i[0].length):m.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),t}nest(t,n,r={}){let a,i,s;const o=(l,u)=>{const f=this.nestingOptionsSeparator;if(!l.includes(f))return l;const d=l.split(new RegExp(`${ja(f)}[ ]*{`));let h=`{${d[1]}`;l=d[0],h=this.interpolate(h,s);const p=h.match(/'/g),m=h.match(/"/g);(((p==null?void 0:p.length)??0)%2===0&&!m||((m==null?void 0:m.length)??0)%2!==0)&&(h=h.replace(/'/g,'"'));try{s=JSON.parse(h),u&&(s={...u,...s})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${f}${h}`}return s.defaultValue&&s.defaultValue.includes(this.prefix)&&delete s.defaultValue,l};for(;a=this.nestingRegexp.exec(t);){let l=[];s={...r},s=s.replace&&!pe(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;const u=/{.*}/.test(a[1])?a[1].lastIndexOf("}")+1:a[1].indexOf(this.formatSeparator);if(u!==-1&&(l=a[1].slice(u).split(this.formatSeparator).map(f=>f.trim()).filter(Boolean),a[1]=a[1].slice(0,u)),i=n(o.call(this,a[1].trim(),s),s),i&&a[0]===t&&!pe(i))return i;pe(i)||(i=GN(i)),i||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),i=""),l.length&&(i=l.reduce((f,d)=>this.format(f,d,r.lng,{...r,interpolationkey:a[1].trim()}),i.trim())),t=t.replace(a[0],i),this.regexp.lastIndex=0}return t}}const aK=e=>{let t=e.toLowerCase().trim();const n={};if(e.includes("(")){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].slice(0,-1);t==="currency"&&!a.includes(":")?n.currency||(n.currency=a.trim()):t==="relativetime"&&!a.includes(":")?n.range||(n.range=a.trim()):a.split(";").forEach(s=>{if(s){const[o,...l]=s.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),f=o.trim();n[f]||(n[f]=u),u==="false"&&(n[f]=!1),u==="true"&&(n[f]=!0),isNaN(u)||(n[f]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},rE=e=>{const t={};return(n,r,a)=>{let i=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(i={...i,[a.interpolationkey]:void 0});const s=r+JSON.stringify(i);let o=t[s];return o||(o=e($f(r),a),t[s]=o),o(n)}},iK=e=>(t,n,r)=>e($f(n),r)(t);class sK{constructor(t={}){this.logger=ta.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?rE:iK;this.formats={number:r((a,i)=>{const s=new Intl.NumberFormat(a,{...i});return o=>s.format(o)}),currency:r((a,i)=>{const s=new Intl.NumberFormat(a,{...i,style:"currency"});return o=>s.format(o)}),datetime:r((a,i)=>{const s=new Intl.DateTimeFormat(a,{...i});return o=>s.format(o)}),relativetime:r((a,i)=>{const s=new Intl.RelativeTimeFormat(a,{...i});return o=>s.format(o,i.range||"day")}),list:r((a,i)=>{const s=new Intl.ListFormat(a,{...i});return o=>s.format(o)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=rE(n)}format(t,n,r,a={}){if(!n||t==null)return t;const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&!i[0].includes(")")&&i.find(o=>o.includes(")"))){const o=i.findIndex(l=>l.includes(")"));i[0]=[i[0],...i.splice(1,o)].join(this.formatSeparator)}return i.reduce((o,l)=>{var d;const{formatName:u,formatOptions:f}=aK(l);if(this.formats[u]){let h=o;try{const p=((d=a==null?void 0:a.formatParams)==null?void 0:d[a.interpolationkey])||{},m=p.locale||p.lng||a.locale||a.lng||r;h=this.formats[u](o,m,{...f,...a,...p})}catch(p){this.logger.warn(p)}return h}else this.logger.warn(`there was no format function for ${u}`);return o},t)}}const oK=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class lK extends rg{constructor(t,n,r,a={}){var i,s;super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=ta.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],(s=(i=this.backend)==null?void 0:i.init)==null||s.call(i,r,a.backend,a)}queueLoad(t,n,r,a){const i={},s={},o={},l={};return t.forEach(u=>{let f=!0;n.forEach(d=>{const h=`${u}|${d}`;!r.reload&&this.store.hasResourceBundle(u,d)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?s[h]===void 0&&(s[h]=!0):(this.state[h]=1,f=!1,s[h]===void 0&&(s[h]=!0),i[h]===void 0&&(i[h]=!0),l[d]===void 0&&(l[d]=!0)))}),f||(o[u]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const a=t.split("|"),i=a[0],s=a[1];n&&this.emit("failedLoading",i,s,n),!n&&r&&this.store.addResourceBundle(i,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const o={};this.queue.forEach(l=>{Gq(l.loaded,[i],s),oK(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{o[u]||(o[u]={});const f=l.loaded[u];f.length&&f.forEach(d=>{o[u][d]===void 0&&(o[u][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r,a=0,i=this.retryTimeout,s){if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:a,wait:i,callback:s});return}this.readingCalls++;const o=(u,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&f&&a<this.maxRetries){setTimeout(()=>{this.read(t,n,r,a+1,i*2,s)},i);return}s(u,f)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(t,n);u&&typeof u.then=="function"?u.then(f=>o(null,f)).catch(o):o(null,u)}catch(u){o(u)}return}return l(t,n,o)}prepareLoading(t,n,r={},a){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();pe(t)&&(t=this.languageUtils.toResolveHierarchy(t)),pe(n)&&(n=[n]);const i=this.queueLoad(t,n,r,a);if(!i.toLoad.length)return i.pending.length||a(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),a=r[0],i=r[1];this.read(a,i,"read",void 0,void 0,(s,o)=>{s&&this.logger.warn(`${n}loading namespace ${i} for language ${a} failed`,s),!s&&o&&this.logger.log(`${n}loaded namespace ${i} for language ${a}`,o),this.loaded(t,s,o)})}saveMissing(t,n,r,a,i,s={},o=()=>{}){var l,u,f,d,h;if((u=(l=this.services)==null?void 0:l.utils)!=null&&u.hasLoadedNamespace&&!((d=(f=this.services)==null?void 0:f.utils)!=null&&d.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((h=this.backend)!=null&&h.create){const p={...s,isUpdate:i},m=this.backend.create.bind(this.backend);if(m.length<6)try{let g;m.length===5?g=m(t,n,r,a,p):g=m(t,n,r,a),g&&typeof g.then=="function"?g.then(v=>o(null,v)).catch(o):o(null,g)}catch(g){o(g)}else m(t,n,r,a,o,p)}!t||!t[0]||this.store.addResource(t[0],n,r,a)}}}const db=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),pe(e[1])&&(t.defaultValue=e[1]),pe(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),aE=e=>(pe(e.ns)&&(e.ns=[e.ns]),pe(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),pe(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Mh=()=>{},cK=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class sf extends rg{constructor(t={},n){if(super(),this.options=aE(t),this.services={},this.logger=ta,this.modules={external:[]},cK(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(pe(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));const r=db();this.options={...r,...this.options,...aE(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler);const a=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?ta.init(a(this.modules.logger),this.options):ta.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=sK;const f=new ZN(this.options);this.store=new QN(this.options.resources,this.options);const d=this.services;d.logger=ta,d.resourceStore=this.store,d.languageUtils=f,d.pluralResolver=new rK(f,{prepend:this.options.pluralSeparator}),u&&(d.formatter=a(u),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new nE(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new lK(a(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(h,...p)=>{this.emit(h,...p)}),this.modules.languageDetector&&(d.languageDetector=a(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=a(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new vm(this.services,this.options),this.translator.on("*",(h,...p)=>{this.emit(h,...p)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Mh),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=(...f)=>this.store[u](...f)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...f)=>(this.store[u](...f),this)});const o=pu(),l=()=>{const u=(f,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(d),n(f,d)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),o}loadResources(t,n=Mh){var i,s;let r=n;const a=pe(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((a==null?void 0:a.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],l=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(d=>{d!=="cimode"&&(o.includes(d)||o.push(d))})};a?l(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>l(f)),(s=(i=this.options.preload)==null?void 0:i.forEach)==null||s.call(i,u=>l(u)),this.services.backendConnector.load(o,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(t,n,r){const a=pu();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Mh),this.services.backendConnector.reload(t,n,i=>{a.resolve(),r(i)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&d3.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!["cimode","dev"].includes(t)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!["cimode","dev"].includes(r)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&!this.languages.includes(t)&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=pu();this.emit("languageChanging",t);const a=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},i=(o,l)=>{l?this.isLanguageChangingTo===t&&(a(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...u)=>this.t(...u)),n&&n(o,(...u)=>this.t(...u))},s=o=>{var f,d;!t&&!o&&this.services.languageDetector&&(o=[]);const l=pe(o)?o:o&&o[0],u=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(pe(o)?[o]:o);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),(d=(f=this.services.languageDetector)==null?void 0:f.cacheUserLanguage)==null||d.call(f,u)),this.loadResources(u,h=>{i(h,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),r}getFixedT(t,n,r,a){const i=a==null?void 0:a.scopeNs,s=(o,l,...u)=>{let f;typeof l!="object"?f=this.options.overloadTranslationOptionHandler([o,l].concat(u)):f={...l},f.lng=f.lng||s.lng,f.lngs=f.lngs||s.lngs;const d=f.ns!==void 0&&f.ns!==null;f.ns=f.ns||s.ns,f.keyPrefix!==""&&(f.keyPrefix=f.keyPrefix||r||s.keyPrefix);const h={...this.options,...f};Array.isArray(i)&&!d&&(h.ns=i),typeof f.keyPrefix=="function"&&(f.keyPrefix=Sl(f.keyPrefix,h));const p=this.options.keySeparator||".";let m;return f.keyPrefix&&Array.isArray(o)?m=o.map(g=>(typeof g=="function"&&(g=Sl(g,h)),`${f.keyPrefix}${p}${g}`)):(typeof o=="function"&&(o=Sl(o,h)),m=f.keyPrefix?`${f.keyPrefix}${p}${o}`:o),this.t(m,f)};return pe(t)?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(o,l)=>{const u=this.services.backendConnector.state[`${o}|${l}`];return u===-1||u===0||u===2};if(n.precheck){const o=n.precheck(this,s);if(o!==void 0)return o}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!a||s(i,t)))}loadNamespaces(t,n){const r=pu();return this.options.ns?(pe(t)&&(t=[t]),t.forEach(a=>{this.options.ns.includes(a)||this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=pu();pe(t)&&(t=[t]);const a=this.options.preload||[],i=t.filter(s=>!a.includes(s)&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=a.concat(i),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}dir(t){var a,i;if(t||(t=this.resolvedLanguage||(((a=this.languages)==null?void 0:a.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const s=new Intl.Locale(t);if(s&&s.getTextInfo){const o=s.getTextInfo();if(o&&o.direction)return o.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((i=this.services)==null?void 0:i.languageUtils)||new ZN(db());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.includes(r.getLanguagePartFromCode(t))||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const r=new sf(t,n);return r.createInstance=sf.createInstance,r}cloneInstance(t={},n=Mh){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},i=new sf(a);if((t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(o=>{i[o]=this[o]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r){const o=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},l[u]=Object.keys(l[u]).reduce((f,d)=>(f[d]={...l[u][d]},f),l[u]),l),{});i.store=new QN(o,a),i.services.resourceStore=i.store}if(t.interpolation){const l={...db().interpolation,...this.options.interpolation,...t.interpolation},u={...a,interpolation:l};i.services.interpolator=new nE(u)}return i.translator=new vm(i.services,a),i.translator.on("*",(o,...l)=>{i.emit(o,...l)}),i.init(a,n),i.translator.options=a,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const an=sf.createInstance();an.createInstance;an.dir;an.init;an.loadResources;an.reloadResources;an.use;an.changeLanguage;an.getFixedT;an.t;an.exists;an.setDefaultNamespace;an.hasLoadedNamespace;an.loadNamespaces;an.loadLanguages;const uK=(e,t,n,r)=>{var i,s,o,l;const a=[n,{code:t,...r||{}}];if((s=(i=e==null?void 0:e.services)==null?void 0:i.logger)!=null&&s.forward)return e.services.logger.forward(a,"warn","react-i18next::",!0);oo(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),(l=(o=e==null?void 0:e.services)==null?void 0:o.logger)!=null&&l.warn?e.services.logger.warn(...a):console!=null&&console.warn&&console.warn(...a)},iE={},_0=(e,t,n,r)=>{oo(n)&&iE[n]||(oo(n)&&(iE[n]=new Date),uK(e,t,n,r))},p3=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},P0=(e,t,n)=>{e.loadNamespaces(t,p3(e,n))},sE=(e,t,n,r)=>{if(oo(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return P0(e,n,r);n.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,p3(e,r))},fK=(e,t,n={})=>!t.languages||!t.languages.length?(_0(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!a(r.isLanguageChangingTo,e))return!1}}),oo=e=>typeof e=="string",dK=e=>typeof e=="object"&&e!==null,hK=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,pK={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},mK=e=>pK[e],yK=e=>e.replace(hK,mK);let M0={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:yK,transDefaultProps:void 0};const gK=(e={})=>{M0={...M0,...e}},vK=()=>M0;let m3;const bK=e=>{m3=e},xK=()=>m3,SK={type:"3rdParty",init(e){gK(e.options.react),bK(e)}},wK=A.createContext();class jK{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var y3={exports:{}},g3={};/**
 * @license React
 * use-sync-external-store-shim.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 Zl=A;function AK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var OK=typeof Object.is=="function"?Object.is:AK,NK=Zl.useState,EK=Zl.useEffect,TK=Zl.useLayoutEffect,CK=Zl.useDebugValue;function _K(e,t){var n=t(),r=NK({inst:{value:n,getSnapshot:t}}),a=r[0].inst,i=r[1];return TK(function(){a.value=n,a.getSnapshot=t,hb(a)&&i({inst:a})},[e,n,t]),EK(function(){return hb(a)&&i({inst:a}),e(function(){hb(a)&&i({inst:a})})},[e]),CK(n),n}function hb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!OK(e,n)}catch{return!0}}function PK(e,t){return t()}var MK=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?PK:_K;g3.useSyncExternalStore=Zl.useSyncExternalStore!==void 0?Zl.useSyncExternalStore:MK;y3.exports=g3;var RK=y3.exports;const DK=(e,t)=>{if(oo(t))return t;if(dK(t)&&oo(t.defaultValue))return t.defaultValue;if(typeof e=="function")return"";if(Array.isArray(e)){const n=e[e.length-1];return typeof n=="function"?"":n}return e},kK={t:DK,ready:!1},$K=()=>()=>{},ii=(e,t={})=>{var E,T,P;const{i18n:n}=t,{i18n:r,defaultNS:a}=A.useContext(wK)||{},i=n||r||xK();i&&!i.reportNamespaces&&(i.reportNamespaces=new jK),i||_0(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const s=A.useMemo(()=>{var C;return{...vK(),...(C=i==null?void 0:i.options)==null?void 0:C.react,...t}},[i,t]),{useSuspense:o,keyPrefix:l}=s,u=a||((E=i==null?void 0:i.options)==null?void 0:E.defaultNS),f=oo(u)?[u]:u||["translation"],d=A.useMemo(()=>f,f);(P=(T=i==null?void 0:i.reportNamespaces)==null?void 0:T.addUsedNamespaces)==null||P.call(T,d);const h=A.useRef(0),p=A.useCallback(C=>{if(!i)return $K;const{bindI18n:$,bindI18nStore:D}=s,k=()=>{h.current+=1,C()};return $&&i.on($,k),D&&i.store.on(D,k),()=>{$&&$.split(" ").forEach(M=>i.off(M,k)),D&&D.split(" ").forEach(M=>i.store.off(M,k))}},[i,s]),m=A.useRef(),g=A.useCallback(()=>{if(!i)return kK;const C=!!(i.isInitialized||i.initializedStoreOnce)&&d.every(I=>fK(I,i,s)),$=t.lng||i.language,D=h.current,k=m.current;if(k&&k.ready===C&&k.lng===$&&k.keyPrefix===l&&k.revision===D)return k;const L={t:i.getFixedT($,s.nsMode==="fallback"?d:d[0],l,{scopeNs:d}),ready:C,lng:$,keyPrefix:l,revision:D};return m.current=L,L},[i,d,l,s,t.lng]),[v,y]=A.useState(0),{t:b,ready:x}=RK.useSyncExternalStore(p,g,g);A.useEffect(()=>{if(i&&!x&&!o){const C=()=>y($=>$+1);t.lng?sE(i,t.lng,d,C):P0(i,d,C)}},[i,t.lng,d,x,o,v]);const w=i||{},S=A.useRef(null),j=A.useRef(),O=C=>{const $=Object.getOwnPropertyDescriptors(C);$.__original&&delete $.__original;const D=Object.create(Object.getPrototypeOf(C),$);if(!Object.prototype.hasOwnProperty.call(D,"__original"))try{Object.defineProperty(D,"__original",{value:C,writable:!1,enumerable:!1,configurable:!1})}catch{}return D},N=A.useMemo(()=>{const C=w,$=C==null?void 0:C.language;let D=C;C&&(S.current&&S.current.__original===C?j.current!==$?(D=O(C),S.current=D,j.current=$):D=S.current:(D=O(C),S.current=D,j.current=$));const k=!x&&!o?(...L)=>(_0(i,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),b(...L)):b,M=[k,D,x];return M.t=k,M.i18n=D,M.ready=x,M},[b,w,x,w.resolvedLanguage,w.language,w.languages]);if(i&&o&&!x)throw new Promise(C=>{const $=()=>C();t.lng?sE(i,t.lng,d,$):P0(i,d,$)});return N};/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const LK=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),v3=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var zK={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const IK=A.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:s,...o},l)=>A.createElement("svg",{ref:l,...zK,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:v3("lucide",a),...o},[...s.map(([u,f])=>A.createElement(u,f)),...Array.isArray(i)?i:[i]]));/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Z=(e,t)=>{const n=A.forwardRef(({className:r,...a},i)=>A.createElement(IK,{ref:i,iconNode:t,className:v3(`lucide-${LK(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const b3=Z("ArrowLeftRight",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Cs=Z("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const BK=Z("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uj=Z("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const x3=Z("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const S3=Z("CalendarClock",[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const w3=Z("CalendarDays",[["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"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const j3=Z("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const UK=Z("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $u=Z("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const FK=Z("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const VK=Z("CircleUser",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const HK=Z("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const A3=Z("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const O3=Z("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const N3=Z("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oE=Z("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Lf=Z("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qK=Z("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.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const E3=Z("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const T3=Z("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const C3=Z("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pt=Z("Flower2",[["path",{d:"M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1",key:"3pnvol"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M12 10v12",key:"6ubwww"}],["path",{d:"M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z",key:"9hd38g"}],["path",{d:"M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z",key:"ufn41s"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _3=Z("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const KK=Z("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const GK=Z("HandHeart",[["path",{d:"M11 14h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 16",key:"1ifwr1"}],["path",{d:"m7 20 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9",key:"17abbs"}],["path",{d:"m2 15 6 6",key:"10dquu"}],["path",{d:"M19.5 8.5c.7-.7 1.5-1.6 1.5-2.7A2.73 2.73 0 0 0 16 4a2.78 2.78 0 0 0-5 1.8c0 1.2.8 2 1.5 2.8L16 12Z",key:"1h3036"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const YK=Z("Headset",[["path",{d:"M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z",key:"12oyoe"}],["path",{d:"M21 16v2a4 4 0 0 1-4 4h-5",key:"1x7m43"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zf=Z("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const P3=Z("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const WK=Z("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.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fj=Z("Leaf",[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lE=Z("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const M3=Z("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.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const XK=Z("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.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bm=Z("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const If=Z("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.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const QK=Z("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const R3=Z("Package",[["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["path",{d:"M21 8a2 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.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ZK=Z("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.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const JK=Z("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const D3=Z("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cE=Z("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eG=Z("PieChart",[["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}],["path",{d:"M22 12A10 10 0 0 0 12 2v10z",key:"1rfc4y"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tG=Z("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nG=Z("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jl=Z("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rG=Z("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uE=Z("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dj=Z("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ag=Z("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const k3=Z("ScrollText",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ig=Z("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const aG=Z("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $3=Z("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.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hj=Z("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pj=Z("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mj=Z("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.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const iG=Z("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wl=Z("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wr=Z("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ja=Z("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qd=Z("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sG=Z("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oG=Z("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const R0=Z("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lG=Z("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.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cG=Z("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Kd=Z("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const L3=Z("UserCog",[["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m21.7 16.4-.9-.3",key:"12j9ji"}],["path",{d:"m15.2 13.9-.9-.3",key:"1fdjdi"}],["path",{d:"m16.6 18.7.3-.9",key:"heedtr"}],["path",{d:"m19.1 12.2.3-.9",key:"1af3ki"}],["path",{d:"m19.6 18.7-.4-1",key:"1x9vze"}],["path",{d:"m16.8 12.3-.4-1",key:"vqeiwj"}],["path",{d:"m14.3 16.6 1-.4",key:"1qlj63"}],["path",{d:"m20.7 13.8 1-.4",key:"1v5t8k"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const z3=Z("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.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const I3=Z("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.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const B3=Z("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function U3(e,t){return function(){return e.apply(t,arguments)}}const{toString:uG}=Object.prototype,{getPrototypeOf:sg}=Object,{iterator:og,toStringTag:F3}=Symbol,lg=(e=>t=>{const n=uG.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Hr=e=>(e=e.toLowerCase(),t=>lg(t)===e),cg=e=>t=>typeof t===e,{isArray:lo}=Array,ec=cg("undefined");function Vc(e){return e!==null&&!ec(e)&&e.constructor!==null&&!ec(e.constructor)&&Pn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const V3=Hr("ArrayBuffer");function fG(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&V3(e.buffer),t}const dG=cg("string"),Pn=cg("function"),H3=cg("number"),Gd=e=>e!==null&&typeof e=="object",hG=e=>e===!0||e===!1,Ap=e=>{if(lg(e)!=="object")return!1;const t=sg(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(F3 in e)&&!(og in e)},pG=e=>{if(!Gd(e)||Vc(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},mG=Hr("Date"),yG=Hr("File"),gG=e=>!!(e&&typeof e.uri<"u"),vG=e=>e&&typeof e.getParts<"u",bG=Hr("Blob"),xG=Hr("FileList"),SG=e=>Gd(e)&&Pn(e.pipe);function wG(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const fE=wG(),dE=typeof fE.FormData<"u"?fE.FormData:void 0,jG=e=>{if(!e)return!1;if(dE&&e instanceof dE)return!0;const t=sg(e);if(!t||t===Object.prototype||!Pn(e.append))return!1;const n=lg(e);return n==="formdata"||n==="object"&&Pn(e.toString)&&e.toString()==="[object FormData]"},AG=Hr("URLSearchParams"),[OG,NG,EG,TG]=["ReadableStream","Request","Response","Headers"].map(Hr),CG=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yd(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),lo(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(Vc(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let o;for(r=0;r<s;r++)o=i[r],t.call(null,e[o],o,e)}}function q3(e,t){if(Vc(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const _s=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,K3=e=>!ec(e)&&e!==_s;function D0(...e){const{caseless:t,skipUndefined:n}=K3(this)&&this||{},r={},a=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const o=t&&typeof s=="string"&&q3(r,s)||s,l=k0(r,o)?r[o]:void 0;Ap(l)&&Ap(i)?r[o]=D0(l,i):Ap(i)?r[o]=D0({},i):lo(i)?r[o]=i.slice():(!n||!ec(i))&&(r[o]=i)};for(let i=0,s=e.length;i<s;i++){const o=e[i];if(!o||Vc(o)||(Yd(o,a),typeof o!="object"||lo(o)))continue;const l=Object.getOwnPropertySymbols(o);for(let u=0;u<l.length;u++){const f=l[u];UG.call(o,f)&&a(o[f],f)}}return r}const _G=(e,t,n,{allOwnKeys:r}={})=>(Yd(t,(a,i)=>{n&&Pn(a)?Object.defineProperty(e,i,{__proto__:null,value:U3(a,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),PG=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),MG=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},RG=(e,t,n,r)=>{let a,i,s;const o={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)s=a[i],(!r||r(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=n!==!1&&sg(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},DG=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},kG=e=>{if(!e)return null;if(lo(e))return e;let t=e.length;if(!H3(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},$G=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&sg(Uint8Array)),LG=(e,t)=>{const r=(e&&e[og]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},zG=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},IG=Hr("HTMLFormElement"),BG=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),k0=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),{propertyIsEnumerable:UG}=Object.prototype,FG=Hr("RegExp"),G3=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Yd(n,(a,i)=>{let s;(s=t(a,i,e))!==!1&&(r[i]=s||a)}),Object.defineProperties(e,r)},VG=e=>{G3(e,(t,n)=>{if(Pn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(Pn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},HG=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return lo(e)?r(e):r(String(e).split(t)),n},qG=()=>{},KG=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function GG(e){return!!(e&&Pn(e.append)&&e[F3]==="FormData"&&e[og])}const YG=e=>{const t=new WeakSet,n=r=>{if(Gd(r)){if(t.has(r))return;if(Vc(r))return r;if(!("toJSON"in r)){t.add(r);const a=lo(r)?[]:{};return Yd(r,(i,s)=>{const o=n(i);!ec(o)&&(a[s]=o)}),t.delete(r),a}}return r};return n(e)},WG=Hr("AsyncFunction"),XG=e=>e&&(Gd(e)||Pn(e))&&Pn(e.then)&&Pn(e.catch),Y3=((e,t)=>e?setImmediate:t?((n,r)=>(_s.addEventListener("message",({source:a,data:i})=>{a===_s&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),_s.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Pn(_s.postMessage)),QG=typeof queueMicrotask<"u"?queueMicrotask.bind(_s):typeof process<"u"&&process.nextTick||Y3,ZG=e=>e!=null&&Pn(e[og]),z={isArray:lo,isArrayBuffer:V3,isBuffer:Vc,isFormData:jG,isArrayBufferView:fG,isString:dG,isNumber:H3,isBoolean:hG,isObject:Gd,isPlainObject:Ap,isEmptyObject:pG,isReadableStream:OG,isRequest:NG,isResponse:EG,isHeaders:TG,isUndefined:ec,isDate:mG,isFile:yG,isReactNativeBlob:gG,isReactNative:vG,isBlob:bG,isRegExp:FG,isFunction:Pn,isStream:SG,isURLSearchParams:AG,isTypedArray:$G,isFileList:xG,forEach:Yd,merge:D0,extend:_G,trim:CG,stripBOM:PG,inherits:MG,toFlatObject:RG,kindOf:lg,kindOfTest:Hr,endsWith:DG,toArray:kG,forEachEntry:LG,matchAll:zG,isHTMLForm:IG,hasOwnProperty:k0,hasOwnProp:k0,reduceDescriptors:G3,freezeMethods:VG,toObjectSet:HG,toCamelCase:BG,noop:qG,toFiniteNumber:KG,findKey:q3,global:_s,isContextDefined:K3,isSpecCompliantForm:GG,toJSONObject:YG,isAsyncFn:WG,isThenable:XG,setImmediate:Y3,asap:QG,isIterable:ZG},JG=z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),eY=e=>{const t={};let n,r,a;return e&&e.split(`
`).forEach(function(s){a=s.indexOf(":"),n=s.substring(0,a).trim().toLowerCase(),r=s.substring(a+1).trim(),!(!n||t[n]&&JG[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function tY(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const nY=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),rY=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function yj(e,t){return z.isArray(e)?e.map(n=>yj(n,t)):tY(String(e).replace(t,""))}const aY=e=>yj(e,nY),iY=e=>yj(e,rY);function W3(e){const t=Object.create(null);return z.forEach(e.toJSON(),(n,r)=>{t[r]=iY(n)}),t}const hE=Symbol("internals");function mu(e){return e&&String(e).trim().toLowerCase()}function Op(e){return e===!1||e==null?e:z.isArray(e)?e.map(Op):aY(String(e))}function sY(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const oY=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function pb(e,t,n,r,a){if(z.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!z.isString(t)){if(z.isString(r))return t.indexOf(r)!==-1;if(z.isRegExp(r))return r.test(t)}}function lY(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function cY(e,t){const n=z.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(a,i,s){return this[r].call(this,t,a,i,s)},configurable:!0})})}let bn=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(o,l,u){const f=mu(l);if(!f)return;const d=z.findKey(a,f);(!d||a[d]===void 0||u===!0||u===void 0&&a[d]!==!1)&&(a[d||l]=Op(o))}const s=(o,l)=>z.forEach(o,(u,f)=>i(u,f,l));if(z.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(z.isString(t)&&(t=t.trim())&&!oY(t))s(eY(t),n);else if(z.isObject(t)&&z.isIterable(t)){let o={},l,u;for(const f of t){if(!z.isArray(f))throw new TypeError("Object iterator must return a key-value pair");o[u=f[0]]=(l=o[u])?z.isArray(l)?[...l,f[1]]:[l,f[1]]:f[1]}s(o,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=mu(t),t){const r=z.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return sY(a);if(z.isFunction(n))return n.call(this,a,r);if(z.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=mu(t),t){const r=z.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||pb(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(s){if(s=mu(s),s){const o=z.findKey(r,s);o&&(!n||pb(r,r[o],o,n))&&(delete r[o],a=!0)}}return z.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||pb(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return z.forEach(this,(a,i)=>{const s=z.findKey(r,i);if(s){n[s]=Op(a),delete n[i];return}const o=t?lY(i):String(i).trim();o!==i&&delete n[i],n[o]=Op(a),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return z.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&z.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[hE]=this[hE]={accessors:{}}).accessors,a=this.prototype;function i(s){const o=mu(s);r[o]||(cY(a,s),r[o]=!0)}return z.isArray(t)?t.forEach(i):i(t),this}};bn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);z.reduceDescriptors(bn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});z.freezeMethods(bn);const uY="[REDACTED ****]";function fY(e){if(z.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(z.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function dY(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),r=[],a=i=>{if(i===null||typeof i!="object"||z.isBuffer(i))return i;if(r.indexOf(i)!==-1)return;i instanceof bn&&(i=i.toJSON()),r.push(i);let s;if(z.isArray(i))s=[],i.forEach((o,l)=>{const u=a(o);z.isUndefined(u)||(s[l]=u)});else{if(!z.isPlainObject(i)&&fY(i))return r.pop(),i;s=Object.create(null);for(const[o,l]of Object.entries(i)){const u=n.has(o.toLowerCase())?uY:a(l);z.isUndefined(u)||(s[o]=u)}}return r.pop(),s};return a(e)}let ae=class X3 extends Error{static from(t,n,r,a,i,s){const o=new X3(t.message,n||t.code,r,a,i);return o.cause=t,o.name=t.name,t.status!=null&&o.status==null&&(o.status=t.status),s&&Object.assign(o,s),o}constructor(t,n,r,a,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),a&&(this.request=a),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,n=t&&z.hasOwnProp(t,"redact")?t.redact:void 0,r=z.isArray(n)&&n.length>0?dY(t,n):z.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};ae.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ae.ERR_BAD_OPTION="ERR_BAD_OPTION";ae.ECONNABORTED="ECONNABORTED";ae.ETIMEDOUT="ETIMEDOUT";ae.ECONNREFUSED="ECONNREFUSED";ae.ERR_NETWORK="ERR_NETWORK";ae.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ae.ERR_DEPRECATED="ERR_DEPRECATED";ae.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ae.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ae.ERR_CANCELED="ERR_CANCELED";ae.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ae.ERR_INVALID_URL="ERR_INVALID_URL";ae.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const hY=null;function $0(e){return z.isPlainObject(e)||z.isArray(e)}function Q3(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function mb(e,t,n){return e?e.concat(t).map(function(a,i){return a=Q3(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function pY(e){return z.isArray(e)&&!e.some($0)}const mY=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function ug(e,t,n){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,y){return!z.isUndefined(y[v])});const r=n.metaTokens,a=n.visitor||d,i=n.dots,s=n.indexes,o=n.Blob||typeof Blob<"u"&&Blob,l=n.maxDepth===void 0?100:n.maxDepth,u=o&&z.isSpecCompliantForm(t);if(!z.isFunction(a))throw new TypeError("visitor must be a function");function f(g){if(g===null)return"";if(z.isDate(g))return g.toISOString();if(z.isBoolean(g))return g.toString();if(!u&&z.isBlob(g))throw new ae("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(g)||z.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,v,y){let b=g;if(z.isReactNative(t)&&z.isReactNativeBlob(g))return t.append(mb(y,v,i),f(g)),!1;if(g&&!y&&typeof g=="object"){if(z.endsWith(v,"{}"))v=r?v:v.slice(0,-2),g=JSON.stringify(g);else if(z.isArray(g)&&pY(g)||(z.isFileList(g)||z.endsWith(v,"[]"))&&(b=z.toArray(g)))return v=Q3(v),b.forEach(function(w,S){!(z.isUndefined(w)||w===null)&&t.append(s===!0?mb([v],S,i):s===null?v:v+"[]",f(w))}),!1}return $0(g)?!0:(t.append(mb(y,v,i),f(g)),!1)}const h=[],p=Object.assign(mY,{defaultVisitor:d,convertValue:f,isVisitable:$0});function m(g,v,y=0){if(!z.isUndefined(g)){if(y>l)throw new ae("Object is too deeply nested ("+y+" levels). Max depth: "+l,ae.ERR_FORM_DATA_DEPTH_EXCEEDED);if(h.indexOf(g)!==-1)throw new Error("Circular reference detected in "+v.join("."));h.push(g),z.forEach(g,function(x,w){(!(z.isUndefined(x)||x===null)&&a.call(t,x,z.isString(w)?w.trim():w,v,p))===!0&&m(x,v?v.concat(w):[w],y+1)}),h.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return m(e),t}function pE(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function gj(e,t){this._pairs=[],e&&ug(e,this,t)}const Z3=gj.prototype;Z3.append=function(t,n){this._pairs.push([t,n])};Z3.toString=function(t){const n=t?function(r){return t.call(this,r,pE)}:pE;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function yY(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function J3(e,t,n){if(!t)return e;const r=n&&n.encode||yY,a=z.isFunction(n)?{serialize:n}:n,i=a&&a.serialize;let s;if(i?s=i(t,a):s=z.isURLSearchParams(t)?t.toString():new gj(t,a).toString(r),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class mE{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){z.forEach(this.handlers,function(r){r!==null&&t(r)})}}const vj={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},gY=typeof URLSearchParams<"u"?URLSearchParams:gj,vY=typeof FormData<"u"?FormData:null,bY=typeof Blob<"u"?Blob:null,xY={isBrowser:!0,classes:{URLSearchParams:gY,FormData:vY,Blob:bY},protocols:["http","https","file","blob","url","data"]},bj=typeof window<"u"&&typeof document<"u",L0=typeof navigator=="object"&&navigator||void 0,SY=bj&&(!L0||["ReactNative","NativeScript","NS"].indexOf(L0.product)<0),wY=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",jY=bj&&window.location.href||"http://localhost",AY=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:bj,hasStandardBrowserEnv:SY,hasStandardBrowserWebWorkerEnv:wY,navigator:L0,origin:jY},Symbol.toStringTag,{value:"Module"})),tn={...AY,...xY};function OY(e,t){return ug(e,new tn.classes.URLSearchParams,{visitor:function(n,r,a,i){return tn.isNode&&z.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function NY(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function EY(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r<a;r++)i=n[r],t[i]=e[i];return t}function e5(e){function t(n,r,a,i){let s=n[i++];if(s==="__proto__")return!0;const o=Number.isFinite(+s),l=i>=n.length;return s=!s&&z.isArray(a)?a.length:s,l?(z.hasOwnProp(a,s)?a[s]=z.isArray(a[s])?a[s].concat(r):[a[s],r]:a[s]=r,!o):((!z.hasOwnProp(a,s)||!z.isObject(a[s]))&&(a[s]=[]),t(n,r,a[s],i)&&z.isArray(a[s])&&(a[s]=EY(a[s])),!o)}if(z.isFormData(e)&&z.isFunction(e.entries)){const n={};return z.forEachEntry(e,(r,a)=>{t(NY(r),a,n,0)}),n}return null}const ko=(e,t)=>e!=null&&z.hasOwnProp(e,t)?e[t]:void 0;function TY(e,t,n){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Wd={transitional:vj,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=z.isObject(t);if(i&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return a?JSON.stringify(e5(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t)||z.isReadableStream(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){const l=ko(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return OY(t,l).toString();if((o=z.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=ko(this,"env"),f=u&&u.FormData;return ug(o?{"files[]":t}:t,f&&new f,l)}}return i||a?(n.setContentType("application/json",!1),TY(t)):t}],transformResponse:[function(t){const n=ko(this,"transitional")||Wd.transitional,r=n&&n.forcedJSONParsing,a=ko(this,"responseType"),i=a==="json";if(z.isResponse(t)||z.isReadableStream(t))return t;if(t&&z.isString(t)&&(r&&!a||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,ko(this,"parseReviver"))}catch(l){if(o)throw l.name==="SyntaxError"?ae.from(l,ae.ERR_BAD_RESPONSE,this,null,ko(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tn.classes.FormData,Blob:tn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch","query"],e=>{Wd.headers[e]={}});function yb(e,t){const n=this||Wd,r=t||n,a=bn.from(r.headers);let i=r.data;return z.forEach(e,function(o){i=o.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function t5(e){return!!(e&&e.__CANCEL__)}let Xd=class extends ae{constructor(t,n,r){super(t??"canceled",ae.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function n5(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ae("Request failed with status code "+n.status,n.status>=400&&n.status<500?ae.ERR_BAD_REQUEST:ae.ERR_BAD_RESPONSE,n.config,n.request,n))}function CY(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function _Y(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),f=r[i];s||(s=u),n[a]=l,r[a]=u;let d=i,h=0;for(;d!==a;)h+=n[d++],d=d%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-s<t)return;const p=f&&u-f;return p?Math.round(h*1e3/p):void 0}}function PY(e,t){let n=0,r=1e3/t,a,i;const s=(u,f=Date.now())=>{n=f,a=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const f=Date.now(),d=f-n;d>=r?s(u,f):(a=u,i||(i=setTimeout(()=>{i=null,s(a)},r-d)))},()=>a&&s(a)]}const xm=(e,t,n=3)=>{let r=0;const a=_Y(50,250);return PY(i=>{if(!i||typeof i.loaded!="number")return;const s=i.loaded,o=i.lengthComputable?i.total:void 0,l=o!=null?Math.min(s,o):s,u=Math.max(0,l-r),f=a(u);r=Math.max(r,l);const d={loaded:l,total:o,progress:o?l/o:void 0,bytes:u,rate:f||void 0,estimated:f&&o?(o-l)/f:void 0,event:i,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(d)},n)},yE=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},gE=e=>(...t)=>z.asap(()=>e(...t)),MY=tn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,tn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(tn.origin),tn.navigator&&/(msie|trident)/i.test(tn.navigator.userAgent)):()=>!0,RY=tn.hasStandardBrowserEnv?{write(e,t,n,r,a,i,s){if(typeof document>"u")return;const o=[`${e}=${encodeURIComponent(t)}`];z.isNumber(n)&&o.push(`expires=${new Date(n).toUTCString()}`),z.isString(r)&&o.push(`path=${r}`),z.isString(a)&&o.push(`domain=${a}`),i===!0&&o.push("secure"),z.isString(s)&&o.push(`SameSite=${s}`),document.cookie=o.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),a=r.indexOf("=");if(a!==-1&&r.slice(0,a)===e)return decodeURIComponent(r.slice(a+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function DY(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function kY(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function r5(e,t,n){let r=!DY(t);return e&&(r||n===!1)?kY(e,t):t}const vE=e=>e instanceof bn?{...e}:e;function co(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(u,f,d,h){return z.isPlainObject(u)&&z.isPlainObject(f)?z.merge.call({caseless:h},u,f):z.isPlainObject(f)?z.merge({},f):z.isArray(f)?f.slice():f}function a(u,f,d,h){if(z.isUndefined(f)){if(!z.isUndefined(u))return r(void 0,u,d,h)}else return r(u,f,d,h)}function i(u,f){if(!z.isUndefined(f))return r(void 0,f)}function s(u,f){if(z.isUndefined(f)){if(!z.isUndefined(u))return r(void 0,u)}else return r(void 0,f)}function o(u,f,d){if(z.hasOwnProp(t,d))return r(u,f);if(z.hasOwnProp(e,d))return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:o,headers:(u,f,d)=>a(vE(u),vE(f),d,!0)};return z.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const d=z.hasOwnProp(l,f)?l[f]:a,h=z.hasOwnProp(e,f)?e[f]:void 0,p=z.hasOwnProp(t,f)?t[f]:void 0,m=d(h,p,f);z.isUndefined(m)&&d!==o||(n[f]=m)}),n}const $Y=["content-type","content-length"];function LY(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,a])=>{$Y.includes(r.toLowerCase())&&e.set(r,a)})}const zY=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function a5(e){const t=co({},e),n=h=>z.hasOwnProp(t,h)?t[h]:void 0,r=n("data");let a=n("withXSRFToken");const i=n("xsrfHeaderName"),s=n("xsrfCookieName");let o=n("headers");const l=n("auth"),u=n("baseURL"),f=n("allowAbsoluteUrls"),d=n("url");if(t.headers=o=bn.from(o),t.url=J3(r5(u,d,f),n("params"),n("paramsSerializer")),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?zY(l.password):""))),z.isFormData(r)&&(tn.hasStandardBrowserEnv||tn.hasStandardBrowserWebWorkerEnv||z.isReactNative(r)?o.setContentType(void 0):z.isFunction(r.getHeaders)&&LY(o,r.getHeaders(),n("formDataHeaderPolicy"))),tn.hasStandardBrowserEnv&&(z.isFunction(a)&&(a=a(t)),a===!0||a==null&&MY(t.url))){const p=i&&s&&RY.read(s);p&&o.set(i,p)}return t}const IY=typeof XMLHttpRequest<"u",BY=IY&&function(e){return new Promise(function(n,r){const a=a5(e);let i=a.data;const s=bn.from(a.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:u}=a,f,d,h,p,m;function g(){p&&p(),m&&m(),a.cancelToken&&a.cancelToken.unsubscribe(f),a.signal&&a.signal.removeEventListener("abort",f)}let v=new XMLHttpRequest;v.open(a.method.toUpperCase(),a.url,!0),v.timeout=a.timeout;function y(){if(!v)return;const x=bn.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),S={data:!o||o==="text"||o==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:x,config:e,request:v};n5(function(O){n(O),g()},function(O){r(O),g()},S),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.startsWith("file:"))||setTimeout(y)},v.onabort=function(){v&&(r(new ae("Request aborted",ae.ECONNABORTED,e,v)),g(),v=null)},v.onerror=function(w){const S=w&&w.message?w.message:"Network Error",j=new ae(S,ae.ERR_NETWORK,e,v);j.event=w||null,r(j),g(),v=null},v.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||vj;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),r(new ae(w,S.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,v)),g(),v=null},i===void 0&&s.setContentType(null),"setRequestHeader"in v&&z.forEach(W3(s),function(w,S){v.setRequestHeader(S,w)}),z.isUndefined(a.withCredentials)||(v.withCredentials=!!a.withCredentials),o&&o!=="json"&&(v.responseType=a.responseType),u&&([h,m]=xm(u,!0),v.addEventListener("progress",h)),l&&v.upload&&([d,p]=xm(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(f=x=>{v&&(r(!x||x.type?new Xd(null,e,v):x),v.abort(),g(),v=null)},a.cancelToken&&a.cancelToken.subscribe(f),a.signal&&(a.signal.aborted?f():a.signal.addEventListener("abort",f)));const b=CY(a.url);if(b&&!tn.protocols.includes(b)){r(new ae("Unsupported protocol "+b+":",ae.ERR_BAD_REQUEST,e));return}v.send(i||null)})},UY=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const a=function(l){if(!r){r=!0,s();const u=l instanceof Error?l:this.reason;n.abort(u instanceof ae?u:new Xd(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,a(new ae(`timeout of ${t}ms exceeded`,ae.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(a):l.removeEventListener("abort",a)}),e=null)};e.forEach(l=>l.addEventListener("abort",a));const{signal:o}=n;return o.unsubscribe=()=>z.asap(s),o},FY=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},VY=async function*(e,t){for await(const n of HY(e))yield*FY(n,t)},HY=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},bE=(e,t,n,r)=>{const a=VY(e,t);let i=0,s,o=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:f}=await a.next();if(u){o(),l.close();return}let d=f.byteLength;if(n){let h=i+=d;n(h)}l.enqueue(new Uint8Array(f))}catch(u){throw o(u),u}},cancel(l){return o(l),a.return()}},{highWaterMark:2})};function qY(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let s=r.length;const o=r.length;for(let p=0;p<o;p++)if(r.charCodeAt(p)===37&&p+2<o){const m=r.charCodeAt(p+1),g=r.charCodeAt(p+2);(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102)&&(s-=2,p+=2)}let l=0,u=o-1;const f=p=>p>=2&&r.charCodeAt(p-2)===37&&r.charCodeAt(p-1)===51&&(r.charCodeAt(p)===68||r.charCodeAt(p)===100);u>=0&&(r.charCodeAt(u)===61?(l++,u--):f(u)&&(l++,u-=3)),l===1&&u>=0&&(r.charCodeAt(u)===61||f(u))&&l++;const h=Math.floor(s/4)*3-(l||0);return h>0?h:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(r,"utf8");let i=0;for(let s=0,o=r.length;s<o;s++){const l=r.charCodeAt(s);if(l<128)i+=1;else if(l<2048)i+=2;else if(l>=55296&&l<=56319&&s+1<o){const u=r.charCodeAt(s+1);u>=56320&&u<=57343?(i+=4,s++):i+=3}else i+=3}return i}const xj="1.17.0",xE=64*1024,{isFunction:Rh}=z,KY=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),SE=e=>{if(!z.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},wE=(e,...t)=>{try{return!!e(...t)}catch{return!1}},GY=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},YY=e=>{const t=z.global!==void 0&&z.global!==null?z.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=z.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:i,Response:s}=e,o=a?Rh(a):typeof fetch=="function",l=Rh(i),u=Rh(s);if(!o)return!1;const f=o&&Rh(n),d=o&&(typeof r=="function"?(y=>b=>y.encode(b))(new r):async y=>new Uint8Array(await new i(y).arrayBuffer())),h=l&&f&&wE(()=>{let y=!1;const b=new i(tn.origin,{body:new n,method:"POST",get duplex(){return y=!0,"half"}}),x=b.headers.has("Content-Type");return b.body!=null&&b.body.cancel(),y&&!x}),p=u&&f&&wE(()=>z.isReadableStream(new s("").body)),m={stream:p&&(y=>y.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!m[y]&&(m[y]=(b,x)=>{let w=b&&b[y];if(w)return w.call(b);throw new ae(`Response type '${y}' is not supported`,ae.ERR_NOT_SUPPORT,x)})});const g=async y=>{if(y==null)return 0;if(z.isBlob(y))return y.size;if(z.isSpecCompliantForm(y))return(await new i(tn.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(z.isArrayBufferView(y)||z.isArrayBuffer(y))return y.byteLength;if(z.isURLSearchParams(y)&&(y=y+""),z.isString(y))return(await d(y)).byteLength},v=async(y,b)=>{const x=z.toFiniteNumber(y.getContentLength());return x??g(b)};return async y=>{let{url:b,method:x,data:w,signal:S,cancelToken:j,timeout:O,onDownloadProgress:N,onUploadProgress:E,responseType:T,headers:P,withCredentials:C="same-origin",fetchOptions:$,maxContentLength:D,maxBodyLength:k}=a5(y);const M=z.isNumber(D)&&D>-1,L=z.isNumber(k)&&k>-1,I=J=>z.hasOwnProp(y,J)?y[J]:void 0;let F=a||fetch;T=T?(T+"").toLowerCase():"text";let q=UY([S,j&&j.toAbortSignal()],O),W=null;const K=q&&q.unsubscribe&&(()=>{q.unsubscribe()});let ne;try{let J;const ye=I("auth");if(ye){const X=ye.username||"",V=ye.password||"";J={username:X,password:V}}if(GY(b)){const X=new URL(b,tn.origin);if(!J&&(X.username||X.password)){const V=SE(X.username),_e=SE(X.password);J={username:V,password:_e}}(X.username||X.password)&&(X.username="",X.password="",b=X.href)}if(J&&(P.delete("authorization"),P.set("Authorization","Basic "+btoa(KY((J.username||"")+":"+(J.password||""))))),M&&typeof b=="string"&&b.startsWith("data:")&&qY(b)>D)throw new ae("maxContentLength size of "+D+" exceeded",ae.ERR_BAD_RESPONSE,y,W);if(L&&x!=="get"&&x!=="head"){const X=await v(P,w);if(typeof X=="number"&&isFinite(X)&&X>k)throw new ae("Request body larger than maxBodyLength limit",ae.ERR_BAD_REQUEST,y,W)}if(E&&h&&x!=="get"&&x!=="head"&&(ne=await v(P,w))!==0){let X=new i(b,{method:"POST",body:w,duplex:"half"}),V;if(z.isFormData(w)&&(V=X.headers.get("content-type"))&&P.setContentType(V),X.body){const[_e,ge]=yE(ne,xm(gE(E)));w=bE(X.body,xE,_e,ge)}}z.isString(C)||(C=C?"include":"omit");const ee=l&&"credentials"in i.prototype;if(z.isFormData(w)){const X=P.getContentType();X&&/^multipart\/form-data/i.test(X)&&!/boundary=/i.test(X)&&P.delete("content-type")}P.set("User-Agent","axios/"+xj,!1);const ot={...$,signal:q,method:x.toUpperCase(),headers:W3(P.normalize()),body:w,duplex:"half",credentials:ee?C:void 0};W=l&&new i(b,ot);let He=await(l?F(W,$):F(b,ot));if(M){const X=z.toFiniteNumber(He.headers.get("content-length"));if(X!=null&&X>D)throw new ae("maxContentLength size of "+D+" exceeded",ae.ERR_BAD_RESPONSE,y,W)}const Y=p&&(T==="stream"||T==="response");if(p&&He.body&&(N||M||Y&&K)){const X={};["status","statusText","headers"].forEach(dt=>{X[dt]=He[dt]});const V=z.toFiniteNumber(He.headers.get("content-length")),[_e,ge]=N&&yE(V,xm(gE(N),!0))||[];let Xe=0;const lt=dt=>{if(M&&(Xe=dt,Xe>D))throw new ae("maxContentLength size of "+D+" exceeded",ae.ERR_BAD_RESPONSE,y,W);_e&&_e(dt)};He=new s(bE(He.body,xE,lt,()=>{ge&&ge(),K&&K()}),X)}T=T||"text";let oe=await m[z.findKey(m,T)||"text"](He,y);if(M&&!p&&!Y){let X;if(oe!=null&&(typeof oe.byteLength=="number"?X=oe.byteLength:typeof oe.size=="number"?X=oe.size:typeof oe=="string"&&(X=typeof r=="function"?new r().encode(oe).byteLength:oe.length)),typeof X=="number"&&X>D)throw new ae("maxContentLength size of "+D+" exceeded",ae.ERR_BAD_RESPONSE,y,W)}return!Y&&K&&K(),await new Promise((X,V)=>{n5(X,V,{data:oe,headers:bn.from(He.headers),status:He.status,statusText:He.statusText,config:y,request:W})})}catch(J){if(K&&K(),q&&q.aborted&&q.reason instanceof ae){const ye=q.reason;throw ye.config=y,W&&(ye.request=W),J!==ye&&(ye.cause=J),ye}throw J&&J.name==="TypeError"&&/Load failed|fetch/i.test(J.message)?Object.assign(new ae("Network Error",ae.ERR_NETWORK,y,W,J&&J.response),{cause:J.cause||J}):ae.from(J,J&&J.code,y,W,J&&J.response)}}},WY=new Map,i5=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:a}=t,i=[r,a,n];let s=i.length,o=s,l,u,f=WY;for(;o--;)l=i[o],u=f.get(l),u===void 0&&f.set(l,u=o?new Map:YY(t)),f=u;return u};i5();const Sj={http:hY,xhr:BY,fetch:{get:i5}};z.forEach(Sj,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const jE=e=>`- ${e}`,XY=e=>z.isFunction(e)||e===null||e===!1;function QY(e,t){e=z.isArray(e)?e:[e];const{length:n}=e;let r,a;const i={};for(let s=0;s<n;s++){r=e[s];let o;if(a=r,!XY(r)&&(a=Sj[(o=String(r)).toLowerCase()],a===void 0))throw new ae(`Unknown adapter '${o}'`);if(a&&(z.isFunction(a)||(a=a.get(t))))break;i[o||"#"+s]=a}if(!a){const s=Object.entries(i).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=n?s.length>1?`since :
`+s.map(jE).join(`
`):" "+jE(s[0]):"as no adapter specified";throw new ae("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return a}const s5={getAdapter:QY,adapters:Sj};function gb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xd(null,e)}function AE(e){return gb(e),e.headers=bn.from(e.headers),e.data=yb.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),s5.getAdapter(e.adapter||Wd.adapter,e)(e).then(function(r){gb(e),e.response=r;try{r.data=yb.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=bn.from(r.headers),r},function(r){if(!t5(r)&&(gb(e),r&&r.response)){e.response=r.response;try{r.response.data=yb.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=bn.from(r.response.headers)}return Promise.reject(r)})}const fg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{fg[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const OE={};fg.transitional=function(t,n,r){function a(i,s){return"[Axios v"+xj+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(t===!1)throw new ae(a(s," has been removed"+(n?" in "+n:"")),ae.ERR_DEPRECATED);return n&&!OE[s]&&(OE[s]=!0,console.warn(a(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,o):!0}};fg.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function ZY(e,t,n){if(typeof e!="object")throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],s=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(s){const o=e[i],l=o===void 0||s(o,i,e);if(l!==!0)throw new ae("option "+i+" must be "+l,ae.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ae("Unknown option "+i,ae.ERR_BAD_OPTION)}}const Np={assertOptions:ZY,validators:fg},An=Np.validators;let Qs=class{constructor(t){this.defaults=t||{},this.interceptors={request:new mE,response:new mE}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=(()=>{if(!a.stack)return"";const s=a.stack.indexOf(`
`);return s===-1?"":a.stack.slice(s+1)})();try{if(!r.stack)r.stack=i;else if(i){const s=i.indexOf(`
`),o=s===-1?-1:i.indexOf(`
`,s+1),l=o===-1?"":i.slice(o+1);String(r.stack).endsWith(l)||(r.stack+=`
`+i)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=co(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Np.assertOptions(r,{silentJSONParsing:An.transitional(An.boolean),forcedJSONParsing:An.transitional(An.boolean),clarifyTimeoutError:An.transitional(An.boolean),legacyInterceptorReqResOrdering:An.transitional(An.boolean),advertiseZstdAcceptEncoding:An.transitional(An.boolean)},!1),a!=null&&(z.isFunction(a)?n.paramsSerializer={serialize:a}:Np.assertOptions(a,{encode:An.function,serialize:An.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Np.assertOptions(n,{baseUrl:An.spelling("baseURL"),withXsrfToken:An.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&z.merge(i.common,i[n.method]);i&&z.forEach(["delete","get","head","post","put","patch","query","common"],m=>{delete i[m]}),n.headers=bn.concat(s,i);const o=[];let l=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(n)===!1)return;l=l&&g.synchronous;const v=n.transitional||vj;v&&v.legacyInterceptorReqResOrdering?o.unshift(g.fulfilled,g.rejected):o.push(g.fulfilled,g.rejected)});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let f,d=0,h;if(!l){const m=[AE.bind(this),void 0];for(m.unshift(...o),m.push(...u),h=m.length,f=Promise.resolve(n);d<h;)f=f.then(m[d++],m[d++]);return f}h=o.length;let p=n;for(;d<h;){const m=o[d++],g=o[d++];try{p=m(p)}catch(v){g.call(this,v);break}}try{f=AE.call(this,p)}catch(m){return Promise.reject(m)}for(d=0,h=u.length;d<h;)f=f.then(u[d++],u[d++]);return f}getUri(t){t=co(this.defaults,t);const n=r5(t.baseURL,t.url,t.allowAbsoluteUrls);return J3(n,t.params,t.paramsSerializer)}};z.forEach(["delete","get","head","options"],function(t){Qs.prototype[t]=function(n,r){return this.request(co(r||{},{method:t,url:n,data:(r||{}).data}))}});z.forEach(["post","put","patch","query"],function(t){function n(r){return function(i,s,o){return this.request(co(o||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Qs.prototype[t]=n(),t!=="query"&&(Qs.prototype[t+"Form"]=n(!0))});let JY=class o5{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const s=new Promise(o=>{r.subscribe(o),i=o}).then(a);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,o){r.reason||(r.reason=new Xd(i,s,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new o5(function(a){t=a}),cancel:t}}};function eW(e){return function(n){return e.apply(null,n)}}function tW(e){return z.isObject(e)&&e.isAxiosError===!0}const z0={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(z0).forEach(([e,t])=>{z0[t]=e});function l5(e){const t=new Qs(e),n=U3(Qs.prototype.request,t);return z.extend(n,Qs.prototype,t,{allOwnKeys:!0}),z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return l5(co(e,a))},n}const At=l5(Wd);At.Axios=Qs;At.CanceledError=Xd;At.CancelToken=JY;At.isCancel=t5;At.VERSION=xj;At.toFormData=ug;At.AxiosError=ae;At.Cancel=At.CanceledError;At.all=function(t){return Promise.all(t)};At.spread=eW;At.isAxiosError=tW;At.mergeConfig=co;At.AxiosHeaders=bn;At.formToJSON=e=>e5(z.isHTMLForm(e)?new FormData(e):e);At.getAdapter=s5.getAdapter;At.HttpStatusCode=z0;At.default=At;const{Axios:hOe,AxiosError:pOe,CanceledError:mOe,isCancel:yOe,CancelToken:gOe,VERSION:vOe,all:bOe,Cancel:xOe,isAxiosError:SOe,spread:wOe,toFormData:jOe,AxiosHeaders:AOe,HttpStatusCode:OOe,formToJSON:NOe,getAdapter:EOe,mergeConfig:TOe,create:COe}=At,H=At.create({baseURL:""}),c5=()=>location.pathname.startsWith("/admin"),u5=()=>c5()?"mall_admin_token":"mall_token";H.interceptors.request.use(e=>{const t=localStorage.getItem(u5());return t&&(e.headers.Authorization=`Bearer ${t}`),e});H.interceptors.response.use(e=>e,e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&(localStorage.removeItem(u5()),c5()&&location.pathname!=="/admin/login"&&(location.href="/admin/login")),Promise.reject(e)});const Q=e=>e.then(t=>{var n;return(n=t.data)==null?void 0:n.data}),f5=(e,t)=>H.post("/api/mall/auth/login",{username:e,password:t}),nW=(e,t,n)=>H.post("/api/mall/auth/register",{username:e,password:t,displayName:n}),d5=()=>Q(H.get("/api/mall/auth/me")),Ao=(e=!0)=>Q(H.get(`/api/mall/store?activeOnly=${e}`)),rW=e=>Q(H.post("/api/mall/store",e)),aW=(e,t)=>Q(H.put(`/api/mall/store/${e}`,t)),iW=(e,t)=>Q(H.put(`/api/mall/store/${e}/active`,{active:t})),sW=e=>Q(H.get(`/api/mall/zone/lookup?zip=${encodeURIComponent(e)}`)),tc=(e={})=>{const t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{r!==void 0&&r!==""&&r!==null&&t.set(n,String(r))}),Q(H.get(`/api/mall/product?${t}`))},h5=e=>Q(H.get(`/api/mall/product/${e}`)),oW=e=>Q(H.post("/api/mall/product",e)),lW=(e,t)=>Q(H.put(`/api/mall/product/${e}`,t)),cW=e=>H.delete(`/api/mall/product/${e}`),uW=(e,t)=>Q(H.put(`/api/mall/product/${e}/status`,{status:t})),p5=()=>Q(H.get("/api/mall/category")),fW=e=>Q(H.get(`/api/mall/store-inventory/store/${e}`)),dW=(e,t,n)=>Q(H.put(`/api/mall/store-inventory/store/${e}/product/${t}/toggle`,{available:n})),hW=(e,t,n)=>Q(H.put(`/api/mall/store-inventory/store/${e}/product/${t}/adjust`,{delta:n})),pW=(e,t)=>Q(H.get(`/api/mall/schedule/availability?storeId=${e}&date=${t}`)),m5=()=>Q(H.get("/api/mall/schedule/holidays")),mW=e=>Q(H.post("/api/mall/schedule/holiday",e)),wj=()=>Q(H.get("/api/mall/cart")),yW=e=>Q(H.post("/api/mall/cart",e)),gW=(e,t)=>Q(H.put(`/api/mall/cart/${e}`,{quantity:t})),vW=e=>H.delete(`/api/mall/cart/${e}`),bW=(e="")=>Q(H.get(`/api/mall/order?status=${e}`)),xW=e=>Q(H.post("/api/mall/order/checkout",e)),y5=(e,t)=>Q(H.put(`/api/mall/order/${e}/status`,{status:t})),SW=(e="",t=100)=>Q(H.get(`/api/mall/order/admin?status=${e}&limit=${t}`)),wW=e=>Q(H.post("/api/mall/payment",e)),jW=()=>Q(H.get("/api/mall/subscription")),AW=e=>Q(H.post("/api/mall/subscription",e)),NE=(e,t)=>Q(H.put(`/api/mall/subscription/${e}/status`,{status:t})),OW=()=>Q(H.get("/api/mall/subscription/admin")),NW=(e,t)=>Q(H.put(`/api/mall/subscription/admin/${e}/status`,{status:t})),EW=(e="",t="")=>{const n=new URLSearchParams;return e&&n.set("status",e),t&&n.set("storeId",t),Q(H.get(`/api/mall/transfer?${n}`))},TW=e=>Q(H.put(`/api/mall/transfer/${e}/approve`,{})),CW=e=>Q(H.put(`/api/mall/transfer/${e}/reject`,{})),_W=e=>Q(H.get(`/api/mall/review/product/${e}`)),PW=e=>Q(H.get(`/api/mall/review/product/${e}/stats`)),MW=e=>Q(H.post("/api/mall/review",e)),RW=()=>Q(H.get("/api/mall/member/me")),DW=(e="",t="",n=100)=>{const r=new URLSearchParams;return e&&r.set("keyword",e),t&&r.set("tier",t),r.set("limit",String(n)),Q(H.get(`/api/mall/member/admin?${r}`))},kW=()=>Q(H.get("/api/mall/cs")),$W=e=>Q(H.post("/api/mall/cs",e)),LW=()=>Q(H.get("/api/mall/wishlist")),zW=e=>Q(H.post(`/api/mall/wishlist/${e}`,{})),IW=e=>H.delete(`/api/mall/wishlist/${e}`),BW=(e=1,t=500)=>Q(H.get(`/api/mall/analytics/dashboard?days=${e}&bigOrderThreshold=${t}`)),g5=(e=7)=>Q(H.get(`/api/mall/analytics/store-sales?days=${e}`)),v5=(e=14)=>Q(H.get(`/api/mall/analytics/trend?days=${e}`)),b5=(e=10)=>Q(H.get(`/api/mall/analytics/top-products?limit=${e}`)),UW=(e,t,n)=>Q(H.post("/api/mall/gateway/tax/quote",{amount:e,zip:t,state:n})),FW=(e,t)=>Q(H.post("/api/mall/gateway/address/verify",{address:e,zip:t})),VW=()=>Q(H.get("/api/mall/gateway/providers")),x5=(e="",t="",n=6)=>{const r=new URLSearchParams;return e&&r.set("occasion",e),t&&r.set("keyword",t),r.set("limit",String(n)),Q(H.get(`/api/mall/ai/recommend?${r}`))},HW=e=>Q(H.get(`/api/mall/ai/review-summary/${e}`)),S5=e=>Q(H.post("/api/mall/ai/nl-search",{query:e})),qW=(e,t,n)=>Q(H.post("/api/mall/ai/card-message",{occasion:e,tone:t,recipient:n})),KW=(e="valentine",t=14)=>Q(H.get(`/api/mall/ai/demand-forecast?season=${e}&days=${t}`)),GW=e=>Q(H.post("/api/mall/ai/transfer-recommend",{storeIds:e})),YW=()=>Q(H.get("/api/admin/users")),WW=e=>Q(H.post("/api/admin/users",e)),XW=(e,t)=>Q(H.put(`/api/admin/users/${e}/role`,{role:t})),QW=(e,t)=>Q(H.put(`/api/admin/users/${e}/active`,{active:t})),ZW=(e,t)=>Q(H.put(`/api/admin/users/${e}/password`,{password:t})),JW=e=>H.delete(`/api/admin/users/${e}`),eX=(e="",t="",n=100)=>{const r=new URLSearchParams;return e&&r.set("action",e),t&&r.set("actor",t),r.set("limit",String(n)),Q(H.get(`/api/admin/audit?${r}`))},tX=()=>Q(H.get("/api/admin/settings")),nX=(e,t)=>Q(H.put(`/api/admin/settings/${encodeURIComponent(e)}`,{value:t})),rX=(e=!0)=>Q(H.get(`/api/mall/loyalty/tiers?activeOnly=${e}`)),aX=(e,t)=>Q(H.put(`/api/mall/loyalty/tiers/${e}`,t)),jj=()=>Q(H.get("/api/mall/loyalty/me")),iX=(e=100)=>Q(H.get(`/api/mall/loyalty/points/history?limit=${e}`)),sX=(e,t,n)=>Q(H.post("/api/mall/loyalty/points/adjust",{owner:e,points:t,reason:n})),oX=()=>Q(H.post("/api/mall/loyalty/recalc-all",{})),w5=(e=30)=>Q(H.get(`/api/mall/loyalty/analytics/by-tier?days=${e}`)),lX=(e="")=>Q(H.get(`/api/mall/event/ongoing${e?`?tier=${e}`:""}`)),cX=e=>Q(H.post(`/api/mall/event/${e}/join`,{})),uX=(e="",t="",n=!1)=>{const r=new URLSearchParams;return e&&r.set("status",e),t&&r.set("type",t),r.set("activeOnly",String(n)),Q(H.get(`/api/mall/event?${r}`))},fX=e=>Q(H.post("/api/mall/event",e)),dX=e=>Q(H.post(`/api/mall/event/${e}/publish`,{})),hX=e=>Q(H.post(`/api/mall/event/${e}/end`,{})),pX=e=>H.delete(`/api/mall/event/${e}`),mX=e=>Q(H.get(`/api/mall/event/${e}/performance`)),yX=(e,t,n)=>Q(H.post("/api/mall/event/ai/copy",{eventType:e,theme:t,tone:n}));function Xr({children:e,delay:t=0,y:n=24,className:r="",as:a="div"}){const i=ai(),s=Ct[a];return c.jsx(s,{className:r,initial:i?!1:{opacity:0,y:n},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.7,delay:t,ease:[.22,1,.36,1]},children:e})}const gX={hidden:{},show:{transition:{staggerChildren:.07,delayChildren:.05}}},vX={hidden:{opacity:0,y:22},show:{opacity:1,y:0,transition:{duration:.6,ease:[.22,1,.36,1]}}};function Sm({children:e,className:t=""}){const n=ai();return c.jsx(Ct.div,{className:t,variants:n?void 0:gX,initial:n?!1:"hidden",whileInView:"show",viewport:{once:!0,margin:"-40px"},children:e})}function wm({children:e,className:t=""}){const n=ai();return c.jsx(Ct.div,{className:t,variants:n?void 0:vX,children:e})}const EE=["","sage","cream"];function Qd({count:e=14,className:t=""}){const n=ai(),r=A.useMemo(()=>Array.from({length:e}).map((a,i)=>{const s=8+Math.round(Math.random()*14);return{left:Math.round(Math.random()*100),size:s,delay:+(Math.random()*12).toFixed(2),duration:+(10+Math.random()*10).toFixed(2),kind:EE[i%EE.length]}}),[e]);return n?null:c.jsx("div",{className:`petal-layer ${t}`,"aria-hidden":"true",children:r.map((a,i)=>c.jsx("span",{className:`petal ${a.kind}`,style:{left:`${a.left}%`,width:`${a.size}px`,height:`${a.size}px`,animationDelay:`${a.delay}s`,animationDuration:`${a.duration}s`}},i))})}function Ha({children:e,className:t="",onClick:n,type:r="button",disabled:a}){const i=ai();return c.jsx(Ct.button,{type:r,onClick:n,disabled:a,className:t,whileHover:i||a?void 0:{scale:1.03,y:-1},whileTap:i||a?void 0:{scale:.97},transition:{type:"spring",stiffness:380,damping:22},children:e})}const $e={name:"Montvale Florist",tagline:"100% Florist-Designed and Hand-Delivered!",founded:2010,address:"6 Railroad Ave, Montvale, NJ 07645",phone:"(201) 690-6721",phoneTel:"+12016906721",email:"wecare@montvalefloristnj.com",rating:4.9,reviewCount:44893,promise:[{title:"100% Florist-Designed",desc:"Every arrangement is crafted by hand in our shop — never mass-produced."},{title:"Locally Independent",desc:"A real, community-focused florist in Montvale since 2010 — not an online middleman."},{title:"100% Satisfaction",desc:"We stand behind every bouquet with our satisfaction guarantee."}],hours:[{day:"Mon – Fri",open:"9:00 AM – 5:30 PM",cutoff:"Same-day by 1:00 PM"},{day:"Saturday",open:"9:00 AM – 4:00 PM",cutoff:"Same-day by 12:00 PM"},{day:"Sunday",open:"9:00 AM – 12:00 PM",cutoff:"Same-day by 10:00 AM"}],social:{instagram:"https://instagram.com/themontvaleflorist",instagramHandle:"@themontvaleflorist",facebook:"https://facebook.com/montvaleflorist1",pinterest:"https://pinterest.com/montvaleflorist",google:"https://www.google.com/search?q=Montvale+Florist",yelp:"https://yelp.com/biz/montvale-florist-montvale-3"},payments:["Visa","Mastercard","Amex","Discover","Apple Pay","Google Pay"],wallets:["Apple Pay","Google Pay"],cards:["Visa","Mastercard","Amex","Discover"],policies:["Terms of Service","Privacy Policy","Accessibility Statement","Delivery Policy"],about:"Montvale Florist is your go-to local florist, delivering not just flowers, but joy, comfort, and memories. An independent, community-focused florist dedicated to craftsmanship and personal service since 2010."},vb=[{img:"/img/hero/slide-1.jpg",eyebrow:"Birthday Blooms",headline:`Make Their Birthday
Unforgettable`,subtext:"Florist-designed bouquets, hand-delivered the same day — a celebration in every petal.",cta:"Find the Perfect Gift",to:"/category?occasion=BIRTHDAY"},{img:"/img/hero/slide-2.jpg",eyebrow:"Sympathy & Comfort",headline:`Honor Their Memory
with Heartfelt Flowers`,subtext:"Thoughtful tributes, gently arranged and delivered with care and compassion.",cta:"Send Your Condolences",to:"/category?occasion=SYMPATHY"},{img:"/img/hero/slide-3.jpg",eyebrow:"Just Because",headline:`Brighten Their Day,
Just Because`,subtext:"No occasion needed — send a smile with fresh, locally designed blooms.",cta:"Send a Smile",to:"/category?occasion=JUST_BECAUSE"}],bX=[{code:"en",label:"EN"},{code:"ko",label:"한국어"}];function dg({variant:e="shop"}){const{i18n:t}=ii(),n=(t.language||"en").split("-")[0],r=s=>{s!==n&&t.changeLanguage(s)},a=e==="admin",i=a?"flex items-center gap-0.5 rounded-lg border border-edge bg-card/60 p-0.5":"flex items-center gap-0.5 rounded-full border border-blush-100 bg-white/70 p-0.5 shadow-soft";return c.jsxs("div",{className:"flex items-center gap-1.5","aria-label":"Language",children:[c.jsx(KK,{size:15,className:a?"text-slate-400":"text-sage-600"}),c.jsx("div",{className:i,role:"group",children:bX.map(s=>{const o=s.code===n,l="px-2 py-0.5 text-[11px] font-medium rounded-full transition-colors",u=a?o?"bg-brand text-ink":"text-slate-300 hover:text-brand":o?"bg-blush-500 text-white":"text-sage-700 hover:text-blush-600";return c.jsx("button",{type:"button",onClick:()=>r(s.code),"aria-pressed":o,className:`${l} ${a?"rounded-md":""} ${u}`,children:s.label},s.code)})})]})}function xX(){const{t:e}=ii(),[t,n]=A.useState(""),[r,a]=A.useState(null),[i,s]=A.useState(!1),[o,l]=A.useState(""),{setZone:u}=Sn(),f=Yt(),d=async p=>{if(p.preventDefault(),l(""),a(null),!/^\d{5}$/.test(t)){l(e("zip.errInvalid"));return}s(!0);try{const m=await sW(t);a(m),m!=null&&m.deliverable||l(e("zip.errNotDeliverable"))}catch{l(e("zip.errFailed"))}finally{s(!1)}},h=p=>{u(t,p.storeId,p.storeName),f("/home")};return c.jsxs("div",{className:"relative min-h-screen bg-gradient-to-br from-blush-100 via-cream to-sage-100 flex items-center justify-center px-4 overflow-hidden",children:[c.jsx("div",{className:"absolute top-5 right-5 z-20",children:c.jsx(dg,{variant:"shop"})}),c.jsx(Qd,{count:18}),c.jsx(Ct.div,{"aria-hidden":!0,className:"absolute -top-20 -left-20 text-blush-200/40",animate:{rotate:[0,360]},transition:{duration:80,repeat:1/0,ease:"linear"},children:c.jsx(pt,{size:320,strokeWidth:.5})}),c.jsx(Ct.div,{"aria-hidden":!0,className:"absolute -bottom-24 -right-16 text-sage-300/40",animate:{rotate:[360,0]},transition:{duration:90,repeat:1/0,ease:"linear"},children:c.jsx(pt,{size:260,strokeWidth:.5})}),c.jsxs(Ct.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.8,ease:[.22,1,.36,1]},className:"relative z-10 w-full max-w-lg text-center",children:[c.jsxs("div",{className:"flex flex-col items-center mb-5",children:[c.jsx(Ct.span,{animate:{rotate:[0,8,-6,0]},transition:{duration:7,repeat:1/0,ease:"easeInOut"},children:c.jsx(pt,{className:"text-blush-500",size:44})}),c.jsx("h1",{className:"font-serif text-4xl font-bold text-blush-900 mt-3",children:"Montvale Florist"}),c.jsx("p",{className:"font-display text-[13px] tracking-[0.35em] uppercase text-sage-600 mt-1",children:e("zip.since",{year:$e.founded})})]}),c.jsx("p",{className:"font-display text-2xl text-[#6b5258] mb-1",children:$e.tagline}),c.jsx("p",{className:"text-[#8a7077] text-sm mb-8",children:e("zip.lead")}),c.jsxs("form",{onSubmit:d,className:"bg-white/90 backdrop-blur rounded-4xl shadow-bloom p-7 border border-blush-100",children:[c.jsxs("label",{className:"flex items-center gap-2 text-sm text-blush-700 font-medium mb-3 justify-center",children:[c.jsx(bm,{size:16})," ",e("zip.enterZip")]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("input",{value:t,onChange:p=>n(p.target.value.replace(/\D/g,"").slice(0,5)),placeholder:e("zip.placeholder"),inputMode:"numeric",autoFocus:!0,className:"flex-1 px-4 py-3.5 rounded-2xl bg-blush-50 border border-blush-100 text-center text-lg tracking-[0.3em] outline-none focus:border-blush-400 transition-colors"}),c.jsx(Ha,{type:"submit",disabled:i,className:"px-7 rounded-2xl bg-blush-500 text-white font-semibold hover:bg-blush-600 disabled:opacity-60 flex items-center gap-1",children:i?"…":c.jsxs(c.Fragment,{children:[e("zip.go")," ",c.jsx(Cs,{size:16})]})})]}),o&&c.jsx("p",{className:"text-blush-500 text-xs mt-3",children:o}),(r==null?void 0:r.deliverable)&&c.jsxs(Ct.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},className:"mt-6 text-left overflow-hidden",children:[c.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-sage-700 font-medium mb-3",children:[c.jsx(Kd,{size:15})," ",e("zip.availableStores")]}),c.jsx("div",{className:"space-y-2",children:(r.stores||[]).map(p=>c.jsxs(Ha,{onClick:()=>h(p),className:"w-full flex items-center justify-between bg-blush-50 hover:bg-blush-100 border border-blush-100 rounded-2xl px-4 py-3.5 text-left",children:[c.jsxs("span",{children:[c.jsxs("span",{className:"font-medium text-sm flex items-center gap-1.5 text-blush-900",children:[c.jsx(qd,{size:14,className:"text-blush-500"}),p.storeName]}),c.jsx("span",{className:"block text-xs text-[#8a7077] mt-0.5",children:e("zip.radiusSameDay",{radius:p.radiusMi,cutoff:p.sameDayCutoff,tz:p.timezone})})]}),c.jsx(Cs,{size:16,className:"text-blush-500"})]},p.storeId))})]})]}),c.jsxs("div",{className:"flex items-center justify-center gap-2 mt-6 text-[12px] text-[#8a7077]",children:[c.jsx("span",{className:"flex text-gold",children:[1,2,3,4,5].map(p=>c.jsx(Ja,{size:13,fill:"currentColor"},p))}),$e.rating,"★ · ",e("zip.reviews",{n:$e.reviewCount.toLocaleString()})]}),c.jsx("button",{onClick:()=>f("/home"),className:"text-xs text-[#a08a90] hover:text-blush-600 mt-4 underline-offset-2 hover:underline",children:e("zip.browsePickup")})]})]})}function j5({size:e=18}){return c.jsx("svg",{viewBox:"0 0 24 24",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:c.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12c0 4.24 2.64 7.85 6.36 9.31-.09-.79-.17-2 .03-2.86.18-.78 1.17-4.97 1.17-4.97s-.3-.6-.3-1.48c0-1.39.81-2.43 1.81-2.43.85 0 1.27.64 1.27 1.41 0 .86-.55 2.14-.83 3.33-.24 1 .5 1.81 1.48 1.81 1.78 0 3.14-1.88 3.14-4.58 0-2.4-1.72-4.07-4.19-4.07-2.85 0-4.52 2.14-4.52 4.35 0 .86.33 1.78.74 2.28.08.1.09.19.07.29l-.27 1.13c-.04.18-.14.22-.33.13-1.25-.58-2.03-2.4-2.03-3.87 0-3.15 2.29-6.04 6.6-6.04 3.46 0 6.16 2.47 6.16 5.77 0 3.44-2.17 6.21-5.18 6.21-1.01 0-1.97-.53-2.29-1.15l-.62 2.37c-.23.86-.83 1.94-1.24 2.6.94.29 1.92.44 2.95.44 5.52 0 10-4.48 10-10S17.52 2 12 2z"})})}function SX({size:e=18}){return c.jsxs("svg",{viewBox:"0 0 24 24",width:e,height:e,"aria-hidden":"true",children:[c.jsx("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z"}),c.jsx("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84A11 11 0 0 0 12 23z"}),c.jsx("path",{fill:"#FBBC05",d:"M5.84 14.1a6.6 6.6 0 0 1 0-4.2V7.06H2.18a11 11 0 0 0 0 9.88l3.66-2.84z"}),c.jsx("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1A11 11 0 0 0 2.18 7.06l3.66 2.84C6.71 7.3 9.14 5.38 12 5.38z"})]})}function wX({size:e=18}){return c.jsx("svg",{viewBox:"0 0 24 24",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:c.jsx("path",{d:"M12.27 13.3l4.45-2.16c.51-.25.66-.92.31-1.36-1.13-1.44-2.7-2.49-4.49-2.99-.55-.15-1.08.27-1.08.84l-.02 5.04c0 .65.72 1.06 1.32.77zM12.6 15.34l4.46 2.13c.51.25 1.13-.07 1.21-.63.25-1.8-.06-3.66-.92-5.31-.27-.51-.96-.6-1.36-.18l-3.5 3.42c-.45.45-.31 1.18.11 1.4v-.84zm-2.59.4l-3.45-3.4c-.41-.4-1.09-.32-1.37.18-.86 1.64-1.18 3.49-.95 5.29.07.56.69.89 1.21.64l4.45-2.12c.6-.29.74-1.02.06-1.43zm.08 2.36l-.02 4.95c0 .57.53.99 1.08.84 1.78-.49 3.34-1.53 4.48-2.96.35-.44.2-1.11-.31-1.36l-4.45-2.15c-.6-.29-1.31.13-1.31.78l.84.01zm-.45-7.1L5.66 7.06c-.43-.7-1.46-.56-1.69.23-.13.45-.22.92-.27 1.4-.16 1.55.05 3.12.61 4.56.21.53.91.62 1.27.13l3.95-5.32c.32-.43.06-1.05-.5-1.16l.39.56z"})})}const jX={instagram:({size:e})=>c.jsx(P3,{size:e}),facebook:({size:e})=>c.jsx(C3,{size:e}),pinterest:j5,google:SX,yelp:wX},AX={instagram:"Instagram",facebook:"Facebook",pinterest:"Pinterest",google:"Google Business",yelp:"Yelp"},OX=["instagram","facebook","pinterest","google","yelp"];function NX({size:e=18,className:t="",iconClass:n=""}){return c.jsx("div",{className:`flex items-center gap-3 ${t}`,children:OX.map(r=>{const a=$e.social[r];if(!a)return null;const i=jX[r];return c.jsx("a",{href:a,target:"_blank",rel:"noreferrer","aria-label":AX[r],className:`transition-colors ${n}`,children:c.jsx(i,{size:e})},r)})})}function EX({url:e,title:t,image:n,className:r=""}){const a=encodeURIComponent(e),i=encodeURIComponent(t||$e.name),s=encodeURIComponent(n||""),o=`https://www.facebook.com/sharer/sharer.php?u=${a}`,l=`https://pinterest.com/pin/create/button/?url=${a}&media=${s}&description=${i}`,u=$e.social.instagram,f=d=>window.open(d,"_blank","noopener,width=640,height=600");return c.jsxs("div",{className:`flex items-center gap-2 ${r}`,children:[c.jsx("span",{className:"text-xs text-[#a08a90]",children:"Share:"}),c.jsx("button",{type:"button",onClick:()=>f(u),"aria-label":"Share on Instagram",className:"p-2 rounded-full border border-blush-100 text-blush-500 hover:bg-blush-50 transition-colors",children:c.jsx(P3,{size:16})}),c.jsx("button",{type:"button",onClick:()=>f(o),"aria-label":"Share on Facebook",className:"p-2 rounded-full border border-blush-100 text-blush-500 hover:bg-blush-50 transition-colors",children:c.jsx(C3,{size:16})}),c.jsx("button",{type:"button",onClick:()=>f(l),"aria-label":"Share on Pinterest",className:"p-2 rounded-full border border-blush-100 text-blush-500 hover:bg-blush-50 transition-colors",children:c.jsx(j5,{size:16})})]})}function TX(){return c.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"Visa",children:[c.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#fff",stroke:"#e7e2dc"}),c.jsx("text",{x:"24",y:"21",textAnchor:"middle",fontFamily:"Georgia, serif",fontWeight:"700",fontStyle:"italic",fontSize:"13",fill:"#1a1f71",children:"VISA"})]})}function CX(){return c.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"Mastercard",children:[c.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#fff",stroke:"#e7e2dc"}),c.jsx("circle",{cx:"20",cy:"16",r:"8",fill:"#eb001b"}),c.jsx("circle",{cx:"28",cy:"16",r:"8",fill:"#f79e1b",fillOpacity:"0.85"})]})}function _X(){return c.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"American Express",children:[c.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#2e77bb"}),c.jsx("text",{x:"24",y:"20",textAnchor:"middle",fontFamily:"Arial, sans-serif",fontWeight:"700",fontSize:"9",fill:"#fff",children:"AMEX"})]})}function PX(){return c.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"Discover",children:[c.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#fff",stroke:"#e7e2dc"}),c.jsx("circle",{cx:"36",cy:"22",r:"9",fill:"#f68121"}),c.jsx("text",{x:"22",y:"19",textAnchor:"middle",fontFamily:"Arial, sans-serif",fontWeight:"700",fontSize:"7",fill:"#231f20",children:"DISCOVER"})]})}function MX(){return c.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"Apple Pay",children:[c.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#000"}),c.jsx("text",{x:"24",y:"20",textAnchor:"middle",fontFamily:"-apple-system, Helvetica, sans-serif",fontWeight:"600",fontSize:"9",fill:"#fff",children:" Pay"})]})}function RX(){return c.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"Google Pay",children:[c.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#fff",stroke:"#e7e2dc"}),c.jsxs("text",{x:"24",y:"20",textAnchor:"middle",fontFamily:"Arial, sans-serif",fontWeight:"700",fontSize:"9",children:[c.jsx("tspan",{fill:"#4285f4",children:"G"}),c.jsx("tspan",{fill:"#ea4335",children:"o"}),c.jsx("tspan",{fill:"#fbbc05",children:"o"}),c.jsx("tspan",{fill:"#4285f4",children:"g"}),c.jsx("tspan",{fill:"#34a853",children:"l"}),c.jsx("tspan",{fill:"#ea4335",children:"e"}),c.jsx("tspan",{fill:"#5f6368",children:" Pay"})]})]})}const A5={Visa:TX,Mastercard:CX,Amex:_X,Discover:PX,"Apple Pay":MX,"Google Pay":RX};function O5({items:e,className:t=""}){return c.jsx("div",{className:`flex flex-wrap items-center gap-1.5 ${t}`,children:e.map(n=>{const r=A5[n];return r?c.jsx(r,{},n):c.jsx("span",{className:"text-[10px] bg-cream/10 rounded px-2 py-1",children:n},n)})})}function DX(e){const t=e.replace(/\D/g,"");return t.length<4?"•••• •••• •••• ••••":`•••• •••• •••• ${t.slice(-4)}`}function kX(e){return e.replace(/\D/g,"").slice(0,16).replace(/(.{4})/g,"$1 ").trim()}function $X({method:e,onMethod:t,onCardChange:n,cards:r=["Visa","Mastercard","Amex","Discover"],wallets:a=["Apple Pay","Google Pay"]}){const[i,s]=A.useState(""),[o,l]=A.useState(""),[u,f]=A.useState(""),[d,h]=A.useState(""),[p,m]=A.useState(!1),g=i.replace(/\D/g,""),v=(b=i,x=o,w=u)=>{const S=b.replace(/\D/g,""),j=S.length>=15&&/^\d{2}\/\d{2}$/.test(x)&&w.replace(/\D/g,"").length>=3;n==null||n({last4:S.slice(-4),expiry:x,complete:j})},y=b=>b==="Apple Pay"?"APPLE_PAY":"GOOGLE_PAY";return c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[c.jsxs("button",{type:"button",onClick:()=>t("CARD"),className:`flex items-center justify-center gap-1.5 py-2.5 rounded-xl border text-sm ${e==="CARD"?"border-bloom bg-petal text-bloom2 font-semibold":"border-blush-100 text-[#6b5258]"}`,children:[c.jsx(oE,{size:16})," Card"]}),a.map(b=>{const x=y(b),w=A5[b];return c.jsx("button",{type:"button",onClick:()=>t(x),className:`flex items-center justify-center py-2 rounded-xl border ${e===x?"border-bloom bg-petal":"border-blush-100"}`,"aria-label":b,children:w?c.jsx(w,{}):c.jsx("span",{className:"text-sm",children:b})},b)})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"text-[11px] text-gray-400",children:"Accepted:"}),c.jsx(O5,{items:r})]}),e==="CARD"?c.jsxs("div",{className:"rounded-2xl border border-blush-100 p-4 space-y-3 bg-white",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"Card number"}),c.jsxs("div",{className:"flex items-center gap-2 px-3 py-2.5 rounded-xl border border-blush-100 focus-within:border-bloom",children:[c.jsx(oE,{size:16,className:"text-blush-400 shrink-0"}),c.jsx("input",{inputMode:"numeric",autoComplete:"cc-number",value:p?kX(i):g?DX(i):"",onFocus:()=>m(!0),onBlur:()=>m(!1),onChange:b=>{const x=b.target.value;s(x),v(x)},placeholder:"1234 1234 1234 1234",className:"flex-1 bg-transparent text-sm outline-none tracking-wider"})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"Expiry (MM/YY)"}),c.jsx("input",{inputMode:"numeric",autoComplete:"cc-exp",value:o,onChange:b=>{let x=b.target.value.replace(/\D/g,"").slice(0,4);x.length>=3&&(x=x.slice(0,2)+"/"+x.slice(2)),l(x),v(i,x)},placeholder:"MM/YY",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"CVC"}),c.jsx("input",{inputMode:"numeric",autoComplete:"cc-csc",value:u,onChange:b=>{const x=b.target.value.replace(/\D/g,"").slice(0,4);f(x),v(i,o,x)},placeholder:"•••",type:"password",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"Name on card"}),c.jsx("input",{autoComplete:"cc-name",value:d,onChange:b=>h(b.target.value),placeholder:"Full name",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"})]}),c.jsxs("p",{className:"flex items-center gap-1 text-[11px] text-gray-400",children:[c.jsx(lE,{size:11})," Card number is masked and never stored on this device. Processed via GUARDiA PaymentGateway."]})]}):c.jsxs("div",{className:"rounded-2xl border border-blush-100 p-4 bg-white",children:[c.jsx("button",{type:"button",className:`w-full py-3 rounded-xl font-semibold flex items-center justify-center gap-2 ${e==="APPLE_PAY"?"bg-black text-white":"bg-white border border-edge text-[#3c4043]"}`,children:e==="APPLE_PAY"?" Pay":"G Pay"}),c.jsxs("p",{className:"flex items-center gap-1 text-[11px] text-gray-400 mt-2",children:[c.jsx(lE,{size:11})," ",e==="APPLE_PAY"?"Apple Pay":"Google Pay"," via secure wallet. If unconfigured, processed as mock at checkout."]})]})]})}const LX=[{to:"/home",key:"home"},{to:"/category",key:"shopAll"},{to:"/category?occasion=ROMANCE",key:"loveRomance"},{to:"/category?occasion=BIRTHDAY",key:"birthday"},{to:"/category?occasion=SYMPATHY",key:"sympathy"},{to:"/daily-standard",key:"todaysBouquet",accent:!0},{to:"/subscription",key:"subscriptions"},{to:"/events",key:"offers"}];function zX(){const{t:e}=ii(),{zip:t,storeName:n,custToken:r,cartCount:a,setCartCount:i}=Sn(),s=Yt(),o=Nr(),l=ai(),[u,f]=A.useState("");A.useEffect(()=>{if(!r){i(0);return}wj().then(h=>i((h||[]).reduce((p,m)=>p+(m.quantity||1),0))).catch(()=>{})},[r]);const d=h=>{h.preventDefault(),u.trim()&&s(`/search?q=${encodeURIComponent(u.trim())}`)};return c.jsxs("div",{className:"min-h-screen bg-cream text-[#43343a] flex flex-col",children:[c.jsx("div",{className:"bg-sage-700 text-cream/95 text-[12px] tracking-wide",children:c.jsxs("div",{className:"max-w-6xl mx-auto px-4 h-9 flex items-center justify-center sm:justify-between gap-3",children:[c.jsxs("span",{className:"hidden sm:flex items-center gap-1.5",children:[c.jsx(pt,{size:13})," ",$e.tagline]}),c.jsxs("span",{className:"flex items-center gap-3",children:[c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx(Ja,{size:12,className:"text-gold",fill:"currentColor"})," ",$e.rating,"★ · ",e("shop.topbar.reviews",{n:$e.reviewCount.toLocaleString()})]}),c.jsxs("a",{href:`tel:${$e.phoneTel}`,className:"hidden sm:flex items-center gap-1 hover:text-white",children:[c.jsx(cE,{size:12})," ",$e.phone]})]})]})}),c.jsxs("header",{className:"sticky top-0 z-30 bg-cream/90 backdrop-blur-md border-b border-blush-100",children:[c.jsxs("div",{className:"max-w-6xl mx-auto px-4 h-[72px] flex items-center gap-4",children:[c.jsxs(Le,{to:"/home",className:"flex items-center gap-2.5 shrink-0",children:[c.jsx(Ct.span,{animate:l?void 0:{rotate:[0,8,-6,0]},transition:{duration:7,repeat:1/0,ease:"easeInOut"},children:c.jsx(pt,{className:"text-blush-500",size:28})}),c.jsxs("span",{className:"leading-none",children:[c.jsx("span",{className:"block font-serif text-[20px] font-bold text-blush-900 tracking-tight",children:"Montvale"}),c.jsx("span",{className:"block font-display text-[12px] tracking-[0.35em] text-sage-600 uppercase -mt-0.5",children:"Florist"})]})]}),c.jsxs("form",{onSubmit:d,className:"flex-1 max-w-md hidden md:flex items-center bg-white border border-blush-100 rounded-full px-4 py-2.5 shadow-soft",children:[c.jsx(ig,{size:16,className:"text-blush-400"}),c.jsx("input",{value:u,onChange:h=>f(h.target.value),placeholder:e("common.searchPlaceholder"),className:"flex-1 bg-transparent ml-2 text-sm outline-none placeholder:text-blush-300"})]}),c.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-3 ml-auto",children:[c.jsx(dg,{variant:"shop"}),c.jsxs(Le,{to:"/",className:"hidden sm:flex items-center gap-1 text-sm text-sage-700 hover:text-blush-500 transition-colors",children:[c.jsx(bm,{size:15})," ",t?`${t}`:e("shop.header.zip")]}),c.jsx(Le,{to:"/wishlist","aria-label":e("shop.header.wishlist"),className:"p-1.5 text-blush-700 hover:text-blush-500 transition-colors",children:c.jsx(zf,{size:20})}),c.jsxs(Le,{to:"/cart",className:"relative p-1.5 text-blush-700 hover:text-blush-500 transition-colors",children:[c.jsx(mj,{size:20}),c.jsx(d0,{children:a>0&&c.jsx(Ct.span,{initial:l?!1:{scale:0},animate:{scale:1},exit:{scale:0},className:"absolute -top-1 -right-1 bg-blush-500 text-white text-[10px] rounded-full min-w-[18px] h-[18px] px-1 flex items-center justify-center",children:a},a)})]}),c.jsx(Le,{to:r?"/mypage":"/account",className:"p-1.5 text-blush-700 hover:text-blush-500 transition-colors",children:c.jsx(z3,{size:20})})]})]}),c.jsx("nav",{className:"border-t border-blush-50 bg-white/60",children:c.jsx("div",{className:"max-w-6xl mx-auto px-4 h-11 flex items-center gap-7 text-[13px] overflow-x-auto thin-scroll",children:LX.map(h=>{const p=o.pathname+o.search===h.to||h.to==="/home"&&o.pathname==="/home";return c.jsxs(Le,{to:h.to,className:`relative whitespace-nowrap py-1 transition-colors ${h.accent?"text-sage-700 font-medium":"text-[#6b5258] hover:text-blush-500"} ${p?"text-blush-600":""}`,children:[e(`shop.nav.${h.key}`),p&&c.jsx(Ct.span,{layoutId:"nav-underline",className:"absolute -bottom-[1px] left-0 right-0 h-[2px] bg-blush-500 rounded-full"})]},h.to)})})})]}),c.jsx("main",{className:"flex-1",children:c.jsx(Ok,{})}),c.jsxs("footer",{className:"mt-16 bg-sage-800 text-cream/85",children:[c.jsx("div",{className:"botanical-divider py-6 opacity-50",children:c.jsx(pt,{size:16})}),c.jsxs("div",{className:"max-w-6xl mx-auto px-4 pb-10 grid md:grid-cols-4 gap-8",children:[c.jsxs("div",{className:"md:col-span-1",children:[c.jsx("div",{className:"font-serif text-xl font-bold text-white mb-1",children:"Montvale Florist"}),c.jsx("p",{className:"font-display text-[13px] tracking-[0.3em] uppercase text-sage-300 mb-3",children:e("shop.footer.since",{year:$e.founded})}),c.jsx("p",{className:"text-[13px] leading-relaxed text-cream/70",children:$e.tagline}),c.jsx(NX,{size:18,className:"mt-4 text-cream/80",iconClass:"hover:text-white"})]}),c.jsxs("div",{children:[c.jsx("div",{className:"font-semibold text-white mb-3 text-sm",children:e("shop.footer.visitUs")}),c.jsxs("p",{className:"text-[13px] flex items-start gap-1.5 text-cream/75 mb-1.5",children:[c.jsx(bm,{size:14,className:"mt-0.5 shrink-0"})," ",$e.address]}),c.jsxs("a",{href:`tel:${$e.phoneTel}`,className:"text-[13px] flex items-center gap-1.5 text-cream/75 hover:text-white mb-1.5",children:[c.jsx(cE,{size:14})," ",$e.phone]}),c.jsx("p",{className:"text-[13px] text-cream/60",children:$e.email})]}),c.jsxs("div",{children:[c.jsxs("div",{className:"font-semibold text-white mb-3 text-sm flex items-center gap-1.5",children:[c.jsx(A3,{size:14})," ",e("shop.footer.hours")]}),$e.hours.map(h=>c.jsxs("div",{className:"text-[13px] text-cream/75 mb-1",children:[c.jsx("span",{className:"inline-block w-20",children:h.day})," ",h.open]},h.day))]}),c.jsxs("div",{children:[c.jsx("div",{className:"font-semibold text-white mb-3 text-sm",children:e("shop.footer.customerCare")}),c.jsxs(Le,{to:"/cs",className:"flex items-center gap-1 text-[13px] text-cream/75 hover:text-white mb-1.5",children:[c.jsx($u,{size:13})," ",e("shop.footer.contactAiHelp")]}),c.jsxs(Le,{to:"/orders",className:"flex items-center gap-1 text-[13px] text-cream/75 hover:text-white mb-1.5",children:[c.jsx($u,{size:13})," ",e("shop.footer.orderStatus")]}),c.jsxs(Le,{to:"/subscription",className:"flex items-center gap-1 text-[13px] text-cream/75 hover:text-white mb-1.5",children:[c.jsx($u,{size:13})," ",e("shop.footer.subscriptions")]}),c.jsxs(Le,{to:"/app",className:"flex items-center gap-1 text-[13px] text-gold hover:text-white mb-3 font-medium",children:[c.jsx($u,{size:13})," ",e("shop.footer.getApp")]}),c.jsx("div",{className:"text-[11px] text-cream/50 mb-1.5",children:e("shop.footer.weAccept")}),c.jsx(O5,{items:$e.payments})]})]}),c.jsx("div",{className:"border-t border-cream/10",children:c.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-4 flex flex-col sm:flex-row items-center justify-between gap-2 text-[11px] text-cream/50",children:[c.jsxs("span",{children:["© 2026 Montvale Florist · ",$e.address]}),c.jsx("span",{className:"flex flex-wrap gap-3",children:$e.policies.map(h=>c.jsx("span",{className:"hover:text-cream/80",children:h},h))})]})})]})]})}function nc({p:e}){var a;const t=ai(),n=e.salePrice!=null&&e.salePrice>0&&e.salePrice<(e.price||0),r=n?Math.round((1-e.salePrice/e.price)*100):0;return c.jsx(Ct.div,{whileHover:t?void 0:{y:-8},transition:{type:"spring",stiffness:300,damping:24},className:"group h-full",children:c.jsxs(Le,{to:`/product/${e.id}`,className:"block h-full bg-white rounded-3xl overflow-hidden border border-blush-100/70 shadow-soft hover:shadow-bloom transition-shadow duration-500",children:[c.jsxs("div",{className:"relative aspect-[4/5] zoom-frame bg-gradient-to-br from-blush-50 to-ivory flex items-center justify-center",children:[e.thumbnail?c.jsx("img",{src:e.thumbnail,alt:e.name,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-110"}):c.jsx(pt,{className:"text-blush-200",size:56}),n&&c.jsxs("span",{className:"absolute top-3 left-3 bg-blush-500 text-white text-[11px] font-semibold px-2.5 py-1 rounded-full shadow-petal",children:["-",r,"%"]}),e.occasion&&c.jsx("span",{className:"absolute top-3 right-3 bg-white/85 backdrop-blur text-sage-700 text-[10px] uppercase tracking-wide px-2.5 py-1 rounded-full",children:e.occasion}),c.jsx("div",{className:"pointer-events-none absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500 bg-gradient-to-t from-blush-900/10 to-transparent"})]}),c.jsxs("div",{className:"p-4",children:[e.brand&&c.jsx("div",{className:"text-[10px] uppercase tracking-[0.12em] text-sage-600 mb-0.5",children:e.brand}),c.jsx("div",{className:"font-serif text-[15px] leading-snug text-blush-900 truncate",children:e.name}),c.jsxs("div",{className:"flex items-center justify-between mt-2",children:[c.jsx("div",{className:"flex items-baseline gap-1.5",children:n?c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-blush-600 font-bold",children:Ae(e.salePrice)}),c.jsx("span",{className:"text-gray-400 line-through text-xs",children:Ae(e.price)})]}):c.jsx("span",{className:"font-bold text-blush-900",children:Ae(e.price)})}),e.ratingAvg!=null&&e.reviewCount?c.jsxs("span",{className:"flex items-center gap-0.5 text-xs text-gold",children:[c.jsx(Ja,{size:12,fill:"currentColor"}),(a=e.ratingAvg)==null?void 0:a.toFixed(1)]}):null]})]})]})})}const IX=[GK,pt,hj],BX=6e3;function UX(){const{storeName:e}=Sn(),t=ai(),n=A.useRef(null),{scrollYProgress:r}=Iq({target:n,offset:["start start","end start"]}),a=cb(r,[0,1],["0%",t?"0%":"28%"]),i=cb(r,[0,1],[1,t?1:1.12]),s=cb(r,[0,.8],[1,t?1:.2]),[o,l]=A.useState(0),[u,f]=A.useState(1),d=vb.length,h=A.useCallback(m=>{f(m>o||o===d-1&&m===0?1:-1),l((m%d+d)%d)},[o,d]);A.useEffect(()=>{if(t)return;const m=setInterval(()=>{f(1),l(g=>(g+1)%d)},BX);return()=>clearInterval(m)},[t,d]);const p=vb[o];return c.jsxs("section",{ref:n,className:"relative overflow-hidden min-h-[78vh] flex items-center",children:[c.jsxs(Ct.div,{style:{y:a,scale:i},className:"absolute inset-0 z-0",children:[c.jsx(d0,{initial:!1,children:c.jsx(Ct.img,{src:p.img,alt:"",className:"absolute inset-0 w-full h-full object-cover",initial:{opacity:0,scale:t?1:1.06},animate:{opacity:1,scale:1},exit:{opacity:0},transition:{duration:t?0:1.1,ease:[.22,1,.36,1]}},p.img)}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-blush-900/70 via-blush-900/40 to-transparent"}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-sage-900/40 to-transparent"})]}),c.jsx(Qd,{count:16,className:"z-[1]"}),c.jsx(Ct.div,{style:{opacity:s},className:"relative z-10 max-w-6xl mx-auto px-4 w-full py-20",children:c.jsx(d0,{mode:"wait",custom:u,children:c.jsxs(Ct.div,{className:"max-w-xl",custom:u,initial:t?!1:{opacity:0,x:u*36},animate:{opacity:1,x:0},exit:t?{opacity:0}:{opacity:0,x:u*-36},transition:{duration:.7,ease:[.22,1,.36,1]},children:[c.jsxs("div",{className:"inline-flex items-center gap-2 text-cream/90 text-[12px] tracking-[0.25em] uppercase mb-5",children:[c.jsx("span",{className:"h-px w-8 bg-gold"})," ",p.eyebrow]}),c.jsx("h1",{className:"font-serif text-5xl md:text-6xl font-bold text-white leading-[1.05] mb-5 whitespace-pre-line drop-shadow-sm",children:p.headline}),c.jsxs("p",{className:"text-cream/90 text-lg leading-relaxed mb-8 max-w-md font-light",children:[p.subtext,e?` Same-day from ${e}.`:""]}),c.jsxs("div",{className:"flex flex-wrap gap-3",children:[c.jsx(Le,{to:p.to,children:c.jsxs(Ha,{className:"inline-flex items-center gap-2 bg-white text-blush-700 font-semibold px-7 py-3.5 rounded-full shadow-bloom hover:bg-cream",children:[p.cta," ",c.jsx(Cs,{size:17})]})}),c.jsx(Le,{to:"/daily-standard",children:c.jsxs(Ha,{className:"inline-flex items-center gap-2 border border-white/70 text-white px-7 py-3.5 rounded-full hover:bg-white/10",children:[c.jsx(fj,{size:16})," Today's Bouquet"]})})]}),c.jsxs("div",{className:"flex items-center gap-2 mt-7 text-cream/85 text-sm",children:[c.jsx("span",{className:"flex text-gold",children:[1,2,3,4,5].map(m=>c.jsx(Ja,{size:15,fill:"currentColor"},m))}),c.jsx("span",{className:"font-medium",children:$e.rating}),c.jsxs("span",{className:"text-cream/60",children:["· ",$e.reviewCount.toLocaleString()," happy customers"]})]})]},o)})}),c.jsx("button",{"aria-label":"Previous slide",onClick:()=>h(o-1),className:"absolute left-3 md:left-5 top-1/2 -translate-y-1/2 z-20 w-11 h-11 rounded-full bg-white/15 hover:bg-white/30 backdrop-blur-sm text-white flex items-center justify-center transition-colors",children:c.jsx(UK,{size:22})}),c.jsx("button",{"aria-label":"Next slide",onClick:()=>h(o+1),className:"absolute right-3 md:right-5 top-1/2 -translate-y-1/2 z-20 w-11 h-11 rounded-full bg-white/15 hover:bg-white/30 backdrop-blur-sm text-white flex items-center justify-center transition-colors",children:c.jsx($u,{size:22})}),c.jsx("div",{className:"absolute bottom-7 left-1/2 -translate-x-1/2 z-20 flex items-center gap-2.5",children:vb.map((m,g)=>c.jsx("button",{"aria-label":`Go to slide ${g+1}`,onClick:()=>h(g),className:`h-2.5 rounded-full transition-all duration-300 ${g===o?"w-8 bg-white":"w-2.5 bg-white/45 hover:bg-white/70"}`},g))}),c.jsx(Ct.div,{"aria-hidden":!0,className:"absolute -bottom-6 right-6 z-[2] text-white/20 hidden md:block pointer-events-none",animate:t?void 0:{rotate:[0,5,-4,0],y:[0,-8,0]},transition:{duration:9,repeat:1/0,ease:"easeInOut"},children:c.jsx(pt,{size:130,strokeWidth:1})})]})}function FX(){var i,s,o;const{data:e}=se({queryKey:["ai-rec"],queryFn:()=>x5("","",8)}),{data:t}=se({queryKey:["best"],queryFn:()=>tc({sort:"sales",size:8})}),{data:n}=se({queryKey:["feat"],queryFn:()=>tc({sort:"rating",size:12})}),r=(t==null?void 0:t.items)||[],a=(n==null?void 0:n.items)||[];return c.jsxs("div",{children:[c.jsx(UX,{}),c.jsx("section",{className:"bg-ivory border-b border-blush-100",children:c.jsx("div",{className:"max-w-6xl mx-auto px-4 py-10 grid md:grid-cols-3 gap-6",children:$e.promise.map((l,u)=>{const f=IX[u];return c.jsxs(Xr,{delay:u*.1,className:"flex items-start gap-3",children:[c.jsx("span",{className:"shrink-0 w-11 h-11 rounded-full bg-blush-50 text-blush-500 flex items-center justify-center",children:c.jsx(f,{size:20})}),c.jsxs("div",{children:[c.jsx("div",{className:"font-serif text-lg text-blush-900",children:l.title}),c.jsx("p",{className:"text-sm text-[#6b5258] leading-relaxed mt-0.5",children:l.desc})]})]},l.title)})})}),c.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-14 space-y-20",children:[c.jsxs("section",{children:[c.jsxs(Xr,{className:"flex items-end justify-between mb-7",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2 text-sage-600 text-[12px] tracking-[0.2em] uppercase mb-2",children:[c.jsx(wr,{size:15})," Curated by GUARDiA AI · On-premise"]}),c.jsx("h2",{className:"font-serif text-3xl text-blush-900",children:"Picked Just for You"})]}),c.jsxs(Le,{to:"/category",className:"hidden sm:flex items-center gap-1 text-sm text-blush-500 hover:text-blush-700",children:["View all ",c.jsx(Cs,{size:15})]})]}),c.jsxs(Sm,{className:"grid grid-cols-2 md:grid-cols-4 gap-5",children:[(e||[]).slice(0,8).map(l=>c.jsx(wm,{children:c.jsx(nc,{p:l})},l.id)),!(e||[]).length&&c.jsx("div",{className:"col-span-4 text-blush-300 text-sm py-12 text-center",children:"Curating fresh picks…"})]})]}),c.jsx("div",{className:"botanical-divider",children:c.jsx(pt,{size:18})}),c.jsx(Xr,{children:c.jsxs("section",{className:"relative overflow-hidden rounded-4xl bg-gradient-to-br from-sage-700 to-sage-800 text-white",children:[c.jsx(Qd,{count:8}),c.jsxs("div",{className:"relative z-10 p-8 md:p-12 flex flex-col md:flex-row items-center justify-between gap-6",children:[c.jsxs("div",{className:"max-w-lg",children:[c.jsxs("div",{className:"flex items-center gap-2 text-sage-200 text-[12px] tracking-[0.2em] uppercase mb-3",children:[c.jsx(fj,{size:15})," Farmgirl-style daily"]}),c.jsx("h3",{className:"font-serif text-3xl md:text-4xl font-bold mb-3",children:"Today's Designer Bouquet"}),c.jsx("p",{className:"text-cream/85 leading-relaxed",children:"Made fresh each morning with whatever's most beautiful in the cooler — hand-designed by our florists and curated by GUARDiA AI. Limited daily stock."})]}),c.jsx(Le,{to:"/daily-standard",children:c.jsxs(Ha,{className:"inline-flex items-center gap-2 bg-white text-sage-800 font-semibold px-7 py-3.5 rounded-full shadow-bloom",children:["See today's bouquet ",c.jsx(Cs,{size:16})]})})]})]})}),c.jsxs("section",{children:[c.jsxs(Xr,{className:"flex items-end justify-between mb-7",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2 text-sage-600 text-[12px] tracking-[0.2em] uppercase mb-2",children:[c.jsx(Ja,{size:14})," Most loved"]}),c.jsx("h2",{className:"font-serif text-3xl text-blush-900",children:"Bestsellers"})]}),c.jsxs(Le,{to:"/category?sort=sales",className:"hidden sm:flex items-center gap-1 text-sm text-blush-500 hover:text-blush-700",children:["View all ",c.jsx(Cs,{size:15})]})]}),c.jsx(Sm,{className:"grid grid-cols-2 md:grid-cols-4 gap-5",children:r.map(l=>c.jsx(wm,{children:c.jsx(nc,{p:l})},l.id))})]}),c.jsx(Xr,{children:c.jsx("section",{className:"grid md:grid-cols-3 gap-5",children:[{to:"/category?occasion=ROMANCE",label:"Love & Romance",sub:"Roses that speak from the heart",img:(i=a[1])==null?void 0:i.thumbnail},{to:"/category?occasion=SYMPATHY",label:"Sympathy & Comfort",sub:"Thoughtful tributes, gently delivered",img:(s=a[2])==null?void 0:s.thumbnail},{to:"/subscription",label:"Flower Subscriptions",sub:"Fresh blooms, week after week",img:(o=a[3])==null?void 0:o.thumbnail}].map((l,u)=>c.jsxs(Le,{to:l.to,className:"group relative rounded-3xl overflow-hidden zoom-frame aspect-[5/4] block shadow-soft",children:[l.img?c.jsx("img",{src:l.img,alt:"",loading:"lazy",className:"w-full h-full object-cover group-hover:scale-110"}):c.jsx("div",{className:"w-full h-full bg-gradient-to-br from-blush-100 to-sage-100"}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-blush-900/75 via-blush-900/20 to-transparent"}),c.jsxs("div",{className:"absolute bottom-0 left-0 p-6 text-white",children:[c.jsx("div",{className:"font-serif text-xl font-semibold mb-0.5",children:l.label}),c.jsx("p",{className:"text-cream/85 text-sm",children:l.sub}),c.jsxs("span",{className:"inline-flex items-center gap-1 text-[13px] text-gold mt-2 group-hover:gap-2 transition-all",children:["Explore ",c.jsx(Cs,{size:14})]})]})]},l.to))})}),c.jsx(Xr,{children:c.jsxs("section",{className:"rounded-4xl bg-blush-50 border border-blush-100 p-8 md:p-10 text-center",children:[c.jsx("div",{className:"flex justify-center mb-4",children:c.jsx("span",{className:"w-12 h-12 rounded-full bg-white text-blush-500 flex items-center justify-center shadow-soft",children:c.jsx(Kd,{size:22})})}),c.jsxs("h3",{className:"font-serif text-2xl text-blush-900 mb-2",children:["Your Local Florist Since ",$e.founded]}),c.jsx("p",{className:"text-[#6b5258] max-w-xl mx-auto leading-relaxed text-[15px]",children:$e.about}),c.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-2 mt-5 text-[12px] text-sage-700",children:[c.jsx("span",{className:"bg-white rounded-full px-3 py-1.5 shadow-soft",children:"Same-Day Delivery"}),c.jsx("span",{className:"bg-white rounded-full px-3 py-1.5 shadow-soft",children:"Hand-Delivered"}),c.jsx("span",{className:"bg-white rounded-full px-3 py-1.5 shadow-soft",children:"100% Satisfaction"}),c.jsx("span",{className:"bg-white rounded-full px-3 py-1.5 shadow-soft",children:"No-Contact Available"})]})]})})]})]})}const TE=[["","All"],["BIRTHDAY","Birthday"],["ANNIVERSARY","Anniversary"],["SYMPATHY","Sympathy"],["CONGRATS","Congrats"],["ROMANCE","Romance"]],VX=[["","Recommended"],["price_asc","Price ↑"],["price_desc","Price ↓"],["sales","Bestselling"],["rating","Top rated"]];function HX(){var v;const[e,t]=Ck(),n=e.get("occasion")||"",[r,a]=A.useState(e.get("sort")||""),[i,s]=A.useState(""),[o,l]=A.useState(""),[u,f]=A.useState(null);se({queryKey:["cats"],queryFn:p5});const{data:d}=se({queryKey:["products",n,r,i],queryFn:()=>tc({occasion:n,sort:r,maxPrice:i?Number(i):void 0,size:24})}),h=u?u.items:(d==null?void 0:d.items)||[],p=y=>{const b=new URLSearchParams(e);y?b.set("occasion",y):b.delete("occasion"),t(b),f(null)},m=async y=>{if(y.preventDefault(),!o.trim()){f(null);return}const b=await S5(o.trim()).catch(()=>null);f(b)},g=((v=TE.find(y=>y[0]===n))==null?void 0:v[1])||"All";return c.jsxs("div",{children:[c.jsx("section",{className:"bg-gradient-to-br from-blush-50 to-ivory border-b border-blush-100",children:c.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-10",children:[c.jsx("div",{className:"text-[12px] tracking-[0.2em] uppercase text-sage-600 mb-2",children:"Shop the collection"}),c.jsx("h1",{className:"font-serif text-4xl text-blush-900",children:g==="All"?"All Flowers":g})]})}),c.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-8",children:[c.jsxs("form",{onSubmit:m,className:"flex items-center gap-2 bg-white border border-blush-100 rounded-full px-5 py-3 mb-6 max-w-xl shadow-soft",children:[c.jsx(wr,{size:16,className:"text-blush-500"}),c.jsx("input",{value:o,onChange:y=>l(y.target.value),placeholder:'Try "anniversary roses under $80"',className:"flex-1 text-sm outline-none bg-transparent placeholder:text-blush-300"}),c.jsx("button",{className:"text-blush-500 text-sm font-semibold",children:"AI Search"})]}),u&&c.jsxs("div",{className:"text-xs text-sage-700 mb-4",children:["AI understood: ",c.jsx("span",{className:"font-medium",children:JSON.stringify(u.parsed)})," · ",u.source]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-7",children:[TE.map(([y,b])=>c.jsx("button",{onClick:()=>p(y),className:`px-4 py-1.5 rounded-full text-sm border transition-colors ${n===y?"bg-blush-500 text-white border-blush-500":"bg-white text-[#6b5258] border-blush-100 hover:border-blush-300"}`,children:b},y)),c.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[c.jsx(iG,{size:15,className:"text-blush-300"}),c.jsx("input",{value:i,onChange:y=>{s(y.target.value.replace(/\D/g,"")),f(null)},placeholder:"Max $",className:"w-24 px-3 py-1.5 rounded-full border border-blush-100 text-sm outline-none focus:border-blush-300"}),c.jsx("select",{value:r,onChange:y=>{a(y.target.value),f(null)},className:"px-3 py-1.5 rounded-full border border-blush-100 text-sm outline-none bg-white",children:VX.map(([y,b])=>c.jsx("option",{value:y,children:b},y))})]})]}),c.jsx(Sm,{className:"grid grid-cols-2 md:grid-cols-4 gap-5",children:h.map(y=>c.jsx(wm,{children:c.jsx(nc,{p:y})},y.id))}),!h.length&&c.jsxs(Xr,{className:"text-center text-blush-300 py-20",children:[c.jsx(pt,{size:40,className:"mx-auto mb-3 text-blush-200"}),"No flowers match those filters."]})]})]})}function qX(){const{t:e}=ii(),[t]=Ck(),n=t.get("q")||"",{data:r,isLoading:a}=se({queryKey:["nl-search",n],queryFn:()=>S5(n),enabled:!!n}),i=(r==null?void 0:r.items)||[];return c.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-8",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx(wr,{className:"text-bloom",size:20}),c.jsx("h1",{className:"font-serif text-2xl font-bold",children:e("search.resultsFor",{query:n})})]}),(r==null?void 0:r.parsed)&&c.jsxs("div",{className:"text-xs text-bloom2 mb-5",children:[e("search.aiUnderstood")," ",c.jsx("span",{className:"font-medium",children:JSON.stringify(r.parsed)})," · ",r.source]}),a&&c.jsx("div",{className:"text-gray-400 py-10 text-center",children:e("search.searching")}),c.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:i.map(s=>c.jsx(nc,{p:s},s.id))}),!a&&!i.length&&c.jsx("div",{className:"text-center text-gray-400 py-16",children:e("search.noResults")})]})}function KX(){var ne,J,ye;const{id:e}=Sk(),t=Number(e),n=Yt(),r=ai(),{custToken:a,setCartCount:i}=Sn(),[s,o]=A.useState(""),[l,u]=A.useState(null),[f,d]=A.useState(null),[h,p]=A.useState(""),[m,g]=A.useState(1),[v,y]=A.useState(""),[b,x]=A.useState(!1),[w,S]=A.useState(null),{data:j}=se({queryKey:["product",t],queryFn:()=>h5(t)}),{data:O}=se({queryKey:["reviews",t],queryFn:()=>_W(t)}),{data:N}=se({queryKey:["rstats",t],queryFn:()=>PW(t)}),{data:E}=se({queryKey:["aisum",t],queryFn:()=>HW(t)});if(!j)return c.jsx("div",{className:"max-w-6xl mx-auto px-4 py-24 text-center text-blush-300",children:"Loading…"});const T=j.sizes||[],P=T.find(ee=>ee.sizeCode===s)||T[0],C=j.options||[],$=C.filter(ee=>ee.optionType==="VASE"),D=C.filter(ee=>ee.optionType==="WRAP"),k=ee=>C.find(ot=>ot.id===ee),M=P?P.price:j.salePrice&&j.salePrice>0?j.salePrice:j.price,L=(((ne=k(l))==null?void 0:ne.extraPrice)||0)+(((J=k(f))==null?void 0:J.extraPrice)||0),I=(M+L)*m,F=w||j.thumbnail,q=async()=>{if(!a){n("/account");return}try{await yW({productId:j.id,optionId:l||f||null,sizeCode:(P==null?void 0:P.sizeCode)||"",cardMessage:h,quantity:m}),i(ee=>ee+m),y("Added to your cart.")}catch{y("Could not add to cart.")}},W=async()=>{await q(),n("/cart")},K=async()=>{if(!a){n("/account");return}x(!0),setTimeout(()=>x(!1),700),await zW(j.id).catch(()=>{}),y("Saved to your wishlist.")};return c.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-10",children:[c.jsxs("div",{className:"grid md:grid-cols-2 gap-10",children:[c.jsxs(Xr,{children:[c.jsx("div",{className:"relative aspect-[4/5] rounded-4xl overflow-hidden bg-gradient-to-br from-blush-50 to-ivory flex items-center justify-center shadow-soft",children:F?c.jsx(Ct.img,{src:F,alt:j.name,initial:r?!1:{opacity:0,scale:1.04},animate:{opacity:1,scale:1},transition:{duration:.6},className:"w-full h-full object-cover"},F):c.jsx(pt,{className:"text-blush-200",size:96})}),!!(j.images||[]).length&&c.jsxs("div",{className:"flex gap-2 mt-3",children:[c.jsx("button",{onClick:()=>S(null),className:`w-16 h-16 rounded-2xl overflow-hidden border-2 ${w?"border-blush-100":"border-blush-400"}`,children:j.thumbnail?c.jsx("img",{src:j.thumbnail,className:"w-full h-full object-cover"}):c.jsx(pt,{className:"text-blush-200 m-auto",size:20})}),j.images.map((ee,ot)=>c.jsx("button",{onClick:()=>S(ee),className:`w-16 h-16 rounded-2xl overflow-hidden border-2 ${w===ee?"border-blush-400":"border-blush-100"}`,children:c.jsx("img",{src:ee,className:"w-full h-full object-cover"})},ot))]})]}),c.jsxs(Xr,{delay:.1,children:[j.brand&&c.jsx("div",{className:"text-[11px] uppercase tracking-[0.2em] text-sage-600 mb-1",children:j.brand}),c.jsx("h1",{className:"font-serif text-3xl font-bold text-blush-900 mb-2 leading-tight",children:j.name}),c.jsxs("div",{className:"flex items-center gap-2 text-sm text-gold mb-4",children:[c.jsx(Ja,{size:15,fill:"currentColor"})," ",((ye=j.ratingAvg)==null?void 0:ye.toFixed(1))||"–",c.jsxs("span",{className:"text-[#a08a90]",children:["(",j.reviewCount||0," reviews)"]}),j.occasion&&c.jsx("span",{className:"text-xs bg-blush-50 text-blush-700 px-2.5 py-0.5 rounded-full ml-1",children:j.occasion})]}),c.jsx("p",{className:"text-[#6b5258] text-[15px] mb-6 leading-relaxed",children:j.description}),!!T.length&&c.jsxs("div",{className:"mb-6",children:[c.jsx("div",{className:"text-sm font-medium text-blush-900 mb-2",children:"Choose your size"}),c.jsx("div",{className:"grid grid-cols-3 gap-2.5",children:T.map(ee=>c.jsxs(Ha,{onClick:()=>o(ee.sizeCode),className:`rounded-2xl border p-3 text-center transition-colors ${(P==null?void 0:P.sizeCode)===ee.sizeCode?"border-blush-400 bg-blush-50":"border-blush-100 hover:border-blush-300"}`,children:[c.jsx("div",{className:"font-semibold text-sm text-blush-900",children:ee.label}),c.jsxs("div",{className:"text-xs text-[#8a7077]",children:[ee.stemCount," stems"]}),c.jsx("div",{className:"text-blush-600 font-bold text-sm mt-1",children:Ae(ee.price)})]},ee.sizeCode))})]}),!!$.length&&c.jsxs("div",{className:"mb-4",children:[c.jsx("div",{className:"text-sm font-medium text-blush-900 mb-2",children:"Add a vase"}),c.jsxs("div",{className:"flex flex-wrap gap-2",children:[c.jsx(Dh,{active:l===null,onClick:()=>u(null),children:"No vase"}),$.map(ee=>c.jsxs(Dh,{active:l===ee.id,onClick:()=>u(ee.id),children:[ee.optionValue," +",Ae(ee.extraPrice)]},ee.id))]})]}),!!D.length&&c.jsxs("div",{className:"mb-4",children:[c.jsx("div",{className:"text-sm font-medium text-blush-900 mb-2",children:"Wrapping"}),c.jsxs("div",{className:"flex flex-wrap gap-2",children:[c.jsx(Dh,{active:f===null,onClick:()=>d(null),children:"Standard"}),D.map(ee=>c.jsxs(Dh,{active:f===ee.id,onClick:()=>d(ee.id),children:[ee.optionValue," +",Ae(ee.extraPrice)]},ee.id))]})]}),c.jsxs("div",{className:"mb-5",children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsx("span",{className:"text-sm font-medium text-blush-900",children:"Card message"}),c.jsxs(Le,{to:"/cs",className:"text-xs text-blush-500 flex items-center gap-1",children:[c.jsx(wr,{size:12})," AI message helper"]})]}),c.jsx("textarea",{value:h,onChange:ee=>p(ee.target.value),rows:2,maxLength:200,placeholder:"Write a heartfelt note for the recipient…",className:"w-full px-3.5 py-2.5 rounded-2xl border border-blush-100 text-sm outline-none focus:border-blush-400"})]}),c.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[c.jsxs("div",{className:"flex items-center border border-blush-100 rounded-full",children:[c.jsx("button",{onClick:()=>g(ee=>Math.max(1,ee-1)),className:"px-3.5 py-1.5 text-blush-600",children:"−"}),c.jsx("span",{className:"px-2 text-sm w-8 text-center",children:m}),c.jsx("button",{onClick:()=>g(ee=>ee+1),className:"px-3.5 py-1.5 text-blush-600",children:"+"})]}),c.jsx("div",{className:"font-serif text-2xl font-bold text-blush-900",children:Ae(I)})]}),v&&c.jsx("div",{className:"text-sm text-sage-700 mb-3",children:v}),c.jsxs("div",{className:"flex gap-3",children:[c.jsxs(Ha,{onClick:q,className:"flex-1 flex items-center justify-center gap-2 border border-blush-400 text-blush-600 font-semibold py-3.5 rounded-full hover:bg-blush-50",children:[c.jsx(mj,{size:18})," Add to Cart"]}),c.jsx(Ha,{onClick:W,className:"flex-1 bg-blush-500 text-white font-semibold py-3.5 rounded-full hover:bg-blush-600 shadow-petal",children:"Buy Now"}),c.jsx("button",{onClick:K,className:`px-4 border border-blush-100 rounded-full text-blush-500 hover:bg-blush-50 ${b?"animate-heartbeat":""}`,children:c.jsx(zf,{size:18,fill:b?"currentColor":"none"})})]}),c.jsxs("div",{className:"flex items-center gap-5 mt-5 text-xs text-sage-700",children:[c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(Kd,{size:14})," Same-day local delivery"]}),c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(hj,{size:14})," 100% satisfaction"]})]}),c.jsx("div",{className:"mt-4 pt-4 border-t border-blush-100/60",children:c.jsx(EX,{url:typeof window<"u"?window.location.href:"",title:j.name,image:j.thumbnail||""})})]})]}),c.jsxs("div",{className:"mt-16",children:[c.jsx("div",{className:"botanical-divider mb-8",children:c.jsx(pt,{size:16})}),c.jsxs("h2",{className:"font-serif text-2xl font-bold text-blush-900 mb-5",children:["Reviews (",(N==null?void 0:N.count)??j.reviewCount??0,")"]}),(E==null?void 0:E.summary)&&c.jsxs(Xr,{className:"bg-gradient-to-br from-blush-50 to-sage-50 border border-blush-100 rounded-3xl p-5 mb-6",children:[c.jsxs("div",{className:"flex items-center gap-2 text-blush-700 font-medium text-sm mb-1.5",children:[c.jsx(wr,{size:15})," AI Review Summary ",c.jsx("span",{className:"text-xs text-[#a08a90]",children:E.source})]}),c.jsx("p",{className:"text-sm text-[#5a474d] leading-relaxed",children:E.summary})]}),c.jsxs("div",{className:"space-y-3",children:[(O||[]).map(ee=>c.jsxs("div",{className:"bg-white rounded-3xl border border-blush-100/70 p-5 shadow-soft",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("span",{className:"font-medium text-sm text-blush-900",children:ee.title||"Review"}),c.jsxs("span",{className:"flex items-center gap-0.5 text-gold text-sm",children:[c.jsx(Ja,{size:13,fill:"currentColor"}),ee.rating]})]}),c.jsx("p",{className:"text-sm text-[#6b5258] mt-1.5 leading-relaxed",children:ee.content})]},ee.id)),!(O||[]).length&&c.jsx("div",{className:"text-blush-300 text-sm py-8 text-center",children:"No reviews yet — be the first."})]}),c.jsx(Le,{to:`/review/${j.id}`,className:"inline-flex items-center gap-1 mt-5 text-sm text-blush-500 font-semibold hover:text-blush-700",children:"Write a review →"})]})]})}function Dh({active:e,onClick:t,children:n}){return c.jsx("button",{onClick:t,className:`px-3.5 py-1.5 rounded-full text-sm border transition-colors ${e?"bg-blush-500 text-white border-blush-500":"border-blush-100 text-[#6b5258] hover:border-blush-300"}`,children:n})}function GX(){const{t:e}=ii(),t=Gt(),n=Yt(),{custToken:r,setCartCount:a}=Sn(),{data:i}=se({queryKey:["cart"],queryFn:wj,enabled:!!r}),s=()=>t.invalidateQueries({queryKey:["cart"]}),o=async(d,h)=>{h<1||(await gW(d,h),s())},l=async d=>{await vW(d),s(),a(h=>Math.max(0,h-1))};if(!r)return c.jsxs("div",{className:"max-w-3xl mx-auto px-4 py-20 text-center",children:[c.jsx(mj,{className:"mx-auto text-bloom/40 mb-3",size:48}),c.jsx("p",{className:"text-gray-500 mb-4",children:e("cart.signInPrompt")}),c.jsx(Le,{to:"/account",className:"bg-bloom text-white px-6 py-2.5 rounded-full font-semibold",children:e("cart.signInRegister")})]});const u=i||[],f=u.reduce((d,h)=>d+(h.price||(h.unitPrice||0)*(h.quantity||1)),0);return c.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-8",children:[c.jsx("h1",{className:"font-serif text-2xl font-bold mb-6",children:e("cart.title")}),u.length?c.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[c.jsx("div",{className:"md:col-span-2 space-y-3",children:u.map(d=>c.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-4 flex gap-4",children:[c.jsx("div",{className:"w-20 h-20 bg-petal rounded-xl flex items-center justify-center overflow-hidden shrink-0",children:d.thumbnail?c.jsx("img",{src:d.thumbnail,className:"w-full h-full object-cover"}):c.jsx(pt,{className:"text-bloom/30",size:32})}),c.jsxs("div",{className:"flex-1",children:[c.jsx("div",{className:"font-medium text-sm",children:d.productName||`Product #${d.productId}`}),c.jsxs("div",{className:"text-xs text-gray-500",children:[d.sizeCode,d.cardMessage?` · ${e("cart.card")}: ${d.cardMessage.slice(0,20)}`:""]}),c.jsxs("div",{className:"flex items-center gap-3 mt-2",children:[c.jsxs("div",{className:"flex items-center border border-blush-100 rounded-full text-sm",children:[c.jsx("button",{onClick:()=>o(d.id,(d.quantity||1)-1),className:"px-2.5 py-1 text-bloom2",children:"−"}),c.jsx("span",{className:"px-1 w-6 text-center",children:d.quantity||1}),c.jsx("button",{onClick:()=>o(d.id,(d.quantity||1)+1),className:"px-2.5 py-1 text-bloom2",children:"+"})]}),c.jsx("button",{onClick:()=>l(d.id),className:"text-blush-400 hover:text-blush-600",children:c.jsx(R0,{size:16})})]})]}),c.jsx("div",{className:"font-bold text-bloom2 text-sm",children:Ae(d.price||(d.unitPrice||0)*(d.quantity||1))})]},d.id))}),c.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 h-fit",children:[c.jsxs("div",{className:"flex justify-between text-sm mb-2",children:[c.jsx("span",{className:"text-gray-500",children:e("cart.subtotal")}),c.jsx("span",{className:"font-medium",children:Ae(f)})]}),c.jsxs("div",{className:"flex justify-between text-sm mb-3",children:[c.jsx("span",{className:"text-gray-500",children:e("cart.shippingTax")}),c.jsx("span",{className:"text-gray-400",children:e("cart.calcAtCheckout")})]}),c.jsxs("div",{className:"border-t border-blush-100/60 pt-3 flex justify-between font-bold",children:[c.jsx("span",{children:e("cart.total")}),c.jsx("span",{className:"text-bloom2",children:Ae(f)})]}),c.jsx("button",{onClick:()=>n("/checkout"),className:"w-full mt-4 bg-bloom text-white font-semibold py-3 rounded-full hover:bg-bloom2",children:e("cart.checkout")})]})]}):c.jsxs("div",{className:"text-center text-gray-400 py-16",children:[e("cart.empty")," ",c.jsx(Le,{to:"/category",className:"text-bloom",children:e("cart.startShopping")})]})]})}function YX(e){const t=[],n=new Date;for(let r=0;r<e;r++){const a=new Date(n);a.setDate(n.getDate()+r),t.push(a.toISOString().slice(0,10))}return t}function WX(){var Mo;const e=Yt(),{custToken:t,storeId:n,zip:r,setCartCount:a}=Sn(),[i,s]=A.useState("DELIVERY"),[o,l]=A.useState(n||0),[u,f]=A.useState(""),[d,h]=A.useState(null),[p,m]=A.useState(""),[g,v]=A.useState(""),[y,b]=A.useState(""),[x,w]=A.useState(r||""),[S,j]=A.useState(""),[O,N]=A.useState(""),[E,T]=A.useState(0),[P,C]=A.useState("CARD"),[$,D]=A.useState({last4:"",expiry:"",complete:!1}),[k,M]=A.useState(null),[L,I]=A.useState(null),[F,q]=A.useState(!1),[W,K]=A.useState(null),[ne,J]=A.useState(""),{data:ye}=se({queryKey:["cart"],queryFn:wj,enabled:!!t}),{data:ee}=se({queryKey:["stores"],queryFn:()=>Ao(!0)}),{data:ot}=se({queryKey:["loyalty-me"],queryFn:jj,enabled:!!t}),{data:He}=se({queryKey:["holidays"],queryFn:m5}),{data:Y}=se({queryKey:["avail",o,u],queryFn:()=>pW(o,u),enabled:!!o&&!!u});A.useEffect(()=>{!o&&(ee!=null&&ee.length)&&l(ee[0].id)},[ee]);const oe=ye||[],X=oe.reduce((le,It)=>le+(It.price||(It.unitPrice||0)*(It.quantity||1)),0),V=Y!=null&&Y.surgeMultiplier&&Y.surgeMultiplier>1?X*(Y.surgeMultiplier-1):0,_e=((Mo=ot==null?void 0:ot.benefit)==null?void 0:Mo.discountRate)||0,ge=X*(_e/100),Xe=(L==null?void 0:L.taxAmount)||0,lt=(ot==null?void 0:ot.pointBalance)||0,dt=Math.min(lt,Math.floor(X)),kn=Math.max(0,X+V+Xe-ge-E),ui=A.useMemo(()=>new Set((He||[]).filter(le=>le.blocked).map(le=>le.holidayDate)),[He]),Po=async()=>{if(!y||!x)return;const le=await FW(y,x).catch(()=>null);M(le)},ga=async()=>{var Cr;const le=((Cr=ee==null?void 0:ee.find(oh=>oh.id===o))==null?void 0:Cr.state)||"",It=await UW(X,x||"",le).catch(()=>null);I(It)};A.useEffect(()=>{X>0&&o&&ga()},[X,o,x]);const va=async()=>{var le,It;if(J(""),!t){e("/account");return}if(!oe.length){J("Your cart is empty.");return}if(!u||!d){J("Please select a delivery/pickup date and time slot.");return}if(i==="DELIVERY"&&(!y||!p)){J("Please enter the recipient and delivery address.");return}if(P==="CARD"&&!$.complete){J("Please enter your card details.");return}q(!0);try{const Cr=await xW({storeId:o,fulfillmentType:i,receiverName:p,receiverPhone:g,address:i==="DELIVERY"?y:"",deliveryZip:x,scheduledDate:u,slotId:d.id,slotLabel:d.label,cardMessage:S,memo:O,couponId:null,discountAmount:Math.round((ge+E)*100)/100,taxAmount:Xe,surgeAmount:Math.round(V*100)/100});await wW({orderId:Cr.id,amount:kn,method:P,usePoints:E,cardLast4:P==="CARD"?$.last4:""}).catch(()=>{}),a(0),K(Cr)}catch(Cr){J(((It=(le=Cr==null?void 0:Cr.response)==null?void 0:le.data)==null?void 0:It.message)||"Order failed. Please try again in a moment.")}finally{q(!1)}};return t?W?c.jsxs("div",{className:"max-w-lg mx-auto px-4 py-20 text-center",children:[c.jsx(FK,{className:"mx-auto text-leaf mb-4",size:56}),c.jsx("h1",{className:"font-serif text-2xl font-bold mb-2",children:"Your order has been placed"}),c.jsxs("p",{className:"text-gray-500 mb-1",children:["Order Number ",c.jsx("span",{className:"font-semibold text-bloom2",children:W.orderNo||`#${W.id}`})]}),c.jsxs("p",{className:"text-sm text-gray-500 mb-6",children:[u," · ",d==null?void 0:d.label," · ",Ae(kn)]}),c.jsxs("div",{className:"flex gap-3 justify-center",children:[c.jsx("button",{onClick:()=>e("/orders"),className:"bg-bloom text-white px-6 py-2.5 rounded-full font-semibold",children:"Order History"}),c.jsx("button",{onClick:()=>e("/home"),className:"border border-blush-100 px-6 py-2.5 rounded-full text-bloom2",children:"Continue Shopping"})]})]}):c.jsxs("div",{className:"max-w-5xl mx-auto px-4 py-8",children:[c.jsx("h1",{className:"font-serif text-2xl font-bold mb-6",children:"Checkout"}),c.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[c.jsxs("div",{className:"md:col-span-2 space-y-5",children:[c.jsxs("section",{className:"bg-white rounded-2xl border border-blush-100/60 p-5",children:[c.jsx("div",{className:"text-sm font-semibold mb-3",children:"Fulfillment Method"}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsxs("button",{onClick:()=>s("DELIVERY"),className:`flex items-center gap-2 justify-center py-3 rounded-xl border ${i==="DELIVERY"?"border-bloom bg-petal text-bloom2":"border-blush-100"}`,children:[c.jsx(Kd,{size:18})," Local Delivery"]}),c.jsxs("button",{onClick:()=>s("PICKUP"),className:`flex items-center gap-2 justify-center py-3 rounded-xl border ${i==="PICKUP"?"border-bloom bg-petal text-bloom2":"border-blush-100"}`,children:[c.jsx(qd,{size:18})," Store Pickup"]})]}),c.jsxs("div",{className:"mt-3",children:[c.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"Store"}),c.jsx("select",{value:o,onChange:le=>l(Number(le.target.value)),className:"w-full px-3 py-2 rounded-xl border border-blush-100 text-sm bg-white",children:(ee||[]).map(le=>c.jsxs("option",{value:le.id,children:[le.name," (",le.city,", ",le.state,")"]},le.id))})]})]}),c.jsxs("section",{className:"bg-white rounded-2xl border border-blush-100/60 p-5",children:[c.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold mb-3",children:[c.jsx(w3,{size:16,className:"text-bloom"})," Delivery / Pickup Date"]}),c.jsx("div",{className:"flex gap-2 overflow-x-auto pb-2",children:YX(14).map(le=>{const It=ui.has(le),Cr=u===le,oh=new Date(le);return c.jsxs("button",{disabled:It,onClick:()=>{f(le),h(null)},className:`shrink-0 w-16 py-2 rounded-xl border text-center text-xs ${It?"opacity-30 cursor-not-allowed border-blush-100":Cr?"border-bloom bg-bloom text-white":"border-blush-100 hover:border-bloom"}`,children:[c.jsx("div",{className:"font-semibold",children:oh.toLocaleDateString("en-US",{weekday:"short"})}),c.jsx("div",{className:"text-base",children:oh.getDate()}),It&&c.jsx("div",{className:"text-[9px]",children:"Closed"})]},le)})}),u&&Y&&c.jsxs("div",{className:"mt-3",children:[Y.blocked&&c.jsxs("div",{className:"flex items-center gap-1.5 text-blush-500 text-xs mb-2",children:[c.jsx(cG,{size:13})," Delivery is unavailable on this date (peak season / closed)."]}),Y.surgeMultiplier>1&&c.jsxs("div",{className:"text-xs text-amber-600 mb-2",children:["⚡ Peak-season surge pricing ×",Y.surgeMultiplier," applied"]}),Y.sameDayAvailable&&c.jsxs("div",{className:"text-xs text-leaf mb-2",children:["Same-Day Delivery available (order by ",Y.sameDayCutoff,")"]}),c.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium mb-2",children:[c.jsx(A3,{size:14,className:"text-bloom"})," Delivery Time Slot"]}),c.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[(Y.slots||[]).map(le=>{const It=le.available===!1||le.capacity!=null&&le.booked>=le.capacity;return c.jsx("button",{disabled:It,onClick:()=>h({id:le.id,label:le.slotLabel}),className:`py-2 rounded-lg border text-xs ${It?"opacity-30 cursor-not-allowed":(d==null?void 0:d.id)===le.id?"border-bloom bg-petal text-bloom2 font-semibold":"border-blush-100 hover:border-bloom"}`,children:le.slotLabel},le.id)}),!(Y.slots||[]).length&&c.jsx("div",{className:"col-span-3 text-gray-400 text-xs py-2",children:"No time slots available."})]})]})]}),i==="DELIVERY"&&c.jsxs("section",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 space-y-3",children:[c.jsx("div",{className:"text-sm font-semibold",children:"Recipient Information"}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsx("input",{value:p,onChange:le=>m(le.target.value),placeholder:"Recipient Name",className:"px-3 py-2 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),c.jsx("input",{value:g,onChange:le=>v(le.target.value),placeholder:"Phone",className:"px-3 py-2 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("input",{value:y,onChange:le=>b(le.target.value),placeholder:"Delivery Address",className:"flex-1 px-3 py-2 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),c.jsx("input",{value:x,onChange:le=>w(le.target.value.replace(/\D/g,"").slice(0,5)),placeholder:"ZIP",className:"w-24 px-3 py-2 rounded-xl border border-blush-100 text-sm text-center outline-none focus:border-bloom"}),c.jsxs("button",{onClick:Po,className:"px-3 rounded-xl border border-bloom text-bloom text-sm font-semibold flex items-center gap-1",children:[c.jsx(bm,{size:14})," Verify"]})]}),k&&c.jsx("div",{className:`text-xs ${k.valid?"text-leaf":"text-blush-500"}`,children:k.valid?`Verified: ${k.normalized||y} (${k.provider})`:`Address verification failed (${k.provider})`})]}),c.jsxs("section",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 space-y-3",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("div",{className:"text-sm font-semibold",children:"Gift Card Message"}),c.jsxs("span",{className:"text-xs text-bloom flex items-center gap-1",children:[c.jsx(wr,{size:12})," AI writing is on the product page"]})]}),c.jsx("textarea",{value:S,onChange:le=>j(le.target.value),rows:2,maxLength:200,placeholder:"Message for the recipient",className:"w-full px-3 py-2 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),c.jsx("input",{value:O,onChange:le=>N(le.target.value),placeholder:"Special Instructions (optional)",className:"w-full px-3 py-2 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"})]}),c.jsxs("section",{className:"bg-white rounded-2xl border border-blush-100/60 p-5",children:[c.jsx("div",{className:"text-sm font-semibold mb-3",children:"Payment Method"}),c.jsx($X,{method:P,onMethod:C,onCardChange:D,cards:$e.cards,wallets:$e.wallets})]})]}),c.jsxs("aside",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 h-fit sticky top-20",children:[c.jsx("div",{className:"text-sm font-semibold mb-3",children:"Order Summary"}),c.jsxs("div",{className:"space-y-1.5 text-sm",children:[c.jsx(yu,{k:"Subtotal",v:Ae(X)}),V>0&&c.jsx(yu,{k:"Surge Pricing",v:`+${Ae(V)}`,amber:!0}),c.jsx(yu,{k:"Tax",v:Ae(Xe),sub:L?`${L.provider} ${(L.rate*100).toFixed(1)}%`:""}),ge>0&&c.jsx(yu,{k:`Tier Discount (${(ot==null?void 0:ot.tierName)||""} ${_e}%)`,v:`-${Ae(ge)}`,green:!0}),E>0&&c.jsx(yu,{k:"Points Used",v:`-${Ae(E)}`,green:!0})]}),!!t&&c.jsxs("div",{className:"mt-4 bg-petal rounded-xl p-3",children:[c.jsxs("div",{className:"flex items-center justify-between text-xs text-bloom2 mb-1",children:[c.jsxs("span",{children:["Points Balance ",lt.toLocaleString()," pts"]}),c.jsx("button",{onClick:()=>T(dt),className:"text-bloom font-semibold",children:"Use All"})]}),c.jsx("input",{type:"range",min:0,max:dt,value:E,onChange:le=>T(Number(le.target.value)),className:"w-full accent-bloom"}),c.jsxs("div",{className:"text-xs text-gray-500 text-right",children:[E.toLocaleString()," pts used"]})]}),c.jsxs("div",{className:"border-t border-blush-100/60 mt-4 pt-3 flex justify-between font-bold text-base",children:[c.jsx("span",{children:"Order Total"}),c.jsx("span",{className:"text-bloom2",children:Ae(kn)})]}),ne&&c.jsx("div",{className:"text-blush-500 text-xs mt-3",children:ne}),c.jsx("button",{onClick:va,disabled:F,className:"w-full mt-4 bg-bloom text-white font-semibold py-3 rounded-full hover:bg-bloom2 disabled:opacity-60",children:F?"Processing…":`Place Order · ${Ae(kn)}`}),c.jsx("p",{className:"text-[11px] text-gray-400 text-center mt-2",children:"Payments processed via GUARDiA PaymentGateway (secure adapter) · Card details not stored"})]})]})]}):(e("/account"),null)}function yu({k:e,v:t,sub:n,amber:r,green:a}){return c.jsxs("div",{className:"flex justify-between",children:[c.jsxs("span",{className:"text-gray-500",children:[e,n&&c.jsx("span",{className:"text-[10px] text-gray-400 ml-1",children:n})]}),c.jsx("span",{className:r?"text-amber-600":a?"text-leaf":"font-medium",children:t})]})}const XX={PAID:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",CONFIRMED:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",DELIVERED:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",COMPLETED:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",APPROVED:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",PUBLISHED:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",ACTIVE:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",RESOLVED:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",SHIPPED:"bg-sky-500/15 text-sky-400 border-sky-500/30",PREPARING:"bg-sky-500/15 text-sky-400 border-sky-500/30",REQUESTED:"bg-sky-500/15 text-sky-400 border-sky-500/30",IN_PROGRESS:"bg-sky-500/15 text-sky-400 border-sky-500/30",PENDING:"bg-amber-500/15 text-amber-400 border-amber-500/30",PAUSED:"bg-amber-500/15 text-amber-400 border-amber-500/30",OPEN:"bg-amber-500/15 text-amber-400 border-amber-500/30",DRAFT:"bg-slate-500/15 text-slate-400 border-slate-500/30",ENDED:"bg-slate-600/20 text-slate-400 border-slate-600/30",CANCELLED:"bg-slate-600/20 text-slate-400 border-slate-600/30",REJECTED:"bg-rose-500/15 text-rose-400 border-rose-500/30",REFUNDED:"bg-rose-500/15 text-rose-400 border-rose-500/30",FAILED:"bg-rose-500/15 text-rose-400 border-rose-500/30",BASIC:"bg-slate-500/15 text-slate-300 border-slate-500/30",SILVER:"bg-slate-300/20 text-slate-200 border-slate-300/30",GOLD:"bg-amber-400/15 text-amber-300 border-amber-400/30",VIP:"bg-violet-500/15 text-violet-300 border-violet-500/30"},QX={PENDING:"Pending",PAID:"Paid",PREPARING:"Preparing",SHIPPED:"Out for Delivery",DELIVERED:"Delivered",CONFIRMED:"Confirmed",CANCELLED:"Cancelled",REFUNDED:"Refunded",ACTIVE:"Active",PAUSED:"Paused",REQUESTED:"Requested",APPROVED:"Approved",REJECTED:"Rejected",COMPLETED:"Completed",PUBLISHED:"Published",DRAFT:"Draft",ENDED:"Ended",OPEN:"Open",IN_PROGRESS:"Processing",RESOLVED:"Resolved"};function jr({status:e}){if(!e)return null;const t=XX[e]||"bg-slate-500/15 text-slate-400 border-slate-500/30";return c.jsx("span",{className:`inline-block px-2 py-0.5 rounded text-xs font-medium border ${t}`,children:QX[e]||e})}const CE=[["WEEKLY","Weekly"],["BIWEEKLY","Every 2 Weeks"],["MONTHLY","Monthly"]];function ZX(){const e=Gt(),t=Yt(),{custToken:n,storeId:r}=Sn(),[a,i]=A.useState("WEEKLY"),[s,o]=A.useState(0),[l,u]=A.useState(!1),{data:f}=se({queryKey:["subs"],queryFn:jW,enabled:!!n}),{data:d}=se({queryKey:["stores"],queryFn:()=>Ao(!0)}),{data:h}=se({queryKey:["sub-prods"],queryFn:()=>tc({size:12,sort:"sales"})}),p=(h==null?void 0:h.items)||[],m=async()=>{var x;if(!n){t("/account");return}const y=r||((x=d==null?void 0:d[0])==null?void 0:x.id),b=p.find(w=>w.id===s)||p[0];b&&(await AW({storeId:y,productId:b.id,sizeCode:"ORIGINAL",frequency:a,receiverName:"",receiverPhone:"",address:"",deliveryZip:"",price:b.price}).catch(()=>{}),u(!1),e.invalidateQueries({queryKey:["subs"]}))},g=async(y,b)=>{await NE(y,b==="ACTIVE"?"PAUSED":"ACTIVE").catch(()=>{}),e.invalidateQueries({queryKey:["subs"]})},v=async y=>{await NE(y,"CANCELLED").catch(()=>{}),e.invalidateQueries({queryKey:["subs"]})};return c.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-8",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx(ag,{className:"text-bloom",size:22}),c.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"Flower Subscription"})]}),c.jsx("p",{className:"text-sm text-gray-500 mb-6",children:"Get fresh flowers delivered weekly, every two weeks, or monthly."}),!n&&c.jsxs("div",{className:"bg-petal rounded-2xl p-6 text-center text-sm text-gray-600 mb-6",children:["Please log in to start a subscription. ",c.jsx(Le,{to:"/account",className:"text-bloom font-semibold",children:"Log In →"})]}),c.jsx("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 mb-6",children:l?c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-sm font-medium mb-2",children:"Delivery Frequency"}),c.jsx("div",{className:"flex gap-2",children:CE.map(([y,b])=>c.jsx("button",{onClick:()=>i(y),className:`px-4 py-2 rounded-full text-sm border ${a===y?"bg-bloom text-white border-bloom":"border-blush-100"}`,children:b},y))})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-sm font-medium mb-2",children:"Choose a Product"}),c.jsxs("select",{value:s,onChange:y=>o(Number(y.target.value)),className:"w-full px-3 py-2 rounded-xl border border-blush-100 text-sm bg-white",children:[c.jsx("option",{value:0,children:"Best Seller (Recommended)"}),p.map(y=>c.jsxs("option",{value:y.id,children:[y.name," — ",Ae(y.price)]},y.id))]})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:m,className:"bg-bloom text-white px-6 py-2.5 rounded-full font-semibold",children:"Start Subscription"}),c.jsx("button",{onClick:()=>u(!1),className:"border border-blush-100 px-6 py-2.5 rounded-full text-gray-600",children:"Cancel"})]})]}):c.jsx("button",{onClick:()=>n?u(!0):t("/account"),className:"bg-bloom text-white px-6 py-2.5 rounded-full font-semibold",children:"Start a New Subscription"})}),c.jsx("h2",{className:"font-serif text-lg font-bold mb-3",children:"My Subscriptions"}),c.jsxs("div",{className:"space-y-3",children:[(f||[]).map(y=>{var b;return c.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-4 flex items-center gap-4",children:[c.jsx("div",{className:"w-14 h-14 bg-petal rounded-xl flex items-center justify-center",children:c.jsx(pt,{className:"text-bloom/40",size:26})}),c.jsxs("div",{className:"flex-1",children:[c.jsxs("div",{className:"font-medium text-sm",children:[y.productName||`상품 #${y.productId}`," · ",((b=CE.find(x=>x[0]===y.frequency))==null?void 0:b[1])||y.frequency]}),c.jsxs("div",{className:"text-xs text-gray-500",children:["다음 배송 ",y.nextDeliveryDate||"-"," · ",Ae(y.price)]})]}),c.jsx(jr,{status:y.status}),y.status!=="CANCELLED"&&c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:()=>g(y.id,y.status),className:"text-xs text-bloom2 border border-blush-100 rounded-full px-3 py-1.5",children:y.status==="ACTIVE"?"일시정지":"재개"}),c.jsx("button",{onClick:()=>v(y.id),className:"text-xs text-blush-400 border border-blush-100 rounded-full px-3 py-1.5",children:"해지"})]})]},y.id)}),!(f||[]).length&&c.jsx("div",{className:"text-gray-400 text-sm py-8 text-center",children:"아직 구독이 없습니다."})]})]})}function JX(){const{storeName:e}=Sn(),{data:t}=se({queryKey:["daily-rec"],queryFn:()=>x5("daily","",8)}),{data:n}=se({queryKey:["daily-fresh"],queryFn:()=>tc({sort:"rating",size:8})}),r=(t&&t.length?t:n==null?void 0:n.items)||[];return c.jsxs("div",{children:[c.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-br from-sage-700 to-sage-800 text-white",children:[c.jsx(Qd,{count:12}),c.jsxs("div",{className:"relative z-10 max-w-6xl mx-auto px-4 py-16",children:[c.jsxs("div",{className:"flex items-center gap-2 text-sage-200 text-[12px] tracking-[0.2em] uppercase mb-3",children:[c.jsx(fj,{size:15})," Fresh today, gone tomorrow"]}),c.jsx("h1",{className:"font-serif text-5xl font-bold mb-4",children:"Today's Designer Bouquet"}),c.jsxs("p",{className:"text-cream/85 max-w-xl leading-relaxed text-lg font-light",children:["Hand-designed each morning with the freshest stems in our cooler, then curated by ",c.jsx("b",{className:"font-medium",children:"GUARDiA AI"}),". Limited daily stock · ",e||"your nearest store"," same-day delivery."]})]})]}),c.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-12",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[c.jsx(wr,{className:"text-blush-500",size:18}),c.jsx("h2",{className:"font-serif text-2xl font-bold text-blush-900",children:"Today's Picks"}),c.jsx("span",{className:"text-xs text-sage-600",children:"AI-curated"})]}),c.jsx(Sm,{className:"grid grid-cols-2 md:grid-cols-4 gap-5",children:r.map(a=>c.jsx(wm,{children:c.jsx(nc,{p:a})},a.id))}),!r.length&&c.jsxs("div",{className:"text-center text-blush-300 py-20",children:[c.jsx(pt,{className:"mx-auto text-blush-200 mb-3",size:40}),"Today's bouquet is being designed. ",c.jsx(Le,{to:"/category",className:"text-blush-500",children:"Browse all flowers →"})]})]})]})}const eQ={DISCOUNT:oG,POINT_BONUS:Lf,GIFT:_3,TIER_ONLY:Lf,SEASON:If};function tQ(){const{custToken:e}=Sn(),t=Yt(),[n,r]=A.useState(""),{data:a}=se({queryKey:["loyalty-me"],queryFn:jj,enabled:!!e}),i=(a==null?void 0:a.tier)||"",{data:s}=se({queryKey:["ongoing-events",i],queryFn:()=>lX(i)}),o=async l=>{var u,f;if(!e){t("/account");return}r("");try{const d=await cX(l);r(d!=null&&d.coupon?`참여 완료! 쿠폰 발급: ${d.coupon.name} (${d.coupon.code})`:"이벤트에 참여했습니다.")}catch(d){r(((f=(u=d==null?void 0:d.response)==null?void 0:u.data)==null?void 0:f.message)||"참여 자격이 없거나 이미 참여했습니다.")}};return c.jsxs("div",{className:"max-w-5xl mx-auto px-4 py-8",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx(If,{className:"text-bloom",size:22}),c.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"이벤트 / 캠페인"})]}),i&&c.jsxs("p",{className:"text-sm text-gray-500 mb-2",children:["현재 등급 ",c.jsx("span",{className:"font-semibold text-bloom2",children:(a==null?void 0:a.tierName)||i})," · 등급 전용 이벤트가 함께 표시됩니다."]}),n&&c.jsx("div",{className:"bg-petal text-bloom2 text-sm rounded-xl px-4 py-2 mb-4",children:n}),c.jsxs("div",{className:"grid md:grid-cols-2 gap-4 mt-4",children:[(s||[]).map(l=>{const u=eQ[l.eventType]||If,f=(l.banners||[])[0];return c.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 overflow-hidden",children:[c.jsx("div",{className:"bg-gradient-to-r from-bloom2 to-bloom text-white p-5",children:f?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"font-serif text-lg font-bold",children:f.headline||l.title}),c.jsx("p",{className:"text-white/85 text-sm mt-1",children:f.subtext||l.description})]}):c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"font-serif text-lg font-bold",children:l.title}),c.jsx("p",{className:"text-white/85 text-sm mt-1",children:l.description})]})}),c.jsxs("div",{className:"p-4 flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600",children:[c.jsx(u,{size:16,className:"text-bloom"}),c.jsx("span",{children:l.eventType}),l.bonusPointRate>0&&c.jsxs("span",{className:"text-xs text-leaf",children:["+",l.bonusPointRate,"% 포인트"]}),l.targetTiers&&c.jsxs("span",{className:"text-xs bg-petal text-bloom2 px-2 py-0.5 rounded-full",children:[l.targetTiers," 전용"]})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(jr,{status:l.status}),c.jsx("button",{onClick:()=>o(l.id),className:"bg-bloom text-white text-sm font-semibold px-4 py-2 rounded-full hover:bg-bloom2",children:"참여"})]})]}),c.jsxs("div",{className:"px-4 pb-3 text-[11px] text-gray-400",children:[l.startDate," ~ ",l.endDate]})]},l.id)}),!(s||[]).length&&c.jsx("div",{className:"col-span-2 text-center text-gray-400 py-16",children:"진행 중인 이벤트가 없습니다."})]})]})}function nQ(){const{t:e}=ii(),t=Gt(),n=Yt(),{custToken:r}=Sn(),{data:a}=se({queryKey:["wishlist"],queryFn:LW,enabled:!!r});if(!r)return n("/account"),null;const i=a||[],s=async o=>{await IW(o).catch(()=>{}),t.invalidateQueries({queryKey:["wishlist"]})};return c.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-8",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[c.jsx(zf,{className:"text-bloom",size:22}),c.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:e("wishlist.title")})]}),i.length?c.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:i.map(o=>c.jsxs("div",{className:"relative",children:[c.jsx(nc,{p:{...o,id:o.productId||o.id}}),c.jsx("button",{onClick:()=>s(o.productId||o.id),className:"absolute top-2 right-2 bg-white/90 rounded-full p-1.5 text-bloom shadow",children:c.jsx(zf,{size:16,fill:"currentColor"})})]},o.id||o.productId))}):c.jsxs("div",{className:"text-center text-gray-400 py-16",children:[e("wishlist.empty")," ",c.jsx(Le,{to:"/category",className:"text-bloom",children:e("wishlist.startShopping")})]})]})}const _E={BASIC:"from-slate-400 to-slate-500",SILVER:"from-slate-300 to-slate-400",GOLD:"from-amber-400 to-amber-500",VIP:"from-violet-500 to-fuchsia-500"};function rQ(){const{custToken:e,setCustToken:t}=Sn(),n=Yt(),{data:r}=se({queryKey:["member"],queryFn:RW,enabled:!!e}),{data:a}=se({queryKey:["loyalty-me"],queryFn:jj,enabled:!!e}),{data:i}=se({queryKey:["point-history"],queryFn:()=>iX(20),enabled:!!e});if(!e)return n("/account"),null;const s=(a==null?void 0:a.tier)||"BASIC",o=a==null?void 0:a.nextTier,l=()=>{t(null),n("/home")};return c.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-8",children:[c.jsxs("div",{className:"flex items-center justify-between mb-6",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(z3,{className:"text-bloom",size:22}),c.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"My Account"})]}),c.jsxs("button",{onClick:l,className:"flex items-center gap-1.5 text-sm text-gray-500 hover:text-bloom",children:[c.jsx(M3,{size:16})," Log Out"]})]}),c.jsxs("div",{className:`rounded-2xl bg-gradient-to-r ${_E[s]||_E.BASIC} text-white p-6 mb-5`,children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-xs uppercase tracking-widest text-white/70",children:"Membership Tier"}),c.jsxs("div",{className:"font-serif text-2xl font-bold flex items-center gap-2",children:[c.jsx(Lf,{size:24})," ",(a==null?void 0:a.tierName)||s]}),c.jsxs("div",{className:"text-sm text-white/85 mt-1",children:["Spent in last 12 months ",Ae(a==null?void 0:a.spend12m)," · ",(a==null?void 0:a.orderCount12m)||0," orders"]})]}),c.jsxs("div",{className:"text-right",children:[c.jsx("div",{className:"text-xs text-white/70",children:"Points Balance"}),c.jsxs("div",{className:"text-3xl font-bold",children:[((a==null?void 0:a.pointBalance)||0).toLocaleString(),c.jsx("span",{className:"text-base",children:"P"})]})]})]}),o&&!o.isTop&&c.jsxs("div",{className:"mt-4 text-xs text-white/85 bg-white/15 rounded-lg px-3 py-2",children:["Spend ",Ae(o.spendNeeded)," more or place ",o.ordersNeeded," more orders to reach ",c.jsx("b",{children:o.nextTierName}),"."]})]}),(a==null?void 0:a.benefit)&&c.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 mb-5",children:[c.jsxs("div",{className:"text-sm font-semibold mb-3 flex items-center gap-2",children:[c.jsx(_3,{size:16,className:"text-bloom"})," My Tier Benefits"]}),c.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 text-sm",children:[c.jsx(kh,{label:"Discount",value:`${a.benefit.discountRate}%`}),c.jsx(kh,{label:"Earn Rate",value:`${a.benefit.pointEarnRate}%`}),c.jsx(kh,{label:"Free Shipping",value:a.benefit.freeShipThreshold===0?"Always":a.benefit.freeShipThreshold?Ae(a.benefit.freeShipThreshold)+"+":"None"}),c.jsx(kh,{label:"Priority Slot",value:a.benefit.prioritySlot?"Included":"–"})]})]}),c.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-6",children:[c.jsx(bb,{to:"/orders",icon:R3,label:"Order History"}),c.jsx(bb,{to:"/wishlist",icon:zf,label:"Wishlist"}),c.jsx(bb,{to:"/subscription",icon:ag,label:"Manage Subscription"})]}),c.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-5",children:[c.jsxs("div",{className:"text-sm font-semibold mb-3 flex items-center gap-2",children:[c.jsx(O3,{size:16,className:"text-bloom"})," Points Earned / Used History"]}),c.jsxs("div",{className:"divide-y divide-blush-100/60",children:[(i||[]).map(u=>c.jsxs("div",{className:"flex items-center justify-between py-2 text-sm",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-gray-700",children:u.reason||u.entryType}),u.orderNo&&c.jsx("span",{className:"text-xs text-gray-400 ml-2",children:u.orderNo}),c.jsx("div",{className:"text-[11px] text-gray-400",children:(u.createdAt||"").slice(0,10)})]}),c.jsxs("span",{className:u.points>=0?"text-leaf font-semibold":"text-blush-500 font-semibold",children:[u.points>=0?"+":"",u.points,"P"]})]},u.id)),!(i||[]).length&&c.jsx("div",{className:"text-gray-400 text-sm py-6 text-center",children:"No points history yet."})]})]}),(r==null?void 0:r.username)&&c.jsx("div",{className:"text-center text-xs text-gray-400 mt-6",children:r.displayName||r.username})]})}function kh({label:e,value:t}){return c.jsxs("div",{className:"bg-petal rounded-xl p-3 text-center",children:[c.jsx("div",{className:"text-[11px] text-gray-500",children:e}),c.jsx("div",{className:"font-bold text-bloom2",children:t})]})}function bb({to:e,icon:t,label:n}){return c.jsxs(Le,{to:e,className:"bg-white rounded-2xl border border-blush-100/60 p-4 flex flex-col items-center gap-1.5 hover:border-bloom",children:[c.jsx(t,{size:22,className:"text-bloom"}),c.jsx("span",{className:"text-sm",children:n})]})}function aQ(){const e=Gt(),t=Yt(),{custToken:n}=Sn(),{data:r}=se({queryKey:["my-orders"],queryFn:()=>bW(""),enabled:!!n});if(!n)return t("/account"),null;const a=r||[],i=async(s,o)=>{await y5(s,o).catch(()=>{}),e.invalidateQueries({queryKey:["my-orders"]})};return c.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-8",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[c.jsx(R3,{className:"text-bloom",size:22}),c.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"주문 내역"})]}),a.length?c.jsx("div",{className:"space-y-3",children:a.map(s=>c.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-5",children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsx("div",{className:"font-semibold text-sm",children:s.orderNo||`주문 #${s.id}`}),c.jsx(jr,{status:s.status})]}),c.jsxs("div",{className:"text-xs text-gray-500 mb-3",children:[(s.createdAt||"").slice(0,16).replace("T"," ")," · ",s.fulfillmentType==="PICKUP"?"매장 픽업":"배송"," · ",s.scheduledDate," ",s.slotLabel]}),c.jsx("div",{className:"space-y-1.5",children:(s.items||[]).map(o=>c.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[c.jsx("div",{className:"w-9 h-9 bg-petal rounded-lg flex items-center justify-center",children:c.jsx(pt,{className:"text-bloom/40",size:16})}),c.jsxs("span",{className:"flex-1",children:[o.productName||`상품 #${o.productId}`," ",o.sizeCode&&`· ${o.sizeCode}`," ×",o.quantity]}),c.jsx("span",{className:"text-gray-600",children:Ae(o.price||o.unitPrice)})]},o.id))}),c.jsxs("div",{className:"flex items-center justify-between mt-3 pt-3 border-t border-blush-100/60",children:[c.jsx("span",{className:"font-bold text-bloom2",children:Ae(s.payAmount??s.totalAmount)}),c.jsxs("div",{className:"flex gap-2",children:[s.status==="DELIVERED"&&c.jsx("button",{onClick:()=>i(s.id,"CONFIRMED"),className:"text-xs bg-bloom text-white px-3 py-1.5 rounded-full",children:"구매확정"}),["PENDING","PAID"].includes(s.status)&&c.jsx("button",{onClick:()=>i(s.id,"CANCELLED"),className:"text-xs border border-blush-100 text-blush-400 px-3 py-1.5 rounded-full",children:"주문취소"})]})]})]},s.id))}):c.jsxs("div",{className:"text-center text-gray-400 py-16",children:["주문 내역이 없습니다. ",c.jsx(Le,{to:"/category",className:"text-bloom",children:"쇼핑하기 →"})]})]})}function iQ(){const{productId:e}=Sk(),t=Number(e),n=Yt(),{custToken:r}=Sn(),[a,i]=A.useState(5),[s,o]=A.useState(""),[l,u]=A.useState(""),[f,d]=A.useState(""),[h,p]=A.useState("");if(!r)return n("/account"),null;const m=async g=>{g.preventDefault(),p("");try{await MW({productId:t,rating:a,title:s,content:l,imageUrl:f}),p("리뷰가 등록되었습니다."),setTimeout(()=>n(`/product/${t}`),800)}catch{p("등록에 실패했습니다. (구매 이력이 필요할 수 있습니다)")}};return c.jsxs("div",{className:"max-w-lg mx-auto px-4 py-8",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[c.jsx(JK,{className:"text-bloom",size:22}),c.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"리뷰 작성"})]}),c.jsxs("form",{onSubmit:m,className:"bg-white rounded-2xl border border-blush-100/60 p-5 space-y-4",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-sm font-medium mb-2",children:"별점"}),c.jsx("div",{className:"flex gap-1",children:[1,2,3,4,5].map(g=>c.jsx("button",{type:"button",onClick:()=>i(g),className:"text-amber-400",children:c.jsx(Ja,{size:28,fill:g<=a?"currentColor":"none"})},g))})]}),c.jsx("input",{value:s,onChange:g=>o(g.target.value),placeholder:"제목",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),c.jsx("textarea",{value:l,onChange:g=>u(g.target.value),rows:5,required:!0,placeholder:"상품은 어떠셨나요? 신선도, 배송, 디자인 등을 적어주세요.",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),c.jsx("input",{value:f,onChange:g=>d(g.target.value),placeholder:"사진 URL (선택)",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),h&&c.jsx("div",{className:"text-sm text-leaf",children:h}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{className:"flex-1 bg-bloom text-white font-semibold py-3 rounded-full hover:bg-bloom2",children:"등록"}),c.jsx("button",{type:"button",onClick:()=>n(-1),className:"px-6 border border-blush-100 rounded-full text-gray-600",children:"취소"})]})]})]})}function sQ(){const[e,t]=A.useState("login"),[n,r]=A.useState(""),[a,i]=A.useState(""),[s,o]=A.useState(""),[l,u]=A.useState(""),[f,d]=A.useState(!1),{setCustToken:h}=Sn(),p=Yt(),m=async g=>{var v,y;g.preventDefault(),u(""),d(!0);try{const x=(y=(v=(e==="login"?await f5(n,a):await nW(n,a,s||n)).data)==null?void 0:v.data)==null?void 0:y.token;if(!x)throw new Error("no token");h(x),p("/home")}catch{u(e==="login"?"Login failed — check your username and password.":"Sign-up failed — that username may already be taken.")}finally{d(!1)}};return c.jsxs("div",{className:"relative min-h-screen bg-gradient-to-br from-blush-100 via-cream to-sage-100 flex items-center justify-center px-4 overflow-hidden",children:[c.jsx(Qd,{count:12}),c.jsxs(Ct.form,{onSubmit:m,initial:{opacity:0,y:22},animate:{opacity:1,y:0},transition:{duration:.7,ease:[.22,1,.36,1]},className:"relative z-10 w-full max-w-sm bg-white/90 backdrop-blur rounded-4xl shadow-bloom p-8 border border-blush-100",children:[c.jsxs(Le,{to:"/home",className:"flex flex-col items-center gap-1 mb-6",children:[c.jsx(pt,{className:"text-blush-500",size:32}),c.jsx("span",{className:"font-serif text-xl font-bold text-blush-900",children:"Montvale Florist"})]}),c.jsx("div",{className:"flex gap-2 mb-6 bg-blush-50 rounded-full p-1 text-sm",children:["login","register"].map(g=>c.jsx("button",{type:"button",onClick:()=>{t(g),u("")},className:`flex-1 py-2 rounded-full font-medium transition-colors ${e===g?"bg-blush-500 text-white shadow-petal":"text-blush-700"}`,children:g==="login"?"Sign In":"Create Account"},g))}),c.jsx("label",{className:"block text-xs text-blush-700 mb-1",children:"Username"}),c.jsx("input",{value:n,onChange:g=>r(g.target.value),required:!0,className:"w-full mb-3 px-3 py-2.5 rounded-2xl bg-blush-50 border border-blush-100 text-sm outline-none focus:border-blush-400"}),e==="register"&&c.jsxs(c.Fragment,{children:[c.jsx("label",{className:"block text-xs text-blush-700 mb-1",children:"Name"}),c.jsx("input",{value:s,onChange:g=>o(g.target.value),className:"w-full mb-3 px-3 py-2.5 rounded-2xl bg-blush-50 border border-blush-100 text-sm outline-none focus:border-blush-400"})]}),c.jsx("label",{className:"block text-xs text-blush-700 mb-1",children:"Password"}),c.jsx("input",{type:"password",value:a,onChange:g=>i(g.target.value),required:!0,className:"w-full mb-4 px-3 py-2.5 rounded-2xl bg-blush-50 border border-blush-100 text-sm outline-none focus:border-blush-400"}),l&&c.jsx("p",{className:"text-blush-500 text-xs mb-3",children:l}),c.jsx(Ha,{type:"submit",disabled:f,className:"w-full py-2.5 rounded-full bg-blush-500 text-white font-semibold hover:bg-blush-600 disabled:opacity-60",children:f?"Please wait…":e==="login"?"Sign In":"Create Account"}),c.jsxs("p",{className:"text-center text-[11px] text-[#a08a90] mt-4",children:["Store & owner staff → ",c.jsx("a",{href:"/admin/login",className:"text-blush-600",children:"Admin Console"})]}),c.jsx("p",{className:"text-center text-[11px] text-sage-600 mt-2",children:$e.tagline})]})]})}const oQ=["DELIVERY","PRODUCT","PAYMENT","REFUND","OTHER"];function lQ(){const e=Gt(),t=Yt(),{custToken:n}=Sn(),[r,a]=A.useState("DELIVERY"),[i,s]=A.useState(""),[o,l]=A.useState(""),[u,f]=A.useState(""),[d,h]=A.useState(""),[p,m]=A.useState("Birthday"),[g,v]=A.useState("Warm"),[y,b]=A.useState(""),[x,w]=A.useState([]),{data:S}=se({queryKey:["cs"],queryFn:kW,enabled:!!n}),j=async N=>{if(N.preventDefault(),h(""),!n){t("/account");return}try{const E=await $W({orderNo:i,category:r,subject:o,content:u});h(E!=null&&E.aiReply?`AI auto-reply: ${E.aiReply}`:"Your request has been submitted."),l(""),f(""),e.invalidateQueries({queryKey:["cs"]})}catch{h("Failed to submit your request.")}},O=async()=>{const N=await qW(p,g,y).catch(()=>null);w((N==null?void 0:N.messages)||[])};return c.jsxs("div",{className:"max-w-3xl mx-auto px-4 py-8",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[c.jsx(YK,{className:"text-bloom",size:22}),c.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"Customer Support (1:1)"})]}),c.jsxs("div",{className:"bg-petal rounded-2xl p-5 mb-6",children:[c.jsxs("div",{className:"flex items-center gap-2 text-bloom2 font-medium text-sm mb-3",children:[c.jsx(wr,{size:16})," AI Card Message Helper"]}),c.jsxs("div",{className:"grid grid-cols-3 gap-2 mb-3",children:[c.jsx("input",{value:p,onChange:N=>m(N.target.value),placeholder:"Occasion (e.g. Birthday)",className:"px-3 py-2 rounded-lg border border-blush-100 text-sm bg-white outline-none"}),c.jsx("input",{value:g,onChange:N=>v(N.target.value),placeholder:"Tone",className:"px-3 py-2 rounded-lg border border-blush-100 text-sm bg-white outline-none"}),c.jsx("input",{value:y,onChange:N=>b(N.target.value),placeholder:"Recipient",className:"px-3 py-2 rounded-lg border border-blush-100 text-sm bg-white outline-none"})]}),c.jsx("button",{onClick:O,className:"bg-bloom text-white text-sm font-semibold px-4 py-2 rounded-full",children:"Suggest Messages"}),!!x.length&&c.jsx("ul",{className:"mt-3 space-y-2",children:x.map((N,E)=>c.jsx("li",{className:"bg-white rounded-lg px-3 py-2 text-sm text-gray-700",children:N},E))})]}),c.jsxs("form",{onSubmit:j,className:"bg-white rounded-2xl border border-blush-100/60 p-5 space-y-3 mb-8",children:[c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsx("select",{value:r,onChange:N=>a(N.target.value),className:"px-3 py-2 rounded-xl border border-blush-100 text-sm bg-white",children:oQ.map(N=>c.jsx("option",{value:N,children:N},N))}),c.jsx("input",{value:i,onChange:N=>s(N.target.value),placeholder:"Order number (optional)",className:"px-3 py-2 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"})]}),c.jsx("input",{value:o,onChange:N=>l(N.target.value),required:!0,placeholder:"Subject",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),c.jsx("textarea",{value:u,onChange:N=>f(N.target.value),rows:4,required:!0,placeholder:"Tell us how we can help. Our AI will try to answer first.",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),d&&c.jsx("div",{className:"text-sm text-leaf bg-leaf/10 rounded-lg px-3 py-2",children:d}),c.jsxs("button",{className:"flex items-center gap-1.5 bg-bloom text-white font-semibold px-6 py-2.5 rounded-full hover:bg-bloom2",children:[c.jsx(aG,{size:16})," Submit Request"]}),!n&&c.jsxs("p",{className:"text-xs text-gray-400",children:["Please log in to submit a request. ",c.jsx(Le,{to:"/account",className:"text-bloom",children:"Log In"})]})]}),c.jsx("h2",{className:"font-serif text-lg font-bold mb-3",children:"My Requests"}),c.jsxs("div",{className:"space-y-2",children:[(S||[]).map(N=>c.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("span",{className:"font-medium text-sm",children:N.subject}),c.jsx(jr,{status:N.status})]}),c.jsx("p",{className:"text-sm text-gray-600 mt-1",children:N.content}),N.aiReply&&c.jsxs("div",{className:"mt-2 text-xs text-bloom2 bg-petal rounded-lg px-3 py-2",children:[c.jsx("b",{children:"AI Reply:"})," ",N.aiReply]}),N.itsmSrId&&c.jsxs("div",{className:"text-[11px] text-gray-400 mt-1",children:["ITSM SR: ",N.itsmSrId]})]},N.id)),!(S||[]).length&&c.jsx("div",{className:"text-gray-400 text-sm py-6 text-center",children:"No requests submitted yet."})]})]})}const N5="https://itsm.zioinfo.co.kr",xb=e=>e==null?void 0:e.replace(/https?:\/\/zioinfo\.co\.kr:8443/g,N5);function cQ(){const[e,t]=A.useState(null),[n,r]=A.useState(!0),[a,i]=A.useState(""),[s,o]=A.useState(!1),l=()=>{r(!0),i(""),fetch(`${N5}/api/app/public-latest`).then(f=>f.json()).then(f=>t({...f,qr_url:xb(f.qr_url),landing_url:xb(f.landing_url),download_url:xb(f.download_url)})).catch(()=>i("Unable to connect to the app store. Please try again in a moment.")).finally(()=>r(!1))};A.useEffect(()=>{l()},[]);const u=async()=>{if(e!=null&&e.landing_url)try{await navigator.clipboard.writeText(e.landing_url),o(!0),setTimeout(()=>o(!1),2e3)}catch{}};return c.jsxs("div",{className:"max-w-3xl mx-auto px-4 py-10",children:[c.jsxs("div",{className:"text-center mb-8",children:[c.jsxs("div",{className:"flex items-center gap-2 justify-center mb-2",children:[c.jsx(wl,{className:"text-bloom",size:26}),c.jsx("h1",{className:"font-serif text-2xl font-bold text-bloom2",children:"Order with the App"})]}),c.jsxs("p",{className:"text-sm text-gray-500",children:["Scan the QR code to open the ",c.jsx("span",{className:"text-bloom font-semibold",children:"GUARDiA Mall"})," customer app install page.",c.jsx("br",{}),"Enjoy same-day delivery alerts, easy reordering, and subscription management right in the app."]})]}),n&&c.jsx("div",{className:"text-center text-gray-400 py-10",children:"Loading…"}),a&&c.jsx("div",{className:"bg-petal border border-blush-100 rounded-2xl p-6 text-center text-blush-500 text-sm",children:a}),!n&&!a&&e&&!e.has_version&&c.jsxs("div",{className:"bg-white border border-blush-100/60 rounded-2xl p-10 text-center text-gray-400",children:[c.jsx(pt,{size:40,className:"mx-auto mb-3 text-bloom/30"}),"No app version has been published yet.",c.jsx("br",{}),c.jsx("span",{className:"text-xs",children:"App uploads and version management are handled in GUARDiA Manager."})]}),!n&&!a&&(e==null?void 0:e.has_version)&&c.jsxs("div",{className:"bg-white border border-blush-100/60 rounded-2xl p-6 grid md:grid-cols-[200px_1fr] gap-6 items-start shadow-sm",children:[c.jsx("div",{className:"bg-petal rounded-2xl p-3 flex items-center justify-center",children:e.qr_url?c.jsx("img",{src:e.qr_url,alt:"App install QR code",className:"w-44 h-44"}):c.jsx(wl,{size:64,className:"text-bloom/40"})}),c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx("span",{className:"text-lg font-bold",children:e.app_name||"GUARDiA Mall"}),c.jsxs("span",{className:"px-2 py-0.5 rounded-md bg-bloom text-white text-xs font-semibold",children:["v",e.version]})]}),c.jsxs("div",{className:"text-xs text-gray-500 mb-4",children:[e.platform," ",e.file_size_mb?`· ${e.file_size_mb}MB`:"",e.download_count!=null&&` · ${e.download_count} downloads`]}),e.release_notes&&c.jsxs("div",{className:"mb-4",children:[c.jsx("div",{className:"text-[11px] font-semibold text-gray-400 uppercase tracking-wider mb-1",children:"What's New"}),c.jsx("div",{className:"text-sm text-gray-600 whitespace-pre-line bg-petal rounded-lg p-3 max-h-32 overflow-auto",children:e.release_notes})]}),c.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.landing_url&&c.jsxs("a",{href:e.landing_url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 px-4 py-2 rounded-full bg-bloom text-white text-sm font-semibold hover:bg-bloom2",children:[c.jsx(T3,{size:15})," Install Page"]}),e.download_url&&c.jsxs("a",{href:e.download_url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 px-4 py-2 rounded-full border border-blush-100 text-bloom2 text-sm hover:bg-petal",children:[c.jsx(E3,{size:15})," Download APK"]}),c.jsxs("button",{onClick:u,className:"flex items-center gap-1.5 px-4 py-2 rounded-full border border-blush-100 text-bloom2 text-sm hover:bg-petal",children:[s?c.jsx(j3,{size:15,className:"text-leaf"}):c.jsx(N3,{size:15}),s?"Copied":"Copy Link"]}),c.jsx("button",{onClick:l,className:"flex items-center gap-1.5 px-3 py-2 rounded-full border border-blush-100 text-gray-500 text-sm hover:bg-petal",children:c.jsx(dj,{size:15})})]})]})]})]})}const uQ=(e,t)=>H.post("/api/mall/auth/verify",{verifyToken:e,code:t}),fQ=e=>H.post("/api/messages",e),dQ=e=>H.get("/api/messages/sent",{params:e}),hQ=e=>H.get(`/api/messages/sent/${e}`),pQ=e=>H.get("/api/messages/received",{params:e}),mQ=e=>H.get(`/api/messages/received/${e}`),yQ=e=>H.get("/api/schedules",{params:e}),gQ=e=>H.post("/api/schedules",e),vQ=e=>H.get(`/api/schedules/${e}`),bQ=e=>H.delete(`/api/schedules/${e}`),xQ=e=>H.get("/api/worklogs",{params:e}),SQ=e=>H.get("/api/worklogs/dashboard/progress",{params:e}),wQ=e=>H.post("/api/worklogs",e),jQ=e=>H.get(`/api/worklogs/${e}`),AQ=e=>H.delete(`/api/worklogs/${e}`),OQ=(e,t)=>H.post(`/api/worklogs/${e}/comments`,{cmtContent:t}),NQ=e=>H.get("/api/stats/personal-work",{params:e}),EQ=e=>H.get("/api/stats/company-work",{params:e});function TQ(){const{t:e}=ii(),[t,n]=A.useState("admin"),[r,a]=A.useState(""),[i,s]=A.useState(""),[o,l]=A.useState("login"),[u,f]=A.useState(""),[d,h]=A.useState(""),[p,m]=A.useState(""),g=Yt();A.useEffect(()=>(document.documentElement.classList.add("admin-shell"),()=>document.documentElement.classList.remove("admin-shell")),[]);const v=async x=>{localStorage.setItem("mall_admin_token",x);const w=await d5().catch(()=>null);if(w!=null&&w.role&&localStorage.setItem("mall_role",w.role),w!=null&&w.username&&localStorage.setItem("mall_admin_user",w.username),(w==null?void 0:w.role)==="USER"){s(e("admin.login.errNoPriv")),localStorage.removeItem("mall_admin_token");return}g("/admin/dashboard")},y=async x=>{var w;x.preventDefault(),s("");try{const j=((w=(await f5(t,r)).data)==null?void 0:w.data)||{};if(j.twofa==="true"){f(j.verifyToken||""),h(j.maskedEmail||""),l("verify");return}const O=j.token;if(!O)throw new Error("no token");await v(O)}catch{s(e("admin.login.errFailed"))}},b=async x=>{var w,S;x.preventDefault(),s("");try{const O=(S=(w=(await uQ(u,p.trim())).data)==null?void 0:w.data)==null?void 0:S.token;if(!O)throw new Error("no token");await v(O)}catch{s("인증 코드가 올바르지 않거나 만료되었습니다. (Invalid or expired code)")}};return c.jsxs("div",{className:"admin-shell min-h-screen flex items-center justify-center bg-ink text-[#e6edf6]",children:[c.jsx("div",{className:"absolute top-5 right-5",children:c.jsx(dg,{variant:"admin"})}),o==="login"?c.jsxs("form",{onSubmit:y,className:"w-[360px] bg-panel border border-edge rounded-2xl p-8",children:[c.jsxs("div",{className:"flex items-center gap-2 justify-center mb-6",children:[c.jsx("img",{src:"/login.png",alt:"GUARDiA",style:{height:36,width:"auto"},onError:x=>{x.target.style.display="none"}}),c.jsx("span",{className:"text-xl font-bold",children:e("admin.login.title")})]}),c.jsx("p",{className:"text-center text-sm text-slate-400 mb-6",children:e("admin.login.subtitle")}),c.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:e("admin.login.username")}),c.jsx("input",{value:t,onChange:x=>n(x.target.value),className:"w-full mb-4 px-3 py-2 rounded-lg bg-card border border-edge text-sm focus:border-brand outline-none"}),c.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:e("admin.login.password")}),c.jsx("input",{type:"password",value:r,onChange:x=>a(x.target.value),className:"w-full mb-4 px-3 py-2 rounded-lg bg-card border border-edge text-sm focus:border-brand outline-none"}),i&&c.jsx("p",{className:"text-rose-400 text-xs mb-3",children:i}),c.jsx("button",{className:"w-full py-2.5 rounded-lg bg-brand text-ink font-semibold hover:bg-brand/90",children:e("admin.login.signIn")}),c.jsxs("p",{className:"text-center text-[11px] text-slate-500 mt-4",children:[e("admin.login.storefrontHere")," ",c.jsx("a",{href:"/",className:"text-brand",children:e("admin.login.here")})]})]}):c.jsxs("form",{onSubmit:b,className:"w-[360px] bg-panel border border-edge rounded-2xl p-8",children:[c.jsx("div",{className:"flex items-center gap-2 justify-center mb-4",children:c.jsx("span",{className:"text-xl font-bold",children:"2차 인증 / 2FA"})}),c.jsx("p",{className:"text-center text-sm text-slate-400 mb-2",children:"운영 계정 보안을 위한 2차 인증입니다."}),c.jsxs("p",{className:"text-center text-[12px] text-slate-500 mb-6",children:["인증 코드를 ",d||"등록된 이메일"," 로 보냈습니다."]}),c.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:"인증 코드 (6자리)"}),c.jsx("input",{value:p,onChange:x=>m(x.target.value),inputMode:"numeric",maxLength:6,autoFocus:!0,className:"w-full mb-4 px-3 py-2 rounded-lg bg-card border border-edge text-sm tracking-[0.4em] text-center focus:border-brand outline-none"}),i&&c.jsx("p",{className:"text-rose-400 text-xs mb-3",children:i}),c.jsx("button",{className:"w-full py-2.5 rounded-lg bg-brand text-ink font-semibold hover:bg-brand/90",children:"확인 / Verify"}),c.jsx("button",{type:"button",onClick:()=>{l("login"),m(""),s("")},className:"w-full py-2 mt-2 rounded-lg text-slate-400 text-xs hover:text-brand",children:"← 돌아가기 / Back"})]})]})}const CQ=[{to:"/admin/dashboard",key:"dashboard",icon:WK,roles:["ADMIN","MANAGER"]},{to:"/admin/stores",key:"stores",icon:qd,roles:["ADMIN","MANAGER"]},{to:"/admin/products",key:"products",icon:pt,roles:["ADMIN","MANAGER"]},{to:"/admin/inventory",key:"inventory",icon:x3,roles:["ADMIN","MANAGER"]},{to:"/admin/orders",key:"orders",icon:pj,roles:["ADMIN","MANAGER"]},{to:"/admin/transfers",key:"transfers",icon:b3,roles:["ADMIN","MANAGER"]},{to:"/admin/members",key:"members",icon:I3,roles:["ADMIN","MANAGER"]},{to:"/admin/loyalty",key:"loyalty",icon:Lf,roles:["ADMIN","MANAGER"]},{to:"/admin/events",key:"events",icon:If,roles:["ADMIN","MANAGER"]},{to:"/admin/subscriptions",key:"subscriptions",icon:ag,roles:["ADMIN","MANAGER"]},{to:"/admin/schedule",key:"schedule",icon:S3,roles:["ADMIN","MANAGER"]},{to:"/admin/analytics",key:"analytics",icon:uj,roles:["ADMIN","MANAGER"]}],_Q=[{to:"/admin/users",key:"users",icon:L3,roles:["ADMIN"]},{to:"/admin/audit",key:"audit",icon:k3,roles:["ADMIN","MANAGER"]},{to:"/admin/settings",key:"settings",icon:$3,roles:["ADMIN"]},{to:"/admin/app",key:"appInstall",icon:wl,roles:["ADMIN","MANAGER"]}],PQ=[{to:"/admin/uiws/worklog",label:"업무일지 Worklog",icon:HK,roles:["ADMIN","MANAGER"]},{to:"/admin/uiws/schedule",label:"일정 Schedule",icon:w3,roles:["ADMIN","MANAGER"]},{to:"/admin/uiws/message",label:"쪽지 Message",icon:XK,roles:["ADMIN","MANAGER"]},{to:"/admin/uiws/stats",label:"업무통계 Stats",icon:eG,roles:["ADMIN","MANAGER"]}],Sb=({isActive:e})=>`flex items-center gap-3 px-5 py-2.5 text-sm transition-colors ${e?"bg-card text-brand border-r-2 border-brand":"text-slate-300 hover:bg-card/60"}`;function MQ(){const{t:e}=ii(),t=localStorage.getItem("mall_admin_token"),[n,r]=A.useState(()=>localStorage.getItem("mall_role")||""),[a,i]=A.useState(()=>localStorage.getItem("mall_admin_user")||""),s=Yt();if(A.useEffect(()=>(document.documentElement.classList.add("admin-shell"),()=>document.documentElement.classList.remove("admin-shell")),[]),A.useEffect(()=>{t&&d5().then(d=>{d!=null&&d.role&&(localStorage.setItem("mall_role",d.role),r(d.role)),d!=null&&d.username&&(localStorage.setItem("mall_admin_user",d.username),i(d.username))}).catch(()=>{})},[t]),!t)return c.jsx(om,{to:"/admin/login",replace:!0});if(n&&n==="USER")return c.jsx(om,{to:"/admin/login",replace:!0});const o=CQ.filter(d=>!n||d.roles.includes(n)),l=_Q.filter(d=>d.roles.includes(n)),u=PQ.filter(d=>!n||d.roles.includes(n)),f=()=>{localStorage.removeItem("mall_admin_token"),localStorage.removeItem("mall_role"),localStorage.removeItem("mall_admin_user"),s("/admin/login")};return c.jsxs("div",{className:"admin-shell flex h-screen bg-ink text-[#e6edf6]",children:[c.jsxs("aside",{className:"w-60 bg-panel border-r border-edge flex flex-col",children:[c.jsxs("div",{className:"h-16 flex items-center gap-2 px-5 border-b border-edge",children:[c.jsx(pt,{className:"text-brand",size:22}),c.jsxs("div",{children:[c.jsx("div",{className:"font-bold text-base leading-tight",children:"GUARDiA Mall"}),c.jsx("div",{className:"text-[11px] text-slate-400",children:e("admin.console")})]})]}),c.jsxs("nav",{className:"flex-1 py-2 overflow-auto",children:[o.map(({to:d,key:h,icon:p})=>c.jsxs(vp,{to:d,className:Sb,children:[c.jsx(p,{size:18}),e(`admin.nav.${h}`)]},d)),l.length>0&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"px-5 pt-4 pb-1.5 text-[10px] font-semibold tracking-wider text-slate-500 uppercase border-t border-edge mt-3",children:e("admin.system")}),l.map(({to:d,key:h,icon:p})=>c.jsxs(vp,{to:d,className:Sb,children:[c.jsx(p,{size:18}),e(`admin.nav.${h}`)]},d))]}),u.length>0&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"px-5 pt-4 pb-1.5 text-[10px] font-semibold tracking-wider text-slate-500 uppercase border-t border-edge mt-3",children:"업무 (UIWS)"}),u.map(({to:d,label:h,icon:p})=>c.jsxs(vp,{to:d,className:Sb,children:[c.jsx(p,{size:18}),h]},d))]})]}),c.jsx("div",{className:"p-4 text-[11px] text-slate-500 border-t border-edge",children:e("admin.onPremiseTag")})]}),c.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[c.jsxs("header",{className:"h-16 bg-panel border-b border-edge flex items-center justify-between px-6",children:[c.jsx("div",{className:"text-sm text-slate-400 truncate",children:e("admin.header")}),c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx(dg,{variant:"admin"}),c.jsxs("span",{className:"flex items-center gap-1.5 text-sm text-slate-300",children:[c.jsx(VK,{size:18})," ",a||"admin"," ",c.jsx("span",{className:"text-[10px] text-brand",children:n})]}),c.jsxs("button",{onClick:f,className:"flex items-center gap-1.5 text-sm text-slate-400 hover:text-brand",children:[c.jsx(M3,{size:16})," ",e("admin.signOut")]})]})]}),c.jsx("main",{className:"flex-1 overflow-auto p-6",children:c.jsx(Ok,{})})]})]})}function E5(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=E5(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function be(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=E5(e))&&(r&&(r+=" "),r+=t);return r}var RQ=Array.isArray,Dn=RQ,DQ=typeof ch=="object"&&ch&&ch.Object===Object&&ch,T5=DQ,kQ=T5,$Q=typeof self=="object"&&self&&self.Object===Object&&self,LQ=kQ||$Q||Function("return this")(),ma=LQ,zQ=ma,IQ=zQ.Symbol,Zd=IQ,PE=Zd,C5=Object.prototype,BQ=C5.hasOwnProperty,UQ=C5.toString,gu=PE?PE.toStringTag:void 0;function FQ(e){var t=BQ.call(e,gu),n=e[gu];try{e[gu]=void 0;var r=!0}catch{}var a=UQ.call(e);return r&&(t?e[gu]=n:delete e[gu]),a}var VQ=FQ,HQ=Object.prototype,qQ=HQ.toString;function KQ(e){return qQ.call(e)}var GQ=KQ,ME=Zd,YQ=VQ,WQ=GQ,XQ="[object Null]",QQ="[object Undefined]",RE=ME?ME.toStringTag:void 0;function ZQ(e){return e==null?e===void 0?QQ:XQ:RE&&RE in Object(e)?YQ(e):WQ(e)}var si=ZQ;function JQ(e){return e!=null&&typeof e=="object"}var oi=JQ,eZ=si,tZ=oi,nZ="[object Symbol]";function rZ(e){return typeof e=="symbol"||tZ(e)&&eZ(e)==nZ}var Hc=rZ,aZ=Dn,iZ=Hc,sZ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oZ=/^\w*$/;function lZ(e,t){if(aZ(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||iZ(e)?!0:oZ.test(e)||!sZ.test(e)||t!=null&&e in Object(t)}var Aj=lZ;function cZ(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ss=cZ;const qc=Ie(ss);var uZ=si,fZ=ss,dZ="[object AsyncFunction]",hZ="[object Function]",pZ="[object GeneratorFunction]",mZ="[object Proxy]";function yZ(e){if(!fZ(e))return!1;var t=uZ(e);return t==hZ||t==pZ||t==dZ||t==mZ}var Oj=yZ;const de=Ie(Oj);var gZ=ma,vZ=gZ["__core-js_shared__"],bZ=vZ,wb=bZ,DE=function(){var e=/[^.]+$/.exec(wb&&wb.keys&&wb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function xZ(e){return!!DE&&DE in e}var SZ=xZ,wZ=Function.prototype,jZ=wZ.toString;function AZ(e){if(e!=null){try{return jZ.call(e)}catch{}try{return e+""}catch{}}return""}var _5=AZ,OZ=Oj,NZ=SZ,EZ=ss,TZ=_5,CZ=/[\\^$.*+?()[\]{}|]/g,_Z=/^\[object .+?Constructor\]$/,PZ=Function.prototype,MZ=Object.prototype,RZ=PZ.toString,DZ=MZ.hasOwnProperty,kZ=RegExp("^"+RZ.call(DZ).replace(CZ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $Z(e){if(!EZ(e)||NZ(e))return!1;var t=OZ(e)?kZ:_Z;return t.test(TZ(e))}var LZ=$Z;function zZ(e,t){return e==null?void 0:e[t]}var IZ=zZ,BZ=LZ,UZ=IZ;function FZ(e,t){var n=UZ(e,t);return BZ(n)?n:void 0}var Oo=FZ,VZ=Oo,HZ=VZ(Object,"create"),hg=HZ,kE=hg;function qZ(){this.__data__=kE?kE(null):{},this.size=0}var KZ=qZ;function GZ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var YZ=GZ,WZ=hg,XZ="__lodash_hash_undefined__",QZ=Object.prototype,ZZ=QZ.hasOwnProperty;function JZ(e){var t=this.__data__;if(WZ){var n=t[e];return n===XZ?void 0:n}return ZZ.call(t,e)?t[e]:void 0}var eJ=JZ,tJ=hg,nJ=Object.prototype,rJ=nJ.hasOwnProperty;function aJ(e){var t=this.__data__;return tJ?t[e]!==void 0:rJ.call(t,e)}var iJ=aJ,sJ=hg,oJ="__lodash_hash_undefined__";function lJ(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=sJ&&t===void 0?oJ:t,this}var cJ=lJ,uJ=KZ,fJ=YZ,dJ=eJ,hJ=iJ,pJ=cJ;function Kc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Kc.prototype.clear=uJ;Kc.prototype.delete=fJ;Kc.prototype.get=dJ;Kc.prototype.has=hJ;Kc.prototype.set=pJ;var mJ=Kc;function yJ(){this.__data__=[],this.size=0}var gJ=yJ;function vJ(e,t){return e===t||e!==e&&t!==t}var Nj=vJ,bJ=Nj;function xJ(e,t){for(var n=e.length;n--;)if(bJ(e[n][0],t))return n;return-1}var pg=xJ,SJ=pg,wJ=Array.prototype,jJ=wJ.splice;function AJ(e){var t=this.__data__,n=SJ(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():jJ.call(t,n,1),--this.size,!0}var OJ=AJ,NJ=pg;function EJ(e){var t=this.__data__,n=NJ(t,e);return n<0?void 0:t[n][1]}var TJ=EJ,CJ=pg;function _J(e){return CJ(this.__data__,e)>-1}var PJ=_J,MJ=pg;function RJ(e,t){var n=this.__data__,r=MJ(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var DJ=RJ,kJ=gJ,$J=OJ,LJ=TJ,zJ=PJ,IJ=DJ;function Gc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Gc.prototype.clear=kJ;Gc.prototype.delete=$J;Gc.prototype.get=LJ;Gc.prototype.has=zJ;Gc.prototype.set=IJ;var mg=Gc,BJ=Oo,UJ=ma,FJ=BJ(UJ,"Map"),Ej=FJ,$E=mJ,VJ=mg,HJ=Ej;function qJ(){this.size=0,this.__data__={hash:new $E,map:new(HJ||VJ),string:new $E}}var KJ=qJ;function GJ(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var YJ=GJ,WJ=YJ;function XJ(e,t){var n=e.__data__;return WJ(t)?n[typeof t=="string"?"string":"hash"]:n.map}var yg=XJ,QJ=yg;function ZJ(e){var t=QJ(this,e).delete(e);return this.size-=t?1:0,t}var JJ=ZJ,eee=yg;function tee(e){return eee(this,e).get(e)}var nee=tee,ree=yg;function aee(e){return ree(this,e).has(e)}var iee=aee,see=yg;function oee(e,t){var n=see(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var lee=oee,cee=KJ,uee=JJ,fee=nee,dee=iee,hee=lee;function Yc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Yc.prototype.clear=cee;Yc.prototype.delete=uee;Yc.prototype.get=fee;Yc.prototype.has=dee;Yc.prototype.set=hee;var Tj=Yc,P5=Tj,pee="Expected a function";function Cj(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(pee);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var s=e.apply(this,r);return n.cache=i.set(a,s)||i,s};return n.cache=new(Cj.Cache||P5),n}Cj.Cache=P5;var M5=Cj;const mee=Ie(M5);var yee=M5,gee=500;function vee(e){var t=yee(e,function(r){return n.size===gee&&n.clear(),r}),n=t.cache;return t}var bee=vee,xee=bee,See=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wee=/\\(\\)?/g,jee=xee(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(See,function(n,r,a,i){t.push(a?i.replace(wee,"$1"):r||n)}),t}),Aee=jee;function Oee(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var _j=Oee,LE=Zd,Nee=_j,Eee=Dn,Tee=Hc,zE=LE?LE.prototype:void 0,IE=zE?zE.toString:void 0;function R5(e){if(typeof e=="string")return e;if(Eee(e))return Nee(e,R5)+"";if(Tee(e))return IE?IE.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Cee=R5,_ee=Cee;function Pee(e){return e==null?"":_ee(e)}var D5=Pee,Mee=Dn,Ree=Aj,Dee=Aee,kee=D5;function $ee(e,t){return Mee(e)?e:Ree(e,t)?[e]:Dee(kee(e))}var k5=$ee,Lee=Hc;function zee(e){if(typeof e=="string"||Lee(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var gg=zee,Iee=k5,Bee=gg;function Uee(e,t){t=Iee(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Bee(t[n++])];return n&&n==r?e:void 0}var Pj=Uee,Fee=Pj;function Vee(e,t,n){var r=e==null?void 0:Fee(e,t);return r===void 0?n:r}var $5=Vee;const Qn=Ie($5);function Hee(e){return e==null}var qee=Hee;const me=Ie(qee);var Kee=si,Gee=Dn,Yee=oi,Wee="[object String]";function Xee(e){return typeof e=="string"||!Gee(e)&&Yee(e)&&Kee(e)==Wee}var Qee=Xee;const uo=Ie(Qee);var L5={exports:{}},Ve={};/**
 * @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 Mj=Symbol.for("react.element"),Rj=Symbol.for("react.portal"),vg=Symbol.for("react.fragment"),bg=Symbol.for("react.strict_mode"),xg=Symbol.for("react.profiler"),Sg=Symbol.for("react.provider"),wg=Symbol.for("react.context"),Zee=Symbol.for("react.server_context"),jg=Symbol.for("react.forward_ref"),Ag=Symbol.for("react.suspense"),Og=Symbol.for("react.suspense_list"),Ng=Symbol.for("react.memo"),Eg=Symbol.for("react.lazy"),Jee=Symbol.for("react.offscreen"),z5;z5=Symbol.for("react.module.reference");function Er(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Mj:switch(e=e.type,e){case vg:case xg:case bg:case Ag:case Og:return e;default:switch(e=e&&e.$$typeof,e){case Zee:case wg:case jg:case Eg:case Ng:case Sg:return e;default:return t}}case Rj:return t}}}Ve.ContextConsumer=wg;Ve.ContextProvider=Sg;Ve.Element=Mj;Ve.ForwardRef=jg;Ve.Fragment=vg;Ve.Lazy=Eg;Ve.Memo=Ng;Ve.Portal=Rj;Ve.Profiler=xg;Ve.StrictMode=bg;Ve.Suspense=Ag;Ve.SuspenseList=Og;Ve.isAsyncMode=function(){return!1};Ve.isConcurrentMode=function(){return!1};Ve.isContextConsumer=function(e){return Er(e)===wg};Ve.isContextProvider=function(e){return Er(e)===Sg};Ve.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Mj};Ve.isForwardRef=function(e){return Er(e)===jg};Ve.isFragment=function(e){return Er(e)===vg};Ve.isLazy=function(e){return Er(e)===Eg};Ve.isMemo=function(e){return Er(e)===Ng};Ve.isPortal=function(e){return Er(e)===Rj};Ve.isProfiler=function(e){return Er(e)===xg};Ve.isStrictMode=function(e){return Er(e)===bg};Ve.isSuspense=function(e){return Er(e)===Ag};Ve.isSuspenseList=function(e){return Er(e)===Og};Ve.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===vg||e===xg||e===bg||e===Ag||e===Og||e===Jee||typeof e=="object"&&e!==null&&(e.$$typeof===Eg||e.$$typeof===Ng||e.$$typeof===Sg||e.$$typeof===wg||e.$$typeof===jg||e.$$typeof===z5||e.getModuleId!==void 0)};Ve.typeOf=Er;L5.exports=Ve;var ete=L5.exports,tte=si,nte=oi,rte="[object Number]";function ate(e){return typeof e=="number"||nte(e)&&tte(e)==rte}var I5=ate;const ite=Ie(I5);var ste=I5;function ote(e){return ste(e)&&e!=+e}var lte=ote;const Wc=Ie(lte);var mn=function(t){return t===0?0:t>0?1:-1},Ps=function(t){return uo(t)&&t.indexOf("%")===t.length-1},G=function(t){return ite(t)&&!Wc(t)},cte=function(t){return me(t)},$t=function(t){return G(t)||uo(t)},ute=0,No=function(t){var n=++ute;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(!G(t)&&!uo(t))return r;var i;if(Ps(t)){var s=t.indexOf("%");i=n*parseFloat(t.slice(0,s))/100}else i=+t;return Wc(i)&&(i=r),a&&i>n&&(i=n),i},ji=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},fte=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},Dt=function(t,n){return G(t)&&G(n)?function(r){return t+r*(n-t)}:function(){return n}};function jm(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Qn(r,t))===n})}var dte=function(t,n){return G(t)&&G(n)?t-n:uo(t)&&uo(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function jl(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 I0(e){"@babel/helpers - typeof";return I0=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},I0(e)}var hte=["viewBox","children"],pte=["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"],BE=["points","pathLength"],jb={svg:hte,polygon:BE,polyline:BE},Dj=["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"],Am=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(A.isValidElement(t)&&(r=t.props),!qc(r))return null;var a={};return Object.keys(r).forEach(function(i){Dj.includes(i)&&(a[i]=n||function(s){return r[i](r,s)})}),a},mte=function(t,n,r){return function(a){return t(n,r,a),null}},fo=function(t,n,r){if(!qc(t)||I0(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var s=t[i];Dj.includes(i)&&typeof s=="function"&&(a||(a={}),a[i]=mte(s,n,r))}),a},yte=["children"],gte=["children"];function UE(e,t){if(e==null)return{};var n=vte(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vte(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 B0(e){"@babel/helpers - typeof";return B0=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},B0(e)}var FE={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"},qa=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},VE=null,Ab=null,kj=function e(t){if(t===VE&&Array.isArray(Ab))return Ab;var n=[];return A.Children.forEach(t,function(r){me(r)||(ete.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Ab=n,VE=t,n};function Zn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return qa(a)}):r=[qa(t)],kj(e).forEach(function(a){var i=Qn(a,"type.displayName")||Qn(a,"type.name");r.indexOf(i)!==-1&&n.push(a)}),n}function In(e,t){var n=Zn(e,t);return n&&n[0]}var HE=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!G(r)||r<=0||!G(a)||a<=0)},bte=["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"],xte=function(t){return t&&t.type&&uo(t.type)&&bte.indexOf(t.type)>=0},B5=function(t){return t&&B0(t)==="object"&&"clipDot"in t},Ste=function(t,n,r,a){var i,s=(i=jb==null?void 0:jb[a])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!de(t)&&(a&&s.includes(n)||pte.includes(n))||r&&Dj.includes(n)},ie=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(A.isValidElement(t)&&(a=t.props),!qc(a))return null;var i={};return Object.keys(a).forEach(function(s){var o;Ste((o=a)===null||o===void 0?void 0:o[s],s,n,r)&&(i[s]=a[s])}),i},U0=function e(t,n){if(t===n)return!0;var r=A.Children.count(t);if(r!==A.Children.count(n))return!1;if(r===0)return!0;if(r===1)return qE(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a<r;a++){var i=t[a],s=n[a];if(Array.isArray(i)||Array.isArray(s)){if(!e(i,s))return!1}else if(!qE(i,s))return!1}return!0},qE=function(t,n){if(me(t)&&me(n))return!0;if(!me(t)&&!me(n)){var r=t.props||{},a=r.children,i=UE(r,yte),s=n.props||{},o=s.children,l=UE(s,gte);return a&&o?jl(i,l)&&U0(a,o):!a&&!o?jl(i,l):!1}return!1},KE=function(t,n){var r=[],a={};return kj(t).forEach(function(i,s){if(xte(i))r.push(i);else if(i){var o=qa(i.type),l=n[o]||{},u=l.handler,f=l.once;if(u&&(!f||!a[o])){var d=u(i,o,s);r.push(d),a[o]=!0}}}),r},wte=function(t){var n=t&&t.type;return n&&FE[n]?FE[n]:null},jte=function(t,n){return kj(n).indexOf(t)},Ate=["children","width","height","viewBox","className","style","title","desc"];function F0(){return F0=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},F0.apply(this,arguments)}function Ote(e,t){if(e==null)return{};var n=Nte(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nte(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function V0(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,i=e.className,s=e.style,o=e.title,l=e.desc,u=Ote(e,Ate),f=a||{width:n,height:r,x:0,y:0},d=be("recharts-surface",i);return _.createElement("svg",F0({},ie(u,!0,"svg"),{className:d,width:n,height:r,style:s,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),_.createElement("title",null,o),_.createElement("desc",null,l),t)}var Ete=["children","className"];function H0(){return H0=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},H0.apply(this,arguments)}function Tte(e,t){if(e==null)return{};var n=Cte(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cte(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 Oe=_.forwardRef(function(e,t){var n=e.children,r=e.className,a=Tte(e,Ete),i=be("recharts-layer",r);return _.createElement("g",H0({className:i},ie(a,!0),{ref:t}),n)}),Br=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;i<r;i++)a[i-2]=arguments[i]};function _te(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r<a;)i[r]=e[r+t];return i}var Pte=_te,Mte=Pte;function Rte(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Mte(e,t,n)}var Dte=Rte,kte="\\ud800-\\udfff",$te="\\u0300-\\u036f",Lte="\\ufe20-\\ufe2f",zte="\\u20d0-\\u20ff",Ite=$te+Lte+zte,Bte="\\ufe0e\\ufe0f",Ute="\\u200d",Fte=RegExp("["+Ute+kte+Ite+Bte+"]");function Vte(e){return Fte.test(e)}var U5=Vte;function Hte(e){return e.split("")}var qte=Hte,F5="\\ud800-\\udfff",Kte="\\u0300-\\u036f",Gte="\\ufe20-\\ufe2f",Yte="\\u20d0-\\u20ff",Wte=Kte+Gte+Yte,Xte="\\ufe0e\\ufe0f",Qte="["+F5+"]",q0="["+Wte+"]",K0="\\ud83c[\\udffb-\\udfff]",Zte="(?:"+q0+"|"+K0+")",V5="[^"+F5+"]",H5="(?:\\ud83c[\\udde6-\\uddff]){2}",q5="[\\ud800-\\udbff][\\udc00-\\udfff]",Jte="\\u200d",K5=Zte+"?",G5="["+Xte+"]?",ene="(?:"+Jte+"(?:"+[V5,H5,q5].join("|")+")"+G5+K5+")*",tne=G5+K5+ene,nne="(?:"+[V5+q0+"?",q0,H5,q5,Qte].join("|")+")",rne=RegExp(K0+"(?="+K0+")|"+nne+tne,"g");function ane(e){return e.match(rne)||[]}var ine=ane,sne=qte,one=U5,lne=ine;function cne(e){return one(e)?lne(e):sne(e)}var une=cne,fne=Dte,dne=U5,hne=une,pne=D5;function mne(e){return function(t){t=pne(t);var n=dne(t)?hne(t):void 0,r=n?n[0]:t.charAt(0),a=n?fne(n,1).join(""):t.slice(1);return r[e]()+a}}var yne=mne,gne=yne,vne=gne("toUpperCase"),bne=vne;const Tg=Ie(bne);function Ze(e){return function(){return e}}const Y5=Math.cos,Om=Math.sin,qr=Math.sqrt,Nm=Math.PI,Cg=2*Nm,G0=Math.PI,Y0=2*G0,js=1e-6,xne=Y0-js;function W5(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Sne(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return W5;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;a<i;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class wne{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?W5:Sne(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,i,s){this._append`C${+t},${+n},${+r},${+a},${this._x1=+i},${this._y1=+s}`}arcTo(t,n,r,a,i){if(t=+t,n=+n,r=+r,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let s=this._x1,o=this._y1,l=r-t,u=a-n,f=s-t,d=o-n,h=f*f+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>js)if(!(Math.abs(d*l-u*f)>js)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-s,m=a-o,g=l*l+u*u,v=p*p+m*m,y=Math.sqrt(g),b=Math.sqrt(h),x=i*Math.tan((G0-Math.acos((g+h-v)/(2*y*b)))/2),w=x/b,S=x/y;Math.abs(w-1)>js&&this._append`L${t+w*f},${n+w*d}`,this._append`A${i},${i},0,0,${+(d*p>f*m)},${this._x1=t+S*l},${this._y1=n+S*u}`}}arc(t,n,r,a,i,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let o=r*Math.cos(a),l=r*Math.sin(a),u=t+o,f=n+l,d=1^s,h=s?a-i:i-a;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>js||Math.abs(this._y1-f)>js)&&this._append`L${u},${f}`,r&&(h<0&&(h=h%Y0+Y0),h>xne?this._append`A${r},${r},0,1,${d},${t-o},${n-l}A${r},${r},0,1,${d},${this._x1=u},${this._y1=f}`:h>js&&this._append`A${r},${r},0,${+(h>=G0)},${d},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function $j(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 wne(t)}function Lj(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function X5(e){this._context=e}X5.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 _g(e){return new X5(e)}function Q5(e){return e[0]}function Z5(e){return e[1]}function J5(e,t){var n=Ze(!0),r=null,a=_g,i=null,s=$j(o);e=typeof e=="function"?e:e===void 0?Q5:Ze(e),t=typeof t=="function"?t:t===void 0?Z5:Ze(t);function o(l){var u,f=(l=Lj(l)).length,d,h=!1,p;for(r==null&&(i=a(p=s())),u=0;u<=f;++u)!(u<f&&n(d=l[u],u,l))===h&&((h=!h)?i.lineStart():i.lineEnd()),h&&i.point(+e(d,u,l),+t(d,u,l));if(p)return i=null,p+""||null}return o.x=function(l){return arguments.length?(e=typeof l=="function"?l:Ze(+l),o):e},o.y=function(l){return arguments.length?(t=typeof l=="function"?l:Ze(+l),o):t},o.defined=function(l){return arguments.length?(n=typeof l=="function"?l:Ze(!!l),o):n},o.curve=function(l){return arguments.length?(a=l,r!=null&&(i=a(r)),o):a},o.context=function(l){return arguments.length?(l==null?r=i=null:i=a(r=l),o):r},o}function $h(e,t,n){var r=null,a=Ze(!0),i=null,s=_g,o=null,l=$j(u);e=typeof e=="function"?e:e===void 0?Q5:Ze(+e),t=typeof t=="function"?t:Ze(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Z5:Ze(+n);function u(d){var h,p,m,g=(d=Lj(d)).length,v,y=!1,b,x=new Array(g),w=new Array(g);for(i==null&&(o=s(b=l())),h=0;h<=g;++h){if(!(h<g&&a(v=d[h],h,d))===y)if(y=!y)p=h,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),m=h-1;m>=p;--m)o.point(x[m],w[m]);o.lineEnd(),o.areaEnd()}y&&(x[h]=+e(v,h,d),w[h]=+t(v,h,d),o.point(r?+r(v,h,d):x[h],n?+n(v,h,d):w[h]))}if(b)return o=null,b+""||null}function f(){return J5().defined(a).curve(s).context(i)}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:Ze(+d),r=null,u):e},u.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Ze(+d),u):e},u.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Ze(+d),u):r},u.y=function(d){return arguments.length?(t=typeof d=="function"?d:Ze(+d),n=null,u):t},u.y0=function(d){return arguments.length?(t=typeof d=="function"?d:Ze(+d),u):t},u.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Ze(+d),u):n},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(n)},u.lineX1=function(){return f().x(r).y(t)},u.defined=function(d){return arguments.length?(a=typeof d=="function"?d:Ze(!!d),u):a},u.curve=function(d){return arguments.length?(s=d,i!=null&&(o=s(i)),u):s},u.context=function(d){return arguments.length?(d==null?i=o=null:o=s(i=d),u):i},u}class e4{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 jne(e){return new e4(e,!0)}function Ane(e){return new e4(e,!1)}const zj={draw(e,t){const n=qr(t/Nm);e.moveTo(n,0),e.arc(0,0,n,0,Cg)}},One={draw(e,t){const n=qr(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()}},t4=qr(1/3),Nne=t4*2,Ene={draw(e,t){const n=qr(t/Nne),r=n*t4;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Tne={draw(e,t){const n=qr(t),r=-n/2;e.rect(r,r,n,n)}},Cne=.8908130915292852,n4=Om(Nm/10)/Om(7*Nm/10),_ne=Om(Cg/10)*n4,Pne=-Y5(Cg/10)*n4,Mne={draw(e,t){const n=qr(t*Cne),r=_ne*n,a=Pne*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const s=Cg*i/5,o=Y5(s),l=Om(s);e.lineTo(l*n,-o*n),e.lineTo(o*r-l*a,l*r+o*a)}e.closePath()}},Ob=qr(3),Rne={draw(e,t){const n=-qr(t/(Ob*3));e.moveTo(0,n*2),e.lineTo(-Ob*n,-n),e.lineTo(Ob*n,-n),e.closePath()}},ar=-.5,ir=qr(3)/2,W0=1/qr(12),Dne=(W0/2+1)*3,kne={draw(e,t){const n=qr(t/Dne),r=n/2,a=n*W0,i=r,s=n*W0+n,o=-i,l=s;e.moveTo(r,a),e.lineTo(i,s),e.lineTo(o,l),e.lineTo(ar*r-ir*a,ir*r+ar*a),e.lineTo(ar*i-ir*s,ir*i+ar*s),e.lineTo(ar*o-ir*l,ir*o+ar*l),e.lineTo(ar*r+ir*a,ar*a-ir*r),e.lineTo(ar*i+ir*s,ar*s-ir*i),e.lineTo(ar*o+ir*l,ar*l-ir*o),e.closePath()}};function $ne(e,t){let n=null,r=$j(a);e=typeof e=="function"?e:Ze(e||zj),t=typeof t=="function"?t:Ze(t===void 0?64:+t);function a(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:Ze(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Ze(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function Em(){}function Tm(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 r4(e){this._context=e}r4.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:Tm(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:Tm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Lne(e){return new r4(e)}function a4(e){this._context=e}a4.prototype={areaStart:Em,areaEnd:Em,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:Tm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zne(e){return new a4(e)}function i4(e){this._context=e}i4.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:Tm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ine(e){return new i4(e)}function s4(e){this._context=e}s4.prototype={areaStart:Em,areaEnd:Em,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 Bne(e){return new s4(e)}function GE(e){return e<0?-1:1}function YE(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),s=(n-e._y1)/(a||r<0&&-0),o=(i*a+s*r)/(r+a);return(GE(i)+GE(s))*Math.min(Math.abs(i),Math.abs(s),.5*Math.abs(o))||0}function WE(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Nb(e,t,n){var r=e._x0,a=e._y0,i=e._x1,s=e._y1,o=(i-r)/3;e._context.bezierCurveTo(r+o,a+o*t,i-o,s-o*n,i,s)}function Cm(e){this._context=e}Cm.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:Nb(this,this._t0,WE(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,Nb(this,WE(this,n=YE(this,e,t)),n);break;default:Nb(this,this._t0,n=YE(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function o4(e){this._context=new l4(e)}(o4.prototype=Object.create(Cm.prototype)).point=function(e,t){Cm.prototype.point.call(this,t,e)};function l4(e){this._context=e}l4.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function Une(e){return new Cm(e)}function Fne(e){return new o4(e)}function c4(e){this._context=e}c4.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=XE(e),a=XE(t),i=0,s=1;s<n;++i,++s)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],e[s],t[s]);(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 XE(e){var t,n=e.length-1,r,a=new Array(n),i=new Array(n),s=new Array(n);for(a[0]=0,i[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,i[t]=4,s[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,i[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/i[t-1],i[t]-=r,s[t]-=r*s[t-1];for(a[n-1]=s[n-1]/i[n-1],t=n-2;t>=0;--t)a[t]=(s[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function Vne(e){return new c4(e)}function Pg(e,t){this._context=e,this._t=t}Pg.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 Hne(e){return new Pg(e,.5)}function qne(e){return new Pg(e,0)}function Kne(e){return new Pg(e,1)}function rc(e,t){if((s=e.length)>1)for(var n=1,r,a,i=e[t[0]],s,o=i.length;n<s;++n)for(a=i,i=e[t[n]],r=0;r<o;++r)i[r][1]+=i[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function X0(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Gne(e,t){return e[t]}function Yne(e){const t=[];return t.key=e,t}function Wne(){var e=Ze([]),t=X0,n=rc,r=Gne;function a(i){var s=Array.from(e.apply(this,arguments),Yne),o,l=s.length,u=-1,f;for(const d of i)for(o=0,++u;o<l;++o)(s[o][u]=[0,+r(d,s[o].key,u,i)]).data=d;for(o=0,f=Lj(t(s));o<l;++o)s[f[o]].index=o;return n(s,f),s}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:Ze(Array.from(i)),a):e},a.value=function(i){return arguments.length?(r=typeof i=="function"?i:Ze(+i),a):r},a.order=function(i){return arguments.length?(t=i==null?X0:typeof i=="function"?i:Ze(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??rc,a):n},a}function Xne(e,t){if((r=e.length)>0){for(var n,r,a=0,i=e[0].length,s;a<i;++a){for(s=n=0;n<r;++n)s+=e[n][a][1]||0;if(s)for(n=0;n<r;++n)e[n][a][1]/=s}rc(e,t)}}function Qne(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,i=r.length;n<i;++n){for(var s=0,o=0;s<a;++s)o+=e[s][n][1]||0;r[n][1]+=r[n][0]=-o/2}rc(e,t)}}function Zne(e,t){if(!(!((s=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,i,s;r<i;++r){for(var o=0,l=0,u=0;o<s;++o){for(var f=e[t[o]],d=f[r][1]||0,h=f[r-1][1]||0,p=(d-h)/2,m=0;m<o;++m){var g=e[t[m]],v=g[r][1]||0,y=g[r-1][1]||0;p+=v-y}l+=d,u+=p*d}a[r-1][1]+=a[r-1][0]=n,l&&(n-=u/l)}a[r-1][1]+=a[r-1][0]=n,rc(e,t)}}function Bf(e){"@babel/helpers - typeof";return Bf=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},Bf(e)}var Jne=["type","size","sizeType"];function Q0(){return Q0=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},Q0.apply(this,arguments)}function QE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ZE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QE(Object(n),!0).forEach(function(r){ere(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ere(e,t,n){return t=tre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tre(e){var t=nre(e,"string");return Bf(t)=="symbol"?t:t+""}function nre(e,t){if(Bf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rre(e,t){if(e==null)return{};var n=are(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function are(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 u4={symbolCircle:zj,symbolCross:One,symbolDiamond:Ene,symbolSquare:Tne,symbolStar:Mne,symbolTriangle:Rne,symbolWye:kne},ire=Math.PI/180,sre=function(t){var n="symbol".concat(Tg(t));return u4[n]||zj},ore=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*ire;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}},lre=function(t,n){u4["symbol".concat(Tg(t))]=n},Ij=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,i=a===void 0?64:a,s=t.sizeType,o=s===void 0?"area":s,l=rre(t,Jne),u=ZE(ZE({},l),{},{type:r,size:i,sizeType:o}),f=function(){var v=sre(r),y=$ne().type(v).size(ore(i,o,r));return y()},d=u.className,h=u.cx,p=u.cy,m=ie(u,!0);return h===+h&&p===+p&&i===+i?_.createElement("path",Q0({},m,{className:be("recharts-symbols",d),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};Ij.registerSymbol=lre;function ac(e){"@babel/helpers - typeof";return ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ac(e)}function Z0(){return Z0=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},Z0.apply(this,arguments)}function JE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function cre(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JE(Object(n),!0).forEach(function(r){Uf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ure(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fre(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,d4(r.key),r)}}function dre(e,t,n){return t&&fre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hre(e,t,n){return t=_m(t),pre(e,f4()?Reflect.construct(t,n||[],_m(e).constructor):t.apply(e,n))}function pre(e,t){if(t&&(ac(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 f4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f4=function(){return!!e})()}function _m(e){return _m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_m(e)}function yre(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&&J0(e,t)}function J0(e,t){return J0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},J0(e,t)}function Uf(e,t,n){return t=d4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d4(e){var t=gre(e,"string");return ac(t)=="symbol"?t:t+""}function gre(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 String(e)}var sr=32,Bj=function(e){function t(){return ure(this,t),hre(this,t,arguments)}return yre(t,e),dre(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,i=sr/2,s=sr/6,o=sr/3,l=r.inactive?a:r.color;if(r.type==="plainline")return _.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:i,x2:sr,y2:i,className:"recharts-legend-icon"});if(r.type==="line")return _.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(i,"h").concat(o,`
            A`).concat(s,",").concat(s,",0,1,1,").concat(2*o,",").concat(i,`
            H`).concat(sr,"M").concat(2*o,",").concat(i,`
            A`).concat(s,",").concat(s,",0,1,1,").concat(o,",").concat(i),className:"recharts-legend-icon"});if(r.type==="rect")return _.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(sr/8,"h").concat(sr,"v").concat(sr*3/4,"h").concat(-sr,"z"),className:"recharts-legend-icon"});if(_.isValidElement(r.legendIcon)){var u=cre({},r);return delete u.legendIcon,_.cloneElement(r.legendIcon,u)}return _.createElement(Ij,{fill:l,cx:i,cy:i,size:sr,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,a=this.props,i=a.payload,s=a.iconSize,o=a.layout,l=a.formatter,u=a.inactiveColor,f={x:0,y:0,width:sr,height:sr},d={display:o==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(p,m){var g=p.formatter||l,v=be(Uf(Uf({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",p.inactive));if(p.type==="none")return null;var y=de(p.value)?null:p.value;Br(!de(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var b=p.inactive?u:p.color;return _.createElement("li",Z0({className:v,style:d,key:"legend-item-".concat(m)},fo(r.props,p,m)),_.createElement(V0,{width:s,height:s,viewBox:f,style:h},r.renderIcon(p)),_.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},g?g(y,p,m):y))})}},{key:"render",value:function(){var r=this.props,a=r.payload,i=r.layout,s=r.align;if(!a||!a.length)return null;var o={padding:0,margin:0,textAlign:i==="horizontal"?s:"left"};return _.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}])}(A.PureComponent);Uf(Bj,"displayName","Legend");Uf(Bj,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var vre=mg;function bre(){this.__data__=new vre,this.size=0}var xre=bre;function Sre(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var wre=Sre;function jre(e){return this.__data__.get(e)}var Are=jre;function Ore(e){return this.__data__.has(e)}var Nre=Ore,Ere=mg,Tre=Ej,Cre=Tj,_re=200;function Pre(e,t){var n=this.__data__;if(n instanceof Ere){var r=n.__data__;if(!Tre||r.length<_re-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Cre(r)}return n.set(e,t),this.size=n.size,this}var Mre=Pre,Rre=mg,Dre=xre,kre=wre,$re=Are,Lre=Nre,zre=Mre;function Xc(e){var t=this.__data__=new Rre(e);this.size=t.size}Xc.prototype.clear=Dre;Xc.prototype.delete=kre;Xc.prototype.get=$re;Xc.prototype.has=Lre;Xc.prototype.set=zre;var h4=Xc,Ire="__lodash_hash_undefined__";function Bre(e){return this.__data__.set(e,Ire),this}var Ure=Bre;function Fre(e){return this.__data__.has(e)}var Vre=Fre,Hre=Tj,qre=Ure,Kre=Vre;function Pm(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Hre;++t<n;)this.add(e[t])}Pm.prototype.add=Pm.prototype.push=qre;Pm.prototype.has=Kre;var p4=Pm;function Gre(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var m4=Gre;function Yre(e,t){return e.has(t)}var y4=Yre,Wre=p4,Xre=m4,Qre=y4,Zre=1,Jre=2;function eae(e,t,n,r,a,i){var s=n&Zre,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var u=i.get(e),f=i.get(t);if(u&&f)return u==t&&f==e;var d=-1,h=!0,p=n&Jre?new Wre:void 0;for(i.set(e,t),i.set(t,e);++d<o;){var m=e[d],g=t[d];if(r)var v=s?r(g,m,d,t,e,i):r(m,g,d,e,t,i);if(v!==void 0){if(v)continue;h=!1;break}if(p){if(!Xre(t,function(y,b){if(!Qre(p,b)&&(m===y||a(m,y,n,r,i)))return p.push(b)})){h=!1;break}}else if(!(m===g||a(m,g,n,r,i))){h=!1;break}}return i.delete(e),i.delete(t),h}var g4=eae,tae=ma,nae=tae.Uint8Array,rae=nae;function aae(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var iae=aae;function sae(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Uj=sae,eT=Zd,tT=rae,oae=Nj,lae=g4,cae=iae,uae=Uj,fae=1,dae=2,hae="[object Boolean]",pae="[object Date]",mae="[object Error]",yae="[object Map]",gae="[object Number]",vae="[object RegExp]",bae="[object Set]",xae="[object String]",Sae="[object Symbol]",wae="[object ArrayBuffer]",jae="[object DataView]",nT=eT?eT.prototype:void 0,Eb=nT?nT.valueOf:void 0;function Aae(e,t,n,r,a,i,s){switch(n){case jae:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case wae:return!(e.byteLength!=t.byteLength||!i(new tT(e),new tT(t)));case hae:case pae:case gae:return oae(+e,+t);case mae:return e.name==t.name&&e.message==t.message;case vae:case xae:return e==t+"";case yae:var o=cae;case bae:var l=r&fae;if(o||(o=uae),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;r|=dae,s.set(e,t);var f=lae(o(e),o(t),r,a,i,s);return s.delete(e),f;case Sae:if(Eb)return Eb.call(e)==Eb.call(t)}return!1}var Oae=Aae;function Nae(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var v4=Nae,Eae=v4,Tae=Dn;function Cae(e,t,n){var r=t(e);return Tae(e)?r:Eae(r,n(e))}var _ae=Cae;function Pae(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[a++]=s)}return i}var Mae=Pae;function Rae(){return[]}var Dae=Rae,kae=Mae,$ae=Dae,Lae=Object.prototype,zae=Lae.propertyIsEnumerable,rT=Object.getOwnPropertySymbols,Iae=rT?function(e){return e==null?[]:(e=Object(e),kae(rT(e),function(t){return zae.call(e,t)}))}:$ae,Bae=Iae;function Uae(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Fae=Uae,Vae=si,Hae=oi,qae="[object Arguments]";function Kae(e){return Hae(e)&&Vae(e)==qae}var Gae=Kae,aT=Gae,Yae=oi,b4=Object.prototype,Wae=b4.hasOwnProperty,Xae=b4.propertyIsEnumerable,Qae=aT(function(){return arguments}())?aT:function(e){return Yae(e)&&Wae.call(e,"callee")&&!Xae.call(e,"callee")},Fj=Qae,Mm={exports:{}};function Zae(){return!1}var Jae=Zae;Mm.exports;(function(e,t){var n=ma,r=Jae,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===a,o=s?n.Buffer:void 0,l=o?o.isBuffer:void 0,u=l||r;e.exports=u})(Mm,Mm.exports);var x4=Mm.exports,eie=9007199254740991,tie=/^(?:0|[1-9]\d*)$/;function nie(e,t){var n=typeof e;return t=t??eie,!!t&&(n=="number"||n!="symbol"&&tie.test(e))&&e>-1&&e%1==0&&e<t}var Vj=nie,rie=9007199254740991;function aie(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=rie}var Hj=aie,iie=si,sie=Hj,oie=oi,lie="[object Arguments]",cie="[object Array]",uie="[object Boolean]",fie="[object Date]",die="[object Error]",hie="[object Function]",pie="[object Map]",mie="[object Number]",yie="[object Object]",gie="[object RegExp]",vie="[object Set]",bie="[object String]",xie="[object WeakMap]",Sie="[object ArrayBuffer]",wie="[object DataView]",jie="[object Float32Array]",Aie="[object Float64Array]",Oie="[object Int8Array]",Nie="[object Int16Array]",Eie="[object Int32Array]",Tie="[object Uint8Array]",Cie="[object Uint8ClampedArray]",_ie="[object Uint16Array]",Pie="[object Uint32Array]",nt={};nt[jie]=nt[Aie]=nt[Oie]=nt[Nie]=nt[Eie]=nt[Tie]=nt[Cie]=nt[_ie]=nt[Pie]=!0;nt[lie]=nt[cie]=nt[Sie]=nt[uie]=nt[wie]=nt[fie]=nt[die]=nt[hie]=nt[pie]=nt[mie]=nt[yie]=nt[gie]=nt[vie]=nt[bie]=nt[xie]=!1;function Mie(e){return oie(e)&&sie(e.length)&&!!nt[iie(e)]}var Rie=Mie;function Die(e){return function(t){return e(t)}}var S4=Die,Rm={exports:{}};Rm.exports;(function(e,t){var n=T5,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,s=i&&n.process,o=function(){try{var l=a&&a.require&&a.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();e.exports=o})(Rm,Rm.exports);var kie=Rm.exports,$ie=Rie,Lie=S4,iT=kie,sT=iT&&iT.isTypedArray,zie=sT?Lie(sT):$ie,w4=zie,Iie=Fae,Bie=Fj,Uie=Dn,Fie=x4,Vie=Vj,Hie=w4,qie=Object.prototype,Kie=qie.hasOwnProperty;function Gie(e,t){var n=Uie(e),r=!n&&Bie(e),a=!n&&!r&&Fie(e),i=!n&&!r&&!a&&Hie(e),s=n||r||a||i,o=s?Iie(e.length,String):[],l=o.length;for(var u in e)(t||Kie.call(e,u))&&!(s&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Vie(u,l)))&&o.push(u);return o}var Yie=Gie,Wie=Object.prototype;function Xie(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Wie;return e===n}var Qie=Xie;function Zie(e,t){return function(n){return e(t(n))}}var j4=Zie,Jie=j4,ese=Jie(Object.keys,Object),tse=ese,nse=Qie,rse=tse,ase=Object.prototype,ise=ase.hasOwnProperty;function sse(e){if(!nse(e))return rse(e);var t=[];for(var n in Object(e))ise.call(e,n)&&n!="constructor"&&t.push(n);return t}var ose=sse,lse=Oj,cse=Hj;function use(e){return e!=null&&cse(e.length)&&!lse(e)}var Jd=use,fse=Yie,dse=ose,hse=Jd;function pse(e){return hse(e)?fse(e):dse(e)}var Mg=pse,mse=_ae,yse=Bae,gse=Mg;function vse(e){return mse(e,gse,yse)}var bse=vse,oT=bse,xse=1,Sse=Object.prototype,wse=Sse.hasOwnProperty;function jse(e,t,n,r,a,i){var s=n&xse,o=oT(e),l=o.length,u=oT(t),f=u.length;if(l!=f&&!s)return!1;for(var d=l;d--;){var h=o[d];if(!(s?h in t:wse.call(t,h)))return!1}var p=i.get(e),m=i.get(t);if(p&&m)return p==t&&m==e;var g=!0;i.set(e,t),i.set(t,e);for(var v=s;++d<l;){h=o[d];var y=e[h],b=t[h];if(r)var x=s?r(b,y,h,t,e,i):r(y,b,h,e,t,i);if(!(x===void 0?y===b||a(y,b,n,r,i):x)){g=!1;break}v||(v=h=="constructor")}if(g&&!v){var w=e.constructor,S=t.constructor;w!=S&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof S=="function"&&S instanceof S)&&(g=!1)}return i.delete(e),i.delete(t),g}var Ase=jse,Ose=Oo,Nse=ma,Ese=Ose(Nse,"DataView"),Tse=Ese,Cse=Oo,_se=ma,Pse=Cse(_se,"Promise"),Mse=Pse,Rse=Oo,Dse=ma,kse=Rse(Dse,"Set"),A4=kse,$se=Oo,Lse=ma,zse=$se(Lse,"WeakMap"),Ise=zse,e1=Tse,t1=Ej,n1=Mse,r1=A4,a1=Ise,O4=si,Qc=_5,lT="[object Map]",Bse="[object Object]",cT="[object Promise]",uT="[object Set]",fT="[object WeakMap]",dT="[object DataView]",Use=Qc(e1),Fse=Qc(t1),Vse=Qc(n1),Hse=Qc(r1),qse=Qc(a1),As=O4;(e1&&As(new e1(new ArrayBuffer(1)))!=dT||t1&&As(new t1)!=lT||n1&&As(n1.resolve())!=cT||r1&&As(new r1)!=uT||a1&&As(new a1)!=fT)&&(As=function(e){var t=O4(e),n=t==Bse?e.constructor:void 0,r=n?Qc(n):"";if(r)switch(r){case Use:return dT;case Fse:return lT;case Vse:return cT;case Hse:return uT;case qse:return fT}return t});var Kse=As,Tb=h4,Gse=g4,Yse=Oae,Wse=Ase,hT=Kse,pT=Dn,mT=x4,Xse=w4,Qse=1,yT="[object Arguments]",gT="[object Array]",Lh="[object Object]",Zse=Object.prototype,vT=Zse.hasOwnProperty;function Jse(e,t,n,r,a,i){var s=pT(e),o=pT(t),l=s?gT:hT(e),u=o?gT:hT(t);l=l==yT?Lh:l,u=u==yT?Lh:u;var f=l==Lh,d=u==Lh,h=l==u;if(h&&mT(e)){if(!mT(t))return!1;s=!0,f=!1}if(h&&!f)return i||(i=new Tb),s||Xse(e)?Gse(e,t,n,r,a,i):Yse(e,t,l,n,r,a,i);if(!(n&Qse)){var p=f&&vT.call(e,"__wrapped__"),m=d&&vT.call(t,"__wrapped__");if(p||m){var g=p?e.value():e,v=m?t.value():t;return i||(i=new Tb),a(g,v,n,r,i)}}return h?(i||(i=new Tb),Wse(e,t,n,r,a,i)):!1}var eoe=Jse,toe=eoe,bT=oi;function N4(e,t,n,r,a){return e===t?!0:e==null||t==null||!bT(e)&&!bT(t)?e!==e&&t!==t:toe(e,t,n,r,N4,a)}var qj=N4,noe=h4,roe=qj,aoe=1,ioe=2;function soe(e,t,n,r){var a=n.length,i=a,s=!r;if(e==null)return!i;for(e=Object(e);a--;){var o=n[a];if(s&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<i;){o=n[a];var l=o[0],u=e[l],f=o[1];if(s&&o[2]){if(u===void 0&&!(l in e))return!1}else{var d=new noe;if(r)var h=r(u,f,l,e,t,d);if(!(h===void 0?roe(f,u,aoe|ioe,r,d):h))return!1}}return!0}var ooe=soe,loe=ss;function coe(e){return e===e&&!loe(e)}var E4=coe,uoe=E4,foe=Mg;function doe(e){for(var t=foe(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,uoe(a)]}return t}var hoe=doe;function poe(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var T4=poe,moe=ooe,yoe=hoe,goe=T4;function voe(e){var t=yoe(e);return t.length==1&&t[0][2]?goe(t[0][0],t[0][1]):function(n){return n===e||moe(n,e,t)}}var boe=voe;function xoe(e,t){return e!=null&&t in Object(e)}var Soe=xoe,woe=k5,joe=Fj,Aoe=Dn,Ooe=Vj,Noe=Hj,Eoe=gg;function Toe(e,t,n){t=woe(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var s=Eoe(t[r]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&Noe(a)&&Ooe(s,a)&&(Aoe(e)||joe(e)))}var Coe=Toe,_oe=Soe,Poe=Coe;function Moe(e,t){return e!=null&&Poe(e,t,_oe)}var Roe=Moe,Doe=qj,koe=$5,$oe=Roe,Loe=Aj,zoe=E4,Ioe=T4,Boe=gg,Uoe=1,Foe=2;function Voe(e,t){return Loe(e)&&zoe(t)?Ioe(Boe(e),t):function(n){var r=koe(n,e);return r===void 0&&r===t?$oe(n,e):Doe(t,r,Uoe|Foe)}}var Hoe=Voe;function qoe(e){return e}var Zc=qoe;function Koe(e){return function(t){return t==null?void 0:t[e]}}var Goe=Koe,Yoe=Pj;function Woe(e){return function(t){return Yoe(t,e)}}var Xoe=Woe,Qoe=Goe,Zoe=Xoe,Joe=Aj,ele=gg;function tle(e){return Joe(e)?Qoe(ele(e)):Zoe(e)}var nle=tle,rle=boe,ale=Hoe,ile=Zc,sle=Dn,ole=nle;function lle(e){return typeof e=="function"?e:e==null?ile:typeof e=="object"?sle(e)?ale(e[0],e[1]):rle(e):ole(e)}var ya=lle;function cle(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var C4=cle;function ule(e){return e!==e}var fle=ule;function dle(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var hle=dle,ple=C4,mle=fle,yle=hle;function gle(e,t,n){return t===t?yle(e,t,n):ple(e,mle,n)}var vle=gle,ble=vle;function xle(e,t){var n=e==null?0:e.length;return!!n&&ble(e,t,0)>-1}var Sle=xle;function wle(e,t,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}var jle=wle;function Ale(){}var Ole=Ale,Cb=A4,Nle=Ole,Ele=Uj,Tle=1/0,Cle=Cb&&1/Ele(new Cb([,-0]))[1]==Tle?function(e){return new Cb(e)}:Nle,_le=Cle,Ple=p4,Mle=Sle,Rle=jle,Dle=y4,kle=_le,$le=Uj,Lle=200;function zle(e,t,n){var r=-1,a=Mle,i=e.length,s=!0,o=[],l=o;if(n)s=!1,a=Rle;else if(i>=Lle){var u=t?null:kle(e);if(u)return $le(u);s=!1,a=Dle,l=new Ple}else l=t?[]:o;e:for(;++r<i;){var f=e[r],d=t?t(f):f;if(f=n||f!==0?f:0,s&&d===d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),o.push(f)}else a(l,d,n)||(l!==o&&l.push(d),o.push(f))}return o}var Ile=zle,Ble=ya,Ule=Ile;function Fle(e,t){return e&&e.length?Ule(e,Ble(t)):[]}var Vle=Fle;const xT=Ie(Vle);function _4(e,t,n){return t===!0?xT(e,n):de(t)?xT(e,t):e}function ic(e){"@babel/helpers - typeof";return ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ic(e)}var Hle=["ref"];function ST(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 Aa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ST(Object(n),!0).forEach(function(r){Rg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ST(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wT(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,M4(r.key),r)}}function Kle(e,t,n){return t&&wT(e.prototype,t),n&&wT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gle(e,t,n){return t=Dm(t),Yle(e,P4()?Reflect.construct(t,n||[],Dm(e).constructor):t.apply(e,n))}function Yle(e,t){if(t&&(ic(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wle(e)}function Wle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P4=function(){return!!e})()}function Dm(e){return Dm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dm(e)}function Xle(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 Rg(e,t,n){return t=M4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M4(e){var t=Qle(e,"string");return ic(t)=="symbol"?t:t+""}function Qle(e,t){if(ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Zle(e,t){if(e==null)return{};var n=Jle(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Jle(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 ece(e){return e.value}function tce(e,t){if(_.isValidElement(e))return _.cloneElement(e,t);if(typeof e=="function")return _.createElement(e,t);t.ref;var n=Zle(t,Hle);return _.createElement(Bj,n)}var jT=1,na=function(e){function t(){var n;qle(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Gle(this,t,[].concat(a)),Rg(n,"lastBoundingBox",{width:-1,height:-1}),n}return Xle(t,e),Kle(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)>jT||Math.abs(a.height-this.lastBoundingBox.height)>jT)&&(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?Aa({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var a=this.props,i=a.layout,s=a.align,o=a.verticalAlign,l=a.margin,u=a.chartWidth,f=a.chartHeight,d,h;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(s==="center"&&i==="vertical"){var p=this.getBBoxSnapshot();d={left:((u||0)-p.width)/2}}else d=s==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(o==="middle"){var m=this.getBBoxSnapshot();h={top:((f||0)-m.height)/2}}else h=o==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Aa(Aa({},d),h)}},{key:"render",value:function(){var r=this,a=this.props,i=a.content,s=a.width,o=a.height,l=a.wrapperStyle,u=a.payloadUniqBy,f=a.payload,d=Aa(Aa({position:"absolute",width:s||"auto",height:o||"auto"},this.getDefaultPosition(l)),l);return _.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(p){r.wrapperNode=p}},tce(i,Aa(Aa({},this.props),{},{payload:_4(f,u,ece)})))}}],[{key:"getWithHeight",value:function(r,a){var i=Aa(Aa({},this.defaultProps),r.props),s=i.layout;return s==="vertical"&&G(r.props.height)?{height:r.props.height}:s==="horizontal"?{width:r.props.width||a}:null}}])}(A.PureComponent);Rg(na,"displayName","Legend");Rg(na,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var AT=Zd,nce=Fj,rce=Dn,OT=AT?AT.isConcatSpreadable:void 0;function ace(e){return rce(e)||nce(e)||!!(OT&&e&&e[OT])}var ice=ace,sce=v4,oce=ice;function R4(e,t,n,r,a){var i=-1,s=e.length;for(n||(n=oce),a||(a=[]);++i<s;){var o=e[i];t>0&&n(o)?t>1?R4(o,t-1,n,r,a):sce(a,o):r||(a[a.length]=o)}return a}var D4=R4;function lce(e){return function(t,n,r){for(var a=-1,i=Object(t),s=r(t),o=s.length;o--;){var l=s[e?o:++a];if(n(i[l],l,i)===!1)break}return t}}var cce=lce,uce=cce,fce=uce(),dce=fce,hce=dce,pce=Mg;function mce(e,t){return e&&hce(e,t,pce)}var k4=mce,yce=Jd;function gce(e,t){return function(n,r){if(n==null)return n;if(!yce(n))return e(n,r);for(var a=n.length,i=t?a:-1,s=Object(n);(t?i--:++i<a)&&r(s[i],i,s)!==!1;);return n}}var vce=gce,bce=k4,xce=vce,Sce=xce(bce),Kj=Sce,wce=Kj,jce=Jd;function Ace(e,t){var n=-1,r=jce(e)?Array(e.length):[];return wce(e,function(a,i,s){r[++n]=t(a,i,s)}),r}var $4=Ace;function Oce(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var Nce=Oce,NT=Hc;function Ece(e,t){if(e!==t){var n=e!==void 0,r=e===null,a=e===e,i=NT(e),s=t!==void 0,o=t===null,l=t===t,u=NT(t);if(!o&&!u&&!i&&e>t||i&&s&&l&&!o&&!u||r&&s&&l||!n&&l||!a)return 1;if(!r&&!i&&!u&&e<t||u&&n&&a&&!r&&!i||o&&n&&a||!s&&a||!l)return-1}return 0}var Tce=Ece,Cce=Tce;function _ce(e,t,n){for(var r=-1,a=e.criteria,i=t.criteria,s=a.length,o=n.length;++r<s;){var l=Cce(a[r],i[r]);if(l){if(r>=o)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}var Pce=_ce,_b=_j,Mce=Pj,Rce=ya,Dce=$4,kce=Nce,$ce=S4,Lce=Pce,zce=Zc,Ice=Dn;function Bce(e,t,n){t.length?t=_b(t,function(i){return Ice(i)?function(s){return Mce(s,i.length===1?i[0]:i)}:i}):t=[zce];var r=-1;t=_b(t,$ce(Rce));var a=Dce(e,function(i,s,o){var l=_b(t,function(u){return u(i)});return{criteria:l,index:++r,value:i}});return kce(a,function(i,s){return Lce(i,s,n)})}var Uce=Bce;function Fce(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Vce=Fce,Hce=Vce,ET=Math.max;function qce(e,t,n){return t=ET(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=ET(r.length-t,0),s=Array(i);++a<i;)s[a]=r[t+a];a=-1;for(var o=Array(t+1);++a<t;)o[a]=r[a];return o[t]=n(s),Hce(e,this,o)}}var Kce=qce;function Gce(e){return function(){return e}}var Yce=Gce,Wce=Oo,Xce=function(){try{var e=Wce(Object,"defineProperty");return e({},"",{}),e}catch{}}(),L4=Xce,Qce=Yce,TT=L4,Zce=Zc,Jce=TT?function(e,t){return TT(e,"toString",{configurable:!0,enumerable:!1,value:Qce(t),writable:!0})}:Zce,eue=Jce,tue=800,nue=16,rue=Date.now;function aue(e){var t=0,n=0;return function(){var r=rue(),a=nue-(r-n);if(n=r,a>0){if(++t>=tue)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var iue=aue,sue=eue,oue=iue,lue=oue(sue),cue=lue,uue=Zc,fue=Kce,due=cue;function hue(e,t){return due(fue(e,t,uue),e+"")}var pue=hue,mue=Nj,yue=Jd,gue=Vj,vue=ss;function bue(e,t,n){if(!vue(n))return!1;var r=typeof t;return(r=="number"?yue(n)&&gue(t,n.length):r=="string"&&t in n)?mue(n[t],e):!1}var Dg=bue,xue=D4,Sue=Uce,wue=pue,CT=Dg,jue=wue(function(e,t){if(e==null)return[];var n=t.length;return n>1&&CT(e,t[0],t[1])?t=[]:n>2&&CT(t[0],t[1],t[2])&&(t=[t[0]]),Sue(e,xue(t,1),[])}),Aue=jue;const Gj=Ie(Aue);function Ff(e){"@babel/helpers - typeof";return Ff=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},Ff(e)}function s1(){return s1=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},s1.apply(this,arguments)}function Oue(e,t){return Cue(e)||Tue(e,t)||Eue(e,t)||Nue()}function Nue(){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 Eue(e,t){if(e){if(typeof e=="string")return _T(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 _T(e,t)}}function _T(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 Tue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){u=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw a}}return o}}function Cue(e){if(Array.isArray(e))return e}function PT(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 Pb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PT(Object(n),!0).forEach(function(r){_ue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _ue(e,t,n){return t=Pue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pue(e){var t=Mue(e,"string");return Ff(t)=="symbol"?t:t+""}function Mue(e,t){if(Ff(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ff(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rue(e){return Array.isArray(e)&&$t(e[0])&&$t(e[1])?e.join(" ~ "):e}var Due=function(t){var n=t.separator,r=n===void 0?" : ":n,a=t.contentStyle,i=a===void 0?{}:a,s=t.itemStyle,o=s===void 0?{}:s,l=t.labelStyle,u=l===void 0?{}:l,f=t.payload,d=t.formatter,h=t.itemSorter,p=t.wrapperClassName,m=t.labelClassName,g=t.label,v=t.labelFormatter,y=t.accessibilityLayer,b=y===void 0?!1:y,x=function(){if(f&&f.length){var C={padding:0,margin:0},$=(h?Gj(f,h):f).map(function(D,k){if(D.type==="none")return null;var M=Pb({display:"block",paddingTop:4,paddingBottom:4,color:D.color||"#000"},o),L=D.formatter||d||Rue,I=D.value,F=D.name,q=I,W=F;if(L&&q!=null&&W!=null){var K=L(I,F,D,k,f);if(Array.isArray(K)){var ne=Oue(K,2);q=ne[0],W=ne[1]}else q=K}return _.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(k),style:M},$t(W)?_.createElement("span",{className:"recharts-tooltip-item-name"},W):null,$t(W)?_.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,_.createElement("span",{className:"recharts-tooltip-item-value"},q),_.createElement("span",{className:"recharts-tooltip-item-unit"},D.unit||""))});return _.createElement("ul",{className:"recharts-tooltip-item-list",style:C},$)}return null},w=Pb({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),S=Pb({margin:0},u),j=!me(g),O=j?g:"",N=be("recharts-default-tooltip",p),E=be("recharts-tooltip-label",m);j&&v&&f!==void 0&&f!==null&&(O=v(g,f));var T=b?{role:"status","aria-live":"assertive"}:{};return _.createElement("div",s1({className:N,style:w},T),_.createElement("p",{className:E,style:S},_.isValidElement(O)?O:"".concat(O)),x())};function Vf(e){"@babel/helpers - typeof";return Vf=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},Vf(e)}function zh(e,t,n){return t=kue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kue(e){var t=$ue(e,"string");return Vf(t)=="symbol"?t:t+""}function $ue(e,t){if(Vf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vu="recharts-tooltip-wrapper",Lue={visibility:"hidden"};function zue(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return be(vu,zh(zh(zh(zh({},"".concat(vu,"-right"),G(n)&&t&&G(t.x)&&n>=t.x),"".concat(vu,"-left"),G(n)&&t&&G(t.x)&&n<t.x),"".concat(vu,"-bottom"),G(r)&&t&&G(t.y)&&r>=t.y),"".concat(vu,"-top"),G(r)&&t&&G(t.y)&&r<t.y))}function MT(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,a=e.offsetTopLeft,i=e.position,s=e.reverseDirection,o=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(i&&G(i[r]))return i[r];var f=n[r]-o-a,d=n[r]+a;if(t[r])return s[r]?f:d;if(s[r]){var h=f,p=l[r];return h<p?Math.max(d,l[r]):Math.max(f,l[r])}var m=d+o,g=l[r]+u;return m>g?Math.max(f,l[r]):Math.max(d,l[r])}function Iue(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 Bue(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,i=e.reverseDirection,s=e.tooltipBox,o=e.useTranslate3d,l=e.viewBox,u,f,d;return s.height>0&&s.width>0&&n?(f=MT({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:s.width,viewBox:l,viewBoxDimension:l.width}),d=MT({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:s.height,viewBox:l,viewBoxDimension:l.height}),u=Iue({translateX:f,translateY:d,useTranslate3d:o})):u=Lue,{cssProperties:u,cssClasses:zue({translateX:f,translateY:d,coordinate:n})}}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 RT(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?RT(Object(n),!0).forEach(function(r){l1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,I4(r.key),r)}}function Vue(e,t,n){return t&&Fue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hue(e,t,n){return t=km(t),que(e,z4()?Reflect.construct(t,n||[],km(e).constructor):t.apply(e,n))}function que(e,t){if(t&&(sc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kue(e)}function Kue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(z4=function(){return!!e})()}function km(e){return km=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},km(e)}function Gue(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&&o1(e,t)}function o1(e,t){return o1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},o1(e,t)}function l1(e,t,n){return t=I4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I4(e){var t=Yue(e,"string");return sc(t)=="symbol"?t:t+""}function Yue(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 String(e)}var kT=1,Wue=function(e){function t(){var n;Uue(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Hue(this,t,[].concat(a)),l1(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),l1(n,"handleKeyDown",function(s){if(s.key==="Escape"){var o,l,u,f;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(o=(l=n.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&o!==void 0?o:0,y:(u=(f=n.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&u!==void 0?u:0}})}}),n}return Gue(t,e),Vue(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>kT||Math.abs(r.height-this.state.lastBoundingBox.height)>kT)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,a=this.props,i=a.active,s=a.allowEscapeViewBox,o=a.animationDuration,l=a.animationEasing,u=a.children,f=a.coordinate,d=a.hasPayload,h=a.isAnimationActive,p=a.offset,m=a.position,g=a.reverseDirection,v=a.useTranslate3d,y=a.viewBox,b=a.wrapperStyle,x=Bue({allowEscapeViewBox:s,coordinate:f,offsetTopLeft:p,position:m,reverseDirection:g,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:y}),w=x.cssClasses,S=x.cssProperties,j=DT(DT({transition:h&&i?"transform ".concat(o,"ms ").concat(l):void 0},S),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&d?"visible":"hidden",position:"absolute",top:0,left:0},b);return _.createElement("div",{tabIndex:-1,className:w,style:j,ref:function(N){r.wrapperNode=N}},u)}}])}(A.PureComponent),Xue=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},os={isSsr:Xue()};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 $T(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 LT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$T(Object(n),!0).forEach(function(r){Yj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$T(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Que(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zue(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 Jue(e,t,n){return t&&Zue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function efe(e,t,n){return t=$m(t),tfe(e,B4()?Reflect.construct(t,n||[],$m(e).constructor):t.apply(e,n))}function tfe(e,t){if(t&&(oc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nfe(e)}function nfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(B4=function(){return!!e})()}function $m(e){return $m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$m(e)}function rfe(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&&c1(e,t)}function c1(e,t){return c1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},c1(e,t)}function Yj(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=afe(e,"string");return oc(t)=="symbol"?t:t+""}function afe(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 String(e)}function ife(e){return e.dataKey}function sfe(e,t){return _.isValidElement(e)?_.cloneElement(e,t):typeof e=="function"?_.createElement(e,t):_.createElement(Due,t)}var Fn=function(e){function t(){return Que(this,t),efe(this,t,arguments)}return rfe(t,e),Jue(t,[{key:"render",value:function(){var r=this,a=this.props,i=a.active,s=a.allowEscapeViewBox,o=a.animationDuration,l=a.animationEasing,u=a.content,f=a.coordinate,d=a.filterNull,h=a.isAnimationActive,p=a.offset,m=a.payload,g=a.payloadUniqBy,v=a.position,y=a.reverseDirection,b=a.useTranslate3d,x=a.viewBox,w=a.wrapperStyle,S=m??[];d&&S.length&&(S=_4(m.filter(function(O){return O.value!=null&&(O.hide!==!0||r.props.includeHidden)}),g,ife));var j=S.length>0;return _.createElement(Wue,{allowEscapeViewBox:s,animationDuration:o,animationEasing:l,isAnimationActive:h,active:i,coordinate:f,hasPayload:j,offset:p,position:v,reverseDirection:y,useTranslate3d:b,viewBox:x,wrapperStyle:w},sfe(u,LT(LT({},this.props),{},{payload:S})))}}])}(A.PureComponent);Yj(Fn,"displayName","Tooltip");Yj(Fn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!os.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 ofe=ma,lfe=function(){return ofe.Date.now()},cfe=lfe,ufe=/\s/;function ffe(e){for(var t=e.length;t--&&ufe.test(e.charAt(t)););return t}var dfe=ffe,hfe=dfe,pfe=/^\s+/;function mfe(e){return e&&e.slice(0,hfe(e)+1).replace(pfe,"")}var yfe=mfe,gfe=yfe,zT=ss,vfe=Hc,IT=NaN,bfe=/^[-+]0x[0-9a-f]+$/i,xfe=/^0b[01]+$/i,Sfe=/^0o[0-7]+$/i,wfe=parseInt;function jfe(e){if(typeof e=="number")return e;if(vfe(e))return IT;if(zT(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=zT(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=gfe(e);var n=xfe.test(e);return n||Sfe.test(e)?wfe(e.slice(2),n?2:8):bfe.test(e)?IT:+e}var F4=jfe,Afe=ss,Mb=cfe,BT=F4,Ofe="Expected a function",Nfe=Math.max,Efe=Math.min;function Tfe(e,t,n){var r,a,i,s,o,l,u=0,f=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(Ofe);t=BT(t)||0,Afe(n)&&(f=!!n.leading,d="maxWait"in n,i=d?Nfe(BT(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function p(j){var O=r,N=a;return r=a=void 0,u=j,s=e.apply(N,O),s}function m(j){return u=j,o=setTimeout(y,t),f?p(j):s}function g(j){var O=j-l,N=j-u,E=t-O;return d?Efe(E,i-N):E}function v(j){var O=j-l,N=j-u;return l===void 0||O>=t||O<0||d&&N>=i}function y(){var j=Mb();if(v(j))return b(j);o=setTimeout(y,g(j))}function b(j){return o=void 0,h&&r?p(j):(r=a=void 0,s)}function x(){o!==void 0&&clearTimeout(o),u=0,r=l=a=o=void 0}function w(){return o===void 0?s:b(Mb())}function S(){var j=Mb(),O=v(j);if(r=arguments,a=this,l=j,O){if(o===void 0)return m(l);if(d)return clearTimeout(o),o=setTimeout(y,t),p(l)}return o===void 0&&(o=setTimeout(y,t)),s}return S.cancel=x,S.flush=w,S}var Cfe=Tfe,_fe=Cfe,Pfe=ss,Mfe="Expected a function";function Rfe(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(Mfe);return Pfe(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),_fe(e,t,{leading:r,maxWait:t,trailing:a})}var Dfe=Rfe;const V4=Ie(Dfe);function Hf(e){"@babel/helpers - typeof";return Hf=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},Hf(e)}function UT(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 Ih(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UT(Object(n),!0).forEach(function(r){kfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kfe(e,t,n){return t=$fe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $fe(e){var t=Lfe(e,"string");return Hf(t)=="symbol"?t:t+""}function Lfe(e,t){if(Hf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zfe(e,t){return Ffe(e)||Ufe(e,t)||Bfe(e,t)||Ife()}function Ife(){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 Bfe(e,t){if(e){if(typeof e=="string")return FT(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 FT(e,t)}}function FT(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 Ufe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){u=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw a}}return o}}function Ffe(e){if(Array.isArray(e))return e}var Bh=A.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,a=r===void 0?{width:-1,height:-1}:r,i=e.width,s=i===void 0?"100%":i,o=e.height,l=o===void 0?"100%":o,u=e.minWidth,f=u===void 0?0:u,d=e.minHeight,h=e.maxHeight,p=e.children,m=e.debounce,g=m===void 0?0:m,v=e.id,y=e.className,b=e.onResize,x=e.style,w=x===void 0?{}:x,S=A.useRef(null),j=A.useRef();j.current=b,A.useImperativeHandle(t,function(){return Object.defineProperty(S.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),S.current},configurable:!0})});var O=A.useState({containerWidth:a.width,containerHeight:a.height}),N=zfe(O,2),E=N[0],T=N[1],P=A.useCallback(function($,D){T(function(k){var M=Math.round($),L=Math.round(D);return k.containerWidth===M&&k.containerHeight===L?k:{containerWidth:M,containerHeight:L}})},[]);A.useEffect(function(){var $=function(F){var q,W=F[0].contentRect,K=W.width,ne=W.height;P(K,ne),(q=j.current)===null||q===void 0||q.call(j,K,ne)};g>0&&($=V4($,g,{trailing:!0,leading:!1}));var D=new ResizeObserver($),k=S.current.getBoundingClientRect(),M=k.width,L=k.height;return P(M,L),D.observe(S.current),function(){D.disconnect()}},[P,g]);var C=A.useMemo(function(){var $=E.containerWidth,D=E.containerHeight;if($<0||D<0)return null;Br(Ps(s)||Ps(l),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,s,l),Br(!n||n>0,"The aspect(%s) must be greater than zero.",n);var k=Ps(s)?$:s,M=Ps(l)?D:l;n&&n>0&&(k?M=k/n:M&&(k=M*n),h&&M>h&&(M=h)),Br(k>0||M>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.`,k,M,s,l,f,d,n);var L=!Array.isArray(p)&&qa(p.type).endsWith("Chart");return _.Children.map(p,function(I){return _.isValidElement(I)?A.cloneElement(I,Ih({width:k,height:M},L?{style:Ih({height:"100%",width:"100%",maxHeight:M,maxWidth:k},I.props.style)}:{})):I})},[n,p,l,h,d,f,E,s]);return _.createElement("div",{id:v?"".concat(v):void 0,className:be("recharts-responsive-container",y),style:Ih(Ih({},w),{},{width:s,height:l,minWidth:f,minHeight:d,maxHeight:h}),ref:S},C)}),kg=function(t){return null};kg.displayName="Cell";function qf(e){"@babel/helpers - typeof";return qf=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},qf(e)}function VT(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?VT(Object(n),!0).forEach(function(r){Vfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vfe(e,t,n){return t=Hfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hfe(e){var t=qfe(e,"string");return qf(t)=="symbol"?t:t+""}function qfe(e,t){if(qf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $o={widthCache:{},cacheCount:0},Kfe=2e3,Gfe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},HT="recharts_measurement_span";function Yfe(e){var t=u1({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var of=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||os.isSsr)return{width:0,height:0};var r=Yfe(n),a=JSON.stringify({text:t,copyStyle:r});if($o.widthCache[a])return $o.widthCache[a];try{var i=document.getElementById(HT);i||(i=document.createElement("span"),i.setAttribute("id",HT),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var s=u1(u1({},Gfe),r);Object.assign(i.style,s),i.textContent="".concat(t);var o=i.getBoundingClientRect(),l={width:o.width,height:o.height};return $o.widthCache[a]=l,++$o.cacheCount>Kfe&&($o.cacheCount=0,$o.widthCache={}),l}catch{return{width:0,height:0}}},Wfe=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Kf(e){"@babel/helpers - typeof";return Kf=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},Kf(e)}function Lm(e,t){return Jfe(e)||Zfe(e,t)||Qfe(e,t)||Xfe()}function Xfe(){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 Qfe(e,t){if(e){if(typeof e=="string")return qT(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 qT(e,t)}}function qT(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 Zfe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){u=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw a}}return o}}function Jfe(e){if(Array.isArray(e))return e}function ede(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KT(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,nde(r.key),r)}}function tde(e,t,n){return t&&KT(e.prototype,t),n&&KT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nde(e){var t=rde(e,"string");return Kf(t)=="symbol"?t:t+""}function rde(e,t){if(Kf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Kf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var GT=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,YT=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ade=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,ide=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,H4={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},sde=Object.keys(H4),cl="NaN";function ode(e,t){return e*H4[t]}var Uh=function(){function e(t,n){ede(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!ade.test(n)&&(this.num=NaN,this.unit=""),sde.includes(n)&&(this.num=ode(t,n),this.unit="px")}return tde(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=ide.exec(n))!==null&&r!==void 0?r:[],i=Lm(a,3),s=i[1],o=i[2];return new e(parseFloat(s),o??"")}}])}();function q4(e){if(e.includes(cl))return cl;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=GT.exec(t))!==null&&n!==void 0?n:[],a=Lm(r,4),i=a[1],s=a[2],o=a[3],l=Uh.parse(i??""),u=Uh.parse(o??""),f=s==="*"?l.multiply(u):l.divide(u);if(f.isNaN())return cl;t=t.replace(GT,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,h=(d=YT.exec(t))!==null&&d!==void 0?d:[],p=Lm(h,4),m=p[1],g=p[2],v=p[3],y=Uh.parse(m??""),b=Uh.parse(v??""),x=g==="+"?y.add(b):y.subtract(b);if(x.isNaN())return cl;t=t.replace(YT,x.toString())}return t}var WT=/\(([^()]*)\)/;function lde(e){for(var t=e;t.includes("(");){var n=WT.exec(t),r=Lm(n,2),a=r[1];t=t.replace(WT,q4(a))}return t}function cde(e){var t=e.replace(/\s+/g,"");return t=lde(t),t=q4(t),t}function ude(e){try{return cde(e)}catch{return cl}}function Rb(e){var t=ude(e.slice(5,-1));return t===cl?"":t}var fde=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],dde=["dx","dy","angle","className","breakAll"];function f1(){return f1=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},f1.apply(this,arguments)}function XT(e,t){if(e==null)return{};var n=hde(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hde(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 QT(e,t){return gde(e)||yde(e,t)||mde(e,t)||pde()}function pde(){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 mde(e,t){if(e){if(typeof e=="string")return ZT(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 ZT(e,t)}}function ZT(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 yde(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){u=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw a}}return o}}function gde(e){if(Array.isArray(e))return e}var K4=/[ \f\n\r\t\v\u2028\u2029]+/,G4=function(t){var n=t.children,r=t.breakAll,a=t.style;try{var i=[];me(n)||(r?i=n.toString().split(""):i=n.toString().split(K4));var s=i.map(function(l){return{word:l,width:of(l,a).width}}),o=r?0:of(" ",a).width;return{wordsWithComputedWidth:s,spaceWidth:o}}catch{return null}},vde=function(t,n,r,a,i){var s=t.maxLines,o=t.children,l=t.style,u=t.breakAll,f=G(s),d=o,h=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return k.reduce(function(M,L){var I=L.word,F=L.width,q=M[M.length-1];if(q&&(a==null||i||q.width+F+r<Number(a)))q.words.push(I),q.width+=F+r;else{var W={words:[I],width:F};M.push(W)}return M},[])},p=h(n),m=function(k){return k.reduce(function(M,L){return M.width>L.width?M:L})};if(!f)return p;for(var g="…",v=function(k){var M=d.slice(0,k),L=G4({breakAll:u,style:l,children:M+g}).wordsWithComputedWidth,I=h(L),F=I.length>s||m(I).width>Number(a);return[F,I]},y=0,b=d.length-1,x=0,w;y<=b&&x<=d.length-1;){var S=Math.floor((y+b)/2),j=S-1,O=v(j),N=QT(O,2),E=N[0],T=N[1],P=v(S),C=QT(P,1),$=C[0];if(!E&&!$&&(y=S+1),E&&$&&(b=S-1),!E&&$){w=T;break}x++}return w||p},JT=function(t){var n=me(t)?[]:t.toString().split(K4);return[{words:n}]},bde=function(t){var n=t.width,r=t.scaleToFit,a=t.children,i=t.style,s=t.breakAll,o=t.maxLines;if((n||r)&&!os.isSsr){var l,u,f=G4({breakAll:s,children:a,style:i});if(f){var d=f.wordsWithComputedWidth,h=f.spaceWidth;l=d,u=h}else return JT(a);return vde({breakAll:s,children:a,maxLines:o,style:i},l,u,n,r)}return JT(a)},eC="#808080",ho=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,s=t.lineHeight,o=s===void 0?"1em":s,l=t.capHeight,u=l===void 0?"0.71em":l,f=t.scaleToFit,d=f===void 0?!1:f,h=t.textAnchor,p=h===void 0?"start":h,m=t.verticalAnchor,g=m===void 0?"end":m,v=t.fill,y=v===void 0?eC:v,b=XT(t,fde),x=A.useMemo(function(){return bde({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:d,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,d,b.style,b.width]),w=b.dx,S=b.dy,j=b.angle,O=b.className,N=b.breakAll,E=XT(b,dde);if(!$t(r)||!$t(i))return null;var T=r+(G(w)?w:0),P=i+(G(S)?S:0),C;switch(g){case"start":C=Rb("calc(".concat(u,")"));break;case"middle":C=Rb("calc(".concat((x.length-1)/2," * -").concat(o," + (").concat(u," / 2))"));break;default:C=Rb("calc(".concat(x.length-1," * -").concat(o,")"));break}var $=[];if(d){var D=x[0].width,k=b.width;$.push("scale(".concat((G(k)?k/D:1)/D,")"))}return j&&$.push("rotate(".concat(j,", ").concat(T,", ").concat(P,")")),$.length&&(E.transform=$.join(" ")),_.createElement("text",f1({},ie(E,!0),{x:T,y:P,className:be("recharts-text",O),textAnchor:p,fill:y.includes("url")?eC:y}),x.map(function(M,L){var I=M.words.join(N?"":" ");return _.createElement("tspan",{x:T,dy:L===0?C:o,key:"".concat(I,"-").concat(L)},I)}))};function Wi(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function xde(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Wj(e){let t,n,r;e.length!==2?(t=Wi,n=(o,l)=>Wi(e(o),l),r=(o,l)=>e(o)-l):(t=e===Wi||e===xde?e:Sde,n=e,r=e);function a(o,l,u=0,f=o.length){if(u<f){if(t(l,l)!==0)return f;do{const d=u+f>>>1;n(o[d],l)<0?u=d+1:f=d}while(u<f)}return u}function i(o,l,u=0,f=o.length){if(u<f){if(t(l,l)!==0)return f;do{const d=u+f>>>1;n(o[d],l)<=0?u=d+1:f=d}while(u<f)}return u}function s(o,l,u=0,f=o.length){const d=a(o,l,u,f-1);return d>u&&r(o[d-1],l)>-r(o[d],l)?d-1:d}return{left:a,center:s,right:i}}function Sde(){return 0}function Y4(e){return e===null?NaN:+e}function*wde(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const jde=Wj(Wi),eh=jde.right;Wj(Y4).center;class tC extends Map{constructor(t,n=Nde){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(nC(this,t))}has(t){return super.has(nC(this,t))}set(t,n){return super.set(Ade(this,t),n)}delete(t){return super.delete(Ode(this,t))}}function nC({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Ade({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Ode({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Nde(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Ede(e=Wi){if(e===Wi)return W4;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 W4(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Tde=Math.sqrt(50),Cde=Math.sqrt(10),_de=Math.sqrt(2);function zm(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),s=i>=Tde?10:i>=Cde?5:i>=_de?2:1;let o,l,u;return a<0?(u=Math.pow(10,-a)/s,o=Math.round(e*u),l=Math.round(t*u),o/u<e&&++o,l/u>t&&--l,u=-u):(u=Math.pow(10,a)*s,o=Math.round(e/u),l=Math.round(t/u),o*u<e&&++o,l*u>t&&--l),l<o&&.5<=n&&n<2?zm(e,t,n*2):[o,l,u]}function d1(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,s]=r?zm(t,e,n):zm(e,t,n);if(!(i>=a))return[];const o=i-a+1,l=new Array(o);if(r)if(s<0)for(let u=0;u<o;++u)l[u]=(i-u)/-s;else for(let u=0;u<o;++u)l[u]=(i-u)*s;else if(s<0)for(let u=0;u<o;++u)l[u]=(a+u)/-s;else for(let u=0;u<o;++u)l[u]=(a+u)*s;return l}function h1(e,t,n){return t=+t,e=+e,n=+n,zm(e,t,n)[2]}function p1(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?h1(t,e,n):h1(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function rC(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function aC(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function X4(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?W4:Ede(a);r>n;){if(r-n>600){const l=r-n+1,u=t-n+1,f=Math.log(l),d=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*d*(l-d)/l)*(u-l/2<0?-1:1),p=Math.max(n,Math.floor(t-u*d/l+h)),m=Math.min(r,Math.floor(t+(l-u)*d/l+h));X4(e,t,p,m,a)}const i=e[t];let s=n,o=r;for(bu(e,n,t),a(e[r],i)>0&&bu(e,n,r);s<o;){for(bu(e,s,o),++s,--o;a(e[s],i)<0;)++s;for(;a(e[o],i)>0;)--o}a(e[n],i)===0?bu(e,n,o):(++o,bu(e,o,r)),o<=t&&(n=o+1),t<=o&&(r=o-1)}return e}function bu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Pde(e,t,n){if(e=Float64Array.from(wde(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return aC(e);if(t>=1)return rC(e);var r,a=(r-1)*t,i=Math.floor(a),s=rC(X4(e,i).subarray(0,i+1)),o=aC(e.subarray(i+1));return s+(o-s)*(a-i)}}function Mde(e,t,n=Y4){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),s=+n(e[i],i,e),o=+n(e[i+1],i+1,e);return s+(o-s)*(a-i)}}function Rde(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r<a;)i[r]=e+r*n;return i}function Tr(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 m1=Symbol("implicit");function Xj(){var e=new tC,t=[],n=[],r=m1;function a(i){let s=e.get(i);if(s===void 0){if(r!==m1)return r;e.set(i,s=t.push(i)-1)}return n[s%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new tC;for(const s of i)e.has(s)||e.set(s,t.push(s)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return Xj(t,n).unknown(r)},Tr.apply(a,arguments),a}function Gf(){var e=Xj().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,s,o=!1,l=0,u=0,f=.5;delete e.unknown;function d(){var h=t().length,p=a<r,m=p?a:r,g=p?r:a;i=(g-m)/Math.max(1,h-l+u*2),o&&(i=Math.floor(i)),m+=(g-m-i*(h-l))*f,s=i*(1-l),o&&(m=Math.round(m),s=Math.round(s));var v=Rde(h).map(function(y){return m+i*y});return n(p?v.reverse():v)}return e.domain=function(h){return arguments.length?(t(h),d()):t()},e.range=function(h){return arguments.length?([r,a]=h,r=+r,a=+a,d()):[r,a]},e.rangeRound=function(h){return[r,a]=h,r=+r,a=+a,o=!0,d()},e.bandwidth=function(){return s},e.step=function(){return i},e.round=function(h){return arguments.length?(o=!!h,d()):o},e.padding=function(h){return arguments.length?(l=Math.min(1,u=+h),d()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),d()):l},e.paddingOuter=function(h){return arguments.length?(u=+h,d()):u},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),d()):f},e.copy=function(){return Gf(t(),[r,a]).round(o).paddingInner(l).paddingOuter(u).align(f)},Tr.apply(d(),arguments)}function Q4(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Q4(t())},e}function lf(){return Q4(Gf.apply(null,arguments).paddingInner(1))}function Qj(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Z4(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function th(){}var Yf=.7,Im=1/Yf,Al="\\s*([+-]?\\d+)\\s*",Wf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",la="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Dde=/^#([0-9a-f]{3,8})$/,kde=new RegExp(`^rgb\\(${Al},${Al},${Al}\\)$`),$de=new RegExp(`^rgb\\(${la},${la},${la}\\)$`),Lde=new RegExp(`^rgba\\(${Al},${Al},${Al},${Wf}\\)$`),zde=new RegExp(`^rgba\\(${la},${la},${la},${Wf}\\)$`),Ide=new RegExp(`^hsl\\(${Wf},${la},${la}\\)$`),Bde=new RegExp(`^hsla\\(${Wf},${la},${la},${Wf}\\)$`),iC={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};Qj(th,Xf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:sC,formatHex:sC,formatHex8:Ude,formatHsl:Fde,formatRgb:oC,toString:oC});function sC(){return this.rgb().formatHex()}function Ude(){return this.rgb().formatHex8()}function Fde(){return J4(this).formatHsl()}function oC(){return this.rgb().formatRgb()}function Xf(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Dde.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?lC(t):n===3?new Cn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Fh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Fh(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=kde.exec(e))?new Cn(t[1],t[2],t[3],1):(t=$de.exec(e))?new Cn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Lde.exec(e))?Fh(t[1],t[2],t[3],t[4]):(t=zde.exec(e))?Fh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Ide.exec(e))?fC(t[1],t[2]/100,t[3]/100,1):(t=Bde.exec(e))?fC(t[1],t[2]/100,t[3]/100,t[4]):iC.hasOwnProperty(e)?lC(iC[e]):e==="transparent"?new Cn(NaN,NaN,NaN,0):null}function lC(e){return new Cn(e>>16&255,e>>8&255,e&255,1)}function Fh(e,t,n,r){return r<=0&&(e=t=n=NaN),new Cn(e,t,n,r)}function Vde(e){return e instanceof th||(e=Xf(e)),e?(e=e.rgb(),new Cn(e.r,e.g,e.b,e.opacity)):new Cn}function y1(e,t,n,r){return arguments.length===1?Vde(e):new Cn(e,t,n,r??1)}function Cn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Qj(Cn,y1,Z4(th,{brighter(e){return e=e==null?Im:Math.pow(Im,e),new Cn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Yf:Math.pow(Yf,e),new Cn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Cn(Zs(this.r),Zs(this.g),Zs(this.b),Bm(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:cC,formatHex:cC,formatHex8:Hde,formatRgb:uC,toString:uC}));function cC(){return`#${Ms(this.r)}${Ms(this.g)}${Ms(this.b)}`}function Hde(){return`#${Ms(this.r)}${Ms(this.g)}${Ms(this.b)}${Ms((isNaN(this.opacity)?1:this.opacity)*255)}`}function uC(){const e=Bm(this.opacity);return`${e===1?"rgb(":"rgba("}${Zs(this.r)}, ${Zs(this.g)}, ${Zs(this.b)}${e===1?")":`, ${e})`}`}function Bm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ms(e){return e=Zs(e),(e<16?"0":"")+e.toString(16)}function fC(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Lr(e,t,n,r)}function J4(e){if(e instanceof Lr)return new Lr(e.h,e.s,e.l,e.opacity);if(e instanceof th||(e=Xf(e)),!e)return new Lr;if(e instanceof Lr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),s=NaN,o=i-a,l=(i+a)/2;return o?(t===i?s=(n-r)/o+(n<r)*6:n===i?s=(r-t)/o+2:s=(t-n)/o+4,o/=l<.5?i+a:2-i-a,s*=60):o=l>0&&l<1?0:s,new Lr(s,o,l,e.opacity)}function qde(e,t,n,r){return arguments.length===1?J4(e):new Lr(e,t,n,r??1)}function Lr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Qj(Lr,qde,Z4(th,{brighter(e){return e=e==null?Im:Math.pow(Im,e),new Lr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Yf:Math.pow(Yf,e),new Lr(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 Cn(Db(e>=240?e-240:e+120,a,r),Db(e,a,r),Db(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Lr(dC(this.h),Vh(this.s),Vh(this.l),Bm(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=Bm(this.opacity);return`${e===1?"hsl(":"hsla("}${dC(this.h)}, ${Vh(this.s)*100}%, ${Vh(this.l)*100}%${e===1?")":`, ${e})`}`}}));function dC(e){return e=(e||0)%360,e<0?e+360:e}function Vh(e){return Math.max(0,Math.min(1,e||0))}function Db(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 Zj=e=>()=>e;function Kde(e,t){return function(n){return e+n*t}}function Gde(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 Yde(e){return(e=+e)==1?eL:function(t,n){return n-t?Gde(t,n,e):Zj(isNaN(t)?n:t)}}function eL(e,t){var n=t-e;return n?Kde(e,n):Zj(isNaN(e)?t:e)}const hC=function e(t){var n=Yde(t);function r(a,i){var s=n((a=y1(a)).r,(i=y1(i)).r),o=n(a.g,i.g),l=n(a.b,i.b),u=eL(a.opacity,i.opacity);return function(f){return a.r=s(f),a.g=o(f),a.b=l(f),a.opacity=u(f),a+""}}return r.gamma=e,r}(1);function Wde(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=e[a]*(1-i)+t[a]*i;return r}}function Xde(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Qde(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),s;for(s=0;s<r;++s)a[s]=Jc(e[s],t[s]);for(;s<n;++s)i[s]=t[s];return function(o){for(s=0;s<r;++s)i[s]=a[s](o);return i}}function Zde(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Um(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Jde(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]=Jc(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var g1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,kb=new RegExp(g1.source,"g");function ehe(e){return function(){return e}}function the(e){return function(t){return e(t)+""}}function nhe(e,t){var n=g1.lastIndex=kb.lastIndex=0,r,a,i,s=-1,o=[],l=[];for(e=e+"",t=t+"";(r=g1.exec(e))&&(a=kb.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),o[s]?o[s]+=i:o[++s]=i),(r=r[0])===(a=a[0])?o[s]?o[s]+=a:o[++s]=a:(o[++s]=null,l.push({i:s,x:Um(r,a)})),n=kb.lastIndex;return n<t.length&&(i=t.slice(n),o[s]?o[s]+=i:o[++s]=i),o.length<2?l[0]?the(l[0].x):ehe(t):(t=l.length,function(u){for(var f=0,d;f<t;++f)o[(d=l[f]).i]=d.x(u);return o.join("")})}function Jc(e,t){var n=typeof t,r;return t==null||n==="boolean"?Zj(t):(n==="number"?Um:n==="string"?(r=Xf(t))?(t=r,hC):nhe:t instanceof Xf?hC:t instanceof Date?Zde:Xde(t)?Wde:Array.isArray(t)?Qde:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Jde:Um)(e,t)}function Jj(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function rhe(e,t){t===void 0&&(t=e,e=Jc);for(var n=0,r=t.length-1,a=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(a,a=t[++n]);return function(s){var o=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return i[o](s-o)}}function ahe(e){return function(){return e}}function Fm(e){return+e}var pC=[0,1];function gn(e){return e}function v1(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:ahe(isNaN(t)?NaN:.5)}function ihe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function she(e,t,n){var r=e[0],a=e[1],i=t[0],s=t[1];return a<r?(r=v1(a,r),i=n(s,i)):(r=v1(r,a),i=n(i,s)),function(o){return i(r(o))}}function ohe(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)a[s]=v1(e[s],e[s+1]),i[s]=n(t[s],t[s+1]);return function(o){var l=eh(e,o,1,r)-1;return i[l](a[l](o))}}function nh(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function $g(){var e=pC,t=pC,n=Jc,r,a,i,s=gn,o,l,u;function f(){var h=Math.min(e.length,t.length);return s!==gn&&(s=ihe(e[0],e[h-1])),o=h>2?ohe:she,l=u=null,d}function d(h){return h==null||isNaN(h=+h)?i:(l||(l=o(e.map(r),t,n)))(r(s(h)))}return d.invert=function(h){return s(a((u||(u=o(t,e.map(r),Um)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,Fm),f()):e.slice()},d.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},d.rangeRound=function(h){return t=Array.from(h),n=Jj,f()},d.clamp=function(h){return arguments.length?(s=h?!0:gn,f()):s!==gn},d.interpolate=function(h){return arguments.length?(n=h,f()):n},d.unknown=function(h){return arguments.length?(i=h,d):i},function(h,p){return r=h,a=p,f()}}function eA(){return $g()(gn,gn)}function lhe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Vm(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 lc(e){return e=Vm(Math.abs(e)),e?e[1]:NaN}function che(e,t){return function(n,r){for(var a=n.length,i=[],s=0,o=e[0],l=0;a>0&&o>0&&(l+o+1>r&&(o=Math.max(1,r-l)),i.push(n.substring(a-=o,a+o)),!((l+=o+1)>r));)o=e[s=(s+1)%e.length];return i.reverse().join(t)}}function uhe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var fhe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Qf(e){if(!(t=fhe.exec(e)))throw new Error("invalid format: "+e);var t;return new tA({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]})}Qf.prototype=tA.prototype;function tA(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+""}tA.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 dhe(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 Hm;function hhe(e,t){var n=Vm(e,t);if(!n)return Hm=void 0,e.toPrecision(t);var r=n[0],a=n[1],i=a-(Hm=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,s=r.length;return i===s?r:i>s?r+new Array(i-s+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Vm(e,Math.max(0,t+i-1))[0]}function mC(e,t){var n=Vm(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 yC={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:lhe,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)=>mC(e*100,t),r:mC,s:hhe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function gC(e){return e}var vC=Array.prototype.map,bC=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function phe(e){var t=e.grouping===void 0||e.thousands===void 0?gC:che(vC.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?gC:uhe(vC.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",o=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(d,h){d=Qf(d);var p=d.fill,m=d.align,g=d.sign,v=d.symbol,y=d.zero,b=d.width,x=d.comma,w=d.precision,S=d.trim,j=d.type;j==="n"?(x=!0,j="g"):yC[j]||(w===void 0&&(w=12),S=!0,j="g"),(y||p==="0"&&m==="=")&&(y=!0,p="0",m="=");var O=(h&&h.prefix!==void 0?h.prefix:"")+(v==="$"?n:v==="#"&&/[boxX]/.test(j)?"0"+j.toLowerCase():""),N=(v==="$"?r:/[%p]/.test(j)?s:"")+(h&&h.suffix!==void 0?h.suffix:""),E=yC[j],T=/[defgprs%]/.test(j);w=w===void 0?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function P(C){var $=O,D=N,k,M,L;if(j==="c")D=E(C)+D,C="";else{C=+C;var I=C<0||1/C<0;if(C=isNaN(C)?l:E(Math.abs(C),w),S&&(C=dhe(C)),I&&+C==0&&g!=="+"&&(I=!1),$=(I?g==="("?g:o:g==="-"||g==="("?"":g)+$,D=(j==="s"&&!isNaN(C)&&Hm!==void 0?bC[8+Hm/3]:"")+D+(I&&g==="("?")":""),T){for(k=-1,M=C.length;++k<M;)if(L=C.charCodeAt(k),48>L||L>57){D=(L===46?a+C.slice(k+1):C.slice(k))+D,C=C.slice(0,k);break}}}x&&!y&&(C=t(C,1/0));var F=$.length+C.length+D.length,q=F<b?new Array(b-F+1).join(p):"";switch(x&&y&&(C=t(q+C,q.length?b-D.length:1/0),q=""),m){case"<":C=$+C+D+q;break;case"=":C=$+q+C+D;break;case"^":C=q.slice(0,F=q.length>>1)+$+C+D+q.slice(F);break;default:C=q+$+C+D;break}return i(C)}return P.toString=function(){return d+""},P}function f(d,h){var p=Math.max(-8,Math.min(8,Math.floor(lc(h)/3)))*3,m=Math.pow(10,-p),g=u((d=Qf(d),d.type="f",d),{suffix:bC[8+p/3]});return function(v){return g(m*v)}}return{format:u,formatPrefix:f}}var Hh,nA,tL;mhe({thousands:",",grouping:[3],currency:["$",""]});function mhe(e){return Hh=phe(e),nA=Hh.format,tL=Hh.formatPrefix,Hh}function yhe(e){return Math.max(0,-lc(Math.abs(e)))}function ghe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(lc(t)/3)))*3-lc(Math.abs(e)))}function vhe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,lc(t)-lc(e))+1}function nL(e,t,n,r){var a=p1(e,t,n),i;switch(r=Qf(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=ghe(a,s))&&(r.precision=i),tL(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=vhe(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=yhe(a))&&(r.precision=i-(r.type==="%")*2);break}}return nA(r)}function ls(e){var t=e.domain;return e.ticks=function(n){var r=t();return d1(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return nL(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,s=r[a],o=r[i],l,u,f=10;for(o<s&&(u=s,s=o,o=u,u=a,a=i,i=u);f-- >0;){if(u=h1(s,o,n),u===l)return r[a]=s,r[i]=o,t(r);if(u>0)s=Math.floor(s/u)*u,o=Math.ceil(o/u)*u;else if(u<0)s=Math.ceil(s*u)/u,o=Math.floor(o*u)/u;else break;l=u}return e},e}function qm(){var e=eA();return e.copy=function(){return nh(e,qm())},Tr.apply(e,arguments),ls(e)}function rL(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,Fm),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return rL(e).unknown(t)},e=arguments.length?Array.from(e,Fm):[0,1],ls(n)}function aL(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],s;return i<a&&(s=n,n=r,r=s,s=a,a=i,i=s),e[n]=t.floor(a),e[r]=t.ceil(i),e}function xC(e){return Math.log(e)}function SC(e){return Math.exp(e)}function bhe(e){return-Math.log(-e)}function xhe(e){return-Math.exp(-e)}function She(e){return isFinite(e)?+("1e"+e):e<0?0:e}function whe(e){return e===10?She:e===Math.E?Math.exp:t=>Math.pow(e,t)}function jhe(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 wC(e){return(t,n)=>-e(-t,n)}function rA(e){const t=e(xC,SC),n=t.domain;let r=10,a,i;function s(){return a=jhe(r),i=whe(r),n()[0]<0?(a=wC(a),i=wC(i),e(bhe,xhe)):e(xC,SC),t}return t.base=function(o){return arguments.length?(r=+o,s()):r},t.domain=function(o){return arguments.length?(n(o),s()):n()},t.ticks=o=>{const l=n();let u=l[0],f=l[l.length-1];const d=f<u;d&&([u,f]=[f,u]);let h=a(u),p=a(f),m,g;const v=o==null?10:+o;let y=[];if(!(r%1)&&p-h<v){if(h=Math.floor(h),p=Math.ceil(p),u>0){for(;h<=p;++h)for(m=1;m<r;++m)if(g=h<0?m/i(-h):m*i(h),!(g<u)){if(g>f)break;y.push(g)}}else for(;h<=p;++h)for(m=r-1;m>=1;--m)if(g=h>0?m/i(-h):m*i(h),!(g<u)){if(g>f)break;y.push(g)}y.length*2<v&&(y=d1(u,f,v))}else y=d1(h,p,Math.min(p-h,v)).map(i);return d?y.reverse():y},t.tickFormat=(o,l)=>{if(o==null&&(o=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Qf(l)).precision==null&&(l.trim=!0),l=nA(l)),o===1/0)return l;const u=Math.max(1,r*o/t.ticks().length);return f=>{let d=f/i(Math.round(a(f)));return d*r<r-.5&&(d*=r),d<=u?l(f):""}},t.nice=()=>n(aL(n(),{floor:o=>i(Math.floor(a(o))),ceil:o=>i(Math.ceil(a(o)))})),t}function iL(){const e=rA($g()).domain([1,10]);return e.copy=()=>nh(e,iL()).base(e.base()),Tr.apply(e,arguments),e}function jC(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function AC(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function aA(e){var t=1,n=e(jC(t),AC(t));return n.constant=function(r){return arguments.length?e(jC(t=+r),AC(t)):t},ls(n)}function sL(){var e=aA($g());return e.copy=function(){return nh(e,sL()).constant(e.constant())},Tr.apply(e,arguments)}function OC(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Ahe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Ohe(e){return e<0?-e*e:e*e}function iA(e){var t=e(gn,gn),n=1;function r(){return n===1?e(gn,gn):n===.5?e(Ahe,Ohe):e(OC(n),OC(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},ls(t)}function sA(){var e=iA($g());return e.copy=function(){return nh(e,sA()).exponent(e.exponent())},Tr.apply(e,arguments),e}function Nhe(){return sA.apply(null,arguments).exponent(.5)}function NC(e){return Math.sign(e)*e*e}function Ehe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function oL(){var e=eA(),t=[0,1],n=!1,r;function a(i){var s=Ehe(e(i));return isNaN(s)?r:n?Math.round(s):s}return a.invert=function(i){return e.invert(NC(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,Fm)).map(NC)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(n=!!i,a):n},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return oL(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Tr.apply(a,arguments),ls(a)}function lL(){var e=[],t=[],n=[],r;function a(){var s=0,o=Math.max(1,t.length);for(n=new Array(o-1);++s<o;)n[s-1]=Mde(e,s/o);return i}function i(s){return s==null||isNaN(s=+s)?r:t[eh(n,s)]}return i.invertExtent=function(s){var o=t.indexOf(s);return o<0?[NaN,NaN]:[o>0?n[o-1]:e[0],o<n.length?n[o]:e[e.length-1]]},i.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let o of s)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(Wi),a()},i.range=function(s){return arguments.length?(t=Array.from(s),a()):t.slice()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.quantiles=function(){return n.slice()},i.copy=function(){return lL().domain(e).range(t).unknown(r)},Tr.apply(i,arguments)}function cL(){var e=0,t=1,n=1,r=[.5],a=[0,1],i;function s(l){return l!=null&&l<=l?a[eh(r,l,0,n)]:i}function o(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return s}return s.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,o()):[e,t]},s.range=function(l){return arguments.length?(n=(a=Array.from(l)).length-1,o()):a.slice()},s.invertExtent=function(l){var u=a.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},s.unknown=function(l){return arguments.length&&(i=l),s},s.thresholds=function(){return r.slice()},s.copy=function(){return cL().domain([e,t]).range(a).unknown(i)},Tr.apply(ls(s),arguments)}function uL(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[eh(e,i,0,r)]:n}return a.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var s=t.indexOf(i);return[e[s-1],e[s]]},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return uL().domain(e).range(t).unknown(n)},Tr.apply(a,arguments)}const $b=new Date,Lb=new Date;function zt(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const s=a(i),o=a.ceil(i);return i-s<o-i?s:o},a.offset=(i,s)=>(t(i=new Date(+i),s==null?1:Math.floor(s)),i),a.range=(i,s,o)=>{const l=[];if(i=a.ceil(i),o=o==null?1:Math.floor(o),!(i<s)||!(o>0))return l;let u;do l.push(u=new Date(+i)),t(i,o),e(i);while(u<i&&i<s);return l},a.filter=i=>zt(s=>{if(s>=s)for(;e(s),!i(s);)s.setTime(s-1)},(s,o)=>{if(s>=s)if(o<0)for(;++o<=0;)for(;t(s,-1),!i(s););else for(;--o>=0;)for(;t(s,1),!i(s););}),n&&(a.count=(i,s)=>($b.setTime(+i),Lb.setTime(+s),e($b),e(Lb),Math.floor(n($b,Lb))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?s=>r(s)%i===0:s=>a.count(0,s)%i===0):a)),a}const Km=zt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Km.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?zt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Km);Km.range;const ka=1e3,gr=ka*60,$a=gr*60,ei=$a*24,oA=ei*7,EC=ei*30,zb=ei*365,Rs=zt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ka)},(e,t)=>(t-e)/ka,e=>e.getUTCSeconds());Rs.range;const lA=zt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ka)},(e,t)=>{e.setTime(+e+t*gr)},(e,t)=>(t-e)/gr,e=>e.getMinutes());lA.range;const cA=zt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*gr)},(e,t)=>(t-e)/gr,e=>e.getUTCMinutes());cA.range;const uA=zt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ka-e.getMinutes()*gr)},(e,t)=>{e.setTime(+e+t*$a)},(e,t)=>(t-e)/$a,e=>e.getHours());uA.range;const fA=zt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*$a)},(e,t)=>(t-e)/$a,e=>e.getUTCHours());fA.range;const rh=zt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*gr)/ei,e=>e.getDate()-1);rh.range;const Lg=zt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ei,e=>e.getUTCDate()-1);Lg.range;const fL=zt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ei,e=>Math.floor(e/ei));fL.range;function Eo(e){return zt(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())*gr)/oA)}const zg=Eo(0),Gm=Eo(1),The=Eo(2),Che=Eo(3),cc=Eo(4),_he=Eo(5),Phe=Eo(6);zg.range;Gm.range;The.range;Che.range;cc.range;_he.range;Phe.range;function To(e){return zt(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)/oA)}const Ig=To(0),Ym=To(1),Mhe=To(2),Rhe=To(3),uc=To(4),Dhe=To(5),khe=To(6);Ig.range;Ym.range;Mhe.range;Rhe.range;uc.range;Dhe.range;khe.range;const dA=zt(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());dA.range;const hA=zt(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());hA.range;const ti=zt(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());ti.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:zt(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)});ti.range;const ni=zt(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:zt(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 dL(e,t,n,r,a,i){const s=[[Rs,1,ka],[Rs,5,5*ka],[Rs,15,15*ka],[Rs,30,30*ka],[i,1,gr],[i,5,5*gr],[i,15,15*gr],[i,30,30*gr],[a,1,$a],[a,3,3*$a],[a,6,6*$a],[a,12,12*$a],[r,1,ei],[r,2,2*ei],[n,1,oA],[t,1,EC],[t,3,3*EC],[e,1,zb]];function o(u,f,d){const h=f<u;h&&([u,f]=[f,u]);const p=d&&typeof d.range=="function"?d:l(u,f,d),m=p?p.range(u,+f+1):[];return h?m.reverse():m}function l(u,f,d){const h=Math.abs(f-u)/d,p=Wj(([,,v])=>v).right(s,h);if(p===s.length)return e.every(p1(u/zb,f/zb,d));if(p===0)return Km.every(Math.max(p1(u,f,d),1));const[m,g]=s[h/s[p-1][2]<s[p][2]/h?p-1:p];return m.every(g)}return[o,l]}const[$he,Lhe]=dL(ni,hA,Ig,fL,fA,cA),[zhe,Ihe]=dL(ti,dA,zg,rh,uA,lA);function Ib(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 Bb(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 xu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Bhe(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,s=e.shortDays,o=e.months,l=e.shortMonths,u=Su(a),f=wu(a),d=Su(i),h=wu(i),p=Su(s),m=wu(s),g=Su(o),v=wu(o),y=Su(l),b=wu(l),x={a:L,A:I,b:F,B:q,c:null,d:RC,e:RC,f:cpe,g:bpe,G:Spe,H:spe,I:ope,j:lpe,L:hL,m:upe,M:fpe,p:W,q:K,Q:$C,s:LC,S:dpe,u:hpe,U:ppe,V:mpe,w:ype,W:gpe,x:null,X:null,y:vpe,Y:xpe,Z:wpe,"%":kC},w={a:ne,A:J,b:ye,B:ee,c:null,d:DC,e:DC,f:Npe,g:$pe,G:zpe,H:jpe,I:Ape,j:Ope,L:mL,m:Epe,M:Tpe,p:ot,q:He,Q:$C,s:LC,S:Cpe,u:_pe,U:Ppe,V:Mpe,w:Rpe,W:Dpe,x:null,X:null,y:kpe,Y:Lpe,Z:Ipe,"%":kC},S={a:T,A:P,b:C,B:$,c:D,d:PC,e:PC,f:npe,g:_C,G:CC,H:MC,I:MC,j:Zhe,L:tpe,m:Qhe,M:Jhe,p:E,q:Xhe,Q:ape,s:ipe,S:epe,u:qhe,U:Khe,V:Ghe,w:Hhe,W:Yhe,x:k,X:M,y:_C,Y:CC,Z:Whe,"%":rpe};x.x=j(n,x),x.X=j(r,x),x.c=j(t,x),w.x=j(n,w),w.X=j(r,w),w.c=j(t,w);function j(Y,oe){return function(X){var V=[],_e=-1,ge=0,Xe=Y.length,lt,dt,kn;for(X instanceof Date||(X=new Date(+X));++_e<Xe;)Y.charCodeAt(_e)===37&&(V.push(Y.slice(ge,_e)),(dt=TC[lt=Y.charAt(++_e)])!=null?lt=Y.charAt(++_e):dt=lt==="e"?" ":"0",(kn=oe[lt])&&(lt=kn(X,dt)),V.push(lt),ge=_e+1);return V.push(Y.slice(ge,_e)),V.join("")}}function O(Y,oe){return function(X){var V=xu(1900,void 0,1),_e=N(V,Y,X+="",0),ge,Xe;if(_e!=X.length)return null;if("Q"in V)return new Date(V.Q);if("s"in V)return new Date(V.s*1e3+("L"in V?V.L:0));if(oe&&!("Z"in V)&&(V.Z=0),"p"in V&&(V.H=V.H%12+V.p*12),V.m===void 0&&(V.m="q"in V?V.q:0),"V"in V){if(V.V<1||V.V>53)return null;"w"in V||(V.w=1),"Z"in V?(ge=Bb(xu(V.y,0,1)),Xe=ge.getUTCDay(),ge=Xe>4||Xe===0?Ym.ceil(ge):Ym(ge),ge=Lg.offset(ge,(V.V-1)*7),V.y=ge.getUTCFullYear(),V.m=ge.getUTCMonth(),V.d=ge.getUTCDate()+(V.w+6)%7):(ge=Ib(xu(V.y,0,1)),Xe=ge.getDay(),ge=Xe>4||Xe===0?Gm.ceil(ge):Gm(ge),ge=rh.offset(ge,(V.V-1)*7),V.y=ge.getFullYear(),V.m=ge.getMonth(),V.d=ge.getDate()+(V.w+6)%7)}else("W"in V||"U"in V)&&("w"in V||(V.w="u"in V?V.u%7:"W"in V?1:0),Xe="Z"in V?Bb(xu(V.y,0,1)).getUTCDay():Ib(xu(V.y,0,1)).getDay(),V.m=0,V.d="W"in V?(V.w+6)%7+V.W*7-(Xe+5)%7:V.w+V.U*7-(Xe+6)%7);return"Z"in V?(V.H+=V.Z/100|0,V.M+=V.Z%100,Bb(V)):Ib(V)}}function N(Y,oe,X,V){for(var _e=0,ge=oe.length,Xe=X.length,lt,dt;_e<ge;){if(V>=Xe)return-1;if(lt=oe.charCodeAt(_e++),lt===37){if(lt=oe.charAt(_e++),dt=S[lt in TC?oe.charAt(_e++):lt],!dt||(V=dt(Y,X,V))<0)return-1}else if(lt!=X.charCodeAt(V++))return-1}return V}function E(Y,oe,X){var V=u.exec(oe.slice(X));return V?(Y.p=f.get(V[0].toLowerCase()),X+V[0].length):-1}function T(Y,oe,X){var V=p.exec(oe.slice(X));return V?(Y.w=m.get(V[0].toLowerCase()),X+V[0].length):-1}function P(Y,oe,X){var V=d.exec(oe.slice(X));return V?(Y.w=h.get(V[0].toLowerCase()),X+V[0].length):-1}function C(Y,oe,X){var V=y.exec(oe.slice(X));return V?(Y.m=b.get(V[0].toLowerCase()),X+V[0].length):-1}function $(Y,oe,X){var V=g.exec(oe.slice(X));return V?(Y.m=v.get(V[0].toLowerCase()),X+V[0].length):-1}function D(Y,oe,X){return N(Y,t,oe,X)}function k(Y,oe,X){return N(Y,n,oe,X)}function M(Y,oe,X){return N(Y,r,oe,X)}function L(Y){return s[Y.getDay()]}function I(Y){return i[Y.getDay()]}function F(Y){return l[Y.getMonth()]}function q(Y){return o[Y.getMonth()]}function W(Y){return a[+(Y.getHours()>=12)]}function K(Y){return 1+~~(Y.getMonth()/3)}function ne(Y){return s[Y.getUTCDay()]}function J(Y){return i[Y.getUTCDay()]}function ye(Y){return l[Y.getUTCMonth()]}function ee(Y){return o[Y.getUTCMonth()]}function ot(Y){return a[+(Y.getUTCHours()>=12)]}function He(Y){return 1+~~(Y.getUTCMonth()/3)}return{format:function(Y){var oe=j(Y+="",x);return oe.toString=function(){return Y},oe},parse:function(Y){var oe=O(Y+="",!1);return oe.toString=function(){return Y},oe},utcFormat:function(Y){var oe=j(Y+="",w);return oe.toString=function(){return Y},oe},utcParse:function(Y){var oe=O(Y+="",!0);return oe.toString=function(){return Y},oe}}}var TC={"-":"",_:" ",0:"0"},Wt=/^\s*\d+/,Uhe=/^%/,Fhe=/[\\^$*+?|[\]().{}]/g;function Pe(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function Vhe(e){return e.replace(Fhe,"\\$&")}function Su(e){return new RegExp("^(?:"+e.map(Vhe).join("|")+")","i")}function wu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Hhe(e,t,n){var r=Wt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function qhe(e,t,n){var r=Wt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Khe(e,t,n){var r=Wt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Ghe(e,t,n){var r=Wt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Yhe(e,t,n){var r=Wt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function CC(e,t,n){var r=Wt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function _C(e,t,n){var r=Wt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Whe(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 Xhe(e,t,n){var r=Wt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Qhe(e,t,n){var r=Wt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function PC(e,t,n){var r=Wt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Zhe(e,t,n){var r=Wt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function MC(e,t,n){var r=Wt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Jhe(e,t,n){var r=Wt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function epe(e,t,n){var r=Wt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function tpe(e,t,n){var r=Wt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function npe(e,t,n){var r=Wt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function rpe(e,t,n){var r=Uhe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ape(e,t,n){var r=Wt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ipe(e,t,n){var r=Wt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function RC(e,t){return Pe(e.getDate(),t,2)}function spe(e,t){return Pe(e.getHours(),t,2)}function ope(e,t){return Pe(e.getHours()%12||12,t,2)}function lpe(e,t){return Pe(1+rh.count(ti(e),e),t,3)}function hL(e,t){return Pe(e.getMilliseconds(),t,3)}function cpe(e,t){return hL(e,t)+"000"}function upe(e,t){return Pe(e.getMonth()+1,t,2)}function fpe(e,t){return Pe(e.getMinutes(),t,2)}function dpe(e,t){return Pe(e.getSeconds(),t,2)}function hpe(e){var t=e.getDay();return t===0?7:t}function ppe(e,t){return Pe(zg.count(ti(e)-1,e),t,2)}function pL(e){var t=e.getDay();return t>=4||t===0?cc(e):cc.ceil(e)}function mpe(e,t){return e=pL(e),Pe(cc.count(ti(e),e)+(ti(e).getDay()===4),t,2)}function ype(e){return e.getDay()}function gpe(e,t){return Pe(Gm.count(ti(e)-1,e),t,2)}function vpe(e,t){return Pe(e.getFullYear()%100,t,2)}function bpe(e,t){return e=pL(e),Pe(e.getFullYear()%100,t,2)}function xpe(e,t){return Pe(e.getFullYear()%1e4,t,4)}function Spe(e,t){var n=e.getDay();return e=n>=4||n===0?cc(e):cc.ceil(e),Pe(e.getFullYear()%1e4,t,4)}function wpe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Pe(t/60|0,"0",2)+Pe(t%60,"0",2)}function DC(e,t){return Pe(e.getUTCDate(),t,2)}function jpe(e,t){return Pe(e.getUTCHours(),t,2)}function Ape(e,t){return Pe(e.getUTCHours()%12||12,t,2)}function Ope(e,t){return Pe(1+Lg.count(ni(e),e),t,3)}function mL(e,t){return Pe(e.getUTCMilliseconds(),t,3)}function Npe(e,t){return mL(e,t)+"000"}function Epe(e,t){return Pe(e.getUTCMonth()+1,t,2)}function Tpe(e,t){return Pe(e.getUTCMinutes(),t,2)}function Cpe(e,t){return Pe(e.getUTCSeconds(),t,2)}function _pe(e){var t=e.getUTCDay();return t===0?7:t}function Ppe(e,t){return Pe(Ig.count(ni(e)-1,e),t,2)}function yL(e){var t=e.getUTCDay();return t>=4||t===0?uc(e):uc.ceil(e)}function Mpe(e,t){return e=yL(e),Pe(uc.count(ni(e),e)+(ni(e).getUTCDay()===4),t,2)}function Rpe(e){return e.getUTCDay()}function Dpe(e,t){return Pe(Ym.count(ni(e)-1,e),t,2)}function kpe(e,t){return Pe(e.getUTCFullYear()%100,t,2)}function $pe(e,t){return e=yL(e),Pe(e.getUTCFullYear()%100,t,2)}function Lpe(e,t){return Pe(e.getUTCFullYear()%1e4,t,4)}function zpe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?uc(e):uc.ceil(e),Pe(e.getUTCFullYear()%1e4,t,4)}function Ipe(){return"+0000"}function kC(){return"%"}function $C(e){return+e}function LC(e){return Math.floor(+e/1e3)}var Lo,gL,vL;Bpe({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 Bpe(e){return Lo=Bhe(e),gL=Lo.format,Lo.parse,vL=Lo.utcFormat,Lo.utcParse,Lo}function Upe(e){return new Date(e)}function Fpe(e){return e instanceof Date?+e:+new Date(+e)}function pA(e,t,n,r,a,i,s,o,l,u){var f=eA(),d=f.invert,h=f.domain,p=u(".%L"),m=u(":%S"),g=u("%I:%M"),v=u("%I %p"),y=u("%a %d"),b=u("%b %d"),x=u("%B"),w=u("%Y");function S(j){return(l(j)<j?p:o(j)<j?m:s(j)<j?g:i(j)<j?v:r(j)<j?a(j)<j?y:b:n(j)<j?x:w)(j)}return f.invert=function(j){return new Date(d(j))},f.domain=function(j){return arguments.length?h(Array.from(j,Fpe)):h().map(Upe)},f.ticks=function(j){var O=h();return e(O[0],O[O.length-1],j??10)},f.tickFormat=function(j,O){return O==null?S:u(O)},f.nice=function(j){var O=h();return(!j||typeof j.range!="function")&&(j=t(O[0],O[O.length-1],j??10)),j?h(aL(O,j)):f},f.copy=function(){return nh(f,pA(e,t,n,r,a,i,s,o,l,u))},f}function Vpe(){return Tr.apply(pA(zhe,Ihe,ti,dA,zg,rh,uA,lA,Rs,gL).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Hpe(){return Tr.apply(pA($he,Lhe,ni,hA,Ig,Lg,fA,cA,Rs,vL).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Bg(){var e=0,t=1,n,r,a,i,s=gn,o=!1,l;function u(d){return d==null||isNaN(d=+d)?l:s(a===0?.5:(d=(i(d)-n)*a,o?Math.max(0,Math.min(1,d)):d))}u.domain=function(d){return arguments.length?([e,t]=d,n=i(e=+e),r=i(t=+t),a=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(d){return arguments.length?(o=!!d,u):o},u.interpolator=function(d){return arguments.length?(s=d,u):s};function f(d){return function(h){var p,m;return arguments.length?([p,m]=h,s=d(p,m),u):[s(0),s(1)]}}return u.range=f(Jc),u.rangeRound=f(Jj),u.unknown=function(d){return arguments.length?(l=d,u):l},function(d){return i=d,n=d(e),r=d(t),a=n===r?0:1/(r-n),u}}function cs(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function bL(){var e=ls(Bg()(gn));return e.copy=function(){return cs(e,bL())},li.apply(e,arguments)}function xL(){var e=rA(Bg()).domain([1,10]);return e.copy=function(){return cs(e,xL()).base(e.base())},li.apply(e,arguments)}function SL(){var e=aA(Bg());return e.copy=function(){return cs(e,SL()).constant(e.constant())},li.apply(e,arguments)}function mA(){var e=iA(Bg());return e.copy=function(){return cs(e,mA()).exponent(e.exponent())},li.apply(e,arguments)}function qpe(){return mA.apply(null,arguments).exponent(.5)}function wL(){var e=[],t=gn;function n(r){if(r!=null&&!isNaN(r=+r))return t((eh(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(Wi),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,a)=>t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,i)=>Pde(e,i/r))},n.copy=function(){return wL(t).domain(e)},li.apply(n,arguments)}function Ug(){var e=0,t=.5,n=1,r=1,a,i,s,o,l,u=gn,f,d=!1,h;function p(g){return isNaN(g=+g)?h:(g=.5+((g=+f(g))-i)*(r*g<r*i?o:l),u(d?Math.max(0,Math.min(1,g)):g))}p.domain=function(g){return arguments.length?([e,t,n]=g,a=f(e=+e),i=f(t=+t),s=f(n=+n),o=a===i?0:.5/(i-a),l=i===s?0:.5/(s-i),r=i<a?-1:1,p):[e,t,n]},p.clamp=function(g){return arguments.length?(d=!!g,p):d},p.interpolator=function(g){return arguments.length?(u=g,p):u};function m(g){return function(v){var y,b,x;return arguments.length?([y,b,x]=v,u=rhe(g,[y,b,x]),p):[u(0),u(.5),u(1)]}}return p.range=m(Jc),p.rangeRound=m(Jj),p.unknown=function(g){return arguments.length?(h=g,p):h},function(g){return f=g,a=g(e),i=g(t),s=g(n),o=a===i?0:.5/(i-a),l=i===s?0:.5/(s-i),r=i<a?-1:1,p}}function jL(){var e=ls(Ug()(gn));return e.copy=function(){return cs(e,jL())},li.apply(e,arguments)}function AL(){var e=rA(Ug()).domain([.1,1,10]);return e.copy=function(){return cs(e,AL()).base(e.base())},li.apply(e,arguments)}function OL(){var e=aA(Ug());return e.copy=function(){return cs(e,OL()).constant(e.constant())},li.apply(e,arguments)}function yA(){var e=iA(Ug());return e.copy=function(){return cs(e,yA()).exponent(e.exponent())},li.apply(e,arguments)}function Kpe(){return yA.apply(null,arguments).exponent(.5)}const zC=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Gf,scaleDiverging:jL,scaleDivergingLog:AL,scaleDivergingPow:yA,scaleDivergingSqrt:Kpe,scaleDivergingSymlog:OL,scaleIdentity:rL,scaleImplicit:m1,scaleLinear:qm,scaleLog:iL,scaleOrdinal:Xj,scalePoint:lf,scalePow:sA,scaleQuantile:lL,scaleQuantize:cL,scaleRadial:oL,scaleSequential:bL,scaleSequentialLog:xL,scaleSequentialPow:mA,scaleSequentialQuantile:wL,scaleSequentialSqrt:qpe,scaleSequentialSymlog:SL,scaleSqrt:Nhe,scaleSymlog:sL,scaleThreshold:uL,scaleTime:Vpe,scaleUtc:Hpe,tickFormat:nL},Symbol.toStringTag,{value:"Module"}));var Gpe=Hc;function Ype(e,t,n){for(var r=-1,a=e.length;++r<a;){var i=e[r],s=t(i);if(s!=null&&(o===void 0?s===s&&!Gpe(s):n(s,o)))var o=s,l=i}return l}var Fg=Ype;function Wpe(e,t){return e>t}var NL=Wpe,Xpe=Fg,Qpe=NL,Zpe=Zc;function Jpe(e){return e&&e.length?Xpe(e,Zpe,Qpe):void 0}var eme=Jpe;const Li=Ie(eme);function tme(e,t){return e<t}var EL=tme,nme=Fg,rme=EL,ame=Zc;function ime(e){return e&&e.length?nme(e,ame,rme):void 0}var sme=ime;const Vg=Ie(sme);var ome=_j,lme=ya,cme=$4,ume=Dn;function fme(e,t){var n=ume(e)?ome:cme;return n(e,lme(t))}var dme=fme,hme=D4,pme=dme;function mme(e,t){return hme(pme(e,t),1)}var yme=mme;const gme=Ie(yme);var vme=qj;function bme(e,t){return vme(e,t)}var xme=bme;const po=Ie(xme);var eu=1e9,Sme={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},vA,ut=!0,Ar="[DecimalError] ",Js=Ar+"Invalid argument: ",gA=Ar+"Exponent out of range: ",tu=Math.floor,Os=Math.pow,wme=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,qn,Ft=1e7,rt=7,TL=9007199254740991,Wm=tu(TL/rt),re={};re.absoluteValue=re.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};re.comparedTo=re.cmp=function(e){var t,n,r,a,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(r=i.d.length,a=e.d.length,t=0,n=r<a?r:a;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===a?0:r>a^i.s<0?1:-1};re.decimalPlaces=re.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*rt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};re.dividedBy=re.div=function(e){return Ka(this,new this.constructor(e))};re.dividedToIntegerBy=re.idiv=function(e){var t=this,n=t.constructor;return Ye(Ka(t,new n(e),0,1),n.precision)};re.equals=re.eq=function(e){return!this.cmp(e)};re.exponent=function(){return Pt(this)};re.greaterThan=re.gt=function(e){return this.cmp(e)>0};re.greaterThanOrEqualTo=re.gte=function(e){return this.cmp(e)>=0};re.isInteger=re.isint=function(){return this.e>this.d.length-2};re.isNegative=re.isneg=function(){return this.s<0};re.isPositive=re.ispos=function(){return this.s>0};re.isZero=function(){return this.s===0};re.lessThan=re.lt=function(e){return this.cmp(e)<0};re.lessThanOrEqualTo=re.lte=function(e){return this.cmp(e)<1};re.logarithm=re.log=function(e){var t,n=this,r=n.constructor,a=r.precision,i=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(qn))throw Error(Ar+"NaN");if(n.s<1)throw Error(Ar+(n.s?"NaN":"-Infinity"));return n.eq(qn)?new r(0):(ut=!1,t=Ka(Zf(n,i),Zf(e,i),i),ut=!0,Ye(t,a))};re.minus=re.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?PL(t,e):CL(t,(e.s=-e.s,e))};re.modulo=re.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(Ar+"NaN");return n.s?(ut=!1,t=Ka(n,e,0,1).times(e),ut=!0,n.minus(t)):Ye(new r(n),a)};re.naturalExponential=re.exp=function(){return _L(this)};re.naturalLogarithm=re.ln=function(){return Zf(this)};re.negated=re.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};re.plus=re.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?CL(t,e):PL(t,(e.s=-e.s,e))};re.precision=re.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Js+e);if(t=Pt(a)+1,r=a.d.length-1,n=r*rt+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};re.squareRoot=re.sqrt=function(){var e,t,n,r,a,i,s,o=this,l=o.constructor;if(o.s<1){if(!o.s)return new l(0);throw Error(Ar+"NaN")}for(e=Pt(o),ut=!1,a=Math.sqrt(+o),a==0||a==1/0?(t=ra(o.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=tu((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 l(t)):r=new l(a.toString()),n=l.precision,a=s=n+3;;)if(i=r,r=i.plus(Ka(o,i,s+2)).times(.5),ra(i.d).slice(0,s)===(t=ra(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),a==s&&t=="4999"){if(Ye(i,n+1,0),i.times(i).eq(o)){r=i;break}}else if(t!="9999")break;s+=4}return ut=!0,Ye(r,n)};re.times=re.mul=function(e){var t,n,r,a,i,s,o,l,u,f=this,d=f.constructor,h=f.d,p=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,n=f.e+e.e,l=h.length,u=p.length,l<u&&(i=h,h=p,p=i,s=l,l=u,u=s),i=[],s=l+u,r=s;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,a=l+r;a>r;)o=i[a]+p[r]*h[a-r-1]+t,i[a--]=o%Ft|0,t=o/Ft|0;i[a]=(i[a]+t)%Ft|0}for(;!i[--s];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,ut?Ye(e,d.precision):e};re.toDecimalPlaces=re.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(da(e,0,eu),t===void 0?t=r.rounding:da(t,0,8),Ye(n,e+Pt(n)+1,t))};re.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=mo(r,!0):(da(e,0,eu),t===void 0?t=a.rounding:da(t,0,8),r=Ye(new a(r),e+1,t),n=mo(r,!0,e+1)),n};re.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?mo(a):(da(e,0,eu),t===void 0?t=i.rounding:da(t,0,8),r=Ye(new i(a),e+Pt(a)+1,t),n=mo(r.abs(),!1,e+Pt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};re.toInteger=re.toint=function(){var e=this,t=e.constructor;return Ye(new t(e),Pt(e)+1,t.rounding)};re.toNumber=function(){return+this};re.toPower=re.pow=function(e){var t,n,r,a,i,s,o=this,l=o.constructor,u=12,f=+(e=new l(e));if(!e.s)return new l(qn);if(o=new l(o),!o.s){if(e.s<1)throw Error(Ar+"Infinity");return o}if(o.eq(qn))return o;if(r=l.precision,e.eq(qn))return Ye(o,r);if(t=e.e,n=e.d.length-1,s=t>=n,i=o.s,s){if((n=f<0?-f:f)<=TL){for(a=new l(qn),t=Math.ceil(r/rt+4),ut=!1;n%2&&(a=a.times(o),BC(a.d,t)),n=tu(n/2),n!==0;)o=o.times(o),BC(o.d,t);return ut=!0,e.s<0?new l(qn).div(a):Ye(a,r)}}else if(i<0)throw Error(Ar+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,o.s=1,ut=!1,a=e.times(Zf(o,r+u)),ut=!0,a=_L(a),a.s=i,a};re.toPrecision=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?(n=Pt(a),r=mo(a,n<=i.toExpNeg||n>=i.toExpPos)):(da(e,1,eu),t===void 0?t=i.rounding:da(t,0,8),a=Ye(new i(a),e,t),n=Pt(a),r=mo(a,e<=n||n<=i.toExpNeg,e)),r};re.toSignificantDigits=re.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(da(e,1,eu),t===void 0?t=r.rounding:da(t,0,8)),Ye(new r(n),e,t)};re.toString=re.valueOf=re.val=re.toJSON=re[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Pt(e),n=e.constructor;return mo(e,t<=n.toExpNeg||t>=n.toExpPos)};function CL(e,t){var n,r,a,i,s,o,l,u,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),ut?Ye(t,d):t;if(l=e.d,u=t.d,s=e.e,a=t.e,l=l.slice(),i=s-a,i){for(i<0?(r=l,i=-i,o=u.length):(r=u,a=s,o=l.length),s=Math.ceil(d/rt),o=s>o?s+1:o+1,i>o&&(i=o,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(o=l.length,i=u.length,o-i<0&&(i=o,r=u,u=l,l=r),n=0;i;)n=(l[--i]=l[i]+u[i]+n)/Ft|0,l[i]%=Ft;for(n&&(l.unshift(n),++a),o=l.length;l[--o]==0;)l.pop();return t.d=l,t.e=a,ut?Ye(t,d):t}function da(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Js+e)}function ra(e){var t,n,r,a=e.length-1,i="",s=e[0];if(a>0){for(i+=s,t=1;t<a;t++)r=e[t]+"",n=rt-r.length,n&&(i+=vi(n)),i+=r;s=e[t],r=s+"",n=rt-r.length,n&&(i+=vi(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return i+s}var Ka=function(){function e(r,a){var i,s=0,o=r.length;for(r=r.slice();o--;)i=r[o]*a+s,r[o]=i%Ft|0,s=i/Ft|0;return s&&r.unshift(s),r}function t(r,a,i,s){var o,l;if(i!=s)l=i>s?1:-1;else for(o=l=0;o<i;o++)if(r[o]!=a[o]){l=r[o]>a[o]?1:-1;break}return l}function n(r,a,i){for(var s=0;i--;)r[i]-=s,s=r[i]<a[i]?1:0,r[i]=s*Ft+r[i]-a[i];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,i,s){var o,l,u,f,d,h,p,m,g,v,y,b,x,w,S,j,O,N,E=r.constructor,T=r.s==a.s?1:-1,P=r.d,C=a.d;if(!r.s)return new E(r);if(!a.s)throw Error(Ar+"Division by zero");for(l=r.e-a.e,O=C.length,S=P.length,p=new E(T),m=p.d=[],u=0;C[u]==(P[u]||0);)++u;if(C[u]>(P[u]||0)&&--l,i==null?b=i=E.precision:s?b=i+(Pt(r)-Pt(a))+1:b=i,b<0)return new E(0);if(b=b/rt+2|0,u=0,O==1)for(f=0,C=C[0],b++;(u<S||f)&&b--;u++)x=f*Ft+(P[u]||0),m[u]=x/C|0,f=x%C|0;else{for(f=Ft/(C[0]+1)|0,f>1&&(C=e(C,f),P=e(P,f),O=C.length,S=P.length),w=O,g=P.slice(0,O),v=g.length;v<O;)g[v++]=0;N=C.slice(),N.unshift(0),j=C[0],C[1]>=Ft/2&&++j;do f=0,o=t(C,g,O,v),o<0?(y=g[0],O!=v&&(y=y*Ft+(g[1]||0)),f=y/j|0,f>1?(f>=Ft&&(f=Ft-1),d=e(C,f),h=d.length,v=g.length,o=t(d,g,h,v),o==1&&(f--,n(d,O<h?N:C,h))):(f==0&&(o=f=1),d=C.slice()),h=d.length,h<v&&d.unshift(0),n(g,d,v),o==-1&&(v=g.length,o=t(C,g,O,v),o<1&&(f++,n(g,O<v?N:C,v))),v=g.length):o===0&&(f++,g=[0]),m[u++]=f,o&&g[0]?g[v++]=P[w]||0:(g=[P[w]],v=1);while((w++<S||g[0]!==void 0)&&b--)}return m[0]||m.shift(),p.e=l,Ye(p,s?i+Pt(p)+1:i)}}();function _L(e,t){var n,r,a,i,s,o,l=0,u=0,f=e.constructor,d=f.precision;if(Pt(e)>16)throw Error(gA+Pt(e));if(!e.s)return new f(qn);for(ut=!1,o=d,s=new f(.03125);e.abs().gte(.1);)e=e.times(s),u+=5;for(r=Math.log(Os(2,u))/Math.LN10*2+5|0,o+=r,n=a=i=new f(qn),f.precision=o;;){if(a=Ye(a.times(e),o),n=n.times(++l),s=i.plus(Ka(a,n,o)),ra(s.d).slice(0,o)===ra(i.d).slice(0,o)){for(;u--;)i=Ye(i.times(i),o);return f.precision=d,t==null?(ut=!0,Ye(i,d)):i}i=s}}function Pt(e){for(var t=e.e*rt,n=e.d[0];n>=10;n/=10)t++;return t}function Ub(e,t,n){if(t>e.LN10.sd())throw ut=!0,n&&(e.precision=n),Error(Ar+"LN10 precision limit exceeded");return Ye(new e(e.LN10),t)}function vi(e){for(var t="";e--;)t+="0";return t}function Zf(e,t){var n,r,a,i,s,o,l,u,f,d=1,h=10,p=e,m=p.d,g=p.constructor,v=g.precision;if(p.s<1)throw Error(Ar+(p.s?"NaN":"-Infinity"));if(p.eq(qn))return new g(0);if(t==null?(ut=!1,u=v):u=t,p.eq(10))return t==null&&(ut=!0),Ub(g,u);if(u+=h,g.precision=u,n=ra(m),r=n.charAt(0),i=Pt(p),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=ra(p.d),r=n.charAt(0),d++;i=Pt(p),r>1?(p=new g("0."+n),i++):p=new g(r+"."+n.slice(1))}else return l=Ub(g,u+2,v).times(i+""),p=Zf(new g(r+"."+n.slice(1)),u-h).plus(l),g.precision=v,t==null?(ut=!0,Ye(p,v)):p;for(o=s=p=Ka(p.minus(qn),p.plus(qn),u),f=Ye(p.times(p),u),a=3;;){if(s=Ye(s.times(f),u),l=o.plus(Ka(s,new g(a),u)),ra(l.d).slice(0,u)===ra(o.d).slice(0,u))return o=o.times(2),i!==0&&(o=o.plus(Ub(g,u+2,v).times(i+""))),o=Ka(o,new g(d),u),g.precision=v,t==null?(ut=!0,Ye(o,v)):o;o=l,a+=2}}function IC(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=tu(n/rt),e.d=[],r=(n+1)%rt,n<0&&(r+=rt),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=rt;r<a;)e.d.push(+t.slice(r,r+=rt));t=t.slice(r),r=rt-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),ut&&(e.e>Wm||e.e<-Wm))throw Error(gA+n)}else e.s=0,e.e=0,e.d=[0];return e}function Ye(e,t,n){var r,a,i,s,o,l,u,f,d=e.d;for(s=1,i=d[0];i>=10;i/=10)s++;if(r=t-s,r<0)r+=rt,a=t,u=d[f=0];else{if(f=Math.ceil((r+1)/rt),i=d.length,f>=i)return e;for(u=i=d[f],s=1;i>=10;i/=10)s++;r%=rt,a=r-rt+s}if(n!==void 0&&(i=Os(10,s-a-1),o=u/i%10|0,l=t<0||d[f+1]!==void 0||u%i,l=n<4?(o||l)&&(n==0||n==(e.s<0?3:2)):o>5||o==5&&(n==4||l||n==6&&(r>0?a>0?u/Os(10,s-a):0:d[f-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return l?(i=Pt(e),d.length=1,t=t-i-1,d[0]=Os(10,(rt-t%rt)%rt),e.e=tu(-t/rt)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=f,i=1,f--):(d.length=f+1,i=Os(10,rt-r),d[f]=a>0?(u/Os(10,s-a)%Os(10,a)|0)*i:0),l)for(;;)if(f==0){(d[0]+=i)==Ft&&(d[0]=1,++e.e);break}else{if(d[f]+=i,d[f]!=Ft)break;d[f--]=0,i=1}for(r=d.length;d[--r]===0;)d.pop();if(ut&&(e.e>Wm||e.e<-Wm))throw Error(gA+Pt(e));return e}function PL(e,t){var n,r,a,i,s,o,l,u,f,d,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),ut?Ye(t,p):t;if(l=e.d,d=t.d,r=t.e,u=e.e,l=l.slice(),s=u-r,s){for(f=s<0,f?(n=l,s=-s,o=d.length):(n=d,r=u,o=l.length),a=Math.max(Math.ceil(p/rt),o)+2,s>a&&(s=a,n.length=1),n.reverse(),a=s;a--;)n.push(0);n.reverse()}else{for(a=l.length,o=d.length,f=a<o,f&&(o=a),a=0;a<o;a++)if(l[a]!=d[a]){f=l[a]<d[a];break}s=0}for(f&&(n=l,l=d,d=n,t.s=-t.s),o=l.length,a=d.length-o;a>0;--a)l[o++]=0;for(a=d.length;a>s;){if(l[--a]<d[a]){for(i=a;i&&l[--i]===0;)l[i]=Ft-1;--l[i],l[a]+=Ft}l[a]-=d[a]}for(;l[--o]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,ut?Ye(t,p):t):new h(0)}function mo(e,t,n){var r,a=Pt(e),i=ra(e.d),s=i.length;return t?(n&&(r=n-s)>0?i=i.charAt(0)+"."+i.slice(1)+vi(r):s>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+vi(-a-1)+i,n&&(r=n-s)>0&&(i+=vi(r))):a>=s?(i+=vi(a+1-s),n&&(r=n-a-1)>0&&(i=i+"."+vi(r))):((r=a+1)<s&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-s)>0&&(a+1===s&&(i+="."),i+=vi(r))),e.s<0?"-"+i:i}function BC(e,t){if(e.length>t)return e.length=t,!0}function ML(e){var t,n,r;function a(i){var s=this;if(!(s instanceof a))return new a(i);if(s.constructor=a,i instanceof a){s.s=i.s,s.e=i.e,s.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Js+i);if(i>0)s.s=1;else if(i<0)i=-i,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(i===~~i&&i<1e7){s.e=0,s.d=[i];return}return IC(s,i.toString())}else if(typeof i!="string")throw Error(Js+i);if(i.charCodeAt(0)===45?(i=i.slice(1),s.s=-1):s.s=1,wme.test(i))IC(s,i);else throw Error(Js+i)}if(a.prototype=re,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=ML,a.config=a.set=jme,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 jme(e){if(!e||typeof e!="object")throw Error(Ar+"Object expected");var t,n,r,a=["precision",1,eu,"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(tu(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(Js+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Js+n+": "+r);return this}var vA=ML(Sme);qn=new vA(1);const Ke=vA;function Ame(e){return Tme(e)||Eme(e)||Nme(e)||Ome()}function Ome(){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 Nme(e,t){if(e){if(typeof e=="string")return b1(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 b1(e,t)}}function Eme(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Tme(e){if(Array.isArray(e))return b1(e)}function b1(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 Cme=function(t){return t},RL={},DL=function(t){return t===RL},UC=function(t){return function n(){return arguments.length===0||arguments.length===1&&DL(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},_me=function e(t,n){return t===1?n:UC(function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var s=a.filter(function(o){return o!==RL}).length;return s>=t?n.apply(void 0,a):e(t-s,UC(function(){for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];var f=a.map(function(d){return DL(d)?l.shift():d});return n.apply(void 0,Ame(f).concat(l))}))})},Hg=function(t){return _me(t.length,t)},x1=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},Pme=Hg(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),Mme=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Cme;var a=n.reverse(),i=a[0],s=a.slice(1);return function(){return s.reduce(function(o,l){return l(o)},i.apply(void 0,arguments))}},S1=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},kL=function(t){var n=null,r=null;return function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return n&&i.every(function(o,l){return o===n[l]})||(n=i,r=t.apply(void 0,i)),r}};function Rme(e){var t;return e===0?t=1:t=Math.floor(new Ke(e).abs().log(10).toNumber())+1,t}function Dme(e,t,n){for(var r=new Ke(e),a=0,i=[];r.lt(t)&&a<1e5;)i.push(r.toNumber()),r=r.add(n),a++;return i}var kme=Hg(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),$me=Hg(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),Lme=Hg(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const qg={rangeStep:Dme,getDigitCount:Rme,interpolateNumber:kme,uninterpolateNumber:$me,uninterpolateTruncation:Lme};function w1(e){return Bme(e)||Ime(e)||$L(e)||zme()}function zme(){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 Ime(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Bme(e){if(Array.isArray(e))return j1(e)}function Jf(e,t){return Vme(e)||Fme(e,t)||$L(e,t)||Ume()}function Ume(){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 $L(e,t){if(e){if(typeof e=="string")return j1(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 j1(e,t)}}function j1(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 Fme(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,i=void 0;try{for(var s=e[Symbol.iterator](),o;!(r=(o=s.next()).done)&&(n.push(o.value),!(t&&n.length===t));r=!0);}catch(l){a=!0,i=l}finally{try{!r&&s.return!=null&&s.return()}finally{if(a)throw i}}return n}}function Vme(e){if(Array.isArray(e))return e}function LL(e){var t=Jf(e,2),n=t[0],r=t[1],a=n,i=r;return n>r&&(a=r,i=n),[a,i]}function zL(e,t,n){if(e.lte(0))return new Ke(0);var r=qg.getDigitCount(e.toNumber()),a=new Ke(10).pow(r),i=e.div(a),s=r!==1?.05:.1,o=new Ke(Math.ceil(i.div(s).toNumber())).add(n).mul(s),l=o.mul(a);return t?l:new Ke(Math.ceil(l))}function Hme(e,t,n){var r=1,a=new Ke(e);if(!a.isint()&&n){var i=Math.abs(e);i<1?(r=new Ke(10).pow(qg.getDigitCount(e)-1),a=new Ke(Math.floor(a.div(r).toNumber())).mul(r)):i>1&&(a=new Ke(Math.floor(e)))}else e===0?a=new Ke(Math.floor((t-1)/2)):n||(a=new Ke(Math.floor(e)));var s=Math.floor((t-1)/2),o=Mme(Pme(function(l){return a.add(new Ke(l-s).mul(r)).toNumber()}),x1);return o(0,t)}function IL(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Ke(0),tickMin:new Ke(0),tickMax:new Ke(0)};var i=zL(new Ke(t).sub(e).div(n-1),r,a),s;e<=0&&t>=0?s=new Ke(0):(s=new Ke(e).add(t).div(2),s=s.sub(new Ke(s).mod(i)));var o=Math.ceil(s.sub(e).div(i).toNumber()),l=Math.ceil(new Ke(t).sub(s).div(i).toNumber()),u=o+l+1;return u>n?IL(e,t,n,r,a+1):(u<n&&(l=t>0?l+(n-u):l,o=t>0?o:o+(n-u)),{step:i,tickMin:s.sub(new Ke(o).mul(i)),tickMax:s.add(new Ke(l).mul(i))})}function qme(e){var t=Jf(e,2),n=t[0],r=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Math.max(a,2),o=LL([n,r]),l=Jf(o,2),u=l[0],f=l[1];if(u===-1/0||f===1/0){var d=f===1/0?[u].concat(w1(x1(0,a-1).map(function(){return 1/0}))):[].concat(w1(x1(0,a-1).map(function(){return-1/0})),[f]);return n>r?S1(d):d}if(u===f)return Hme(u,a,i);var h=IL(u,f,s,i),p=h.step,m=h.tickMin,g=h.tickMax,v=qg.rangeStep(m,g.add(new Ke(.1).mul(p)),p);return n>r?S1(v):v}function Kme(e,t){var n=Jf(e,2),r=n[0],a=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=LL([r,a]),o=Jf(s,2),l=o[0],u=o[1];if(l===-1/0||u===1/0)return[r,a];if(l===u)return[l];var f=Math.max(t,2),d=zL(new Ke(u).sub(l).div(f-1),i,0),h=[].concat(w1(qg.rangeStep(new Ke(l),new Ke(u).sub(new Ke(.99).mul(d)),d)),[u]);return r>a?S1(h):h}var Gme=kL(qme),Yme=kL(Kme),Wme="Invariant failed";function yo(e,t){throw new Error(Wme)}var Xme=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 Xm(){return Xm=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},Xm.apply(this,arguments)}function Qme(e,t){return tye(e)||eye(e,t)||Jme(e,t)||Zme()}function Zme(){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 Jme(e,t){if(e){if(typeof e=="string")return FC(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 FC(e,t)}}function FC(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 eye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){u=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw a}}return o}}function tye(e){if(Array.isArray(e))return e}function nye(e,t){if(e==null)return{};var n=rye(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rye(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 aye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iye(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,FL(r.key),r)}}function sye(e,t,n){return t&&iye(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oye(e,t,n){return t=Qm(t),lye(e,BL()?Reflect.construct(t,n||[],Qm(e).constructor):t.apply(e,n))}function lye(e,t){if(t&&(fc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cye(e)}function cye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BL=function(){return!!e})()}function Qm(e){return Qm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qm(e)}function uye(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&&A1(e,t)}function A1(e,t){return A1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},A1(e,t)}function UL(e,t,n){return t=FL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FL(e){var t=fye(e,"string");return fc(t)=="symbol"?t:t+""}function fye(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 ah=function(e){function t(){return aye(this,t),oye(this,t,arguments)}return uye(t,e),sye(t,[{key:"render",value:function(){var r=this.props,a=r.offset,i=r.layout,s=r.width,o=r.dataKey,l=r.data,u=r.dataPointFormatter,f=r.xAxis,d=r.yAxis,h=nye(r,Xme),p=ie(h,!1);this.props.direction==="x"&&f.type!=="number"&&yo();var m=l.map(function(g){var v=u(g,o),y=v.x,b=v.y,x=v.value,w=v.errorVal;if(!w)return null;var S=[],j,O;if(Array.isArray(w)){var N=Qme(w,2);j=N[0],O=N[1]}else j=O=w;if(i==="vertical"){var E=f.scale,T=b+a,P=T+s,C=T-s,$=E(x-j),D=E(x+O);S.push({x1:D,y1:P,x2:D,y2:C}),S.push({x1:$,y1:T,x2:D,y2:T}),S.push({x1:$,y1:P,x2:$,y2:C})}else if(i==="horizontal"){var k=d.scale,M=y+a,L=M-s,I=M+s,F=k(x-j),q=k(x+O);S.push({x1:L,y1:q,x2:I,y2:q}),S.push({x1:M,y1:F,x2:M,y2:q}),S.push({x1:L,y1:F,x2:I,y2:F})}return _.createElement(Oe,Xm({className:"recharts-errorBar",key:"bar-".concat(S.map(function(W){return"".concat(W.x1,"-").concat(W.x2,"-").concat(W.y1,"-").concat(W.y2)}))},p),S.map(function(W){return _.createElement("line",Xm({},W,{key:"line-".concat(W.x1,"-").concat(W.x2,"-").concat(W.y1,"-").concat(W.y2)}))}))});return _.createElement(Oe,{className:"recharts-errorBars"},m)}}])}(_.Component);UL(ah,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});UL(ah,"displayName","ErrorBar");function ed(e){"@babel/helpers - typeof";return ed=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},ed(e)}function VC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ps(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VC(Object(n),!0).forEach(function(r){dye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dye(e,t,n){return t=hye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hye(e){var t=pye(e,"string");return ed(t)=="symbol"?t:t+""}function pye(e,t){if(ed(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ed(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var VL=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,s=In(n,na);if(!s)return null;var o=na.defaultProps,l=o!==void 0?ps(ps({},o),s.props):{},u;return s.props&&s.props.payload?u=s.props&&s.props.payload:i==="children"?u=(r||[]).reduce(function(f,d){var h=d.item,p=d.props,m=p.sectors||p.data||[];return f.concat(m.map(function(g){return{type:s.props.iconType||h.props.legendType,value:g.name,color:g.fill,payload:g}}))},[]):u=(r||[]).map(function(f){var d=f.item,h=d.type.defaultProps,p=h!==void 0?ps(ps({},h),d.props):{},m=p.dataKey,g=p.name,v=p.legendType,y=p.hide;return{inactive:y,dataKey:m,type:l.iconType||v||"square",color:bA(d),value:g||m,payload:p}}),ps(ps(ps({},l),na.getWithHeight(s,a)),{},{payload:u,item:s})};function td(e){"@babel/helpers - typeof";return td=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},td(e)}function HC(e){return vye(e)||gye(e)||yye(e)||mye()}function mye(){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 yye(e,t){if(e){if(typeof e=="string")return O1(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 O1(e,t)}}function gye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vye(e){if(Array.isArray(e))return O1(e)}function O1(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 qC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qC(Object(n),!0).forEach(function(r){Ol(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ol(e,t,n){return t=bye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bye(e){var t=xye(e,"string");return td(t)=="symbol"?t:t+""}function xye(e,t){if(td(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(td(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wt(e,t,n){return me(e)||me(t)?n:$t(t)?Qn(e,t,n):de(t)?t(e):n}function cf(e,t,n,r){var a=gme(e,function(o){return wt(o,t)});if(n==="number"){var i=a.filter(function(o){return G(o)||parseFloat(o)});return i.length?[Vg(i),Li(i)]:[1/0,-1/0]}var s=r?a.filter(function(o){return!me(o)}):a;return s.map(function(o){return $t(o)||o instanceof Date?o:""})}var Sye=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,s=-1,o=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(o<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var l=i.range,u=0;u<o;u++){var f=u>0?a[u-1].coordinate:a[o-1].coordinate,d=a[u].coordinate,h=u>=o-1?a[0].coordinate:a[u+1].coordinate,p=void 0;if(mn(d-f)!==mn(h-d)){var m=[];if(mn(h-d)===mn(l[1]-l[0])){p=h;var g=d+l[1]-l[0];m[0]=Math.min(g,(g+f)/2),m[1]=Math.max(g,(g+f)/2)}else{p=f;var v=h+l[1]-l[0];m[0]=Math.min(d,(v+d)/2),m[1]=Math.max(d,(v+d)/2)}var y=[Math.min(d,(p+d)/2),Math.max(d,(p+d)/2)];if(t>y[0]&&t<=y[1]||t>=m[0]&&t<=m[1]){s=a[u].index;break}}else{var b=Math.min(f,h),x=Math.max(f,h);if(t>(b+d)/2&&t<=(x+d)/2){s=a[u].index;break}}}else for(var w=0;w<o;w++)if(w===0&&t<=(r[w].coordinate+r[w+1].coordinate)/2||w>0&&w<o-1&&t>(r[w].coordinate+r[w-1].coordinate)/2&&t<=(r[w].coordinate+r[w+1].coordinate)/2||w===o-1&&t>(r[w].coordinate+r[w-1].coordinate)/2){s=r[w].index;break}return s},bA=function(t){var n,r=t,a=r.type.displayName,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?vt(vt({},t.type.defaultProps),t.props):t.props,s=i.stroke,o=i.fill,l;switch(a){case"Line":l=s;break;case"Area":case"Radar":l=s&&s!=="none"?s:o;break;default:l=o;break}return l},wye=function(t){var n=t.barSize,r=t.totalSize,a=t.stackGroups,i=a===void 0?{}:a;if(!i)return{};for(var s={},o=Object.keys(i),l=0,u=o.length;l<u;l++)for(var f=i[o[l]].stackGroups,d=Object.keys(f),h=0,p=d.length;h<p;h++){var m=f[d[h]],g=m.items,v=m.cateAxisId,y=g.filter(function(O){return qa(O.type).indexOf("Bar")>=0});if(y&&y.length){var b=y[0].type.defaultProps,x=b!==void 0?vt(vt({},b),y[0].props):y[0].props,w=x.barSize,S=x[v];s[S]||(s[S]=[]);var j=me(w)?n:w;s[S].push({item:y[0],stackList:y.slice(1),barSize:me(j)?void 0:yn(j,r,0)})}}return s},jye=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,i=t.sizeList,s=i===void 0?[]:i,o=t.maxBarSize,l=s.length;if(l<1)return null;var u=yn(n,a,0,!0),f,d=[];if(s[0].barSize===+s[0].barSize){var h=!1,p=a/l,m=s.reduce(function(w,S){return w+S.barSize||0},0);m+=(l-1)*u,m>=a&&(m-=(l-1)*u,u=0),m>=a&&p>0&&(h=!0,p*=.9,m=l*p);var g=(a-m)/2>>0,v={offset:g-u,size:0};f=s.reduce(function(w,S){var j={item:S.item,position:{offset:v.offset+v.size+u,size:h?p:S.barSize}},O=[].concat(HC(w),[j]);return v=O[O.length-1].position,S.stackList&&S.stackList.length&&S.stackList.forEach(function(N){O.push({item:N,position:v})}),O},d)}else{var y=yn(r,a,0,!0);a-2*y-(l-1)*u<=0&&(u=0);var b=(a-2*y-(l-1)*u)/l;b>1&&(b>>=0);var x=o===+o?Math.min(b,o):b;f=s.reduce(function(w,S,j){var O=[].concat(HC(w),[{item:S.item,position:{offset:y+(b+u)*j+(b-x)/2,size:x}}]);return S.stackList&&S.stackList.length&&S.stackList.forEach(function(N){O.push({item:N,position:O[O.length-1].position})}),O},d)}return f},Aye=function(t,n,r,a){var i=r.children,s=r.width,o=r.margin,l=s-(o.left||0)-(o.right||0),u=VL({children:i,legendWidth:l});if(u){var f=a||{},d=f.width,h=f.height,p=u.align,m=u.verticalAlign,g=u.layout;if((g==="vertical"||g==="horizontal"&&m==="middle")&&p!=="center"&&G(t[p]))return vt(vt({},t),{},Ol({},p,t[p]+(d||0)));if((g==="horizontal"||g==="vertical"&&p==="center")&&m!=="middle"&&G(t[m]))return vt(vt({},t),{},Ol({},m,t[m]+(h||0)))}return t},Oye=function(t,n,r){return me(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},HL=function(t,n,r,a,i){var s=n.props.children,o=Zn(s,ah).filter(function(u){return Oye(a,i,u.props.direction)});if(o&&o.length){var l=o.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var d=wt(f,r);if(me(d))return u;var h=Array.isArray(d)?[Vg(d),Li(d)]:[d,d],p=l.reduce(function(m,g){var v=wt(f,g,0),y=h[0]-Math.abs(Array.isArray(v)?v[0]:v),b=h[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(y,m[0]),Math.max(b,m[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},Nye=function(t,n,r,a,i){var s=n.map(function(o){return HL(t,o,r,i,a)}).filter(function(o){return!me(o)});return s&&s.length?s.reduce(function(o,l){return[Math.min(o[0],l[0]),Math.max(o[1],l[1])]},[1/0,-1/0]):null},qL=function(t,n,r,a,i){var s=n.map(function(l){var u=l.props.dataKey;return r==="number"&&u&&HL(t,l,u,a)||cf(t,u,r,i)});if(r==="number")return s.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var o={};return s.reduce(function(l,u){for(var f=0,d=u.length;f<d;f++)o[u[f]]||(o[u[f]]=!0,l.push(u[f]));return l},[])},KL=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},GL=function(t,n,r,a){if(a)return t.map(function(l){return l.coordinate});var i,s,o=t.map(function(l){return l.coordinate===n&&(i=!0),l.coordinate===r&&(s=!0),l.coordinate});return i||o.push(n),s||o.push(r),o},La=function(t,n,r){if(!t)return null;var a=t.scale,i=t.duplicateDomain,s=t.type,o=t.range,l=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,u=(n||r)&&s==="category"&&a.bandwidth?a.bandwidth()/l:0;if(u=t.axisType==="angleAxis"&&(o==null?void 0:o.length)>=2?mn(o[0]-o[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(d){var h=i?i.indexOf(d):d;return{coordinate:a(h)+u,value:d,offset:u}});return f.filter(function(d){return!Wc(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,h){return{coordinate:a(d)+u,value:d,index:h,offset:u}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(d){return{coordinate:a(d)+u,value:d,offset:u}}):a.domain().map(function(d,h){return{coordinate:a(d)+u,value:i?i[d]:d,index:h,offset:u}})},Fb=new WeakMap,qh=function(t,n){if(typeof n!="function")return t;Fb.has(t)||Fb.set(t,new WeakMap);var r=Fb.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},YL=function(t,n,r){var a=t.scale,i=t.type,s=t.layout,o=t.axisType;if(a==="auto")return s==="radial"&&o==="radiusAxis"?{scale:Gf(),realScaleType:"band"}:s==="radial"&&o==="angleAxis"?{scale:qm(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:lf(),realScaleType:"point"}:i==="category"?{scale:Gf(),realScaleType:"band"}:{scale:qm(),realScaleType:"linear"};if(uo(a)){var l="scale".concat(Tg(a));return{scale:(zC[l]||lf)(),realScaleType:zC[l]?l:"point"}}return de(a)?{scale:a}:{scale:lf(),realScaleType:"point"}},KC=1e-4,WL=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,a=t.range(),i=Math.min(a[0],a[1])-KC,s=Math.max(a[0],a[1])+KC,o=t(n[0]),l=t(n[r-1]);(o<i||o>s||l<i||l>s)&&t.domain([n[0],n[r-1]])}},Eye=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},Tye=function(t,n){if(!n||n.length!==2||!G(n[0])||!G(n[1]))return t;var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]),i=[t[0],t[1]];return(!G(t[0])||t[0]<r)&&(i[0]=r),(!G(t[1])||t[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<r&&(i[1]=r),i},Cye=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var i=0,s=0,o=0;o<n;++o){var l=Wc(t[o][r][1])?t[o][r][0]:t[o][r][1];l>=0?(t[o][r][0]=i,t[o][r][1]=i+l,i=t[o][r][1]):(t[o][r][0]=s,t[o][r][1]=s+l,s=t[o][r][1])}},_ye=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var i=0,s=0;s<n;++s){var o=Wc(t[s][r][1])?t[s][r][0]:t[s][r][1];o>=0?(t[s][r][0]=i,t[s][r][1]=i+o,i=t[s][r][1]):(t[s][r][0]=0,t[s][r][1]=0)}},Pye={sign:Cye,expand:Xne,none:rc,silhouette:Qne,wiggle:Zne,positive:_ye},Mye=function(t,n,r){var a=n.map(function(o){return o.props.dataKey}),i=Pye[r],s=Wne().keys(a).value(function(o,l){return+wt(o,l,0)}).order(X0).offset(i);return s(t)},Rye=function(t,n,r,a,i,s){if(!t)return null;var o=s?n.reverse():n,l={},u=o.reduce(function(d,h){var p,m=(p=h.type)!==null&&p!==void 0&&p.defaultProps?vt(vt({},h.type.defaultProps),h.props):h.props,g=m.stackId,v=m.hide;if(v)return d;var y=m[r],b=d[y]||{hasStack:!1,stackGroups:{}};if($t(g)){var x=b.stackGroups[g]||{numericAxisId:r,cateAxisId:a,items:[]};x.items.push(h),b.hasStack=!0,b.stackGroups[g]=x}else b.stackGroups[No("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[h]};return vt(vt({},d),{},Ol({},y,b))},l),f={};return Object.keys(u).reduce(function(d,h){var p=u[h];if(p.hasStack){var m={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(g,v){var y=p.stackGroups[v];return vt(vt({},g),{},Ol({},v,{numericAxisId:r,cateAxisId:a,items:y.items,stackedData:Mye(t,y.items,i)}))},m)}return vt(vt({},d),{},Ol({},h,p))},f)},XL=function(t,n){var r=n.realScaleType,a=n.type,i=n.tickCount,s=n.originalDomain,o=n.allowDecimals,l=r||n.scale;if(l!=="auto"&&l!=="linear")return null;if(i&&a==="number"&&s&&(s[0]==="auto"||s[1]==="auto")){var u=t.domain();if(!u.length)return null;var f=Gme(u,i,o);return t.domain([Vg(f),Li(f)]),{niceTicks:f}}if(i&&a==="number"){var d=t.domain(),h=Yme(d,i,o);return{niceTicks:h}}return null};function Zm(e){var t=e.axis,n=e.ticks,r=e.bandSize,a=e.entry,i=e.index,s=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!me(a[t.dataKey])){var o=jm(n,"value",a[t.dataKey]);if(o)return o.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var l=wt(a,me(s)?t.dataKey:s);return me(l)?null:t.scale(l)}var GC=function(t){var n=t.axis,r=t.ticks,a=t.offset,i=t.bandSize,s=t.entry,o=t.index;if(n.type==="category")return r[o]?r[o].coordinate+a:null;var l=wt(s,n.dataKey,n.domain[o]);return me(l)?null:n.scale(l)-i/2+a},Dye=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var a=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return a<=0&&i>=0?0:i<0?i:a}return r[0]},kye=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?vt(vt({},t.type.defaultProps),t.props):t.props,i=a.stackId;if($t(i)){var s=n[i];if(s){var o=s.items.indexOf(t);return o>=0?s.stackedData[o]:null}}return null},$ye=function(t){return t.reduce(function(n,r){return[Vg(r.concat([n[0]]).filter(G)),Li(r.concat([n[1]]).filter(G))]},[1/0,-1/0])},QL=function(t,n,r){return Object.keys(t).reduce(function(a,i){var s=t[i],o=s.stackedData,l=o.reduce(function(u,f){var d=$ye(f.slice(n,r+1));return[Math.min(u[0],d[0]),Math.max(u[1],d[1])]},[1/0,-1/0]);return[Math.min(l[0],a[0]),Math.max(l[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},YC=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,WC=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,N1=function(t,n,r){if(de(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(G(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(YC.test(t[0])){var i=+YC.exec(t[0])[1];a[0]=n[0]-i}else de(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(G(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(WC.test(t[1])){var s=+WC.exec(t[1])[1];a[1]=n[1]+s}else de(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},Jm=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!r||a>0)return a}if(t&&n&&n.length>=2){for(var i=Gj(n,function(d){return d.coordinate}),s=1/0,o=1,l=i.length;o<l;o++){var u=i[o],f=i[o-1];s=Math.min((u.coordinate||0)-(f.coordinate||0),s)}return s===1/0?0:s}return r?void 0:0},XC=function(t,n,r){return!t||!t.length||po(t,Qn(r,"type.defaultProps.domain"))?n:t},ZL=function(t,n){var r=t.type.defaultProps?vt(vt({},t.type.defaultProps),t.props):t.props,a=r.dataKey,i=r.name,s=r.unit,o=r.formatter,l=r.tooltipType,u=r.chartType,f=r.hide;return vt(vt({},ie(t,!1)),{},{dataKey:a,unit:s,formatter:o,name:i||a,color:bA(t),value:wt(n,a),type:l,payload:n,chartType:u,hide:f})};function nd(e){"@babel/helpers - typeof";return nd=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},nd(e)}function QC(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 Ea(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QC(Object(n),!0).forEach(function(r){JL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JL(e,t,n){return t=Lye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lye(e){var t=zye(e,"string");return nd(t)=="symbol"?t:t+""}function zye(e,t){if(nd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Iye(e,t){return Vye(e)||Fye(e,t)||Uye(e,t)||Bye()}function Bye(){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 Uye(e,t){if(e){if(typeof e=="string")return ZC(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 ZC(e,t)}}function ZC(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 Fye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){u=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw a}}return o}}function Vye(e){if(Array.isArray(e))return e}var ey=Math.PI/180,Hye=function(t){return t*180/Math.PI},et=function(t,n,r,a){return{x:t+Math.cos(-ey*a)*r,y:n+Math.sin(-ey*a)*r}},e6=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},qye=function(t,n,r,a,i){var s=t.width,o=t.height,l=t.startAngle,u=t.endAngle,f=yn(t.cx,s,s/2),d=yn(t.cy,o,o/2),h=e6(s,o,r),p=yn(t.innerRadius,h,0),m=yn(t.outerRadius,h,h*.8),g=Object.keys(n);return g.reduce(function(v,y){var b=n[y],x=b.domain,w=b.reversed,S;if(me(b.range))a==="angleAxis"?S=[l,u]:a==="radiusAxis"&&(S=[p,m]),w&&(S=[S[1],S[0]]);else{S=b.range;var j=S,O=Iye(j,2);l=O[0],u=O[1]}var N=YL(b,i),E=N.realScaleType,T=N.scale;T.domain(x).range(S),WL(T);var P=XL(T,Ea(Ea({},b),{},{realScaleType:E})),C=Ea(Ea(Ea({},b),P),{},{range:S,radius:m,realScaleType:E,scale:T,cx:f,cy:d,innerRadius:p,outerRadius:m,startAngle:l,endAngle:u});return Ea(Ea({},v),{},JL({},y,C))},{})},Kye=function(t,n){var r=t.x,a=t.y,i=n.x,s=n.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(a-s,2))},Gye=function(t,n){var r=t.x,a=t.y,i=n.cx,s=n.cy,o=Kye({x:r,y:a},{x:i,y:s});if(o<=0)return{radius:o};var l=(r-i)/o,u=Math.acos(l);return a>s&&(u=2*Math.PI-u),{radius:o,angle:Hye(u),angleInRadian:u}},Yye=function(t){var n=t.startAngle,r=t.endAngle,a=Math.floor(n/360),i=Math.floor(r/360),s=Math.min(a,i);return{startAngle:n-s*360,endAngle:r-s*360}},Wye=function(t,n){var r=n.startAngle,a=n.endAngle,i=Math.floor(r/360),s=Math.floor(a/360),o=Math.min(i,s);return t+o*360},JC=function(t,n){var r=t.x,a=t.y,i=Gye({x:r,y:a},n),s=i.radius,o=i.angle,l=n.innerRadius,u=n.outerRadius;if(s<l||s>u)return!1;if(s===0)return!0;var f=Yye(n),d=f.startAngle,h=f.endAngle,p=o,m;if(d<=h){for(;p>h;)p-=360;for(;p<d;)p+=360;m=p>=d&&p<=h}else{for(;p>d;)p-=360;for(;p<h;)p+=360;m=p>=h&&p<=d}return m?Ea(Ea({},n),{},{radius:s,angle:Wye(p,n)}):null},t6=function(t){return!A.isValidElement(t)&&!de(t)&&typeof t!="boolean"?t.className:""};function rd(e){"@babel/helpers - typeof";return rd=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},rd(e)}var Xye=["offset"];function Qye(e){return tge(e)||ege(e)||Jye(e)||Zye()}function Zye(){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 Jye(e,t){if(e){if(typeof e=="string")return E1(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 E1(e,t)}}function ege(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tge(e){if(Array.isArray(e))return E1(e)}function E1(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 nge(e,t){if(e==null)return{};var n=rge(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rge(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 e_(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 Rt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e_(Object(n),!0).forEach(function(r){age(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function age(e,t,n){return t=ige(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ige(e){var t=sge(e,"string");return rd(t)=="symbol"?t:t+""}function sge(e,t){if(rd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ad(){return ad=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},ad.apply(this,arguments)}var oge=function(t){var n=t.value,r=t.formatter,a=me(t.children)?n:t.children;return de(r)?r(a):a},lge=function(t,n){var r=mn(n-t),a=Math.min(Math.abs(n-t),360);return r*a},cge=function(t,n,r){var a=t.position,i=t.viewBox,s=t.offset,o=t.className,l=i,u=l.cx,f=l.cy,d=l.innerRadius,h=l.outerRadius,p=l.startAngle,m=l.endAngle,g=l.clockWise,v=(d+h)/2,y=lge(p,m),b=y>=0?1:-1,x,w;a==="insideStart"?(x=p+b*s,w=g):a==="insideEnd"?(x=m-b*s,w=!g):a==="end"&&(x=m+b*s,w=g),w=y<=0?w:!w;var S=et(u,f,v,x),j=et(u,f,v,x+(w?1:-1)*359),O="M".concat(S.x,",").concat(S.y,`
    A`).concat(v,",").concat(v,",0,1,").concat(w?0:1,`,
    `).concat(j.x,",").concat(j.y),N=me(t.id)?No("recharts-radial-line-"):t.id;return _.createElement("text",ad({},r,{dominantBaseline:"central",className:be("recharts-radial-bar-label",o)}),_.createElement("defs",null,_.createElement("path",{id:N,d:O})),_.createElement("textPath",{xlinkHref:"#".concat(N)},n))},uge=function(t){var n=t.viewBox,r=t.offset,a=t.position,i=n,s=i.cx,o=i.cy,l=i.innerRadius,u=i.outerRadius,f=i.startAngle,d=i.endAngle,h=(f+d)/2;if(a==="outside"){var p=et(s,o,u+r,h),m=p.x,g=p.y;return{x:m,y:g,textAnchor:m>=s?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:s,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:s,y:o,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:s,y:o,textAnchor:"middle",verticalAnchor:"end"};var v=(l+u)/2,y=et(s,o,v,h),b=y.x,x=y.y;return{x:b,y:x,textAnchor:"middle",verticalAnchor:"middle"}},fge=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,i=t.position,s=n,o=s.x,l=s.y,u=s.width,f=s.height,d=f>=0?1:-1,h=d*a,p=d>0?"end":"start",m=d>0?"start":"end",g=u>=0?1:-1,v=g*a,y=g>0?"end":"start",b=g>0?"start":"end";if(i==="top"){var x={x:o+u/2,y:l-d*a,textAnchor:"middle",verticalAnchor:p};return Rt(Rt({},x),r?{height:Math.max(l-r.y,0),width:u}:{})}if(i==="bottom"){var w={x:o+u/2,y:l+f+h,textAnchor:"middle",verticalAnchor:m};return Rt(Rt({},w),r?{height:Math.max(r.y+r.height-(l+f),0),width:u}:{})}if(i==="left"){var S={x:o-v,y:l+f/2,textAnchor:y,verticalAnchor:"middle"};return Rt(Rt({},S),r?{width:Math.max(S.x-r.x,0),height:f}:{})}if(i==="right"){var j={x:o+u+v,y:l+f/2,textAnchor:b,verticalAnchor:"middle"};return Rt(Rt({},j),r?{width:Math.max(r.x+r.width-j.x,0),height:f}:{})}var O=r?{width:u,height:f}:{};return i==="insideLeft"?Rt({x:o+v,y:l+f/2,textAnchor:b,verticalAnchor:"middle"},O):i==="insideRight"?Rt({x:o+u-v,y:l+f/2,textAnchor:y,verticalAnchor:"middle"},O):i==="insideTop"?Rt({x:o+u/2,y:l+h,textAnchor:"middle",verticalAnchor:m},O):i==="insideBottom"?Rt({x:o+u/2,y:l+f-h,textAnchor:"middle",verticalAnchor:p},O):i==="insideTopLeft"?Rt({x:o+v,y:l+h,textAnchor:b,verticalAnchor:m},O):i==="insideTopRight"?Rt({x:o+u-v,y:l+h,textAnchor:y,verticalAnchor:m},O):i==="insideBottomLeft"?Rt({x:o+v,y:l+f-h,textAnchor:b,verticalAnchor:p},O):i==="insideBottomRight"?Rt({x:o+u-v,y:l+f-h,textAnchor:y,verticalAnchor:p},O):qc(i)&&(G(i.x)||Ps(i.x))&&(G(i.y)||Ps(i.y))?Rt({x:o+yn(i.x,u),y:l+yn(i.y,f),textAnchor:"end",verticalAnchor:"end"},O):Rt({x:o+u/2,y:l+f/2,textAnchor:"middle",verticalAnchor:"middle"},O)},dge=function(t){return"cx"in t&&G(t.cx)};function qt(e){var t=e.offset,n=t===void 0?5:t,r=nge(e,Xye),a=Rt({offset:n},r),i=a.viewBox,s=a.position,o=a.value,l=a.children,u=a.content,f=a.className,d=f===void 0?"":f,h=a.textBreakAll;if(!i||me(o)&&me(l)&&!A.isValidElement(u)&&!de(u))return null;if(A.isValidElement(u))return A.cloneElement(u,a);var p;if(de(u)){if(p=A.createElement(u,a),A.isValidElement(p))return p}else p=oge(a);var m=dge(i),g=ie(a,!0);if(m&&(s==="insideStart"||s==="insideEnd"||s==="end"))return cge(a,p,g);var v=m?uge(a):fge(a);return _.createElement(ho,ad({className:be("recharts-label",d)},g,v,{breakAll:h}),p)}qt.displayName="Label";var n6=function(t){var n=t.cx,r=t.cy,a=t.angle,i=t.startAngle,s=t.endAngle,o=t.r,l=t.radius,u=t.innerRadius,f=t.outerRadius,d=t.x,h=t.y,p=t.top,m=t.left,g=t.width,v=t.height,y=t.clockWise,b=t.labelViewBox;if(b)return b;if(G(g)&&G(v)){if(G(d)&&G(h))return{x:d,y:h,width:g,height:v};if(G(p)&&G(m))return{x:p,y:m,width:g,height:v}}return G(d)&&G(h)?{x:d,y:h,width:0,height:0}:G(n)&&G(r)?{cx:n,cy:r,startAngle:i||a||0,endAngle:s||a||0,innerRadius:u||0,outerRadius:f||l||o||0,clockWise:y}:t.viewBox?t.viewBox:{}},hge=function(t,n){return t?t===!0?_.createElement(qt,{key:"label-implicit",viewBox:n}):$t(t)?_.createElement(qt,{key:"label-implicit",viewBox:n,value:t}):A.isValidElement(t)?t.type===qt?A.cloneElement(t,{key:"label-implicit",viewBox:n}):_.createElement(qt,{key:"label-implicit",content:t,viewBox:n}):de(t)?_.createElement(qt,{key:"label-implicit",content:t,viewBox:n}):qc(t)?_.createElement(qt,ad({viewBox:n},t,{key:"label-implicit"})):null:null},pge=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var a=t.children,i=n6(t),s=Zn(a,qt).map(function(l,u){return A.cloneElement(l,{viewBox:n||i,key:"label-".concat(u)})});if(!r)return s;var o=hge(t.label,n||i);return[o].concat(Qye(s))};qt.parseViewBox=n6;qt.renderCallByParent=pge;function mge(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var yge=mge;const gge=Ie(yge);function id(e){"@babel/helpers - typeof";return id=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},id(e)}var vge=["valueAccessor"],bge=["data","dataKey","clockWise","id","textBreakAll"];function xge(e){return Age(e)||jge(e)||wge(e)||Sge()}function Sge(){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 wge(e,t){if(e){if(typeof e=="string")return T1(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 T1(e,t)}}function jge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Age(e){if(Array.isArray(e))return T1(e)}function T1(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 ty(){return ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ty.apply(this,arguments)}function t_(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 n_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t_(Object(n),!0).forEach(function(r){Oge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Oge(e,t,n){return t=Nge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nge(e){var t=Ege(e,"string");return id(t)=="symbol"?t:t+""}function Ege(e,t){if(id(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(id(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function r_(e,t){if(e==null)return{};var n=Tge(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tge(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 Cge=function(t){return Array.isArray(t.value)?gge(t.value):t.value};function ca(e){var t=e.valueAccessor,n=t===void 0?Cge:t,r=r_(e,vge),a=r.data,i=r.dataKey,s=r.clockWise,o=r.id,l=r.textBreakAll,u=r_(r,bge);return!a||!a.length?null:_.createElement(Oe,{className:"recharts-label-list"},a.map(function(f,d){var h=me(i)?n(f,d):wt(f&&f.payload,i),p=me(o)?{}:{id:"".concat(o,"-").concat(d)};return _.createElement(qt,ty({},ie(f,!0),u,p,{parentViewBox:f.parentViewBox,value:h,textBreakAll:l,viewBox:qt.parseViewBox(me(s)?f:n_(n_({},f),{},{clockWise:s})),key:"label-".concat(d),index:d}))}))}ca.displayName="LabelList";function _ge(e,t){return e?e===!0?_.createElement(ca,{key:"labelList-implicit",data:t}):_.isValidElement(e)||de(e)?_.createElement(ca,{key:"labelList-implicit",data:t,content:e}):qc(e)?_.createElement(ca,ty({data:t},e,{key:"labelList-implicit"})):null:null}function Pge(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,a=Zn(r,ca).map(function(s,o){return A.cloneElement(s,{data:t,key:"labelList-".concat(o)})});if(!n)return a;var i=_ge(e.label,t);return[i].concat(xge(a))}ca.renderCallByParent=Pge;function sd(e){"@babel/helpers - typeof";return sd=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},sd(e)}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 a_(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 i_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a_(Object(n),!0).forEach(function(r){Mge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mge(e,t,n){return t=Rge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rge(e){var t=Dge(e,"string");return sd(t)=="symbol"?t:t+""}function Dge(e,t){if(sd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kge=function(t,n){var r=mn(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},Kh=function(t){var n=t.cx,r=t.cy,a=t.radius,i=t.angle,s=t.sign,o=t.isExternal,l=t.cornerRadius,u=t.cornerIsExternal,f=l*(o?1:-1)+a,d=Math.asin(l/f)/ey,h=u?i:i+s*d,p=et(n,r,f,h),m=et(n,r,a,h),g=u?i-s*d:i,v=et(n,r,f*Math.cos(d*ey),g);return{center:p,circleTangency:m,lineTangency:v,theta:d}},r6=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,s=t.startAngle,o=t.endAngle,l=kge(s,o),u=s+l,f=et(n,r,i,s),d=et(n,r,i,u),h="M ".concat(f.x,",").concat(f.y,`
    A `).concat(i,",").concat(i,`,0,
    `).concat(+(Math.abs(l)>180),",").concat(+(s>u),`,
    `).concat(d.x,",").concat(d.y,`
  `);if(a>0){var p=et(n,r,a,s),m=et(n,r,a,u);h+="L ".concat(m.x,",").concat(m.y,`
            A `).concat(a,",").concat(a,`,0,
            `).concat(+(Math.abs(l)>180),",").concat(+(s<=u),`,
            `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(n,",").concat(r," Z");return h},$ge=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,s=t.cornerRadius,o=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,d=mn(f-u),h=Kh({cx:n,cy:r,radius:i,angle:u,sign:d,cornerRadius:s,cornerIsExternal:l}),p=h.circleTangency,m=h.lineTangency,g=h.theta,v=Kh({cx:n,cy:r,radius:i,angle:f,sign:-d,cornerRadius:s,cornerIsExternal:l}),y=v.circleTangency,b=v.lineTangency,x=v.theta,w=l?Math.abs(u-f):Math.abs(u-f)-g-x;if(w<0)return o?"M ".concat(m.x,",").concat(m.y,`
        a`).concat(s,",").concat(s,",0,0,1,").concat(s*2,`,0
        a`).concat(s,",").concat(s,",0,0,1,").concat(-s*2,`,0
      `):r6({cx:n,cy:r,innerRadius:a,outerRadius:i,startAngle:u,endAngle:f});var S="M ".concat(m.x,",").concat(m.y,`
    A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(p.x,",").concat(p.y,`
    A`).concat(i,",").concat(i,",0,").concat(+(w>180),",").concat(+(d<0),",").concat(y.x,",").concat(y.y,`
    A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(b.x,",").concat(b.y,`
  `);if(a>0){var j=Kh({cx:n,cy:r,radius:a,angle:u,sign:d,isExternal:!0,cornerRadius:s,cornerIsExternal:l}),O=j.circleTangency,N=j.lineTangency,E=j.theta,T=Kh({cx:n,cy:r,radius:a,angle:f,sign:-d,isExternal:!0,cornerRadius:s,cornerIsExternal:l}),P=T.circleTangency,C=T.lineTangency,$=T.theta,D=l?Math.abs(u-f):Math.abs(u-f)-E-$;if(D<0&&s===0)return"".concat(S,"L").concat(n,",").concat(r,"Z");S+="L".concat(C.x,",").concat(C.y,`
      A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(P.x,",").concat(P.y,`
      A`).concat(a,",").concat(a,",0,").concat(+(D>180),",").concat(+(d>0),",").concat(O.x,",").concat(O.y,`
      A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(N.x,",").concat(N.y,"Z")}else S+="L".concat(n,",").concat(r,"Z");return S},Lge={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},a6=function(t){var n=i_(i_({},Lge),t),r=n.cx,a=n.cy,i=n.innerRadius,s=n.outerRadius,o=n.cornerRadius,l=n.forceCornerRadius,u=n.cornerIsExternal,f=n.startAngle,d=n.endAngle,h=n.className;if(s<i||f===d)return null;var p=be("recharts-sector",h),m=s-i,g=yn(o,m,0,!0),v;return g>0&&Math.abs(f-d)<360?v=$ge({cx:r,cy:a,innerRadius:i,outerRadius:s,cornerRadius:Math.min(g,m/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:f,endAngle:d}):v=r6({cx:r,cy:a,innerRadius:i,outerRadius:s,startAngle:f,endAngle:d}),_.createElement("path",C1({},ie(n,!0),{className:p,d:v,role:"img"}))};function od(e){"@babel/helpers - typeof";return od=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},od(e)}function _1(){return _1=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},_1.apply(this,arguments)}function s_(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 o_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s_(Object(n),!0).forEach(function(r){zge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zge(e,t,n){return t=Ige(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ige(e){var t=Bge(e,"string");return od(t)=="symbol"?t:t+""}function Bge(e,t){if(od(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(od(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l_={curveBasisClosed:zne,curveBasisOpen:Ine,curveBasis:Lne,curveBumpX:jne,curveBumpY:Ane,curveLinearClosed:Bne,curveLinear:_g,curveMonotoneX:Une,curveMonotoneY:Fne,curveNatural:Vne,curveStep:Hne,curveStepAfter:Kne,curveStepBefore:qne},Gh=function(t){return t.x===+t.x&&t.y===+t.y},ju=function(t){return t.x},Au=function(t){return t.y},Uge=function(t,n){if(de(t))return t;var r="curve".concat(Tg(t));return(r==="curveMonotone"||r==="curveBump")&&n?l_["".concat(r).concat(n==="vertical"?"Y":"X")]:l_[r]||_g},Fge=function(t){var n=t.type,r=n===void 0?"linear":n,a=t.points,i=a===void 0?[]:a,s=t.baseLine,o=t.layout,l=t.connectNulls,u=l===void 0?!1:l,f=Uge(r,o),d=u?i.filter(function(g){return Gh(g)}):i,h;if(Array.isArray(s)){var p=u?s.filter(function(g){return Gh(g)}):s,m=d.map(function(g,v){return o_(o_({},g),{},{base:p[v]})});return o==="vertical"?h=$h().y(Au).x1(ju).x0(function(g){return g.base.x}):h=$h().x(ju).y1(Au).y0(function(g){return g.base.y}),h.defined(Gh).curve(f),h(m)}return o==="vertical"&&G(s)?h=$h().y(Au).x1(ju).x0(s):G(s)?h=$h().x(ju).y1(Au).y0(s):h=J5().x(ju).y(Au),h.defined(Gh).curve(f),h(d)},eo=function(t){var n=t.className,r=t.points,a=t.path,i=t.pathRef;if((!r||!r.length)&&!a)return null;var s=r&&r.length?Fge(t):a;return A.createElement("path",_1({},ie(t,!1),Am(t),{className:be("recharts-curve",n),d:s,ref:i}))},i6={exports:{}},Vge="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Hge=Vge,qge=Hge;function s6(){}function o6(){}o6.resetWarningCache=s6;var Kge=function(){function e(r,a,i,s,o,l){if(l!==qge){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o6,resetWarningCache:s6};return n.PropTypes=n,n};i6.exports=Kge();var Gge=i6.exports;const ke=Ie(Gge),{getOwnPropertyNames:Yge,getOwnPropertySymbols:Wge}=Object,{hasOwnProperty:Xge}=Object.prototype;function Vb(e,t){return function(r,a,i){return e(r,a,i)&&t(r,a,i)}}function Yh(e){return function(n,r,a){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,a);const{cache:i}=a,s=i.get(n),o=i.get(r);if(s&&o)return s===r&&o===n;i.set(n,r),i.set(r,n);const l=e(n,r,a);return i.delete(n),i.delete(r),l}}function Qge(e){return e!=null?e[Symbol.toStringTag]:void 0}function c_(e){return Yge(e).concat(Wge(e))}const Zge=Object.hasOwn||((e,t)=>Xge.call(e,t));function Co(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const Jge="__v",eve="__o",tve="_owner",{getOwnPropertyDescriptor:u_,keys:f_}=Object;function nve(e,t){return e.byteLength===t.byteLength&&ny(new Uint8Array(e),new Uint8Array(t))}function rve(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 ave(e,t){return e.byteLength===t.byteLength&&ny(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function ive(e,t){return Co(e.getTime(),t.getTime())}function sve(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function ove(e,t){return e===t}function d_(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),i=e.entries();let s,o,l=0;for(;(s=i.next())&&!s.done;){const u=t.entries();let f=!1,d=0;for(;(o=u.next())&&!o.done;){if(a[d]){d++;continue}const h=s.value,p=o.value;if(n.equals(h[0],p[0],l,d,e,t,n)&&n.equals(h[1],p[1],h[0],p[0],e,t,n)){f=a[d]=!0;break}d++}if(!f)return!1;l++}return!0}const lve=Co;function cve(e,t,n){const r=f_(e);let a=r.length;if(f_(t).length!==a)return!1;for(;a-- >0;)if(!l6(e,t,n,r[a]))return!1;return!0}function Ou(e,t,n){const r=c_(e);let a=r.length;if(c_(t).length!==a)return!1;let i,s,o;for(;a-- >0;)if(i=r[a],!l6(e,t,n,i)||(s=u_(e,i),o=u_(t,i),(s||o)&&(!s||!o||s.configurable!==o.configurable||s.enumerable!==o.enumerable||s.writable!==o.writable)))return!1;return!0}function uve(e,t){return Co(e.valueOf(),t.valueOf())}function fve(e,t){return e.source===t.source&&e.flags===t.flags}function h_(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),i=e.values();let s,o;for(;(s=i.next())&&!s.done;){const l=t.values();let u=!1,f=0;for(;(o=l.next())&&!o.done;){if(!a[f]&&n.equals(s.value,o.value,s.value,o.value,e,t,n)){u=a[f]=!0;break}f++}if(!u)return!1}return!0}function ny(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 dve(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 l6(e,t,n,r){return(r===tve||r===eve||r===Jge)&&(e.$$typeof||t.$$typeof)?!0:Zge(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const hve="[object ArrayBuffer]",pve="[object Arguments]",mve="[object Boolean]",yve="[object DataView]",gve="[object Date]",vve="[object Error]",bve="[object Map]",xve="[object Number]",Sve="[object Object]",wve="[object RegExp]",jve="[object Set]",Ave="[object String]",Ove={"[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},Nve="[object URL]",Eve=Object.prototype.toString;function Tve({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:i,areMapsEqual:s,areNumbersEqual:o,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:f,areSetsEqual:d,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:m}){return function(v,y,b){if(v===y)return!0;if(v==null||y==null)return!1;const x=typeof v;if(x!==typeof y)return!1;if(x!=="object")return x==="number"?o(v,y,b):x==="function"?i(v,y,b):!1;const w=v.constructor;if(w!==y.constructor)return!1;if(w===Object)return l(v,y,b);if(Array.isArray(v))return t(v,y,b);if(w===Date)return r(v,y,b);if(w===RegExp)return f(v,y,b);if(w===Map)return s(v,y,b);if(w===Set)return d(v,y,b);const S=Eve.call(v);if(S===gve)return r(v,y,b);if(S===wve)return f(v,y,b);if(S===bve)return s(v,y,b);if(S===jve)return d(v,y,b);if(S===Sve)return typeof v.then!="function"&&typeof y.then!="function"&&l(v,y,b);if(S===Nve)return p(v,y,b);if(S===vve)return a(v,y,b);if(S===pve)return l(v,y,b);if(Ove[S])return h(v,y,b);if(S===hve)return e(v,y,b);if(S===yve)return n(v,y,b);if(S===mve||S===xve||S===Ave)return u(v,y,b);if(m){let j=m[S];if(!j){const O=Qge(v);O&&(j=m[O])}if(j)return j(v,y,b)}return!1}}function Cve({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:nve,areArraysEqual:n?Ou:rve,areDataViewsEqual:ave,areDatesEqual:ive,areErrorsEqual:sve,areFunctionsEqual:ove,areMapsEqual:n?Vb(d_,Ou):d_,areNumbersEqual:lve,areObjectsEqual:n?Ou:cve,arePrimitiveWrappersEqual:uve,areRegExpsEqual:fve,areSetsEqual:n?Vb(h_,Ou):h_,areTypedArraysEqual:n?Vb(ny,Ou):ny,areUrlsEqual:dve,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const a=Yh(r.areArraysEqual),i=Yh(r.areMapsEqual),s=Yh(r.areObjectsEqual),o=Yh(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:s,areSetsEqual:o})}return r}function _ve(e){return function(t,n,r,a,i,s,o){return e(t,n,o)}}function Pve({circular:e,comparator:t,createState:n,equals:r,strict:a}){if(n)return function(o,l){const{cache:u=e?new WeakMap:void 0,meta:f}=n();return t(o,l,{cache:u,equals:r,meta:f,strict:a})};if(e)return function(o,l){return t(o,l,{cache:new WeakMap,equals:r,meta:void 0,strict:a})};const i={cache:void 0,equals:r,meta:void 0,strict:a};return function(o,l){return t(o,l,i)}}const Mve=us();us({strict:!0});us({circular:!0});us({circular:!0,strict:!0});us({createInternalComparator:()=>Co});us({strict:!0,createInternalComparator:()=>Co});us({circular:!0,createInternalComparator:()=>Co});us({circular:!0,createInternalComparator:()=>Co,strict:!0});function us(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,i=Cve(e),s=Tve(i),o=n?n(s):_ve(s);return Pve({circular:t,comparator:s,createState:r,equals:o,strict:a})}function Rve(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function p_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function a(i){n<0&&(n=i),i-n>t?(e(i),n=-1):Rve(a)};requestAnimationFrame(r)}function P1(e){"@babel/helpers - typeof";return P1=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},P1(e)}function Dve(e){return zve(e)||Lve(e)||$ve(e)||kve()}function kve(){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 $ve(e,t){if(e){if(typeof e=="string")return m_(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 m_(e,t)}}function m_(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 Lve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zve(e){if(Array.isArray(e))return e}function Ive(){var e={},t=function(){return null},n=!1,r=function a(i){if(!n){if(Array.isArray(i)){if(!i.length)return;var s=i,o=Dve(s),l=o[0],u=o.slice(1);if(typeof l=="number"){p_(a.bind(null,u),l);return}a(l),p_(a.bind(null,u));return}P1(i)==="object"&&(e=i,t(e)),typeof i=="function"&&i()}};return{stop:function(){n=!0},start:function(i){n=!1,r(i)},subscribe:function(i){return t=i,function(){t=function(){return null}}}}}function ld(e){"@babel/helpers - typeof";return ld=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},ld(e)}function y_(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 g_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y_(Object(n),!0).forEach(function(r){c6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c6(e,t,n){return t=Bve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bve(e){var t=Uve(e,"string");return ld(t)==="symbol"?t:String(t)}function Uve(e,t){if(ld(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ld(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fve=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(i){return a.includes(i)})})},Vve=function(t){return t},Hve=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},uf=function(t,n){return Object.keys(n).reduce(function(r,a){return g_(g_({},r),{},c6({},a,t(a,n[a])))},{})},v_=function(t,n,r){return t.map(function(a){return"".concat(Hve(a)," ").concat(n,"ms ").concat(r)}).join(",")};function qve(e,t){return Yve(e)||Gve(e,t)||u6(e,t)||Kve()}function Kve(){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 Gve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){u=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw a}}return o}}function Yve(e){if(Array.isArray(e))return e}function Wve(e){return Zve(e)||Qve(e)||u6(e)||Xve()}function Xve(){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 u6(e,t){if(e){if(typeof e=="string")return M1(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 M1(e,t)}}function Qve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zve(e){if(Array.isArray(e))return M1(e)}function M1(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 ry=1e-4,f6=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},d6=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},b_=function(t,n){return function(r){var a=f6(t,n);return d6(a,r)}},Jve=function(t,n){return function(r){var a=f6(t,n),i=[].concat(Wve(a.map(function(s,o){return s*o}).slice(1)),[0]);return d6(i,r)}},x_=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0],i=n[1],s=n[2],o=n[3];if(n.length===1)switch(n[0]){case"linear":a=0,i=0,s=1,o=1;break;case"ease":a=.25,i=.1,s=.25,o=1;break;case"ease-in":a=.42,i=0,s=1,o=1;break;case"ease-out":a=.42,i=0,s=.58,o=1;break;case"ease-in-out":a=0,i=0,s=.58,o=1;break;default:{var l=n[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var u=l[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),f=qve(u,4);a=f[0],i=f[1],s=f[2],o=f[3]}}}var d=b_(a,s),h=b_(i,o),p=Jve(a,s),m=function(y){return y>1?1:y<0?0:y},g=function(y){for(var b=y>1?1:y,x=b,w=0;w<8;++w){var S=d(x)-b,j=p(x);if(Math.abs(S-b)<ry||j<ry)return h(x);x=m(x-S/j)}return h(x)};return g.isStepper=!1,g},ebe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,a=t.damping,i=a===void 0?8:a,s=t.dt,o=s===void 0?17:s,l=function(f,d,h){var p=-(f-d)*r,m=h*i,g=h+(p-m)*o/1e3,v=h*o/1e3+f;return Math.abs(v-d)<ry&&Math.abs(g)<ry?[d,0]:[v,g]};return l.isStepper=!0,l.dt=o,l},tbe=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 x_(a);case"spring":return ebe();default:if(a.split("(")[0]==="cubic-bezier")return x_(a)}return typeof a=="function"?a:null};function cd(e){"@babel/helpers - typeof";return cd=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},cd(e)}function S_(e){return abe(e)||rbe(e)||h6(e)||nbe()}function nbe(){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 rbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function abe(e){if(Array.isArray(e))return D1(e)}function w_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w_(Object(n),!0).forEach(function(r){R1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function R1(e,t,n){return t=ibe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ibe(e){var t=sbe(e,"string");return cd(t)==="symbol"?t:String(t)}function sbe(e,t){if(cd(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cd(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function obe(e,t){return ube(e)||cbe(e,t)||h6(e,t)||lbe()}function lbe(){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 h6(e,t){if(e){if(typeof e=="string")return D1(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 D1(e,t)}}function D1(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 cbe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){u=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw a}}return o}}function ube(e){if(Array.isArray(e))return e}var ay=function(t,n,r){return t+(n-t)*r},k1=function(t){var n=t.from,r=t.to;return n!==r},fbe=function e(t,n,r){var a=uf(function(i,s){if(k1(s)){var o=t(s.from,s.to,s.velocity),l=obe(o,2),u=l[0],f=l[1];return Xt(Xt({},s),{},{from:u,velocity:f})}return s},n);return r<1?uf(function(i,s){return k1(s)?Xt(Xt({},s),{},{velocity:ay(s.velocity,a[i].velocity,r),from:ay(s.from,a[i].from,r)}):s},n):e(t,a,r-1)};const dbe=function(e,t,n,r,a){var i=Fve(e,t),s=i.reduce(function(v,y){return Xt(Xt({},v),{},R1({},y,[e[y],t[y]]))},{}),o=i.reduce(function(v,y){return Xt(Xt({},v),{},R1({},y,{from:e[y],velocity:0,to:t[y]}))},{}),l=-1,u,f,d=function(){return null},h=function(){return uf(function(y,b){return b.from},o)},p=function(){return!Object.values(o).filter(k1).length},m=function(y){u||(u=y);var b=y-u,x=b/n.dt;o=fbe(n,o,x),a(Xt(Xt(Xt({},e),t),h())),u=y,p()||(l=requestAnimationFrame(d))},g=function(y){f||(f=y);var b=(y-f)/r,x=uf(function(S,j){return ay.apply(void 0,S_(j).concat([n(b)]))},s);if(a(Xt(Xt(Xt({},e),t),x)),b<1)l=requestAnimationFrame(d);else{var w=uf(function(S,j){return ay.apply(void 0,S_(j).concat([n(1)]))},s);a(Xt(Xt(Xt({},e),t),w))}};return d=n.isStepper?m:g,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(l)}}};function dc(e){"@babel/helpers - typeof";return dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dc(e)}var hbe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function pbe(e,t){if(e==null)return{};var n=mbe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mbe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Hb(e){return bbe(e)||vbe(e)||gbe(e)||ybe()}function ybe(){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 gbe(e,t){if(e){if(typeof e=="string")return $1(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 $1(e,t)}}function vbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bbe(e){if(Array.isArray(e))return $1(e)}function $1(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 j_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Pr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j_(Object(n),!0).forEach(function(r){Lu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lu(e,t,n){return t=p6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sbe(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,p6(r.key),r)}}function wbe(e,t,n){return t&&Sbe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function p6(e){var t=jbe(e,"string");return dc(t)==="symbol"?t:String(t)}function jbe(e,t){if(dc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Abe(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 Obe(e){var t=Nbe();return function(){var r=iy(e),a;if(t){var i=iy(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return z1(this,a)}}function z1(e,t){if(t&&(dc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return I1(e)}function I1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nbe(){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 iy(e){return iy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},iy(e)}var Fr=function(e){Abe(n,e);var t=Obe(n);function n(r,a){var i;xbe(this,n),i=t.call(this,r,a);var s=i.props,o=s.isActive,l=s.attributeName,u=s.from,f=s.to,d=s.steps,h=s.children,p=s.duration;if(i.handleStyleChange=i.handleStyleChange.bind(I1(i)),i.changeStyle=i.changeStyle.bind(I1(i)),!o||p<=0)return i.state={style:{}},typeof h=="function"&&(i.state={style:f}),z1(i);if(d&&d.length)i.state={style:d[0].style};else if(u){if(typeof h=="function")return i.state={style:u},z1(i);i.state={style:l?Lu({},l,u):u}}else i.state={style:{}};return i}return wbe(n,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,s=a.canBegin;this.mounted=!0,!(!i||!s)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,s=i.isActive,o=i.canBegin,l=i.attributeName,u=i.shouldReAnimate,f=i.to,d=i.from,h=this.state.style;if(o){if(!s){var p={style:l?Lu({},l,f):f};this.state&&h&&(l&&h[l]!==f||!l&&h!==f)&&this.setState(p);return}if(!(Mve(a.to,f)&&a.canBegin&&a.isActive)){var m=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var g=m||u?d:a.to;if(this.state&&h){var v={style:l?Lu({},l,g):g};(l&&h[l]!==g||!l&&h!==g)&&this.setState(v)}this.runAnimation(Pr(Pr({},this.props),{},{from:g,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,s=a.from,o=a.to,l=a.duration,u=a.easing,f=a.begin,d=a.onAnimationEnd,h=a.onAnimationStart,p=dbe(s,o,tbe(u),l,this.changeStyle),m=function(){i.stopJSAnimation=p()};this.manager.start([h,f,m,l,d])}},{key:"runStepAnimation",value:function(a){var i=this,s=a.steps,o=a.begin,l=a.onAnimationStart,u=s[0],f=u.style,d=u.duration,h=d===void 0?0:d,p=function(g,v,y){if(y===0)return g;var b=v.duration,x=v.easing,w=x===void 0?"ease":x,S=v.style,j=v.properties,O=v.onAnimationEnd,N=y>0?s[y-1]:v,E=j||Object.keys(S);if(typeof w=="function"||w==="spring")return[].concat(Hb(g),[i.runJSAnimation.bind(i,{from:N.style,to:S,duration:b,easing:w}),b]);var T=v_(E,b,w),P=Pr(Pr(Pr({},N.style),S),{},{transition:T});return[].concat(Hb(g),[P,b,O]).filter(Vve)};return this.manager.start([l].concat(Hb(s.reduce(p,[f,Math.max(h,o)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=Ive());var i=a.begin,s=a.duration,o=a.attributeName,l=a.to,u=a.easing,f=a.onAnimationStart,d=a.onAnimationEnd,h=a.steps,p=a.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(a);return}if(h.length>1){this.runStepAnimation(a);return}var g=o?Lu({},o,l):l,v=v_(Object.keys(g),s,u);m.start([f,i,Pr(Pr({},g),{},{transition:v}),s,d])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var s=a.duration;a.attributeName,a.easing;var o=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var l=pbe(a,hbe),u=A.Children.count(i),f=this.state.style;if(typeof i=="function")return i(f);if(!o||u===0||s<=0)return i;var d=function(p){var m=p.props,g=m.style,v=g===void 0?{}:g,y=m.className,b=A.cloneElement(p,Pr(Pr({},l),{},{style:Pr(Pr({},v),f),className:y}));return b};return u===1?d(A.Children.only(i)):_.createElement("div",null,A.Children.map(i,function(h){return d(h)}))}}]),n}(A.PureComponent);Fr.displayName="Animate";Fr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Fr.propTypes={from:ke.oneOfType([ke.object,ke.string]),to:ke.oneOfType([ke.object,ke.string]),attributeName:ke.string,duration:ke.number,begin:ke.number,easing:ke.oneOfType([ke.string,ke.func]),steps:ke.arrayOf(ke.shape({duration:ke.number.isRequired,style:ke.object.isRequired,easing:ke.oneOfType([ke.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ke.func]),properties:ke.arrayOf("string"),onAnimationEnd:ke.func})),children:ke.oneOfType([ke.node,ke.func]),isActive:ke.bool,canBegin:ke.bool,onAnimationEnd:ke.func,shouldReAnimate:ke.bool,onAnimationStart:ke.func,onAnimationReStart:ke.func};function ud(e){"@babel/helpers - typeof";return ud=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},ud(e)}function sy(){return sy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sy.apply(this,arguments)}function Ebe(e,t){return Pbe(e)||_be(e,t)||Cbe(e,t)||Tbe()}function Tbe(){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 Cbe(e,t){if(e){if(typeof e=="string")return A_(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 A_(e,t)}}function A_(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 _be(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){u=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw a}}return o}}function Pbe(e){if(Array.isArray(e))return e}function O_(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 N_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O_(Object(n),!0).forEach(function(r){Mbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mbe(e,t,n){return t=Rbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rbe(e){var t=Dbe(e,"string");return ud(t)=="symbol"?t:t+""}function Dbe(e,t){if(ud(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ud(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var E_=function(t,n,r,a,i){var s=Math.min(Math.abs(r)/2,Math.abs(a)/2),o=a>=0?1:-1,l=r>=0?1:-1,u=a>=0&&r>=0||a<0&&r<0?1:0,f;if(s>0&&i instanceof Array){for(var d=[0,0,0,0],h=0,p=4;h<p;h++)d[h]=i[h]>s?s:i[h];f="M".concat(t,",").concat(n+o*d[0]),d[0]>0&&(f+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(u,",").concat(t+l*d[0],",").concat(n)),f+="L ".concat(t+r-l*d[1],",").concat(n),d[1]>0&&(f+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(u,`,
        `).concat(t+r,",").concat(n+o*d[1])),f+="L ".concat(t+r,",").concat(n+a-o*d[2]),d[2]>0&&(f+="A ".concat(d[2],",").concat(d[2],",0,0,").concat(u,`,
        `).concat(t+r-l*d[2],",").concat(n+a)),f+="L ".concat(t+l*d[3],",").concat(n+a),d[3]>0&&(f+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(u,`,
        `).concat(t,",").concat(n+a-o*d[3])),f+="Z"}else if(s>0&&i===+i&&i>0){var m=Math.min(s,i);f="M ".concat(t,",").concat(n+o*m,`
            A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+l*m,",").concat(n,`
            L `).concat(t+r-l*m,",").concat(n,`
            A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+r,",").concat(n+o*m,`
            L `).concat(t+r,",").concat(n+a-o*m,`
            A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+r-l*m,",").concat(n+a,`
            L `).concat(t+l*m,",").concat(n+a,`
            A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t,",").concat(n+a-o*m," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return f},kbe=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,i=n.x,s=n.y,o=n.width,l=n.height;if(Math.abs(o)>0&&Math.abs(l)>0){var u=Math.min(i,i+o),f=Math.max(i,i+o),d=Math.min(s,s+l),h=Math.max(s,s+l);return r>=u&&r<=f&&a>=d&&a<=h}return!1},$be={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},xA=function(t){var n=N_(N_({},$be),t),r=A.useRef(),a=A.useState(-1),i=Ebe(a,2),s=i[0],o=i[1];A.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var w=r.current.getTotalLength();w&&o(w)}catch{}},[]);var l=n.x,u=n.y,f=n.width,d=n.height,h=n.radius,p=n.className,m=n.animationEasing,g=n.animationDuration,v=n.animationBegin,y=n.isAnimationActive,b=n.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||d!==+d||f===0||d===0)return null;var x=be("recharts-rectangle",p);return b?_.createElement(Fr,{canBegin:s>0,from:{width:f,height:d,x:l,y:u},to:{width:f,height:d,x:l,y:u},duration:g,animationEasing:m,isActive:b},function(w){var S=w.width,j=w.height,O=w.x,N=w.y;return _.createElement(Fr,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:g,isActive:y,easing:m},_.createElement("path",sy({},ie(n,!0),{className:x,d:E_(O,N,S,j,h),ref:r})))}):_.createElement("path",sy({},ie(n,!0),{className:x,d:E_(l,u,f,d,h)}))},Lbe=["points","className","baseLinePoints","connectNulls"];function ul(){return ul=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},ul.apply(this,arguments)}function zbe(e,t){if(e==null)return{};var n=Ibe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ibe(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 T_(e){return Vbe(e)||Fbe(e)||Ube(e)||Bbe()}function Bbe(){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 Ube(e,t){if(e){if(typeof e=="string")return B1(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 B1(e,t)}}function Fbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vbe(e){if(Array.isArray(e))return B1(e)}function B1(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 C_=function(t){return t&&t.x===+t.x&&t.y===+t.y},Hbe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){C_(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),C_(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},ff=function(t,n){var r=Hbe(t);n&&(r=[r.reduce(function(i,s){return[].concat(T_(i),T_(s))},[])]);var a=r.map(function(i){return i.reduce(function(s,o,l){return"".concat(s).concat(l===0?"M":"L").concat(o.x,",").concat(o.y)},"")}).join("");return r.length===1?"".concat(a,"Z"):a},qbe=function(t,n,r){var a=ff(t,r);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(ff(n.reverse(),r).slice(1))},Kbe=function(t){var n=t.points,r=t.className,a=t.baseLinePoints,i=t.connectNulls,s=zbe(t,Lbe);if(!n||!n.length)return null;var o=be("recharts-polygon",r);if(a&&a.length){var l=s.stroke&&s.stroke!=="none",u=qbe(n,a,i);return _.createElement("g",{className:o},_.createElement("path",ul({},ie(s,!0),{fill:u.slice(-1)==="Z"?s.fill:"none",stroke:"none",d:u})),l?_.createElement("path",ul({},ie(s,!0),{fill:"none",d:ff(n,i)})):null,l?_.createElement("path",ul({},ie(s,!0),{fill:"none",d:ff(a,i)})):null)}var f=ff(n,i);return _.createElement("path",ul({},ie(s,!0),{fill:f.slice(-1)==="Z"?s.fill:"none",className:o,d:f}))};function U1(){return U1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U1.apply(this,arguments)}var ih=function(t){var n=t.cx,r=t.cy,a=t.r,i=t.className,s=be("recharts-dot",i);return n===+n&&r===+r&&a===+a?A.createElement("circle",U1({},ie(t,!1),Am(t),{className:s,cx:n,cy:r,r:a})):null};function fd(e){"@babel/helpers - typeof";return fd=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},fd(e)}var Gbe=["x","y","top","left","width","height","className"];function F1(){return F1=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},F1.apply(this,arguments)}function __(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 Ybe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?__(Object(n),!0).forEach(function(r){Wbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):__(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wbe(e,t,n){return t=Xbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xbe(e){var t=Qbe(e,"string");return fd(t)=="symbol"?t:t+""}function Qbe(e,t){if(fd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zbe(e,t){if(e==null)return{};var n=Jbe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Jbe(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 exe=function(t,n,r,a,i,s){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(s,",").concat(n,"h").concat(r)},txe=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,s=t.top,o=s===void 0?0:s,l=t.left,u=l===void 0?0:l,f=t.width,d=f===void 0?0:f,h=t.height,p=h===void 0?0:h,m=t.className,g=Zbe(t,Gbe),v=Ybe({x:r,y:i,top:o,left:u,width:d,height:p},g);return!G(r)||!G(i)||!G(d)||!G(p)||!G(o)||!G(u)?null:_.createElement("path",F1({},ie(v,!0),{className:be("recharts-cross",m),d:exe(r,i,d,p,o,u)}))},nxe=Fg,rxe=NL,axe=ya;function ixe(e,t){return e&&e.length?nxe(e,axe(t),rxe):void 0}var sxe=ixe;const oxe=Ie(sxe);var lxe=Fg,cxe=ya,uxe=EL;function fxe(e,t){return e&&e.length?lxe(e,cxe(t),uxe):void 0}var dxe=fxe;const hxe=Ie(dxe);var pxe=["cx","cy","angle","ticks","axisLine"],mxe=["ticks","tick","angle","tickFormatter","stroke"];function hc(e){"@babel/helpers - typeof";return hc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hc(e)}function df(){return df=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},df.apply(this,arguments)}function P_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ms(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P_(Object(n),!0).forEach(function(r){Kg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M_(e,t){if(e==null)return{};var n=yxe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yxe(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 gxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R_(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,y6(r.key),r)}}function vxe(e,t,n){return t&&R_(e.prototype,t),n&&R_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function bxe(e,t,n){return t=oy(t),xxe(e,m6()?Reflect.construct(t,n||[],oy(e).constructor):t.apply(e,n))}function xxe(e,t){if(t&&(hc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sxe(e)}function Sxe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(m6=function(){return!!e})()}function oy(e){return oy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},oy(e)}function wxe(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&&V1(e,t)}function V1(e,t){return V1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},V1(e,t)}function Kg(e,t,n){return t=y6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y6(e){var t=jxe(e,"string");return hc(t)=="symbol"?t:t+""}function jxe(e,t){if(hc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gg=function(e){function t(){return gxe(this,t),bxe(this,t,arguments)}return wxe(t,e),vxe(t,[{key:"getTickValueCoord",value:function(r){var a=r.coordinate,i=this.props,s=i.angle,o=i.cx,l=i.cy;return et(o,l,a,s)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,a;switch(r){case"left":a="end";break;case"right":a="start";break;default:a="middle";break}return a}},{key:"getViewBox",value:function(){var r=this.props,a=r.cx,i=r.cy,s=r.angle,o=r.ticks,l=oxe(o,function(f){return f.coordinate||0}),u=hxe(o,function(f){return f.coordinate||0});return{cx:a,cy:i,startAngle:s,endAngle:s,innerRadius:u.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,i=r.cy,s=r.angle,o=r.ticks,l=r.axisLine,u=M_(r,pxe),f=o.reduce(function(m,g){return[Math.min(m[0],g.coordinate),Math.max(m[1],g.coordinate)]},[1/0,-1/0]),d=et(a,i,f[0],s),h=et(a,i,f[1],s),p=ms(ms(ms({},ie(u,!1)),{},{fill:"none"},ie(l,!1)),{},{x1:d.x,y1:d.y,x2:h.x,y2:h.y});return _.createElement("line",df({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var r=this,a=this.props,i=a.ticks,s=a.tick,o=a.angle,l=a.tickFormatter,u=a.stroke,f=M_(a,mxe),d=this.getTickTextAnchor(),h=ie(f,!1),p=ie(s,!1),m=i.map(function(g,v){var y=r.getTickValueCoord(g),b=ms(ms(ms(ms({textAnchor:d,transform:"rotate(".concat(90-o,", ").concat(y.x,", ").concat(y.y,")")},h),{},{stroke:"none",fill:u},p),{},{index:v},y),{},{payload:g});return _.createElement(Oe,df({className:be("recharts-polar-radius-axis-tick",t6(s)),key:"tick-".concat(g.coordinate)},fo(r.props,g,v)),t.renderTickItem(s,b,l?l(g.value,v):g.value))});return _.createElement(Oe,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var r=this.props,a=r.ticks,i=r.axisLine,s=r.tick;return!a||!a.length?null:_.createElement(Oe,{className:be("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),s&&this.renderTicks(),qt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,a,i){var s;return _.isValidElement(r)?s=_.cloneElement(r,a):de(r)?s=r(a):s=_.createElement(ho,df({},a,{className:"recharts-polar-radius-axis-tick-value"}),i),s}}])}(A.PureComponent);Kg(Gg,"displayName","PolarRadiusAxis");Kg(Gg,"axisType","radiusAxis");Kg(Gg,"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 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 Ns(){return Ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ns.apply(this,arguments)}function D_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D_(Object(n),!0).forEach(function(r){Yg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Axe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v6(r.key),r)}}function Oxe(e,t,n){return t&&k_(e.prototype,t),n&&k_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nxe(e,t,n){return t=ly(t),Exe(e,g6()?Reflect.construct(t,n||[],ly(e).constructor):t.apply(e,n))}function Exe(e,t){if(t&&(pc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Txe(e)}function Txe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g6=function(){return!!e})()}function ly(e){return ly=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ly(e)}function Cxe(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&&H1(e,t)}function H1(e,t){return H1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},H1(e,t)}function Yg(e,t,n){return t=v6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v6(e){var t=_xe(e,"string");return pc(t)=="symbol"?t:t+""}function _xe(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 Pxe=Math.PI/180,$_=1e-5,Wg=function(e){function t(){return Axe(this,t),Nxe(this,t,arguments)}return Cxe(t,e),Oxe(t,[{key:"getTickLineCoord",value:function(r){var a=this.props,i=a.cx,s=a.cy,o=a.radius,l=a.orientation,u=a.tickSize,f=u||8,d=et(i,s,o,r.coordinate),h=et(i,s,o+(l==="inner"?-1:1)*f,r.coordinate);return{x1:d.x,y1:d.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(r){var a=this.props.orientation,i=Math.cos(-r.coordinate*Pxe),s;return i>$_?s=a==="outer"?"start":"end":i<-$_?s=a==="outer"?"end":"start":s="middle",s}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,i=r.cy,s=r.radius,o=r.axisLine,l=r.axisLineType,u=ys(ys({},ie(this.props,!1)),{},{fill:"none"},ie(o,!1));if(l==="circle")return _.createElement(ih,Ns({className:"recharts-polar-angle-axis-line"},u,{cx:a,cy:i,r:s}));var f=this.props.ticks,d=f.map(function(h){return et(a,i,s,h.coordinate)});return _.createElement(Kbe,Ns({className:"recharts-polar-angle-axis-line"},u,{points:d}))}},{key:"renderTicks",value:function(){var r=this,a=this.props,i=a.ticks,s=a.tick,o=a.tickLine,l=a.tickFormatter,u=a.stroke,f=ie(this.props,!1),d=ie(s,!1),h=ys(ys({},f),{},{fill:"none"},ie(o,!1)),p=i.map(function(m,g){var v=r.getTickLineCoord(m),y=r.getTickTextAnchor(m),b=ys(ys(ys({textAnchor:y},f),{},{stroke:"none",fill:u},d),{},{index:g,payload:m,x:v.x2,y:v.y2});return _.createElement(Oe,Ns({className:be("recharts-polar-angle-axis-tick",t6(s)),key:"tick-".concat(m.coordinate)},fo(r.props,m,g)),o&&_.createElement("line",Ns({className:"recharts-polar-angle-axis-tick-line"},h,v)),s&&t.renderTickItem(s,b,l?l(m.value,g):m.value))});return _.createElement(Oe,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var r=this.props,a=r.ticks,i=r.radius,s=r.axisLine;return i<=0||!a||!a.length?null:_.createElement(Oe,{className:be("recharts-polar-angle-axis",this.props.className)},s&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,a,i){var s;return _.isValidElement(r)?s=_.cloneElement(r,a):de(r)?s=r(a):s=_.createElement(ho,Ns({},a,{className:"recharts-polar-angle-axis-tick-value"}),i),s}}])}(A.PureComponent);Yg(Wg,"displayName","PolarAngleAxis");Yg(Wg,"axisType","angleAxis");Yg(Wg,"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 Mxe=j4,Rxe=Mxe(Object.getPrototypeOf,Object),Dxe=Rxe,kxe=si,$xe=Dxe,Lxe=oi,zxe="[object Object]",Ixe=Function.prototype,Bxe=Object.prototype,b6=Ixe.toString,Uxe=Bxe.hasOwnProperty,Fxe=b6.call(Object);function Vxe(e){if(!Lxe(e)||kxe(e)!=zxe)return!1;var t=$xe(e);if(t===null)return!0;var n=Uxe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&b6.call(n)==Fxe}var Hxe=Vxe;const qxe=Ie(Hxe);var Kxe=si,Gxe=oi,Yxe="[object Boolean]";function Wxe(e){return e===!0||e===!1||Gxe(e)&&Kxe(e)==Yxe}var Xxe=Wxe;const Qxe=Ie(Xxe);function dd(e){"@babel/helpers - typeof";return dd=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},dd(e)}function cy(){return cy=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},cy.apply(this,arguments)}function Zxe(e,t){return n0e(e)||t0e(e,t)||e0e(e,t)||Jxe()}function Jxe(){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 e0e(e,t){if(e){if(typeof e=="string")return L_(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 L_(e,t)}}function L_(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 t0e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){u=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw a}}return o}}function n0e(e){if(Array.isArray(e))return e}function z_(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 I_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z_(Object(n),!0).forEach(function(r){r0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function r0e(e,t,n){return t=a0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a0e(e){var t=i0e(e,"string");return dd(t)=="symbol"?t:t+""}function i0e(e,t){if(dd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var B_=function(t,n,r,a,i){var s=r-a,o;return o="M ".concat(t,",").concat(n),o+="L ".concat(t+r,",").concat(n),o+="L ".concat(t+r-s/2,",").concat(n+i),o+="L ".concat(t+r-s/2-a,",").concat(n+i),o+="L ".concat(t,",").concat(n," Z"),o},s0e={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},o0e=function(t){var n=I_(I_({},s0e),t),r=A.useRef(),a=A.useState(-1),i=Zxe(a,2),s=i[0],o=i[1];A.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var x=r.current.getTotalLength();x&&o(x)}catch{}},[]);var l=n.x,u=n.y,f=n.upperWidth,d=n.lowerWidth,h=n.height,p=n.className,m=n.animationEasing,g=n.animationDuration,v=n.animationBegin,y=n.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||d!==+d||h!==+h||f===0&&d===0||h===0)return null;var b=be("recharts-trapezoid",p);return y?_.createElement(Fr,{canBegin:s>0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:u},to:{upperWidth:f,lowerWidth:d,height:h,x:l,y:u},duration:g,animationEasing:m,isActive:y},function(x){var w=x.upperWidth,S=x.lowerWidth,j=x.height,O=x.x,N=x.y;return _.createElement(Fr,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:g,easing:m},_.createElement("path",cy({},ie(n,!0),{className:b,d:B_(O,N,w,S,j),ref:r})))}):_.createElement("g",null,_.createElement("path",cy({},ie(n,!0),{className:b,d:B_(l,u,f,d,h)})))},l0e=["option","shapeType","propTransformer","activeClassName","isActive"];function hd(e){"@babel/helpers - typeof";return hd=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},hd(e)}function c0e(e,t){if(e==null)return{};var n=u0e(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function u0e(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 U_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function uy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U_(Object(n),!0).forEach(function(r){f0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function f0e(e,t,n){return t=d0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d0e(e){var t=h0e(e,"string");return hd(t)=="symbol"?t:t+""}function h0e(e,t){if(hd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function p0e(e,t){return uy(uy({},t),e)}function m0e(e,t){return e==="symbols"}function F_(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return _.createElement(xA,n);case"trapezoid":return _.createElement(o0e,n);case"sector":return _.createElement(a6,n);case"symbols":if(m0e(t))return _.createElement(Ij,n);break;default:return null}}function y0e(e){return A.isValidElement(e)?e.props:e}function x6(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?p0e:r,i=e.activeClassName,s=i===void 0?"recharts-active-shape":i,o=e.isActive,l=c0e(e,l0e),u;if(A.isValidElement(t))u=A.cloneElement(t,uy(uy({},l),y0e(t)));else if(de(t))u=t(l);else if(qxe(t)&&!Qxe(t)){var f=a(t,l);u=_.createElement(F_,{shapeType:n,elementProps:f})}else{var d=l;u=_.createElement(F_,{shapeType:n,elementProps:d})}return o?_.createElement(Oe,{className:s},u):u}function Xg(e,t){return t!=null&&"trapezoids"in e.props}function Qg(e,t){return t!=null&&"sectors"in e.props}function pd(e,t){return t!=null&&"points"in e.props}function g0e(e,t){var n,r,a=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,i=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return a&&i}function v0e(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function b0e(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function x0e(e,t){var n;return Xg(e,t)?n=g0e:Qg(e,t)?n=v0e:pd(e,t)&&(n=b0e),n}function S0e(e,t){var n;return Xg(e,t)?n="trapezoids":Qg(e,t)?n="sectors":pd(e,t)&&(n="points"),n}function w0e(e,t){if(Xg(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(Qg(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 pd(e,t)?t.payload:{}}function j0e(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=S0e(n,t),i=w0e(n,t),s=r.filter(function(l,u){var f=po(i,l),d=n.props[a].filter(function(m){var g=x0e(n,t);return g(m,t)}),h=n.props[a].indexOf(d[d.length-1]),p=u===h;return f&&p}),o=r.indexOf(s[s.length-1]);return o}var Ep;function mc(e){"@babel/helpers - typeof";return mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mc(e)}function fl(){return fl=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},fl.apply(this,arguments)}function V_(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 Qe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V_(Object(n),!0).forEach(function(r){yr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function A0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H_(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,w6(r.key),r)}}function O0e(e,t,n){return t&&H_(e.prototype,t),n&&H_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function N0e(e,t,n){return t=fy(t),E0e(e,S6()?Reflect.construct(t,n||[],fy(e).constructor):t.apply(e,n))}function E0e(e,t){if(t&&(mc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T0e(e)}function T0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(S6=function(){return!!e})()}function fy(e){return fy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fy(e)}function C0e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q1(e,t)}function q1(e,t){return q1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},q1(e,t)}function yr(e,t,n){return t=w6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w6(e){var t=_0e(e,"string");return mc(t)=="symbol"?t:t+""}function _0e(e,t){if(mc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ci=function(e){function t(n){var r;return A0e(this,t),r=N0e(this,t,[n]),yr(r,"pieRef",null),yr(r,"sectorRefs",[]),yr(r,"id",No("recharts-pie-")),yr(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),de(a)&&a()}),yr(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),de(a)&&a()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return C0e(t,e),O0e(t,[{key:"isActiveIndex",value:function(r){var a=this.props.activeIndex;return Array.isArray(a)?a.indexOf(r)!==-1:r===a}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var i=this.props,s=i.label,o=i.labelLine,l=i.dataKey,u=i.valueKey,f=ie(this.props,!1),d=ie(s,!1),h=ie(o,!1),p=s&&s.offsetRadius||20,m=r.map(function(g,v){var y=(g.startAngle+g.endAngle)/2,b=et(g.cx,g.cy,g.outerRadius+p,y),x=Qe(Qe(Qe(Qe({},f),g),{},{stroke:"none"},d),{},{index:v,textAnchor:t.getTextAnchor(b.x,g.cx)},b),w=Qe(Qe(Qe(Qe({},f),g),{},{fill:"none",stroke:g.fill},h),{},{index:v,points:[et(g.cx,g.cy,g.outerRadius,y),b]}),S=l;return me(l)&&me(u)?S="value":me(l)&&(S=u),_.createElement(Oe,{key:"label-".concat(g.startAngle,"-").concat(g.endAngle,"-").concat(g.midAngle,"-").concat(v)},o&&t.renderLabelLineItem(o,w,"line"),t.renderLabelItem(s,x,wt(g,S)))});return _.createElement(Oe,{className:"recharts-pie-labels"},m)}},{key:"renderSectorsStatically",value:function(r){var a=this,i=this.props,s=i.activeShape,o=i.blendStroke,l=i.inactiveShape;return r.map(function(u,f){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&r.length!==1)return null;var d=a.isActiveIndex(f),h=l&&a.hasActiveIndex()?l:null,p=d?s:h,m=Qe(Qe({},u),{},{stroke:o?u.fill:u.stroke,tabIndex:-1});return _.createElement(Oe,fl({ref:function(v){v&&!a.sectorRefs.includes(v)&&a.sectorRefs.push(v)},tabIndex:-1,className:"recharts-pie-sector"},fo(a.props,u,f),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(f)}),_.createElement(x6,fl({option:p,isActive:d,shapeType:"sector"},m)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,a=this.props,i=a.sectors,s=a.isAnimationActive,o=a.animationBegin,l=a.animationDuration,u=a.animationEasing,f=a.animationId,d=this.state,h=d.prevSectors,p=d.prevIsAnimationActive;return _.createElement(Fr,{begin:o,duration:l,isActive:s,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var g=m.t,v=[],y=i&&i[0],b=y.startAngle;return i.forEach(function(x,w){var S=h&&h[w],j=w>0?Qn(x,"paddingAngle",0):0;if(S){var O=Dt(S.endAngle-S.startAngle,x.endAngle-x.startAngle),N=Qe(Qe({},x),{},{startAngle:b+j,endAngle:b+O(g)+j});v.push(N),b=N.endAngle}else{var E=x.endAngle,T=x.startAngle,P=Dt(0,E-T),C=P(g),$=Qe(Qe({},x),{},{startAngle:b+j,endAngle:b+C+j});v.push($),b=$.endAngle}}),_.createElement(Oe,null,r.renderSectorsStatically(v))})}},{key:"attachKeyboardHandlers",value:function(r){var a=this;r.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var s=++a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[s].focus(),a.setState({sectorToFocus:s});break}case"ArrowRight":{var o=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[o].focus(),a.setState({sectorToFocus:o});break}case"Escape":{a.sectorRefs[a.state.sectorToFocus].blur(),a.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,a=r.sectors,i=r.isAnimationActive,s=this.state.prevSectors;return i&&a&&a.length&&(!s||!po(s,a))?this.renderSectorsWithAnimation():this.renderSectorsStatically(a)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,a=this.props,i=a.hide,s=a.sectors,o=a.className,l=a.label,u=a.cx,f=a.cy,d=a.innerRadius,h=a.outerRadius,p=a.isAnimationActive,m=this.state.isAnimationFinished;if(i||!s||!s.length||!G(u)||!G(f)||!G(d)||!G(h))return null;var g=be("recharts-pie",o);return _.createElement(Oe,{tabIndex:this.props.rootTabIndex,className:g,ref:function(y){r.pieRef=y}},this.renderSectors(),l&&this.renderLabels(s),qt.renderCallByParent(this.props,null,!1),(!p||m)&&ca.renderCallByParent(this.props,s,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return a.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:a.curSectors,isAnimationFinished:!0}:r.sectors!==a.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,a){return r>a?"start":r<a?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,a,i){if(_.isValidElement(r))return _.cloneElement(r,a);if(de(r))return r(a);var s=be("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return _.createElement(eo,fl({},a,{key:i,type:"linear",className:s}))}},{key:"renderLabelItem",value:function(r,a,i){if(_.isValidElement(r))return _.cloneElement(r,a);var s=i;if(de(r)&&(s=r(a),_.isValidElement(s)))return s;var o=be("recharts-pie-label-text",typeof r!="boolean"&&!de(r)?r.className:"");return _.createElement(ho,fl({},a,{alignmentBaseline:"middle",className:o}),s)}}])}(A.PureComponent);Ep=ci;yr(ci,"displayName","Pie");yr(ci,"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:!os.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});yr(ci,"parseDeltaAngle",function(e,t){var n=mn(t-e),r=Math.min(Math.abs(t-e),360);return n*r});yr(ci,"getRealPieData",function(e){var t=e.data,n=e.children,r=ie(e,!1),a=Zn(n,kg);return t&&t.length?t.map(function(i,s){return Qe(Qe(Qe({payload:i},r),i),a&&a[s]&&a[s].props)}):a&&a.length?a.map(function(i){return Qe(Qe({},r),i.props)}):[]});yr(ci,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,i=t.height,s=e6(a,i),o=r+yn(e.cx,a,a/2),l=n+yn(e.cy,i,i/2),u=yn(e.innerRadius,s,0),f=yn(e.outerRadius,s,s*.8),d=e.maxRadius||Math.sqrt(a*a+i*i)/2;return{cx:o,cy:l,innerRadius:u,outerRadius:f,maxRadius:d}});yr(ci,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?Qe(Qe({},t.type.defaultProps),t.props):t.props,a=Ep.getRealPieData(r);if(!a||!a.length)return null;var i=r.cornerRadius,s=r.startAngle,o=r.endAngle,l=r.paddingAngle,u=r.dataKey,f=r.nameKey,d=r.valueKey,h=r.tooltipType,p=Math.abs(r.minAngle),m=Ep.parseCoordinateOfPie(r,n),g=Ep.parseDeltaAngle(s,o),v=Math.abs(g),y=u;me(u)&&me(d)?(Br(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),y="value"):me(u)&&(Br(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),y=d);var b=a.filter(function(N){return wt(N,y,0)!==0}).length,x=(v>=360?b:b-1)*l,w=v-b*p-x,S=a.reduce(function(N,E){var T=wt(E,y,0);return N+(G(T)?T:0)},0),j;if(S>0){var O;j=a.map(function(N,E){var T=wt(N,y,0),P=wt(N,f,E),C=(G(T)?T:0)/S,$;E?$=O.endAngle+mn(g)*l*(T!==0?1:0):$=s;var D=$+mn(g)*((T!==0?p:0)+C*w),k=($+D)/2,M=(m.innerRadius+m.outerRadius)/2,L=[{name:P,value:T,payload:N,dataKey:y,type:h}],I=et(m.cx,m.cy,M,k);return O=Qe(Qe(Qe({percent:C,cornerRadius:i,name:P,tooltipPayload:L,midAngle:k,middleRadius:M,tooltipPosition:I},N),m),{},{value:wt(N,y),startAngle:$,endAngle:D,payload:N,paddingAngle:mn(g)*l}),O})}return Qe(Qe({},m),{},{sectors:j,data:a})});var P0e=Math.ceil,M0e=Math.max;function R0e(e,t,n,r){for(var a=-1,i=M0e(P0e((t-e)/(n||1)),0),s=Array(i);i--;)s[r?i:++a]=e,e+=n;return s}var D0e=R0e,k0e=F4,q_=1/0,$0e=17976931348623157e292;function L0e(e){if(!e)return e===0?e:0;if(e=k0e(e),e===q_||e===-q_){var t=e<0?-1:1;return t*$0e}return e===e?e:0}var j6=L0e,z0e=D0e,I0e=Dg,qb=j6;function B0e(e){return function(t,n,r){return r&&typeof r!="number"&&I0e(t,n,r)&&(n=r=void 0),t=qb(t),n===void 0?(n=t,t=0):n=qb(n),r=r===void 0?t<n?1:-1:qb(r),z0e(t,n,r,e)}}var U0e=B0e,F0e=U0e,V0e=F0e(),H0e=V0e;const dy=Ie(H0e);function md(e){"@babel/helpers - typeof";return md=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},md(e)}function K_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function G_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K_(Object(n),!0).forEach(function(r){A6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function A6(e,t,n){return t=q0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q0e(e){var t=K0e(e,"string");return md(t)=="symbol"?t:t+""}function K0e(e,t){if(md(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(md(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var G0e=["Webkit","Moz","O","ms"],Y0e=function(t,n){var r=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=G0e.reduce(function(i,s){return G_(G_({},i),{},A6({},s+r,n))},{});return a[t]=n,a};function yc(e){"@babel/helpers - typeof";return yc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yc(e)}function hy(){return hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hy.apply(this,arguments)}function Y_(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 Kb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y_(Object(n),!0).forEach(function(r){Ln(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function W0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W_(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,N6(r.key),r)}}function X0e(e,t,n){return t&&W_(e.prototype,t),n&&W_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q0e(e,t,n){return t=py(t),Z0e(e,O6()?Reflect.construct(t,n||[],py(e).constructor):t.apply(e,n))}function Z0e(e,t){if(t&&(yc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return J0e(e)}function J0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(O6=function(){return!!e})()}function py(e){return py=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},py(e)}function e1e(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&&K1(e,t)}function K1(e,t){return K1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},K1(e,t)}function Ln(e,t,n){return t=N6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N6(e){var t=t1e(e,"string");return yc(t)=="symbol"?t:t+""}function t1e(e,t){if(yc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var n1e=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,i=t.x,s=t.width,o=t.travellerWidth;if(!n||!n.length)return{};var l=n.length,u=lf().domain(dy(0,l)).range([i,i+s-o]),f=u.domain().map(function(d){return u(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(a),scale:u,scaleValues:f}},X_=function(t){return t.changedTouches&&!!t.changedTouches.length},gc=function(e){function t(n){var r;return W0e(this,t),r=Q0e(this,t,[n]),Ln(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),Ln(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),Ln(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=r.props,i=a.endIndex,s=a.onDragEnd,o=a.startIndex;s==null||s({endIndex:i,startIndex:o})}),r.detachDragEndListener()}),Ln(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Ln(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Ln(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Ln(r,"handleSlideDragStart",function(a){var i=X_(a)?a.changedTouches[0]:a;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return e1e(t,e),X0e(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var a=r.startX,i=r.endX,s=this.state.scaleValues,o=this.props,l=o.gap,u=o.data,f=u.length-1,d=Math.min(a,i),h=Math.max(a,i),p=t.getIndexInRange(s,d),m=t.getIndexInRange(s,h);return{startIndex:p-p%l,endIndex:m===f?f:m-m%l}}},{key:"getTextOfTick",value:function(r){var a=this.props,i=a.data,s=a.tickFormatter,o=a.dataKey,l=wt(i[r],o,r);return de(s)?s(l,r):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var a=this.state,i=a.slideMoveStartX,s=a.startX,o=a.endX,l=this.props,u=l.x,f=l.width,d=l.travellerWidth,h=l.startIndex,p=l.endIndex,m=l.onChange,g=r.pageX-i;g>0?g=Math.min(g,u+f-d-o,u+f-d-s):g<0&&(g=Math.max(g,u-s,u-o));var v=this.getIndex({startX:s+g,endX:o+g});(v.startIndex!==h||v.endIndex!==p)&&m&&m(v),this.setState({startX:s+g,endX:o+g,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var i=X_(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var a=this.state,i=a.brushMoveStartX,s=a.movingTravellerId,o=a.endX,l=a.startX,u=this.state[s],f=this.props,d=f.x,h=f.width,p=f.travellerWidth,m=f.onChange,g=f.gap,v=f.data,y={startX:this.state.startX,endX:this.state.endX},b=r.pageX-i;b>0?b=Math.min(b,d+h-p-u):b<0&&(b=Math.max(b,d-u)),y[s]=u+b;var x=this.getIndex(y),w=x.startIndex,S=x.endIndex,j=function(){var N=v.length-1;return s==="startX"&&(o>l?w%g===0:S%g===0)||o<l&&S===N||s==="endX"&&(o>l?S%g===0:w%g===0)||o>l&&S===N};this.setState(Ln(Ln({},s,u+b),"brushMoveStartX",r.pageX),function(){m&&j()&&m(x)})}},{key:"handleTravellerMoveKeyboard",value:function(r,a){var i=this,s=this.state,o=s.scaleValues,l=s.startX,u=s.endX,f=this.state[a],d=o.indexOf(f);if(d!==-1){var h=d+r;if(!(h===-1||h>=o.length)){var p=o[h];a==="startX"&&p>=u||a==="endX"&&p<=l||this.setState(Ln({},a,p),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,a=r.x,i=r.y,s=r.width,o=r.height,l=r.fill,u=r.stroke;return _.createElement("rect",{stroke:u,fill:l,x:a,y:i,width:s,height:o})}},{key:"renderPanorama",value:function(){var r=this.props,a=r.x,i=r.y,s=r.width,o=r.height,l=r.data,u=r.children,f=r.padding,d=A.Children.only(u);return d?_.cloneElement(d,{x:a,y:i,width:s,height:o,margin:f,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(r,a){var i,s,o=this,l=this.props,u=l.y,f=l.travellerWidth,d=l.height,h=l.traveller,p=l.ariaLabel,m=l.data,g=l.startIndex,v=l.endIndex,y=Math.max(r,this.props.x),b=Kb(Kb({},ie(this.props,!1)),{},{x:y,y:u,width:f,height:d}),x=p||"Min value: ".concat((i=m[g])===null||i===void 0?void 0:i.name,", Max value: ").concat((s=m[v])===null||s===void 0?void 0:s.name);return _.createElement(Oe,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(S){["ArrowLeft","ArrowRight"].includes(S.key)&&(S.preventDefault(),S.stopPropagation(),o.handleTravellerMoveKeyboard(S.key==="ArrowRight"?1:-1,a))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,b))}},{key:"renderSlide",value:function(r,a){var i=this.props,s=i.y,o=i.height,l=i.stroke,u=i.travellerWidth,f=Math.min(r,a)+u,d=Math.max(Math.abs(a-r)-u,0);return _.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:f,y:s,width:d,height:o})}},{key:"renderText",value:function(){var r=this.props,a=r.startIndex,i=r.endIndex,s=r.y,o=r.height,l=r.travellerWidth,u=r.stroke,f=this.state,d=f.startX,h=f.endX,p=5,m={pointerEvents:"none",fill:u};return _.createElement(Oe,{className:"recharts-brush-texts"},_.createElement(ho,hy({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,h)-p,y:s+o/2},m),this.getTextOfTick(a)),_.createElement(ho,hy({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,h)+l+p,y:s+o/2},m),this.getTextOfTick(i)))}},{key:"render",value:function(){var r=this.props,a=r.data,i=r.className,s=r.children,o=r.x,l=r.y,u=r.width,f=r.height,d=r.alwaysShowText,h=this.state,p=h.startX,m=h.endX,g=h.isTextActive,v=h.isSlideMoving,y=h.isTravellerMoving,b=h.isTravellerFocused;if(!a||!a.length||!G(o)||!G(l)||!G(u)||!G(f)||u<=0||f<=0)return null;var x=be("recharts-brush",i),w=_.Children.count(s)===1,S=Y0e("userSelect","none");return _.createElement(Oe,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:S},this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(p,m),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(m,"endX"),(g||v||y||b||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var a=r.x,i=r.y,s=r.width,o=r.height,l=r.stroke,u=Math.floor(i+o/2)-1;return _.createElement(_.Fragment,null,_.createElement("rect",{x:a,y:i,width:s,height:o,fill:l,stroke:"none"}),_.createElement("line",{x1:a+1,y1:u,x2:a+s-1,y2:u,fill:"none",stroke:"#fff"}),_.createElement("line",{x1:a+1,y1:u+2,x2:a+s-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,a){var i;return _.isValidElement(r)?i=_.cloneElement(r,a):de(r)?i=r(a):i=t.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(r,a){var i=r.data,s=r.width,o=r.x,l=r.travellerWidth,u=r.updateId,f=r.startIndex,d=r.endIndex;if(i!==a.prevData||u!==a.prevUpdateId)return Kb({prevData:i,prevTravellerWidth:l,prevUpdateId:u,prevX:o,prevWidth:s},i&&i.length?n1e({data:i,width:s,x:o,travellerWidth:l,startIndex:f,endIndex:d}):{scale:null,scaleValues:null});if(a.scale&&(s!==a.prevWidth||o!==a.prevX||l!==a.prevTravellerWidth)){a.scale.range([o,o+s-l]);var h=a.scale.domain().map(function(p){return a.scale(p)});return{prevData:i,prevTravellerWidth:l,prevUpdateId:u,prevX:o,prevWidth:s,startX:a.scale(r.startIndex),endX:a.scale(r.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(r,a){for(var i=r.length,s=0,o=i-1;o-s>1;){var l=Math.floor((s+o)/2);r[l]>a?o=l:s=l}return a>=r[o]?o:s}}])}(A.PureComponent);Ln(gc,"displayName","Brush");Ln(gc,"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 r1e=Kj;function a1e(e,t){var n;return r1e(e,function(r,a,i){return n=t(r,a,i),!n}),!!n}var i1e=a1e,s1e=m4,o1e=ya,l1e=i1e,c1e=Dn,u1e=Dg;function f1e(e,t,n){var r=c1e(e)?s1e:l1e;return n&&u1e(e,t,n)&&(t=void 0),r(e,o1e(t))}var d1e=f1e;const h1e=Ie(d1e);var ua=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},Q_=L4;function p1e(e,t,n){t=="__proto__"&&Q_?Q_(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var m1e=p1e,y1e=m1e,g1e=k4,v1e=ya;function b1e(e,t){var n={};return t=v1e(t),g1e(e,function(r,a,i){y1e(n,a,t(r,a,i))}),n}var x1e=b1e;const S1e=Ie(x1e);function w1e(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var j1e=w1e,A1e=Kj;function O1e(e,t){var n=!0;return A1e(e,function(r,a,i){return n=!!t(r,a,i),n}),n}var N1e=O1e,E1e=j1e,T1e=N1e,C1e=ya,_1e=Dn,P1e=Dg;function M1e(e,t,n){var r=_1e(e)?E1e:T1e;return n&&P1e(e,t,n)&&(t=void 0),r(e,C1e(t))}var R1e=M1e;const E6=Ie(R1e);var D1e=["x","y"];function yd(e){"@babel/helpers - typeof";return yd=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},yd(e)}function G1(){return G1=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},G1.apply(this,arguments)}function Z_(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 Nu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z_(Object(n),!0).forEach(function(r){k1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function k1e(e,t,n){return t=$1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $1e(e){var t=L1e(e,"string");return yd(t)=="symbol"?t:t+""}function L1e(e,t){if(yd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function z1e(e,t){if(e==null)return{};var n=I1e(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function I1e(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 B1e(e,t){var n=e.x,r=e.y,a=z1e(e,D1e),i="".concat(n),s=parseInt(i,10),o="".concat(r),l=parseInt(o,10),u="".concat(t.height||a.height),f=parseInt(u,10),d="".concat(t.width||a.width),h=parseInt(d,10);return Nu(Nu(Nu(Nu(Nu({},t),a),s?{x:s}:{}),l?{y:l}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function J_(e){return _.createElement(x6,G1({shapeType:"rectangle",propTransformer:B1e,activeClassName:"recharts-active-bar"},e))}var U1e=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,a){if(typeof t=="number")return t;var i=G(r)||cte(r);return i?t(r,a):(i||yo(),n)}},F1e=["value","background"],T6;function vc(e){"@babel/helpers - typeof";return vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vc(e)}function V1e(e,t){if(e==null)return{};var n=H1e(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function H1e(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 my(){return my=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},my.apply(this,arguments)}function eP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ot(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eP(Object(n),!0).forEach(function(r){zi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function q1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tP(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,_6(r.key),r)}}function K1e(e,t,n){return t&&tP(e.prototype,t),n&&tP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function G1e(e,t,n){return t=yy(t),Y1e(e,C6()?Reflect.construct(t,n||[],yy(e).constructor):t.apply(e,n))}function Y1e(e,t){if(t&&(vc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W1e(e)}function W1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C6=function(){return!!e})()}function yy(e){return yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yy(e)}function X1e(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&&Y1(e,t)}function Y1(e,t){return Y1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Y1(e,t)}function zi(e,t,n){return t=_6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _6(e){var t=Q1e(e,"string");return vc(t)=="symbol"?t:t+""}function Q1e(e,t){if(vc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _o=function(e){function t(){var n;q1e(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=G1e(this,t,[].concat(a)),zi(n,"state",{isAnimationFinished:!1}),zi(n,"id",No("recharts-bar-")),zi(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),s&&s()}),zi(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),s&&s()}),n}return X1e(t,e),K1e(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,i=this.props,s=i.shape,o=i.dataKey,l=i.activeIndex,u=i.activeBar,f=ie(this.props,!1);return r&&r.map(function(d,h){var p=h===l,m=p?u:s,g=Ot(Ot(Ot({},f),d),{},{isActive:p,option:m,index:h,dataKey:o,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return _.createElement(Oe,my({className:"recharts-bar-rectangle"},fo(a.props,d,h),{key:"rectangle-".concat(d==null?void 0:d.x,"-").concat(d==null?void 0:d.y,"-").concat(d==null?void 0:d.value,"-").concat(h)}),_.createElement(J_,g))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,a=this.props,i=a.data,s=a.layout,o=a.isAnimationActive,l=a.animationBegin,u=a.animationDuration,f=a.animationEasing,d=a.animationId,h=this.state.prevData;return _.createElement(Fr,{begin:l,duration:u,isActive:o,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var m=p.t,g=i.map(function(v,y){var b=h&&h[y];if(b){var x=Dt(b.x,v.x),w=Dt(b.y,v.y),S=Dt(b.width,v.width),j=Dt(b.height,v.height);return Ot(Ot({},v),{},{x:x(m),y:w(m),width:S(m),height:j(m)})}if(s==="horizontal"){var O=Dt(0,v.height),N=O(m);return Ot(Ot({},v),{},{y:v.y+v.height-N,height:N})}var E=Dt(0,v.width),T=E(m);return Ot(Ot({},v),{},{width:T})});return _.createElement(Oe,null,r.renderRectanglesStatically(g))})}},{key:"renderRectangles",value:function(){var r=this.props,a=r.data,i=r.isAnimationActive,s=this.state.prevData;return i&&a&&a.length&&(!s||!po(s,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var r=this,a=this.props,i=a.data,s=a.dataKey,o=a.activeIndex,l=ie(this.props.background,!1);return i.map(function(u,f){u.value;var d=u.background,h=V1e(u,F1e);if(!d)return null;var p=Ot(Ot(Ot(Ot(Ot({},h),{},{fill:"#eee"},d),l),fo(r.props,u,f)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:s,index:f,className:"recharts-bar-background-rectangle"});return _.createElement(J_,my({key:"background-bar-".concat(f),option:r.props.background,isActive:f===o},p))})}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,s=i.data,o=i.xAxis,l=i.yAxis,u=i.layout,f=i.children,d=Zn(f,ah);if(!d)return null;var h=u==="vertical"?s[0].height/2:s[0].width/2,p=function(v,y){var b=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:b,errorVal:wt(v,y)}},m={clipPath:r?"url(#clipPath-".concat(a,")"):null};return _.createElement(Oe,m,d.map(function(g){return _.cloneElement(g,{key:"error-bar-".concat(a,"-").concat(g.props.dataKey),data:s,xAxis:o,yAxis:l,layout:u,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var r=this.props,a=r.hide,i=r.data,s=r.className,o=r.xAxis,l=r.yAxis,u=r.left,f=r.top,d=r.width,h=r.height,p=r.isAnimationActive,m=r.background,g=r.id;if(a||!i||!i.length)return null;var v=this.state.isAnimationFinished,y=be("recharts-bar",s),b=o&&o.allowDataOverflow,x=l&&l.allowDataOverflow,w=b||x,S=me(g)?this.id:g;return _.createElement(Oe,{className:y},b||x?_.createElement("defs",null,_.createElement("clipPath",{id:"clipPath-".concat(S)},_.createElement("rect",{x:b?u:u-d/2,y:x?f:f-h/2,width:b?d:d*2,height:x?h:h*2}))):null,_.createElement(Oe,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(S,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,S),(!p||v)&&ca.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:a.curData}:r.data!==a.curData?{curData:r.data}:null}}])}(A.PureComponent);T6=_o;zi(_o,"displayName","Bar");zi(_o,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!os.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});zi(_o,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,a=e.bandSize,i=e.xAxis,s=e.yAxis,o=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,f=e.dataStartIndex,d=e.displayedData,h=e.offset,p=Eye(r,n);if(!p)return null;var m=t.layout,g=n.type.defaultProps,v=g!==void 0?Ot(Ot({},g),n.props):n.props,y=v.dataKey,b=v.children,x=v.minPointSize,w=m==="horizontal"?s:i,S=u?w.scale.domain():null,j=Dye({numericAxis:w}),O=Zn(b,kg),N=d.map(function(E,T){var P,C,$,D,k,M;u?P=Tye(u[f+T],S):(P=wt(E,y),Array.isArray(P)||(P=[j,P]));var L=U1e(x,T6.defaultProps.minPointSize)(P[1],T);if(m==="horizontal"){var I,F=[s.scale(P[0]),s.scale(P[1])],q=F[0],W=F[1];C=GC({axis:i,ticks:o,bandSize:a,offset:p.offset,entry:E,index:T}),$=(I=W??q)!==null&&I!==void 0?I:void 0,D=p.size;var K=q-W;if(k=Number.isNaN(K)?0:K,M={x:C,y:s.y,width:D,height:s.height},Math.abs(L)>0&&Math.abs(k)<Math.abs(L)){var ne=mn(k||L)*(Math.abs(L)-Math.abs(k));$-=ne,k+=ne}}else{var J=[i.scale(P[0]),i.scale(P[1])],ye=J[0],ee=J[1];if(C=ye,$=GC({axis:s,ticks:l,bandSize:a,offset:p.offset,entry:E,index:T}),D=ee-ye,k=p.size,M={x:i.x,y:$,width:i.width,height:k},Math.abs(L)>0&&Math.abs(D)<Math.abs(L)){var ot=mn(D||L)*(Math.abs(L)-Math.abs(D));D+=ot}}return Ot(Ot(Ot({},E),{},{x:C,y:$,width:D,height:k,value:u?P:P[1],payload:E,background:M},O&&O[T]&&O[T].props),{},{tooltipPayload:[ZL(n,E)],tooltipPosition:{x:C+D/2,y:$+k/2}})});return Ot({data:N,layout:m},h)});function gd(e){"@babel/helpers - typeof";return gd=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},gd(e)}function Z1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,P6(r.key),r)}}function J1e(e,t,n){return t&&nP(e.prototype,t),n&&nP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function rP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function kr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rP(Object(n),!0).forEach(function(r){Zg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zg(e,t,n){return t=P6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P6(e){var t=eSe(e,"string");return gd(t)=="symbol"?t:t+""}function eSe(e,t){if(gd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SA=function(t,n,r,a,i){var s=t.width,o=t.height,l=t.layout,u=t.children,f=Object.keys(n),d={left:r.left,leftMirror:r.left,right:s-r.right,rightMirror:s-r.right,top:r.top,topMirror:r.top,bottom:o-r.bottom,bottomMirror:o-r.bottom},h=!!In(u,_o);return f.reduce(function(p,m){var g=n[m],v=g.orientation,y=g.domain,b=g.padding,x=b===void 0?{}:b,w=g.mirror,S=g.reversed,j="".concat(v).concat(w?"Mirror":""),O,N,E,T,P;if(g.type==="number"&&(g.padding==="gap"||g.padding==="no-gap")){var C=y[1]-y[0],$=1/0,D=g.categoricalDomain.sort(dte);if(D.forEach(function(J,ye){ye>0&&($=Math.min((J||0)-(D[ye-1]||0),$))}),Number.isFinite($)){var k=$/C,M=g.layout==="vertical"?r.height:r.width;if(g.padding==="gap"&&(O=k*M/2),g.padding==="no-gap"){var L=yn(t.barCategoryGap,k*M),I=k*M/2;O=I-L-(I-L)/M*L}}}a==="xAxis"?N=[r.left+(x.left||0)+(O||0),r.left+r.width-(x.right||0)-(O||0)]:a==="yAxis"?N=l==="horizontal"?[r.top+r.height-(x.bottom||0),r.top+(x.top||0)]:[r.top+(x.top||0)+(O||0),r.top+r.height-(x.bottom||0)-(O||0)]:N=g.range,S&&(N=[N[1],N[0]]);var F=YL(g,i,h),q=F.scale,W=F.realScaleType;q.domain(y).range(N),WL(q);var K=XL(q,kr(kr({},g),{},{realScaleType:W}));a==="xAxis"?(P=v==="top"&&!w||v==="bottom"&&w,E=r.left,T=d[j]-P*g.height):a==="yAxis"&&(P=v==="left"&&!w||v==="right"&&w,E=d[j]-P*g.width,T=r.top);var ne=kr(kr(kr({},g),K),{},{realScaleType:W,x:E,y:T,scale:q,width:a==="xAxis"?r.width:g.width,height:a==="yAxis"?r.height:g.height});return ne.bandSize=Jm(ne,K),!g.hide&&a==="xAxis"?d[j]+=(P?-1:1)*ne.height:g.hide||(d[j]+=(P?-1:1)*ne.width),kr(kr({},p),{},Zg({},m,ne))},{})},M6=function(t,n){var r=t.x,a=t.y,i=n.x,s=n.y;return{x:Math.min(r,i),y:Math.min(a,s),width:Math.abs(i-r),height:Math.abs(s-a)}},tSe=function(t){var n=t.x1,r=t.y1,a=t.x2,i=t.y2;return M6({x:n,y:r},{x:a,y:i})},R6=function(){function e(t){Z1e(this,e),this.scale=t}return J1e(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.bandAware,i=r.position;if(n!==void 0){if(i)switch(i){case"start":return this.scale(n);case"middle":{var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+s}case"end":{var o=this.bandwidth?this.bandwidth():0;return this.scale(n)+o}default:return this.scale(n)}if(a){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),a=r[0],i=r[r.length-1];return a<=i?n>=a&&n<=i:n>=i&&n<=a}}],[{key:"create",value:function(n){return new e(n)}}])}();Zg(R6,"EPS",1e-4);var wA=function(t){var n=Object.keys(t).reduce(function(r,a){return kr(kr({},r),{},Zg({},a,R6.create(t[a])))},{});return kr(kr({},n),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=i.bandAware,o=i.position;return S1e(a,function(l,u){return n[u].apply(l,{bandAware:s,position:o})})},isInRange:function(a){return E6(a,function(i,s){return n[s].isInRange(i)})}})};function nSe(e){return(e%180+180)%180}var rSe=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=nSe(a),s=i*Math.PI/180,o=Math.atan(r/n),l=s>o&&s<Math.PI-o?r/Math.sin(s):n/Math.cos(s);return Math.abs(l)},aSe=ya,iSe=Jd,sSe=Mg;function oSe(e){return function(t,n,r){var a=Object(t);if(!iSe(t)){var i=aSe(n);t=sSe(t),n=function(o){return i(a[o],o,a)}}var s=e(t,n,r);return s>-1?a[i?t[s]:s]:void 0}}var lSe=oSe,cSe=j6;function uSe(e){var t=cSe(e),n=t%1;return t===t?n?t-n:t:0}var fSe=uSe,dSe=C4,hSe=ya,pSe=fSe,mSe=Math.max;function ySe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=n==null?0:pSe(n);return a<0&&(a=mSe(r+a,0)),dSe(e,hSe(t),a)}var gSe=ySe,vSe=lSe,bSe=gSe,xSe=vSe(bSe),SSe=xSe;const wSe=Ie(SSe);var jSe=mee(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("")}),jA=A.createContext(void 0),AA=A.createContext(void 0),D6=A.createContext(void 0),k6=A.createContext({}),$6=A.createContext(void 0),L6=A.createContext(0),z6=A.createContext(0),aP=function(t){var n=t.state,r=n.xAxisMap,a=n.yAxisMap,i=n.offset,s=t.clipPathId,o=t.children,l=t.width,u=t.height,f=jSe(i);return _.createElement(jA.Provider,{value:r},_.createElement(AA.Provider,{value:a},_.createElement(k6.Provider,{value:i},_.createElement(D6.Provider,{value:f},_.createElement($6.Provider,{value:s},_.createElement(L6.Provider,{value:u},_.createElement(z6.Provider,{value:l},o)))))))},ASe=function(){return A.useContext($6)},I6=function(t){var n=A.useContext(jA);n==null&&yo();var r=n[t];return r==null&&yo(),r},OSe=function(){var t=A.useContext(jA);return ji(t)},NSe=function(){var t=A.useContext(AA),n=wSe(t,function(r){return E6(r.domain,Number.isFinite)});return n||ji(t)},B6=function(t){var n=A.useContext(AA);n==null&&yo();var r=n[t];return r==null&&yo(),r},ESe=function(){var t=A.useContext(D6);return t},TSe=function(){return A.useContext(k6)},OA=function(){return A.useContext(z6)},NA=function(){return A.useContext(L6)};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 CSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _Se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,F6(r.key),r)}}function PSe(e,t,n){return t&&_Se(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function MSe(e,t,n){return t=gy(t),RSe(e,U6()?Reflect.construct(t,n||[],gy(e).constructor):t.apply(e,n))}function RSe(e,t){if(t&&(bc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DSe(e)}function DSe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(U6=function(){return!!e})()}function gy(e){return gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gy(e)}function kSe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W1(e,t)}function W1(e,t){return W1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},W1(e,t)}function iP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function sP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iP(Object(n),!0).forEach(function(r){EA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EA(e,t,n){return t=F6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F6(e){var t=$Se(e,"string");return bc(t)=="symbol"?t:t+""}function $Se(e,t){if(bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function LSe(e,t){return USe(e)||BSe(e,t)||ISe(e,t)||zSe()}function zSe(){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 ISe(e,t){if(e){if(typeof e=="string")return oP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oP(e,t)}}function oP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function BSe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){u=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw a}}return o}}function USe(e){if(Array.isArray(e))return e}function X1(){return X1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X1.apply(this,arguments)}var FSe=function(t,n){var r;return _.isValidElement(t)?r=_.cloneElement(t,n):de(t)?r=t(n):r=_.createElement("line",X1({},n,{className:"recharts-reference-line-line"})),r},VSe=function(t,n,r,a,i,s,o,l,u){var f=i.x,d=i.y,h=i.width,p=i.height;if(r){var m=u.y,g=t.y.apply(m,{position:s});if(ua(u,"discard")&&!t.y.isInRange(g))return null;var v=[{x:f+h,y:g},{x:f,y:g}];return l==="left"?v.reverse():v}if(n){var y=u.x,b=t.x.apply(y,{position:s});if(ua(u,"discard")&&!t.x.isInRange(b))return null;var x=[{x:b,y:d+p},{x:b,y:d}];return o==="top"?x.reverse():x}if(a){var w=u.segment,S=w.map(function(j){return t.apply(j,{position:s})});return ua(u,"discard")&&h1e(S,function(j){return!t.isInRange(j)})?null:S}return null};function HSe(e){var t=e.x,n=e.y,r=e.segment,a=e.xAxisId,i=e.yAxisId,s=e.shape,o=e.className,l=e.alwaysShow,u=ASe(),f=I6(a),d=B6(i),h=ESe();if(!u||!h)return null;Br(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=wA({x:f.scale,y:d.scale}),m=$t(t),g=$t(n),v=r&&r.length===2,y=VSe(p,m,g,v,h,e.position,f.orientation,d.orientation,e);if(!y)return null;var b=LSe(y,2),x=b[0],w=x.x,S=x.y,j=b[1],O=j.x,N=j.y,E=ua(e,"hidden")?"url(#".concat(u,")"):void 0,T=sP(sP({clipPath:E},ie(e,!0)),{},{x1:w,y1:S,x2:O,y2:N});return _.createElement(Oe,{className:be("recharts-reference-line",o)},FSe(s,T),qt.renderCallByParent(e,tSe({x1:w,y1:S,x2:O,y2:N})))}var TA=function(e){function t(){return CSe(this,t),MSe(this,t,arguments)}return kSe(t,e),PSe(t,[{key:"render",value:function(){return _.createElement(HSe,this.props)}}])}(_.Component);EA(TA,"displayName","ReferenceLine");EA(TA,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Q1(){return Q1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q1.apply(this,arguments)}function 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 lP(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 cP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lP(Object(n),!0).forEach(function(r){Jg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KSe(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,H6(r.key),r)}}function GSe(e,t,n){return t&&KSe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YSe(e,t,n){return t=vy(t),WSe(e,V6()?Reflect.construct(t,n||[],vy(e).constructor):t.apply(e,n))}function WSe(e,t){if(t&&(xc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XSe(e)}function XSe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V6=function(){return!!e})()}function vy(e){return vy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vy(e)}function QSe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Z1(e,t)}function Z1(e,t){return Z1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Z1(e,t)}function Jg(e,t,n){return t=H6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H6(e){var t=ZSe(e,"string");return xc(t)=="symbol"?t:t+""}function ZSe(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 String(e)}var JSe=function(t){var n=t.x,r=t.y,a=t.xAxis,i=t.yAxis,s=wA({x:a.scale,y:i.scale}),o=s.apply({x:n,y:r},{bandAware:!0});return ua(t,"discard")&&!s.isInRange(o)?null:o},ev=function(e){function t(){return qSe(this,t),YSe(this,t,arguments)}return QSe(t,e),GSe(t,[{key:"render",value:function(){var r=this.props,a=r.x,i=r.y,s=r.r,o=r.alwaysShow,l=r.clipPathId,u=$t(a),f=$t(i);if(Br(o===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!f)return null;var d=JSe(this.props);if(!d)return null;var h=d.x,p=d.y,m=this.props,g=m.shape,v=m.className,y=ua(this.props,"hidden")?"url(#".concat(l,")"):void 0,b=cP(cP({clipPath:y},ie(this.props,!0)),{},{cx:h,cy:p});return _.createElement(Oe,{className:be("recharts-reference-dot",v)},t.renderDot(g,b),qt.renderCallByParent(this.props,{x:h-s,y:p-s,width:2*s,height:2*s}))}}])}(_.Component);Jg(ev,"displayName","ReferenceDot");Jg(ev,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Jg(ev,"renderDot",function(e,t){var n;return _.isValidElement(e)?n=_.cloneElement(e,t):de(e)?n=e(t):n=_.createElement(ih,Q1({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function J1(){return J1=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},J1.apply(this,arguments)}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 uP(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 fP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uP(Object(n),!0).forEach(function(r){tv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ewe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function twe(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,K6(r.key),r)}}function nwe(e,t,n){return t&&twe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rwe(e,t,n){return t=by(t),awe(e,q6()?Reflect.construct(t,n||[],by(e).constructor):t.apply(e,n))}function awe(e,t){if(t&&(Sc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iwe(e)}function iwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q6=function(){return!!e})()}function by(e){return by=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},by(e)}function swe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eS(e,t)}function eS(e,t){return eS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},eS(e,t)}function tv(e,t,n){return t=K6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K6(e){var t=owe(e,"string");return Sc(t)=="symbol"?t:t+""}function owe(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 String(e)}var lwe=function(t,n,r,a,i){var s=i.x1,o=i.x2,l=i.y1,u=i.y2,f=i.xAxis,d=i.yAxis;if(!f||!d)return null;var h=wA({x:f.scale,y:d.scale}),p={x:t?h.x.apply(s,{position:"start"}):h.x.rangeMin,y:r?h.y.apply(l,{position:"start"}):h.y.rangeMin},m={x:n?h.x.apply(o,{position:"end"}):h.x.rangeMax,y:a?h.y.apply(u,{position:"end"}):h.y.rangeMax};return ua(i,"discard")&&(!h.isInRange(p)||!h.isInRange(m))?null:M6(p,m)},nv=function(e){function t(){return ewe(this,t),rwe(this,t,arguments)}return swe(t,e),nwe(t,[{key:"render",value:function(){var r=this.props,a=r.x1,i=r.x2,s=r.y1,o=r.y2,l=r.className,u=r.alwaysShow,f=r.clipPathId;Br(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=$t(a),h=$t(i),p=$t(s),m=$t(o),g=this.props.shape;if(!d&&!h&&!p&&!m&&!g)return null;var v=lwe(d,h,p,m,this.props);if(!v&&!g)return null;var y=ua(this.props,"hidden")?"url(#".concat(f,")"):void 0;return _.createElement(Oe,{className:be("recharts-reference-area",l)},t.renderRect(g,fP(fP({clipPath:y},ie(this.props,!0)),v)),qt.renderCallByParent(this.props,v))}}])}(_.Component);tv(nv,"displayName","ReferenceArea");tv(nv,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});tv(nv,"renderRect",function(e,t){var n;return _.isValidElement(e)?n=_.cloneElement(e,t):de(e)?n=e(t):n=_.createElement(xA,J1({},t,{className:"recharts-reference-area-rect"})),n});function G6(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 cwe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return rSe(r,n)}function uwe(e,t,n){var r=n==="width",a=e.x,i=e.y,s=e.width,o=e.height;return t===1?{start:r?a:i,end:r?a+s:i+o}:{start:r?a+s:i+o,end:r?a:i}}function xy(e,t,n,r,a){if(e*t<e*r||e*t>e*a)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-a)<=0}function fwe(e,t){return G6(e,t+1)}function dwe(e,t,n,r,a){for(var i=(r||[]).slice(),s=t.start,o=t.end,l=0,u=1,f=s,d=function(){var m=r==null?void 0:r[l];if(m===void 0)return{v:G6(r,u)};var g=l,v,y=function(){return v===void 0&&(v=n(m,g)),v},b=m.coordinate,x=l===0||xy(e,b,y,f,o);x||(l=0,f=s,u+=1),x&&(f=b+e*(y()/2+a),l+=u)},h;u<=i.length;)if(h=d(),h)return h.v;return[]}function vd(e){"@babel/helpers - typeof";return vd=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},vd(e)}function dP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dP(Object(n),!0).forEach(function(r){hwe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hwe(e,t,n){return t=pwe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pwe(e){var t=mwe(e,"string");return vd(t)=="symbol"?t:t+""}function mwe(e,t){if(vd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ywe(e,t,n,r,a){for(var i=(r||[]).slice(),s=i.length,o=t.start,l=t.end,u=function(h){var p=i[h],m,g=function(){return m===void 0&&(m=n(p,h)),m};if(h===s-1){var v=e*(p.coordinate+e*g()/2-l);i[h]=p=ln(ln({},p),{},{tickCoord:v>0?p.coordinate-v*e:p.coordinate})}else i[h]=p=ln(ln({},p),{},{tickCoord:p.coordinate});var y=xy(e,p.tickCoord,g,o,l);y&&(l=p.tickCoord-e*(g()/2+a),i[h]=ln(ln({},p),{},{isShow:!0}))},f=s-1;f>=0;f--)u(f);return i}function gwe(e,t,n,r,a,i){var s=(r||[]).slice(),o=s.length,l=t.start,u=t.end;if(i){var f=r[o-1],d=n(f,o-1),h=e*(f.coordinate+e*d/2-u);s[o-1]=f=ln(ln({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var p=xy(e,f.tickCoord,function(){return d},l,u);p&&(u=f.tickCoord-e*(d/2+a),s[o-1]=ln(ln({},f),{},{isShow:!0}))}for(var m=i?o-1:o,g=function(b){var x=s[b],w,S=function(){return w===void 0&&(w=n(x,b)),w};if(b===0){var j=e*(x.coordinate-e*S()/2-l);s[b]=x=ln(ln({},x),{},{tickCoord:j<0?x.coordinate-j*e:x.coordinate})}else s[b]=x=ln(ln({},x),{},{tickCoord:x.coordinate});var O=xy(e,x.tickCoord,S,l,u);O&&(l=x.tickCoord+e*(S()/2+a),s[b]=ln(ln({},x),{},{isShow:!0}))},v=0;v<m;v++)g(v);return s}function CA(e,t,n){var r=e.tick,a=e.ticks,i=e.viewBox,s=e.minTickGap,o=e.orientation,l=e.interval,u=e.tickFormatter,f=e.unit,d=e.angle;if(!a||!a.length||!r)return[];if(G(l)||os.isSsr)return fwe(a,typeof l=="number"&&G(l)?l:0);var h=[],p=o==="top"||o==="bottom"?"width":"height",m=f&&p==="width"?of(f,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=function(x,w){var S=de(u)?u(x.value,w):x.value;return p==="width"?cwe(of(S,{fontSize:t,letterSpacing:n}),m,d):of(S,{fontSize:t,letterSpacing:n})[p]},v=a.length>=2?mn(a[1].coordinate-a[0].coordinate):1,y=uwe(i,v,p);return l==="equidistantPreserveStart"?dwe(v,y,g,a,s):(l==="preserveStart"||l==="preserveStartEnd"?h=gwe(v,y,g,a,s,l==="preserveStartEnd"):h=ywe(v,y,g,a,s),h.filter(function(b){return b.isShow}))}var vwe=["viewBox"],bwe=["viewBox"],xwe=["ticks"];function wc(e){"@babel/helpers - typeof";return wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wc(e)}function dl(){return dl=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},dl.apply(this,arguments)}function hP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Mt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hP(Object(n),!0).forEach(function(r){_A(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gb(e,t){if(e==null)return{};var n=Swe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Swe(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 wwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pP(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,W6(r.key),r)}}function jwe(e,t,n){return t&&pP(e.prototype,t),n&&pP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Awe(e,t,n){return t=Sy(t),Owe(e,Y6()?Reflect.construct(t,n||[],Sy(e).constructor):t.apply(e,n))}function Owe(e,t){if(t&&(wc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nwe(e)}function Nwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Y6=function(){return!!e})()}function Sy(e){return Sy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sy(e)}function Ewe(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 _A(e,t,n){return t=W6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W6(e){var t=Twe(e,"string");return wc(t)=="symbol"?t:t+""}function Twe(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 String(e)}var nu=function(e){function t(n){var r;return wwe(this,t),r=Awe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return Ewe(t,e),jwe(t,[{key:"shouldComponentUpdate",value:function(r,a){var i=r.viewBox,s=Gb(r,vwe),o=this.props,l=o.viewBox,u=Gb(o,bwe);return!jl(i,l)||!jl(s,u)||!jl(a,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var a=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var a=this.props,i=a.x,s=a.y,o=a.width,l=a.height,u=a.orientation,f=a.tickSize,d=a.mirror,h=a.tickMargin,p,m,g,v,y,b,x=d?-1:1,w=r.tickSize||f,S=G(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":p=m=r.coordinate,v=s+ +!d*l,g=v-x*w,b=g-x*h,y=S;break;case"left":g=v=r.coordinate,m=i+ +!d*o,p=m-x*w,y=p-x*h,b=S;break;case"right":g=v=r.coordinate,m=i+ +d*o,p=m+x*w,y=p+x*h,b=S;break;default:p=m=r.coordinate,v=s+ +d*l,g=v+x*w,b=g+x*h,y=S;break}return{line:{x1:p,y1:g,x2:m,y2:v},tick:{x:y,y:b}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,a=r.orientation,i=r.mirror,s;switch(a){case"left":s=i?"start":"end";break;case"right":s=i?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,a=r.orientation,i=r.mirror,s="end";switch(a){case"left":case"right":s="middle";break;case"top":s=i?"start":"end";break;default:s=i?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.x,i=r.y,s=r.width,o=r.height,l=r.orientation,u=r.mirror,f=r.axisLine,d=Mt(Mt(Mt({},ie(this.props,!1)),ie(f,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var h=+(l==="top"&&!u||l==="bottom"&&u);d=Mt(Mt({},d),{},{x1:a,y1:i+h*o,x2:a+s,y2:i+h*o})}else{var p=+(l==="left"&&!u||l==="right"&&u);d=Mt(Mt({},d),{},{x1:a+p*s,y1:i,x2:a+p*s,y2:i+o})}return _.createElement("line",dl({},d,{className:be("recharts-cartesian-axis-line",Qn(f,"className"))}))}},{key:"renderTicks",value:function(r,a,i){var s=this,o=this.props,l=o.tickLine,u=o.stroke,f=o.tick,d=o.tickFormatter,h=o.unit,p=CA(Mt(Mt({},this.props),{},{ticks:r}),a,i),m=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),v=ie(this.props,!1),y=ie(f,!1),b=Mt(Mt({},v),{},{fill:"none"},ie(l,!1)),x=p.map(function(w,S){var j=s.getTickLineCoord(w),O=j.line,N=j.tick,E=Mt(Mt(Mt(Mt({textAnchor:m,verticalAnchor:g},v),{},{stroke:"none",fill:u},y),N),{},{index:S,payload:w,visibleTicksCount:p.length,tickFormatter:d});return _.createElement(Oe,dl({className:"recharts-cartesian-axis-tick",key:"tick-".concat(w.value,"-").concat(w.coordinate,"-").concat(w.tickCoord)},fo(s.props,w,S)),l&&_.createElement("line",dl({},b,O,{className:be("recharts-cartesian-axis-tick-line",Qn(l,"className"))})),f&&t.renderTickItem(f,E,"".concat(de(d)?d(w.value,S):w.value).concat(h||"")))});return _.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var r=this,a=this.props,i=a.axisLine,s=a.width,o=a.height,l=a.ticksGenerator,u=a.className,f=a.hide;if(f)return null;var d=this.props,h=d.ticks,p=Gb(d,xwe),m=h;return de(l)&&(m=h&&h.length>0?l(this.props):l(p)),s<=0||o<=0||!m||!m.length?null:_.createElement(Oe,{className:be("recharts-cartesian-axis",u),ref:function(v){r.layerReference=v}},i&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),qt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,i){var s,o=be(a.className,"recharts-cartesian-axis-tick-value");return _.isValidElement(r)?s=_.cloneElement(r,Mt(Mt({},a),{},{className:o})):de(r)?s=r(Mt(Mt({},a),{},{className:o})):s=_.createElement(ho,dl({},a,{className:"recharts-cartesian-axis-tick-value"}),i),s}}])}(A.Component);_A(nu,"displayName","CartesianAxis");_A(nu,"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 Cwe=["x1","y1","x2","y2","key"],_we=["offset"];function go(e){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},go(e)}function mP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mP(Object(n),!0).forEach(function(r){Pwe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pwe(e,t,n){return t=Mwe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mwe(e){var t=Rwe(e,"string");return go(t)=="symbol"?t:t+""}function Rwe(e,t){if(go(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(go(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ds(){return Ds=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},Ds.apply(this,arguments)}function yP(e,t){if(e==null)return{};var n=Dwe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Dwe(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 kwe=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,a=t.x,i=t.y,s=t.width,o=t.height,l=t.ry;return _.createElement("rect",{x:a,y:i,ry:l,width:s,height:o,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function X6(e,t){var n;if(_.isValidElement(e))n=_.cloneElement(e,t);else if(de(e))n=e(t);else{var r=t.x1,a=t.y1,i=t.x2,s=t.y2,o=t.key,l=yP(t,Cwe),u=ie(l,!1);u.offset;var f=yP(u,_we);n=_.createElement("line",Ds({},f,{x1:r,y1:a,x2:i,y2:s,fill:"none",key:o}))}return n}function $we(e){var t=e.x,n=e.width,r=e.horizontal,a=r===void 0?!0:r,i=e.horizontalPoints;if(!a||!i||!i.length)return null;var s=i.map(function(o,l){var u=cn(cn({},e),{},{x1:t,y1:o,x2:t+n,y2:o,key:"line-".concat(l),index:l});return X6(a,u)});return _.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function Lwe(e){var t=e.y,n=e.height,r=e.vertical,a=r===void 0?!0:r,i=e.verticalPoints;if(!a||!i||!i.length)return null;var s=i.map(function(o,l){var u=cn(cn({},e),{},{x1:o,y1:t,x2:o,y2:t+n,key:"line-".concat(l),index:l});return X6(a,u)});return _.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function zwe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,a=e.y,i=e.width,s=e.height,o=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var f=o.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==f[0]&&f.unshift(0);var d=f.map(function(h,p){var m=!f[p+1],g=m?a+s-h:f[p+1]-h;if(g<=0)return null;var v=p%t.length;return _.createElement("rect",{key:"react-".concat(p),y:h,x:r,height:g,width:i,stroke:"none",fill:t[v],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return _.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function Iwe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,a=e.fillOpacity,i=e.x,s=e.y,o=e.width,l=e.height,u=e.verticalPoints;if(!n||!r||!r.length)return null;var f=u.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==f[0]&&f.unshift(0);var d=f.map(function(h,p){var m=!f[p+1],g=m?i+o-h:f[p+1]-h;if(g<=0)return null;var v=p%r.length;return _.createElement("rect",{key:"react-".concat(p),x:h,y:s,width:g,height:l,stroke:"none",fill:r[v],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return _.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var Bwe=function(t,n){var r=t.xAxis,a=t.width,i=t.height,s=t.offset;return GL(CA(cn(cn(cn({},nu.defaultProps),r),{},{ticks:La(r,!0),viewBox:{x:0,y:0,width:a,height:i}})),s.left,s.left+s.width,n)},Uwe=function(t,n){var r=t.yAxis,a=t.width,i=t.height,s=t.offset;return GL(CA(cn(cn(cn({},nu.defaultProps),r),{},{ticks:La(r,!0),viewBox:{x:0,y:0,width:a,height:i}})),s.top,s.top+s.height,n)},zo={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Tp(e){var t,n,r,a,i,s,o=OA(),l=NA(),u=TSe(),f=cn(cn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:zo.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:zo.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:zo.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:zo.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:zo.vertical,verticalFill:(s=e.verticalFill)!==null&&s!==void 0?s:zo.verticalFill,x:G(e.x)?e.x:u.left,y:G(e.y)?e.y:u.top,width:G(e.width)?e.width:u.width,height:G(e.height)?e.height:u.height}),d=f.x,h=f.y,p=f.width,m=f.height,g=f.syncWithTicks,v=f.horizontalValues,y=f.verticalValues,b=OSe(),x=NSe();if(!G(p)||p<=0||!G(m)||m<=0||!G(d)||d!==+d||!G(h)||h!==+h)return null;var w=f.verticalCoordinatesGenerator||Bwe,S=f.horizontalCoordinatesGenerator||Uwe,j=f.horizontalPoints,O=f.verticalPoints;if((!j||!j.length)&&de(S)){var N=v&&v.length,E=S({yAxis:x?cn(cn({},x),{},{ticks:N?v:x.ticks}):void 0,width:o,height:l,offset:u},N?!0:g);Br(Array.isArray(E),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(go(E),"]")),Array.isArray(E)&&(j=E)}if((!O||!O.length)&&de(w)){var T=y&&y.length,P=w({xAxis:b?cn(cn({},b),{},{ticks:T?y:b.ticks}):void 0,width:o,height:l,offset:u},T?!0:g);Br(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(go(P),"]")),Array.isArray(P)&&(O=P)}return _.createElement("g",{className:"recharts-cartesian-grid"},_.createElement(kwe,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),_.createElement($we,Ds({},f,{offset:u,horizontalPoints:j,xAxis:b,yAxis:x})),_.createElement(Lwe,Ds({},f,{offset:u,verticalPoints:O,xAxis:b,yAxis:x})),_.createElement(zwe,Ds({},f,{horizontalPoints:j})),_.createElement(Iwe,Ds({},f,{verticalPoints:O})))}Tp.displayName="CartesianGrid";var Fwe=["type","layout","connectNulls","ref"],Vwe=["key"];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)}function gP(e,t){if(e==null)return{};var n=Hwe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hwe(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 hf(){return hf=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},hf.apply(this,arguments)}function vP(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 $n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vP(Object(n),!0).forEach(function(r){$r(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Io(e){return Ywe(e)||Gwe(e)||Kwe(e)||qwe()}function qwe(){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 Kwe(e,t){if(e){if(typeof e=="string")return nS(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 nS(e,t)}}function Gwe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ywe(e){if(Array.isArray(e))return nS(e)}function nS(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 Wwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bP(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,Z6(r.key),r)}}function Xwe(e,t,n){return t&&bP(e.prototype,t),n&&bP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qwe(e,t,n){return t=wy(t),Zwe(e,Q6()?Reflect.construct(t,n||[],wy(e).constructor):t.apply(e,n))}function Zwe(e,t){if(t&&(jc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jwe(e)}function Jwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Q6=function(){return!!e})()}function wy(e){return wy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},wy(e)}function eje(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 $r(e,t,n){return t=Z6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z6(e){var t=tje(e,"string");return jc(t)=="symbol"?t:t+""}function tje(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 String(e)}var sh=function(e){function t(){var n;Wwe(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Qwe(this,t,[].concat(a)),$r(n,"state",{isAnimationFinished:!0,totalLength:0}),$r(n,"generateSimpleStrokeDasharray",function(s,o){return"".concat(o,"px ").concat(s-o,"px")}),$r(n,"getStrokeDasharray",function(s,o,l){var u=l.reduce(function(y,b){return y+b});if(!u)return n.generateSimpleStrokeDasharray(o,s);for(var f=Math.floor(s/u),d=s%u,h=o-s,p=[],m=0,g=0;m<l.length;g+=l[m],++m)if(g+l[m]>d){p=[].concat(Io(l.slice(0,m)),[d-g]);break}var v=p.length%2===0?[0,h]:[h];return[].concat(Io(t.repeat(l,f)),Io(p),v).map(function(y){return"".concat(y,"px")}).join(", ")}),$r(n,"id",No("recharts-line-")),$r(n,"pathRef",function(s){n.mainCurve=s}),$r(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),$r(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return eje(t,e),Xwe(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 i=this.props,s=i.points,o=i.xAxis,l=i.yAxis,u=i.layout,f=i.children,d=Zn(f,ah);if(!d)return null;var h=function(g,v){return{x:g.x,y:g.y,value:g.value,errorVal:wt(g.payload,v)}},p={clipPath:r?"url(#clipPath-".concat(a,")"):null};return _.createElement(Oe,p,d.map(function(m){return _.cloneElement(m,{key:"bar-".concat(m.props.dataKey),data:s,xAxis:o,yAxis:l,layout:u,dataPointFormatter:h})}))}},{key:"renderDots",value:function(r,a,i){var s=this.props.isAnimationActive;if(s&&!this.state.isAnimationFinished)return null;var o=this.props,l=o.dot,u=o.points,f=o.dataKey,d=ie(this.props,!1),h=ie(l,!0),p=u.map(function(g,v){var y=$n($n($n({key:"dot-".concat(v),r:3},d),h),{},{index:v,cx:g.x,cy:g.y,value:g.value,dataKey:f,payload:g.payload,points:u});return t.renderDotItem(l,y)}),m={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return _.createElement(Oe,hf({className:"recharts-line-dots",key:"dots"},m),p)}},{key:"renderCurveStatically",value:function(r,a,i,s){var o=this.props,l=o.type,u=o.layout,f=o.connectNulls;o.ref;var d=gP(o,Fwe),h=$n($n($n({},ie(d,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:a?"url(#clipPath-".concat(i,")"):null,points:r},s),{},{type:l,layout:u,connectNulls:f});return _.createElement(eo,hf({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,a){var i=this,s=this.props,o=s.points,l=s.strokeDasharray,u=s.isAnimationActive,f=s.animationBegin,d=s.animationDuration,h=s.animationEasing,p=s.animationId,m=s.animateNewValues,g=s.width,v=s.height,y=this.state,b=y.prevPoints,x=y.totalLength;return _.createElement(Fr,{begin:f,duration:d,isActive:u,easing:h,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(w){var S=w.t;if(b){var j=b.length/o.length,O=o.map(function(C,$){var D=Math.floor($*j);if(b[D]){var k=b[D],M=Dt(k.x,C.x),L=Dt(k.y,C.y);return $n($n({},C),{},{x:M(S),y:L(S)})}if(m){var I=Dt(g*2,C.x),F=Dt(v/2,C.y);return $n($n({},C),{},{x:I(S),y:F(S)})}return $n($n({},C),{},{x:C.x,y:C.y})});return i.renderCurveStatically(O,r,a)}var N=Dt(0,x),E=N(S),T;if(l){var P="".concat(l).split(/[,\s]+/gim).map(function(C){return parseFloat(C)});T=i.getStrokeDasharray(E,x,P)}else T=i.generateSimpleStrokeDasharray(x,E);return i.renderCurveStatically(o,r,a,{strokeDasharray:T})})}},{key:"renderCurve",value:function(r,a){var i=this.props,s=i.points,o=i.isAnimationActive,l=this.state,u=l.prevPoints,f=l.totalLength;return o&&s&&s.length&&(!u&&f>0||!po(u,s))?this.renderCurveWithAnimation(r,a):this.renderCurveStatically(s,r,a)}},{key:"render",value:function(){var r,a=this.props,i=a.hide,s=a.dot,o=a.points,l=a.className,u=a.xAxis,f=a.yAxis,d=a.top,h=a.left,p=a.width,m=a.height,g=a.isAnimationActive,v=a.id;if(i||!o||!o.length)return null;var y=this.state.isAnimationFinished,b=o.length===1,x=be("recharts-line",l),w=u&&u.allowDataOverflow,S=f&&f.allowDataOverflow,j=w||S,O=me(v)?this.id:v,N=(r=ie(s,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},E=N.r,T=E===void 0?3:E,P=N.strokeWidth,C=P===void 0?2:P,$=B5(s)?s:{},D=$.clipDot,k=D===void 0?!0:D,M=T*2+C;return _.createElement(Oe,{className:x},w||S?_.createElement("defs",null,_.createElement("clipPath",{id:"clipPath-".concat(O)},_.createElement("rect",{x:w?h:h-p/2,y:S?d:d-m/2,width:w?p:p*2,height:S?m:m*2})),!k&&_.createElement("clipPath",{id:"clipPath-dots-".concat(O)},_.createElement("rect",{x:h-M/2,y:d-M/2,width:p+M,height:m+M}))):null,!b&&this.renderCurve(j,O),this.renderErrorBar(j,O),(b||s)&&this.renderDots(j,k,O),(!g||y)&&ca.renderCallByParent(this.props,o))}}],[{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 i=r.length%2!==0?[].concat(Io(r),[0]):r,s=[],o=0;o<a;++o)s=[].concat(Io(s),Io(i));return s}},{key:"renderDotItem",value:function(r,a){var i;if(_.isValidElement(r))i=_.cloneElement(r,a);else if(de(r))i=r(a);else{var s=a.key,o=gP(a,Vwe),l=be("recharts-line-dot",typeof r!="boolean"?r.className:"");i=_.createElement(ih,hf({key:s},o,{className:l}))}return i}}])}(A.PureComponent);$r(sh,"displayName","Line");$r(sh,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!os.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});$r(sh,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,a=e.xAxisTicks,i=e.yAxisTicks,s=e.dataKey,o=e.bandSize,l=e.displayedData,u=e.offset,f=t.layout,d=l.map(function(h,p){var m=wt(h,s);return f==="horizontal"?{x:Zm({axis:n,ticks:a,bandSize:o,entry:h,index:p}),y:me(m)?null:r.scale(m),value:m,payload:h}:{x:me(m)?null:n.scale(m),y:Zm({axis:r,ticks:i,bandSize:o,entry:h,index:p}),value:m,payload:h}});return $n({points:d,layout:f},u)});var nje=["layout","type","stroke","connectNulls","isRange","ref"],rje=["key"],J6;function Ac(e){"@babel/helpers - typeof";return Ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ac(e)}function ez(e,t){if(e==null)return{};var n=aje(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function aje(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ks(){return ks=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},ks.apply(this,arguments)}function xP(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 mi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xP(Object(n),!0).forEach(function(r){aa(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ije(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nz(r.key),r)}}function sje(e,t,n){return t&&SP(e.prototype,t),n&&SP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function oje(e,t,n){return t=jy(t),lje(e,tz()?Reflect.construct(t,n||[],jy(e).constructor):t.apply(e,n))}function lje(e,t){if(t&&(Ac(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cje(e)}function cje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tz=function(){return!!e})()}function jy(e){return jy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jy(e)}function uje(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 aa(e,t,n){return t=nz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nz(e){var t=fje(e,"string");return Ac(t)=="symbol"?t:t+""}function fje(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 String(e)}var fs=function(e){function t(){var n;ije(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=oje(this,t,[].concat(a)),aa(n,"state",{isAnimationFinished:!0}),aa(n,"id",No("recharts-area-")),aa(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),de(s)&&s()}),aa(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),de(s)&&s()}),n}return uje(t,e),sje(t,[{key:"renderDots",value:function(r,a,i){var s=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(s&&!o)return null;var l=this.props,u=l.dot,f=l.points,d=l.dataKey,h=ie(this.props,!1),p=ie(u,!0),m=f.map(function(v,y){var b=mi(mi(mi({key:"dot-".concat(y),r:3},h),p),{},{index:y,cx:v.x,cy:v.y,dataKey:d,value:v.value,payload:v.payload,points:f});return t.renderDotItem(u,b)}),g={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return _.createElement(Oe,ks({className:"recharts-area-dots"},g),m)}},{key:"renderHorizontalRect",value:function(r){var a=this.props,i=a.baseLine,s=a.points,o=a.strokeWidth,l=s[0].x,u=s[s.length-1].x,f=r*Math.abs(l-u),d=Li(s.map(function(h){return h.y||0}));return G(i)&&typeof i=="number"?d=Math.max(i,d):i&&Array.isArray(i)&&i.length&&(d=Math.max(Li(i.map(function(h){return h.y||0})),d)),G(d)?_.createElement("rect",{x:l<u?l:l-f,y:0,width:f,height:Math.floor(d+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var a=this.props,i=a.baseLine,s=a.points,o=a.strokeWidth,l=s[0].y,u=s[s.length-1].y,f=r*Math.abs(l-u),d=Li(s.map(function(h){return h.x||0}));return G(i)&&typeof i=="number"?d=Math.max(i,d):i&&Array.isArray(i)&&i.length&&(d=Math.max(Li(i.map(function(h){return h.x||0})),d)),G(d)?_.createElement("rect",{x:0,y:l<u?l:l-f,width:d+(o?parseInt("".concat(o),10):1),height:Math.floor(f)}):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,i,s){var o=this.props,l=o.layout,u=o.type,f=o.stroke,d=o.connectNulls,h=o.isRange;o.ref;var p=ez(o,nje);return _.createElement(Oe,{clipPath:i?"url(#clipPath-".concat(s,")"):null},_.createElement(eo,ks({},ie(p,!0),{points:r,connectNulls:d,type:u,baseLine:a,layout:l,stroke:"none",className:"recharts-area-area"})),f!=="none"&&_.createElement(eo,ks({},ie(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:d,fill:"none",points:r})),f!=="none"&&h&&_.createElement(eo,ks({},ie(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:d,fill:"none",points:a})))}},{key:"renderAreaWithAnimation",value:function(r,a){var i=this,s=this.props,o=s.points,l=s.baseLine,u=s.isAnimationActive,f=s.animationBegin,d=s.animationDuration,h=s.animationEasing,p=s.animationId,m=this.state,g=m.prevPoints,v=m.prevBaseLine;return _.createElement(Fr,{begin:f,duration:d,isActive:u,easing:h,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(y){var b=y.t;if(g){var x=g.length/o.length,w=o.map(function(N,E){var T=Math.floor(E*x);if(g[T]){var P=g[T],C=Dt(P.x,N.x),$=Dt(P.y,N.y);return mi(mi({},N),{},{x:C(b),y:$(b)})}return N}),S;if(G(l)&&typeof l=="number"){var j=Dt(v,l);S=j(b)}else if(me(l)||Wc(l)){var O=Dt(v,0);S=O(b)}else S=l.map(function(N,E){var T=Math.floor(E*x);if(v[T]){var P=v[T],C=Dt(P.x,N.x),$=Dt(P.y,N.y);return mi(mi({},N),{},{x:C(b),y:$(b)})}return N});return i.renderAreaStatically(w,S,r,a)}return _.createElement(Oe,null,_.createElement("defs",null,_.createElement("clipPath",{id:"animationClipPath-".concat(a)},i.renderClipRect(b))),_.createElement(Oe,{clipPath:"url(#animationClipPath-".concat(a,")")},i.renderAreaStatically(o,l,r,a)))})}},{key:"renderArea",value:function(r,a){var i=this.props,s=i.points,o=i.baseLine,l=i.isAnimationActive,u=this.state,f=u.prevPoints,d=u.prevBaseLine,h=u.totalLength;return l&&s&&s.length&&(!f&&h>0||!po(f,s)||!po(d,o))?this.renderAreaWithAnimation(r,a):this.renderAreaStatically(s,o,r,a)}},{key:"render",value:function(){var r,a=this.props,i=a.hide,s=a.dot,o=a.points,l=a.className,u=a.top,f=a.left,d=a.xAxis,h=a.yAxis,p=a.width,m=a.height,g=a.isAnimationActive,v=a.id;if(i||!o||!o.length)return null;var y=this.state.isAnimationFinished,b=o.length===1,x=be("recharts-area",l),w=d&&d.allowDataOverflow,S=h&&h.allowDataOverflow,j=w||S,O=me(v)?this.id:v,N=(r=ie(s,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},E=N.r,T=E===void 0?3:E,P=N.strokeWidth,C=P===void 0?2:P,$=B5(s)?s:{},D=$.clipDot,k=D===void 0?!0:D,M=T*2+C;return _.createElement(Oe,{className:x},w||S?_.createElement("defs",null,_.createElement("clipPath",{id:"clipPath-".concat(O)},_.createElement("rect",{x:w?f:f-p/2,y:S?u:u-m/2,width:w?p:p*2,height:S?m:m*2})),!k&&_.createElement("clipPath",{id:"clipPath-dots-".concat(O)},_.createElement("rect",{x:f-M/2,y:u-M/2,width:p+M,height:m+M}))):null,b?null:this.renderArea(j,O),(s||b)&&this.renderDots(j,k,O),(!g||y)&&ca.renderCallByParent(this.props,o))}}],[{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}}])}(A.PureComponent);J6=fs;aa(fs,"displayName","Area");aa(fs,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!os.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});aa(fs,"getBaseValue",function(e,t,n,r){var a=e.layout,i=e.baseValue,s=t.props.baseValue,o=s??i;if(G(o)&&typeof o=="number")return o;var l=a==="horizontal"?r:n,u=l.scale.domain();if(l.type==="number"){var f=Math.max(u[0],u[1]),d=Math.min(u[0],u[1]);return o==="dataMin"?d:o==="dataMax"||f<0?f:Math.max(Math.min(u[0],u[1]),0)}return o==="dataMin"?u[0]:o==="dataMax"?u[1]:u[0]});aa(fs,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,a=e.yAxis,i=e.xAxisTicks,s=e.yAxisTicks,o=e.bandSize,l=e.dataKey,u=e.stackedData,f=e.dataStartIndex,d=e.displayedData,h=e.offset,p=t.layout,m=u&&u.length,g=J6.getBaseValue(t,n,r,a),v=p==="horizontal",y=!1,b=d.map(function(w,S){var j;m?j=u[f+S]:(j=wt(w,l),Array.isArray(j)?y=!0:j=[g,j]);var O=j[1]==null||m&&wt(w,l)==null;return v?{x:Zm({axis:r,ticks:i,bandSize:o,entry:w,index:S}),y:O?null:a.scale(j[1]),value:j,payload:w}:{x:O?null:r.scale(j[1]),y:Zm({axis:a,ticks:s,bandSize:o,entry:w,index:S}),value:j,payload:w}}),x;return m||y?x=b.map(function(w){var S=Array.isArray(w.value)?w.value[0]:null;return v?{x:w.x,y:S!=null&&w.y!=null?a.scale(S):null}:{x:S!=null?r.scale(S):null,y:w.y}}):x=v?a.scale(g):r.scale(g),mi({points:b,baseLine:x,layout:p,isRange:y},h)});aa(fs,"renderDotItem",function(e,t){var n;if(_.isValidElement(e))n=_.cloneElement(e,t);else if(de(e))n=e(t);else{var r=be("recharts-area-dot",typeof e!="boolean"?e.className:""),a=t.key,i=ez(t,rje);n=_.createElement(ih,ks({},i,{key:a,className:r}))}return n});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 dje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hje(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iz(r.key),r)}}function pje(e,t,n){return t&&hje(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mje(e,t,n){return t=Ay(t),yje(e,rz()?Reflect.construct(t,n||[],Ay(e).constructor):t.apply(e,n))}function yje(e,t){if(t&&(Oc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gje(e)}function gje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rz=function(){return!!e})()}function Ay(e){return Ay=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ay(e)}function vje(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&&iS(e,t)}function iS(e,t){return iS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},iS(e,t)}function az(e,t,n){return t=iz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iz(e){var t=bje(e,"string");return Oc(t)=="symbol"?t:t+""}function bje(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 String(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 xje(e){var t=e.xAxisId,n=OA(),r=NA(),a=I6(t);return a==null?null:A.createElement(nu,sS({},a,{className:be("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(s){return La(s,!0)}}))}var Xi=function(e){function t(){return dje(this,t),mje(this,t,arguments)}return vje(t,e),pje(t,[{key:"render",value:function(){return A.createElement(xje,this.props)}}])}(A.Component);az(Xi,"displayName","XAxis");az(Xi,"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 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 Sje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wje(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lz(r.key),r)}}function jje(e,t,n){return t&&wje(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Aje(e,t,n){return t=Oy(t),Oje(e,sz()?Reflect.construct(t,n||[],Oy(e).constructor):t.apply(e,n))}function Oje(e,t){if(t&&(Nc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nje(e)}function Nje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sz=function(){return!!e})()}function Oy(e){return Oy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Oy(e)}function Eje(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&&oS(e,t)}function oS(e,t){return oS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},oS(e,t)}function oz(e,t,n){return t=lz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lz(e){var t=Tje(e,"string");return Nc(t)=="symbol"?t:t+""}function Tje(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 String(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)}var Cje=function(t){var n=t.yAxisId,r=OA(),a=NA(),i=B6(n);return i==null?null:A.createElement(nu,lS({},i,{className:be("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(o){return La(o,!0)}}))},Qi=function(e){function t(){return Sje(this,t),Aje(this,t,arguments)}return Eje(t,e),jje(t,[{key:"render",value:function(){return A.createElement(Cje,this.props)}}])}(A.Component);oz(Qi,"displayName","YAxis");oz(Qi,"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 wP(e){return Rje(e)||Mje(e)||Pje(e)||_je()}function _je(){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 Pje(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 Mje(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Rje(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 uS=function(t,n,r,a,i){var s=Zn(t,TA),o=Zn(t,ev),l=[].concat(wP(s),wP(o)),u=Zn(t,nv),f="".concat(a,"Id"),d=a[0],h=n;if(l.length&&(h=l.reduce(function(g,v){if(v.props[f]===r&&ua(v.props,"extendDomain")&&G(v.props[d])){var y=v.props[d];return[Math.min(g[0],y),Math.max(g[1],y)]}return g},h)),u.length){var p="".concat(d,"1"),m="".concat(d,"2");h=u.reduce(function(g,v){if(v.props[f]===r&&ua(v.props,"extendDomain")&&G(v.props[p])&&G(v.props[m])){var y=v.props[p],b=v.props[m];return[Math.min(g[0],y,b),Math.max(g[1],y,b)]}return g},h)}return i&&i.length&&(h=i.reduce(function(g,v){return G(v)?[Math.min(g[0],v),Math.max(g[1],v)]:g},h)),h},cz={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function a(l,u,f){this.fn=l,this.context=u,this.once=f||!1}function i(l,u,f,d,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new a(f,d||l,h),m=n?n+u:u;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],p]:l._events[m].push(p):(l._events[m]=p,l._eventsCount++),l}function s(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function o(){this._events=new r,this._eventsCount=0}o.prototype.eventNames=function(){var u=[],f,d;if(this._eventsCount===0)return u;for(d in f=this._events)t.call(f,d)&&u.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},o.prototype.listeners=function(u){var f=n?n+u:u,d=this._events[f];if(!d)return[];if(d.fn)return[d.fn];for(var h=0,p=d.length,m=new Array(p);h<p;h++)m[h]=d[h].fn;return m},o.prototype.listenerCount=function(u){var f=n?n+u:u,d=this._events[f];return d?d.fn?1:d.length:0},o.prototype.emit=function(u,f,d,h,p,m){var g=n?n+u:u;if(!this._events[g])return!1;var v=this._events[g],y=arguments.length,b,x;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),y){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,f),!0;case 3:return v.fn.call(v.context,f,d),!0;case 4:return v.fn.call(v.context,f,d,h),!0;case 5:return v.fn.call(v.context,f,d,h,p),!0;case 6:return v.fn.call(v.context,f,d,h,p,m),!0}for(x=1,b=new Array(y-1);x<y;x++)b[x-1]=arguments[x];v.fn.apply(v.context,b)}else{var w=v.length,S;for(x=0;x<w;x++)switch(v[x].once&&this.removeListener(u,v[x].fn,void 0,!0),y){case 1:v[x].fn.call(v[x].context);break;case 2:v[x].fn.call(v[x].context,f);break;case 3:v[x].fn.call(v[x].context,f,d);break;case 4:v[x].fn.call(v[x].context,f,d,h);break;default:if(!b)for(S=1,b=new Array(y-1);S<y;S++)b[S-1]=arguments[S];v[x].fn.apply(v[x].context,b)}}return!0},o.prototype.on=function(u,f,d){return i(this,u,f,d,!1)},o.prototype.once=function(u,f,d){return i(this,u,f,d,!0)},o.prototype.removeListener=function(u,f,d,h){var p=n?n+u:u;if(!this._events[p])return this;if(!f)return s(this,p),this;var m=this._events[p];if(m.fn)m.fn===f&&(!h||m.once)&&(!d||m.context===d)&&s(this,p);else{for(var g=0,v=[],y=m.length;g<y;g++)(m[g].fn!==f||h&&!m[g].once||d&&m[g].context!==d)&&v.push(m[g]);v.length?this._events[p]=v.length===1?v[0]:v:s(this,p)}return this},o.prototype.removeAllListeners=function(u){var f;return u?(f=n?n+u:u,this._events[f]&&s(this,f)):(this._events=new r,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=n,o.EventEmitter=o,e.exports=o})(cz);var Dje=cz.exports;const kje=Ie(Dje);var Yb=new kje,Wb="recharts.syncMouseEvents";function bd(e){"@babel/helpers - typeof";return bd=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},bd(e)}function $je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lje(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,uz(r.key),r)}}function zje(e,t,n){return t&&Lje(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xb(e,t,n){return t=uz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uz(e){var t=Ije(e,"string");return bd(t)=="symbol"?t:t+""}function Ije(e,t){if(bd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Bje=function(){function e(){$je(this,e),Xb(this,"activeIndex",0),Xb(this,"coordinateList",[]),Xb(this,"layout","horizontal")}return zje(e,[{key:"setDetails",value:function(n){var r,a=n.coordinateList,i=a===void 0?null:a,s=n.container,o=s===void 0?null:s,l=n.layout,u=l===void 0?null:l,f=n.offset,d=f===void 0?null:f,h=n.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(r=i??this.coordinateList)!==null&&r!==void 0?r:[],this.container=o??this.container,this.layout=u??this.layout,this.offset=d??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var a=this.container.getBoundingClientRect(),i=a.x,s=a.y,o=a.height,l=this.coordinateList[this.activeIndex].coordinate,u=((n=window)===null||n===void 0?void 0:n.scrollX)||0,f=((r=window)===null||r===void 0?void 0:r.scrollY)||0,d=i+l+u,h=s+this.offset.top+o/2+f;this.mouseHandlerCallback({pageX:d,pageY:h})}}}])}();function Uje(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&&G(r)&&G(a))return!0}return!1}function Fje(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 fz(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle,s=et(t,n,r,a),o=et(t,n,r,i);return{points:[s,o],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function Vje(e,t,n){var r,a,i,s;if(e==="horizontal")r=t.x,i=r,a=n.top,s=n.top+n.height;else if(e==="vertical")a=t.y,s=a,r=n.left,i=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var o=t.cx,l=t.cy,u=t.innerRadius,f=t.outerRadius,d=t.angle,h=et(o,l,u,d),p=et(o,l,f,d);r=h.x,a=h.y,i=p.x,s=p.y}else return fz(t);return[{x:r,y:a},{x:i,y:s}]}function xd(e){"@babel/helpers - typeof";return xd=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},xd(e)}function jP(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?jP(Object(n),!0).forEach(function(r){Hje(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hje(e,t,n){return t=qje(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qje(e){var t=Kje(e,"string");return xd(t)=="symbol"?t:t+""}function Kje(e,t){if(xd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gje(e){var t,n,r=e.element,a=e.tooltipEventType,i=e.isActive,s=e.activeCoordinate,o=e.activePayload,l=e.offset,u=e.activeTooltipIndex,f=e.tooltipAxisBandSize,d=e.layout,h=e.chartName,p=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!p||!i||!s||h!=="ScatterChart"&&a!=="axis")return null;var m,g=eo;if(h==="ScatterChart")m=s,g=txe;else if(h==="BarChart")m=Fje(d,s,l,f),g=xA;else if(d==="radial"){var v=fz(s),y=v.cx,b=v.cy,x=v.radius,w=v.startAngle,S=v.endAngle;m={cx:y,cy:b,startAngle:w,endAngle:S,innerRadius:x,outerRadius:x},g=a6}else m={points:Vje(d,s,l)},g=eo;var j=Wh(Wh(Wh(Wh({stroke:"#ccc",pointerEvents:"none"},l),m),ie(p,!1)),{},{payload:o,payloadIndex:u,className:be("recharts-tooltip-cursor",p.className)});return A.isValidElement(p)?A.cloneElement(p,j):A.createElement(g,j)}var Yje=["item"],Wje=["children","className","width","height","style","compact","title","desc"];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 hl(){return hl=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},hl.apply(this,arguments)}function AP(e,t){return Zje(e)||Qje(e,t)||hz(e,t)||Xje()}function Xje(){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 Qje(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){u=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw a}}return o}}function Zje(e){if(Array.isArray(e))return e}function OP(e,t){if(e==null)return{};var n=Jje(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Jje(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function eAe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tAe(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,pz(r.key),r)}}function nAe(e,t,n){return t&&tAe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rAe(e,t,n){return t=Ny(t),aAe(e,dz()?Reflect.construct(t,n||[],Ny(e).constructor):t.apply(e,n))}function aAe(e,t){if(t&&(Ec(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iAe(e)}function iAe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dz=function(){return!!e})()}function Ny(e){return Ny=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ny(e)}function sAe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fS(e,t)}function fS(e,t){return fS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},fS(e,t)}function Tc(e){return cAe(e)||lAe(e)||hz(e)||oAe()}function oAe(){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 hz(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 lAe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cAe(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 NP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NP(Object(n),!0).forEach(function(r){ue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ue(e,t,n){return t=pz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pz(e){var t=uAe(e,"string");return Ec(t)=="symbol"?t:t+""}function uAe(e,t){if(Ec(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ec(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fAe={xAxis:["bottom","top"],yAxis:["left","right"]},dAe={width:"100%",height:"100%"},mz={x:0,y:0};function Xh(e){return e}var hAe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},pAe=function(t,n,r,a){var i=n.find(function(f){return f&&f.index===r});if(i){if(t==="horizontal")return{x:i.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:i.coordinate};if(t==="centric"){var s=i.coordinate,o=a.radius;return B(B(B({},a),et(a.cx,a.cy,o,s)),{},{angle:s,radius:o})}var l=i.coordinate,u=a.angle;return B(B(B({},a),et(a.cx,a.cy,l,u)),{},{angle:u,radius:l})}return mz},rv=function(t,n){var r=n.graphicalItems,a=n.dataStartIndex,i=n.dataEndIndex,s=(r??[]).reduce(function(o,l){var u=l.props.data;return u&&u.length?[].concat(Tc(o),Tc(u)):o},[]);return s.length>0?s:t&&t.length&&G(a)&&G(i)?t.slice(a,i+1):[]};function yz(e){return e==="number"?[0,"auto"]:void 0}var hS=function(t,n,r,a){var i=t.graphicalItems,s=t.tooltipAxis,o=rv(n,t);return r<0||!i||!i.length||r>=o.length?null:i.reduce(function(l,u){var f,d=(f=u.props.data)!==null&&f!==void 0?f:n;d&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(d=d.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(s.dataKey&&!s.allowDuplicatedCategory){var p=d===void 0?o:d;h=jm(p,s.dataKey,a)}else h=d&&d[r]||o[r];return h?[].concat(Tc(l),[ZL(u,h)]):l},[])},EP=function(t,n,r,a){var i=a||{x:t.chartX,y:t.chartY},s=hAe(i,r),o=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,f=Sye(s,o,u,l);if(f>=0&&u){var d=u[f]&&u[f].value,h=hS(t,n,f,d),p=pAe(r,o,f,i);return{activeTooltipIndex:f,activeLabel:d,activePayload:h,activeCoordinate:p}}return null},mAe=function(t,n){var r=n.axes,a=n.graphicalItems,i=n.axisType,s=n.axisIdKey,o=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,d=t.children,h=t.stackOffset,p=KL(f,i);return r.reduce(function(m,g){var v,y=g.type.defaultProps!==void 0?B(B({},g.type.defaultProps),g.props):g.props,b=y.type,x=y.dataKey,w=y.allowDataOverflow,S=y.allowDuplicatedCategory,j=y.scale,O=y.ticks,N=y.includeHidden,E=y[s];if(m[E])return m;var T=rv(t.data,{graphicalItems:a.filter(function(K){var ne,J=s in K.props?K.props[s]:(ne=K.type.defaultProps)===null||ne===void 0?void 0:ne[s];return J===E}),dataStartIndex:l,dataEndIndex:u}),P=T.length,C,$,D;Uje(y.domain,w,b)&&(C=N1(y.domain,null,w),p&&(b==="number"||j!=="auto")&&(D=cf(T,x,"category")));var k=yz(b);if(!C||C.length===0){var M,L=(M=y.domain)!==null&&M!==void 0?M:k;if(x){if(C=cf(T,x,b),b==="category"&&p){var I=fte(C);S&&I?($=C,C=dy(0,P)):S||(C=XC(L,C,g).reduce(function(K,ne){return K.indexOf(ne)>=0?K:[].concat(Tc(K),[ne])},[]))}else if(b==="category")S?C=C.filter(function(K){return K!==""&&!me(K)}):C=XC(L,C,g).reduce(function(K,ne){return K.indexOf(ne)>=0||ne===""||me(ne)?K:[].concat(Tc(K),[ne])},[]);else if(b==="number"){var F=Nye(T,a.filter(function(K){var ne,J,ye=s in K.props?K.props[s]:(ne=K.type.defaultProps)===null||ne===void 0?void 0:ne[s],ee="hide"in K.props?K.props.hide:(J=K.type.defaultProps)===null||J===void 0?void 0:J.hide;return ye===E&&(N||!ee)}),x,i,f);F&&(C=F)}p&&(b==="number"||j!=="auto")&&(D=cf(T,x,"category"))}else p?C=dy(0,P):o&&o[E]&&o[E].hasStack&&b==="number"?C=h==="expand"?[0,1]:QL(o[E].stackGroups,l,u):C=qL(T,a.filter(function(K){var ne=s in K.props?K.props[s]:K.type.defaultProps[s],J="hide"in K.props?K.props.hide:K.type.defaultProps.hide;return ne===E&&(N||!J)}),b,f,!0);if(b==="number")C=uS(d,C,E,i,O),L&&(C=N1(L,C,w));else if(b==="category"&&L){var q=L,W=C.every(function(K){return q.indexOf(K)>=0});W&&(C=q)}}return B(B({},m),{},ue({},E,B(B({},y),{},{axisType:i,domain:C,categoricalDomain:D,duplicateDomain:$,originalDomain:(v=y.domain)!==null&&v!==void 0?v:k,isCategorical:p,layout:f})))},{})},yAe=function(t,n){var r=n.graphicalItems,a=n.Axis,i=n.axisType,s=n.axisIdKey,o=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,d=t.children,h=rv(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:u}),p=h.length,m=KL(f,i),g=-1;return r.reduce(function(v,y){var b=y.type.defaultProps!==void 0?B(B({},y.type.defaultProps),y.props):y.props,x=b[s],w=yz("number");if(!v[x]){g++;var S;return m?S=dy(0,p):o&&o[x]&&o[x].hasStack?(S=QL(o[x].stackGroups,l,u),S=uS(d,S,x,i)):(S=N1(w,qL(h,r.filter(function(j){var O,N,E=s in j.props?j.props[s]:(O=j.type.defaultProps)===null||O===void 0?void 0:O[s],T="hide"in j.props?j.props.hide:(N=j.type.defaultProps)===null||N===void 0?void 0:N.hide;return E===x&&!T}),"number",f),a.defaultProps.allowDataOverflow),S=uS(d,S,x,i)),B(B({},v),{},ue({},x,B(B({axisType:i},a.defaultProps),{},{hide:!0,orientation:Qn(fAe,"".concat(i,".").concat(g%2),null),domain:S,originalDomain:w,isCategorical:m,layout:f})))}return v},{})},gAe=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,i=n.AxisComp,s=n.graphicalItems,o=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.children,d="".concat(a,"Id"),h=Zn(f,i),p={};return h&&h.length?p=mAe(t,{axes:h,graphicalItems:s,axisType:a,axisIdKey:d,stackGroups:o,dataStartIndex:l,dataEndIndex:u}):s&&s.length&&(p=yAe(t,{Axis:i,graphicalItems:s,axisType:a,axisIdKey:d,stackGroups:o,dataStartIndex:l,dataEndIndex:u})),p},vAe=function(t){var n=ji(t),r=La(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:Gj(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Jm(n,r)}},TP=function(t){var n=t.children,r=t.defaultShowTooltip,a=In(n,gc),i=0,s=0;return t.data&&t.data.length!==0&&(s=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(s=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:s,activeTooltipIndex:-1,isTooltipActive:!!r}},bAe=function(t){return!t||!t.length?!1:t.some(function(n){var r=qa(n&&n.type);return r&&r.indexOf("Bar")>=0})},CP=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"}},xAe=function(t,n){var r=t.props,a=t.graphicalItems,i=t.xAxisMap,s=i===void 0?{}:i,o=t.yAxisMap,l=o===void 0?{}:o,u=r.width,f=r.height,d=r.children,h=r.margin||{},p=In(d,gc),m=In(d,na),g=Object.keys(l).reduce(function(S,j){var O=l[j],N=O.orientation;return!O.mirror&&!O.hide?B(B({},S),{},ue({},N,S[N]+O.width)):S},{left:h.left||0,right:h.right||0}),v=Object.keys(s).reduce(function(S,j){var O=s[j],N=O.orientation;return!O.mirror&&!O.hide?B(B({},S),{},ue({},N,Qn(S,"".concat(N))+O.height)):S},{top:h.top||0,bottom:h.bottom||0}),y=B(B({},v),g),b=y.bottom;p&&(y.bottom+=p.props.height||gc.defaultProps.height),m&&n&&(y=Aye(y,a,r,n));var x=u-y.left-y.right,w=f-y.top-y.bottom;return B(B({brushBottom:b},y),{},{width:Math.max(x,0),height:Math.max(w,0)})},SAe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},av=function(t){var n=t.chartName,r=t.GraphicalChild,a=t.defaultTooltipEventType,i=a===void 0?"axis":a,s=t.validateTooltipEventTypes,o=s===void 0?["axis"]:s,l=t.axisComponents,u=t.legendContent,f=t.formatAxisMap,d=t.defaultProps,h=function(y,b){var x=b.graphicalItems,w=b.stackGroups,S=b.offset,j=b.updateId,O=b.dataStartIndex,N=b.dataEndIndex,E=y.barSize,T=y.layout,P=y.barGap,C=y.barCategoryGap,$=y.maxBarSize,D=CP(T),k=D.numericAxisName,M=D.cateAxisName,L=bAe(x),I=[];return x.forEach(function(F,q){var W=rv(y.data,{graphicalItems:[F],dataStartIndex:O,dataEndIndex:N}),K=F.type.defaultProps!==void 0?B(B({},F.type.defaultProps),F.props):F.props,ne=K.dataKey,J=K.maxBarSize,ye=K["".concat(k,"Id")],ee=K["".concat(M,"Id")],ot={},He=l.reduce(function(ga,va){var Mo=b["".concat(va.axisType,"Map")],le=K["".concat(va.axisType,"Id")];Mo&&Mo[le]||va.axisType==="zAxis"||yo();var It=Mo[le];return B(B({},ga),{},ue(ue({},va.axisType,It),"".concat(va.axisType,"Ticks"),La(It)))},ot),Y=He[M],oe=He["".concat(M,"Ticks")],X=w&&w[ye]&&w[ye].hasStack&&kye(F,w[ye].stackGroups),V=qa(F.type).indexOf("Bar")>=0,_e=Jm(Y,oe),ge=[],Xe=L&&wye({barSize:E,stackGroups:w,totalSize:SAe(He,M)});if(V){var lt,dt,kn=me(J)?$:J,ui=(lt=(dt=Jm(Y,oe,!0))!==null&&dt!==void 0?dt:kn)!==null&&lt!==void 0?lt:0;ge=jye({barGap:P,barCategoryGap:C,bandSize:ui!==_e?ui:_e,sizeList:Xe[ee],maxBarSize:kn}),ui!==_e&&(ge=ge.map(function(ga){return B(B({},ga),{},{position:B(B({},ga.position),{},{offset:ga.position.offset-ui/2})})}))}var Po=F&&F.type&&F.type.getComposedData;Po&&I.push({props:B(B({},Po(B(B({},He),{},{displayedData:W,props:y,dataKey:ne,item:F,bandSize:_e,barPosition:ge,offset:S,stackedData:X,layout:T,dataStartIndex:O,dataEndIndex:N}))),{},ue(ue(ue({key:F.key||"item-".concat(q)},k,He[k]),M,He[M]),"animationId",j)),childIndex:jte(F,y.children),item:F})}),I},p=function(y,b){var x=y.props,w=y.dataStartIndex,S=y.dataEndIndex,j=y.updateId;if(!HE({props:x}))return null;var O=x.children,N=x.layout,E=x.stackOffset,T=x.data,P=x.reverseStackOrder,C=CP(N),$=C.numericAxisName,D=C.cateAxisName,k=Zn(O,r),M=Rye(T,k,"".concat($,"Id"),"".concat(D,"Id"),E,P),L=l.reduce(function(K,ne){var J="".concat(ne.axisType,"Map");return B(B({},K),{},ue({},J,gAe(x,B(B({},ne),{},{graphicalItems:k,stackGroups:ne.axisType===$&&M,dataStartIndex:w,dataEndIndex:S}))))},{}),I=xAe(B(B({},L),{},{props:x,graphicalItems:k}),b==null?void 0:b.legendBBox);Object.keys(L).forEach(function(K){L[K]=f(x,L[K],I,K.replace("Map",""),n)});var F=L["".concat(D,"Map")],q=vAe(F),W=h(x,B(B({},L),{},{dataStartIndex:w,dataEndIndex:S,updateId:j,graphicalItems:k,stackGroups:M,offset:I}));return B(B({formattedGraphicalItems:W,graphicalItems:k,offset:I,stackGroups:M},q),L)},m=function(v){function y(b){var x,w,S;return eAe(this,y),S=rAe(this,y,[b]),ue(S,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ue(S,"accessibilityManager",new Bje),ue(S,"handleLegendBBoxUpdate",function(j){if(j){var O=S.state,N=O.dataStartIndex,E=O.dataEndIndex,T=O.updateId;S.setState(B({legendBBox:j},p({props:S.props,dataStartIndex:N,dataEndIndex:E,updateId:T},B(B({},S.state),{},{legendBBox:j}))))}}),ue(S,"handleReceiveSyncEvent",function(j,O,N){if(S.props.syncId===j){if(N===S.eventEmitterSymbol&&typeof S.props.syncMethod!="function")return;S.applySyncEvent(O)}}),ue(S,"handleBrushChange",function(j){var O=j.startIndex,N=j.endIndex;if(O!==S.state.dataStartIndex||N!==S.state.dataEndIndex){var E=S.state.updateId;S.setState(function(){return B({dataStartIndex:O,dataEndIndex:N},p({props:S.props,dataStartIndex:O,dataEndIndex:N,updateId:E},S.state))}),S.triggerSyncEvent({dataStartIndex:O,dataEndIndex:N})}}),ue(S,"handleMouseEnter",function(j){var O=S.getMouseInfo(j);if(O){var N=B(B({},O),{},{isTooltipActive:!0});S.setState(N),S.triggerSyncEvent(N);var E=S.props.onMouseEnter;de(E)&&E(N,j)}}),ue(S,"triggeredAfterMouseMove",function(j){var O=S.getMouseInfo(j),N=O?B(B({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};S.setState(N),S.triggerSyncEvent(N);var E=S.props.onMouseMove;de(E)&&E(N,j)}),ue(S,"handleItemMouseEnter",function(j){S.setState(function(){return{isTooltipActive:!0,activeItem:j,activePayload:j.tooltipPayload,activeCoordinate:j.tooltipPosition||{x:j.cx,y:j.cy}}})}),ue(S,"handleItemMouseLeave",function(){S.setState(function(){return{isTooltipActive:!1}})}),ue(S,"handleMouseMove",function(j){j.persist(),S.throttleTriggeredAfterMouseMove(j)}),ue(S,"handleMouseLeave",function(j){S.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};S.setState(O),S.triggerSyncEvent(O);var N=S.props.onMouseLeave;de(N)&&N(O,j)}),ue(S,"handleOuterEvent",function(j){var O=wte(j),N=Qn(S.props,"".concat(O));if(O&&de(N)){var E,T;/.*touch.*/i.test(O)?T=S.getMouseInfo(j.changedTouches[0]):T=S.getMouseInfo(j),N((E=T)!==null&&E!==void 0?E:{},j)}}),ue(S,"handleClick",function(j){var O=S.getMouseInfo(j);if(O){var N=B(B({},O),{},{isTooltipActive:!0});S.setState(N),S.triggerSyncEvent(N);var E=S.props.onClick;de(E)&&E(N,j)}}),ue(S,"handleMouseDown",function(j){var O=S.props.onMouseDown;if(de(O)){var N=S.getMouseInfo(j);O(N,j)}}),ue(S,"handleMouseUp",function(j){var O=S.props.onMouseUp;if(de(O)){var N=S.getMouseInfo(j);O(N,j)}}),ue(S,"handleTouchMove",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&S.throttleTriggeredAfterMouseMove(j.changedTouches[0])}),ue(S,"handleTouchStart",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&S.handleMouseDown(j.changedTouches[0])}),ue(S,"handleTouchEnd",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&S.handleMouseUp(j.changedTouches[0])}),ue(S,"handleDoubleClick",function(j){var O=S.props.onDoubleClick;if(de(O)){var N=S.getMouseInfo(j);O(N,j)}}),ue(S,"handleContextMenu",function(j){var O=S.props.onContextMenu;if(de(O)){var N=S.getMouseInfo(j);O(N,j)}}),ue(S,"triggerSyncEvent",function(j){S.props.syncId!==void 0&&Yb.emit(Wb,S.props.syncId,j,S.eventEmitterSymbol)}),ue(S,"applySyncEvent",function(j){var O=S.props,N=O.layout,E=O.syncMethod,T=S.state.updateId,P=j.dataStartIndex,C=j.dataEndIndex;if(j.dataStartIndex!==void 0||j.dataEndIndex!==void 0)S.setState(B({dataStartIndex:P,dataEndIndex:C},p({props:S.props,dataStartIndex:P,dataEndIndex:C,updateId:T},S.state)));else if(j.activeTooltipIndex!==void 0){var $=j.chartX,D=j.chartY,k=j.activeTooltipIndex,M=S.state,L=M.offset,I=M.tooltipTicks;if(!L)return;if(typeof E=="function")k=E(I,j);else if(E==="value"){k=-1;for(var F=0;F<I.length;F++)if(I[F].value===j.activeLabel){k=F;break}}var q=B(B({},L),{},{x:L.left,y:L.top}),W=Math.min($,q.x+q.width),K=Math.min(D,q.y+q.height),ne=I[k]&&I[k].value,J=hS(S.state,S.props.data,k),ye=I[k]?{x:N==="horizontal"?I[k].coordinate:W,y:N==="horizontal"?K:I[k].coordinate}:mz;S.setState(B(B({},j),{},{activeLabel:ne,activeCoordinate:ye,activePayload:J,activeTooltipIndex:k}))}else S.setState(j)}),ue(S,"renderCursor",function(j){var O,N=S.state,E=N.isTooltipActive,T=N.activeCoordinate,P=N.activePayload,C=N.offset,$=N.activeTooltipIndex,D=N.tooltipAxisBandSize,k=S.getTooltipEventType(),M=(O=j.props.active)!==null&&O!==void 0?O:E,L=S.props.layout,I=j.key||"_recharts-cursor";return _.createElement(Gje,{key:I,activeCoordinate:T,activePayload:P,activeTooltipIndex:$,chartName:n,element:j,isActive:M,layout:L,offset:C,tooltipAxisBandSize:D,tooltipEventType:k})}),ue(S,"renderPolarAxis",function(j,O,N){var E=Qn(j,"type.axisType"),T=Qn(S.state,"".concat(E,"Map")),P=j.type.defaultProps,C=P!==void 0?B(B({},P),j.props):j.props,$=T&&T[C["".concat(E,"Id")]];return A.cloneElement(j,B(B({},$),{},{className:be(E,$.className),key:j.key||"".concat(O,"-").concat(N),ticks:La($,!0)}))}),ue(S,"renderPolarGrid",function(j){var O=j.props,N=O.radialLines,E=O.polarAngles,T=O.polarRadius,P=S.state,C=P.radiusAxisMap,$=P.angleAxisMap,D=ji(C),k=ji($),M=k.cx,L=k.cy,I=k.innerRadius,F=k.outerRadius;return A.cloneElement(j,{polarAngles:Array.isArray(E)?E:La(k,!0).map(function(q){return q.coordinate}),polarRadius:Array.isArray(T)?T:La(D,!0).map(function(q){return q.coordinate}),cx:M,cy:L,innerRadius:I,outerRadius:F,key:j.key||"polar-grid",radialLines:N})}),ue(S,"renderLegend",function(){var j=S.state.formattedGraphicalItems,O=S.props,N=O.children,E=O.width,T=O.height,P=S.props.margin||{},C=E-(P.left||0)-(P.right||0),$=VL({children:N,formattedGraphicalItems:j,legendWidth:C,legendContent:u});if(!$)return null;var D=$.item,k=OP($,Yje);return A.cloneElement(D,B(B({},k),{},{chartWidth:E,chartHeight:T,margin:P,onBBoxUpdate:S.handleLegendBBoxUpdate}))}),ue(S,"renderTooltip",function(){var j,O=S.props,N=O.children,E=O.accessibilityLayer,T=In(N,Fn);if(!T)return null;var P=S.state,C=P.isTooltipActive,$=P.activeCoordinate,D=P.activePayload,k=P.activeLabel,M=P.offset,L=(j=T.props.active)!==null&&j!==void 0?j:C;return A.cloneElement(T,{viewBox:B(B({},M),{},{x:M.left,y:M.top}),active:L,label:k,payload:L?D:[],coordinate:$,accessibilityLayer:E})}),ue(S,"renderBrush",function(j){var O=S.props,N=O.margin,E=O.data,T=S.state,P=T.offset,C=T.dataStartIndex,$=T.dataEndIndex,D=T.updateId;return A.cloneElement(j,{key:j.key||"_recharts-brush",onChange:qh(S.handleBrushChange,j.props.onChange),data:E,x:G(j.props.x)?j.props.x:P.left,y:G(j.props.y)?j.props.y:P.top+P.height+P.brushBottom-(N.bottom||0),width:G(j.props.width)?j.props.width:P.width,startIndex:C,endIndex:$,updateId:"brush-".concat(D)})}),ue(S,"renderReferenceElement",function(j,O,N){if(!j)return null;var E=S,T=E.clipPathId,P=S.state,C=P.xAxisMap,$=P.yAxisMap,D=P.offset,k=j.type.defaultProps||{},M=j.props,L=M.xAxisId,I=L===void 0?k.xAxisId:L,F=M.yAxisId,q=F===void 0?k.yAxisId:F;return A.cloneElement(j,{key:j.key||"".concat(O,"-").concat(N),xAxis:C[I],yAxis:$[q],viewBox:{x:D.left,y:D.top,width:D.width,height:D.height},clipPathId:T})}),ue(S,"renderActivePoints",function(j){var O=j.item,N=j.activePoint,E=j.basePoint,T=j.childIndex,P=j.isRange,C=[],$=O.props.key,D=O.item.type.defaultProps!==void 0?B(B({},O.item.type.defaultProps),O.item.props):O.item.props,k=D.activeDot,M=D.dataKey,L=B(B({index:T,dataKey:M,cx:N.x,cy:N.y,r:4,fill:bA(O.item),strokeWidth:2,stroke:"#fff",payload:N.payload,value:N.value},ie(k,!1)),Am(k));return C.push(y.renderActiveDot(k,L,"".concat($,"-activePoint-").concat(T))),E?C.push(y.renderActiveDot(k,B(B({},L),{},{cx:E.x,cy:E.y}),"".concat($,"-basePoint-").concat(T))):P&&C.push(null),C}),ue(S,"renderGraphicChild",function(j,O,N){var E=S.filterFormatItem(j,O,N);if(!E)return null;var T=S.getTooltipEventType(),P=S.state,C=P.isTooltipActive,$=P.tooltipAxis,D=P.activeTooltipIndex,k=P.activeLabel,M=S.props.children,L=In(M,Fn),I=E.props,F=I.points,q=I.isRange,W=I.baseLine,K=E.item.type.defaultProps!==void 0?B(B({},E.item.type.defaultProps),E.item.props):E.item.props,ne=K.activeDot,J=K.hide,ye=K.activeBar,ee=K.activeShape,ot=!!(!J&&C&&L&&(ne||ye||ee)),He={};T!=="axis"&&L&&L.props.trigger==="click"?He={onClick:qh(S.handleItemMouseEnter,j.props.onClick)}:T!=="axis"&&(He={onMouseLeave:qh(S.handleItemMouseLeave,j.props.onMouseLeave),onMouseEnter:qh(S.handleItemMouseEnter,j.props.onMouseEnter)});var Y=A.cloneElement(j,B(B({},E.props),He));function oe(va){return typeof $.dataKey=="function"?$.dataKey(va.payload):null}if(ot)if(D>=0){var X,V;if($.dataKey&&!$.allowDuplicatedCategory){var _e=typeof $.dataKey=="function"?oe:"payload.".concat($.dataKey.toString());X=jm(F,_e,k),V=q&&W&&jm(W,_e,k)}else X=F==null?void 0:F[D],V=q&&W&&W[D];if(ee||ye){var ge=j.props.activeIndex!==void 0?j.props.activeIndex:D;return[A.cloneElement(j,B(B(B({},E.props),He),{},{activeIndex:ge})),null,null]}if(!me(X))return[Y].concat(Tc(S.renderActivePoints({item:E,activePoint:X,basePoint:V,childIndex:D,isRange:q})))}else{var Xe,lt=(Xe=S.getItemByXY(S.state.activeCoordinate))!==null&&Xe!==void 0?Xe:{graphicalItem:Y},dt=lt.graphicalItem,kn=dt.item,ui=kn===void 0?j:kn,Po=dt.childIndex,ga=B(B(B({},E.props),He),{},{activeIndex:Po});return[A.cloneElement(ui,ga),null,null]}return q?[Y,null,null]:[Y,null]}),ue(S,"renderCustomized",function(j,O,N){return A.cloneElement(j,B(B({key:"recharts-customized-".concat(N)},S.props),S.state))}),ue(S,"renderMap",{CartesianGrid:{handler:Xh,once:!0},ReferenceArea:{handler:S.renderReferenceElement},ReferenceLine:{handler:Xh},ReferenceDot:{handler:S.renderReferenceElement},XAxis:{handler:Xh},YAxis:{handler:Xh},Brush:{handler:S.renderBrush,once:!0},Bar:{handler:S.renderGraphicChild},Line:{handler:S.renderGraphicChild},Area:{handler:S.renderGraphicChild},Radar:{handler:S.renderGraphicChild},RadialBar:{handler:S.renderGraphicChild},Scatter:{handler:S.renderGraphicChild},Pie:{handler:S.renderGraphicChild},Funnel:{handler:S.renderGraphicChild},Tooltip:{handler:S.renderCursor,once:!0},PolarGrid:{handler:S.renderPolarGrid,once:!0},PolarAngleAxis:{handler:S.renderPolarAxis},PolarRadiusAxis:{handler:S.renderPolarAxis},Customized:{handler:S.renderCustomized}}),S.clipPathId="".concat((x=b.id)!==null&&x!==void 0?x:No("recharts"),"-clip"),S.throttleTriggeredAfterMouseMove=V4(S.triggeredAfterMouseMove,(w=b.throttleDelay)!==null&&w!==void 0?w:1e3/60),S.state={},S}return sAe(y,v),nAe(y,[{key:"componentDidMount",value:function(){var x,w;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,w=x.children,S=x.data,j=x.height,O=x.layout,N=In(w,Fn);if(N){var E=N.props.defaultIndex;if(!(typeof E!="number"||E<0||E>this.state.tooltipTicks.length-1)){var T=this.state.tooltipTicks[E]&&this.state.tooltipTicks[E].value,P=hS(this.state,S,E,T),C=this.state.tooltipTicks[E].coordinate,$=(this.state.offset.top+j)/2,D=O==="horizontal",k=D?{x:C,y:$}:{y:C,x:$},M=this.state.formattedGraphicalItems.find(function(I){var F=I.item;return F.type.name==="Scatter"});M&&(k=B(B({},k),M.props.points[E].tooltipPosition),P=M.props.points[E].tooltipPayload);var L={activeTooltipIndex:E,isTooltipActive:!0,activeLabel:T,activePayload:P,activeCoordinate:k};this.setState(L),this.renderCursor(N),this.accessibilityManager.setIndex(E)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,w){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==w.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var S,j;this.accessibilityManager.setDetails({offset:{left:(S=this.props.margin.left)!==null&&S!==void 0?S:0,top:(j=this.props.margin.top)!==null&&j!==void 0?j:0}})}return null}},{key:"componentDidUpdate",value:function(x){U0([In(x.children,Fn)],[In(this.props.children,Fn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=In(this.props.children,Fn);if(x&&typeof x.props.shared=="boolean"){var w=x.props.shared?"axis":"item";return o.indexOf(w)>=0?w:i}return i}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var w=this.container,S=w.getBoundingClientRect(),j=Wfe(S),O={chartX:Math.round(x.pageX-j.left),chartY:Math.round(x.pageY-j.top)},N=S.width/w.offsetWidth||1,E=this.inRange(O.chartX,O.chartY,N);if(!E)return null;var T=this.state,P=T.xAxisMap,C=T.yAxisMap,$=this.getTooltipEventType(),D=EP(this.state,this.props.data,this.props.layout,E);if($!=="axis"&&P&&C){var k=ji(P).scale,M=ji(C).scale,L=k&&k.invert?k.invert(O.chartX):null,I=M&&M.invert?M.invert(O.chartY):null;return B(B({},O),{},{xValue:L,yValue:I},D)}return D?B(B({},O),D):null}},{key:"inRange",value:function(x,w){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,j=this.props.layout,O=x/S,N=w/S;if(j==="horizontal"||j==="vertical"){var E=this.state.offset,T=O>=E.left&&O<=E.left+E.width&&N>=E.top&&N<=E.top+E.height;return T?{x:O,y:N}:null}var P=this.state,C=P.angleAxisMap,$=P.radiusAxisMap;if(C&&$){var D=ji(C);return JC({x:O,y:N},D)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,w=this.getTooltipEventType(),S=In(x,Fn),j={};S&&w==="axis"&&(S.props.trigger==="click"?j={onClick:this.handleClick}:j={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var O=Am(this.props,this.handleOuterEvent);return B(B({},O),j)}},{key:"addListener",value:function(){Yb.on(Wb,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Yb.removeListener(Wb,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,w,S){for(var j=this.state.formattedGraphicalItems,O=0,N=j.length;O<N;O++){var E=j[O];if(E.item===x||E.props.key===x.key||w===qa(E.item.type)&&S===E.childIndex)return E}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,w=this.state.offset,S=w.left,j=w.top,O=w.height,N=w.width;return _.createElement("defs",null,_.createElement("clipPath",{id:x},_.createElement("rect",{x:S,y:j,height:O,width:N})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(w,S){var j=AP(S,2),O=j[0],N=j[1];return B(B({},w),{},ue({},O,N.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(w,S){var j=AP(S,2),O=j[0],N=j[1];return B(B({},w),{},ue({},O,N.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var w;return(w=this.state.xAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getYScaleByAxisId",value:function(x){var w;return(w=this.state.yAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getItemByXY",value:function(x){var w=this.state,S=w.formattedGraphicalItems,j=w.activeItem;if(S&&S.length)for(var O=0,N=S.length;O<N;O++){var E=S[O],T=E.props,P=E.item,C=P.type.defaultProps!==void 0?B(B({},P.type.defaultProps),P.props):P.props,$=qa(P.type);if($==="Bar"){var D=(T.data||[]).find(function(I){return kbe(x,I)});if(D)return{graphicalItem:E,payload:D}}else if($==="RadialBar"){var k=(T.data||[]).find(function(I){return JC(x,I)});if(k)return{graphicalItem:E,payload:k}}else if(Xg(E,j)||Qg(E,j)||pd(E,j)){var M=j0e({graphicalItem:E,activeTooltipItem:j,itemData:C.data}),L=C.activeIndex===void 0?M:C.activeIndex;return{graphicalItem:B(B({},E),{},{childIndex:L}),payload:pd(E,j)?C.data[M]:E.props.data[M]}}}return null}},{key:"render",value:function(){var x=this;if(!HE(this))return null;var w=this.props,S=w.children,j=w.className,O=w.width,N=w.height,E=w.style,T=w.compact,P=w.title,C=w.desc,$=OP(w,Wje),D=ie($,!1);if(T)return _.createElement(aP,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},_.createElement(V0,hl({},D,{width:O,height:N,title:P,desc:C}),this.renderClipPath(),KE(S,this.renderMap)));if(this.props.accessibilityLayer){var k,M;D.tabIndex=(k=this.props.tabIndex)!==null&&k!==void 0?k:0,D.role=(M=this.props.role)!==null&&M!==void 0?M:"application",D.onKeyDown=function(I){x.accessibilityManager.keyboardEvent(I)},D.onFocus=function(){x.accessibilityManager.focus()}}var L=this.parseEventsOfWrapper();return _.createElement(aP,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},_.createElement("div",hl({className:be("recharts-wrapper",j),style:B({position:"relative",cursor:"default",width:O,height:N},E)},L,{ref:function(F){x.container=F}}),_.createElement(V0,hl({},D,{width:O,height:N,title:P,desc:C,style:dAe}),this.renderClipPath(),KE(S,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(A.Component);ue(m,"displayName",n),ue(m,"defaultProps",B({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),ue(m,"getDerivedStateFromProps",function(v,y){var b=v.dataKey,x=v.data,w=v.children,S=v.width,j=v.height,O=v.layout,N=v.stackOffset,E=v.margin,T=y.dataStartIndex,P=y.dataEndIndex;if(y.updateId===void 0){var C=TP(v);return B(B(B({},C),{},{updateId:0},p(B(B({props:v},C),{},{updateId:0}),y)),{},{prevDataKey:b,prevData:x,prevWidth:S,prevHeight:j,prevLayout:O,prevStackOffset:N,prevMargin:E,prevChildren:w})}if(b!==y.prevDataKey||x!==y.prevData||S!==y.prevWidth||j!==y.prevHeight||O!==y.prevLayout||N!==y.prevStackOffset||!jl(E,y.prevMargin)){var $=TP(v),D={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},k=B(B({},EP(y,x,O)),{},{updateId:y.updateId+1}),M=B(B(B({},$),D),k);return B(B(B({},M),p(B({props:v},M),y)),{},{prevDataKey:b,prevData:x,prevWidth:S,prevHeight:j,prevLayout:O,prevStackOffset:N,prevMargin:E,prevChildren:w})}if(!U0(w,y.prevChildren)){var L,I,F,q,W=In(w,gc),K=W&&(L=(I=W.props)===null||I===void 0?void 0:I.startIndex)!==null&&L!==void 0?L:T,ne=W&&(F=(q=W.props)===null||q===void 0?void 0:q.endIndex)!==null&&F!==void 0?F:P,J=K!==T||ne!==P,ye=!me(x),ee=ye&&!J?y.updateId:y.updateId+1;return B(B({updateId:ee},p(B(B({props:v},y),{},{updateId:ee,dataStartIndex:K,dataEndIndex:ne}),y)),{},{prevChildren:w,dataStartIndex:K,dataEndIndex:ne})}return null}),ue(m,"renderActiveDot",function(v,y,b){var x;return A.isValidElement(v)?x=A.cloneElement(v,y):de(v)?x=v(y):x=_.createElement(ih,y),_.createElement(Oe,{className:"recharts-active-dot",key:b},x)});var g=A.forwardRef(function(y,b){return _.createElement(m,hl({},y,{ref:b}))});return g.displayName=m.displayName,g},wAe=av({chartName:"LineChart",GraphicalChild:sh,axisComponents:[{axisType:"xAxis",AxisComp:Xi},{axisType:"yAxis",AxisComp:Qi}],formatAxisMap:SA}),jAe=av({chartName:"BarChart",GraphicalChild:_o,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Xi},{axisType:"yAxis",AxisComp:Qi}],formatAxisMap:SA}),AAe=av({chartName:"PieChart",GraphicalChild:ci,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Wg},{axisType:"radiusAxis",AxisComp:Gg}],formatAxisMap:qye,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),OAe=av({chartName:"AreaChart",GraphicalChild:fs,axisComponents:[{axisType:"xAxis",AxisComp:Xi},{axisType:"yAxis",AxisComp:Qi}],formatAxisMap:SA});const Kr=["#00a0c8","#3ddc97","#f59e0b","#ef4444","#8b5cf6","#06b6d4","#ec4899","#e84a7f"],Bo={fontSize:11,fill:"#94a3b8"},Qh={background:"#0f172a",border:"1px solid #1e293b",borderRadius:8,fontSize:12,color:"#e2e8f0"};function za({type:e="BAR",rows:t,dataKeys:n,xKey:r="name",height:a=260}){if(!t||!t.length)return c.jsx("div",{className:"flex items-center justify-center text-slate-500 text-sm",style:{height:a},children:"No data"});const i=(e||"BAR").toUpperCase();if(i==="PIE"){const s=n[0];return c.jsx(Bh,{width:"100%",height:a,children:c.jsxs(AAe,{children:[c.jsx(ci,{data:t,dataKey:s,nameKey:r,outerRadius:a/2.8,innerRadius:a/5,children:t.map((o,l)=>c.jsx(kg,{fill:Kr[l%Kr.length]},l))}),c.jsx(Fn,{contentStyle:Qh}),c.jsx(na,{wrapperStyle:{fontSize:11}})]})})}return i==="LINE"?c.jsx(Bh,{width:"100%",height:a,children:c.jsxs(wAe,{data:t,children:[c.jsx(Tp,{strokeDasharray:"3 3",stroke:"#1e293b"}),c.jsx(Xi,{dataKey:r,tick:Bo}),c.jsx(Qi,{tick:Bo}),c.jsx(Fn,{contentStyle:Qh}),c.jsx(na,{wrapperStyle:{fontSize:11}}),n.map((s,o)=>c.jsx(sh,{type:"monotone",dataKey:s,stroke:Kr[o%Kr.length],strokeWidth:2,dot:!1},s))]})}):i==="AREA"?c.jsx(Bh,{width:"100%",height:a,children:c.jsxs(OAe,{data:t,children:[c.jsx(Tp,{strokeDasharray:"3 3",stroke:"#1e293b"}),c.jsx(Xi,{dataKey:r,tick:Bo}),c.jsx(Qi,{tick:Bo}),c.jsx(Fn,{contentStyle:Qh}),c.jsx(na,{wrapperStyle:{fontSize:11}}),n.map((s,o)=>c.jsx(fs,{type:"monotone",dataKey:s,stroke:Kr[o%Kr.length],fill:Kr[o%Kr.length],fillOpacity:.18,strokeWidth:2},s))]})}):c.jsx(Bh,{width:"100%",height:a,children:c.jsxs(jAe,{data:t,children:[c.jsx(Tp,{strokeDasharray:"3 3",stroke:"#1e293b"}),c.jsx(Xi,{dataKey:r,tick:Bo}),c.jsx(Qi,{tick:Bo}),c.jsx(Fn,{contentStyle:Qh,cursor:{fill:"#1e293b55"}}),c.jsx(na,{wrapperStyle:{fontSize:11}}),n.map((s,o)=>c.jsx(_o,{dataKey:s,fill:Kr[o%Kr.length],radius:[3,3,0,0]},s))]})})}function Zh({icon:e,label:t,value:n,sub:r}){return c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsx("span",{className:"text-xs text-slate-400",children:t}),c.jsx(e,{size:18,className:"text-brand"})]}),c.jsx("div",{className:"text-2xl font-bold",children:n}),r&&c.jsx("div",{className:"text-xs text-slate-500 mt-1",children:r})]})}function NAe(){const{t:e}=ii(),{data:t}=se({queryKey:["adash"],queryFn:()=>BW(1,500)}),{data:n}=se({queryKey:["store-sales"],queryFn:()=>g5(7)}),{data:r}=se({queryKey:["trend"],queryFn:()=>v5(14)}),{data:a}=se({queryKey:["top"],queryFn:()=>b5(8)}),i=(t==null?void 0:t.today)||{},s=(n||[]).map(u=>({name:u.storeCode||u.storeName,Revenue:u.sales,Orders:u.orderCount})),o=(r||[]).map(u=>({name:(u.date||"").slice(5),Revenue:u.sales,Orders:u.orderCount})),l=(a||[]).map(u=>({name:u.name,"Units Sold":u.salesCount}));return c.jsxs("div",{children:[c.jsx("h1",{className:"text-xl font-bold mb-5",children:e("admin.dashboard.title")}),c.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-6",children:[c.jsx(Zh,{icon:qK,label:e("admin.dashboard.todaysRevenue"),value:Ae(i.totalSales)}),c.jsx(Zh,{icon:pj,label:e("admin.dashboard.todaysOrders"),value:`${i.orderCount||0}`}),c.jsx(Zh,{icon:lG,label:e("admin.dashboard.stores"),value:`${((t==null?void 0:t.storeRanking)||[]).length}`,sub:e("admin.dashboard.storesSub")}),c.jsx(Zh,{icon:Ja,label:e("admin.dashboard.largeOrders"),value:`${((t==null?void 0:t.bigOrders)||[]).length}`,sub:e("admin.dashboard.largeOrdersSub")})]}),c.jsxs("div",{className:"grid lg:grid-cols-2 gap-5 mb-6",children:[c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[c.jsx("h2",{className:"text-sm font-semibold mb-3",children:e("admin.dashboard.revenueByStore")}),c.jsx(za,{type:"BAR",rows:s,dataKeys:["Revenue","Orders"]})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[c.jsx("h2",{className:"text-sm font-semibold mb-3",children:e("admin.dashboard.revenueTrend")}),c.jsx(za,{type:"AREA",rows:o,dataKeys:["Revenue"]})]})]}),c.jsxs("div",{className:"grid lg:grid-cols-2 gap-5",children:[c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[c.jsx("h2",{className:"text-sm font-semibold mb-3",children:e("admin.dashboard.bestSellers")}),c.jsx(za,{type:"BAR",rows:l,dataKeys:["Units Sold"]})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[c.jsx("h2",{className:"text-sm font-semibold mb-3",children:e("admin.dashboard.storeRanking")}),c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge",children:[c.jsx("th",{className:"text-left py-2",children:e("admin.dashboard.store")}),c.jsx("th",{className:"text-right",children:e("admin.dashboard.revenue")}),c.jsx("th",{className:"text-right",children:e("admin.dashboard.orders")})]})}),c.jsxs("tbody",{children:[((t==null?void 0:t.storeRanking)||[]).map((u,f)=>c.jsxs("tr",{className:"border-b border-edge/50",children:[c.jsx("td",{className:"py-2",children:u.storeName||u.storeCode}),c.jsx("td",{className:"text-right",children:Ae(u.sales)}),c.jsx("td",{className:"text-right text-slate-400",children:u.orderCount})]},f)),!((t==null?void 0:t.storeRanking)||[]).length&&c.jsx("tr",{children:c.jsx("td",{colSpan:3,className:"text-center text-slate-500 py-6",children:e("common.noData")})})]})]})]})]})]})}const _P={id:0,code:"",name:"",city:"",state:"",zip:"",address:"",phone:"",timezone:"America/New_York",openTime:"09:00",closeTime:"18:00",sameDayCutoff:"12:00",deliveryRadiusMi:"15",dailyCapacity:"50"};function EAe(){const e=Gt(),{data:t}=se({queryKey:["admin-stores"],queryFn:()=>Ao(!1)}),[n,r]=A.useState(!1),[a,i]=A.useState({..._P}),[s,o]=A.useState(""),[l,u]=A.useState(!1),f=()=>e.invalidateQueries({queryKey:["admin-stores"]}),d=async(v,y)=>{await iW(v,!y).catch(()=>{}),f()},h=()=>{i({..._P}),o(""),r(!0)},p=v=>{o(""),i({id:v.id,code:v.code??"",name:v.name??"",city:v.city??"",state:v.state??"",zip:v.zip??"",address:v.address??"",phone:v.phone??"",timezone:v.timezone??"America/New_York",openTime:v.openTime??"09:00",closeTime:v.closeTime??"18:00",sameDayCutoff:v.sameDayCutoff??"12:00",deliveryRadiusMi:String(v.deliveryRadiusMi??15),dailyCapacity:String(v.dailyCapacity??50)}),r(!0)},m=async()=>{if(!a.name.trim()){o("Store name is required.");return}if(!a.id&&!a.code.trim()){o("Store code is required.");return}u(!0),o("");const v={code:a.code.trim(),name:a.name.trim(),city:a.city.trim()||null,state:a.state.trim()||null,zip:a.zip.trim()||null,address:a.address.trim()||null,phone:a.phone.trim()||null,timezone:a.timezone.trim()||null,openTime:a.openTime||null,closeTime:a.closeTime||null,sameDayCutoff:a.sameDayCutoff||null,deliveryRadiusMi:a.deliveryRadiusMi===""?null:Number(a.deliveryRadiusMi),dailyCapacity:a.dailyCapacity===""?null:Number(a.dailyCapacity)};try{a.id?await aW(a.id,v):await rW(v),r(!1),f()}catch{o("Failed to save the store. Please check the inputs.")}finally{u(!1)}},g="bg-panel border border-edge rounded-lg px-3 py-2 text-sm";return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-5",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(qd,{className:"text-brand",size:22}),c.jsx("h1",{className:"text-xl font-bold",children:"Stores"})]}),c.jsxs("button",{onClick:h,className:"flex items-center gap-1.5 bg-brand text-ink text-sm font-semibold px-3 py-2 rounded-lg",children:[c.jsx(Jl,{size:15})," New Store"]})]}),n&&c.jsx("div",{className:"fixed inset-0 z-50 bg-black/60 flex items-start justify-center overflow-y-auto p-4",onClick:()=>!l&&r(!1),children:c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 w-full max-w-xl mt-8 space-y-3",onClick:v=>v.stopPropagation(),children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h2",{className:"text-lg font-bold",children:a.id?"Edit Store":"New Store"}),c.jsx("button",{onClick:()=>r(!1),className:"text-slate-400 hover:text-slate-200",children:c.jsx(B3,{size:18})})]}),s&&c.jsx("div",{className:"text-xs text-rose-400 bg-rose-500/10 border border-rose-500/30 rounded-lg px-3 py-2",children:s}),c.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[c.jsx("input",{value:a.code,onChange:v=>i({...a,code:v.target.value}),disabled:!!a.id,placeholder:"Code *",className:`${g} ${a.id?"opacity-60":""}`}),c.jsx("input",{value:a.name,onChange:v=>i({...a,name:v.target.value}),placeholder:"Store Name *",className:`${g} col-span-2`})]}),c.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[c.jsx("input",{value:a.city,onChange:v=>i({...a,city:v.target.value}),placeholder:"City",className:g}),c.jsx("input",{value:a.state,onChange:v=>i({...a,state:v.target.value}),placeholder:"State",className:g}),c.jsx("input",{value:a.zip,onChange:v=>i({...a,zip:v.target.value}),placeholder:"ZIP",className:g})]}),c.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[c.jsx("input",{value:a.address,onChange:v=>i({...a,address:v.target.value}),placeholder:"Address",className:`${g} col-span-2`}),c.jsx("input",{value:a.phone,onChange:v=>i({...a,phone:v.target.value}),placeholder:"Phone",className:g})]}),c.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[c.jsx("input",{value:a.openTime,onChange:v=>i({...a,openTime:v.target.value}),placeholder:"Open (09:00)",className:g}),c.jsx("input",{value:a.closeTime,onChange:v=>i({...a,closeTime:v.target.value}),placeholder:"Close (18:00)",className:g}),c.jsx("input",{value:a.sameDayCutoff,onChange:v=>i({...a,sameDayCutoff:v.target.value}),placeholder:"Same-Day Cutoff",className:g}),c.jsx("input",{value:a.timezone,onChange:v=>i({...a,timezone:v.target.value}),placeholder:"Timezone",className:g})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsx("input",{type:"number",value:a.deliveryRadiusMi,onChange:v=>i({...a,deliveryRadiusMi:v.target.value}),placeholder:"Delivery Radius (mi)",className:g}),c.jsx("input",{type:"number",value:a.dailyCapacity,onChange:v=>i({...a,dailyCapacity:v.target.value}),placeholder:"Daily Capacity",className:g})]}),c.jsxs("div",{className:"flex items-center justify-end gap-2 pt-1",children:[c.jsx("button",{onClick:()=>r(!1),disabled:l,className:"border border-edge text-slate-400 text-sm px-4 py-2 rounded-lg",children:"Cancel"}),c.jsx("button",{onClick:m,disabled:l,className:"bg-brand text-ink font-semibold text-sm px-5 py-2 rounded-lg disabled:opacity-50",children:l?"Saving…":a.id?"Update":"Create"})]})]})}),c.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[c.jsx("th",{className:"text-left p-3",children:"Code"}),c.jsx("th",{className:"text-left",children:"Store"}),c.jsx("th",{className:"text-left",children:"Location"}),c.jsx("th",{className:"text-left",children:"Hours"}),c.jsx("th",{className:"text-right",children:"Same-Day Cutoff"}),c.jsx("th",{className:"text-right",children:"Radius (mi)"}),c.jsx("th",{className:"text-right",children:"Daily Capacity"}),c.jsx("th",{className:"text-center",children:"Status"}),c.jsx("th",{className:"text-center",children:"Manage"})]})}),c.jsxs("tbody",{children:[(t||[]).map(v=>c.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[c.jsx("td",{className:"p-3 font-mono text-xs text-brand",children:v.code}),c.jsx("td",{children:v.name}),c.jsxs("td",{className:"text-slate-400",children:[v.city,", ",v.state," ",v.zip]}),c.jsxs("td",{className:"text-slate-400",children:[v.openTime,"–",v.closeTime]}),c.jsx("td",{className:"text-right text-slate-400",children:v.sameDayCutoff}),c.jsx("td",{className:"text-right text-slate-400",children:v.deliveryRadiusMi}),c.jsx("td",{className:"text-right text-slate-400",children:v.dailyCapacity}),c.jsx("td",{className:"text-center",children:c.jsxs("button",{onClick:()=>d(v.id,v.active),className:`inline-flex items-center gap-1 px-2 py-1 rounded text-xs ${v.active?"bg-emerald-500/15 text-emerald-400":"bg-slate-600/20 text-slate-400"}`,children:[c.jsx(rG,{size:12})," ",v.active?"Active":"Inactive"]})}),c.jsx("td",{className:"text-center",children:c.jsx("button",{onClick:()=>p(v),title:"Edit",className:"text-xs bg-panel border border-edge text-slate-300 px-2 py-1 rounded inline-flex items-center gap-1",children:c.jsx(D3,{size:12})})})]},v.id)),!(t||[]).length&&c.jsx("tr",{children:c.jsx("td",{colSpan:9,className:"text-center text-slate-500 py-8",children:"No stores found."})})]})]})})]})}const TAe=["ON_SALE","SOLD_OUT","HIDDEN"],CAe=["","BIRTHDAY","ANNIVERSARY","SYMPATHY","LOVE","CONGRATS","GET_WELL","THANK_YOU"],_Ae=["","ROSES","TULIPS","LILIES","ORCHIDS","SUNFLOWERS","MIXED"],PP={id:0,categoryId:"",sku:"",name:"",brand:"",description:"",price:"",salePrice:"",status:"ON_SALE",stock:"0",thumbnail:"",occasion:"",flowerType:"",shelfLifeDays:"5",sizes:[]};function PAe(){const e=Gt(),[t,n]=A.useState(""),[r,a]=A.useState(!1),[i,s]=A.useState({...PP}),[o,l]=A.useState(""),[u,f]=A.useState(!1),{data:d}=se({queryKey:["admin-products",t],queryFn:()=>tc({keyword:t,size:100,status:""})}),{data:h}=se({queryKey:["admin-cats"],queryFn:p5}),p=(d==null?void 0:d.items)||[],m=h||[],g=()=>e.invalidateQueries({queryKey:["admin-products"]}),v=async(E,T)=>{await uW(E,T==="ON_SALE"?"HIDDEN":"ON_SALE").catch(()=>{}),g()},y=()=>{s({...PP}),l(""),a(!0)},b=async E=>{l("");const T=await h5(E).catch(()=>null);T&&(s({id:T.id,categoryId:T.categoryId??"",sku:T.sku??"",name:T.name??"",brand:T.brand??"",description:T.description??"",price:String(T.price??""),salePrice:T.salePrice!=null?String(T.salePrice):"",status:T.status||"ON_SALE",stock:String(T.stock??0),thumbnail:T.thumbnail??"",occasion:T.occasion??"",flowerType:T.flowerType??"",shelfLifeDays:String(T.shelfLifeDays??5),sizes:(T.sizes||[]).map(P=>({sizeCode:P.sizeCode||"",label:P.label||"",price:String(P.price??""),stemCount:String(P.stemCount??"")}))}),a(!0))},x=()=>s(E=>({...E,sizes:[...E.sizes,{sizeCode:"ORIGINAL",label:"",price:"",stemCount:""}]})),w=(E,T,P)=>s(C=>({...C,sizes:C.sizes.map(($,D)=>D===E?{...$,[T]:P}:$)})),S=E=>s(T=>({...T,sizes:T.sizes.filter((P,C)=>C!==E)})),j=async()=>{if(!i.name.trim()){l("Product name is required.");return}if(i.price===""||isNaN(Number(i.price))){l("A valid price is required.");return}f(!0),l("");const E={categoryId:i.categoryId===""?null:Number(i.categoryId),sku:i.sku.trim()||null,name:i.name.trim(),brand:i.brand.trim()||null,description:i.description.trim()||null,price:Number(i.price),salePrice:i.salePrice===""?null:Number(i.salePrice),status:i.status,stock:i.stock===""?0:Number(i.stock),thumbnail:i.thumbnail.trim()||null,occasion:i.occasion||null,flowerType:i.flowerType||null,shelfLifeDays:i.shelfLifeDays===""?5:Number(i.shelfLifeDays),sizes:i.sizes.filter(T=>T.sizeCode&&T.price!=="").map((T,P)=>({sizeCode:T.sizeCode,label:T.label||T.sizeCode,price:Number(T.price),stemCount:T.stemCount===""?null:Number(T.stemCount),sortOrder:P}))};try{i.id?await lW(i.id,E):await oW(E),a(!1),g()}catch{l("Failed to save the product. Please check the inputs.")}finally{f(!1)}},O=async(E,T)=>{window.confirm(`Delete product "${T}"? This cannot be undone.`)&&(await cW(E).catch(()=>{}),g())},N="bg-panel border border-edge rounded-lg px-3 py-2 text-sm";return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-5",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(pt,{className:"text-brand",size:22}),c.jsx("h1",{className:"text-xl font-bold",children:"상품 관리"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("div",{className:"flex items-center gap-2 bg-card border border-edge rounded-lg px-3 py-2",children:[c.jsx(ig,{size:15,className:"text-slate-500"}),c.jsx("input",{value:t,onChange:E=>n(E.target.value),placeholder:"상품 검색",className:"bg-transparent text-sm outline-none w-48"})]}),c.jsxs("button",{onClick:y,className:"flex items-center gap-1.5 bg-brand text-ink text-sm font-semibold px-3 py-2 rounded-lg",children:[c.jsx(Jl,{size:15})," New Product"]})]})]}),r&&c.jsx("div",{className:"fixed inset-0 z-50 bg-black/60 flex items-start justify-center overflow-y-auto p-4",onClick:()=>!u&&a(!1),children:c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 w-full max-w-2xl mt-8 space-y-3",onClick:E=>E.stopPropagation(),children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h2",{className:"text-lg font-bold",children:i.id?"Edit Product":"New Product"}),c.jsx("button",{onClick:()=>a(!1),className:"text-slate-400 hover:text-slate-200",children:c.jsx(B3,{size:18})})]}),o&&c.jsx("div",{className:"text-xs text-rose-400 bg-rose-500/10 border border-rose-500/30 rounded-lg px-3 py-2",children:o}),c.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[c.jsx("input",{value:i.sku,onChange:E=>s({...i,sku:E.target.value}),placeholder:"SKU",className:N}),c.jsx("input",{value:i.name,onChange:E=>s({...i,name:E.target.value}),placeholder:"Product Name *",className:`${N} col-span-2`})]}),c.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[c.jsxs("select",{value:i.categoryId,onChange:E=>s({...i,categoryId:E.target.value}),className:N,children:[c.jsx("option",{value:"",children:"Category"}),m.map(E=>c.jsx("option",{value:E.id,children:E.name},E.id))]}),c.jsx("input",{value:i.brand,onChange:E=>s({...i,brand:E.target.value}),placeholder:"Brand",className:N}),c.jsx("select",{value:i.status,onChange:E=>s({...i,status:E.target.value}),className:N,children:TAe.map(E=>c.jsx("option",{value:E,children:E},E))})]}),c.jsx("textarea",{value:i.description,onChange:E=>s({...i,description:E.target.value}),placeholder:"Description",rows:2,className:`${N} w-full`}),c.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[c.jsx("input",{type:"number",value:i.price,onChange:E=>s({...i,price:E.target.value}),placeholder:"Price *",className:N}),c.jsx("input",{type:"number",value:i.salePrice,onChange:E=>s({...i,salePrice:E.target.value}),placeholder:"Sale Price",className:N}),c.jsx("input",{type:"number",value:i.stock,onChange:E=>s({...i,stock:E.target.value}),placeholder:"Stock",className:N}),c.jsx("input",{type:"number",value:i.shelfLifeDays,onChange:E=>s({...i,shelfLifeDays:E.target.value}),placeholder:"Shelf Life (days)",className:N})]}),c.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[c.jsx("select",{value:i.occasion,onChange:E=>s({...i,occasion:E.target.value}),className:N,children:CAe.map(E=>c.jsx("option",{value:E,children:E||"Occasion"},E))}),c.jsx("select",{value:i.flowerType,onChange:E=>s({...i,flowerType:E.target.value}),className:N,children:_Ae.map(E=>c.jsx("option",{value:E,children:E||"Flower Type"},E))}),c.jsx("input",{value:i.thumbnail,onChange:E=>s({...i,thumbnail:E.target.value}),placeholder:"Thumbnail URL",className:N})]}),c.jsxs("div",{className:"border border-edge rounded-lg p-3 space-y-2",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("span",{className:"text-xs font-semibold text-slate-300",children:"Sizes (Original / Deluxe / Grand)"}),c.jsxs("button",{onClick:x,className:"text-xs flex items-center gap-1 text-brand",children:[c.jsx(Jl,{size:12})," Add Size"]})]}),i.sizes.length===0&&c.jsx("p",{className:"text-xs text-slate-500",children:"No size variants. Base price is used."}),i.sizes.map((E,T)=>c.jsxs("div",{className:"grid grid-cols-12 gap-2 items-center",children:[c.jsx("select",{value:E.sizeCode,onChange:P=>w(T,"sizeCode",P.target.value),className:`${N} col-span-3`,children:["ORIGINAL","DELUXE","GRAND"].map(P=>c.jsx("option",{children:P},P))}),c.jsx("input",{value:E.label,onChange:P=>w(T,"label",P.target.value),placeholder:"Label",className:`${N} col-span-3`}),c.jsx("input",{type:"number",value:E.price,onChange:P=>w(T,"price",P.target.value),placeholder:"Price",className:`${N} col-span-3`}),c.jsx("input",{type:"number",value:E.stemCount,onChange:P=>w(T,"stemCount",P.target.value),placeholder:"Stems",className:`${N} col-span-2`}),c.jsx("button",{onClick:()=>S(T),className:"col-span-1 text-rose-400 flex justify-center",children:c.jsx(R0,{size:14})})]},T))]}),c.jsxs("div",{className:"flex items-center justify-end gap-2 pt-1",children:[c.jsx("button",{onClick:()=>a(!1),disabled:u,className:"border border-edge text-slate-400 text-sm px-4 py-2 rounded-lg",children:"Cancel"}),c.jsx("button",{onClick:j,disabled:u,className:"bg-brand text-ink font-semibold text-sm px-5 py-2 rounded-lg disabled:opacity-50",children:u?"Saving…":i.id?"Update":"Create"})]})]})}),c.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[c.jsx("th",{className:"text-left p-3",children:"SKU"}),c.jsx("th",{className:"text-left",children:"상품명"}),c.jsx("th",{className:"text-left",children:"상황"}),c.jsx("th",{className:"text-right",children:"가격"}),c.jsx("th",{className:"text-right",children:"재고"}),c.jsx("th",{className:"text-right",children:"판매"}),c.jsx("th",{className:"text-right",children:"평점"}),c.jsx("th",{className:"text-center",children:"상태"}),c.jsx("th",{className:"text-center",children:"관리"})]})}),c.jsxs("tbody",{children:[p.map(E=>{var T;return c.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[c.jsx("td",{className:"p-3 font-mono text-xs text-slate-400",children:E.sku}),c.jsx("td",{children:E.name}),c.jsx("td",{className:"text-slate-400",children:E.occasion||"-"}),c.jsx("td",{className:"text-right",children:Ae(E.salePrice&&E.salePrice>0?E.salePrice:E.price)}),c.jsx("td",{className:"text-right text-slate-400",children:E.stock}),c.jsx("td",{className:"text-right text-slate-400",children:E.salesCount}),c.jsx("td",{className:"text-right text-amber-400",children:((T=E.ratingAvg)==null?void 0:T.toFixed(1))||"-"}),c.jsx("td",{className:"text-center",children:c.jsx("button",{onClick:()=>v(E.id,E.status),children:c.jsx(jr,{status:E.status})})}),c.jsx("td",{className:"text-center",children:c.jsxs("div",{className:"inline-flex gap-1",children:[c.jsx("button",{onClick:()=>b(E.id),title:"Edit",className:"text-xs bg-panel border border-edge text-slate-300 px-2 py-1 rounded inline-flex items-center gap-1",children:c.jsx(D3,{size:12})}),c.jsx("button",{onClick:()=>O(E.id,E.name),title:"Delete",className:"text-xs bg-rose-500/15 text-rose-400 px-2 py-1 rounded inline-flex items-center gap-1",children:c.jsx(R0,{size:12})})]})})]},E.id)}),!p.length&&c.jsx("tr",{children:c.jsx("td",{colSpan:9,className:"text-center text-slate-500 py-8",children:"상품이 없습니다."})})]})]})})]})}function MAe(){const e=Gt(),[t,n]=A.useState(0),{data:r}=se({queryKey:["inv-stores"],queryFn:()=>Ao(!1)});A.useEffect(()=>{!t&&(r!=null&&r.length)&&n(r[0].id)},[r]);const{data:a}=se({queryKey:["store-inv",t],queryFn:()=>fW(t),enabled:!!t}),i=async(o,l)=>{await dW(t,o,!l).catch(()=>{}),e.invalidateQueries({queryKey:["store-inv",t]})},s=async(o,l)=>{await hW(t,o,l).catch(()=>{}),e.invalidateQueries({queryKey:["store-inv",t]})};return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-5",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(x3,{className:"text-brand",size:22}),c.jsx("h1",{className:"text-xl font-bold",children:"Store Inventory (ON/OFF)"})]}),c.jsx("select",{value:t,onChange:o=>n(Number(o.target.value)),className:"bg-card border border-edge rounded-lg px-3 py-2 text-sm",children:(r||[]).map(o=>c.jsx("option",{value:o.id,children:o.name},o.id))})]}),c.jsx("p",{className:"text-xs text-slate-500 mb-3",children:"Switching to OFF immediately marks the item as out of stock in that store's area."}),c.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[c.jsx("th",{className:"text-left p-3",children:"Product"}),c.jsx("th",{className:"text-right",children:"Stock"}),c.jsx("th",{className:"text-center",children:"Adjust"}),c.jsx("th",{className:"text-center",children:"Sale"})]})}),c.jsxs("tbody",{children:[(a||[]).map(o=>{const l=o.available!==!1;return c.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[c.jsx("td",{className:"p-3",children:o.productName||`Product #${o.productId}`}),c.jsx("td",{className:"text-right text-slate-300",children:o.stock??o.quantity??"-"}),c.jsx("td",{className:"text-center",children:c.jsxs("div",{className:"inline-flex items-center gap-1",children:[c.jsx("button",{onClick:()=>s(o.productId,-1),className:"w-6 h-6 rounded bg-panel border border-edge text-slate-300",children:"−"}),c.jsx("button",{onClick:()=>s(o.productId,1),className:"w-6 h-6 rounded bg-panel border border-edge text-slate-300",children:"+"})]})}),c.jsx("td",{className:"text-center",children:c.jsx("button",{onClick:()=>i(o.productId,l),className:`px-3 py-1 rounded-full text-xs ${l?"bg-emerald-500/15 text-emerald-400":"bg-rose-500/15 text-rose-400"}`,children:l?"ON":"OFF"})})]},o.productId||o.id)}),!(a||[]).length&&c.jsx("tr",{children:c.jsx("td",{colSpan:4,className:"text-center text-slate-500 py-8",children:"No inventory items found."})})]})]})})]})}const Qb={PAID:"PREPARING",PREPARING:"SHIPPED",SHIPPED:"DELIVERED"};function RAe(){const e=Gt(),[t,n]=A.useState(""),[r,a]=A.useState([]),[i,s]=A.useState(!1),o=A.useRef(null),{data:l}=se({queryKey:["admin-orders",t],queryFn:()=>SW(t,100)}),{data:u}=se({queryKey:["ord-stores"],queryFn:()=>Ao(!1)});A.useEffect(()=>{try{const p=location.protocol==="https:"?"wss":"ws",m=new WebSocket(`${p}://${location.host}/ws/mall/orders`);return o.current=m,m.onopen=()=>s(!0),m.onclose=()=>s(!1),m.onmessage=g=>{try{const v=JSON.parse(g.data);a(y=>[v,...y].slice(0,12)),v.event==="ORDER_NEW"&&e.invalidateQueries({queryKey:["admin-orders"]})}catch{}},()=>m.close()}catch{s(!1)}},[]);const f=async p=>{const m=Qb[p.status];m&&(await y5(p.id,m).catch(()=>{}),e.invalidateQueries({queryKey:["admin-orders"]}))},d=p=>{var m;return((m=u==null?void 0:u.find(g=>g.id===p))==null?void 0:m.code)||`#${p}`},h=l||[];return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-5",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(pj,{className:"text-brand",size:22}),c.jsx("h1",{className:"text-xl font-bold",children:"Orders (Live)"})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsxs("span",{className:`flex items-center gap-1.5 text-xs ${i?"text-emerald-400":"text-slate-500"}`,children:[c.jsx(uE,{size:13})," ",i?"Connected":"Offline"]}),c.jsxs("select",{value:t,onChange:p=>n(p.target.value),className:"bg-card border border-edge rounded-lg px-3 py-2 text-sm",children:[c.jsx("option",{value:"",children:"All"}),["PENDING","PAID","PREPARING","SHIPPED","DELIVERED","CONFIRMED","CANCELLED"].map(p=>c.jsx("option",{value:p,children:p},p))]})]})]}),!!r.length&&c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4 mb-5",children:[c.jsxs("div",{className:"text-xs text-slate-400 mb-2 flex items-center gap-1.5",children:[c.jsx(uE,{size:12,className:"text-brand"})," Live Events"]}),c.jsx("div",{className:"flex flex-wrap gap-2",children:r.map((p,m)=>c.jsxs("span",{className:"text-xs bg-panel border border-edge rounded-full px-3 py-1 text-slate-300",children:[p.event==="ORDER_NEW"?"🆕":"🔄"," ",p.orderNo," · ",d(p.storeId)," · ",p.status," ",p.payAmount?`· ${Ae(p.payAmount)}`:""]},m))})]}),c.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[c.jsx("th",{className:"text-left p-3",children:"Order No."}),c.jsx("th",{className:"text-left",children:"Store"}),c.jsx("th",{className:"text-left",children:"Fulfillment"}),c.jsx("th",{className:"text-left",children:"Schedule"}),c.jsx("th",{className:"text-left",children:"Recipient"}),c.jsx("th",{className:"text-right",children:"Amount"}),c.jsx("th",{className:"text-center",children:"Status"}),c.jsx("th",{className:"text-center",children:"Actions"})]})}),c.jsxs("tbody",{children:[h.map(p=>c.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[c.jsx("td",{className:"p-3 font-mono text-xs text-brand",children:p.orderNo||`#${p.id}`}),c.jsx("td",{className:"text-slate-400",children:d(p.storeId)}),c.jsx("td",{children:p.fulfillmentType==="PICKUP"?c.jsxs("span",{className:"flex items-center gap-1 text-xs",children:[c.jsx(qd,{size:12})," 픽업"]}):c.jsxs("span",{className:"flex items-center gap-1 text-xs",children:[c.jsx(Kd,{size:12})," 배송"]})}),c.jsxs("td",{className:"text-slate-400 text-xs",children:[p.scheduledDate," ",p.slotLabel]}),c.jsx("td",{className:"text-slate-400",children:p.receiverName||"-"}),c.jsx("td",{className:"text-right",children:Ae(p.payAmount??p.totalAmount)}),c.jsx("td",{className:"text-center",children:c.jsx(jr,{status:p.status})}),c.jsx("td",{className:"text-center",children:Qb[p.status]&&c.jsxs("button",{onClick:()=>f(p),className:"text-xs bg-brand text-ink font-semibold px-2.5 py-1 rounded",children:["→ ",Qb[p.status]]})})]},p.id)),!h.length&&c.jsx("tr",{children:c.jsx("td",{colSpan:8,className:"text-center text-slate-500 py-8",children:"주문이 없습니다."})})]})]})})]})}function DAe(){const e=Gt(),[t,n]=A.useState(""),[r,a]=A.useState([]),{data:i}=se({queryKey:["transfers",t],queryFn:()=>EW(t,"")}),{data:s}=se({queryKey:["tr-stores"],queryFn:()=>Ao(!1)}),o=async d=>{await TW(d).catch(()=>{}),e.invalidateQueries({queryKey:["transfers"]})},l=async d=>{await CW(d).catch(()=>{}),e.invalidateQueries({queryKey:["transfers"]})},u=async()=>{const d=(s||[]).map(p=>p.id),h=await GW(d).catch(()=>[]);a(h||[])},f=d=>{var h;return((h=s==null?void 0:s.find(p=>p.id===d))==null?void 0:h.code)||`#${d}`};return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-5",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(b3,{className:"text-brand",size:22}),c.jsx("h1",{className:"text-xl font-bold",children:"Inventory Transfers"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("button",{onClick:u,className:"flex items-center gap-1.5 bg-brand2 text-white text-sm px-3 py-2 rounded-lg",children:[c.jsx(wr,{size:14})," AI Transfer Suggestions"]}),c.jsxs("select",{value:t,onChange:d=>n(d.target.value),className:"bg-card border border-edge rounded-lg px-3 py-2 text-sm",children:[c.jsx("option",{value:"",children:"All"}),["REQUESTED","APPROVED","REJECTED","COMPLETED"].map(d=>c.jsx("option",{value:d,children:d},d))]})]})]}),!!r.length&&c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4 mb-5",children:[c.jsxs("div",{className:"text-xs text-brand mb-2 flex items-center gap-1.5",children:[c.jsx(wr,{size:12})," AI Recommended Transfers"]}),c.jsx("div",{className:"space-y-1.5 text-sm",children:r.map((d,h)=>c.jsxs("div",{className:"flex items-center justify-between text-slate-300",children:[c.jsxs("span",{children:["Product #",d.productId,": ",f(d.fromStoreId)," → ",f(d.toStoreId)," ×",d.suggestedQty]}),c.jsx("span",{className:"text-xs text-slate-500",children:d.reason})]},h))})]}),c.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[c.jsx("th",{className:"text-left p-3",children:"ID"}),c.jsx("th",{className:"text-left",children:"From → To"}),c.jsx("th",{className:"text-left",children:"Product"}),c.jsx("th",{className:"text-right",children:"Quantity"}),c.jsx("th",{className:"text-left",children:"Reason"}),c.jsx("th",{className:"text-center",children:"Status"}),c.jsx("th",{className:"text-center",children:"Actions"})]})}),c.jsxs("tbody",{children:[(i||[]).map(d=>c.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[c.jsx("td",{className:"p-3 text-slate-400",children:d.id}),c.jsxs("td",{children:[f(d.fromStoreId)," → ",f(d.toStoreId)]}),c.jsxs("td",{className:"text-slate-400",children:["#",d.productId,d.aiRecommended&&c.jsx("span",{className:"ml-1 text-[10px] text-brand",children:"AI"})]}),c.jsx("td",{className:"text-right",children:d.quantity}),c.jsx("td",{className:"text-slate-400 text-xs",children:d.reason}),c.jsx("td",{className:"text-center",children:c.jsx(jr,{status:d.status})}),c.jsx("td",{className:"text-center",children:d.status==="REQUESTED"&&c.jsxs("div",{className:"inline-flex gap-1",children:[c.jsx("button",{onClick:()=>o(d.id),className:"text-xs bg-emerald-500/15 text-emerald-400 px-2 py-1 rounded",children:"Approve"}),c.jsx("button",{onClick:()=>l(d.id),className:"text-xs bg-rose-500/15 text-rose-400 px-2 py-1 rounded",children:"Reject"})]})})]},d.id)),!(i||[]).length&&c.jsx("tr",{children:c.jsx("td",{colSpan:7,className:"text-center text-slate-500 py-8",children:"No transfer requests."})})]})]})})]})}const kAe=["","STANDARD","BASIC","SILVER","GOLD","VIP"];function $Ae(){const e=Gt(),[t,n]=A.useState(""),[r,a]=A.useState(""),{data:i}=se({queryKey:["by-tier"],queryFn:()=>w5(30)}),{data:s}=se({queryKey:["admin-members",t,r],queryFn:()=>DW(t,r,200)}),o=async()=>{await oX().catch(()=>{}),e.invalidateQueries({queryKey:["by-tier"]})},l=(i||[]).map(f=>({name:f.tier,customers:f.customers,sales:f.sales})),u=(s==null?void 0:s.items)||[];return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-5",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(I3,{className:"text-brand",size:22}),c.jsx("h1",{className:"text-xl font-bold",children:"Members (CRM)"})]}),c.jsxs("button",{onClick:o,className:"flex items-center gap-1.5 bg-card border border-edge text-sm px-3 py-2 rounded-lg text-slate-300 hover:text-brand",children:[c.jsx(dj,{size:14})," Recalculate All Tiers"]})]}),c.jsxs("div",{className:"grid lg:grid-cols-2 gap-5 mb-5",children:[c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[c.jsx("h2",{className:"text-sm font-semibold mb-3",children:"Customer Distribution by Tier (30 days)"}),c.jsx(za,{type:"BAR",rows:l,dataKeys:["customers"]})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[c.jsx("h2",{className:"text-sm font-semibold mb-3",children:"Sales Contribution by Tier"}),c.jsx(za,{type:"PIE",rows:(i||[]).map(f=>({name:f.tier,value:f.sales})),dataKeys:["value"]})]})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-5",children:[c.jsx("h2",{className:"text-sm font-semibold mb-3",children:"Tier Summary"}),c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[c.jsx("th",{className:"text-left p-3",children:"Tier"}),c.jsx("th",{className:"text-right",children:"Customers"}),c.jsx("th",{className:"text-right",children:"Orders"}),c.jsx("th",{className:"text-right",children:"Sales"})]})}),c.jsxs("tbody",{children:[(i||[]).map(f=>c.jsxs("tr",{className:"border-b border-edge/50",children:[c.jsx("td",{className:"p-3",children:c.jsx(jr,{status:f.tier})}),c.jsx("td",{className:"text-right",children:f.customers}),c.jsx("td",{className:"text-right text-slate-400",children:f.orderCount}),c.jsx("td",{className:"text-right",children:Ae(f.sales)})]},f.tier)),!(i||[]).length&&c.jsx("tr",{children:c.jsx("td",{colSpan:4,className:"text-center text-slate-500 py-8",children:"No data"})})]})]})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:[c.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-edge",children:[c.jsxs("h2",{className:"text-sm font-semibold",children:["Member List ",c.jsxs("span",{className:"text-slate-500 font-normal",children:["(",(s==null?void 0:s.total)??0,")"]})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("select",{value:r,onChange:f=>a(f.target.value),className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm",children:kAe.map(f=>c.jsx("option",{value:f,children:f||"All Tiers"},f))}),c.jsxs("div",{className:"flex items-center gap-2 bg-panel border border-edge rounded-lg px-3 py-2",children:[c.jsx(ig,{size:15,className:"text-slate-500"}),c.jsx("input",{value:t,onChange:f=>n(f.target.value),placeholder:"Search by name or ID",className:"bg-transparent text-sm outline-none w-48"})]})]})]}),c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[c.jsx("th",{className:"text-left p-3",children:"Customer"}),c.jsx("th",{className:"text-left",children:"Email"}),c.jsx("th",{className:"text-left",children:"Phone"}),c.jsx("th",{className:"text-left",children:"ZIP"}),c.jsx("th",{className:"text-center",children:"Tier"}),c.jsx("th",{className:"text-right",children:"Orders"}),c.jsx("th",{className:"text-right",children:"Lifetime Value"}),c.jsx("th",{className:"text-left",children:"Joined"})]})}),c.jsxs("tbody",{children:[u.map(f=>c.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[c.jsxs("td",{className:"p-3",children:[c.jsx("div",{className:"font-medium",children:f.displayName||f.username}),c.jsxs("div",{className:"text-xs text-slate-500 font-mono",children:["@",f.username]})]}),c.jsx("td",{className:"text-slate-400",children:f.emailMasked||"-"}),c.jsx("td",{className:"text-slate-400",children:f.phoneMasked||"-"}),c.jsx("td",{className:"text-slate-400",children:f.defaultZip||"-"}),c.jsx("td",{className:"text-center",children:c.jsx(jr,{status:f.tier})}),c.jsx("td",{className:"text-right text-slate-400",children:f.orderCount}),c.jsx("td",{className:"text-right",children:Ae(f.totalSpent)}),c.jsx("td",{className:"text-slate-400 text-xs",children:f.createdAt?String(f.createdAt).slice(0,10):"-"})]},f.id)),!u.length&&c.jsx("tr",{children:c.jsx("td",{colSpan:8,className:"text-center text-slate-500 py-8",children:"No members found."})})]})]})]})]})}function LAe(){const e=Gt(),{data:t}=se({queryKey:["tiers-all"],queryFn:()=>rX(!1)}),[n,r]=A.useState(null),[a,i]=A.useState(""),[s,o]=A.useState(0),[l,u]=A.useState(""),[f,d]=A.useState(""),h=async()=>{n&&(await aX(n.id,n).catch(()=>{}),r(null),e.invalidateQueries({queryKey:["tiers-all"]}))},p=async()=>{if(!a||!s)return;const m=await sX(a,s,l).catch(()=>null);d(m?`${a} points adjusted · Balance ${m.balance}P`:"Adjustment failed"),i(""),o(0),u("")};return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[c.jsx(Lf,{className:"text-brand",size:22}),c.jsx("h1",{className:"text-xl font-bold",children:"Tier & Points Management"})]}),c.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden mb-6",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[c.jsx("th",{className:"text-left p-3",children:"Tier"}),c.jsx("th",{className:"text-right",children:"Min Spend"}),c.jsx("th",{className:"text-right",children:"Min Orders"}),c.jsx("th",{className:"text-right",children:"Discount"}),c.jsx("th",{className:"text-right",children:"Earn Rate"}),c.jsx("th",{className:"text-right",children:"Free Shipping"}),c.jsx("th",{className:"text-center",children:"Priority Slot"}),c.jsx("th",{className:"text-center",children:"Edit"})]})}),c.jsxs("tbody",{children:[(t||[]).map(m=>c.jsxs("tr",{className:"border-b border-edge/50",children:[c.jsxs("td",{className:"p-3",children:[c.jsx(jr,{status:m.tierCode})," ",c.jsx("span",{className:"text-slate-400 text-xs ml-1",children:m.name})]}),c.jsx("td",{className:"text-right",children:Ae(m.minSpend12m)}),c.jsx("td",{className:"text-right text-slate-400",children:m.minOrders12m}),c.jsxs("td",{className:"text-right",children:[m.discountRate,"%"]}),c.jsxs("td",{className:"text-right",children:[m.pointEarnRate,"%"]}),c.jsx("td",{className:"text-right text-slate-400",children:m.freeShipThreshold===0?"Always":m.freeShipThreshold?Ae(m.freeShipThreshold):"None"}),c.jsx("td",{className:"text-center",children:m.prioritySlot?"✓":"–"}),c.jsx("td",{className:"text-center",children:c.jsx("button",{onClick:()=>r({...m}),className:"text-xs text-brand",children:"Edit"})})]},m.id)),!(t||[]).length&&c.jsx("tr",{children:c.jsx("td",{colSpan:8,className:"text-center text-slate-500 py-8",children:"No tier data found."})})]})]})}),n&&c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-6",children:[c.jsxs("div",{className:"text-sm font-semibold mb-3",children:["Edit Tier: ",n.name," (",n.tierCode,")"]}),c.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 text-sm",children:[c.jsx(Jh,{label:"Min Spend ($)",value:n.minSpend12m,onChange:m=>r({...n,minSpend12m:Number(m)})}),c.jsx(Jh,{label:"Min Orders",value:n.minOrders12m,onChange:m=>r({...n,minOrders12m:Number(m)})}),c.jsx(Jh,{label:"Discount (%)",value:n.discountRate,onChange:m=>r({...n,discountRate:Number(m)})}),c.jsx(Jh,{label:"Earn Rate (%)",value:n.pointEarnRate,onChange:m=>r({...n,pointEarnRate:Number(m)})})]}),c.jsxs("div",{className:"flex gap-2 mt-4",children:[c.jsx("button",{onClick:h,className:"bg-brand text-ink font-semibold px-5 py-2 rounded-lg text-sm",children:"Save"}),c.jsx("button",{onClick:()=>r(null),className:"border border-edge px-5 py-2 rounded-lg text-sm text-slate-400",children:"Cancel"})]})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[c.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold mb-3",children:[c.jsx(O3,{size:16,className:"text-brand"})," Manual Point Adjustment"]}),c.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[c.jsx("input",{value:a,onChange:m=>i(m.target.value),placeholder:"Customer ID",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),c.jsx("input",{type:"number",value:s||"",onChange:m=>o(Number(m.target.value)),placeholder:"Points (+/-)",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),c.jsx("input",{value:l,onChange:m=>u(m.target.value),placeholder:"Reason",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),c.jsx("button",{onClick:p,className:"bg-brand2 text-white rounded-lg px-3 py-2 text-sm font-semibold",children:"Adjust"})]}),f&&c.jsx("div",{className:"text-xs text-accent mt-2",children:f})]})]})}function Jh({label:e,value:t,onChange:n}){return c.jsxs("div",{children:[c.jsx("label",{className:"block text-[11px] text-slate-400 mb-1",children:e}),c.jsx("input",{value:t,onChange:r=>n(r.target.value),className:"w-full bg-panel border border-edge rounded-lg px-3 py-2"})]})}const zAe=["DISCOUNT","POINT_BONUS","GIFT","TIER_ONLY","SEASON"];function IAe(){const e=Gt(),[t,n]=A.useState(""),[r,a]=A.useState(!1),[i,s]=A.useState(null),[o,l]=A.useState({code:"",title:"",eventType:"DISCOUNT",description:"",startDate:"",endDate:"",targetTiers:"",bonusPointRate:0}),[u,f]=A.useState(""),{data:d}=se({queryKey:["admin-events",t],queryFn:()=>uX(t,"",!1)}),h=()=>e.invalidateQueries({queryKey:["admin-events"]}),p=async()=>{await fX({...o,status:"DRAFT",banners:[]}).catch(()=>{}),a(!1),h()},m=async x=>{await dX(x).catch(()=>{}),h()},g=async x=>{await hX(x).catch(()=>{}),h()},v=async x=>{await pX(x).catch(()=>{}),h()},y=async x=>{const w=await mX(x).catch(()=>null);s(w)},b=async()=>{const x=await yX(o.eventType,o.title||"Spring Season","friendly").catch(()=>null);x&&(l({...o,title:x.headline||o.title,description:x.subtext||o.description}),f(`AI copy generated (${x.source})`))};return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-5",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(If,{className:"text-brand",size:22}),c.jsx("h1",{className:"text-xl font-bold",children:"Events & Campaigns"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("select",{value:t,onChange:x=>n(x.target.value),className:"bg-card border border-edge rounded-lg px-3 py-2 text-sm",children:[c.jsx("option",{value:"",children:"All"}),["DRAFT","PUBLISHED","ENDED"].map(x=>c.jsx("option",{value:x,children:x},x))]}),c.jsxs("button",{onClick:()=>a(!r),className:"flex items-center gap-1.5 bg-brand text-ink text-sm font-semibold px-3 py-2 rounded-lg",children:[c.jsx(Jl,{size:15})," New Event"]})]})]}),r&&c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-5 space-y-3",children:[c.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[c.jsx("input",{value:o.code,onChange:x=>l({...o,code:x.target.value}),placeholder:"Code",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),c.jsx("input",{value:o.title,onChange:x=>l({...o,title:x.target.value}),placeholder:"Title",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm col-span-2"})]}),c.jsx("textarea",{value:o.description,onChange:x=>l({...o,description:x.target.value}),placeholder:"Description",rows:2,className:"w-full bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),c.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[c.jsx("select",{value:o.eventType,onChange:x=>l({...o,eventType:x.target.value}),className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm",children:zAe.map(x=>c.jsx("option",{children:x},x))}),c.jsx("input",{type:"date",value:o.startDate,onChange:x=>l({...o,startDate:x.target.value}),className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),c.jsx("input",{type:"date",value:o.endDate,onChange:x=>l({...o,endDate:x.target.value}),className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),c.jsx("input",{value:o.targetTiers,onChange:x=>l({...o,targetTiers:x.target.value}),placeholder:"Target Tiers (GOLD, VIP)",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("button",{onClick:b,className:"flex items-center gap-1.5 bg-brand2 text-white text-sm px-3 py-2 rounded-lg",children:[c.jsx(wr,{size:14})," Generate AI Copy"]}),u&&c.jsx("span",{className:"text-xs text-accent",children:u}),c.jsx("button",{onClick:p,className:"ml-auto bg-brand text-ink font-semibold text-sm px-5 py-2 rounded-lg",children:"Create"}),c.jsx("button",{onClick:()=>a(!1),className:"border border-edge text-slate-400 text-sm px-4 py-2 rounded-lg",children:"Cancel"})]})]}),i&&c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4 mb-5 flex items-center gap-6 text-sm",children:[c.jsxs("span",{className:"flex items-center gap-1.5 text-brand",children:[c.jsx(uj,{size:15})," ",i.title]}),c.jsxs("span",{className:"text-slate-400",children:["Participations ",i.participations," · Participants ",i.participants]}),c.jsxs("span",{className:"text-slate-400",children:["Linked Orders ",i.linkedOrders," · Attributed Sales ",Ae(i.attributedSales)]}),c.jsx("button",{onClick:()=>s(null),className:"ml-auto text-slate-500 text-xs",children:"Close"})]}),c.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[c.jsx("th",{className:"text-left p-3",children:"Code"}),c.jsx("th",{className:"text-left",children:"Title"}),c.jsx("th",{className:"text-left",children:"Type"}),c.jsx("th",{className:"text-left",children:"Period"}),c.jsx("th",{className:"text-left",children:"Target"}),c.jsx("th",{className:"text-center",children:"Status"}),c.jsx("th",{className:"text-center",children:"Actions"})]})}),c.jsxs("tbody",{children:[(d||[]).map(x=>c.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[c.jsx("td",{className:"p-3 font-mono text-xs text-brand",children:x.code}),c.jsx("td",{children:x.title}),c.jsx("td",{className:"text-slate-400 text-xs",children:x.eventType}),c.jsxs("td",{className:"text-slate-400 text-xs",children:[x.startDate,"~",x.endDate]}),c.jsx("td",{className:"text-slate-400 text-xs",children:x.targetTiers||"All"}),c.jsx("td",{className:"text-center",children:c.jsx(jr,{status:x.status})}),c.jsx("td",{className:"text-center",children:c.jsxs("div",{className:"inline-flex gap-1",children:[x.status==="DRAFT"&&c.jsx("button",{onClick:()=>m(x.id),className:"text-xs bg-emerald-500/15 text-emerald-400 px-2 py-1 rounded",children:"Publish"}),x.status==="PUBLISHED"&&c.jsx("button",{onClick:()=>g(x.id),className:"text-xs bg-slate-600/20 text-slate-400 px-2 py-1 rounded",children:"End"}),c.jsx("button",{onClick:()=>y(x.id),className:"text-xs bg-panel border border-edge text-slate-300 px-2 py-1 rounded",children:"Performance"}),c.jsx("button",{onClick:()=>v(x.id),className:"text-xs bg-rose-500/15 text-rose-400 px-2 py-1 rounded",children:"Delete"})]})})]},x.id)),!(d||[]).length&&c.jsx("tr",{children:c.jsx("td",{colSpan:7,className:"text-center text-slate-500 py-8",children:"No events found."})})]})]})})]})}function BAe(){const e=Gt(),{data:t}=se({queryKey:["admin-subs"],queryFn:OW}),n=t||[],r=()=>e.invalidateQueries({queryKey:["admin-subs"]}),a=async(s,o)=>{await NW(s,o).catch(()=>{}),r()},i=async s=>{window.confirm("Cancel this subscription? It cannot be resumed.")&&await a(s,"CANCELLED")};return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[c.jsx(ag,{className:"text-brand",size:22}),c.jsx("h1",{className:"text-xl font-bold",children:"Subscriptions"})]}),c.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[c.jsx("th",{className:"text-left p-3",children:"Customer"}),c.jsx("th",{className:"text-left",children:"Product"}),c.jsx("th",{className:"text-left",children:"Frequency"}),c.jsx("th",{className:"text-left",children:"Next Delivery"}),c.jsx("th",{className:"text-right",children:"Amount"}),c.jsx("th",{className:"text-center",children:"Status"}),c.jsx("th",{className:"text-center",children:"Actions"})]})}),c.jsxs("tbody",{children:[n.map(s=>c.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[c.jsx("td",{className:"p-3",children:s.owner}),c.jsx("td",{className:"text-slate-400",children:s.productName||`#${s.productId}`}),c.jsx("td",{className:"text-slate-400",children:s.frequency}),c.jsx("td",{className:"text-slate-400",children:s.nextDeliveryDate||"-"}),c.jsx("td",{className:"text-right",children:Ae(s.price)}),c.jsx("td",{className:"text-center",children:c.jsx(jr,{status:s.status})}),c.jsx("td",{className:"text-center",children:c.jsxs("div",{className:"inline-flex gap-1",children:[s.status==="ACTIVE"&&c.jsxs("button",{onClick:()=>a(s.id,"PAUSED"),className:"text-xs bg-amber-500/15 text-amber-400 px-2 py-1 rounded inline-flex items-center gap-1",children:[c.jsx(ZK,{size:12})," Pause"]}),s.status==="PAUSED"&&c.jsxs("button",{onClick:()=>a(s.id,"ACTIVE"),className:"text-xs bg-emerald-500/15 text-emerald-400 px-2 py-1 rounded inline-flex items-center gap-1",children:[c.jsx(tG,{size:12})," Resume"]}),s.status!=="CANCELLED"&&c.jsxs("button",{onClick:()=>i(s.id),className:"text-xs bg-rose-500/15 text-rose-400 px-2 py-1 rounded inline-flex items-center gap-1",children:[c.jsx(BK,{size:12})," Cancel"]}),s.status==="CANCELLED"&&c.jsx("span",{className:"text-xs text-slate-500",children:"—"})]})})]},s.id)),!n.length&&c.jsx("tr",{children:c.jsx("td",{colSpan:7,className:"text-center text-slate-500 py-8",children:"No subscriptions found."})})]})]})})]})}const UAe=["valentine","mothers_day","christmas","thanksgiving"];function FAe(){const e=Gt(),[t,n]=A.useState({holidayDate:"",name:"",blocked:!0,surgeMultiplier:1,storeId:null}),[r,a]=A.useState("valentine"),[i,s]=A.useState(null),{data:o}=se({queryKey:["admin-holidays"],queryFn:m5}),{data:l}=se({queryKey:["sch-stores"],queryFn:()=>Ao(!1)}),u=async()=>{t.holidayDate&&(await mW(t).catch(()=>{}),n({...t,holidayDate:"",name:""}),e.invalidateQueries({queryKey:["admin-holidays"]}))},f=async()=>{const h=await KW(r,14).catch(()=>null);s(h)},d=h=>{var p;return((p=l==null?void 0:l.find(m=>m.id===h))==null?void 0:p.code)||`#${h}`};return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[c.jsx(S3,{className:"text-brand",size:22}),c.jsx("h1",{className:"text-xl font-bold",children:"Schedule · Holidays · Surge"})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-5",children:[c.jsx("div",{className:"text-sm font-semibold mb-3",children:"Add Holiday / Surge"}),c.jsxs("div",{className:"grid grid-cols-5 gap-3",children:[c.jsx("input",{type:"date",value:t.holidayDate,onChange:h=>n({...t,holidayDate:h.target.value}),className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),c.jsx("input",{value:t.name,onChange:h=>n({...t,name:h.target.value}),placeholder:"Name",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),c.jsxs("label",{className:"flex items-center gap-2 text-sm text-slate-300",children:[c.jsx("input",{type:"checkbox",checked:t.blocked,onChange:h=>n({...t,blocked:h.target.checked})})," Block Delivery"]}),c.jsx("input",{type:"number",step:"0.1",value:t.surgeMultiplier,onChange:h=>n({...t,surgeMultiplier:Number(h.target.value)}),placeholder:"Surge Multiplier",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),c.jsxs("button",{onClick:u,className:"flex items-center gap-1.5 bg-brand text-ink font-semibold rounded-lg px-3 py-2 text-sm justify-center",children:[c.jsx(Jl,{size:15})," Add"]})]})]}),c.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden mb-6",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[c.jsx("th",{className:"text-left p-3",children:"Date"}),c.jsx("th",{className:"text-left",children:"Name"}),c.jsx("th",{className:"text-center",children:"Block Delivery"}),c.jsx("th",{className:"text-right",children:"Surge Multiplier"}),c.jsx("th",{className:"text-left",children:"Store"})]})}),c.jsxs("tbody",{children:[(o||[]).map(h=>c.jsxs("tr",{className:"border-b border-edge/50",children:[c.jsx("td",{className:"p-3",children:h.holidayDate}),c.jsx("td",{className:"text-slate-400",children:h.name}),c.jsx("td",{className:"text-center",children:h.blocked?c.jsx("span",{className:"text-rose-400",children:"Blocked"}):c.jsx("span",{className:"text-slate-500",children:"–"})}),c.jsx("td",{className:"text-right",children:h.surgeMultiplier>1?c.jsxs("span",{className:"text-amber-400",children:["×",h.surgeMultiplier]}):"–"}),c.jsx("td",{className:"text-slate-400 text-xs",children:h.storeId?d(h.storeId):"All"})]},h.id||h.holidayDate)),!(o||[]).length&&c.jsx("tr",{children:c.jsx("td",{colSpan:5,className:"text-center text-slate-500 py-8",children:"No holidays registered."})})]})]})}),c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[c.jsx(wr,{size:16,className:"text-brand"}),c.jsx("span",{className:"text-sm font-semibold",children:"AI Peak-Season Demand Forecast"}),c.jsx("select",{value:r,onChange:h=>a(h.target.value),className:"ml-auto bg-panel border border-edge rounded-lg px-3 py-1.5 text-sm",children:UAe.map(h=>c.jsx("option",{children:h},h))}),c.jsx("button",{onClick:f,className:"bg-brand2 text-white text-sm px-3 py-1.5 rounded-lg",children:"Run Forecast"})]}),i&&c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge",children:[c.jsx("th",{className:"text-left py-2",children:"Store"}),c.jsx("th",{className:"text-right",children:"Recent Orders"}),c.jsx("th",{className:"text-right",children:"Forecast Orders"}),c.jsx("th",{className:"text-right",children:"Multiplier"})]})}),c.jsx("tbody",{children:(i.forecast||[]).map((h,p)=>c.jsxs("tr",{className:"border-b border-edge/50",children:[c.jsx("td",{className:"py-2",children:d(h.storeId)}),c.jsx("td",{className:"text-right text-slate-400",children:h.recentOrders}),c.jsx("td",{className:"text-right text-brand",children:h.predictedOrders}),c.jsxs("td",{className:"text-right text-amber-400",children:["×",h.multiplier]})]},p))})]})]})]})}function VAe(){const[e,t]=A.useState(14),{data:n}=se({queryKey:["an-store",e],queryFn:()=>g5(e)}),{data:r}=se({queryKey:["an-trend",e],queryFn:()=>v5(e)}),{data:a}=se({queryKey:["an-top"],queryFn:()=>b5(10)}),{data:i}=se({queryKey:["an-tier"],queryFn:()=>w5(e)}),s=(n||[]).map(d=>({name:d.storeCode||d.storeName,Revenue:d.sales,Orders:d.orderCount})),o=(r||[]).map(d=>({name:(d.date||"").slice(5),Revenue:d.sales})),l=(a||[]).map(d=>({name:d.name,Sold:d.salesCount})),u=(i||[]).map(d=>({name:d.tier,Revenue:d.sales,Customers:d.customers})),f=(n||[]).reduce((d,h)=>d+(h.sales||0),0);return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-5",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(uj,{className:"text-brand",size:22}),c.jsx("h1",{className:"text-xl font-bold",children:"Revenue Analytics (BI)"})]}),c.jsx("select",{value:e,onChange:d=>t(Number(d.target.value)),className:"bg-card border border-edge rounded-lg px-3 py-2 text-sm",children:[7,14,30,90].map(d=>c.jsxs("option",{value:d,children:["Last ",d," days"]},d))})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-5",children:[c.jsx("div",{className:"text-xs text-slate-400",children:"Total Revenue (Period)"}),c.jsx("div",{className:"text-3xl font-bold",children:Ae(f)})]}),c.jsxs("div",{className:"grid lg:grid-cols-2 gap-5",children:[c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[c.jsx("h2",{className:"text-sm font-semibold mb-3",children:"Revenue Trend"}),c.jsx(za,{type:"AREA",rows:o,dataKeys:["Revenue"]})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[c.jsx("h2",{className:"text-sm font-semibold mb-3",children:"Revenue by Store"}),c.jsx(za,{type:"BAR",rows:s,dataKeys:["Revenue","Orders"]})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[c.jsx("h2",{className:"text-sm font-semibold mb-3",children:"Revenue by Tier (BI)"}),c.jsx(za,{type:"BAR",rows:u,dataKeys:["Revenue","Customers"]})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[c.jsx("h2",{className:"text-sm font-semibold mb-3",children:"Best Sellers Top 10"}),c.jsx(za,{type:"BAR",rows:l,dataKeys:["Sold"]})]})]})]})}const MP=["USER","MANAGER","ADMIN"];function HAe(){const e=Gt(),{data:t}=se({queryKey:["users"],queryFn:YW}),[n,r]=A.useState({username:"",password:"",role:"USER"}),[a,i]=A.useState(!1),s=()=>e.invalidateQueries({queryKey:["users"]}),o=async()=>{!n.username||!n.password||(await WW(n).catch(()=>{}),r({username:"",password:"",role:"USER"}),i(!1),s())},l=async(h,p)=>{await XW(h,p).catch(()=>{}),s()},u=async(h,p)=>{await QW(h,!p).catch(()=>{}),s()},f=async h=>{const p=prompt("New password");p&&(await ZW(h,p).catch(()=>{}),alert("Password updated"))},d=async h=>{confirm("Are you sure you want to delete?")&&(await JW(h).catch(()=>{}),s())};return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-5",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(L3,{className:"text-brand",size:22}),c.jsx("h1",{className:"text-xl font-bold",children:"User Management (RBAC)"})]}),c.jsxs("button",{onClick:()=>i(!a),className:"flex items-center gap-1.5 bg-brand text-ink text-sm font-semibold px-3 py-2 rounded-lg",children:[c.jsx(Jl,{size:15})," Add User"]})]}),a&&c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-5 grid grid-cols-4 gap-3",children:[c.jsx("input",{value:n.username,onChange:h=>r({...n,username:h.target.value}),placeholder:"Username",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),c.jsx("input",{type:"password",value:n.password,onChange:h=>r({...n,password:h.target.value}),placeholder:"Password",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),c.jsx("select",{value:n.role,onChange:h=>r({...n,role:h.target.value}),className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm",children:MP.map(h=>c.jsx("option",{children:h},h))}),c.jsx("button",{onClick:o,className:"bg-brand text-ink font-semibold rounded-lg px-3 py-2 text-sm",children:"Create"})]}),c.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[c.jsx("th",{className:"text-left p-3",children:"ID"}),c.jsx("th",{className:"text-left",children:"Username"}),c.jsx("th",{className:"text-left",children:"Role"}),c.jsx("th",{className:"text-center",children:"Status"}),c.jsx("th",{className:"text-center",children:"Actions"})]})}),c.jsxs("tbody",{children:[(t||[]).map(h=>c.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[c.jsx("td",{className:"p-3 text-slate-400",children:h.id}),c.jsx("td",{children:h.username}),c.jsx("td",{children:c.jsx("select",{value:h.role,onChange:p=>l(h.id,p.target.value),className:"bg-panel border border-edge rounded px-2 py-1 text-xs",children:MP.map(p=>c.jsx("option",{children:p},p))})}),c.jsx("td",{className:"text-center",children:c.jsx("button",{onClick:()=>u(h.id,h.active),className:`px-2 py-1 rounded text-xs ${h.active!==!1?"bg-emerald-500/15 text-emerald-400":"bg-slate-600/20 text-slate-400"}`,children:h.active!==!1?"Active":"Inactive"})}),c.jsx("td",{className:"text-center",children:c.jsxs("div",{className:"inline-flex gap-1",children:[c.jsx("button",{onClick:()=>f(h.id),className:"text-xs bg-panel border border-edge px-2 py-1 rounded text-slate-300",children:"Password"}),c.jsx("button",{onClick:()=>d(h.id),className:"text-xs bg-rose-500/15 text-rose-400 px-2 py-1 rounded",children:"Delete"})]})})]},h.id)),!(t||[]).length&&c.jsx("tr",{children:c.jsx("td",{colSpan:5,className:"text-center text-slate-500 py-8",children:"No users found."})})]})]})})]})}function qAe(){const[e,t]=A.useState(""),[n,r]=A.useState(""),{data:a}=se({queryKey:["audit",e,n],queryFn:()=>eX(e,n,200)});return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-5",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(k3,{className:"text-brand",size:22}),c.jsx("h1",{className:"text-xl font-bold",children:"Audit Log"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("div",{className:"flex items-center gap-2 bg-card border border-edge rounded-lg px-3 py-2",children:[c.jsx(ig,{size:14,className:"text-slate-500"}),c.jsx("input",{value:n,onChange:i=>r(i.target.value),placeholder:"Actor",className:"bg-transparent text-sm outline-none w-28"})]}),c.jsx("input",{value:e,onChange:i=>t(i.target.value),placeholder:"Filter action",className:"bg-card border border-edge rounded-lg px-3 py-2 text-sm w-32"})]})]}),c.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[c.jsx("th",{className:"text-left p-3",children:"Time"}),c.jsx("th",{className:"text-left",children:"Actor"}),c.jsx("th",{className:"text-left",children:"Action"}),c.jsx("th",{className:"text-left",children:"Target"}),c.jsx("th",{className:"text-left",children:"Details"})]})}),c.jsxs("tbody",{children:[(a||[]).map((i,s)=>c.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[c.jsx("td",{className:"p-3 text-slate-400 text-xs whitespace-nowrap",children:(i.createdAt||i.timestamp||"").slice(0,19).replace("T"," ")}),c.jsx("td",{className:"text-slate-300",children:i.actor||i.username||"-"}),c.jsx("td",{children:c.jsx("span",{className:"text-brand text-xs font-mono",children:i.action})}),c.jsx("td",{className:"text-slate-400 text-xs",children:i.target||i.resource||"-"}),c.jsx("td",{className:"text-slate-500 text-xs max-w-md truncate",children:i.detail||i.details||""})]},i.id||s)),!(a||[]).length&&c.jsx("tr",{children:c.jsx("td",{colSpan:5,className:"text-center text-slate-500 py-8",children:"No audit logs found."})})]})]})})]})}function KAe(){const e=Gt(),{data:t}=se({queryKey:["providers"],queryFn:VW}),{data:n}=se({queryKey:["settings"],queryFn:tX}),[r,a]=A.useState({}),i=async o=>{const l=r[o];l!==void 0&&(await nX(o,l).catch(()=>{}),e.invalidateQueries({queryKey:["settings"]}))},s=Array.isArray(t)?t:Object.entries(t||{}).map(([o,l])=>({adapter:o,provider:typeof l=="string"?l:l==null?void 0:l.provider,active:(l==null?void 0:l.active)??!0}));return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[c.jsx($3,{className:"text-brand",size:22}),c.jsx("h1",{className:"text-xl font-bold",children:"Gateways · Settings"})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-5",children:[c.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold mb-3",children:[c.jsx(nG,{size:16,className:"text-brand"})," Gateway Adapters (provider)"]}),c.jsxs("p",{className:"text-xs text-slate-500 mb-3 flex items-center gap-1.5",children:[c.jsx(hj,{size:13,className:"text-accent"})," API keys are stored only in environment variables and are never shown on screen. (Default mock = 0 external calls)"]}),c.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-3",children:[s.map((o,l)=>c.jsxs("div",{className:"bg-panel border border-edge rounded-lg p-3 flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-slate-400 uppercase",children:o.adapter}),c.jsx("div",{className:"font-semibold",children:o.provider||"mock"})]}),c.jsx("span",{className:`text-xs px-2 py-1 rounded ${o.provider&&o.provider!=="mock"?"bg-emerald-500/15 text-emerald-400":"bg-slate-600/20 text-slate-400"}`,children:o.provider&&o.provider!=="mock"?"Live":"mock"})]},l)),!s.length&&c.jsx("div",{className:"text-slate-500 text-sm",children:"Unable to load provider information."})]})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[c.jsx("div",{className:"text-sm font-semibold mb-3",children:"System Settings"}),c.jsxs("div",{className:"space-y-2",children:[(n||[]).map(o=>{const l=o.key||o.settingKey,u=r[l]??o.value??o.settingValue??"";return c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("span",{className:"text-sm text-slate-400 w-56 font-mono text-xs",children:l}),c.jsx("input",{value:u,onChange:f=>a({...r,[l]:f.target.value}),className:"flex-1 bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),c.jsx("button",{onClick:()=>i(l),className:"bg-brand2 text-white text-xs px-3 py-2 rounded-lg",children:"Save"})]},l)}),!(n||[]).length&&c.jsx("div",{className:"text-slate-500 text-sm py-4",children:"No settings available."})]})]})]})}const gz="https://itsm.zioinfo.co.kr",Zb=e=>e==null?void 0:e.replace(/https?:\/\/zioinfo\.co\.kr:8443/g,gz);function GAe(){const[e,t]=A.useState(null),[n,r]=A.useState(!0),[a,i]=A.useState(""),[s,o]=A.useState(!1),l=()=>{r(!0),i(""),fetch(`${gz}/api/app/public-latest`).then(f=>f.json()).then(f=>t({...f,qr_url:Zb(f.qr_url),landing_url:Zb(f.landing_url),download_url:Zb(f.download_url)})).catch(()=>i("Unable to connect to the central app repository (ITSM).")).finally(()=>r(!1))};A.useEffect(()=>{l()},[]);const u=async()=>{if(e!=null&&e.landing_url)try{await navigator.clipboard.writeText(e.landing_url),o(!0),setTimeout(()=>o(!1),2e3)}catch{}};return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-5",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(wl,{className:"text-brand",size:22}),c.jsx("h1",{className:"text-xl font-bold",children:"Admin App Install"})]}),c.jsxs("button",{onClick:l,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm text-slate-300 hover:text-brand",children:[c.jsx(dj,{size:15})," Refresh"]})]}),c.jsxs("p",{className:"text-sm text-slate-400 mb-6",children:["Mobile app for store and corporate admins. Scan the QR code to open the install page. App uploads and version management are centralized in ",c.jsx("span",{className:"text-brand",children:"GUARDiA Manager"})," (read-only)."]}),n&&c.jsx("div",{className:"text-slate-400 text-sm",children:"Loading…"}),a&&c.jsx("div",{className:"bg-card border border-edge rounded-xl p-6 text-rose-400 text-sm",children:a}),!n&&!a&&e&&!e.has_version&&c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-8 text-center text-slate-400",children:[c.jsx(wl,{size:36,className:"mx-auto mb-3 text-slate-600"}),"No app version has been registered yet.",c.jsx("br",{}),c.jsx("span",{className:"text-xs",children:"Once an APK is uploaded in GUARDiA Manager, the QR code will appear here."})]}),!n&&!a&&(e==null?void 0:e.has_version)&&c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-6 grid md:grid-cols-[200px_1fr] gap-6 items-start",children:[c.jsx("div",{className:"bg-white rounded-xl p-3 flex items-center justify-center",children:e.qr_url?c.jsx("img",{src:e.qr_url,alt:"Admin App QR",className:"w-44 h-44"}):c.jsx(wl,{size:64,className:"text-slate-400"})}),c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx("span",{className:"text-lg font-bold",children:e.app_name||"GUARDiA Mall Admin"}),c.jsxs("span",{className:"px-2 py-0.5 rounded-md bg-brand2 text-white text-xs font-semibold",children:["v",e.version]})]}),c.jsxs("div",{className:"text-xs text-slate-400 mb-4",children:[e.platform," ",e.file_size_mb?`· ${e.file_size_mb}MB`:"",e.download_count!=null&&` · ${e.download_count} downloads`]}),e.release_notes&&c.jsxs("div",{className:"mb-4",children:[c.jsx("div",{className:"text-[11px] font-semibold text-slate-500 uppercase tracking-wider mb-1",children:"Release Notes"}),c.jsx("div",{className:"text-sm text-slate-300 whitespace-pre-line bg-ink border border-edge rounded-lg p-3 max-h-32 overflow-auto",children:e.release_notes})]}),c.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.landing_url&&c.jsxs("a",{href:e.landing_url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-brand text-ink text-sm font-semibold",children:[c.jsx(T3,{size:15})," Install Page"]}),e.download_url&&c.jsxs("a",{href:e.download_url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm text-slate-300 hover:text-brand",children:[c.jsx(E3,{size:15})," Download APK"]}),c.jsxs("button",{onClick:u,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm text-slate-300 hover:text-brand",children:[s?c.jsx(j3,{size:15,className:"text-accent"}):c.jsx(N3,{size:15}),s?"Copied":"Copy Link"]})]})]})]})]})}const vz=A.createContext({theme:"dark",toggle:()=>{},setTheme:()=>{}}),RP="mall_uiws_theme";function YAe(e){document.documentElement.setAttribute("data-uiws-theme",e)}function WAe({children:e}){const[t,n]=A.useState(()=>localStorage.getItem(RP)==="light"?"light":"dark");A.useEffect(()=>{YAe(t),localStorage.setItem(RP,t)},[t]);const r=i=>n(i),a=()=>n(i=>i==="dark"?"light":"dark");return c.jsx(vz.Provider,{value:{theme:t,toggle:a,setTheme:r},children:e})}function XAe(){return A.useContext(vz)}function QAe(){const{theme:e,toggle:t}=XAe();return c.jsxs("button",{onClick:t,title:"테마 전환",style:{display:"flex",alignItems:"center",gap:8,padding:"10px 12px",background:"none",border:"1px solid var(--uiws-border, #2d3448)",borderRadius:8,color:"var(--uiws-text-muted, #8892b0)",cursor:"pointer",fontSize:13,width:"100%"},children:[e==="dark"?c.jsx(sG,{size:16}):c.jsx(QK,{size:16}),e==="dark"?"라이트 모드":"다크 모드"]})}function ep({children:e}){return c.jsx(WAe,{children:c.jsxs("div",{className:"uiws-scope",style:{minHeight:"100%",background:"var(--uiws-bg)",borderRadius:12,padding:20},children:[c.jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:8},children:c.jsx("div",{style:{width:140},children:c.jsx(QAe,{})})}),e]})})}const PA={background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,boxShadow:"var(--uiws-shadow)"};function iv({title:e,subtitle:t,actions:n}){return c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-end",marginBottom:20},children:[c.jsxs("div",{children:[c.jsx("h1",{style:{fontSize:22,fontWeight:700,color:"var(--uiws-text)"},children:e}),t&&c.jsx("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginTop:4},children:t})]}),c.jsx("div",{style:{display:"flex",gap:8},children:n})]})}function bz({children:e,style:t}){return c.jsx("div",{style:{...PA,padding:18,...t},children:e})}function Fe({children:e,onClick:t,variant:n="primary",type:r="button",disabled:a}){const i={primary:{background:"var(--uiws-primary)",color:"var(--uiws-primary-contrast)",border:"none"},ghost:{background:"transparent",color:"var(--uiws-text-muted)",border:"1px solid var(--uiws-border)"},danger:{background:"var(--uiws-danger)",color:"#fff",border:"none"}};return c.jsx("button",{type:r,onClick:t,disabled:a,style:{padding:"9px 16px",borderRadius:8,fontSize:13,fontWeight:600,cursor:a?"not-allowed":"pointer",opacity:a?.5:1,...i[n]},children:e})}function fn({value:e,onChange:t,placeholder:n,type:r="text",style:a}){return c.jsx("input",{type:r,value:e,placeholder:n,onChange:i=>t(i.target.value),style:{padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)",...a}})}function zr({label:e,children:t}){return c.jsxs("label",{style:{display:"block",marginBottom:12},children:[c.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:e}),t]})}function MA({children:e}){return c.jsx(bz,{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginBottom:16},children:e})}function xz({columns:e,rows:t,rowKey:n,onRowClick:r,empty:a="데이터가 없습니다."}){return c.jsx("div",{style:{...PA,overflow:"hidden"},children:c.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[c.jsx("thead",{children:c.jsx("tr",{style:{background:"var(--uiws-surface-2)"},children:e.map(i=>c.jsx("th",{style:{textAlign:i.align??"left",padding:"11px 14px",color:"var(--uiws-text-muted)",fontWeight:600,fontSize:12,borderBottom:"1px solid var(--uiws-border)",width:i.width},children:i.header},i.key))})}),c.jsx("tbody",{children:t.length===0?c.jsx("tr",{children:c.jsx("td",{colSpan:e.length,style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:a})}):t.map(i=>c.jsx("tr",{onClick:()=>r==null?void 0:r(i),style:{cursor:r?"pointer":"default",borderBottom:"1px solid var(--uiws-border)"},onMouseEnter:s=>s.currentTarget.style.background="var(--uiws-row-hover)",onMouseLeave:s=>s.currentTarget.style.background="transparent",children:e.map(s=>c.jsx("td",{style:{padding:"11px 14px",textAlign:s.align??"left"},children:s.render?s.render(i):String(i[s.key]??"")},s.key))},n(i)))})]})})}function Sz({page:e,totalPages:t,onChange:n}){return t<=1?null:c.jsxs("div",{style:{display:"flex",gap:6,justifyContent:"center",marginTop:16},children:[c.jsx(Fe,{variant:"ghost",disabled:e<=0,onClick:()=>n(e-1),children:"이전"}),c.jsxs("span",{style:{alignSelf:"center",fontSize:13,color:"var(--uiws-text-muted)"},children:[e+1," / ",t]}),c.jsx(Fe,{variant:"ghost",disabled:e>=t-1,onClick:()=>n(e+1),children:"다음"})]})}function wz({yn:e,yes:t="읽음",no:n="안읽음"}){const r=e==="Y";return c.jsx("span",{style:{fontSize:11,fontWeight:600,padding:"2px 9px",borderRadius:999,color:r?"var(--uiws-success)":"var(--uiws-text-muted)",background:r?"rgba(46,204,113,0.12)":"var(--uiws-surface-2)",border:"1px solid var(--uiws-border)"},children:r?t:n})}function ru({title:e,onClose:t,children:n,footer:r}){return c.jsx("div",{onClick:t,style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},children:c.jsxs("div",{onClick:a=>a.stopPropagation(),style:{...PA,width:"min(560px, 92vw)",maxHeight:"88vh",overflow:"auto",padding:22},children:[c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[c.jsx("h2",{style:{fontSize:17,fontWeight:700,color:"var(--uiws-text)"},children:e}),c.jsx("button",{onClick:t,style:{background:"none",border:"none",color:"var(--uiws-text-muted)",fontSize:20,cursor:"pointer"},children:"×"})]}),c.jsx("div",{children:n}),r&&c.jsx("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",marginTop:18},children:r})]})})}function sv({label:e="불러오는 중..."}){return c.jsx("div",{style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)",fontSize:13},children:e})}const DP={ONGOING:"진행중",DONE:"종료"};function ZAe(){const[e,t]=A.useState([]),[n,r]=A.useState(0),[a,i]=A.useState(0),[s,o]=A.useState([]),[l,u]=A.useState(""),[f,d]=A.useState(""),[h,p]=A.useState(!1),[m,g]=A.useState(!1),[v,y]=A.useState(null),b=async()=>{p(!0);try{const j=(await xQ({page:n,size:20,progressCd:l||void 0})).data.data;t(j.content??[]),i(j.totalPages??0);const O=await SQ({});o(O.data.data??[])}finally{p(!1)}};A.useEffect(()=>{b()},[n,l]);const x=[{key:"workDate",header:"근무일자",width:120},{key:"title",header:"제목"},{key:"writerNm",header:"작성자",width:120},{key:"progressCd",header:"진행",width:90,render:S=>DP[S.progressCd]??S.progressCd},{key:"commentCount",header:"댓글",width:70,align:"center"}],w=async S=>{const j=await jQ(S.worklogId);y(j.data.data)};return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(iv,{title:"업무일지",subtitle:"UIWS 이식 · 업무일지 작성/조회/진행관리",actions:c.jsx(Fe,{onClick:()=>g(!0),children:"+ 업무일지 작성"})}),c.jsx("div",{style:{display:"flex",gap:10,marginBottom:16,flexWrap:"wrap"},children:s.map(S=>c.jsxs("div",{onClick:()=>{u(l===S.progressCd?"":S.progressCd),r(0)},style:{cursor:"pointer",padding:"12px 18px",borderRadius:10,minWidth:130,background:"var(--uiws-surface)",border:`1px solid ${l===S.progressCd?"var(--uiws-primary)":"var(--uiws-border)"}`},children:[c.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)"},children:S.progressNm}),c.jsx("div",{style:{fontSize:24,fontWeight:700,color:"var(--uiws-primary)"},children:S.count})]},S.progressCd))}),c.jsxs(MA,{children:[c.jsx(fn,{value:f,onChange:d,placeholder:"제목 검색",style:{minWidth:220}}),c.jsx(Fe,{variant:"ghost",onClick:()=>{r(0),b()},children:"검색"}),l&&c.jsxs(Fe,{variant:"ghost",onClick:()=>u(""),children:["필터 해제: ",DP[l]??l]})]}),h?c.jsx(sv,{}):c.jsxs(c.Fragment,{children:[c.jsx(xz,{columns:x,rows:e,rowKey:S=>S.worklogId,onRowClick:w,empty:"업무일지가 없습니다."}),c.jsx(Sz,{page:n,totalPages:a,onChange:r})]}),m&&c.jsx(JAe,{onClose:()=>g(!1),onSaved:()=>{g(!1),b()}}),v&&c.jsx(e2e,{detail:v,onClose:()=>y(null),onChanged:()=>{y(null),b()}})]})}function JAe({onClose:e,onSaved:t}){const[n,r]=A.useState(""),[a,i]=A.useState(localStorage.getItem("erp_user")||"admin"),[s,o]=A.useState(new Date().toISOString().slice(0,10)),[l,u]=A.useState("NORMAL"),[f,d]=A.useState(""),h=async()=>{var p,m;d("");try{await wQ({title:n,writerId:a,workDate:s,workStatusCd:l,progressCd:"ONGOING",details:[]}),t()}catch(g){d(((m=(p=g==null?void 0:g.response)==null?void 0:p.data)==null?void 0:m.message)||"저장 실패")}};return c.jsxs(ru,{title:"업무일지 작성",onClose:e,footer:c.jsxs(c.Fragment,{children:[c.jsx(Fe,{variant:"ghost",onClick:e,children:"취소"}),c.jsx(Fe,{onClick:h,children:"저장"})]}),children:[c.jsx(zr,{label:"제목",children:c.jsx(fn,{value:n,onChange:r,style:{width:"100%"}})}),c.jsx(zr,{label:"작성자 ID",children:c.jsx(fn,{value:a,onChange:i,style:{width:"100%"}})}),c.jsx(zr,{label:"근무일자",children:c.jsx(fn,{type:"date",value:s,onChange:o,style:{width:"100%"}})}),c.jsx(zr,{label:"근무상태 코드",children:c.jsx(fn,{value:l,onChange:u,style:{width:"100%"}})}),f&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:f})]})}function e2e({detail:e,onClose:t,onChanged:n}){var u;const[r,a]=A.useState(""),[i,s]=A.useState(""),o=async()=>{await AQ(e.worklogId),n()},l=async()=>{var f,d;s("");try{await OQ(e.worklogId,r),a(""),n()}catch(h){s(((d=(f=h==null?void 0:h.response)==null?void 0:f.data)==null?void 0:d.message)||"댓글 등록 실패")}};return c.jsxs(ru,{title:e.title,onClose:t,footer:c.jsxs(c.Fragment,{children:[c.jsx(Fe,{variant:"danger",onClick:o,children:"삭제"}),c.jsx(Fe,{variant:"ghost",onClick:t,children:"닫기"})]}),children:[c.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:12},children:[e.writerNm," · ",e.workDate," · ",e.progressCd]}),c.jsxs("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:["시간대별 상세 ",((u=e.details)==null?void 0:u.length)??0,"건"]}),c.jsxs("div",{style:{marginTop:14},children:[c.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:8},children:"댓글"}),(e.comments??[]).map(f=>c.jsxs("div",{style:{padding:"8px 10px",borderRadius:8,background:"var(--uiws-surface-2)",marginBottom:6,fontSize:13},children:[c.jsx("b",{children:f.writerNm})," · ",c.jsx("span",{style:{color:"var(--uiws-text-muted)"},children:f.createdAt}),c.jsx("br",{}),f.cmtContent]},f.cmtId)),c.jsxs("div",{style:{display:"flex",gap:8,marginTop:8},children:[c.jsx(fn,{value:r,onChange:a,placeholder:"댓글 입력(관리자/매니저)",style:{flex:1}}),c.jsx(Fe,{onClick:l,children:"등록"})]}),i&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:12,marginTop:6},children:i})]})]})}const t2e=["일","월","화","수","목","금","토"];function n2e(){const[e,t]=A.useState(new Date),[n,r]=A.useState("PERSONAL"),[a,i]=A.useState([]),[s,o]=A.useState(!1),[l,u]=A.useState(null),[f,d]=A.useState(null),h=`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}`,p=async()=>{o(!0);try{const w=await yQ({type:n,view:"month",baseDate:`${h}-01`});i(w.data.data??[])}finally{o(!1)}};A.useEffect(()=>{p()},[h,n]);const g=new Date(e.getFullYear(),e.getMonth(),1).getDay(),v=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),y=[...Array(g).fill(null),...Array.from({length:v},(w,S)=>S+1)],b=w=>{const S=`${h}-${String(w).padStart(2,"0")}`;return a.filter(j=>(j.startDt??"").slice(0,10)<=S&&S<=(j.endDt??"").slice(0,10))},x=w=>t(new Date(e.getFullYear(),e.getMonth()+w,1));return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(iv,{title:"일정",subtitle:"UIWS 이식 · 개인/부서 일정 달력",actions:c.jsx(Fe,{onClick:()=>u(`${h}-01`),children:"+ 일정 등록"})}),c.jsxs(bz,{style:{display:"flex",gap:10,alignItems:"center",marginBottom:16},children:[c.jsx(Fe,{variant:"ghost",onClick:()=>x(-1),children:"‹ 이전"}),c.jsx("div",{style:{fontWeight:700,minWidth:130,textAlign:"center",color:"var(--uiws-text)"},children:h}),c.jsx(Fe,{variant:"ghost",onClick:()=>x(1),children:"다음 ›"}),c.jsx("div",{style:{flex:1}}),c.jsx(Fe,{variant:n==="PERSONAL"?"primary":"ghost",onClick:()=>r("PERSONAL"),children:"개인"}),c.jsx(Fe,{variant:n==="DEPT"?"primary":"ghost",onClick:()=>r("DEPT"),children:"부서"})]}),s?c.jsx(sv,{}):c.jsx("div",{style:{background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,overflow:"hidden"},children:c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(7,1fr)"},children:[t2e.map((w,S)=>c.jsx("div",{style:{padding:"10px 0",textAlign:"center",fontSize:12,fontWeight:600,color:S===0?"var(--uiws-danger)":"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)"},children:w},w)),y.map((w,S)=>c.jsxs("div",{onClick:()=>w&&u(`${h}-${String(w).padStart(2,"0")}`),style:{minHeight:96,padding:6,borderRight:"1px solid var(--uiws-border)",borderBottom:"1px solid var(--uiws-border)",cursor:w?"pointer":"default"},children:[w&&c.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:4},children:w}),w&&b(w).slice(0,3).map(j=>c.jsx("div",{onClick:O=>{O.stopPropagation(),vQ(j.scheduleId).then(N=>d(N.data.data))},style:{fontSize:11,padding:"2px 6px",borderRadius:6,marginBottom:3,background:"var(--uiws-primary-soft)",color:"var(--uiws-primary)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:j.title},j.scheduleId))]},S))]})}),l&&c.jsx(r2e,{date:l,type:n,onClose:()=>u(null),onSaved:()=>{u(null),p()}}),f&&c.jsx(a2e,{detail:f,onClose:()=>d(null),onDeleted:()=>{d(null),p()}})]})}function r2e({date:e,type:t,onClose:n,onSaved:r}){const[a,i]=A.useState(""),[s,o]=A.useState(`${e}T09:00:00`),[l,u]=A.useState(`${e}T18:00:00`),[f,d]=A.useState(""),[h,p]=A.useState(""),m=async()=>{var g,v;p("");try{await gQ({scheType:t,title:a,startDt:s,endDt:l,content:f,attachmentIds:[]}),r()}catch(y){p(((v=(g=y==null?void 0:y.response)==null?void 0:g.data)==null?void 0:v.message)||"저장 실패")}};return c.jsxs(ru,{title:"일정 등록",onClose:n,footer:c.jsxs(c.Fragment,{children:[c.jsx(Fe,{variant:"ghost",onClick:n,children:"취소"}),c.jsx(Fe,{onClick:m,children:"저장"})]}),children:[c.jsx(zr,{label:"제목",children:c.jsx(fn,{value:a,onChange:i,style:{width:"100%"}})}),c.jsx(zr,{label:"시작(yyyy-MM-ddTHH:mm:ss)",children:c.jsx(fn,{value:s,onChange:o,style:{width:"100%"}})}),c.jsx(zr,{label:"종료",children:c.jsx(fn,{value:l,onChange:u,style:{width:"100%"}})}),c.jsx(zr,{label:"내용",children:c.jsx(fn,{value:f,onChange:d,style:{width:"100%"}})}),h&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:h})]})}function a2e({detail:e,onClose:t,onDeleted:n}){const r=async()=>{await bQ(e.scheduleId),n()};return c.jsxs(ru,{title:e.title,onClose:t,footer:c.jsxs(c.Fragment,{children:[c.jsx(Fe,{variant:"danger",onClick:r,children:"삭제"}),c.jsx(Fe,{variant:"ghost",onClick:t,children:"닫기"})]}),children:[c.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:8},children:[e.scheType," · ",e.startDt," ~ ",e.endDt]}),c.jsx("div",{style:{fontSize:14,color:"var(--uiws-text)"},children:e.content||"내용 없음"})]})}function i2e(){const[e,t]=A.useState("received"),[n,r]=A.useState([]),[a,i]=A.useState(0),[s,o]=A.useState(0),[l,u]=A.useState(""),[f,d]=A.useState(!1),[h,p]=A.useState(!1),[m,g]=A.useState(null),v=async()=>{d(!0);try{const j=(await(e==="received"?pQ:dQ)({page:a,size:20,titleKeyword:l||void 0})).data.data;r(j.content??[]),o(j.totalPages??0)}finally{d(!1)}};A.useEffect(()=>{v()},[e,a]);const y=[{key:"title",header:"제목"},{key:"senderNm",header:"보낸사람",width:130},{key:"sentAt",header:"받은시각",width:170},{key:"readYn",header:"상태",width:90,render:w=>c.jsx(wz,{yn:w.readYn})}],b=[{key:"title",header:"제목"},{key:"receiverSummary",header:"받는사람",width:160},{key:"open",header:"개봉",width:100,align:"center",render:w=>`${w.openCount}/${w.totalCount}`},{key:"sentAt",header:"보낸시각",width:170}],x=async w=>{const S=e==="received"?await mQ(w.messageId):await hQ(w.messageId);g({...S.data.data,_tab:e}),e==="received"&&v()};return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(iv,{title:"쪽지",subtitle:"UIWS 이식 · 사내 쪽지 송수신",actions:c.jsx(Fe,{onClick:()=>p(!0),children:"+ 쪽지 보내기"})}),c.jsxs(MA,{children:[c.jsx(Fe,{variant:e==="received"?"primary":"ghost",onClick:()=>{t("received"),i(0)},children:"받은쪽지함"}),c.jsx(Fe,{variant:e==="sent"?"primary":"ghost",onClick:()=>{t("sent"),i(0)},children:"보낸쪽지함"}),c.jsx("div",{style:{flex:1}}),c.jsx(fn,{value:l,onChange:u,placeholder:"제목 검색",style:{minWidth:200}}),c.jsx(Fe,{variant:"ghost",onClick:()=>{i(0),v()},children:"검색"})]}),f?c.jsx(sv,{}):c.jsxs(c.Fragment,{children:[c.jsx(xz,{columns:e==="received"?y:b,rows:n,rowKey:w=>w.messageId,onRowClick:x,empty:"쪽지가 없습니다."}),c.jsx(Sz,{page:a,totalPages:s,onChange:i})]}),h&&c.jsx(s2e,{onClose:()=>p(!1),onSent:()=>{p(!1),v()}}),m&&c.jsx(o2e,{detail:m,onClose:()=>g(null)})]})}function s2e({onClose:e,onSent:t}){const[n,r]=A.useState(""),[a,i]=A.useState(""),[s,o]=A.useState(""),[l,u]=A.useState(""),f=async()=>{var d,h;u("");try{await fQ({title:a,content:s,receivers:[{receiverId:n,rcvType:"RECV"}]}),t()}catch(p){u(((h=(d=p==null?void 0:p.response)==null?void 0:d.data)==null?void 0:h.message)||"전송 실패")}};return c.jsxs(ru,{title:"쪽지 보내기",onClose:e,footer:c.jsxs(c.Fragment,{children:[c.jsx(Fe,{variant:"ghost",onClick:e,children:"취소"}),c.jsx(Fe,{onClick:f,children:"보내기"})]}),children:[c.jsx(zr,{label:"받는사람 ID",children:c.jsx(fn,{value:n,onChange:r,style:{width:"100%"}})}),c.jsx(zr,{label:"제목",children:c.jsx(fn,{value:a,onChange:i,style:{width:"100%"}})}),c.jsx(zr,{label:"내용",children:c.jsx(fn,{value:s,onChange:o,style:{width:"100%"}})}),l&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:l})]})}function o2e({detail:e,onClose:t}){return c.jsxs(ru,{title:e.title,onClose:t,footer:c.jsx(Fe,{variant:"ghost",onClick:t,children:"닫기"}),children:[c.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:10},children:[e._tab==="received"?`보낸사람: ${e.senderNm}`:`개봉 ${e.openCount}/${e.totalCount}`," · ",e.sentAt]}),c.jsx("div",{style:{fontSize:14,color:"var(--uiws-text)",whiteSpace:"pre-wrap"},children:e.content}),e._tab==="sent"&&e.receivers&&c.jsxs("div",{style:{marginTop:14},children:[c.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:"수신자 개봉현황"}),e.receivers.map((n,r)=>c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:13,padding:"4px 0"},children:[c.jsxs("span",{children:[n.receiverNm," (",n.rcvType,")"]}),c.jsx(wz,{yn:n.readYn})]},r))]})]})}function l2e(){const[e,t]=A.useState("personal"),[n,r]=A.useState(null),[a,i]=A.useState(!1),s=new Date().toISOString().slice(0,10),o=new Date(Date.now()-6*864e5).toISOString().slice(0,10),[l,u]=A.useState(o),[f,d]=A.useState(s),h=async()=>{i(!0);try{const g=await(e==="personal"?NQ:EQ)({fromDate:l,toDate:f});r(g.data.data)}finally{i(!1)}};A.useEffect(()=>{h()},[e]);const p=n?[...n.fixedColumns,...n.dynamicColumns]:[];return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(iv,{title:"업무통계",subtitle:"UIWS 이식 · 근무현황 동적 피벗"}),c.jsxs(MA,{children:[c.jsx(Fe,{variant:e==="personal"?"primary":"ghost",onClick:()=>t("personal"),children:"개인별 근무현황"}),c.jsx(Fe,{variant:e==="company"?"primary":"ghost",onClick:()=>t("company"),children:"업체별 근무현황"}),c.jsx("div",{style:{flex:1}}),c.jsx(fn,{type:"date",value:l,onChange:u}),c.jsx("span",{style:{color:"var(--uiws-text-muted)"},children:"~"}),c.jsx(fn,{type:"date",value:f,onChange:d}),c.jsx(Fe,{variant:"ghost",onClick:h,children:"조회"})]}),a?c.jsx(sv,{}):!n||n.rows.length===0?c.jsx("div",{style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:"집계 데이터가 없습니다."}):c.jsx("div",{style:{background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,overflow:"auto"},children:c.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[c.jsx("thead",{children:c.jsx("tr",{style:{background:"var(--uiws-surface-2)"},children:p.map(m=>c.jsx("th",{style:{padding:"11px 14px",textAlign:"left",fontSize:12,fontWeight:600,color:"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)",whiteSpace:"nowrap"},children:m.label},m.key))})}),c.jsx("tbody",{children:n.rows.map((m,g)=>c.jsx("tr",{style:{borderBottom:"1px solid var(--uiws-border)"},children:p.map(v=>c.jsx("td",{style:{padding:"10px 14px"},children:String(m[v.key]??"")},v.key))},g))})]})})]})}const c2e=new QB({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1,staleTime:3e4}}});function u2e(){return c.jsx(ZB,{client:c2e,children:c.jsx(V7,{children:c.jsx(D7,{children:c.jsxs(c7,{children:[c.jsx(ve,{path:"/",element:c.jsx(xX,{})}),c.jsx(ve,{path:"/account",element:c.jsx(sQ,{})}),c.jsxs(ve,{element:c.jsx(zX,{}),children:[c.jsx(ve,{path:"/home",element:c.jsx(FX,{})}),c.jsx(ve,{path:"/category",element:c.jsx(HX,{})}),c.jsx(ve,{path:"/search",element:c.jsx(qX,{})}),c.jsx(ve,{path:"/product/:id",element:c.jsx(KX,{})}),c.jsx(ve,{path:"/cart",element:c.jsx(GX,{})}),c.jsx(ve,{path:"/checkout",element:c.jsx(WX,{})}),c.jsx(ve,{path:"/subscription",element:c.jsx(ZX,{})}),c.jsx(ve,{path:"/daily-standard",element:c.jsx(JX,{})}),c.jsx(ve,{path:"/events",element:c.jsx(tQ,{})}),c.jsx(ve,{path:"/wishlist",element:c.jsx(nQ,{})}),c.jsx(ve,{path:"/mypage",element:c.jsx(rQ,{})}),c.jsx(ve,{path:"/orders",element:c.jsx(aQ,{})}),c.jsx(ve,{path:"/review/:productId",element:c.jsx(iQ,{})}),c.jsx(ve,{path:"/cs",element:c.jsx(lQ,{})}),c.jsx(ve,{path:"/app",element:c.jsx(cQ,{})})]}),c.jsx(ve,{path:"/admin/login",element:c.jsx(TQ,{})}),c.jsxs(ve,{path:"/admin",element:c.jsx(MQ,{}),children:[c.jsx(ve,{index:!0,element:c.jsx(om,{to:"/admin/dashboard",replace:!0})}),c.jsx(ve,{path:"dashboard",element:c.jsx(NAe,{})}),c.jsx(ve,{path:"stores",element:c.jsx(EAe,{})}),c.jsx(ve,{path:"products",element:c.jsx(PAe,{})}),c.jsx(ve,{path:"inventory",element:c.jsx(MAe,{})}),c.jsx(ve,{path:"orders",element:c.jsx(RAe,{})}),c.jsx(ve,{path:"transfers",element:c.jsx(DAe,{})}),c.jsx(ve,{path:"members",element:c.jsx($Ae,{})}),c.jsx(ve,{path:"loyalty",element:c.jsx(LAe,{})}),c.jsx(ve,{path:"events",element:c.jsx(IAe,{})}),c.jsx(ve,{path:"subscriptions",element:c.jsx(BAe,{})}),c.jsx(ve,{path:"schedule",element:c.jsx(FAe,{})}),c.jsx(ve,{path:"analytics",element:c.jsx(VAe,{})}),c.jsx(ve,{path:"users",element:c.jsx(HAe,{})}),c.jsx(ve,{path:"audit",element:c.jsx(qAe,{})}),c.jsx(ve,{path:"settings",element:c.jsx(KAe,{})}),c.jsx(ve,{path:"app",element:c.jsx(GAe,{})}),c.jsx(ve,{path:"uiws/worklog",element:c.jsx(ep,{children:c.jsx(ZAe,{})})}),c.jsx(ve,{path:"uiws/schedule",element:c.jsx(ep,{children:c.jsx(n2e,{})})}),c.jsx(ve,{path:"uiws/message",element:c.jsx(ep,{children:c.jsx(i2e,{})})}),c.jsx(ve,{path:"uiws/stats",element:c.jsx(ep,{children:c.jsx(l2e,{})})})]}),c.jsx(ve,{path:"*",element:c.jsx(om,{to:"/",replace:!0})})]})})})})}const{slice:f2e,forEach:d2e}=[];function h2e(e){return d2e.call(f2e.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function p2e(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const kP=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,m2e=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},a=encodeURIComponent(t);let i=`${e}=${a}`;if(r.maxAge>0){const s=r.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(s)}`}if(r.domain){if(!kP.test(r.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${r.domain}`}if(r.path){if(!kP.test(r.path))throw new TypeError("option path is invalid");i+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(i+="; Partitioned"),i},$P={create(e,t,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+n*60*1e3)),r&&(a.domain=r),document.cookie=m2e(e,t,a)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let a=n[r];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(t)===0)return a.substring(t.length,a.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var y2e={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return $P.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:a,cookieOptions:i}=t;n&&typeof document<"u"&&$P.create(n,e,r,a,i)}},g2e={name:"querystring",lookup(e){var r;let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:a}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(a=window.location.hash.substring(window.location.hash.indexOf("?")));const s=a.substring(1).split("&");for(let o=0;o<s.length;o++){const l=s[o].indexOf("=");l>0&&s[o].substring(0,l)===t&&(n=s[o].substring(l+1))}}return n}},v2e={name:"hash",lookup(e){var a;let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:i}=window.location;if(i&&i.length>2){const s=i.substring(1);if(t){const o=s.split("&");for(let l=0;l<o.length;l++){const u=o[l].indexOf("=");u>0&&o[l].substring(0,u)===t&&(r=o[l].substring(u+1))}}if(r)return r;if(!r&&n>-1){const o=i.match(/\/([a-zA-Z-]*)/g);return Array.isArray(o)?(a=o[typeof n=="number"?n:0])==null?void 0:a.replace("/",""):void 0}}}return r}};let Uo=null;const LP=()=>{if(Uo!==null)return Uo;try{if(Uo=typeof window<"u"&&window.localStorage!==null,!Uo)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Uo=!1}return Uo};var b2e={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&LP())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&LP()&&window.localStorage.setItem(n,e)}};let Fo=null;const zP=()=>{if(Fo!==null)return Fo;try{if(Fo=typeof window<"u"&&window.sessionStorage!==null,!Fo)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Fo=!1}return Fo};var x2e={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&zP())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&zP()&&window.sessionStorage.setItem(n,e)}},S2e={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:a}=navigator;if(n)for(let i=0;i<n.length;i++)t.push(n[i]);r&&t.push(r),a&&t.push(a)}return t.length>0?t:void 0}},w2e={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},j2e={name:"path",lookup(e){var a;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(a=n[typeof t=="number"?t:0])==null?void 0:a.replace("/",""):void 0}},A2e={name:"subdomain",lookup(e){var a,i;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((i=(a=window.location)==null?void 0:a.hostname)==null?void 0:i.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};let jz=!1;try{document.cookie,jz=!0}catch{}const Az=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];jz||Az.splice(1,1);const O2e=()=>({order:Az,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class Oz{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=h2e(n,this.options||{},O2e()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=a=>a.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(y2e),this.addDetector(g2e),this.addDetector(b2e),this.addDetector(x2e),this.addDetector(S2e),this.addDetector(w2e),this.addDetector(j2e),this.addDetector(A2e),this.addDetector(v2e)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let a=this.detectors[r].lookup(this.options);a&&typeof a=="string"&&(a=[a]),a&&(n=n.concat(a))}}),n=n.filter(r=>r!=null&&!p2e(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}Oz.type="languageDetector";const N2e={search:"Search",searchPlaceholder:"Search bouquets, roses, occasions…",loading:"Loading…",noData:"No data",save:"Save",cancel:"Cancel",close:"Close",edit:"Edit",delete:"Delete",add:"Add",create:"Create",confirm:"Confirm",submit:"Submit",back:"Back",next:"Next",continue:"Continue",apply:"Apply",viewAll:"View All",yes:"Yes",no:"No",actions:"Actions",status:"Status",all:"All",language:"Language"},E2e={topbar:{reviews:"{{n}} reviews"},nav:{home:"Home",shopAll:"Shop All",loveRomance:"Love & Romance",birthday:"Birthday",sympathy:"Sympathy",todaysBouquet:"Today's Bouquet",subscriptions:"Subscriptions",offers:"Offers"},header:{zip:"ZIP",wishlist:"Wishlist",cart:"Cart",account:"Account"},footer:{since:"Since {{year}}",visitUs:"Visit Us",hours:"Hours",customerCare:"Customer Care",contactAiHelp:"Contact / AI Help",orderStatus:"Order Status",subscriptions:"Subscriptions",getApp:"Get the App (QR)",weAccept:"We accept",rights:"© 2026 Montvale Florist"}},T2e={since:"Since {{year}}",lead:"Tell us where you're sending flowers — we'll show what's available nearby.",enterZip:"Enter Delivery ZIP Code",placeholder:"e.g. 07645",go:"Go",availableStores:"Available stores",radiusSameDay:"{{radius}}mi radius · same-day by {{cutoff}} ({{tz}})",reviews:"{{n}} reviews",browsePickup:"Browse with store pickup →",errInvalid:"Please enter a 5-digit ZIP code.",errNotDeliverable:"Sorry, we don't deliver to that area yet. Try store pickup or another ZIP.",errFailed:"Lookup failed. Please try again in a moment."},C2e={title:"Cart",signInPrompt:"Please sign in to view your cart.",signInRegister:"Sign In / Register",empty:"Your cart is empty.",startShopping:"Start Shopping →",card:"Card",subtotal:"Subtotal",shippingTax:"Shipping/Tax",calcAtCheckout:"Calculated at checkout",total:"Total",checkout:"Checkout"},_2e={title:"Checkout",recipient:"Recipient",recipientName:"Recipient Name",deliveryAddress:"Delivery Address",deliveryDate:"Delivery Date",timeSlot:"Time Slot",cardMessage:"Card Message",cardMessagePlaceholder:"Write a heartfelt message…",aiSuggest:"AI Card Message",payment:"Payment",placeOrder:"Place Order",orderSummary:"Order Summary",contactPhone:"Contact Phone",sameDay:"Same-day delivery",processing:"Processing…",success:"Your order has been placed!"},P2e={title:"Flower Subscriptions",subtitle:"Fresh, florist-designed blooms delivered on your schedule.",weekly:"Weekly",biweekly:"Bi-weekly",monthly:"Monthly",subscribe:"Subscribe",manage:"Manage Subscription",frequency:"Frequency",nextDelivery:"Next Delivery"},M2e={resultsFor:'Search Results for "{{query}}"',aiUnderstood:"AI understood:",searching:"AI is searching…",noResults:"No results found."},R2e={title:"Wishlist",empty:"Your wishlist is empty.",startShopping:"Start Shopping →"},D2e={title:"My Page",hello:"Hello",myOrders:"My Orders",mySubscriptions:"My Subscriptions",wishlist:"Wishlist",points:"Points",tier:"Tier",addresses:"Addresses",signOut:"Sign Out",memberSince:"Member since"},k2e={addToCart:"Add to Cart",buyNow:"Buy Now",size:"Size",options:"Options",reviews:"Reviews",description:"Description",writeReview:"Write a Review",inStock:"In stock",outOfStock:"Out of stock",share:"Share",sizeStandard:"Standard",sizeDeluxe:"Deluxe",sizePremium:"Premium"},$2e={title:"Write a Review",rating:"Rating",comment:"Your Review",commentPlaceholder:"Share your experience…",submit:"Submit Review",thanks:"Thank you for your review!"},L2e={title:"Offers & Events",subtitle:"Seasonal deals and special campaigns.",endsIn:"Ends in",shopNow:"Shop Now"},z2e={signIn:"Sign In",signUp:"Sign Up",email:"Email",password:"Password",name:"Name",phone:"Phone",createAccount:"Create Account",haveAccount:"Already have an account?",noAccount:"Don't have an account?",guestCheckout:"Continue as Guest"},I2e={title:"Customer Support",subtitle:"We're here to help — ask our AI assistant or reach out directly.",askAi:"Ask AI Assistant",placeholder:"Type your question…",send:"Send",contactUs:"Contact Us"},B2e={title:"Get the Montvale App",subtitle:"Scan the QR code to install on your phone.",ios:"iOS",android:"Android"},U2e={console:"Admin Console",header:"US Multi-Store Florist Omnichannel E-Commerce · AI Demand Forecasting · BI",onPremiseTag:"Ollama On-Premise · Omnichannel",signOut:"Sign Out",system:"System",login:{title:"GUARDiA Mall Console",subtitle:"Store & Corporate Admin Sign In",username:"Username",password:"Password",signIn:"Sign In",storefrontHere:"Customer storefront is",here:"here",errNoPriv:"You do not have admin privileges.",errFailed:"Sign-in failed — please check your username and password."},nav:{dashboard:"Dashboard",stores:"Stores",products:"Products",inventory:"Store Inventory",orders:"Orders (Live)",transfers:"Inventory Transfers",members:"Members (CRM)",loyalty:"Tier & Points",events:"Events & Campaigns",subscriptions:"Subscriptions",schedule:"Schedule & Surge",analytics:"Revenue Analytics (BI)",users:"User Management",audit:"Audit Log",settings:"Gateway Settings",appInstall:"Admin App Install"},dashboard:{title:"Dashboard",todaysRevenue:"Today's Revenue",todaysOrders:"Today's Orders",stores:"Stores",storesSub:"Active store revenue ranking",largeOrders:"Large Orders",largeOrdersSub:"$500+ high-value orders",revenueByStore:"Revenue by Store (Last 7 Days)",revenueTrend:"Revenue Trend (14 Days)",bestSellers:"Best Sellers",storeRanking:"Store Revenue Ranking",store:"Store",revenue:"Revenue",orders:"Orders",unitsSold:"Units Sold"},common:{name:"Name",code:"Code",price:"Price",stock:"Stock",category:"Category",store:"Store",date:"Date",amount:"Amount",status:"Status",actions:"Actions",search:"Search",total:"Total",active:"Active",inactive:"Inactive"}},F2e={common:N2e,shop:E2e,zip:T2e,cart:C2e,checkout:_2e,subscription:P2e,search:M2e,wishlist:R2e,mypage:D2e,product:k2e,review:$2e,events:L2e,account:z2e,cs:I2e,app:B2e,admin:U2e},V2e={search:"검색",searchPlaceholder:"부케, 장미, 상황별로 검색하세요…",loading:"불러오는 중…",noData:"데이터 없음",save:"저장",cancel:"취소",close:"닫기",edit:"수정",delete:"삭제",add:"추가",create:"생성",confirm:"확인",submit:"제출",back:"뒤로",next:"다음",continue:"계속",apply:"적용",viewAll:"전체 보기",yes:"예",no:"아니오",actions:"작업",status:"상태",all:"전체",language:"언어"},H2e={topbar:{reviews:"리뷰 {{n}}개"},nav:{home:"홈",shopAll:"전체 상품",loveRomance:"사랑 & 로맨스",birthday:"생일",sympathy:"추모",todaysBouquet:"오늘의 부케",subscriptions:"정기 구독",offers:"이벤트"},header:{zip:"우편번호",wishlist:"찜",cart:"장바구니",account:"내 계정"},footer:{since:"{{year}}년부터",visitUs:"매장 안내",hours:"영업 시간",customerCare:"고객 지원",contactAiHelp:"문의 / AI 도움",orderStatus:"주문 조회",subscriptions:"정기 구독",getApp:"앱 다운로드 (QR)",weAccept:"결제 수단",rights:"© 2026 Montvale Florist"}},q2e={since:"{{year}}년부터",lead:"어디로 꽃을 보내실지 알려주시면 근처에서 가능한 상품을 보여드립니다.",enterZip:"배송 우편번호 입력",placeholder:"예: 07645",go:"확인",availableStores:"배송 가능 매장",radiusSameDay:"반경 {{radius}}마일 · {{cutoff}}까지 당일 배송 ({{tz}})",reviews:"리뷰 {{n}}개",browsePickup:"매장 픽업으로 둘러보기 →",errInvalid:"5자리 우편번호를 입력해 주세요.",errNotDeliverable:"죄송합니다. 아직 해당 지역은 배송이 어렵습니다. 매장 픽업 또는 다른 우편번호를 시도해 보세요.",errFailed:"조회에 실패했습니다. 잠시 후 다시 시도해 주세요."},K2e={title:"장바구니",signInPrompt:"장바구니를 보려면 로그인해 주세요.",signInRegister:"로그인 / 회원가입",empty:"장바구니가 비어 있습니다.",startShopping:"쇼핑 시작하기 →",card:"카드",subtotal:"상품 합계",shippingTax:"배송비/세금",calcAtCheckout:"결제 시 계산",total:"총 결제금액",checkout:"결제하기"},G2e={title:"결제",recipient:"받는 분",recipientName:"받는 분 성함",deliveryAddress:"배송 주소",deliveryDate:"배송 날짜",timeSlot:"배송 시간대",cardMessage:"카드 메시지",cardMessagePlaceholder:"진심 어린 메시지를 적어 주세요…",aiSuggest:"AI 카드 메시지",payment:"결제 수단",placeOrder:"주문하기",orderSummary:"주문 요약",contactPhone:"연락처",sameDay:"당일 배송",processing:"처리 중…",success:"주문이 완료되었습니다!"},Y2e={title:"꽃 정기 구독",subtitle:"플로리스트가 디자인한 신선한 꽃을 원하는 주기로 받아보세요.",weekly:"매주",biweekly:"격주",monthly:"매월",subscribe:"구독하기",manage:"구독 관리",frequency:"배송 주기",nextDelivery:"다음 배송"},W2e={resultsFor:'"{{query}}" 검색 결과',aiUnderstood:"AI가 이해한 내용:",searching:"AI가 검색 중입니다…",noResults:"검색 결과가 없습니다."},X2e={title:"찜한 상품",empty:"찜한 상품이 없습니다.",startShopping:"쇼핑 시작하기 →"},Q2e={title:"마이페이지",hello:"안녕하세요",myOrders:"내 주문",mySubscriptions:"내 구독",wishlist:"찜한 상품",points:"포인트",tier:"등급",addresses:"배송지 관리",signOut:"로그아웃",memberSince:"가입일"},Z2e={addToCart:"장바구니 담기",buyNow:"바로 구매",size:"사이즈",options:"옵션",reviews:"리뷰",description:"상품 설명",writeReview:"리뷰 작성",inStock:"재고 있음",outOfStock:"품절",share:"공유",sizeStandard:"스탠다드",sizeDeluxe:"디럭스",sizePremium:"프리미엄"},J2e={title:"리뷰 작성",rating:"별점",comment:"리뷰 내용",commentPlaceholder:"이용 후기를 남겨 주세요…",submit:"리뷰 등록",thanks:"소중한 리뷰 감사합니다!"},eOe={title:"이벤트 & 혜택",subtitle:"시즌 특가와 특별 캠페인을 만나보세요.",endsIn:"종료까지",shopNow:"쇼핑하기"},tOe={signIn:"로그인",signUp:"회원가입",email:"이메일",password:"비밀번호",name:"이름",phone:"전화번호",createAccount:"계정 만들기",haveAccount:"이미 계정이 있으신가요?",noAccount:"계정이 없으신가요?",guestCheckout:"비회원으로 계속하기"},nOe={title:"고객 지원",subtitle:"도와드리겠습니다 — AI 어시스턴트에게 묻거나 직접 문의하세요.",askAi:"AI 어시스턴트에게 문의",placeholder:"궁금한 점을 입력하세요…",send:"보내기",contactUs:"문의하기"},rOe={title:"Montvale 앱 받기",subtitle:"QR 코드를 스캔하여 휴대폰에 설치하세요.",ios:"iOS",android:"안드로이드"},aOe={console:"관리자 콘솔",header:"미국 다지점 꽃집 옴니채널 e-커머스 · AI 수요 예측 · BI",onPremiseTag:"Ollama 온프레미스 · 옴니채널",signOut:"로그아웃",system:"시스템",login:{title:"GUARDiA Mall 콘솔",subtitle:"매장 및 본사 관리자 로그인",username:"아이디",password:"비밀번호",signIn:"로그인",storefrontHere:"고객 스토어프론트는",here:"여기",errNoPriv:"관리자 권한이 없습니다.",errFailed:"로그인에 실패했습니다 — 아이디와 비밀번호를 확인해 주세요."},nav:{dashboard:"대시보드",stores:"매장 관리",products:"상품 관리",inventory:"매장 재고",orders:"주문 (실시간)",transfers:"재고 이양",members:"회원 (CRM)",loyalty:"등급 & 포인트",events:"이벤트 & 캠페인",subscriptions:"정기 구독",schedule:"스케줄 & 서지",analytics:"매출 분석 (BI)",users:"사용자 관리",audit:"감사 로그",settings:"게이트웨이 설정",appInstall:"관리자 앱 설치"},dashboard:{title:"대시보드",todaysRevenue:"오늘의 매출",todaysOrders:"오늘의 주문",stores:"매장 수",storesSub:"활성 매장 매출 순위",largeOrders:"대형 주문",largeOrdersSub:"$500 이상 고액 주문",revenueByStore:"매장별 매출 (최근 7일)",revenueTrend:"매출 추이 (14일)",bestSellers:"베스트셀러",storeRanking:"매장 매출 순위",store:"매장",revenue:"매출",orders:"주문",unitsSold:"판매 수량"},common:{name:"이름",code:"코드",price:"가격",stock:"재고",category:"카테고리",store:"매장",date:"날짜",amount:"금액",status:"상태",actions:"작업",search:"검색",total:"합계",active:"활성",inactive:"비활성"}},iOe={common:V2e,shop:H2e,zip:q2e,cart:K2e,checkout:G2e,subscription:Y2e,search:W2e,wishlist:X2e,mypage:Q2e,product:Z2e,review:J2e,events:eOe,account:tOe,cs:nOe,app:rOe,admin:aOe},Nz=["en","ko"],sOe="mall_lang";function Ez(e){const t=(e||"en").split("-")[0],n=Nz.includes(t)?t:"en",r=document.documentElement;r.setAttribute("lang",n),r.classList.toggle("lang-ko",n==="ko")}an.use(Oz).use(SK).init({resources:{en:{translation:F2e},ko:{translation:iOe}},fallbackLng:"en",supportedLngs:Nz,nonExplicitSupportedLngs:!0,load:"languageOnly",interpolation:{escapeValue:!1},detection:{order:["localStorage","navigator","htmlTag"],lookupLocalStorage:sOe,caches:["localStorage"]}});Ez(an.language);an.on("languageChanged",Ez);OB.createRoot(document.getElementById("root")).render(c.jsx(_.StrictMode,{children:c.jsx(u2e,{})}));
