var wA=e=>{throw TypeError(e)};var Qg=(e,t,n)=>t.has(e)||wA("Cannot "+n);var R=(e,t,n)=>(Qg(e,t,"read from private field"),n?n.call(e):t.get(e)),ce=(e,t,n)=>t.has(e)?wA("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ee=(e,t,n,r)=>(Qg(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Oe=(e,t,n)=>(Qg(e,t,"access private method"),n);var rh=(e,t,n,r)=>({set _(a){ee(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 ah=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 $P={exports:{}},xy={};/**
 * @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 az=Symbol.for("react.transitional.element"),iz=Symbol.for("react.fragment");function kP(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:az,type:e,key:r,ref:t!==void 0?t:null,props:n}}xy.Fragment=iz;xy.jsx=kP;xy.jsxs=kP;$P.exports=xy;var u=$P.exports,LP={exports:{}},be={};/**
 * @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 aS=Symbol.for("react.transitional.element"),sz=Symbol.for("react.portal"),oz=Symbol.for("react.fragment"),lz=Symbol.for("react.strict_mode"),cz=Symbol.for("react.profiler"),uz=Symbol.for("react.consumer"),fz=Symbol.for("react.context"),dz=Symbol.for("react.forward_ref"),hz=Symbol.for("react.suspense"),pz=Symbol.for("react.memo"),zP=Symbol.for("react.lazy"),mz=Symbol.for("react.activity"),jA=Symbol.iterator;function yz(e){return e===null||typeof e!="object"?null:(e=jA&&e[jA]||e["@@iterator"],typeof e=="function"?e:null)}var IP={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},BP=Object.assign,UP={};function Oc(e,t,n){this.props=e,this.context=t,this.refs=UP,this.updater=n||IP}Oc.prototype.isReactComponent={};Oc.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")};Oc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function FP(){}FP.prototype=Oc.prototype;function iS(e,t,n){this.props=e,this.context=t,this.refs=UP,this.updater=n||IP}var sS=iS.prototype=new FP;sS.constructor=iS;BP(sS,Oc.prototype);sS.isPureReactComponent=!0;var AA=Array.isArray;function Fb(){}var at={H:null,A:null,T:null,S:null},VP=Object.prototype.hasOwnProperty;function oS(e,t,n){var r=n.ref;return{$$typeof:aS,type:e,key:t,ref:r!==void 0?r:null,props:n}}function gz(e,t){return oS(e.type,t,e.props)}function lS(e){return typeof e=="object"&&e!==null&&e.$$typeof===aS}function vz(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var OA=/\/+/g;function Zg(e,t){return typeof e=="object"&&e!==null&&e.key!=null?vz(""+e.key):t.toString(36)}function bz(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Fb,Fb):(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 Bo(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 aS:case sz:s=!0;break;case zP:return s=e._init,Bo(s(e._payload),t,n,r,a)}}if(s)return a=a(e),s=r===""?"."+Zg(e,0):r,AA(a)?(n="",s!=null&&(n=s.replace(OA,"$&/")+"/"),Bo(a,t,n,"",function(c){return c})):a!=null&&(lS(a)&&(a=gz(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(OA,"$&/")+"/")+s)),t.push(a)),1;s=0;var o=r===""?".":r+":";if(AA(e))for(var l=0;l<e.length;l++)r=e[l],i=o+Zg(r,l),s+=Bo(r,t,n,i,a);else if(l=yz(e),typeof l=="function")for(e=l.call(e),l=0;!(r=e.next()).done;)r=r.value,i=o+Zg(r,l++),s+=Bo(r,t,n,i,a);else if(i==="object"){if(typeof e.then=="function")return Bo(bz(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 ih(e,t,n){if(e==null)return e;var r=[],a=0;return Bo(e,r,"","",function(i){return t.call(n,i,a++)}),r}function xz(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 EA=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)},Sz={map:ih,forEach:function(e,t,n){ih(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ih(e,function(){t++}),t},toArray:function(e){return ih(e,function(t){return t})||[]},only:function(e){if(!lS(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};be.Activity=mz;be.Children=Sz;be.Component=Oc;be.Fragment=oz;be.Profiler=cz;be.PureComponent=iS;be.StrictMode=lz;be.Suspense=hz;be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=at;be.__COMPILER_RUNTIME={__proto__:null,c:function(e){return at.H.useMemoCache(e)}};be.cache=function(e){return function(){return e.apply(null,arguments)}};be.cacheSignal=function(){return null};be.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=BP({},e.props),a=e.key;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)!VP.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 oS(e.type,a,r)};be.createContext=function(e){return e={$$typeof:fz,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:uz,_context:e},e};be.createElement=function(e,t,n){var r,a={},i=null;if(t!=null)for(r in t.key!==void 0&&(i=""+t.key),t)VP.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 oS(e,i,a)};be.createRef=function(){return{current:null}};be.forwardRef=function(e){return{$$typeof:dz,render:e}};be.isValidElement=lS;be.lazy=function(e){return{$$typeof:zP,_payload:{_status:-1,_result:e},_init:xz}};be.memo=function(e,t){return{$$typeof:pz,type:e,compare:t===void 0?null:t}};be.startTransition=function(e){var t=at.T,n={};at.T=n;try{var r=e(),a=at.S;a!==null&&a(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(Fb,EA)}catch(i){EA(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),at.T=t}};be.unstable_useCacheRefresh=function(){return at.H.useCacheRefresh()};be.use=function(e){return at.H.use(e)};be.useActionState=function(e,t,n){return at.H.useActionState(e,t,n)};be.useCallback=function(e,t){return at.H.useCallback(e,t)};be.useContext=function(e){return at.H.useContext(e)};be.useDebugValue=function(){};be.useDeferredValue=function(e,t){return at.H.useDeferredValue(e,t)};be.useEffect=function(e,t){return at.H.useEffect(e,t)};be.useEffectEvent=function(e){return at.H.useEffectEvent(e)};be.useId=function(){return at.H.useId()};be.useImperativeHandle=function(e,t,n){return at.H.useImperativeHandle(e,t,n)};be.useInsertionEffect=function(e,t){return at.H.useInsertionEffect(e,t)};be.useLayoutEffect=function(e,t){return at.H.useLayoutEffect(e,t)};be.useMemo=function(e,t){return at.H.useMemo(e,t)};be.useOptimistic=function(e,t){return at.H.useOptimistic(e,t)};be.useReducer=function(e,t,n){return at.H.useReducer(e,t,n)};be.useRef=function(e){return at.H.useRef(e)};be.useState=function(e){return at.H.useState(e)};be.useSyncExternalStore=function(e,t,n){return at.H.useSyncExternalStore(e,t,n)};be.useTransition=function(){return at.H.useTransition()};be.version="19.2.7";LP.exports=be;var A=LP.exports;const _=Ie(A);var HP={exports:{}},Sy={},qP={exports:{}},KP={};/**
 * @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(P,k){var I=P.length;P.push(k);e:for(;0<I;){var F=I-1>>>1,H=P[F];if(0<a(H,k))P[F]=k,P[I]=H,I=F;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var k=P[0],I=P.pop();if(I!==k){P[0]=I;e:for(var F=0,H=P.length,Y=H>>>1;F<Y;){var q=2*(F+1)-1,te=P[q],Z=q+1,ye=P[Z];if(0>a(te,I))Z<H&&0>a(ye,te)?(P[F]=ye,P[Z]=I,F=Z):(P[F]=te,P[q]=I,F=q);else if(Z<H&&0>a(ye,I))P[F]=ye,P[Z]=I,F=Z;else break e}}return k}function a(P,k){var I=P.sortIndex-k.sortIndex;return I!==0?I:P.id-k.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=[],c=[],f=1,d=null,h=3,p=!1,m=!1,g=!1,b=!1,y=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function w(P){for(var k=n(c);k!==null;){if(k.callback===null)r(c);else if(k.startTime<=P)r(c),k.sortIndex=k.expirationTime,t(l,k);else break;k=n(c)}}function S(P){if(g=!1,w(P),!m)if(n(l)!==null)m=!0,j||(j=!0,C());else{var k=n(c);k!==null&&$(S,k.startTime-P)}}var j=!1,O=-1,E=5,T=-1;function N(){return b?!0:!(e.unstable_now()-T<E)}function M(){if(b=!1,j){var P=e.unstable_now();T=P;var k=!0;try{e:{m=!1,g&&(g=!1,v(O),O=-1),p=!0;var I=h;try{t:{for(w(P),d=n(l);d!==null&&!(d.expirationTime>P&&N());){var F=d.callback;if(typeof F=="function"){d.callback=null,h=d.priorityLevel;var H=F(d.expirationTime<=P);if(P=e.unstable_now(),typeof H=="function"){d.callback=H,w(P),k=!0;break t}d===n(l)&&r(l),w(P)}else r(l);d=n(l)}if(d!==null)k=!0;else{var Y=n(c);Y!==null&&$(S,Y.startTime-P),k=!1}}break e}finally{d=null,h=I,p=!1}k=void 0}}finally{k?C():j=!1}}}var C;if(typeof x=="function")C=function(){x(M)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,D=L.port2;L.port1.onmessage=M,C=function(){D.postMessage(null)}}else C=function(){y(M,0)};function $(P,k){O=y(function(){P(e.unstable_now())},k)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function(P){switch(h){case 1:case 2:case 3:var k=3;break;default:k=h}var I=h;h=k;try{return P()}finally{h=I}},e.unstable_requestPaint=function(){b=!0},e.unstable_runWithPriority=function(P,k){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var I=h;h=P;try{return k()}finally{h=I}},e.unstable_scheduleCallback=function(P,k,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,P){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=I+H,P={id:f++,callback:k,priorityLevel:P,startTime:I,expirationTime:H,sortIndex:-1},I>F?(P.sortIndex=I,t(c,P),n(l)===null&&P===n(c)&&(g?(v(O),O=-1):g=!0,$(S,I-F))):(P.sortIndex=H,t(l,P),m||p||(m=!0,j||(j=!0,C()))),P},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(P){var k=h;return function(){var I=h;h=k;try{return P.apply(this,arguments)}finally{h=I}}}})(KP);qP.exports=KP;var wz=qP.exports,GP={exports:{}},vn={};/**
 * @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 jz=A;function YP(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 li(){}var dn={d:{f:li,r:function(){throw Error(YP(522))},D:li,C:li,L:li,m:li,X:li,S:li,M:li},p:0,findDOMNode:null},Az=Symbol.for("react.portal");function Oz(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Az,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var Ru=jz.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function wy(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}vn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=dn;vn.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(YP(299));return Oz(e,t,null,n)};vn.flushSync=function(e){var t=Ru.T,n=dn.p;try{if(Ru.T=null,dn.p=2,e)return e()}finally{Ru.T=t,dn.p=n,dn.d.f()}};vn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,dn.d.C(e,t))};vn.prefetchDNS=function(e){typeof e=="string"&&dn.d.D(e)};vn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=wy(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?dn.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:i}):n==="script"&&dn.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};vn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=wy(t.as,t.crossOrigin);dn.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&&dn.d.M(e)};vn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=wy(n,t.crossOrigin);dn.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})}};vn.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=wy(t.as,t.crossOrigin);dn.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 dn.d.m(e)};vn.requestFormReset=function(e){dn.d.r(e)};vn.unstable_batchedUpdates=function(e,t){return e(t)};vn.useFormState=function(e,t,n){return Ru.H.useFormState(e,t,n)};vn.useFormStatus=function(){return Ru.H.useHostTransitionStatus()};vn.version="19.2.7";function XP(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(XP)}catch(e){console.error(e)}}XP(),GP.exports=vn;var Ez=GP.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 kt=wz,WP=A,Tz=Ez;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 QP(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Sd(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 ZP(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 JP(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 TA(e){if(Sd(e)!==e)throw Error(U(188))}function Nz(e){var t=e.alternate;if(!t){if(t=Sd(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 TA(a),e;if(i===r)return TA(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 eM(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=eM(e),t!==null)return t;e=e.sibling}return null}var it=Object.assign,Cz=Symbol.for("react.element"),sh=Symbol.for("react.transitional.element"),wu=Symbol.for("react.portal"),Vo=Symbol.for("react.fragment"),tM=Symbol.for("react.strict_mode"),Vb=Symbol.for("react.profiler"),nM=Symbol.for("react.consumer"),Ca=Symbol.for("react.context"),cS=Symbol.for("react.forward_ref"),Hb=Symbol.for("react.suspense"),qb=Symbol.for("react.suspense_list"),uS=Symbol.for("react.memo"),hi=Symbol.for("react.lazy"),Kb=Symbol.for("react.activity"),_z=Symbol.for("react.memo_cache_sentinel"),NA=Symbol.iterator;function Jc(e){return e===null||typeof e!="object"?null:(e=NA&&e[NA]||e["@@iterator"],typeof e=="function"?e:null)}var Pz=Symbol.for("react.client.reference");function Gb(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Pz?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Vo:return"Fragment";case Vb:return"Profiler";case tM:return"StrictMode";case Hb:return"Suspense";case qb:return"SuspenseList";case Kb:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case wu:return"Portal";case Ca:return e.displayName||"Context";case nM:return(e._context.displayName||"Context")+".Consumer";case cS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case uS:return t=e.displayName||null,t!==null?t:Gb(e.type)||"Memo";case hi:t=e._payload,e=e._init;try{return Gb(e(t))}catch{}}return null}var ju=Array.isArray,he=WP.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,De=Tz.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Fs={pending:!1,data:null,method:null,action:null},Yb=[],Ho=-1;function ua(e){return{current:e}}function qt(e){0>Ho||(e.current=Yb[Ho],Yb[Ho]=null,Ho--)}function Ze(e,t){Ho++,Yb[Ho]=e.current,e.current=t}var na=ua(null),cf=ua(null),ki=ua(null),wp=ua(null);function jp(e,t){switch(Ze(ki,t),Ze(cf,e),Ze(na,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?D2(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=D2(t),e=wD(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}qt(na),Ze(na,e)}function kl(){qt(na),qt(cf),qt(ki)}function Xb(e){e.memoizedState!==null&&Ze(wp,e);var t=na.current,n=wD(t,e.type);t!==n&&(Ze(cf,e),Ze(na,n))}function Ap(e){cf.current===e&&(qt(na),qt(cf)),wp.current===e&&(qt(wp),xf._currentValue=Fs)}var Jg,CA;function ps(e){if(Jg===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Jg=t&&t[1]||"",CA=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Jg+e+CA}var ev=!1;function tv(e,t){if(!e||ev)return"";ev=!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(`
`),c=o.split(`
`);for(a=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(r===l.length||a===c.length)for(r=l.length-1,a=c.length-1;1<=r&&0<=a&&l[r]!==c[a];)a--;for(;1<=r&&0<=a;r--,a--)if(l[r]!==c[a]){if(r!==1||a!==1)do if(r--,a--,0>a||l[r]!==c[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{ev=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ps(n):""}function Mz(e,t){switch(e.tag){case 26:case 27:case 5:return ps(e.type);case 16:return ps("Lazy");case 13:return e.child!==t&&t!==null?ps("Suspense Fallback"):ps("Suspense");case 19:return ps("SuspenseList");case 0:case 15:return tv(e.type,!1);case 11:return tv(e.type.render,!1);case 1:return tv(e.type,!0);case 31:return ps("Activity");default:return""}}function _A(e){try{var t="",n=null;do t+=Mz(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
Error generating stack: `+r.message+`
`+r.stack}}var Wb=Object.prototype.hasOwnProperty,fS=kt.unstable_scheduleCallback,nv=kt.unstable_cancelCallback,Rz=kt.unstable_shouldYield,Dz=kt.unstable_requestPaint,qn=kt.unstable_now,$z=kt.unstable_getCurrentPriorityLevel,rM=kt.unstable_ImmediatePriority,aM=kt.unstable_UserBlockingPriority,Op=kt.unstable_NormalPriority,kz=kt.unstable_LowPriority,iM=kt.unstable_IdlePriority,Lz=kt.log,zz=kt.unstable_setDisableYieldValue,wd=null,Kn=null;function Ci(e){if(typeof Lz=="function"&&zz(e),Kn&&typeof Kn.setStrictMode=="function")try{Kn.setStrictMode(wd,e)}catch{}}var Gn=Math.clz32?Math.clz32:Uz,Iz=Math.log,Bz=Math.LN2;function Uz(e){return e>>>=0,e===0?32:31-(Iz(e)/Bz|0)|0}var oh=256,lh=262144,ch=4194304;function ms(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 jy(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=ms(r):(s&=o,s!==0?a=ms(s):n||(n=o&~e,n!==0&&(a=ms(n))))):(o=r&~i,o!==0?a=ms(o):s!==0?a=ms(s):n||(n=r&~e,n!==0&&(a=ms(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 jd(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Fz(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 sM(){var e=ch;return ch<<=1,!(ch&62914560)&&(ch=4194304),e}function rv(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ad(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Vz(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,c=e.hiddenUpdates;for(n=s&~n;0<n;){var f=31-Gn(n),d=1<<f;o[f]=0,l[f]=-1;var h=c[f];if(h!==null)for(c[f]=null,f=0;f<h.length;f++){var p=h[f];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&oM(e,r,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(s&~t))}function oM(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Gn(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function lM(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Gn(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function cM(e,t){var n=t&-t;return n=n&42?1:dS(n),n&(e.suspendedLanes|t)?0:n}function dS(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 hS(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function uM(){var e=De.p;return e!==0?e:(e=window.event,e===void 0?32:RD(e.type))}function PA(e,t){var n=De.p;try{return De.p=e,t()}finally{De.p=n}}var es=Math.random().toString(36).slice(2),Qt="__reactFiber$"+es,_n="__reactProps$"+es,Ec="__reactContainer$"+es,Qb="__reactEvents$"+es,Hz="__reactListeners$"+es,qz="__reactHandles$"+es,MA="__reactResources$"+es,Od="__reactMarker$"+es;function pS(e){delete e[Qt],delete e[_n],delete e[Qb],delete e[Hz],delete e[qz]}function qo(e){var t=e[Qt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ec]||n[Qt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=I2(e);e!==null;){if(n=e[Qt])return n;e=I2(e)}return t}e=n,n=e.parentNode}return null}function Tc(e){if(e=e[Qt]||e[Ec]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Au(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(U(33))}function fl(e){var t=e[MA];return t||(t=e[MA]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Vt(e){e[Od]=!0}var fM=new Set,dM={};function mo(e,t){Ll(e,t),Ll(e+"Capture",t)}function Ll(e,t){for(dM[e]=t,e=0;e<t.length;e++)fM.add(t[e])}var Kz=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]*$"),RA={},DA={};function Gz(e){return Wb.call(DA,e)?!0:Wb.call(RA,e)?!1:Kz.test(e)?DA[e]=!0:(RA[e]=!0,!1)}function Xh(e,t,n){if(Gz(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 uh(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 ya(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 lr(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hM(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Yz(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 Zb(e){if(!e._valueTracker){var t=hM(e)?"checked":"value";e._valueTracker=Yz(e,t,""+e[t])}}function pM(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hM(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ep(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 Xz=/[\n"\\]/g;function fr(e){return e.replace(Xz,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Jb(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=""+lr(t)):e.value!==""+lr(t)&&(e.value=""+lr(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?e0(e,s,lr(t)):n!=null?e0(e,s,lr(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=""+lr(o):e.removeAttribute("name")}function mM(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)){Zb(e);return}n=n!=null?""+lr(n):"",t=t!=null?""+lr(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),Zb(e)}function e0(e,t,n){t==="number"&&Ep(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function dl(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=""+lr(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 yM(e,t,n){if(t!=null&&(t=""+lr(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+lr(n):""}function gM(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(U(92));if(ju(r)){if(1<r.length)throw Error(U(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=lr(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),Zb(e)}function zl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wz=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 $A(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||Wz.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function vM(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&&$A(e,a,r)}else for(var i in t)t.hasOwnProperty(i)&&$A(e,i,t[i])}function mS(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 Qz=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"]]),Zz=/^[\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 Wh(e){return Zz.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function _a(){}var t0=null;function yS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ko=null,hl=null;function kA(e){var t=Tc(e);if(t&&(e=t.stateNode)){var n=e[_n]||null;e:switch(e=t.stateNode,t.type){case"input":if(Jb(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="'+fr(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[_n]||null;if(!a)throw Error(U(90));Jb(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&&pM(r)}break e;case"textarea":yM(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&dl(e,!!n.multiple,t,!1)}}}var av=!1;function bM(e,t,n){if(av)return e(t,n);av=!0;try{var r=e(t);return r}finally{if(av=!1,(Ko!==null||hl!==null)&&($y(),Ko&&(t=Ko,e=hl,hl=Ko=null,kA(t),e)))for(t=0;t<e.length;t++)kA(e[t])}}function uf(e,t){var n=e.stateNode;if(n===null)return null;var r=n[_n]||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 Ha=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),n0=!1;if(Ha)try{var eu={};Object.defineProperty(eu,"passive",{get:function(){n0=!0}}),window.addEventListener("test",eu,eu),window.removeEventListener("test",eu,eu)}catch{n0=!1}var _i=null,gS=null,Qh=null;function xM(){if(Qh)return Qh;var e,t=gS,n=t.length,r,a="value"in _i?_i.value:_i.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 Qh=a.slice(e,1<r?1-r:void 0)}function Zh(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 fh(){return!0}function LA(){return!1}function Pn(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)?fh:LA,this.isPropagationStopped=LA,this}return it(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=fh)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=fh)},persist:function(){},isPersistent:fh}),t}var yo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ay=Pn(yo),Ed=it({},yo,{view:0,detail:0}),Jz=Pn(Ed),iv,sv,tu,Oy=it({},Ed,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vS,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!==tu&&(tu&&e.type==="mousemove"?(iv=e.screenX-tu.screenX,sv=e.screenY-tu.screenY):sv=iv=0,tu=e),iv)},movementY:function(e){return"movementY"in e?e.movementY:sv}}),zA=Pn(Oy),eI=it({},Oy,{dataTransfer:0}),tI=Pn(eI),nI=it({},Ed,{relatedTarget:0}),ov=Pn(nI),rI=it({},yo,{animationName:0,elapsedTime:0,pseudoElement:0}),aI=Pn(rI),iI=it({},yo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sI=Pn(iI),oI=it({},yo,{data:0}),IA=Pn(oI),lI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cI={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"},uI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=uI[e])?!!t[e]:!1}function vS(){return fI}var dI=it({},Ed,{key:function(e){if(e.key){var t=lI[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?cI[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vS,charCode:function(e){return e.type==="keypress"?Zh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),hI=Pn(dI),pI=it({},Oy,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),BA=Pn(pI),mI=it({},Ed,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vS}),yI=Pn(mI),gI=it({},yo,{propertyName:0,elapsedTime:0,pseudoElement:0}),vI=Pn(gI),bI=it({},Oy,{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}),xI=Pn(bI),SI=it({},yo,{newState:0,oldState:0}),wI=Pn(SI),jI=[9,13,27,32],bS=Ha&&"CompositionEvent"in window,Du=null;Ha&&"documentMode"in document&&(Du=document.documentMode);var AI=Ha&&"TextEvent"in window&&!Du,SM=Ha&&(!bS||Du&&8<Du&&11>=Du),UA=" ",FA=!1;function wM(e,t){switch(e){case"keyup":return jI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jM(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Go=!1;function OI(e,t){switch(e){case"compositionend":return jM(t);case"keypress":return t.which!==32?null:(FA=!0,UA);case"textInput":return e=t.data,e===UA&&FA?null:e;default:return null}}function EI(e,t){if(Go)return e==="compositionend"||!bS&&wM(e,t)?(e=xM(),Qh=gS=_i=null,Go=!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 SM&&t.locale!=="ko"?null:t.data;default:return null}}var TI={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 VA(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!TI[e.type]:t==="textarea"}function AM(e,t,n,r){Ko?hl?hl.push(r):hl=[r]:Ko=r,t=Hp(t,"onChange"),0<t.length&&(n=new Ay("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $u=null,ff=null;function NI(e){bD(e,0)}function Ey(e){var t=Au(e);if(pM(t))return e}function HA(e,t){if(e==="change")return t}var OM=!1;if(Ha){var lv;if(Ha){var cv="oninput"in document;if(!cv){var qA=document.createElement("div");qA.setAttribute("oninput","return;"),cv=typeof qA.oninput=="function"}lv=cv}else lv=!1;OM=lv&&(!document.documentMode||9<document.documentMode)}function KA(){$u&&($u.detachEvent("onpropertychange",EM),ff=$u=null)}function EM(e){if(e.propertyName==="value"&&Ey(ff)){var t=[];AM(t,ff,e,yS(e)),bM(NI,t)}}function CI(e,t,n){e==="focusin"?(KA(),$u=t,ff=n,$u.attachEvent("onpropertychange",EM)):e==="focusout"&&KA()}function _I(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ey(ff)}function PI(e,t){if(e==="click")return Ey(t)}function MI(e,t){if(e==="input"||e==="change")return Ey(t)}function RI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qn=typeof Object.is=="function"?Object.is:RI;function df(e,t){if(Qn(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(!Wb.call(t,a)||!Qn(e[a],t[a]))return!1}return!0}function GA(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function YA(e,t){var n=GA(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=GA(n)}}function TM(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?TM(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function NM(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ep(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=Ep(e.document)}return t}function xS(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 DI=Ha&&"documentMode"in document&&11>=document.documentMode,Yo=null,r0=null,ku=null,a0=!1;function XA(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;a0||Yo==null||Yo!==Ep(r)||(r=Yo,"selectionStart"in r&&xS(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}),ku&&df(ku,r)||(ku=r,r=Hp(r0,"onSelect"),0<r.length&&(t=new Ay("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Yo)))}function cs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Xo={animationend:cs("Animation","AnimationEnd"),animationiteration:cs("Animation","AnimationIteration"),animationstart:cs("Animation","AnimationStart"),transitionrun:cs("Transition","TransitionRun"),transitionstart:cs("Transition","TransitionStart"),transitioncancel:cs("Transition","TransitionCancel"),transitionend:cs("Transition","TransitionEnd")},uv={},CM={};Ha&&(CM=document.createElement("div").style,"AnimationEvent"in window||(delete Xo.animationend.animation,delete Xo.animationiteration.animation,delete Xo.animationstart.animation),"TransitionEvent"in window||delete Xo.transitionend.transition);function go(e){if(uv[e])return uv[e];if(!Xo[e])return e;var t=Xo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in CM)return uv[e]=t[n];return e}var _M=go("animationend"),PM=go("animationiteration"),MM=go("animationstart"),$I=go("transitionrun"),kI=go("transitionstart"),LI=go("transitioncancel"),RM=go("transitionend"),DM=new Map,i0="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(" ");i0.push("scrollEnd");function Ir(e,t){DM.set(e,t),mo(t,[e])}var Tp=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)},or=[],Wo=0,SS=0;function Ty(){for(var e=Wo,t=SS=Wo=0;t<e;){var n=or[t];or[t++]=null;var r=or[t];or[t++]=null;var a=or[t];or[t++]=null;var i=or[t];if(or[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&&$M(n,a,i)}}function Ny(e,t,n,r){or[Wo++]=e,or[Wo++]=t,or[Wo++]=n,or[Wo++]=r,SS|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function wS(e,t,n,r){return Ny(e,t,n,r),Np(e)}function vo(e,t){return Ny(e,null,null,t),Np(e)}function $M(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-Gn(n),e=i.hiddenUpdates,r=e[a],r===null?e[a]=[t]:r.push(t),t.lane=n|536870912),i):null}function Np(e){if(50<qu)throw qu=0,E0=null,Error(U(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Qo={};function zI(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 Fn(e,t,n,r){return new zI(e,t,n,r)}function jS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ka(e,t){var n=e.alternate;return n===null?(n=Fn(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 kM(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 Jh(e,t,n,r,a,i){var s=0;if(r=e,typeof e=="function")jS(e)&&(s=1);else if(typeof e=="string")s=VB(e,n,na.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Kb:return e=Fn(31,n,t,a),e.elementType=Kb,e.lanes=i,e;case Vo:return Vs(n.children,a,i,t);case tM:s=8,a|=24;break;case Vb:return e=Fn(12,n,t,a|2),e.elementType=Vb,e.lanes=i,e;case Hb:return e=Fn(13,n,t,a),e.elementType=Hb,e.lanes=i,e;case qb:return e=Fn(19,n,t,a),e.elementType=qb,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ca:s=10;break e;case nM:s=9;break e;case cS:s=11;break e;case uS:s=14;break e;case hi:s=16,r=null;break e}s=29,n=Error(U(130,e===null?"null":typeof e,"")),r=null}return t=Fn(s,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function Vs(e,t,n,r){return e=Fn(7,e,r,t),e.lanes=n,e}function fv(e,t,n){return e=Fn(6,e,null,t),e.lanes=n,e}function LM(e){var t=Fn(18,null,null,0);return t.stateNode=e,t}function dv(e,t,n){return t=Fn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var WA=new WeakMap;function dr(e,t){if(typeof e=="object"&&e!==null){var n=WA.get(e);return n!==void 0?n:(t={value:e,source:t,stack:_A(t)},WA.set(e,t),t)}return{value:e,source:t,stack:_A(t)}}var Zo=[],Jo=0,Cp=null,hf=0,cr=[],ur=0,Xi=null,Yr=1,Xr="";function Oa(e,t){Zo[Jo++]=hf,Zo[Jo++]=Cp,Cp=e,hf=t}function zM(e,t,n){cr[ur++]=Yr,cr[ur++]=Xr,cr[ur++]=Xi,Xi=e;var r=Yr;e=Xr;var a=32-Gn(r)-1;r&=~(1<<a),n+=1;var i=32-Gn(t)+a;if(30<i){var s=a-a%5;i=(r&(1<<s)-1).toString(32),r>>=s,a-=s,Yr=1<<32-Gn(t)+a|n<<a|r,Xr=i+e}else Yr=1<<i|n<<a|r,Xr=e}function AS(e){e.return!==null&&(Oa(e,1),zM(e,1,0))}function OS(e){for(;e===Cp;)Cp=Zo[--Jo],Zo[Jo]=null,hf=Zo[--Jo],Zo[Jo]=null;for(;e===Xi;)Xi=cr[--ur],cr[ur]=null,Xr=cr[--ur],cr[ur]=null,Yr=cr[--ur],cr[ur]=null}function IM(e,t){cr[ur++]=Yr,cr[ur++]=Xr,cr[ur++]=Xi,Yr=t.id,Xr=t.overflow,Xi=e}var Zt=null,rt=null,Ce=!1,Li=null,hr=!1,s0=Error(U(519));function Wi(e){var t=Error(U(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw pf(dr(t,e)),s0}function QA(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Qt]=e,t[_n]=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<vf.length;n++)we(vf[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),mM(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),gM(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||SD(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=_a),t=!0):t=!1,t||Wi(e,!0)}function ZA(e){for(Zt=e.return;Zt;)switch(Zt.tag){case 5:case 31:case 13:hr=!1;return;case 27:case 3:hr=!0;return;default:Zt=Zt.return}}function _o(e){if(e!==Zt)return!1;if(!Ce)return ZA(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")||P0(e.type,e.memoizedProps)),n=!n),n&&rt&&Wi(e),ZA(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));rt=z2(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));rt=z2(e)}else t===27?(t=rt,ts(e.type)?(e=$0,$0=null,rt=e):rt=t):rt=Zt?gr(e.stateNode.nextSibling):null;return!0}function Zs(){rt=Zt=null,Ce=!1}function hv(){var e=Li;return e!==null&&(On===null?On=e:On.push.apply(On,e),Li=null),e}function pf(e){Li===null?Li=[e]:Li.push(e)}var o0=ua(null),bo=null,Pa=null;function yi(e,t,n){Ze(o0,t._currentValue),t._currentValue=n}function La(e){e._currentValue=o0.current,qt(o0)}function l0(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 c0(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),l0(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),l0(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 Nc(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;Qn(a.pendingProps.value,s.value)||(e!==null?e.push(o):e=[o])}}else if(a===wp.current){if(s=a.alternate,s===null)throw Error(U(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(xf):e=[xf])}a=a.return}e!==null&&c0(t,e,n,r),t.flags|=262144}function _p(e){for(e=e.firstContext;e!==null;){if(!Qn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Js(e){bo=e,Pa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function en(e){return BM(bo,e)}function dh(e,t){return bo===null&&Js(e),BM(e,t)}function BM(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Pa===null){if(e===null)throw Error(U(308));Pa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Pa=Pa.next=t;return n}var II=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()})}},BI=kt.unstable_scheduleCallback,UI=kt.unstable_NormalPriority,Tt={$$typeof:Ca,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ES(){return{controller:new II,data:new Map,refCount:0}}function Td(e){e.refCount--,e.refCount===0&&BI(UI,function(){e.controller.abort()})}var Lu=null,u0=0,Il=0,pl=null;function FI(e,t){if(Lu===null){var n=Lu=[];u0=0,Il=QS(),pl={status:"pending",value:void 0,then:function(r){n.push(r)}}}return u0++,t.then(JA,JA),t}function JA(){if(--u0===0&&Lu!==null){pl!==null&&(pl.status="fulfilled");var e=Lu;Lu=null,Il=0,pl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function VI(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 e2=he.S;he.S=function(e,t){eD=qn(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&FI(e,t),e2!==null&&e2(e,t)};var Hs=ua(null);function TS(){var e=Hs.current;return e!==null?e:Ye.pooledCache}function ep(e,t){t===null?Ze(Hs,Hs.current):Ze(Hs,t.pool)}function UM(){var e=TS();return e===null?null:{parent:Tt._currentValue,pool:e}}var Cc=Error(U(460)),NS=Error(U(474)),Cy=Error(U(542)),Pp={then:function(){}};function t2(e){return e=e.status,e==="fulfilled"||e==="rejected"}function FM(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(_a,_a),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,r2(e),e;default:if(typeof t.status=="string")t.then(_a,_a);else{if(e=Ye,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,r2(e),e}throw qs=t,Cc}}function ys(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(qs=n,Cc):n}}var qs=null;function n2(){if(qs===null)throw Error(U(459));var e=qs;return qs=null,e}function r2(e){if(e===Cc||e===Cy)throw Error(U(483))}var ml=null,mf=0;function hh(e){var t=mf;return mf+=1,ml===null&&(ml=[]),FM(ml,e,t)}function nu(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ph(e,t){throw t.$$typeof===Cz?Error(U(525)):(e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function VM(e){function t(y,v){if(e){var x=y.deletions;x===null?(y.deletions=[v],y.flags|=16):x.push(v)}}function n(y,v){if(!e)return null;for(;v!==null;)t(y,v),v=v.sibling;return null}function r(y){for(var v=new Map;y!==null;)y.key!==null?v.set(y.key,y):v.set(y.index,y),y=y.sibling;return v}function a(y,v){return y=ka(y,v),y.index=0,y.sibling=null,y}function i(y,v,x){return y.index=x,e?(x=y.alternate,x!==null?(x=x.index,x<v?(y.flags|=67108866,v):x):(y.flags|=67108866,v)):(y.flags|=1048576,v)}function s(y){return e&&y.alternate===null&&(y.flags|=67108866),y}function o(y,v,x,w){return v===null||v.tag!==6?(v=fv(x,y.mode,w),v.return=y,v):(v=a(v,x),v.return=y,v)}function l(y,v,x,w){var S=x.type;return S===Vo?f(y,v,x.props.children,w,x.key):v!==null&&(v.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===hi&&ys(S)===v.type)?(v=a(v,x.props),nu(v,x),v.return=y,v):(v=Jh(x.type,x.key,x.props,null,y.mode,w),nu(v,x),v.return=y,v)}function c(y,v,x,w){return v===null||v.tag!==4||v.stateNode.containerInfo!==x.containerInfo||v.stateNode.implementation!==x.implementation?(v=dv(x,y.mode,w),v.return=y,v):(v=a(v,x.children||[]),v.return=y,v)}function f(y,v,x,w,S){return v===null||v.tag!==7?(v=Vs(x,y.mode,w,S),v.return=y,v):(v=a(v,x),v.return=y,v)}function d(y,v,x){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=fv(""+v,y.mode,x),v.return=y,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case sh:return x=Jh(v.type,v.key,v.props,null,y.mode,x),nu(x,v),x.return=y,x;case wu:return v=dv(v,y.mode,x),v.return=y,v;case hi:return v=ys(v),d(y,v,x)}if(ju(v)||Jc(v))return v=Vs(v,y.mode,x,null),v.return=y,v;if(typeof v.then=="function")return d(y,hh(v),x);if(v.$$typeof===Ca)return d(y,dh(y,v),x);ph(y,v)}return null}function h(y,v,x,w){var S=v!==null?v.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return S!==null?null:o(y,v,""+x,w);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case sh:return x.key===S?l(y,v,x,w):null;case wu:return x.key===S?c(y,v,x,w):null;case hi:return x=ys(x),h(y,v,x,w)}if(ju(x)||Jc(x))return S!==null?null:f(y,v,x,w,null);if(typeof x.then=="function")return h(y,v,hh(x),w);if(x.$$typeof===Ca)return h(y,v,dh(y,x),w);ph(y,x)}return null}function p(y,v,x,w,S){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return y=y.get(x)||null,o(v,y,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case sh:return y=y.get(w.key===null?x:w.key)||null,l(v,y,w,S);case wu:return y=y.get(w.key===null?x:w.key)||null,c(v,y,w,S);case hi:return w=ys(w),p(y,v,x,w,S)}if(ju(w)||Jc(w))return y=y.get(x)||null,f(v,y,w,S,null);if(typeof w.then=="function")return p(y,v,x,hh(w),S);if(w.$$typeof===Ca)return p(y,v,x,dh(v,w),S);ph(v,w)}return null}function m(y,v,x,w){for(var S=null,j=null,O=v,E=v=0,T=null;O!==null&&E<x.length;E++){O.index>E?(T=O,O=null):T=O.sibling;var N=h(y,O,x[E],w);if(N===null){O===null&&(O=T);break}e&&O&&N.alternate===null&&t(y,O),v=i(N,v,E),j===null?S=N:j.sibling=N,j=N,O=T}if(E===x.length)return n(y,O),Ce&&Oa(y,E),S;if(O===null){for(;E<x.length;E++)O=d(y,x[E],w),O!==null&&(v=i(O,v,E),j===null?S=O:j.sibling=O,j=O);return Ce&&Oa(y,E),S}for(O=r(O);E<x.length;E++)T=p(O,y,E,x[E],w),T!==null&&(e&&T.alternate!==null&&O.delete(T.key===null?E:T.key),v=i(T,v,E),j===null?S=T:j.sibling=T,j=T);return e&&O.forEach(function(M){return t(y,M)}),Ce&&Oa(y,E),S}function g(y,v,x,w){if(x==null)throw Error(U(151));for(var S=null,j=null,O=v,E=v=0,T=null,N=x.next();O!==null&&!N.done;E++,N=x.next()){O.index>E?(T=O,O=null):T=O.sibling;var M=h(y,O,N.value,w);if(M===null){O===null&&(O=T);break}e&&O&&M.alternate===null&&t(y,O),v=i(M,v,E),j===null?S=M:j.sibling=M,j=M,O=T}if(N.done)return n(y,O),Ce&&Oa(y,E),S;if(O===null){for(;!N.done;E++,N=x.next())N=d(y,N.value,w),N!==null&&(v=i(N,v,E),j===null?S=N:j.sibling=N,j=N);return Ce&&Oa(y,E),S}for(O=r(O);!N.done;E++,N=x.next())N=p(O,y,E,N.value,w),N!==null&&(e&&N.alternate!==null&&O.delete(N.key===null?E:N.key),v=i(N,v,E),j===null?S=N:j.sibling=N,j=N);return e&&O.forEach(function(C){return t(y,C)}),Ce&&Oa(y,E),S}function b(y,v,x,w){if(typeof x=="object"&&x!==null&&x.type===Vo&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case sh:e:{for(var S=x.key;v!==null;){if(v.key===S){if(S=x.type,S===Vo){if(v.tag===7){n(y,v.sibling),w=a(v,x.props.children),w.return=y,y=w;break e}}else if(v.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===hi&&ys(S)===v.type){n(y,v.sibling),w=a(v,x.props),nu(w,x),w.return=y,y=w;break e}n(y,v);break}else t(y,v);v=v.sibling}x.type===Vo?(w=Vs(x.props.children,y.mode,w,x.key),w.return=y,y=w):(w=Jh(x.type,x.key,x.props,null,y.mode,w),nu(w,x),w.return=y,y=w)}return s(y);case wu:e:{for(S=x.key;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){n(y,v.sibling),w=a(v,x.children||[]),w.return=y,y=w;break e}else{n(y,v);break}else t(y,v);v=v.sibling}w=dv(x,y.mode,w),w.return=y,y=w}return s(y);case hi:return x=ys(x),b(y,v,x,w)}if(ju(x))return m(y,v,x,w);if(Jc(x)){if(S=Jc(x),typeof S!="function")throw Error(U(150));return x=S.call(x),g(y,v,x,w)}if(typeof x.then=="function")return b(y,v,hh(x),w);if(x.$$typeof===Ca)return b(y,v,dh(y,x),w);ph(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,v!==null&&v.tag===6?(n(y,v.sibling),w=a(v,x),w.return=y,y=w):(n(y,v),w=fv(x,y.mode,w),w.return=y,y=w),s(y)):n(y,v)}return function(y,v,x,w){try{mf=0;var S=b(y,v,x,w);return ml=null,S}catch(O){if(O===Cc||O===Cy)throw O;var j=Fn(29,O,null,y.mode);return j.lanes=w,j.return=y,j}finally{}}}var eo=VM(!0),HM=VM(!1),pi=!1;function CS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function f0(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 zi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ii(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=Np(e),$M(e,null,n),t}return Ny(e,r,t,n),Np(e)}function zu(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,lM(e,n)}}function pv(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 d0=!1;function Iu(){if(d0){var e=pl;if(e!==null)throw e}}function Bu(e,t,n,r){d0=!1;var a=e.updateQueue;pi=!1;var i=a.firstBaseUpdate,s=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var l=o,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var f=e.alternate;f!==null&&(f=f.updateQueue,o=f.lastBaseUpdate,o!==s&&(o===null?f.firstBaseUpdate=c:o.next=c,f.lastBaseUpdate=l))}if(i!==null){var d=a.baseState;s=0,f=c=l=null,o=i;do{var h=o.lane&-536870913,p=h!==o.lane;if(p?(Te&h)===h:(r&h)===h){h!==0&&h===Il&&(d0=!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 b=n;switch(g.tag){case 1:if(m=g.payload,typeof m=="function"){d=m.call(b,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(b,d,h):m,h==null)break e;d=it({},d,h);break e;case 2:pi=!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?(c=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=c,a.lastBaseUpdate=f,i===null&&(a.shared.lanes=0),Zi|=s,e.lanes=s,e.memoizedState=d}}function qM(e,t){if(typeof e!="function")throw Error(U(191,e));e.call(t)}function KM(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)qM(n[e],t)}var Bl=ua(null),Mp=ua(0);function a2(e,t){e=Ya,Ze(Mp,e),Ze(Bl,t),Ya=e|t.baseLanes}function h0(){Ze(Mp,Ya),Ze(Bl,Bl.current)}function _S(){Ya=Mp.current,qt(Bl),qt(Mp)}var Zn=ua(null),yr=null;function gi(e){var t=e.alternate;Ze(xt,xt.current&1),Ze(Zn,e),yr===null&&(t===null||Bl.current!==null||t.memoizedState!==null)&&(yr=e)}function p0(e){Ze(xt,xt.current),Ze(Zn,e),yr===null&&(yr=e)}function GM(e){e.tag===22?(Ze(xt,xt.current),Ze(Zn,e),yr===null&&(yr=e)):vi()}function vi(){Ze(xt,xt.current),Ze(Zn,Zn.current)}function Un(e){qt(Zn),yr===e&&(yr=null),qt(xt)}var xt=ua(0);function Rp(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||R0(n)||D0(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 qa=0,xe=null,Ke=null,Ot=null,Dp=!1,yl=!1,to=!1,$p=0,yf=0,gl=null,HI=0;function pt(){throw Error(U(321))}function PS(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qn(e[n],t[n]))return!1;return!0}function MS(e,t,n,r,a,i){return qa=i,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,he.H=e===null||e.memoizedState===null?AR:VS,to=!1,i=n(r,a),to=!1,yl&&(i=XM(t,n,r,a)),YM(e),i}function YM(e){he.H=gf;var t=Ke!==null&&Ke.next!==null;if(qa=0,Ot=Ke=xe=null,Dp=!1,yf=0,gl=null,t)throw Error(U(300));e===null||Ct||(e=e.dependencies,e!==null&&_p(e)&&(Ct=!0))}function XM(e,t,n,r){xe=e;var a=0;do{if(yl&&(gl=null),yf=0,yl=!1,25<=a)throw Error(U(301));if(a+=1,Ot=Ke=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=OR,i=t(n,r)}while(yl);return i}function qI(){var e=he.H,t=e.useState()[0];return t=typeof t.then=="function"?Nd(t):t,e=e.useState()[0],(Ke!==null?Ke.memoizedState:null)!==e&&(xe.flags|=1024),t}function RS(){var e=$p!==0;return $p=0,e}function DS(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function $S(e){if(Dp){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Dp=!1}qa=0,Ot=Ke=xe=null,yl=!1,yf=$p=0,gl=null}function fn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ot===null?xe.memoizedState=Ot=e:Ot=Ot.next=e,Ot}function wt(){if(Ke===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var t=Ot===null?xe.memoizedState:Ot.next;if(t!==null)Ot=t,Ke=e;else{if(e===null)throw xe.alternate===null?Error(U(467)):Error(U(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},Ot===null?xe.memoizedState=Ot=e:Ot=Ot.next=e}return Ot}function _y(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Nd(e){var t=yf;return yf+=1,gl===null&&(gl=[]),e=FM(gl,e,t),t=xe,(Ot===null?t.memoizedState:Ot.next)===null&&(t=t.alternate,he.H=t===null||t.memoizedState===null?AR:VS),e}function Py(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Nd(e);if(e.$$typeof===Ca)return en(e)}throw Error(U(438,String(e)))}function kS(e){var t=null,n=xe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=xe.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=_y(),xe.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]=_z;return t.index++,n}function Ka(e,t){return typeof t=="function"?t(e):t}function tp(e){var t=wt();return LS(t,Ke,e)}function LS(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,c=t,f=!1;do{var d=c.lane&-536870913;if(d!==c.lane?(Te&d)===d:(qa&d)===d){var h=c.revertLane;if(h===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),d===Il&&(f=!0);else if((qa&h)===h){c=c.next,h===Il&&(f=!0);continue}else d={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},l===null?(o=l=d,s=i):l=l.next=d,xe.lanes|=h,Zi|=h;d=c.action,to&&n(i,d),i=c.hasEagerState?c.eagerState:n(i,d)}else h={lane:d,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},l===null?(o=l=h,s=i):l=l.next=h,xe.lanes|=d,Zi|=d;c=c.next}while(c!==null&&c!==t);if(l===null?s=i:l.next=o,!Qn(i,e.memoizedState)&&(Ct=!0,f&&(n=pl,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 mv(e){var t=wt(),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);Qn(i,t.memoizedState)||(Ct=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function WM(e,t,n){var r=xe,a=wt(),i=Ce;if(i){if(n===void 0)throw Error(U(407));n=n()}else n=t();var s=!Qn((Ke||a).memoizedState,n);if(s&&(a.memoizedState=n,Ct=!0),a=a.queue,zS(JM.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||Ot!==null&&Ot.memoizedState.tag&1){if(r.flags|=2048,Ul(9,{destroy:void 0},ZM.bind(null,r,a,n,t),null),Ye===null)throw Error(U(349));i||qa&127||QM(r,t,n)}return n}function QM(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=xe.updateQueue,t===null?(t=_y(),xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ZM(e,t,n,r){t.value=n,t.getSnapshot=r,eR(t)&&tR(e)}function JM(e,t,n){return n(function(){eR(t)&&tR(e)})}function eR(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qn(e,n)}catch{return!0}}function tR(e){var t=vo(e,2);t!==null&&Nn(t,e,2)}function m0(e){var t=fn();if(typeof e=="function"){var n=e;if(e=n(),to){Ci(!0);try{n()}finally{Ci(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:e},t}function nR(e,t,n,r){return e.baseState=n,LS(e,Ke,typeof r=="function"?r:Ka)}function KI(e,t,n,r,a){if(Ry(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,rR(t,i)):(i.next=n.next,t.pending=n.next=i)}}function rR(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),i2(e,t,o)}catch(c){y0(e,t,c)}finally{i!==null&&s.types!==null&&(i.types=s.types),he.T=i}}else try{i=n(a,r),i2(e,t,i)}catch(c){y0(e,t,c)}}function i2(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){s2(e,t,r)},function(r){return y0(e,t,r)}):s2(e,t,n)}function s2(e,t,n){t.status="fulfilled",t.value=n,aR(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,rR(e,n)))}function y0(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,aR(t),t=t.next;while(t!==r)}e.action=null}function aR(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function iR(e,t){return t}function o2(e,t){if(Ce){var n=Ye.formState;if(n!==null){e:{var r=xe;if(Ce){if(rt){t:{for(var a=rt,i=hr;a.nodeType!==8;){if(!i){a=null;break t}if(a=gr(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){rt=gr(a.nextSibling),r=a.data==="F!";break e}}Wi(r)}r=!1}r&&(t=n[0])}}return n=fn(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:iR,lastRenderedState:t},n.queue=r,n=SR.bind(null,xe,r),r.dispatch=n,r=m0(!1),i=FS.bind(null,xe,!1,r.queue),r=fn(),a={state:t,dispatch:null,action:e,pending:null},r.queue=a,n=KI.bind(null,xe,a,i,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function l2(e){var t=wt();return sR(t,Ke,e)}function sR(e,t,n){if(t=LS(e,t,iR)[0],e=tp(Ka)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Nd(t)}catch(s){throw s===Cc?Cy:s}else r=t;t=wt();var a=t.queue,i=a.dispatch;return n!==t.memoizedState&&(xe.flags|=2048,Ul(9,{destroy:void 0},GI.bind(null,a,n),null)),[r,i,e]}function GI(e,t){e.action=t}function c2(e){var t=wt(),n=Ke;if(n!==null)return sR(t,n,e);wt(),t=t.memoizedState,n=wt();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ul(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=xe.updateQueue,t===null&&(t=_y(),xe.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 oR(){return wt().memoizedState}function np(e,t,n,r){var a=fn();xe.flags|=e,a.memoizedState=Ul(1|t,{destroy:void 0},n,r===void 0?null:r)}function My(e,t,n,r){var a=wt();r=r===void 0?null:r;var i=a.memoizedState.inst;Ke!==null&&r!==null&&PS(r,Ke.memoizedState.deps)?a.memoizedState=Ul(t,i,n,r):(xe.flags|=e,a.memoizedState=Ul(1|t,i,n,r))}function u2(e,t){np(8390656,8,e,t)}function zS(e,t){My(2048,8,e,t)}function YI(e){xe.flags|=4;var t=xe.updateQueue;if(t===null)t=_y(),xe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function lR(e){var t=wt().memoizedState;return YI({ref:t,nextImpl:e}),function(){if(Me&2)throw Error(U(440));return t.impl.apply(void 0,arguments)}}function cR(e,t){return My(4,2,e,t)}function uR(e,t){return My(4,4,e,t)}function fR(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 dR(e,t,n){n=n!=null?n.concat([e]):null,My(4,4,fR.bind(null,t,e),n)}function IS(){}function hR(e,t){var n=wt();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&PS(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function pR(e,t){var n=wt();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&PS(t,r[1]))return r[0];if(r=e(),to){Ci(!0);try{e()}finally{Ci(!1)}}return n.memoizedState=[r,t],r}function BS(e,t,n){return n===void 0||qa&1073741824&&!(Te&261930)?e.memoizedState=t:(e.memoizedState=n,e=nD(),xe.lanes|=e,Zi|=e,n)}function mR(e,t,n,r){return Qn(n,t)?n:Bl.current!==null?(e=BS(e,n,r),Qn(e,t)||(Ct=!0),e):!(qa&42)||qa&1073741824&&!(Te&261930)?(Ct=!0,e.memoizedState=n):(e=nD(),xe.lanes|=e,Zi|=e,t)}function yR(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,FS(e,!1,t,n);try{var l=a(),c=he.S;if(c!==null&&c(o,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var f=VI(l,r);Uu(e,t,f,Yn(e))}else Uu(e,t,r,Yn(e))}catch(d){Uu(e,t,{then:function(){},status:"rejected",reason:d},Yn())}finally{De.p=i,s!==null&&o.types!==null&&(s.types=o.types),he.T=s}}function XI(){}function g0(e,t,n,r){if(e.tag!==5)throw Error(U(476));var a=gR(e).queue;yR(e,a,t,Fs,n===null?XI:function(){return vR(e),n(r)})}function gR(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Fs,baseState:Fs,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:Fs},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function vR(e){var t=gR(e);t.next===null&&(t=e.alternate.memoizedState),Uu(e,t.next.queue,{},Yn())}function US(){return en(xf)}function bR(){return wt().memoizedState}function xR(){return wt().memoizedState}function WI(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Yn();e=zi(n);var r=Ii(t,e,n);r!==null&&(Nn(r,t,n),zu(r,t,n)),t={cache:ES()},e.payload=t;return}t=t.return}}function QI(e,t,n){var r=Yn();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ry(e)?wR(t,n):(n=wS(e,t,n,r),n!==null&&(Nn(n,e,r),jR(n,t,r)))}function SR(e,t,n){var r=Yn();Uu(e,t,n,r)}function Uu(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ry(e))wR(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,Qn(o,s))return Ny(e,t,a,0),Ye===null&&Ty(),!1}catch{}finally{}if(n=wS(e,t,a,r),n!==null)return Nn(n,e,r),jR(n,t,r),!0}return!1}function FS(e,t,n,r){if(r={lane:2,revertLane:QS(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ry(e)){if(t)throw Error(U(479))}else t=wS(e,n,r,2),t!==null&&Nn(t,e,2)}function Ry(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function wR(e,t){yl=Dp=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jR(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lM(e,n)}}var gf={readContext:en,use:Py,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useLayoutEffect:pt,useInsertionEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useSyncExternalStore:pt,useId:pt,useHostTransitionStatus:pt,useFormState:pt,useActionState:pt,useOptimistic:pt,useMemoCache:pt,useCacheRefresh:pt};gf.useEffectEvent=pt;var AR={readContext:en,use:Py,useCallback:function(e,t){return fn().memoizedState=[e,t===void 0?null:t],e},useContext:en,useEffect:u2,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,np(4194308,4,fR.bind(null,t,e),n)},useLayoutEffect:function(e,t){return np(4194308,4,e,t)},useInsertionEffect:function(e,t){np(4,2,e,t)},useMemo:function(e,t){var n=fn();t=t===void 0?null:t;var r=e();if(to){Ci(!0);try{e()}finally{Ci(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=fn();if(n!==void 0){var a=n(t);if(to){Ci(!0);try{n(t)}finally{Ci(!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=QI.bind(null,xe,e),[r.memoizedState,e]},useRef:function(e){var t=fn();return e={current:e},t.memoizedState=e},useState:function(e){e=m0(e);var t=e.queue,n=SR.bind(null,xe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:IS,useDeferredValue:function(e,t){var n=fn();return BS(n,e,t)},useTransition:function(){var e=m0(!1);return e=yR.bind(null,xe,e.queue,!0,!1),fn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=xe,a=fn();if(Ce){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Ye===null)throw Error(U(349));Te&127||QM(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,u2(JM.bind(null,r,i,e),[e]),r.flags|=2048,Ul(9,{destroy:void 0},ZM.bind(null,r,i,n,t),null),n},useId:function(){var e=fn(),t=Ye.identifierPrefix;if(Ce){var n=Xr,r=Yr;n=(r&~(1<<32-Gn(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=$p++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=HI++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:US,useFormState:o2,useActionState:o2,useOptimistic:function(e){var t=fn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=FS.bind(null,xe,!0,n),n.dispatch=t,[e,t]},useMemoCache:kS,useCacheRefresh:function(){return fn().memoizedState=WI.bind(null,xe)},useEffectEvent:function(e){var t=fn(),n={impl:e};return t.memoizedState=n,function(){if(Me&2)throw Error(U(440));return n.impl.apply(void 0,arguments)}}},VS={readContext:en,use:Py,useCallback:hR,useContext:en,useEffect:zS,useImperativeHandle:dR,useInsertionEffect:cR,useLayoutEffect:uR,useMemo:pR,useReducer:tp,useRef:oR,useState:function(){return tp(Ka)},useDebugValue:IS,useDeferredValue:function(e,t){var n=wt();return mR(n,Ke.memoizedState,e,t)},useTransition:function(){var e=tp(Ka)[0],t=wt().memoizedState;return[typeof e=="boolean"?e:Nd(e),t]},useSyncExternalStore:WM,useId:bR,useHostTransitionStatus:US,useFormState:l2,useActionState:l2,useOptimistic:function(e,t){var n=wt();return nR(n,Ke,e,t)},useMemoCache:kS,useCacheRefresh:xR};VS.useEffectEvent=lR;var OR={readContext:en,use:Py,useCallback:hR,useContext:en,useEffect:zS,useImperativeHandle:dR,useInsertionEffect:cR,useLayoutEffect:uR,useMemo:pR,useReducer:mv,useRef:oR,useState:function(){return mv(Ka)},useDebugValue:IS,useDeferredValue:function(e,t){var n=wt();return Ke===null?BS(n,e,t):mR(n,Ke.memoizedState,e,t)},useTransition:function(){var e=mv(Ka)[0],t=wt().memoizedState;return[typeof e=="boolean"?e:Nd(e),t]},useSyncExternalStore:WM,useId:bR,useHostTransitionStatus:US,useFormState:c2,useActionState:c2,useOptimistic:function(e,t){var n=wt();return Ke!==null?nR(n,Ke,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:kS,useCacheRefresh:xR};OR.useEffectEvent=lR;function yv(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:it({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var v0={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Yn(),a=zi(r);a.payload=t,n!=null&&(a.callback=n),t=Ii(e,a,r),t!==null&&(Nn(t,e,r),zu(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Yn(),a=zi(r);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Ii(e,a,r),t!==null&&(Nn(t,e,r),zu(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Yn(),r=zi(n);r.tag=2,t!=null&&(r.callback=t),t=Ii(e,r,n),t!==null&&(Nn(t,e,n),zu(t,e,n))}};function f2(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?!df(n,r)||!df(a,i):!0}function d2(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&&v0.enqueueReplaceState(t,t.state,null)}function no(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=it({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function ER(e){Tp(e)}function TR(e){console.error(e)}function NR(e){Tp(e)}function kp(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function h2(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 b0(e,t,n){return n=zi(n),n.tag=3,n.payload={element:null},n.callback=function(){kp(e,t)},n}function CR(e){return e=zi(e),e.tag=3,e}function _R(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(){h2(t,n,r)}}var s=n.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){h2(t,n,r),typeof a!="function"&&(Bi===null?Bi=new Set([this]):Bi.add(this));var o=r.stack;this.componentDidCatch(r.value,{componentStack:o!==null?o:""})})}function ZI(e,t,n,r,a){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&Nc(t,n,a,!0),n=Zn.current,n!==null){switch(n.tag){case 31:case 13:return yr===null?Up():n.alternate===null&&vt===0&&(vt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Pp?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Tv(e,r,a)),!1;case 22:return n.flags|=65536,r===Pp?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)),Tv(e,r,a)),!1}throw Error(U(435,n.tag))}return Tv(e,r,a),Up(),!1}if(Ce)return t=Zn.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==s0&&(e=Error(U(422),{cause:r}),pf(dr(e,n)))):(r!==s0&&(t=Error(U(423),{cause:r}),pf(dr(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=dr(r,n),a=b0(e.stateNode,r,a),pv(e,a),vt!==4&&(vt=2)),!1;var i=Error(U(520),{cause:r});if(i=dr(i,n),Hu===null?Hu=[i]:Hu.push(i),vt!==4&&(vt=2),t===null)return!0;r=dr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=b0(n.stateNode,r,e),pv(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"&&(Bi===null||!Bi.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,a=CR(a),_R(a,e,n,r),pv(n,a),!1}n=n.return}while(n!==null);return!1}var HS=Error(U(461)),Ct=!1;function Xt(e,t,n,r){t.child=e===null?HM(t,null,n,r):eo(t,e.child,n,r)}function p2(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 Js(t),r=MS(e,t,n,s,i,a),o=RS(),e!==null&&!Ct?(DS(e,t,a),Ga(e,t,a)):(Ce&&o&&AS(t),t.flags|=1,Xt(e,t,r,a),t.child)}function m2(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!jS(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,PR(e,t,i,r,a)):(e=Jh(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!qS(e,a)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:df,n(s,r)&&e.ref===t.ref)return Ga(e,t,a)}return t.flags|=1,e=ka(i,r),e.ref=t.ref,e.return=t,t.child=e}function PR(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(df(i,r)&&e.ref===t.ref)if(Ct=!1,t.pendingProps=r=i,qS(e,a))e.flags&131072&&(Ct=!0);else return t.lanes=e.lanes,Ga(e,t,a)}return x0(e,t,n,r,a)}function MR(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 y2(e,t,i,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ep(t,i!==null?i.cachePool:null),i!==null?a2(t,i):h0(),GM(t);else return r=t.lanes=536870912,y2(e,t,i!==null?i.baseLanes|n:n,n,r)}else i!==null?(ep(t,i.cachePool),a2(t,i),vi(),t.memoizedState=null):(e!==null&&ep(t,null),h0(),vi());return Xt(e,t,a,n),t.child}function Ou(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function y2(e,t,n,r,a){var i=TS();return i=i===null?null:{parent:Tt._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&ep(t,null),h0(),GM(t),e!==null&&Nc(e,t,r,!0),t.childLanes=a,null}function rp(e,t){return t=Lp({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function g2(e,t,n){return eo(t,e.child,null,n),e=rp(t,t.pendingProps),e.flags|=2,Un(t),t.memoizedState=null,e}function JI(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=rp(t,r),t.lanes=536870912,Ou(null,e);if(p0(t),(e=rt)?(e=AD(e,hr),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xi!==null?{id:Yr,overflow:Xr}:null,retryLane:536870912,hydrationErrors:null},n=LM(e),n.return=t,t.child=n,Zt=t,rt=null)):e=null,e===null)throw Wi(t);return t.lanes=536870912,null}return rp(t,r)}var i=e.memoizedState;if(i!==null){var s=i.dehydrated;if(p0(t),a)if(t.flags&256)t.flags&=-257,t=g2(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(U(558));else if(Ct||Nc(e,t,n,!1),a=(n&e.childLanes)!==0,Ct||a){if(r=Ye,r!==null&&(s=cM(r,n),s!==0&&s!==i.retryLane))throw i.retryLane=s,vo(e,s),Nn(r,e,s),HS;Up(),t=g2(e,t,n)}else e=i.treeContext,rt=gr(s.nextSibling),Zt=t,Ce=!0,Li=null,hr=!1,e!==null&&IM(t,e),t=rp(t,r),t.flags|=4096;return t}return e=ka(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ap(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 x0(e,t,n,r,a){return Js(t),n=MS(e,t,n,r,void 0,a),r=RS(),e!==null&&!Ct?(DS(e,t,a),Ga(e,t,a)):(Ce&&r&&AS(t),t.flags|=1,Xt(e,t,n,a),t.child)}function v2(e,t,n,r,a,i){return Js(t),t.updateQueue=null,n=XM(t,r,n,a),YM(e),r=RS(),e!==null&&!Ct?(DS(e,t,i),Ga(e,t,i)):(Ce&&r&&AS(t),t.flags|=1,Xt(e,t,n,i),t.child)}function b2(e,t,n,r,a){if(Js(t),t.stateNode===null){var i=Qo,s=n.contextType;typeof s=="object"&&s!==null&&(i=en(s)),i=new n(r,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=v0,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=r,i.state=t.memoizedState,i.refs={},CS(t),s=n.contextType,i.context=typeof s=="object"&&s!==null?en(s):Qo,i.state=t.memoizedState,s=n.getDerivedStateFromProps,typeof s=="function"&&(yv(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&&v0.enqueueReplaceState(i,i.state,null),Bu(t,r,i,a),Iu(),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=no(n,o);i.props=l;var c=i.context,f=n.contextType;s=Qo,typeof f=="object"&&f!==null&&(s=en(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||c!==s)&&d2(t,i,r,s),pi=!1;var h=t.memoizedState;i.state=h,Bu(t,r,i,a),Iu(),c=t.memoizedState,o||h!==c||pi?(typeof d=="function"&&(yv(t,n,d,r),c=t.memoizedState),(l=pi||f2(t,n,l,r,h,c,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=c),i.props=r,i.state=c,i.context=s,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,f0(e,t),s=t.memoizedProps,f=no(n,s),i.props=f,d=t.pendingProps,h=i.context,c=n.contextType,l=Qo,typeof c=="object"&&c!==null&&(l=en(c)),o=n.getDerivedStateFromProps,(c=typeof o=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==d||h!==l)&&d2(t,i,r,l),pi=!1,h=t.memoizedState,i.state=h,Bu(t,r,i,a),Iu();var p=t.memoizedState;s!==d||h!==p||pi||e!==null&&e.dependencies!==null&&_p(e.dependencies)?(typeof o=="function"&&(yv(t,n,o,r),p=t.memoizedState),(f=pi||f2(t,n,f,r,h,p,l)||e!==null&&e.dependencies!==null&&_p(e.dependencies))?(c||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,ap(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=eo(t,e.child,null,a),t.child=eo(t,null,n,a)):Xt(e,t,n,a),t.memoizedState=i.state,e=t.child):e=Ga(e,t,a),e}function x2(e,t,n,r){return Zs(),t.flags|=256,Xt(e,t,n,r),t.child}var gv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vv(e){return{baseLanes:e,cachePool:UM()}}function bv(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Hn),e}function RR(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:(xt.current&2)!==0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ce){if(a?gi(t):vi(),(e=rt)?(e=AD(e,hr),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xi!==null?{id:Yr,overflow:Xr}:null,retryLane:536870912,hydrationErrors:null},n=LM(e),n.return=t,t.child=n,Zt=t,rt=null)):e=null,e===null)throw Wi(t);return D0(e)?t.lanes=32:t.lanes=536870912,null}var o=r.children;return r=r.fallback,a?(vi(),a=t.mode,o=Lp({mode:"hidden",children:o},a),r=Vs(r,a,n,null),o.return=t,r.return=t,o.sibling=r,t.child=o,r=t.child,r.memoizedState=vv(n),r.childLanes=bv(e,s,n),t.memoizedState=gv,Ou(null,r)):(gi(t),S0(t,o))}var l=e.memoizedState;if(l!==null&&(o=l.dehydrated,o!==null)){if(i)t.flags&256?(gi(t),t.flags&=-257,t=xv(e,t,n)):t.memoizedState!==null?(vi(),t.child=e.child,t.flags|=128,t=null):(vi(),o=r.fallback,a=t.mode,r=Lp({mode:"visible",children:r.children},a),o=Vs(o,a,n,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,eo(t,e.child,null,n),r=t.child,r.memoizedState=vv(n),r.childLanes=bv(e,s,n),t.memoizedState=gv,t=Ou(null,r));else if(gi(t),D0(o)){if(s=o.nextSibling&&o.nextSibling.dataset,s)var c=s.dgst;s=c,r=Error(U(419)),r.stack="",r.digest=s,pf({value:r,source:null,stack:null}),t=xv(e,t,n)}else if(Ct||Nc(e,t,n,!1),s=(n&e.childLanes)!==0,Ct||s){if(s=Ye,s!==null&&(r=cM(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,vo(e,r),Nn(s,e,r),HS;R0(o)||Up(),t=xv(e,t,n)}else R0(o)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,rt=gr(o.nextSibling),Zt=t,Ce=!0,Li=null,hr=!1,e!==null&&IM(t,e),t=S0(t,r.children),t.flags|=4096);return t}return a?(vi(),o=r.fallback,a=t.mode,l=e.child,c=l.sibling,r=ka(l,{mode:"hidden",children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,c!==null?o=ka(c,o):(o=Vs(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,Ou(null,r),r=t.child,o=e.child.memoizedState,o===null?o=vv(n):(a=o.cachePool,a!==null?(l=Tt._currentValue,a=a.parent!==l?{parent:l,pool:l}:a):a=UM(),o={baseLanes:o.baseLanes|n,cachePool:a}),r.memoizedState=o,r.childLanes=bv(e,s,n),t.memoizedState=gv,Ou(e.child,r)):(gi(t),n=e.child,e=n.sibling,n=ka(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 S0(e,t){return t=Lp({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Lp(e,t){return e=Fn(22,e,null,t),e.lanes=0,e}function xv(e,t,n){return eo(t,e.child,null,n),e=S0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function S2(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),l0(e.return,t,n)}function Sv(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 DR(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;r=r.children;var s=xt.current,o=(s&2)!==0;if(o?(s=s&1|2,t.flags|=128):s&=1,Ze(xt,s),Xt(e,t,r,n),r=Ce?hf:0,!o&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&S2(e,n,t);else if(e.tag===19)S2(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&&Rp(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Sv(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&&Rp(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Sv(t,!0,n,null,i,r);break;case"together":Sv(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ga(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Zi|=t.lanes,!(n&t.childLanes))if(e!==null){if(Nc(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=ka(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ka(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function qS(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&_p(e)))}function eB(e,t,n){switch(t.tag){case 3:jp(t,t.stateNode.containerInfo),yi(t,Tt,e.memoizedState.cache),Zs();break;case 27:case 5:Xb(t);break;case 4:jp(t,t.stateNode.containerInfo);break;case 10:yi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,p0(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(gi(t),t.flags|=128,null):n&t.child.childLanes?RR(e,t,n):(gi(t),e=Ga(e,t,n),e!==null?e.sibling:null);gi(t);break;case 19:var a=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(Nc(e,t,n,!1),r=(n&t.childLanes)!==0),a){if(r)return DR(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ze(xt,xt.current),r)break;return null;case 22:return t.lanes=0,MR(e,t,n,t.pendingProps);case 24:yi(t,Tt,e.memoizedState.cache)}return Ga(e,t,n)}function $R(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ct=!0;else{if(!qS(e,n)&&!(t.flags&128))return Ct=!1,eB(e,t,n);Ct=!!(e.flags&131072)}else Ct=!1,Ce&&t.flags&1048576&&zM(t,hf,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=ys(t.elementType),t.type=e,typeof e=="function")jS(e)?(r=no(e,r),t.tag=1,t=b2(null,t,e,r,n)):(t.tag=0,t=x0(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===cS){t.tag=11,t=p2(null,t,e,r,n);break e}else if(a===uS){t.tag=14,t=m2(null,t,e,r,n);break e}}throw t=Gb(e)||e,Error(U(306,t,""))}}return t;case 0:return x0(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=no(r,t.pendingProps),b2(e,t,r,a,n);case 3:e:{if(jp(t,t.stateNode.containerInfo),e===null)throw Error(U(387));r=t.pendingProps;var i=t.memoizedState;a=i.element,f0(e,t),Bu(t,r,null,n);var s=t.memoizedState;if(r=s.cache,yi(t,Tt,r),r!==i.cache&&c0(t,[Tt],n,!0),Iu(),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=x2(e,t,r,n);break e}else if(r!==a){a=dr(Error(U(424)),t),pf(a),t=x2(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(rt=gr(e.firstChild),Zt=t,Ce=!0,Li=null,hr=!0,n=HM(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Zs(),r===a){t=Ga(e,t,n);break e}Xt(e,t,r,n)}t=t.child}return t;case 26:return ap(e,t),e===null?(n=U2(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ce||(n=t.type,e=t.pendingProps,r=qp(ki.current).createElement(n),r[Qt]=t,r[_n]=e,tn(r,n,e),Vt(r),t.stateNode=r):t.memoizedState=U2(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Xb(t),e===null&&Ce&&(r=t.stateNode=OD(t.type,t.pendingProps,ki.current),Zt=t,hr=!0,a=rt,ts(t.type)?($0=a,rt=gr(r.firstChild)):rt=a),Xt(e,t,t.pendingProps.children,n),ap(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ce&&((a=r=rt)&&(r=_B(r,t.type,t.pendingProps,hr),r!==null?(t.stateNode=r,Zt=t,rt=gr(r.firstChild),hr=!1,a=!0):a=!1),a||Wi(t)),Xb(t),a=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,r=i.children,P0(a,i)?r=null:s!==null&&P0(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=MS(e,t,qI,null,null,n),xf._currentValue=a),ap(e,t),Xt(e,t,r,n),t.child;case 6:return e===null&&Ce&&((e=n=rt)&&(n=PB(n,t.pendingProps,hr),n!==null?(t.stateNode=n,Zt=t,rt=null,e=!0):e=!1),e||Wi(t)),null;case 13:return RR(e,t,n);case 4:return jp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=eo(t,null,r,n):Xt(e,t,r,n),t.child;case 11:return p2(e,t,t.type,t.pendingProps,n);case 7:return Xt(e,t,t.pendingProps,n),t.child;case 8:return Xt(e,t,t.pendingProps.children,n),t.child;case 12:return Xt(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,yi(t,t.type,r.value),Xt(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Js(t),a=en(a),r=r(a),t.flags|=1,Xt(e,t,r,n),t.child;case 14:return m2(e,t,t.type,t.pendingProps,n);case 15:return PR(e,t,t.type,t.pendingProps,n);case 19:return DR(e,t,n);case 31:return JI(e,t,n);case 22:return MR(e,t,n,t.pendingProps);case 24:return Js(t),r=en(Tt),e===null?(a=TS(),a===null&&(a=Ye,i=ES(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:r,cache:a},CS(t),yi(t,Tt,a)):(e.lanes&n&&(f0(e,t),Bu(t,null,null,n),Iu()),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),yi(t,Tt,r)):(r=i.cache,yi(t,Tt,r),r!==a.cache&&c0(t,[Tt],n,!0))),Xt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(U(156,t.tag))}function ga(e){e.flags|=4}function wv(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(iD())e.flags|=8192;else throw qs=Pp,NS}else e.flags&=-16777217}function w2(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!ND(t))if(iD())e.flags|=8192;else throw qs=Pp,NS}function mh(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?sM():536870912,e.lanes|=t,Fl|=t)}function ru(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 et(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 tB(e,t,n){var r=t.pendingProps;switch(OS(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return et(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),La(Tt),kl(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(_o(t)?ga(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,hv())),et(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(ga(t),i!==null?(et(t),w2(t,i)):(et(t),wv(t,a,null,r,n))):i?i!==e.memoizedState?(ga(t),et(t),w2(t,i)):(et(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&ga(t),et(t),wv(t,a,e,r,n)),null;case 27:if(Ap(t),n=ki.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ga(t);else{if(!r){if(t.stateNode===null)throw Error(U(166));return et(t),null}e=na.current,_o(t)?QA(t):(e=OD(a,r,n),t.stateNode=e,ga(t))}return et(t),null;case 5:if(Ap(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ga(t);else{if(!r){if(t.stateNode===null)throw Error(U(166));return et(t),null}if(i=na.current,_o(t))QA(t);else{var s=qp(ki.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[Qt]=t,i[_n]=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(tn(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&&ga(t)}}return et(t),wv(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ga(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(U(166));if(e=ki.current,_o(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Zt,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Qt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||SD(e.nodeValue,n)),e||Wi(t,!0)}else e=qp(e).createTextNode(r),e[Qt]=t,t.stateNode=e}return et(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=_o(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[Qt]=t}else Zs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;et(t),e=!1}else n=hv(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Un(t),t):(Un(t),null);if(t.flags&128)throw Error(U(558))}return et(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=_o(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[Qt]=t}else Zs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;et(t),a=!1}else a=hv(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Un(t),t):(Un(t),null)}return Un(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),mh(t,t.updateQueue),et(t),null);case 4:return kl(),e===null&&ZS(t.stateNode.containerInfo),et(t),null;case 10:return La(t.type),et(t),null;case 19:if(qt(xt),r=t.memoizedState,r===null)return et(t),null;if(a=(t.flags&128)!==0,i=r.rendering,i===null)if(a)ru(r,!1);else{if(vt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Rp(e),i!==null){for(t.flags|=128,ru(r,!1),e=i.updateQueue,t.updateQueue=e,mh(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)kM(n,e),n=n.sibling;return Ze(xt,xt.current&1|2),Ce&&Oa(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&qn()>Ip&&(t.flags|=128,a=!0,ru(r,!1),t.lanes=4194304)}else{if(!a)if(e=Rp(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,mh(t,e),ru(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!Ce)return et(t),null}else 2*qn()-r.renderingStartTime>Ip&&n!==536870912&&(t.flags|=128,a=!0,ru(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=qn(),e.sibling=null,n=xt.current,Ze(xt,a?n&1|2:n&1),Ce&&Oa(t,r.treeForkCount),e):(et(t),null);case 22:case 23:return Un(t),_S(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),n=t.updateQueue,n!==null&&mh(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&&qt(Hs),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),La(Tt),et(t),null;case 25:return null;case 30:return null}throw Error(U(156,t.tag))}function nB(e,t){switch(OS(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return La(Tt),kl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ap(t),null;case 31:if(t.memoizedState!==null){if(Un(t),t.alternate===null)throw Error(U(340));Zs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Un(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Zs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return qt(xt),null;case 4:return kl(),null;case 10:return La(t.type),null;case 22:case 23:return Un(t),_S(),e!==null&&qt(Hs),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return La(Tt),null;case 25:return null;default:return null}}function kR(e,t){switch(OS(t),t.tag){case 3:La(Tt),kl();break;case 26:case 27:case 5:Ap(t);break;case 4:kl();break;case 31:t.memoizedState!==null&&Un(t);break;case 13:Un(t);break;case 19:qt(xt);break;case 10:La(t.type);break;case 22:case 23:Un(t),_S(),e!==null&&qt(Hs);break;case 24:La(Tt)}}function Cd(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 Qi(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,c=o;try{c()}catch(f){Ue(a,l,f)}}}r=r.next}while(r!==i)}}catch(f){Ue(t,t.return,f)}}function LR(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{KM(t,n)}catch(r){Ue(e,e.return,r)}}}function zR(e,t,n){n.props=no(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Ue(e,t,r)}}function Fu(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 Wr(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 IR(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 jv(e,t,n){try{var r=e.stateNode;AB(r,e.type,n,t),r[_n]=t}catch(a){Ue(e,e.return,a)}}function BR(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ts(e.type)||e.tag===4}function Av(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||BR(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&&ts(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 w0(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=_a));else if(r!==4&&(r===27&&ts(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(w0(e,t,n),e=e.sibling;e!==null;)w0(e,t,n),e=e.sibling}function zp(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&&ts(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(zp(e,t,n),e=e.sibling;e!==null;)zp(e,t,n),e=e.sibling}function UR(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);tn(t,r,n),t[Qt]=e,t[_n]=n}catch(i){Ue(e,e.return,i)}}var Na=!1,Et=!1,Ov=!1,j2=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function rB(e,t){if(e=e.containerInfo,C0=Xp,e=NM(e),xS(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,c=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&&++c===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(_0={focusedElem:e,selectionRange:n},Xp=!1,Ft=t;Ft!==null;)if(t=Ft,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ft=e;else for(;Ft!==null;){switch(t=Ft,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=no(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)M0(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":M0(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,Ft=e;break}Ft=t.return}}function FR(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ba(e,n),r&4&&Cd(5,n);break;case 1:if(ba(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(s){Ue(n,n.return,s)}else{var a=no(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){Ue(n,n.return,s)}}r&64&&LR(n),r&512&&Fu(n,n.return);break;case 3:if(ba(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{KM(e,t)}catch(s){Ue(n,n.return,s)}}break;case 27:t===null&&r&4&&UR(n);case 26:case 5:ba(e,n),t===null&&r&4&&IR(n),r&512&&Fu(n,n.return);break;case 12:ba(e,n);break;case 31:ba(e,n),r&4&&qR(e,n);break;case 13:ba(e,n),r&4&&KR(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=dB.bind(null,n),MB(e,n))));break;case 22:if(r=n.memoizedState!==null||Na,!r){t=t!==null&&t.memoizedState!==null||Et,a=Na;var i=Et;Na=r,(Et=t)&&!i?wa(e,n,(n.subtreeFlags&8772)!==0):ba(e,n),Na=a,Et=i}break;case 30:break;default:ba(e,n)}}function VR(e){var t=e.alternate;t!==null&&(e.alternate=null,VR(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&pS(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 lt=null,An=!1;function va(e,t,n){for(n=n.child;n!==null;)HR(e,t,n),n=n.sibling}function HR(e,t,n){if(Kn&&typeof Kn.onCommitFiberUnmount=="function")try{Kn.onCommitFiberUnmount(wd,n)}catch{}switch(n.tag){case 26:Et||Wr(n,t),va(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Et||Wr(n,t);var r=lt,a=An;ts(n.type)&&(lt=n.stateNode,An=!1),va(e,t,n),Ku(n.stateNode),lt=r,An=a;break;case 5:Et||Wr(n,t);case 6:if(r=lt,a=An,lt=null,va(e,t,n),lt=r,An=a,lt!==null)if(An)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(n.stateNode)}catch(i){Ue(n,t,i)}else try{lt.removeChild(n.stateNode)}catch(i){Ue(n,t,i)}break;case 18:lt!==null&&(An?(e=lt,k2(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Kl(e)):k2(lt,n.stateNode));break;case 4:r=lt,a=An,lt=n.stateNode.containerInfo,An=!0,va(e,t,n),lt=r,An=a;break;case 0:case 11:case 14:case 15:Qi(2,n,t),Et||Qi(4,n,t),va(e,t,n);break;case 1:Et||(Wr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&zR(n,t,r)),va(e,t,n);break;case 21:va(e,t,n);break;case 22:Et=(r=Et)||n.memoizedState!==null,va(e,t,n),Et=r;break;default:va(e,t,n)}}function qR(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Kl(e)}catch(n){Ue(t,t.return,n)}}}function KR(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Kl(e)}catch(n){Ue(t,t.return,n)}}function aB(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new j2),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new j2),t;default:throw Error(U(435,e.tag))}}function yh(e,t){var n=aB(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var a=hB.bind(null,e,r);r.then(a,a)}})}function xn(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(ts(o.type)){lt=o.stateNode,An=!1;break e}break;case 5:lt=o.stateNode,An=!1;break e;case 3:case 4:lt=o.stateNode.containerInfo,An=!0;break e}o=o.return}if(lt===null)throw Error(U(160));HR(i,s,a),lt=null,An=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)GR(t,e),t=t.sibling}var Pr=null;function GR(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:xn(t,e),Sn(e),r&4&&(Qi(3,e,e.return),Cd(3,e),Qi(5,e,e.return));break;case 1:xn(t,e),Sn(e),r&512&&(Et||n===null||Wr(n,n.return)),r&64&&Na&&(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=Pr;if(xn(t,e),Sn(e),r&512&&(Et||n===null||Wr(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[Od]||i[Qt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(r),a.head.insertBefore(i,a.querySelector("head > title"))),tn(i,r,n),i[Qt]=e,Vt(i),r=i;break e;case"link":var s=V2("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),tn(i,r,n),a.head.appendChild(i);break;case"meta":if(s=V2("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),tn(i,r,n),a.head.appendChild(i);break;default:throw Error(U(468,r))}i[Qt]=e,Vt(i),r=i}e.stateNode=r}else H2(a,e.type,e.stateNode);else e.stateNode=F2(a,r,e.memoizedProps);else i!==r?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,r===null?H2(a,e.type,e.stateNode):F2(a,r,e.memoizedProps)):r===null&&e.stateNode!==null&&jv(e,e.memoizedProps,n.memoizedProps)}break;case 27:xn(t,e),Sn(e),r&512&&(Et||n===null||Wr(n,n.return)),n!==null&&r&4&&jv(e,e.memoizedProps,n.memoizedProps);break;case 5:if(xn(t,e),Sn(e),r&512&&(Et||n===null||Wr(n,n.return)),e.flags&32){a=e.stateNode;try{zl(a,"")}catch(m){Ue(e,e.return,m)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,jv(e,a,n!==null?n.memoizedProps:a)),r&1024&&(Ov=!0);break;case 6:if(xn(t,e),Sn(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(op=null,a=Pr,Pr=Kp(t.containerInfo),xn(t,e),Pr=a,Sn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Kl(t.containerInfo)}catch(m){Ue(e,e.return,m)}Ov&&(Ov=!1,YR(e));break;case 4:r=Pr,Pr=Kp(e.stateNode.containerInfo),xn(t,e),Sn(e),Pr=r;break;case 12:xn(t,e),Sn(e);break;case 31:xn(t,e),Sn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,yh(e,r)));break;case 13:xn(t,e),Sn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Dy=qn()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,yh(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,c=Na,f=Et;if(Na=c||a,Et=f||l,xn(t,e),Et=f,Na=c,Sn(e),r&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Na||Et||gs(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?L2(p,!0):L2(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,yh(e,n))));break;case 19:xn(t,e),Sn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,yh(e,r)));break;case 30:break;case 21:break;default:xn(t,e),Sn(e)}}function Sn(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(BR(r)){n=r;break}r=r.return}if(n==null)throw Error(U(160));switch(n.tag){case 27:var a=n.stateNode,i=Av(e);zp(e,i,a);break;case 5:var s=n.stateNode;n.flags&32&&(zl(s,""),n.flags&=-33);var o=Av(e);zp(e,o,s);break;case 3:case 4:var l=n.stateNode.containerInfo,c=Av(e);w0(e,c,l);break;default:throw Error(U(161))}}catch(f){Ue(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function YR(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;YR(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ba(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)FR(e,t.alternate,t),t=t.sibling}function gs(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Qi(4,t,t.return),gs(t);break;case 1:Wr(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&zR(t,t.return,n),gs(t);break;case 27:Ku(t.stateNode);case 26:case 5:Wr(t,t.return),gs(t);break;case 22:t.memoizedState===null&&gs(t);break;case 30:gs(t);break;default:gs(t)}e=e.sibling}}function wa(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:wa(a,i,n),Cd(4,i);break;case 1:if(wa(a,i,n),r=i,a=r.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(c){Ue(r,r.return,c)}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++)qM(l[a],o)}catch(c){Ue(r,r.return,c)}}n&&s&64&&LR(i),Fu(i,i.return);break;case 27:UR(i);case 26:case 5:wa(a,i,n),n&&r===null&&s&4&&IR(i),Fu(i,i.return);break;case 12:wa(a,i,n);break;case 31:wa(a,i,n),n&&s&4&&qR(a,i);break;case 13:wa(a,i,n),n&&s&4&&KR(a,i);break;case 22:i.memoizedState===null&&wa(a,i,n),Fu(i,i.return);break;case 30:break;default:wa(a,i,n)}t=t.sibling}}function KS(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&&Td(n))}function GS(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Td(e))}function Tr(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)XR(e,t,n,r),t=t.sibling}function XR(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Tr(e,t,n,r),a&2048&&Cd(9,t);break;case 1:Tr(e,t,n,r);break;case 3:Tr(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&&Td(e)));break;case 12:if(a&2048){Tr(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 Tr(e,t,n,r);break;case 31:Tr(e,t,n,r);break;case 13:Tr(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,s=t.alternate,t.memoizedState!==null?i._visibility&2?Tr(e,t,n,r):Vu(e,t):i._visibility&2?Tr(e,t,n,r):(i._visibility|=2,Uo(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),a&2048&&KS(s,t);break;case 24:Tr(e,t,n,r),a&2048&&GS(t.alternate,t);break;default:Tr(e,t,n,r)}}function Uo(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,c=s.flags;switch(s.tag){case 0:case 11:case 15:Uo(i,s,o,l,a),Cd(8,s);break;case 23:break;case 22:var f=s.stateNode;s.memoizedState!==null?f._visibility&2?Uo(i,s,o,l,a):Vu(i,s):(f._visibility|=2,Uo(i,s,o,l,a)),a&&c&2048&&KS(s.alternate,s);break;case 24:Uo(i,s,o,l,a),a&&c&2048&&GS(s.alternate,s);break;default:Uo(i,s,o,l,a)}t=t.sibling}}function Vu(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:Vu(n,r),a&2048&&KS(r.alternate,r);break;case 24:Vu(n,r),a&2048&&GS(r.alternate,r);break;default:Vu(n,r)}t=t.sibling}}var Eu=8192;function Po(e,t,n){if(e.subtreeFlags&Eu)for(e=e.child;e!==null;)WR(e,t,n),e=e.sibling}function WR(e,t,n){switch(e.tag){case 26:Po(e,t,n),e.flags&Eu&&e.memoizedState!==null&&HB(n,Pr,e.memoizedState,e.memoizedProps);break;case 5:Po(e,t,n);break;case 3:case 4:var r=Pr;Pr=Kp(e.stateNode.containerInfo),Po(e,t,n),Pr=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Eu,Eu=16777216,Po(e,t,n),Eu=r):Po(e,t,n));break;default:Po(e,t,n)}}function QR(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 au(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Ft=r,JR(r,e)}QR(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ZR(e),e=e.sibling}function ZR(e){switch(e.tag){case 0:case 11:case 15:au(e),e.flags&2048&&Qi(9,e,e.return);break;case 3:au(e);break;case 12:au(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ip(e)):au(e);break;default:au(e)}}function ip(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Ft=r,JR(r,e)}QR(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Qi(8,t,t.return),ip(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,ip(t));break;default:ip(t)}e=e.sibling}}function JR(e,t){for(;Ft!==null;){var n=Ft;switch(n.tag){case 0:case 11:case 15:Qi(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:Td(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Ft=r;else e:for(n=e;Ft!==null;){r=Ft;var a=r.sibling,i=r.return;if(VR(r),r===n){Ft=null;break e}if(a!==null){a.return=i,Ft=a;break e}Ft=i}}}var iB={getCacheForType:function(e){var t=en(Tt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return en(Tt).controller.signal}},sB=typeof WeakMap=="function"?WeakMap:Map,Me=0,Ye=null,je=null,Te=0,Be=0,kn=null,Pi=!1,_c=!1,YS=!1,Ya=0,vt=0,Zi=0,Ks=0,XS=0,Hn=0,Fl=0,Hu=null,On=null,j0=!1,Dy=0,eD=0,Ip=1/0,Bp=null,Bi=null,Dt=0,Ui=null,Vl=null,za=0,A0=0,O0=null,tD=null,qu=0,E0=null;function Yn(){return Me&2&&Te!==0?Te&-Te:he.T!==null?QS():uM()}function nD(){if(Hn===0)if(!(Te&536870912)||Ce){var e=lh;lh<<=1,!(lh&3932160)&&(lh=262144),Hn=e}else Hn=536870912;return e=Zn.current,e!==null&&(e.flags|=32),Hn}function Nn(e,t,n){(e===Ye&&(Be===2||Be===9)||e.cancelPendingCommit!==null)&&(Hl(e,0),Mi(e,Te,Hn,!1)),Ad(e,n),(!(Me&2)||e!==Ye)&&(e===Ye&&(!(Me&2)&&(Ks|=n),vt===4&&Mi(e,Te,Hn,!1)),fa(e))}function rD(e,t,n){if(Me&6)throw Error(U(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||jd(e,t),a=r?cB(e,t):Ev(e,t,!0),i=r;do{if(a===0){_c&&!r&&Mi(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!oB(n)){a=Ev(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=Hu;var l=o.current.memoizedState.isDehydrated;if(l&&(Hl(o,s).flags|=256),s=Ev(o,s,!1),s!==2){if(YS&&!l){o.errorRecoveryDisabledLanes|=i,Ks|=i,a=4;break e}i=On,On=a,i!==null&&(On===null?On=i:On.push.apply(On,i))}a=s}if(i=!1,a!==2)continue}}if(a===1){Hl(e,0),Mi(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:Mi(r,t,Hn,!Pi);break e;case 2:On=null;break;case 3:case 5:break;default:throw Error(U(329))}if((t&62914560)===t&&(a=Dy+300-qn(),10<a)){if(Mi(r,t,Hn,!Pi),jy(r,0,!0)!==0)break e;za=t,r.timeoutHandle=jD(A2.bind(null,r,n,On,Bp,j0,t,Hn,Ks,Fl,Pi,i,"Throttled",-0,0),a);break e}A2(r,n,On,Bp,j0,t,Hn,Ks,Fl,Pi,i,null,-0,0)}}break}while(!0);fa(e)}function A2(e,t,n,r,a,i,s,o,l,c,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:_a},WR(t,i,d);var m=(i&62914560)===i?Dy-qn():(i&4194048)===i?eD-qn():0;if(m=qB(d,m),m!==null){za=i,e.cancelPendingCommit=m(E2.bind(null,e,t,i,n,r,a,s,o,l,f,d,null,h,p)),Mi(e,i,s,!c);return}}E2(e,t,i,n,r,a,s,o,l)}function oB(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(!Qn(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 Mi(e,t,n,r){t&=~XS,t&=~Ks,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var i=31-Gn(a),s=1<<i;r[i]=-1,a&=~s}n!==0&&oM(e,n,t)}function $y(){return Me&6?!0:(_d(0),!1)}function WS(){if(je!==null){if(Be===0)var e=je.return;else e=je,Pa=bo=null,$S(e),ml=null,mf=0,e=je;for(;e!==null;)kR(e.alternate,e),e=e.return;je=null}}function Hl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,TB(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),za=0,WS(),Ye=e,je=n=ka(e.current,null),Te=t,Be=0,kn=null,Pi=!1,_c=jd(e,t),YS=!1,Fl=Hn=XS=Ks=Zi=vt=0,On=Hu=null,j0=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var a=31-Gn(r),i=1<<a;t|=e[a],r&=~i}return Ya=t,Ty(),n}function aD(e,t){xe=null,he.H=gf,t===Cc||t===Cy?(t=n2(),Be=3):t===NS?(t=n2(),Be=4):Be=t===HS?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,kn=t,je===null&&(vt=1,kp(e,dr(t,e.current)))}function iD(){var e=Zn.current;return e===null?!0:(Te&4194048)===Te?yr===null:(Te&62914560)===Te||Te&536870912?e===yr:!1}function sD(){var e=he.H;return he.H=gf,e===null?gf:e}function oD(){var e=he.A;return he.A=iB,e}function Up(){vt=4,Pi||(Te&4194048)!==Te&&Zn.current!==null||(_c=!0),!(Zi&134217727)&&!(Ks&134217727)||Ye===null||Mi(Ye,Te,Hn,!1)}function Ev(e,t,n){var r=Me;Me|=2;var a=sD(),i=oD();(Ye!==e||Te!==t)&&(Bp=null,Hl(e,t)),t=!1;var s=vt;e:do try{if(Be!==0&&je!==null){var o=je,l=kn;switch(Be){case 8:WS(),s=6;break e;case 3:case 2:case 9:case 6:Zn.current===null&&(t=!0);var c=Be;if(Be=0,kn=null,el(e,o,l,c),n&&_c){s=0;break e}break;default:c=Be,Be=0,kn=null,el(e,o,l,c)}}lB(),s=vt;break}catch(f){aD(e,f)}while(!0);return t&&e.shellSuspendCounter++,Pa=bo=null,Me=r,he.H=a,he.A=i,je===null&&(Ye=null,Te=0,Ty()),s}function lB(){for(;je!==null;)lD(je)}function cB(e,t){var n=Me;Me|=2;var r=sD(),a=oD();Ye!==e||Te!==t?(Bp=null,Ip=qn()+500,Hl(e,t)):_c=jd(e,t);e:do try{if(Be!==0&&je!==null){t=je;var i=kn;t:switch(Be){case 1:Be=0,kn=null,el(e,t,i,1);break;case 2:case 9:if(t2(i)){Be=0,kn=null,O2(t);break}t=function(){Be!==2&&Be!==9||Ye!==e||(Be=7),fa(e)},i.then(t,t);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:t2(i)?(Be=0,kn=null,O2(t)):(Be=0,kn=null,el(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?ND(s):o.stateNode.complete){Be=0,kn=null;var l=o.sibling;if(l!==null)je=l;else{var c=o.return;c!==null?(je=c,ky(c)):je=null}break t}}Be=0,kn=null,el(e,t,i,5);break;case 6:Be=0,kn=null,el(e,t,i,6);break;case 8:WS(),vt=6;break e;default:throw Error(U(462))}}uB();break}catch(f){aD(e,f)}while(!0);return Pa=bo=null,he.H=r,he.A=a,Me=n,je!==null?0:(Ye=null,Te=0,Ty(),vt)}function uB(){for(;je!==null&&!Rz();)lD(je)}function lD(e){var t=$R(e.alternate,e,Ya);e.memoizedProps=e.pendingProps,t===null?ky(e):je=t}function O2(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=v2(n,t,t.pendingProps,t.type,void 0,Te);break;case 11:t=v2(n,t,t.pendingProps,t.type.render,t.ref,Te);break;case 5:$S(t);default:kR(n,t),t=je=kM(t,Ya),t=$R(n,t,Ya)}e.memoizedProps=e.pendingProps,t===null?ky(e):je=t}function el(e,t,n,r){Pa=bo=null,$S(t),ml=null,mf=0;var a=t.return;try{if(ZI(e,a,t,n,Te)){vt=1,kp(e,dr(n,e.current)),je=null;return}}catch(i){if(a!==null)throw je=a,i;vt=1,kp(e,dr(n,e.current)),je=null;return}t.flags&32768?(Ce||r===1?e=!0:_c||Te&536870912?e=!1:(Pi=e=!0,(r===2||r===9||r===3||r===6)&&(r=Zn.current,r!==null&&r.tag===13&&(r.flags|=16384))),cD(t,e)):ky(t)}function ky(e){var t=e;do{if(t.flags&32768){cD(t,Pi);return}e=t.return;var n=tB(t.alternate,t,Ya);if(n!==null){je=n;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);vt===0&&(vt=5)}function cD(e,t){do{var n=nB(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);vt=6,je=null}function E2(e,t,n,r,a,i,s,o,l){e.cancelPendingCommit=null;do Ly();while(Dt!==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|=SS,Vz(e,n,i,s,o,l),e===Ye&&(je=Ye=null,Te=0),Vl=t,Ui=e,za=n,A0=i,O0=a,tD=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,pB(Op,function(){return pD(),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{rB(e,t,n)}finally{Me=s,De.p=a,he.T=r}}Dt=1,uD(),fD(),dD()}}function uD(){if(Dt===1){Dt=0;var e=Ui,t=Vl,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{GR(t,e);var i=_0,s=NM(e.containerInfo),o=i.focusedElem,l=i.selectionRange;if(s!==o&&o&&o.ownerDocument&&TM(o.ownerDocument.documentElement,o)){if(l!==null&&xS(o)){var c=l.start,f=l.end;if(f===void 0&&(f=c),"selectionStart"in o)o.selectionStart=c,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),b=l.end===void 0?g:Math.min(l.end,m);!p.extend&&g>b&&(s=b,b=g,g=s);var y=YA(o,g),v=YA(o,b);if(y&&v&&(p.rangeCount!==1||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var x=d.createRange();x.setStart(y.node,y.offset),p.removeAllRanges(),g>b?(p.addRange(x),p.extend(v.node,v.offset)):(x.setEnd(v.node,v.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}}Xp=!!C0,_0=C0=null}finally{Me=a,De.p=r,he.T=n}}e.current=t,Dt=2}}function fD(){if(Dt===2){Dt=0;var e=Ui,t=Vl,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{FR(e,t.alternate,t)}finally{Me=a,De.p=r,he.T=n}}Dt=3}}function dD(){if(Dt===4||Dt===3){Dt=0,Dz();var e=Ui,t=Vl,n=za,r=tD;t.subtreeFlags&10256||t.flags&10256?Dt=5:(Dt=0,Vl=Ui=null,hD(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Bi=null),hS(n),t=t.stateNode,Kn&&typeof Kn.onCommitFiberRoot=="function")try{Kn.onCommitFiberRoot(wd,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}}za&3&&Ly(),fa(e),a=e.pendingLanes,n&261930&&a&42?e===E0?qu++:(qu=0,E0=e):qu=0,_d(0)}}function hD(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Td(t)))}function Ly(){return uD(),fD(),dD(),pD()}function pD(){if(Dt!==5)return!1;var e=Ui,t=A0;A0=0;var n=hS(za),r=he.T,a=De.p;try{De.p=32>n?32:n,he.T=null,n=O0,O0=null;var i=Ui,s=za;if(Dt=0,Vl=Ui=null,za=0,Me&6)throw Error(U(331));var o=Me;if(Me|=4,ZR(i.current),XR(i,i.current,s,n),Me=o,_d(0,!1),Kn&&typeof Kn.onPostCommitFiberRoot=="function")try{Kn.onPostCommitFiberRoot(wd,i)}catch{}return!0}finally{De.p=a,he.T=r,hD(e,t)}}function T2(e,t,n){t=dr(n,t),t=b0(e.stateNode,t,2),e=Ii(e,t,2),e!==null&&(Ad(e,2),fa(e))}function Ue(e,t,n){if(e.tag===3)T2(e,e,n);else for(;t!==null;){if(t.tag===3){T2(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Bi===null||!Bi.has(r))){e=dr(n,e),n=CR(2),r=Ii(t,n,2),r!==null&&(_R(n,r,t,e),Ad(r,2),fa(r));break}}t=t.return}}function Tv(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new sB;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)||(YS=!0,a.add(n),e=fB.bind(null,e,t,n),t.then(e,e))}function fB(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ye===e&&(Te&n)===n&&(vt===4||vt===3&&(Te&62914560)===Te&&300>qn()-Dy?!(Me&2)&&Hl(e,0):XS|=n,Fl===Te&&(Fl=0)),fa(e)}function mD(e,t){t===0&&(t=sM()),e=vo(e,t),e!==null&&(Ad(e,t),fa(e))}function dB(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),mD(e,n)}function hB(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),mD(e,n)}function pB(e,t){return fS(e,t)}var Fp=null,Fo=null,T0=!1,Vp=!1,Nv=!1,Ri=0;function fa(e){e!==Fo&&e.next===null&&(Fo===null?Fp=Fo=e:Fo=Fo.next=e),Vp=!0,T0||(T0=!0,yB())}function _d(e,t){if(!Nv&&Vp){Nv=!0;do for(var n=!1,r=Fp;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-Gn(42|e)+1)-1,i&=a&~(s&~o),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,N2(r,i))}else i=Te,i=jy(r,r===Ye?i:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(i&3)||jd(r,i)||(n=!0,N2(r,i));r=r.next}while(n);Nv=!1}}function mB(){yD()}function yD(){Vp=T0=!1;var e=0;Ri!==0&&EB()&&(e=Ri);for(var t=qn(),n=null,r=Fp;r!==null;){var a=r.next,i=gD(r,t);i===0?(r.next=null,n===null?Fp=a:n.next=a,a===null&&(Fo=n)):(n=r,(e!==0||i&3)&&(Vp=!0)),r=a}Dt!==0&&Dt!==5||_d(e),Ri!==0&&(Ri=0)}function gD(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var s=31-Gn(i),o=1<<s,l=a[s];l===-1?(!(o&n)||o&r)&&(a[s]=Fz(o,t)):l<=t&&(e.expiredLanes|=o),i&=~o}if(t=Ye,n=Te,n=jy(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&&nv(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||jd(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&nv(r),hS(n)){case 2:case 8:n=aM;break;case 32:n=Op;break;case 268435456:n=iM;break;default:n=Op}return r=vD.bind(null,e),n=fS(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&nv(r),e.callbackPriority=2,e.callbackNode=null,2}function vD(e,t){if(Dt!==0&&Dt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ly()&&e.callbackNode!==n)return null;var r=Te;return r=jy(e,e===Ye?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(rD(e,r,t),gD(e,qn()),e.callbackNode!=null&&e.callbackNode===n?vD.bind(null,e):null)}function N2(e,t){if(Ly())return null;rD(e,t,!0)}function yB(){NB(function(){Me&6?fS(rM,mB):yD()})}function QS(){if(Ri===0){var e=Il;e===0&&(e=oh,oh<<=1,!(oh&261888)&&(oh=256)),Ri=e}return Ri}function C2(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Wh(""+e)}function _2(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 gB(e,t,n,r,a){if(t==="submit"&&n&&n.stateNode===a){var i=C2((a[_n]||null).action),s=r.submitter;s&&(t=(t=s[_n]||null)?C2(t.formAction):s.getAttribute("formAction"),t!==null&&(i=t,s=null));var o=new Ay("action","action",null,r,a);e.push({event:o,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ri!==0){var l=s?_2(a,s):new FormData(a);g0(n,{pending:!0,data:l,method:a.method,action:i},null,l)}}else typeof i=="function"&&(o.preventDefault(),l=s?_2(a,s):new FormData(a),g0(n,{pending:!0,data:l,method:a.method,action:i},i,l))},currentTarget:a}]})}}for(var Cv=0;Cv<i0.length;Cv++){var _v=i0[Cv],vB=_v.toLowerCase(),bB=_v[0].toUpperCase()+_v.slice(1);Ir(vB,"on"+bB)}Ir(_M,"onAnimationEnd");Ir(PM,"onAnimationIteration");Ir(MM,"onAnimationStart");Ir("dblclick","onDoubleClick");Ir("focusin","onFocus");Ir("focusout","onBlur");Ir($I,"onTransitionRun");Ir(kI,"onTransitionStart");Ir(LI,"onTransitionCancel");Ir(RM,"onTransitionEnd");Ll("onMouseEnter",["mouseout","mouseover"]);Ll("onMouseLeave",["mouseout","mouseover"]);Ll("onPointerEnter",["pointerout","pointerover"]);Ll("onPointerLeave",["pointerout","pointerover"]);mo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));mo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));mo("onBeforeInput",["compositionend","keypress","textInput","paste"]);mo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));mo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));mo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vf="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(" "),xB=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(vf));function bD(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,c=o.currentTarget;if(o=o.listener,l!==i&&a.isPropagationStopped())break e;i=o,a.currentTarget=c;try{i(a)}catch(f){Tp(f)}a.currentTarget=null,i=l}else for(s=0;s<r.length;s++){if(o=r[s],l=o.instance,c=o.currentTarget,o=o.listener,l!==i&&a.isPropagationStopped())break e;i=o,a.currentTarget=c;try{i(a)}catch(f){Tp(f)}a.currentTarget=null,i=l}}}}function we(e,t){var n=t[Qb];n===void 0&&(n=t[Qb]=new Set);var r=e+"__bubble";n.has(r)||(xD(t,e,2,!1),n.add(r))}function Pv(e,t,n){var r=0;t&&(r|=4),xD(n,e,r,t)}var gh="_reactListening"+Math.random().toString(36).slice(2);function ZS(e){if(!e[gh]){e[gh]=!0,fM.forEach(function(n){n!=="selectionchange"&&(xB.has(n)||Pv(n,!1,e),Pv(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[gh]||(t[gh]=!0,Pv("selectionchange",!1,t))}}function xD(e,t,n,r){switch(RD(t)){case 2:var a=YB;break;case 8:a=XB;break;default:a=nw}n=a.bind(null,t,n,e),a=void 0,!n0||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 Mv(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=qo(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}bM(function(){var c=i,f=yS(n),d=[];e:{var h=DM.get(e);if(h!==void 0){var p=Ay,m=e;switch(e){case"keypress":if(Zh(n)===0)break e;case"keydown":case"keyup":p=hI;break;case"focusin":m="focus",p=ov;break;case"focusout":m="blur",p=ov;break;case"beforeblur":case"afterblur":p=ov;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=zA;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=tI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=yI;break;case _M:case PM:case MM:p=aI;break;case RM:p=vI;break;case"scroll":case"scrollend":p=Jz;break;case"wheel":p=xI;break;case"copy":case"cut":case"paste":p=sI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=BA;break;case"toggle":case"beforetoggle":p=wI}var g=(t&4)!==0,b=!g&&(e==="scroll"||e==="scrollend"),y=g?h!==null?h+"Capture":null:h;g=[];for(var v=c,x;v!==null;){var w=v;if(x=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||x===null||y===null||(w=uf(v,y),w!=null&&g.push(bf(v,w,x))),b)break;v=v.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!==t0&&(m=n.relatedTarget||n.fromElement)&&(qo(m)||m[Ec]))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=c,m=m?qo(m):null,m!==null&&(b=Sd(m),g=m.tag,m!==b||g!==5&&g!==27&&g!==6)&&(m=null)):(p=null,m=c),p!==m)){if(g=zA,w="onMouseLeave",y="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(g=BA,w="onPointerLeave",y="onPointerEnter",v="pointer"),b=p==null?h:Au(p),x=m==null?h:Au(m),h=new g(w,v+"leave",p,n,f),h.target=b,h.relatedTarget=x,w=null,qo(f)===c&&(g=new g(y,v+"enter",m,n,f),g.target=x,g.relatedTarget=b,w=g),b=w,p&&m)t:{for(g=SB,y=p,v=m,x=0,w=y;w;w=g(w))x++;w=0;for(var S=v;S;S=g(S))w++;for(;0<x-w;)y=g(y),x--;for(;0<w-x;)v=g(v),w--;for(;x--;){if(y===v||v!==null&&y===v.alternate){g=y;break t}y=g(y),v=g(v)}g=null}else g=null;p!==null&&P2(d,h,p,g,!1),m!==null&&b!==null&&P2(d,b,m,g,!0)}}e:{if(h=c?Au(c):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var j=HA;else if(VA(h))if(OM)j=MI;else{j=_I;var O=CI}else p=h.nodeName,!p||p.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?c&&mS(c.elementType)&&(j=HA):j=PI;if(j&&(j=j(e,c))){AM(d,j,n,f);break e}O&&O(e,h,c),e==="focusout"&&c&&h.type==="number"&&c.memoizedProps.value!=null&&e0(h,"number",h.value)}switch(O=c?Au(c):window,e){case"focusin":(VA(O)||O.contentEditable==="true")&&(Yo=O,r0=c,ku=null);break;case"focusout":ku=r0=Yo=null;break;case"mousedown":a0=!0;break;case"contextmenu":case"mouseup":case"dragend":a0=!1,XA(d,n,f);break;case"selectionchange":if(DI)break;case"keydown":case"keyup":XA(d,n,f)}var E;if(bS)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Go?wM(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(SM&&n.locale!=="ko"&&(Go||T!=="onCompositionStart"?T==="onCompositionEnd"&&Go&&(E=xM()):(_i=f,gS="value"in _i?_i.value:_i.textContent,Go=!0)),O=Hp(c,T),0<O.length&&(T=new IA(T,e,null,n,f),d.push({event:T,listeners:O}),E?T.data=E:(E=jM(n),E!==null&&(T.data=E)))),(E=AI?OI(e,n):EI(e,n))&&(T=Hp(c,"onBeforeInput"),0<T.length&&(O=new IA("onBeforeInput","beforeinput",null,n,f),d.push({event:O,listeners:T}),O.data=E)),gB(d,e,c,n,f)}bD(d,t)})}function bf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hp(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=uf(e,n),a!=null&&r.unshift(bf(e,a,i)),a=uf(e,t),a!=null&&r.push(bf(e,a,i))),e.tag===3)return r;e=e.return}return[]}function SB(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function P2(e,t,n,r,a){for(var i=t._reactName,s=[];n!==null&&n!==r;){var o=n,l=o.alternate,c=o.stateNode;if(o=o.tag,l!==null&&l===r)break;o!==5&&o!==26&&o!==27||c===null||(l=c,a?(c=uf(n,i),c!=null&&s.unshift(bf(n,c,l))):a||(c=uf(n,i),c!=null&&s.push(bf(n,c,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var wB=/\r\n?/g,jB=/\u0000|\uFFFD/g;function M2(e){return(typeof e=="string"?e:""+e).replace(wB,`
`).replace(jB,"")}function SD(e,t){return t=M2(t),M2(e)===t}function He(e,t,n,r,a,i){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||zl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&zl(e,""+r);break;case"className":uh(e,"class",r);break;case"tabIndex":uh(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":uh(e,n,r);break;case"style":vM(e,r,i);break;case"data":if(t!=="object"){uh(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=Wh(""+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"&&He(e,t,"name",a.name,a,null),He(e,t,"formEncType",a.formEncType,a,null),He(e,t,"formMethod",a.formMethod,a,null),He(e,t,"formTarget",a.formTarget,a,null)):(He(e,t,"encType",a.encType,a,null),He(e,t,"method",a.method,a,null),He(e,t,"target",a.target,a,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Wh(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=_a);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=Wh(""+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),Xh(e,"popover",r);break;case"xlinkActuate":ya(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ya(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ya(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ya(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ya(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ya(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ya(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ya(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ya(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Xh(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=Qz.get(n)||n,Xh(e,n,r))}}function N0(e,t,n,r,a,i){switch(n){case"style":vM(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"?zl(e,r):(typeof r=="number"||typeof r=="bigint")&&zl(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=_a);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!dM.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[_n]||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,""):Xh(e,n,r)}}}function tn(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:He(e,t,i,s,n,null)}}a&&He(e,t,"srcSet",n.srcSet,n,null),r&&He(e,t,"src",n.src,n,null);return;case"input":we("invalid",e);var o=i=s=a=null,l=null,c=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":c=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:He(e,t,r,f,n,null)}}mM(e,i,o,l,c,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:He(e,t,a,o,n,null)}t=i,n=s,e.multiple=!!r,t!=null?dl(e,!!r,t,!1):n!=null&&dl(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:He(e,t,s,o,n,null)}gM(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:He(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<vf.length;r++)we(vf[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(c in n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(U(137,t));default:He(e,t,c,r,n,null)}return;default:if(mS(t)){for(f in n)n.hasOwnProperty(f)&&(r=n[f],r!==void 0&&N0(e,t,f,r,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(r=n[o],r!=null&&He(e,t,o,r,n,null))}function AB(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,c=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)||He(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":c=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&&He(e,t,h,p,r,d)}}Jb(e,s,o,l,c,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)||He(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&&He(e,t,a,i,r,l)}t=o,n=s,r=p,h!=null?dl(e,!!n,h,!1):!!r!=!!n&&(t!=null?dl(e,!!n,t,!0):dl(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:He(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&&He(e,t,s,a,r,i)}yM(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:He(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:He(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)&&He(e,t,g,null,r,h);for(c in r)if(h=r[c],p=n[c],r.hasOwnProperty(c)&&h!==p&&(h!=null||p!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(U(137,t));break;default:He(e,t,c,h,r,p)}return;default:if(mS(t)){for(var b in n)h=n[b],n.hasOwnProperty(b)&&h!==void 0&&!r.hasOwnProperty(b)&&N0(e,t,b,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||N0(e,t,f,h,r,p);return}}for(var y in n)h=n[y],n.hasOwnProperty(y)&&h!=null&&!r.hasOwnProperty(y)&&He(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||He(e,t,d,h,r,p)}function R2(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function OB(){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&&R2(s)){for(s=0,o=a.responseEnd,r+=1;r<n.length;r++){var l=n[r],c=l.startTime;if(c>o)break;var f=l.transferSize,d=l.initiatorType;f&&R2(d)&&(l=l.responseEnd,s+=f*(l<o?1:(o-c)/(l-c)))}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 C0=null,_0=null;function qp(e){return e.nodeType===9?e:e.ownerDocument}function D2(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 wD(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 P0(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 Rv=null;function EB(){var e=window.event;return e&&e.type==="popstate"?e===Rv?!1:(Rv=e,!0):(Rv=null,!1)}var jD=typeof setTimeout=="function"?setTimeout:void 0,TB=typeof clearTimeout=="function"?clearTimeout:void 0,$2=typeof Promise=="function"?Promise:void 0,NB=typeof queueMicrotask=="function"?queueMicrotask:typeof $2<"u"?function(e){return $2.resolve(null).then(e).catch(CB)}:jD;function CB(e){setTimeout(function(){throw e})}function ts(e){return e==="head"}function k2(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),Kl(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")Ku(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ku(n);for(var i=n.firstChild;i;){var s=i.nextSibling,o=i.nodeName;i[Od]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=s}}else n==="body"&&Ku(e.ownerDocument.body);n=a}while(n);Kl(t)}function L2(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 M0(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":M0(n),pS(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function _B(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[Od])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=gr(e.nextSibling),e===null)break}return null}function PB(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=gr(e.nextSibling),e===null))return null;return e}function AD(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=gr(e.nextSibling),e===null))return null;return e}function R0(e){return e.data==="$?"||e.data==="$~"}function D0(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function MB(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 gr(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 $0=null;function z2(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return gr(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function I2(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 OD(e,t,n){switch(t=qp(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 Ku(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);pS(e)}var vr=new Map,B2=new Set;function Kp(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ei=De.d;De.d={f:RB,r:DB,D:$B,C:kB,L:LB,m:zB,X:BB,S:IB,M:UB};function RB(){var e=ei.f(),t=$y();return e||t}function DB(e){var t=Tc(e);t!==null&&t.tag===5&&t.type==="form"?vR(t):ei.r(e)}var Pc=typeof document>"u"?null:document;function ED(e,t,n){var r=Pc;if(r&&typeof t=="string"&&t){var a=fr(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),B2.has(a)||(B2.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),tn(t,"link",e),Vt(t),r.head.appendChild(t)))}}function $B(e){ei.D(e),ED("dns-prefetch",e,null)}function kB(e,t){ei.C(e,t),ED("preconnect",e,t)}function LB(e,t,n){ei.L(e,t,n);var r=Pc;if(r&&e&&t){var a='link[rel="preload"][as="'+fr(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+fr(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+fr(n.imageSizes)+'"]')):a+='[href="'+fr(e)+'"]';var i=a;switch(t){case"style":i=ql(e);break;case"script":i=Mc(e)}vr.has(i)||(e=it({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),vr.set(i,e),r.querySelector(a)!==null||t==="style"&&r.querySelector(Pd(i))||t==="script"&&r.querySelector(Md(i))||(t=r.createElement("link"),tn(t,"link",e),Vt(t),r.head.appendChild(t)))}}function zB(e,t){ei.m(e,t);var n=Pc;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+fr(r)+'"][href="'+fr(e)+'"]',i=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Mc(e)}if(!vr.has(i)&&(e=it({rel:"modulepreload",href:e},t),vr.set(i,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Md(i)))return}r=n.createElement("link"),tn(r,"link",e),Vt(r),n.head.appendChild(r)}}}function IB(e,t,n){ei.S(e,t,n);var r=Pc;if(r&&e){var a=fl(r).hoistableStyles,i=ql(e);t=t||"default";var s=a.get(i);if(!s){var o={loading:0,preload:null};if(s=r.querySelector(Pd(i)))o.loading=5;else{e=it({rel:"stylesheet",href:e,"data-precedence":t},n),(n=vr.get(i))&&JS(e,n);var l=s=r.createElement("link");Vt(l),tn(l,"link",e),l._p=new Promise(function(c,f){l.onload=c,l.onerror=f}),l.addEventListener("load",function(){o.loading|=1}),l.addEventListener("error",function(){o.loading|=2}),o.loading|=4,sp(s,t,r)}s={type:"stylesheet",instance:s,count:1,state:o},a.set(i,s)}}}function BB(e,t){ei.X(e,t);var n=Pc;if(n&&e){var r=fl(n).hoistableScripts,a=Mc(e),i=r.get(a);i||(i=n.querySelector(Md(a)),i||(e=it({src:e,async:!0},t),(t=vr.get(a))&&ew(e,t),i=n.createElement("script"),Vt(i),tn(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function UB(e,t){ei.M(e,t);var n=Pc;if(n&&e){var r=fl(n).hoistableScripts,a=Mc(e),i=r.get(a);i||(i=n.querySelector(Md(a)),i||(e=it({src:e,async:!0,type:"module"},t),(t=vr.get(a))&&ew(e,t),i=n.createElement("script"),Vt(i),tn(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function U2(e,t,n,r){var a=(a=ki.current)?Kp(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=ql(n.href),n=fl(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=ql(n.href);var i=fl(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(Pd(e)))&&!i._p&&(s.instance=i,s.state.loading=5),vr.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},vr.set(e,n),i||FB(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=Mc(n),n=fl(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 ql(e){return'href="'+fr(e)+'"'}function Pd(e){return'link[rel="stylesheet"]['+e+"]"}function TD(e){return it({},e,{"data-precedence":e.precedence,precedence:null})}function FB(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}),tn(t,"link",n),Vt(t),e.head.appendChild(t))}function Mc(e){return'[src="'+fr(e)+'"]'}function Md(e){return"script[async]"+e}function F2(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+fr(n.href)+'"]');if(r)return t.instance=r,Vt(r),r;var a=it({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Vt(r),tn(r,"style",a),sp(r,n.precedence,e),t.instance=r;case"stylesheet":a=ql(n.href);var i=e.querySelector(Pd(a));if(i)return t.state.loading|=4,t.instance=i,Vt(i),i;r=TD(n),(a=vr.get(a))&&JS(r,a),i=(e.ownerDocument||e).createElement("link"),Vt(i);var s=i;return s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),tn(i,"link",r),t.state.loading|=4,sp(i,n.precedence,e),t.instance=i;case"script":return i=Mc(n.src),(a=e.querySelector(Md(i)))?(t.instance=a,Vt(a),a):(r=n,(a=vr.get(i))&&(r=it({},n),ew(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),Vt(a),tn(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,sp(r,n.precedence,e));return t.instance}function sp(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 JS(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ew(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var op=null;function V2(e,t,n){if(op===null){var r=new Map,a=op=new Map;a.set(n,r)}else a=op,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[Od]||i[Qt]||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 H2(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function VB(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 ND(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function HB(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=ql(r.href),i=t.querySelector(Pd(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Gp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,Vt(i);return}i=t.ownerDocument||t,r=TD(r),(a=vr.get(a))&&JS(r,a),i=i.createElement("link"),Vt(i);var s=i;s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),tn(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=Gp.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Dv=0;function qB(e,t){return e.stylesheets&&e.count===0&&lp(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&lp(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Dv===0&&(Dv=62500*OB());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&lp(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Dv?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function Gp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yp=null;function lp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yp=new Map,t.forEach(KB,e),Yp=null,Gp.call(e))}function KB(e,t){if(!(t.state.loading&4)){var n=Yp.get(e);if(n)var r=n.get(null);else{n=new Map,Yp.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=Gp.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 xf={$$typeof:Ca,Provider:null,Consumer:null,_currentValue:Fs,_currentValue2:Fs,_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=rv(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rv(0),this.hiddenUpdates=rv(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 CD(e,t,n,r,a,i,s,o,l,c,f,d){return e=new GB(e,t,n,s,l,c,f,d,o),t=1,i===!0&&(t|=24),i=Fn(3,null,null,t),e.current=i,i.stateNode=e,t=ES(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},CS(i),e}function _D(e){return e?(e=Qo,e):Qo}function PD(e,t,n,r,a,i){a=_D(a),r.context===null?r.context=a:r.pendingContext=a,r=zi(t),r.payload={element:n},i=i===void 0?null:i,i!==null&&(r.callback=i),n=Ii(e,r,t),n!==null&&(Nn(n,e,t),zu(n,e,t))}function q2(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function tw(e,t){q2(e,t),(e=e.alternate)&&q2(e,t)}function MD(e){if(e.tag===13||e.tag===31){var t=vo(e,67108864);t!==null&&Nn(t,e,67108864),tw(e,67108864)}}function K2(e){if(e.tag===13||e.tag===31){var t=Yn();t=dS(t);var n=vo(e,t);n!==null&&Nn(n,e,t),tw(e,t)}}var Xp=!0;function YB(e,t,n,r){var a=he.T;he.T=null;var i=De.p;try{De.p=2,nw(e,t,n,r)}finally{De.p=i,he.T=a}}function XB(e,t,n,r){var a=he.T;he.T=null;var i=De.p;try{De.p=8,nw(e,t,n,r)}finally{De.p=i,he.T=a}}function nw(e,t,n,r){if(Xp){var a=k0(r);if(a===null)Mv(e,t,r,Wp,n),G2(e,r);else if(QB(a,e,t,n,r))r.stopPropagation();else if(G2(e,r),t&4&&-1<WB.indexOf(e)){for(;a!==null;){var i=Tc(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var s=ms(i.pendingLanes);if(s!==0){var o=i;for(o.pendingLanes|=2,o.entangledLanes|=2;s;){var l=1<<31-Gn(s);o.entanglements[1]|=l,s&=~l}fa(i),!(Me&6)&&(Ip=qn()+500,_d(0))}}break;case 31:case 13:o=vo(i,2),o!==null&&Nn(o,i,2),$y(),tw(i,2)}if(i=k0(r),i===null&&Mv(e,t,r,Wp,n),i===a)break;a=i}a!==null&&r.stopPropagation()}else Mv(e,t,r,null,n)}}function k0(e){return e=yS(e),rw(e)}var Wp=null;function rw(e){if(Wp=null,e=qo(e),e!==null){var t=Sd(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=ZP(t),e!==null)return e;e=null}else if(n===31){if(e=JP(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 Wp=e,null}function RD(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($z()){case rM:return 2;case aM:return 8;case Op:case kz:return 32;case iM:return 268435456;default:return 32}default:return 32}}var L0=!1,Fi=null,Vi=null,Hi=null,Sf=new Map,wf=new Map,bi=[],WB="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 G2(e,t){switch(e){case"focusin":case"focusout":Fi=null;break;case"dragenter":case"dragleave":Vi=null;break;case"mouseover":case"mouseout":Hi=null;break;case"pointerover":case"pointerout":Sf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wf.delete(t.pointerId)}}function iu(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=Tc(t),t!==null&&MD(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function QB(e,t,n,r,a){switch(t){case"focusin":return Fi=iu(Fi,e,t,n,r,a),!0;case"dragenter":return Vi=iu(Vi,e,t,n,r,a),!0;case"mouseover":return Hi=iu(Hi,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return Sf.set(i,iu(Sf.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,wf.set(i,iu(wf.get(i)||null,e,t,n,r,a)),!0}return!1}function DD(e){var t=qo(e.target);if(t!==null){var n=Sd(t);if(n!==null){if(t=n.tag,t===13){if(t=ZP(n),t!==null){e.blockedOn=t,PA(e.priority,function(){K2(n)});return}}else if(t===31){if(t=JP(n),t!==null){e.blockedOn=t,PA(e.priority,function(){K2(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 cp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=k0(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);t0=r,n.target.dispatchEvent(r),t0=null}else return t=Tc(n),t!==null&&MD(t),e.blockedOn=n,!1;t.shift()}return!0}function Y2(e,t,n){cp(e)&&n.delete(t)}function ZB(){L0=!1,Fi!==null&&cp(Fi)&&(Fi=null),Vi!==null&&cp(Vi)&&(Vi=null),Hi!==null&&cp(Hi)&&(Hi=null),Sf.forEach(Y2),wf.forEach(Y2)}function vh(e,t){e.blockedOn===t&&(e.blockedOn=null,L0||(L0=!0,kt.unstable_scheduleCallback(kt.unstable_NormalPriority,ZB)))}var bh=null;function X2(e){bh!==e&&(bh=e,kt.unstable_scheduleCallback(kt.unstable_NormalPriority,function(){bh===e&&(bh=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(rw(r||n)===null)continue;break}var i=Tc(n);i!==null&&(e.splice(t,3),t-=3,g0(i,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function Kl(e){function t(l){return vh(l,e)}Fi!==null&&vh(Fi,e),Vi!==null&&vh(Vi,e),Hi!==null&&vh(Hi,e),Sf.forEach(t),wf.forEach(t);for(var n=0;n<bi.length;n++){var r=bi[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<bi.length&&(n=bi[0],n.blockedOn===null);)DD(n),n.blockedOn===null&&bi.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[_n]||null;if(typeof i=="function")s||X2(n);else if(s){var o=null;if(i&&i.hasAttribute("formAction")){if(a=i,s=i[_n]||null)o=s.formAction;else if(rw(a)!==null)continue}else o=s.action;typeof o=="function"?n[r+1]=o:(n.splice(r,3),r-=3),X2(n)}}}function $D(){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 aw(e){this._internalRoot=e}zy.prototype.render=aw.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));var n=t.current,r=Yn();PD(n,r,e,t,null,null)};zy.prototype.unmount=aw.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;PD(e.current,2,null,e,null,null),$y(),t[Ec]=null}};function zy(e){this._internalRoot=e}zy.prototype.unstable_scheduleHydration=function(e){if(e){var t=uM();e={blockedOn:null,target:e,priority:t};for(var n=0;n<bi.length&&t!==0&&t<bi[n].priority;n++);bi.splice(n,0,e),n===0&&DD(e)}};var W2=WP.version;if(W2!=="19.2.7")throw Error(U(527,W2,"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=Nz(t),e=e!==null?eM(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 xh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xh.isDisabled&&xh.supportsFiber)try{wd=xh.inject(JB),Kn=xh}catch{}}Sy.createRoot=function(e,t){if(!QP(e))throw Error(U(299));var n=!1,r="",a=ER,i=TR,s=NR;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=CD(e,1,!1,null,null,n,r,null,a,i,s,$D),e[Ec]=t.current,ZS(e),new aw(t)};Sy.hydrateRoot=function(e,t,n){if(!QP(e))throw Error(U(299));var r=!1,a="",i=ER,s=TR,o=NR,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=CD(e,1,!0,t,n??null,r,a,l,i,s,o,$D),t.context=_D(null),n=t.current,r=Yn(),r=dS(r),a=zi(r),a.callback=null,Ii(n,a,r),n=r,t.current.lanes=n,Ad(t,n),fa(t),e[Ec]=t.current,ZS(e),new zy(t)};Sy.version="19.2.7";function kD(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kD)}catch(e){console.error(e)}}kD(),HP.exports=Sy;var e8=HP.exports;const t8=Ie(e8);var Rd=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(){}},Rs,Si,jl,OP,n8=(OP=class extends Rd{constructor(){super();ce(this,Rs);ce(this,Si);ce(this,jl);ee(this,jl,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){R(this,Si)||this.setEventListener(R(this,jl))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,Si))==null||t.call(this),ee(this,Si,void 0))}setEventListener(t){var n;ee(this,jl,t),(n=R(this,Si))==null||n.call(this),ee(this,Si,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){R(this,Rs)!==t&&(ee(this,Rs,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof R(this,Rs)=="boolean"?R(this,Rs):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Rs=new WeakMap,Si=new WeakMap,jl=new WeakMap,OP),iw=new n8,r8={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},wi,rS,EP,a8=(EP=class{constructor(){ce(this,wi,r8);ce(this,rS,!1)}setTimeoutProvider(e){ee(this,wi,e)}setTimeout(e,t){return R(this,wi).setTimeout(e,t)}clearTimeout(e){R(this,wi).clearTimeout(e)}setInterval(e,t){return R(this,wi).setInterval(e,t)}clearInterval(e){R(this,wi).clearInterval(e)}},wi=new WeakMap,rS=new WeakMap,EP),As=new a8;function i8(e){setTimeout(e,0)}var s8=typeof window>"u"||"Deno"in globalThis;function En(){}function o8(e,t){return typeof e=="function"?e(t):e}function z0(e){return typeof e=="number"&&e>=0&&e!==1/0}function LD(e,t){return Math.max(e+(t||0)-Date.now(),0)}function qi(e,t){return typeof e=="function"?e(t):e}function In(e,t){return typeof e=="function"?e(t):e}function Q2(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:s,stale:o}=e;if(s){if(r){if(t.queryHash!==sw(s,t.options))return!1}else if(!Af(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 Z2(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(jf(t.options.mutationKey)!==jf(i))return!1}else if(!Af(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function sw(e,t){return((t==null?void 0:t.queryKeyHashFn)||jf)(e)}function jf(e){return JSON.stringify(e,(t,n)=>B0(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Af(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Af(e[n],t[n])):!1}var l8=Object.prototype.hasOwnProperty;function zD(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=J2(e)&&J2(t);if(!r&&!(B0(e)&&B0(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 c=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:l8.call(e,d))&&c++;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&&c++}return i===o&&c===i?e:l}function I0(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 J2(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function B0(e){if(!eO(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!eO(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function eO(e){return Object.prototype.toString.call(e)==="[object Object]"}function c8(e){return new Promise(t=>{As.setTimeout(t,e)})}function U0(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?zD(e,t):t}function u8(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function f8(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ow=Symbol();function ID(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===ow?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function BD(e,t){return typeof e=="function"?e(...t):!!e}function d8(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 Of=(()=>{let e=()=>s8;return{isServer(){return e()},setIsServer(t){e=t}}})();function F0(){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 h8=i8;function p8(){let e=[],t=0,n=o=>{o()},r=o=>{o()},a=h8;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 Wt=p8(),Al,ji,Ol,TP,m8=(TP=class extends Rd{constructor(){super();ce(this,Al,!0);ce(this,ji);ce(this,Ol);ee(this,Ol,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,ji)||this.setEventListener(R(this,Ol))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,ji))==null||t.call(this),ee(this,ji,void 0))}setEventListener(t){var n;ee(this,Ol,t),(n=R(this,ji))==null||n.call(this),ee(this,ji,t(this.setOnline.bind(this)))}setOnline(t){R(this,Al)!==t&&(ee(this,Al,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return R(this,Al)}},Al=new WeakMap,ji=new WeakMap,Ol=new WeakMap,TP),Qp=new m8;function y8(e){return Math.min(1e3*2**e,3e4)}function UD(e){return(e??"online")==="online"?Qp.isOnline():!0}var V0=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function FD(e){let t=!1,n=0,r;const a=F0(),i=()=>a.status!=="pending",s=g=>{var b;if(!i()){const y=new V0(g);h(y),(b=e.onCancel)==null||b.call(e,y)}},o=()=>{t=!0},l=()=>{t=!1},c=()=>iw.isFocused()&&(e.networkMode==="always"||Qp.isOnline())&&e.canRun(),f=()=>UD(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 b;r=y=>{(i()||c())&&g(y)},(b=e.onPause)==null||b.call(e)}).then(()=>{var g;r=void 0,i()||(g=e.onContinue)==null||g.call(e)}),m=()=>{if(i())return;let g;const b=n===0?e.initialPromise:void 0;try{g=b??e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(d).catch(y=>{var j;if(i())return;const v=e.retry??(Of.isServer()?0:3),x=e.retryDelay??y8,w=typeof x=="function"?x(n,y):x,S=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,y);if(t||!S){h(y);return}n++,(j=e.onFail)==null||j.call(e,n,y),c8(w).then(()=>c()?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 Ds,NP,VD=(NP=class{constructor(){ce(this,Ds)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),z0(this.gcTime)&&ee(this,Ds,As.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Of.isServer()?1/0:5*60*1e3))}clearGcTimeout(){R(this,Ds)!==void 0&&(As.clearTimeout(R(this,Ds)),ee(this,Ds,void 0))}},Ds=new WeakMap,NP);function g8(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 c=async()=>{let g=!1;const b=x=>{d8(x,()=>t.signal,()=>g=!0)},y=ID(t.options,t.fetchOptions),v=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 M={client:t.client,queryKey:t.queryKey,pageParam:w,direction:S?"backward":"forward",meta:t.options.meta};return b(M),M})(),E=await y(O),{maxPages:T}=t.options,N=S?f8:u8;return{pages:N(x.pages,E,T),pageParams:N(x.pageParams,w,T)}};if(a&&i.length){const x=a==="backward",w=x?v8:tO,S={pages:i,pageParams:s},j=w(r,S);o=await v(S,j,x)}else{const x=e??i.length;do{const w=l===0?s[0]??r.initialPageParam:tO(r,o);if(l>0&&w==null)break;o=await v(o,w),l++}while(l<x)}return o};t.options.persister?t.fetchFn=()=>{var g,b;return(b=(g=t.options).persister)==null?void 0:b.call(g,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function tO(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 v8(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 El,$s,Tl,sr,ks,It,yd,Ls,zn,HD,ja,CP,b8=(CP=class extends VD{constructor(t){super();ce(this,zn);ce(this,El);ce(this,$s);ce(this,Tl);ce(this,sr);ce(this,ks);ce(this,It);ce(this,yd);ce(this,Ls);ee(this,Ls,!1),ee(this,yd,t.defaultOptions),this.setOptions(t.options),this.observers=[],ee(this,ks,t.client),ee(this,sr,R(this,ks).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ee(this,$s,rO(this.options)),this.state=t.state??R(this,$s),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return R(this,El)}get promise(){var t;return(t=R(this,It))==null?void 0:t.promise}setOptions(t){if(this.options={...R(this,yd),...t},t!=null&&t._type&&ee(this,El,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=rO(this.options);n.data!==void 0&&(this.setState(nO(n.data,n.dataUpdatedAt)),ee(this,$s,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,sr).remove(this)}setData(t,n){const r=U0(this.state.data,t,this.options);return Oe(this,zn,ja).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){Oe(this,zn,ja).call(this,{type:"setState",state:t})}cancel(t){var r,a;const n=(r=R(this,It))==null?void 0:r.promise;return(a=R(this,It))==null||a.cancel(t),n?n.then(En).catch(En):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return R(this,$s)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>In(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ow||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>qi(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:!LD(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,It))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,It))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),R(this,sr).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,It)&&(R(this,Ls)||Oe(this,zn,HD).call(this)?R(this,It).cancel({revert:!0}):R(this,It).cancelRetry()),this.scheduleGc()),R(this,sr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Oe(this,zn,ja).call(this,{type:"invalidate"})}async fetch(t,n){var c,f,d,h,p,m,g,b,y,v,x;if(this.state.fetchStatus!=="idle"&&((c=R(this,It))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(R(this,It))return R(this,It).continueRetry(),R(this,It).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:()=>(ee(this,Ls,!0),r.signal)})},i=()=>{const w=ID(this.options,n),j=(()=>{const O={client:R(this,ks),queryKey:this.queryKey,meta:this.meta};return a(O),O})();return ee(this,Ls,!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,ks),state:this.state,fetchFn:i};return a(w),w})(),l=R(this,El)==="infinite"?g8(this.options.pages):this.options.behavior;l==null||l.onFetch(o,this),ee(this,Tl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=o.fetchOptions)==null?void 0:f.meta))&&Oe(this,zn,ja).call(this,{type:"fetch",meta:(d=o.fetchOptions)==null?void 0:d.meta}),ee(this,It,FD({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,onCancel:w=>{w instanceof V0&&w.revert&&this.setState({...R(this,Tl),fetchStatus:"idle"}),r.abort()},onFail:(w,S)=>{Oe(this,zn,ja).call(this,{type:"failed",failureCount:w,error:S})},onPause:()=>{Oe(this,zn,ja).call(this,{type:"pause"})},onContinue:()=>{Oe(this,zn,ja).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}));try{const w=await R(this,It).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(p=(h=R(this,sr).config).onSuccess)==null||p.call(h,w,this),(g=(m=R(this,sr).config).onSettled)==null||g.call(m,w,this.state.error,this),w}catch(w){if(w instanceof V0){if(w.silent)return R(this,It).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw Oe(this,zn,ja).call(this,{type:"error",error:w}),(y=(b=R(this,sr).config).onError)==null||y.call(b,w,this),(x=(v=R(this,sr).config).onSettled)==null||x.call(v,this.state.data,w,this),w}finally{this.scheduleGc()}}},El=new WeakMap,$s=new WeakMap,Tl=new WeakMap,sr=new WeakMap,ks=new WeakMap,It=new WeakMap,yd=new WeakMap,Ls=new WeakMap,zn=new WeakSet,HD=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},ja=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,...qD(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...nO(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ee(this,Tl,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),Wt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),R(this,sr).notify({query:this,type:"updated",action:t})})},CP);function qD(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:UD(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function nO(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function rO(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 jn,Ne,gd,un,zs,Nl,Ea,Ai,vd,Cl,_l,Is,Bs,Oi,Pl,ze,Tu,H0,q0,K0,G0,Y0,X0,W0,KD,_P,x8=(_P=class extends Rd{constructor(t,n){super();ce(this,ze);ce(this,jn);ce(this,Ne);ce(this,gd);ce(this,un);ce(this,zs);ce(this,Nl);ce(this,Ea);ce(this,Ai);ce(this,vd);ce(this,Cl);ce(this,_l);ce(this,Is);ce(this,Bs);ce(this,Oi);ce(this,Pl,new Set);this.options=n,ee(this,jn,t),ee(this,Ai,null),ee(this,Ea,F0()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(R(this,Ne).addObserver(this),aO(R(this,Ne),this.options)?Oe(this,ze,Tu).call(this):this.updateResult(),Oe(this,ze,G0).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Q0(R(this,Ne),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Q0(R(this,Ne),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Oe(this,ze,Y0).call(this),Oe(this,ze,X0).call(this),R(this,Ne).removeObserver(this)}setOptions(t){const n=this.options,r=R(this,Ne);if(this.options=R(this,jn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof In(this.options.enabled,R(this,Ne))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Oe(this,ze,W0).call(this),R(this,Ne).setOptions(this.options),n._defaulted&&!I0(this.options,n)&&R(this,jn).getQueryCache().notify({type:"observerOptionsUpdated",query:R(this,Ne),observer:this});const a=this.hasListeners();a&&iO(R(this,Ne),r,this.options,n)&&Oe(this,ze,Tu).call(this),this.updateResult(),a&&(R(this,Ne)!==r||In(this.options.enabled,R(this,Ne))!==In(n.enabled,R(this,Ne))||qi(this.options.staleTime,R(this,Ne))!==qi(n.staleTime,R(this,Ne)))&&Oe(this,ze,H0).call(this);const i=Oe(this,ze,q0).call(this);a&&(R(this,Ne)!==r||In(this.options.enabled,R(this,Ne))!==In(n.enabled,R(this,Ne))||i!==R(this,Oi))&&Oe(this,ze,K0).call(this,i)}getOptimisticResult(t){const n=R(this,jn).getQueryCache().build(R(this,jn),t),r=this.createResult(n,t);return w8(this,r)&&(ee(this,un,r),ee(this,Nl,this.options),ee(this,zs,R(this,Ne).state)),r}getCurrentResult(){return R(this,un)}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,Ea).status==="pending"&&R(this,Ea).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,a))})}trackProp(t){R(this,Pl).add(t)}getCurrentQuery(){return R(this,Ne)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=R(this,jn).defaultQueryOptions(t),r=R(this,jn).getQueryCache().build(R(this,jn),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Oe(this,ze,Tu).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),R(this,un)))}createResult(t,n){var T;const r=R(this,Ne),a=this.options,i=R(this,un),s=R(this,zs),o=R(this,Nl),c=t!==r?t.state:R(this,gd),{state:f}=t;let d={...f},h=!1,p;if(n._optimisticResults){const N=this.hasListeners(),M=!N&&aO(t,n),C=N&&iO(t,r,n,a);(M||C)&&(d={...d,...qD(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:b}=d;p=d.data;let y=!1;if(n.placeholderData!==void 0&&p===void 0&&b==="pending"){let N;i!=null&&i.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData)?(N=i.data,y=!0):N=typeof n.placeholderData=="function"?n.placeholderData((T=R(this,_l))==null?void 0:T.state.data,R(this,_l)):n.placeholderData,N!==void 0&&(b="success",p=U0(i==null?void 0:i.data,N,n),h=!0)}if(n.select&&p!==void 0&&!y)if(i&&p===(s==null?void 0:s.data)&&n.select===R(this,vd))p=R(this,Cl);else try{ee(this,vd,n.select),p=n.select(p),p=U0(i==null?void 0:i.data,p,n),ee(this,Cl,p),ee(this,Ai,null)}catch(N){ee(this,Ai,N)}R(this,Ai)&&(m=R(this,Ai),p=R(this,Cl),g=Date.now(),b="error");const v=d.fetchStatus==="fetching",x=b==="pending",w=b==="error",S=x&&v,j=p!==void 0,E={status:b,fetchStatus:d.fetchStatus,isPending:x,isSuccess:b==="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>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:v,isRefetching:v&&!x,isLoadingError:w&&!j,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:w&&j,isStale:lw(t,n),refetch:this.refetch,promise:R(this,Ea),isEnabled:In(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const N=E.data!==void 0,M=E.status==="error"&&!N,C=$=>{M?$.reject(E.error):N&&$.resolve(E.data)},L=()=>{const $=ee(this,Ea,E.promise=F0());C($)},D=R(this,Ea);switch(D.status){case"pending":t.queryHash===r.queryHash&&C(D);break;case"fulfilled":(M||E.data!==D.value)&&L();break;case"rejected":(!M||E.error!==D.reason)&&L();break}}return E}updateResult(){const t=R(this,un),n=this.createResult(R(this,Ne),this.options);if(ee(this,zs,R(this,Ne).state),ee(this,Nl,this.options),R(this,zs).data!==void 0&&ee(this,_l,R(this,Ne)),I0(n,t))return;ee(this,un,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,i=typeof a=="function"?a():a;if(i==="all"||!i&&!R(this,Pl).size)return!0;const s=new Set(i??R(this,Pl));return this.options.throwOnError&&s.add("error"),Object.keys(R(this,un)).some(o=>{const l=o;return R(this,un)[l]!==t[l]&&s.has(l)})};Oe(this,ze,KD).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Oe(this,ze,G0).call(this)}},jn=new WeakMap,Ne=new WeakMap,gd=new WeakMap,un=new WeakMap,zs=new WeakMap,Nl=new WeakMap,Ea=new WeakMap,Ai=new WeakMap,vd=new WeakMap,Cl=new WeakMap,_l=new WeakMap,Is=new WeakMap,Bs=new WeakMap,Oi=new WeakMap,Pl=new WeakMap,ze=new WeakSet,Tu=function(t){Oe(this,ze,W0).call(this);let n=R(this,Ne).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(En)),n},H0=function(){Oe(this,ze,Y0).call(this);const t=qi(this.options.staleTime,R(this,Ne));if(Of.isServer()||R(this,un).isStale||!z0(t))return;const r=LD(R(this,un).dataUpdatedAt,t)+1;ee(this,Is,As.setTimeout(()=>{R(this,un).isStale||this.updateResult()},r))},q0=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(R(this,Ne)):this.options.refetchInterval)??!1},K0=function(t){Oe(this,ze,X0).call(this),ee(this,Oi,t),!(Of.isServer()||In(this.options.enabled,R(this,Ne))===!1||!z0(R(this,Oi))||R(this,Oi)===0)&&ee(this,Bs,As.setInterval(()=>{(this.options.refetchIntervalInBackground||iw.isFocused())&&Oe(this,ze,Tu).call(this)},R(this,Oi)))},G0=function(){Oe(this,ze,H0).call(this),Oe(this,ze,K0).call(this,Oe(this,ze,q0).call(this))},Y0=function(){R(this,Is)!==void 0&&(As.clearTimeout(R(this,Is)),ee(this,Is,void 0))},X0=function(){R(this,Bs)!==void 0&&(As.clearInterval(R(this,Bs)),ee(this,Bs,void 0))},W0=function(){const t=R(this,jn).getQueryCache().build(R(this,jn),this.options);if(t===R(this,Ne))return;const n=R(this,Ne);ee(this,Ne,t),ee(this,gd,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},KD=function(t){Wt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(R(this,un))}),R(this,jn).getQueryCache().notify({query:R(this,Ne),type:"observerResultsUpdated"})})},_P);function S8(e,t){return In(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&In(t.retryOnMount,e)===!1)}function aO(e,t){return S8(e,t)||e.state.data!==void 0&&Q0(e,t,t.refetchOnMount)}function Q0(e,t,n){if(In(t.enabled,e)!==!1&&qi(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&lw(e,t)}return!1}function iO(e,t,n,r){return(e!==t||In(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&lw(e,n)}function lw(e,t){return In(t.enabled,e)!==!1&&e.isStaleByTime(qi(t.staleTime,e))}function w8(e,t){return!I0(e.getCurrentResult(),t)}var bd,Hr,an,Us,qr,ci,PP,j8=(PP=class extends VD{constructor(t){super();ce(this,qr);ce(this,bd);ce(this,Hr);ce(this,an);ce(this,Us);ee(this,bd,t.client),this.mutationId=t.mutationId,ee(this,an,t.mutationCache),ee(this,Hr,[]),this.state=t.state||A8(),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,Hr).includes(t)||(R(this,Hr).push(t),this.clearGcTimeout(),R(this,an).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ee(this,Hr,R(this,Hr).filter(n=>n!==t)),this.scheduleGc(),R(this,an).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){R(this,Hr).length||(this.state.status==="pending"?this.scheduleGc():R(this,an).remove(this))}continue(){var t;return((t=R(this,Us))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,o,l,c,f,d,h,p,m,g,b,y,v,x,w,S,j,O;const n=()=>{Oe(this,qr,ci).call(this,{type:"continue"})},r={client:R(this,bd),meta:this.options.meta,mutationKey:this.options.mutationKey};ee(this,Us,FD({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(E,T)=>{Oe(this,qr,ci).call(this,{type:"failed",failureCount:E,error:T})},onPause:()=>{Oe(this,qr,ci).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,an).canRun(this)}));const a=this.state.status==="pending",i=!R(this,Us).canStart();try{if(a)n();else{Oe(this,qr,ci).call(this,{type:"pending",variables:t,isPaused:i}),R(this,an).config.onMutate&&await R(this,an).config.onMutate(t,this,r);const T=await((o=(s=this.options).onMutate)==null?void 0:o.call(s,t,r));T!==this.state.context&&Oe(this,qr,ci).call(this,{type:"pending",context:T,variables:t,isPaused:i})}const E=await R(this,Us).start();return await((c=(l=R(this,an).config).onSuccess)==null?void 0:c.call(l,E,t,this.state.context,this,r)),await((d=(f=this.options).onSuccess)==null?void 0:d.call(f,E,t,this.state.context,r)),await((p=(h=R(this,an).config).onSettled)==null?void 0:p.call(h,E,null,this.state.variables,this.state.context,this,r)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,E,null,t,this.state.context,r)),Oe(this,qr,ci).call(this,{type:"success",data:E}),E}catch(E){try{await((y=(b=R(this,an).config).onError)==null?void 0:y.call(b,E,t,this.state.context,this,r))}catch(T){Promise.reject(T)}try{await((x=(v=this.options).onError)==null?void 0:x.call(v,E,t,this.state.context,r))}catch(T){Promise.reject(T)}try{await((S=(w=R(this,an).config).onSettled)==null?void 0:S.call(w,void 0,E,this.state.variables,this.state.context,this,r))}catch(T){Promise.reject(T)}try{await((O=(j=this.options).onSettled)==null?void 0:O.call(j,void 0,E,t,this.state.context,r))}catch(T){Promise.reject(T)}throw Oe(this,qr,ci).call(this,{type:"error",error:E}),E}finally{R(this,an).runNext(this)}}},bd=new WeakMap,Hr=new WeakMap,an=new WeakMap,Us=new WeakMap,qr=new WeakSet,ci=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),Wt.batch(()=>{R(this,Hr).forEach(r=>{r.onMutationUpdate(t)}),R(this,an).notify({mutation:this,type:"updated",action:t})})},PP);function A8(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ta,_r,xd,MP,O8=(MP=class extends Rd{constructor(t={}){super();ce(this,Ta);ce(this,_r);ce(this,xd);this.config=t,ee(this,Ta,new Set),ee(this,_r,new Map),ee(this,xd,0)}build(t,n,r){const a=new j8({client:t,mutationCache:this,mutationId:++rh(this,xd)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){R(this,Ta).add(t);const n=Sh(t);if(typeof n=="string"){const r=R(this,_r).get(n);r?r.push(t):R(this,_r).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(R(this,Ta).delete(t)){const n=Sh(t);if(typeof n=="string"){const r=R(this,_r).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,_r).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Sh(t);if(typeof n=="string"){const r=R(this,_r).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=Sh(t);if(typeof n=="string"){const a=(r=R(this,_r).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(){Wt.batch(()=>{R(this,Ta).forEach(t=>{this.notify({type:"removed",mutation:t})}),R(this,Ta).clear(),R(this,_r).clear()})}getAll(){return Array.from(R(this,Ta))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Z2(n,r))}findAll(t={}){return this.getAll().filter(n=>Z2(t,n))}notify(t){Wt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Wt.batch(()=>Promise.all(t.map(n=>n.continue().catch(En))))}},Ta=new WeakMap,_r=new WeakMap,xd=new WeakMap,MP);function Sh(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Kr,RP,E8=(RP=class extends Rd{constructor(t={}){super();ce(this,Kr);this.config=t,ee(this,Kr,new Map)}build(t,n,r){const a=n.queryKey,i=n.queryHash??sw(a,n);let s=this.get(i);return s||(s=new b8({client:t,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(s)),s}add(t){R(this,Kr).has(t.queryHash)||(R(this,Kr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=R(this,Kr).get(t.queryHash);n&&(t.destroy(),n===t&&R(this,Kr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Wt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return R(this,Kr).get(t)}getAll(){return[...R(this,Kr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Q2(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Q2(t,r)):n}notify(t){Wt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Wt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Wt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Kr=new WeakMap,RP),mt,Ei,Ti,Ml,Rl,Ni,Dl,$l,DP,T8=(DP=class{constructor(e={}){ce(this,mt);ce(this,Ei);ce(this,Ti);ce(this,Ml);ce(this,Rl);ce(this,Ni);ce(this,Dl);ce(this,$l);ee(this,mt,e.queryCache||new E8),ee(this,Ei,e.mutationCache||new O8),ee(this,Ti,e.defaultOptions||{}),ee(this,Ml,new Map),ee(this,Rl,new Map),ee(this,Ni,0)}mount(){rh(this,Ni)._++,R(this,Ni)===1&&(ee(this,Dl,iw.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,mt).onFocus())})),ee(this,$l,Qp.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,mt).onOnline())})))}unmount(){var e,t;rh(this,Ni)._--,R(this,Ni)===0&&((e=R(this,Dl))==null||e.call(this),ee(this,Dl,void 0),(t=R(this,$l))==null||t.call(this),ee(this,$l,void 0))}isFetching(e){return R(this,mt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return R(this,Ei).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=R(this,mt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=R(this,mt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(qi(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return R(this,mt).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,mt).get(r.queryHash),i=a==null?void 0:a.state.data,s=o8(t,i);if(s!==void 0)return R(this,mt).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Wt.batch(()=>R(this,mt).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,mt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=R(this,mt);Wt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=R(this,mt);return Wt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Wt.batch(()=>R(this,mt).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(En).catch(En)}invalidateQueries(e,t={}){return Wt.batch(()=>(R(this,mt).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=Wt.batch(()=>R(this,mt).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(En)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(En)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=R(this,mt).build(this,t);return n.isStaleByTime(qi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(En).catch(En)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(En).catch(En)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Qp.isOnline()?R(this,Ei).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,mt)}getMutationCache(){return R(this,Ei)}getDefaultOptions(){return R(this,Ti)}setDefaultOptions(e){ee(this,Ti,e)}setQueryDefaults(e,t){R(this,Ml).set(jf(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...R(this,Ml).values()],n={};return t.forEach(r=>{Af(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){R(this,Rl).set(jf(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...R(this,Rl).values()],n={};return t.forEach(r=>{Af(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...R(this,Ti).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=sw(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===ow&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...R(this,Ti).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){R(this,mt).clear(),R(this,Ei).clear()}},mt=new WeakMap,Ei=new WeakMap,Ti=new WeakMap,Ml=new WeakMap,Rl=new WeakMap,Ni=new WeakMap,Dl=new WeakMap,$l=new WeakMap,DP),GD=A.createContext(void 0),nn=e=>{const t=A.useContext(GD);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},N8=({client:e,children:t})=>(A.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(GD.Provider,{value:e,children:t})),YD=A.createContext(!1),C8=()=>A.useContext(YD);YD.Provider;function _8(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var P8=A.createContext(_8()),M8=()=>A.useContext(P8),R8=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?BD(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},D8=e=>{A.useEffect(()=>{e.clearReset()},[e])},$8=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||BD(n,[e.error,r])),k8=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))}},L8=(e,t)=>e.isLoading&&e.isFetching&&!t,z8=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,sO=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function I8(e,t,n){var p,m,g,b;const r=C8(),a=M8(),i=nn(),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,k8(s),R8(s,a,o),D8(a);const c=!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 v=h?f.subscribe(Wt.batchCalls(y)):En;return f.updateResult(),v},[f,h]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),A.useEffect(()=>{f.setOptions(s)},[s,f]),z8(s,d))throw sO(s,f,a);if($8({result:d,errorResetBoundary:a,throwOnError:s.throwOnError,query:o,suspense:s.suspense}))throw d.error;if((b=(g=i.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||b.call(g,s,d),s.experimental_prefetchInRender&&!Of.isServer()&&L8(d,r)){const y=c?sO(s,f,a):o==null?void 0:o.promise;y==null||y.catch(En).finally(()=>{f.updateResult()})}return s.notifyOnChangeProps?d:f.trackResult(d)}function se(e,t){return I8(e,x8)}/**
 * 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 oO="popstate";function lO(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function B8(e={}){function t(r,a){var c;let i=(c=a.state)==null?void 0:c.masked,{pathname:s,search:o,hash:l}=i||r.location;return Z0("",{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:Ef(a)}return F8(t,n,null,e)}function ut(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function br(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function U8(){return Math.random().toString(36).substring(2,10)}function cO(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 Z0(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Rc(t):t,state:n,key:t&&t.key||r||U8(),mask:a}}function Ef({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 Rc(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 F8(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,s=a.history,o="POP",l=null,c=f();c==null&&(c=0,s.replaceState({...s.state,idx:c},""));function f(){return(s.state||{idx:null}).idx}function d(){o="POP";let b=f(),y=b==null?null:b-c;c=b,l&&l({action:o,location:g.location,delta:y})}function h(b,y){o="PUSH";let v=lO(b)?b:Z0(g.location,b,y);c=f()+1;let x=cO(v,c),w=g.createHref(v.mask||v);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(b,y){o="REPLACE";let v=lO(b)?b:Z0(g.location,b,y);c=f();let x=cO(v,c),w=g.createHref(v.mask||v);s.replaceState(x,"",w),i&&l&&l({action:o,location:g.location,delta:0})}function m(b){return V8(a,b)}let g={get action(){return o},get location(){return e(a,s)},listen(b){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(oO,d),l=b,()=>{a.removeEventListener(oO,d),l=null}},createHref(b){return t(a,b)},createURL:m,encodeLocation(b){let y=m(b);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:p,go(b){return s.go(b)}};return g}function V8(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),ut(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:Ef(t);return a=a.replace(/ $/,"%20"),!n&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function XD(e,t,n="/"){return H8(e,t,n,!1)}function H8(e,t,n,r,a){let i=typeof t=="string"?Rc(t):t,s=Xa(i.pathname||"/",n);if(s==null)return null;let o=q8(e),l=null,c=rU(s);for(let f=0;l==null&&f<o.length;++f)l=tU(o[f],c,r);return l}function q8(e){let t=WD(e);return K8(t),t}function WD(e,t=[],n=[],r="",a=!1){let i=(s,o,l=a,c)=>{let f={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&l)return;ut(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=$r([r,f.relativePath]),h=n.concat(f);s.children&&s.children.length>0&&(ut(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),WD(s.children,t,h,d,l)),!(s.path==null&&!s.index)&&t.push({path:d,score:J8(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 c of QD(s.path))i(s,o,!0,c)}),t}function QD(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=QD(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 K8(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:eU(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var G8=/^:[\w-]+$/,Y8=3,X8=2,W8=1,Q8=10,Z8=-2,uO=e=>e==="*";function J8(e,t){let n=e.split("/"),r=n.length;return n.some(uO)&&(r+=Z8),t&&(r+=X8),n.filter(a=>!uO(a)).reduce((a,i)=>a+(G8.test(i)?Y8:i===""?W8:Q8),r)}function eU(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 tU(e,t,n=!1){let{routesMeta:r}=e,a={},i="/",s=[];for(let o=0;o<r.length;++o){let l=r[o],c=o===r.length-1,f=i==="/"?t:t.slice(i.length)||"/",d=Zp({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},f),h=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Zp({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},f)),!d)return null;Object.assign(a,d.params),s.push({params:a,pathname:$r([i,d.pathname]),pathnameBase:oU($r([i,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(i=$r([i,d.pathnameBase]))}return s}function Zp(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((c,{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?c[f]=void 0:c[f]=(p||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:e}}function nU(e,t=!1,n=!0){br(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,c,f)=>{if(r.push({paramName:o,isOptional:l!=null}),l){let d=f.charAt(c+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 rU(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return br(!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 Xa(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 aU=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function iU(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Rc(e):e,i;return n?(n=ZD(n),n.startsWith("/")?i=fO(n.substring(1),"/"):i=fO(n,t)):i=t,{pathname:i,search:lU(r),hash:cU(a)}}function fO(e,t){let n=Jp(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function $v(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 sU(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function cw(e){let t=sU(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Iy(e,t,n,r=!1){let a;typeof e=="string"?a=Rc(e):(a={...e},ut(!a.pathname||!a.pathname.includes("?"),$v("?","pathname","search",a)),ut(!a.pathname||!a.pathname.includes("#"),$v("#","pathname","hash",a)),ut(!a.search||!a.search.includes("#"),$v("#","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=iU(a,o),c=s&&s!=="/"&&s.endsWith("/"),f=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}var ZD=e=>e.replace(/\/\/+/g,"/"),$r=e=>ZD(e.join("/")),Jp=e=>e.replace(/\/+$/,""),oU=e=>Jp(e).replace(/^\/*/,"/"),lU=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,cU=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,uU=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 fU(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function dU(e){let t=e.map(n=>n.route.path).filter(Boolean);return $r(t)||"/"}var JD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function e$(e,t){let n=e;if(typeof n!="string"||!aU.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(JD)try{let i=new URL(window.location.href),s=n.startsWith("//")?new URL(i.protocol+n):new URL(n),o=Xa(s.pathname,t);s.origin===i.origin&&o!=null?n=o+s.search+s.hash:a=!0}catch{br(!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 t$=["POST","PUT","PATCH","DELETE"];new Set(t$);var hU=["GET",...t$];new Set(hU);var Dc=A.createContext(null);Dc.displayName="DataRouter";var By=A.createContext(null);By.displayName="DataRouterState";var n$=A.createContext(!1);function pU(){return A.useContext(n$)}var r$=A.createContext({isTransitioning:!1});r$.displayName="ViewTransition";var mU=A.createContext(new Map);mU.displayName="Fetchers";var yU=A.createContext(null);yU.displayName="Await";var er=A.createContext(null);er.displayName="Navigation";var Dd=A.createContext(null);Dd.displayName="Location";var wr=A.createContext({outlet:null,matches:[],isDataRoute:!1});wr.displayName="Route";var uw=A.createContext(null);uw.displayName="RouteError";var a$="REACT_ROUTER_ERROR",gU="REDIRECT",vU="ROUTE_ERROR_RESPONSE";function bU(e){if(e.startsWith(`${a$}:${gU}:{`))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 xU(e){if(e.startsWith(`${a$}:${vU}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new uU(t.status,t.statusText,t.data)}catch{}}function SU(e,{relative:t}={}){ut($c(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=A.useContext(er),{hash:a,pathname:i,search:s}=$d(e,{relative:t}),o=i;return n!=="/"&&(o=i==="/"?n:$r([n,i])),r.createHref({pathname:o,search:s,hash:a})}function $c(){return A.useContext(Dd)!=null}function jr(){return ut($c(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(Dd).location}var i$="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function s$(e){A.useContext(er).static||A.useLayoutEffect(e)}function Kt(){let{isDataRoute:e}=A.useContext(wr);return e?kU():wU()}function wU(){ut($c(),"useNavigate() may be used only in the context of a <Router> component.");let e=A.useContext(Dc),{basename:t,navigator:n}=A.useContext(er),{matches:r}=A.useContext(wr),{pathname:a}=jr(),i=JSON.stringify(cw(r)),s=A.useRef(!1);return s$(()=>{s.current=!0}),A.useCallback((l,c={})=>{if(br(s.current,i$),!s.current)return;if(typeof l=="number"){n.go(l);return}let f=Iy(l,JSON.parse(i),a,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:$r([t,f.pathname])),(c.replace?n.replace:n.push)(f,c.state,c)},[t,n,i,a,e])}var jU=A.createContext(null);function AU(e){let t=A.useContext(wr).outlet;return A.useMemo(()=>t&&A.createElement(jU.Provider,{value:e},t),[t,e])}function o$(){let{matches:e}=A.useContext(wr),t=e[e.length-1];return(t==null?void 0:t.params)??{}}function $d(e,{relative:t}={}){let{matches:n}=A.useContext(wr),{pathname:r}=jr(),a=JSON.stringify(cw(n));return A.useMemo(()=>Iy(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function OU(e,t){return l$(e,t)}function l$(e,t,n){var b;ut($c(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=A.useContext(er),{matches:a}=A.useContext(wr),i=a[a.length-1],s=i?i.params:{},o=i?i.pathname:"/",l=i?i.pathnameBase:"/",c=i&&i.route;{let y=c&&c.path||"";u$(o,!c||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=jr(),d;if(t){let y=typeof t=="string"?Rc(t):t;ut(l==="/"||((b=y.pathname)==null?void 0:b.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})):XD(e,{pathname:p});br(c||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),br(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=_U(m&&m.map(y=>Object.assign({},y,{params:Object.assign({},s,y.params),pathname:$r([l,r.encodeLocation?r.encodeLocation(y.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?l:$r([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(Dd.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...d},navigationType:"POP"}},g):g}function EU(){let e=$U(),t=fU(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 TU=A.createElement(EU,null),c$=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=xU(e.digest);n&&(e=n)}let t=e!==void 0?A.createElement(wr.Provider,{value:this.props.routeContext},A.createElement(uw.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?A.createElement(NU,{error:e},t):t}};c$.contextType=n$;var kv=new WeakMap;function NU({children:e,error:t}){let{basename:n}=A.useContext(er);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=bU(t.digest);if(r){let a=kv.get(t);if(a)throw a;let i=e$(r.location,n);if(JD&&!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 CU({routeContext:e,match:t,children:n}){let r=A.useContext(Dc);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),A.createElement(wr.Provider,{value:e},n)}function _U(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);ut(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,c=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:dU(r.matches),errorInfo:d})}:void 0;return a.reduceRight((f,d,h)=>{let p,m=!1,g=null,b=null;r&&(p=i&&d.route.id?i[d.route.id]:void 0,g=d.route.errorElement||TU,s&&(o<0&&h===0?(u$("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,b=null):o===h&&(m=!0,b=d.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,h+1)),v=()=>{let x;return p?x=g:m?x=b:d.route.Component?x=A.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=f,A.createElement(CU,{match:d,routeContext:{outlet:f,matches:y,isDataRoute:r!=null},children:x})};return r&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?A.createElement(c$,{location:r.location,revalidation:r.revalidation,component:g,error:p,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:c}):v()},null)}function fw(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function PU(e){let t=A.useContext(Dc);return ut(t,fw(e)),t}function MU(e){let t=A.useContext(By);return ut(t,fw(e)),t}function RU(e){let t=A.useContext(wr);return ut(t,fw(e)),t}function dw(e){let t=RU(e),n=t.matches[t.matches.length-1];return ut(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function DU(){return dw("useRouteId")}function $U(){var r;let e=A.useContext(uw),t=MU("useRouteError"),n=dw("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function kU(){let{router:e}=PU("useNavigate"),t=dw("useNavigate"),n=A.useRef(!1);return s$(()=>{n.current=!0}),A.useCallback(async(a,i={})=>{br(n.current,i$),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var dO={};function u$(e,t,n){!t&&!dO[e]&&(dO[e]=!0,br(!1,n))}A.memo(LU);function LU({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:i}){return l$(e,void 0,{manifest:t,state:r,isStatic:a,onError:i})}function em({to:e,replace:t,state:n,relative:r}){ut($c(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=A.useContext(er);br(!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(wr),{pathname:s}=jr(),o=Kt(),l=Iy(e,cw(i),s,r==="path"),c=JSON.stringify(l);return A.useEffect(()=>{o(JSON.parse(c),{replace:t,state:n,relative:r})},[o,c,r,t,n]),null}function f$(e){return AU(e.context)}function Se(e){ut(!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 zU({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,useTransitions:s}){ut(!$c(),"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=Rc(n));let{pathname:c="/",search:f="",hash:d="",state:h=null,key:p="default",mask:m}=n,g=A.useMemo(()=>{let b=Xa(c,o);return b==null?null:{location:{pathname:b,search:f,hash:d,state:h,key:p,mask:m},navigationType:r}},[o,c,f,d,h,p,r,m]);return br(g!=null,`<Router basename="${o}"> is not able to match the URL "${c}${f}${d}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:A.createElement(er.Provider,{value:l},A.createElement(Dd.Provider,{children:t,value:g}))}function IU({children:e,location:t}){return OU(J0(e),t)}function J0(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,J0(r.props.children,i));return}ut(r.type===Se,`[${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>`),ut(!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=J0(r.props.children,i)),n.push(s)}),n}var up="get",fp="application/x-www-form-urlencoded";function Uy(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function BU(e){return Uy(e)&&e.tagName.toLowerCase()==="button"}function UU(e){return Uy(e)&&e.tagName.toLowerCase()==="form"}function FU(e){return Uy(e)&&e.tagName.toLowerCase()==="input"}function VU(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function HU(e,t){return e.button===0&&(!t||t==="_self")&&!VU(e)}function ex(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 qU(e,t){let n=ex(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(i=>{n.append(a,i)})}),n}var wh=null;function KU(){if(wh===null)try{new FormData(document.createElement("form"),0),wh=!1}catch{wh=!0}return wh}var GU=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Lv(e){return e!=null&&!GU.has(e)?(br(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${fp}"`),null):e}function YU(e,t){let n,r,a,i,s;if(UU(e)){let o=e.getAttribute("action");r=o?Xa(o,t):null,n=e.getAttribute("method")||up,a=Lv(e.getAttribute("enctype"))||fp,i=new FormData(e)}else if(BU(e)||FU(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?Xa(l,t):null,n=e.getAttribute("formmethod")||o.getAttribute("method")||up,a=Lv(e.getAttribute("formenctype"))||Lv(o.getAttribute("enctype"))||fp,i=new FormData(o,e),!KU()){let{name:c,type:f,value:d}=e;if(f==="image"){let h=c?`${c}.`:"";i.append(`${h}x`,"0"),i.append(`${h}y`,"0")}else c&&i.append(c,d)}}else{if(Uy(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=up,r=null,a=fp,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 hw(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function d$(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&&Xa(a.pathname,t)==="/"?a.pathname=`${Jp(t)}/_root.${r}`:a.pathname=`${Jp(a.pathname)}.${r}`,a}async function XU(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 WU(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 QU(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let s=await XU(i,n);return s.links?s.links():[]}return[]}));return t7(r.flat(1).filter(WU).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function hO(e,t,n,r,a,i){let s=(l,c)=>n[c]?l.route.id!==n[c].route.id:!0,o=(l,c)=>{var f;return n[c].pathname!==l.pathname||((f=n[c].route.path)==null?void 0:f.endsWith("*"))&&n[c].params["*"]!==l.params["*"]};return i==="assets"?t.filter((l,c)=>s(l,c)||o(l,c)):i==="data"?t.filter((l,c)=>{var d;let f=r.routes[l.route.id];if(!f||!f.hasLoader)return!1;if(s(l,c)||o(l,c))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 ZU(e,t,{includeHydrateFallback:n}={}){return JU(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 JU(e){return[...new Set(e)]}function e7(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function t7(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(e7(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function pw(){let e=A.useContext(Dc);return hw(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function n7(){let e=A.useContext(By);return hw(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var mw=A.createContext(void 0);mw.displayName="FrameworkContext";function yw(){let e=A.useContext(mw);return hw(e,"You must render this element inside a <HydratedRouter> element"),e}function r7(e,t){let n=A.useContext(mw),[r,a]=A.useState(!1),[i,s]=A.useState(!1),{onFocus:o,onBlur:l,onMouseEnter:c,onMouseLeave:f,onTouchStart:d}=t,h=A.useRef(null);A.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let g=y=>{y.forEach(v=>{s(v.isIntersecting)})},b=new IntersectionObserver(g,{threshold:.5});return h.current&&b.observe(h.current),()=>{b.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:su(o,p),onBlur:su(l,m),onMouseEnter:su(c,p),onMouseLeave:su(f,m),onTouchStart:su(d,p)}]:[!1,h,{}]}function su(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function a7({page:e,...t}){let n=pU(),{router:r}=pw(),a=A.useMemo(()=>XD(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?n?A.createElement(s7,{page:e,matches:a,...t}):A.createElement(o7,{page:e,matches:a,...t}):null}function i7(e){let{manifest:t,routeModules:n}=yw(),[r,a]=A.useState([]);return A.useEffect(()=>{let i=!1;return QU(e,t,n).then(s=>{i||a(s)}),()=>{i=!0}},[e,t,n]),r}function s7({page:e,matches:t,...n}){let r=jr(),{future:a}=yw(),{basename:i}=pw(),s=A.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let o=d$(e,i,a.v8_trailingSlashAwareDataRequests,"rsc"),l=!1,c=[];for(let f of t)typeof f.route.shouldRevalidate=="function"?l=!0:c.push(f.route.id);return l&&c.length>0&&o.searchParams.set("_routes",c.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 o7({page:e,matches:t,...n}){let r=jr(),{future:a,manifest:i,routeModules:s}=yw(),{basename:o}=pw(),{loaderData:l,matches:c}=n7(),f=A.useMemo(()=>hO(e,t,c,i,r,"data"),[e,t,c,i,r]),d=A.useMemo(()=>hO(e,t,c,i,r,"assets"),[e,t,c,i,r]),h=A.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let g=new Set,b=!1;if(t.forEach(v=>{var w;let x=i.routes[v.route.id];!x||!x.hasLoader||(!f.some(S=>S.route.id===v.route.id)&&v.route.id in l&&((w=s[v.route.id])!=null&&w.shouldRevalidate)||x.hasClientLoader?b=!0:g.add(v.route.id))}),g.size===0)return[];let y=d$(e,o,a.v8_trailingSlashAwareDataRequests,"data");return b&&g.size>0&&y.searchParams.set("_routes",t.filter(v=>g.has(v.route.id)).map(v=>v.route.id).join(",")),[y.pathname+y.search]},[o,a.v8_trailingSlashAwareDataRequests,l,r,i,f,t,e,s]),p=A.useMemo(()=>ZU(d,i),[d,i]),m=i7(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:b})=>A.createElement("link",{key:g,nonce:n.nonce,...b,crossOrigin:b.crossOrigin??n.crossOrigin})))}function l7(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var c7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{c7&&(window.__reactRouterVersion="7.17.0")}catch{}function u7({basename:e,children:t,useTransitions:n,window:r}){let a=A.useRef();a.current==null&&(a.current=B8({window:r,v5Compat:!0}));let i=a.current,[s,o]=A.useState({action:i.action,location:i.location}),l=A.useCallback(c=>{n===!1?o(c):A.startTransition(()=>o(c))},[n]);return A.useLayoutEffect(()=>i.listen(l),[i,l]),A.createElement(zU,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:i,useTransitions:n})}var h$=/^(?:[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:c,to:f,preventScrollReset:d,viewTransition:h,defaultShouldRevalidate:p,...m},g){let{basename:b,navigator:y,useTransitions:v}=A.useContext(er),x=typeof f=="string"&&h$.test(f),w=e$(f,b);f=w.to;let S=SU(f,{relative:a}),j=jr(),O=null;if(o){let $=Iy(o,[],j.mask?j.mask.pathname:"/",!0);b!=="/"&&($.pathname=$.pathname==="/"?b:$r([b,$.pathname])),O=y.createHref($)}let[E,T,N]=r7(r,m),M=h7(f,{replace:s,mask:o,state:l,target:c,preventScrollReset:d,relative:a,viewTransition:h,defaultShouldRevalidate:p,useTransitions:v});function C($){t&&t($),$.defaultPrevented||M($)}let L=!(w.isExternal||i),D=A.createElement("a",{...m,...N,href:(L?O:void 0)||w.absoluteURL||S,onClick:L?C:t,ref:l7(g,T),target:c,"data-discover":!x&&n==="render"?"true":void 0});return E&&!x?A.createElement(A.Fragment,null,D,A.createElement(a7,{page:S})):D});Le.displayName="Link";var tx=A.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:s,viewTransition:o,children:l,...c},f){let d=$d(s,{relative:c.relative}),h=jr(),p=A.useContext(By),{navigator:m,basename:g}=A.useContext(er),b=p!=null&&v7(d)&&o===!0,y=m.encodeLocation?m.encodeLocation(d).pathname:d.pathname,v=h.pathname,x=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(v=v.toLowerCase(),x=x?x.toLowerCase():null,y=y.toLowerCase()),x&&g&&(x=Xa(x,g)||x);const w=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let S=v===y||!a&&v.startsWith(y)&&v.charAt(w)==="/",j=x!=null&&(x===y||!a&&x.startsWith(y)&&x.charAt(y.length)==="/"),O={isActive:S,isPending:j,isTransitioning:b},E=S?t:void 0,T;typeof r=="function"?T=r(O):T=[r,S?"active":null,j?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let N=typeof i=="function"?i(O):i;return A.createElement(Le,{...c,"aria-current":E,className:T,ref:f,style:N,to:s,viewTransition:o},typeof l=="function"?l(O):l)});tx.displayName="NavLink";var f7=A.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:s=up,action:o,onSubmit:l,relative:c,preventScrollReset:f,viewTransition:d,defaultShouldRevalidate:h,...p},m)=>{let{useTransitions:g}=A.useContext(er),b=y7(),y=g7(o,{relative:c}),v=s.toLowerCase()==="get"?"get":"post",x=typeof o=="string"&&h$.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,E=()=>b(j||S.currentTarget,{fetcherKey:t,method:O,navigate:n,replace:a,state:i,relative:c,preventScrollReset:f,viewTransition:d,defaultShouldRevalidate:h});g&&n!==!1?A.startTransition(()=>E()):E()};return A.createElement("form",{ref:m,method:v,action:y,onSubmit:r?l:w,...p,"data-discover":!x&&e==="render"?"true":void 0})});f7.displayName="Form";function d7(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function p$(e){let t=A.useContext(Dc);return ut(t,d7(e)),t}function h7(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:i,relative:s,viewTransition:o,defaultShouldRevalidate:l,useTransitions:c}={}){let f=Kt(),d=jr(),h=$d(e,{relative:s});return A.useCallback(p=>{if(HU(p,t)){p.preventDefault();let m=n!==void 0?n:Ef(d)===Ef(h),g=()=>f(e,{replace:m,mask:r,state:a,preventScrollReset:i,relative:s,viewTransition:o,defaultShouldRevalidate:l});c?A.startTransition(()=>g()):g()}},[d,f,h,n,r,a,t,e,i,s,o,l,c])}function m$(e){br(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(ex(e)),n=A.useRef(!1),r=jr(),a=A.useMemo(()=>qU(r.search,n.current?null:t.current),[r.search]),i=Kt(),s=A.useCallback((o,l)=>{const c=ex(typeof o=="function"?o(new URLSearchParams(a)):o);n.current=!0,i("?"+c,l)},[i,a]);return[a,s]}var p7=0,m7=()=>`__${String(++p7)}__`;function y7(){let{router:e}=p$("useSubmit"),{basename:t}=A.useContext(er),n=DU(),r=e.fetch,a=e.navigate;return A.useCallback(async(i,s={})=>{let{action:o,method:l,encType:c,formData:f,body:d}=YU(i,t);if(s.navigate===!1){let h=s.fetcherKey||m7();await r(h,n,s.action||o,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:f,body:d,formMethod:s.method||l,formEncType:s.encType||c,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||c,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,a,t,n])}function g7(e,{relative:t}={}){let{basename:n}=A.useContext(er),r=A.useContext(wr);ut(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...$d(e||".",{relative:t})},s=jr();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:$r([n,i.pathname])),Ef(i)}function v7(e,{relative:t}={}){let n=A.useContext(r$);ut(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=p$("useViewTransitionState"),a=$d(e,{relative:t});if(!n.isTransitioning)return!1;let i=Xa(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Xa(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Zp(a.pathname,s)!=null||Zp(a.pathname,i)!=null}const y$=A.createContext(null);function b7({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")),[c,f]=A.useState(0),d=(m,g,b)=>{n(m),a(g),s(b),localStorage.setItem("mall_zip",m),localStorage.setItem("mall_store_id",String(g)),localStorage.setItem("mall_store_name",b)},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)},[]),u.jsx(y$.Provider,{value:{zip:t,storeId:r,storeName:i,setZone:d,clearZone:h,custToken:o,setCustToken:p,cartCount:c,setCartCount:f},children:e})}const bn=()=>A.useContext(y$),Ee=e=>`$${(Number(e)||0).toFixed(2)}`,gw=A.createContext({});function kc(e){const t=A.useRef(null);return t.current===null&&(t.current=e()),t.current}const Fy=A.createContext(null),Vy=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class x7 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 S7({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(Vy);return A.useInsertionEffect(()=>{const{width:s,height:o,top:l,left:c}=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: ${c}px !important;
          }
        `),()=>{document.head.removeChild(f)}},[t]),u.jsx(x7,{isPresent:t,childRef:r,sizeRef:a,children:A.cloneElement(e,{ref:r})})}const w7=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:i,mode:s})=>{const o=kc(j7),l=A.useId(),c=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:c,register:d=>(o.set(d,!1),()=>o.delete(d))}),i?[Math.random(),c]:[n,c]);return A.useMemo(()=>{o.forEach((d,h)=>o.set(h,!1))},[n]),A.useEffect(()=>{!n&&!o.size&&r&&r()},[n]),s==="popLayout"&&(e=u.jsx(S7,{isPresent:n,children:e})),u.jsx(Fy.Provider,{value:f,children:e})};function j7(){return new Map}function g$(e=!0){const t=A.useContext(Fy);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 jh=e=>e.key||"";function pO(e){const t=[];return A.Children.forEach(e,n=>{A.isValidElement(n)&&t.push(n)}),t}const vw=typeof window<"u",Hy=vw?A.useLayoutEffect:A.useEffect,nx=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:i="sync",propagate:s=!1})=>{const[o,l]=g$(s),c=A.useMemo(()=>pO(e),[e]),f=s&&!o?[]:c.map(jh),d=A.useRef(!0),h=A.useRef(c),p=kc(()=>new Map),[m,g]=A.useState(c),[b,y]=A.useState(c);Hy(()=>{d.current=!1,h.current=c;for(let w=0;w<b.length;w++){const S=jh(b[w]);f.includes(S)?p.delete(S):p.get(S)!==!0&&p.set(S,!1)}},[b,f.length,f.join("-")]);const v=[];if(c!==m){let w=[...c];for(let S=0;S<b.length;S++){const j=b[S],O=jh(j);f.includes(O)||(w.splice(S,0,j),v.push(j))}i==="wait"&&v.length&&(w=v),y(pO(w)),g(c);return}const{forceRender:x}=A.useContext(gw);return u.jsx(u.Fragment,{children:b.map(w=>{const S=jh(w),j=s&&!o?!1:c===b||f.includes(S),O=()=>{if(p.has(S))p.set(S,!0);else return;let E=!0;p.forEach(T=>{T||(E=!1)}),E&&(x==null||x(),y(h.current),s&&(l==null||l()),r&&r())};return u.jsx(w7,{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)})})},yn=e=>e;let A7=yn,v$=yn;function bw(e){let t;return()=>(t===void 0&&(t=e()),t)}const ro=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ia=e=>e*1e3,Ba=e=>e/1e3,O7={useManualTiming:!1};function E7(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(c){i.has(c)&&(l.schedule(c),e()),c(s)}const l={schedule:(c,f=!1,d=!1)=>{const p=d&&r?t:n;return f&&i.add(c),p.has(c)||p.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(s=c,r){a=!0;return}r=!0,[t,n]=[n,t],t.forEach(o),t.clear(),r=!1,a&&(a=!1,l.process(c))}};return l}const Ah=["read","resolveKeyframes","update","preRender","render","postRender"],T7=40;function b$(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Ah.reduce((y,v)=>(y[v]=E7(i),y),{}),{read:o,resolveKeyframes:l,update:c,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,T7),1),a.timestamp=y,a.isProcessing=!0,o.process(a),l.process(a),c.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:Ah.reduce((y,v)=>{const x=s[v];return y[v]=(w,S=!1,j=!1)=>(n||m(),x.schedule(w,S,j)),y},{}),cancel:y=>{for(let v=0;v<Ah.length;v++)s[Ah[v]].cancel(y)},state:a,steps:s}}const{schedule:Re,cancel:Lr,state:Bt,steps:zv}=b$(typeof requestAnimationFrame<"u"?requestAnimationFrame:yn,!0),x$=A.createContext({strict:!1}),mO={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"]},Gl={};for(const e in mO)Gl[e]={isEnabled:t=>mO[e].some(n=>!!t[n])};function N7(e){for(const t in e)Gl[t]={...Gl[t],...e[t]}}const C7=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 tm(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||C7.has(e)}let S$=e=>!tm(e);function _7(e){e&&(S$=t=>t.startsWith("on")?!tm(t):e(t))}try{_7(require("@emotion/is-prop-valid").default)}catch{}function P7(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(S$(a)||n===!0&&tm(a)||!t&&!tm(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}function M7(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 qy=A.createContext({});function Tf(e){return typeof e=="string"||Array.isArray(e)}function Ky(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const xw=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Sw=["initial",...xw];function Gy(e){return Ky(e.animate)||Sw.some(t=>Tf(e[t]))}function w$(e){return!!(Gy(e)||e.variants)}function R7(e,t){if(Gy(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Tf(n)?n:void 0,animate:Tf(r)?r:void 0}}return e.inherit!==!1?t:{}}function D7(e){const{initial:t,animate:n}=R7(e,A.useContext(qy));return A.useMemo(()=>({initial:t,animate:n}),[yO(t),yO(n)])}function yO(e){return Array.isArray(e)?e.join(" "):e}const $7=Symbol.for("motionComponentSymbol");function tl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function k7(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):tl(n)&&(n.current=r))},[t])}const ww=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),L7="framerAppearId",j$="data-"+ww(L7),{schedule:jw}=b$(queueMicrotask,!1),A$=A.createContext({});function z7(e,t,n,r,a){var i,s;const{visualElement:o}=A.useContext(qy),l=A.useContext(x$),c=A.useContext(Fy),f=A.useContext(Vy).reducedMotion,d=A.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:f}));const h=d.current,p=A.useContext(A$);h&&!h.projection&&a&&(h.type==="html"||h.type==="svg")&&I7(d.current,n,a,p);const m=A.useRef(!1);A.useInsertionEffect(()=>{h&&m.current&&h.update(n,c)});const g=n[j$],b=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 Hy(()=>{h&&(m.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),jw.render(h.render),b.current&&h.animationState&&h.animationState.animateChanges())}),A.useEffect(()=>{h&&(!b.current&&h.animationState&&h.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,g)}),b.current=!1))}),h}function I7(e,t,n,r){const{layoutId:a,layout:i,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:O$(e.parent)),e.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!s||o&&tl(o),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function O$(e){if(e)return e.options.allowProjection!==!1?e.projection:O$(e.parent)}function B7({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:a}){var i,s;e&&N7(e);function o(c,f){let d;const h={...A.useContext(Vy),...c,layoutId:U7(c)},{isStatic:p}=h,m=D7(c),g=r(c,p);if(!p&&vw){F7();const b=V7(h);d=b.MeasureLayout,m.visualElement=z7(a,g,h,t,b.ProjectionNode)}return u.jsxs(qy.Provider,{value:m,children:[d&&m.visualElement?u.jsx(d,{visualElement:m.visualElement,...h}):null,n(a,c,k7(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[$7]=a,l}function U7({layoutId:e}){const t=A.useContext(gw).id;return t&&e!==void 0?t+"-"+e:e}function F7(e,t){A.useContext(x$).strict}function V7(e){const{drag:t,layout:n}=Gl;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 H7=["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 Aw(e){return typeof e!="string"||e.includes("-")?!1:!!(H7.indexOf(e)>-1||/[A-Z]/u.test(e))}function gO(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ow(e,t,n,r){if(typeof t=="function"){const[a,i]=gO(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]=gO(r);t=t(n!==void 0?n:e.custom,a,i)}return t}const rx=e=>Array.isArray(e),q7=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),K7=e=>rx(e)?e[e.length-1]||0:e,cn=e=>!!(e&&e.getVelocity);function dp(e){const t=cn(e)?e.get():e;return q7(t)?t.toValue():t}function G7({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,a,i){const s={latestValues:Y7(r,a,i,e),renderState:t()};return n&&(s.onMount=o=>n({props:r,current:o,...s}),s.onUpdate=o=>n(o)),s}const E$=e=>(t,n)=>{const r=A.useContext(qy),a=A.useContext(Fy),i=()=>G7(e,t,r,a);return n?i():kc(i)};function Y7(e,t,n,r){const a={},i=r(e,{});for(const h in i)a[h]=dp(i[h]);let{initial:s,animate:o}=e;const l=Gy(e),c=w$(e);t&&c&&!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"&&!Ky(d)){const h=Array.isArray(d)?d:[d];for(let p=0;p<h.length;p++){const m=Ow(e,h[p]);if(m){const{transitionEnd:g,transition:b,...y}=m;for(const v in y){let x=y[v];if(Array.isArray(x)){const w=f?x.length-1:0;x=x[w]}x!==null&&(a[v]=x)}for(const v in g)a[v]=g[v]}}}return a}const Lc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],xo=new Set(Lc),T$=e=>t=>typeof t=="string"&&t.startsWith(e),N$=T$("--"),X7=T$("var(--"),Ew=e=>X7(e)?W7.test(e.split("/*")[0].trim()):!1,W7=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,C$=(e,t)=>t&&typeof e=="number"?t.transform(e):e,la=(e,t,n)=>n>t?t:n<e?e:n,zc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Nf={...zc,transform:e=>la(0,1,e)},Oh={...zc,default:1},kd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ui=kd("deg"),ra=kd("%"),fe=kd("px"),Q7=kd("vh"),Z7=kd("vw"),vO={...ra,parse:e=>ra.parse(e)/100,transform:e=>ra.transform(e*100)},J7={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},eF={rotate:ui,rotateX:ui,rotateY:ui,rotateZ:ui,scale:Oh,scaleX:Oh,scaleY:Oh,scaleZ:Oh,skew:ui,skewX:ui,skewY:ui,distance:fe,translateX:fe,translateY:fe,translateZ:fe,x:fe,y:fe,z:fe,perspective:fe,transformPerspective:fe,opacity:Nf,originX:vO,originY:vO,originZ:fe},bO={...zc,transform:Math.round},Tw={...J7,...eF,zIndex:bO,size:fe,fillOpacity:Nf,strokeOpacity:Nf,numOctaves:bO},tF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nF=Lc.length;function rF(e,t,n){let r="",a=!0;for(let i=0;i<nF;i++){const s=Lc[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 c=C$(o,Tw[s]);if(!l){a=!1;const f=tF[s]||s;r+=`${f}(${c}) `}n&&(t[s]=c)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function Nw(e,t,n){const{style:r,vars:a,transformOrigin:i}=e;let s=!1,o=!1;for(const l in t){const c=t[l];if(xo.has(l)){s=!0;continue}else if(N$(l)){a[l]=c;continue}else{const f=C$(c,Tw[l]);l.startsWith("origin")?(o=!0,i[l]=f):r[l]=f}}if(t.transform||(s||n?r.transform=rF(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:l="50%",originY:c="50%",originZ:f=0}=i;r.transformOrigin=`${l} ${c} ${f}`}}const aF={offset:"stroke-dashoffset",array:"stroke-dasharray"},iF={offset:"strokeDashoffset",array:"strokeDasharray"};function sF(e,t,n=1,r=0,a=!0){e.pathLength=1;const i=a?aF:iF;e[i.offset]=fe.transform(-r);const s=fe.transform(t),o=fe.transform(n);e[i.array]=`${s} ${o}`}function xO(e,t,n){return typeof e=="string"?e:fe.transform(t+n*e)}function oF(e,t,n){const r=xO(t,e.x,e.width),a=xO(n,e.y,e.height);return`${r} ${a}`}function Cw(e,{attrX:t,attrY:n,attrScale:r,originX:a,originY:i,pathLength:s,pathSpacing:o=1,pathOffset:l=0,...c},f,d){if(Nw(e,c,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=oF(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&&sF(h,s,o,l,!1)}const _w=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),_$=()=>({..._w(),attrs:{}}),Pw=e=>typeof e=="string"&&e.toLowerCase()==="svg";function P$(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 M$=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 R$(e,t,n,r){P$(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(M$.has(a)?a:ww(a),t.attrs[a])}const nm={};function lF(e){Object.assign(nm,e)}function D$(e,{layout:t,layoutId:n}){return xo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!nm[e]||e==="opacity")}function Mw(e,t,n){var r;const{style:a}=e,i={};for(const s in a)(cn(a[s])||t.style&&cn(t.style[s])||D$(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 $$(e,t,n){const r=Mw(e,t,n);for(const a in e)if(cn(e[a])||cn(t[a])){const i=Lc.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[i]=e[a]}return r}function cF(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 SO=["x","y","width","height","cx","cy","r"],uF={useVisualState:E$({scrapeMotionValuesFromProps:$$,createRenderState:_$,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(xo.has(o)){i=!0;break}}if(!i)return;let s=!t;if(t)for(let o=0;o<SO.length;o++){const l=SO[o];e[l]!==t[l]&&(s=!0)}s&&Re.read(()=>{cF(n,r),Re.render(()=>{Cw(r,a,Pw(n.tagName),e.transformTemplate),R$(n,r)})})}})},fF={useVisualState:E$({scrapeMotionValuesFromProps:Mw,createRenderState:_w})};function k$(e,t,n){for(const r in t)!cn(t[r])&&!D$(r,n)&&(e[r]=t[r])}function dF({transformTemplate:e},t){return A.useMemo(()=>{const n=_w();return Nw(n,t,e),Object.assign({},n.vars,n.style)},[t])}function hF(e,t){const n=e.style||{},r={};return k$(r,n,e),Object.assign(r,dF(e,t)),r}function pF(e,t){const n={},r=hF(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 mF(e,t,n,r){const a=A.useMemo(()=>{const i=_$();return Cw(i,t,Pw(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};k$(i,e.style,e),a.style={...i,...a.style}}return a}function yF(e=!1){return(n,r,a,{latestValues:i},s)=>{const l=(Aw(n)?mF:pF)(r,i,s,n),c=P7(r,typeof n=="string",e),f=n!==A.Fragment?{...c,...l,ref:a}:{},{children:d}=r,h=A.useMemo(()=>cn(d)?d.get():d,[d]);return A.createElement(n,{...f,children:h})}}function gF(e,t){return function(r,{forwardMotionProps:a}={forwardMotionProps:!1}){const s={...Aw(r)?uF:fF,preloadedFeatures:e,useRender:yF(a),createVisualElement:t,Component:r};return B7(s)}}function L$(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 Yy(e,t,n){const r=e.getProps();return Ow(r,t,n!==void 0?n:r.custom,e)}const z$=bw(()=>window.ScrollTimeline!==void 0);class vF{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(z$()&&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 bF extends vF{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Rw(e,t){return e?e[t]||e.default||e:void 0}const ax=2e4;function I$(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ax;)t+=n,r=e.next(t);return t>=ax?1/0:t}function Dw(e){return typeof e=="function"}function wO(e,t){e.timeline=t,e.onfinish=null}const $w=e=>Array.isArray(e)&&typeof e[0]=="number",xF={linearEasing:void 0};function SF(e,t){const n=bw(e);return()=>{var r;return(r=xF[t])!==null&&r!==void 0?r:n()}}const rm=SF(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),B$=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let i=0;i<a;i++)r+=e(ro(0,a-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function U$(e){return!!(typeof e=="function"&&rm()||!e||typeof e=="string"&&(e in ix||rm())||$w(e)||Array.isArray(e)&&e.every(U$))}const Nu=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ix={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Nu([0,.65,.55,1]),circOut:Nu([.55,0,1,.45]),backIn:Nu([.31,.01,.66,-.59]),backOut:Nu([.33,1.53,.69,.99])};function F$(e,t){if(e)return typeof e=="function"&&rm()?B$(e,t):$w(e)?Nu(e):Array.isArray(e)?e.map(n=>F$(n,t)||ix.easeOut):ix[e]}const Cr={x:!1,y:!1};function V$(){return Cr.x||Cr.y}function H$(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 q$(e,t){const n=H$(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function jO(e){return t=>{t.pointerType==="touch"||V$()||e(t)}}function wF(e,t,n={}){const[r,a,i]=q$(e,n),s=jO(o=>{const{target:l}=o,c=t(o);if(typeof c!="function"||!l)return;const f=jO(d=>{c(d),l.removeEventListener("pointerleave",f)});l.addEventListener("pointerleave",f,a)});return r.forEach(o=>{o.addEventListener("pointerenter",s,a)}),i}const K$=(e,t)=>t?e===t?!0:K$(e,t.parentElement):!1,kw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,jF=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function AF(e){return jF.has(e.tagName)||e.tabIndex!==-1}const Cu=new WeakSet;function AO(e){return t=>{t.key==="Enter"&&e(t)}}function Iv(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const OF=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=AO(()=>{if(Cu.has(n))return;Iv(n,"down");const a=AO(()=>{Iv(n,"up")}),i=()=>Iv(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 OO(e){return kw(e)&&!V$()}function EF(e,t,n={}){const[r,a,i]=q$(e,n),s=o=>{const l=o.currentTarget;if(!OO(o)||Cu.has(l))return;Cu.add(l);const c=t(o),f=(p,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),!(!OO(p)||!Cu.has(l))&&(Cu.delete(l),typeof c=="function"&&c(p,{success:m}))},d=p=>{f(p,n.useGlobalTarget||K$(l,p.target))},h=p=>{f(p,!1)};window.addEventListener("pointerup",d,a),window.addEventListener("pointercancel",h,a)};return r.forEach(o=>{!AF(o)&&o.getAttribute("tabindex")===null&&(o.tabIndex=0),(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,a),o.addEventListener("focus",c=>OF(c,a),a)}),i}function TF(e){return e==="x"||e==="y"?Cr[e]?null:(Cr[e]=!0,()=>{Cr[e]=!1}):Cr.x||Cr.y?null:(Cr.x=Cr.y=!0,()=>{Cr.x=Cr.y=!1})}const G$=new Set(["width","height","top","left","right","bottom",...Lc]);let hp;function NF(){hp=void 0}const aa={now:()=>(hp===void 0&&aa.set(Bt.isProcessing||O7.useManualTiming?Bt.timestamp:performance.now()),hp),set:e=>{hp=e,queueMicrotask(NF)}};function Lw(e,t){e.indexOf(t)===-1&&e.push(t)}function zw(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Iw{constructor(){this.subscriptions=[]}add(t){return Lw(this.subscriptions,t),()=>zw(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 Bw(e,t){return t?e*(1e3/t):0}const EO=30,CF=e=>!isNaN(parseFloat(e)),Gu={current:void 0};class _F{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,a=!0)=>{const i=aa.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=aa.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=CF(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 Iw);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 Gu.current&&Gu.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=aa.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>EO)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,EO);return Bw(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 Qr(e,t){return new _F(e,t)}function PF(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Qr(n))}function MF(e,t){const n=Yy(e,t);let{transitionEnd:r={},transition:a={},...i}=n||{};i={...i,...r};for(const s in i){const o=K7(i[s]);PF(e,s,o)}}function RF(e){return!!(cn(e)&&e.add)}function sx(e,t){const n=e.getValue("willChange");if(RF(n))return n.add(t)}function Y$(e){return e.props[j$]}const X$=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,DF=1e-7,$F=12;function kF(e,t,n,r,a){let i,s,o=0;do s=t+(n-t)/2,i=X$(s,r,a)-e,i>0?n=s:t=s;while(Math.abs(i)>DF&&++o<$F);return s}function Ld(e,t,n,r){if(e===t&&n===r)return yn;const a=i=>kF(i,0,1,e,n);return i=>i===0||i===1?i:X$(a(i),t,r)}const W$=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Q$=e=>t=>1-e(1-t),Z$=Ld(.33,1.53,.69,.99),Uw=Q$(Z$),J$=W$(Uw),e3=e=>(e*=2)<1?.5*Uw(e):.5*(2-Math.pow(2,-10*(e-1))),Fw=e=>1-Math.sin(Math.acos(e)),t3=Q$(Fw),n3=W$(Fw),r3=e=>/^0[^.\s]+$/u.test(e);function LF(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||r3(e):!0}const Yu=e=>Math.round(e*1e5)/1e5,Vw=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function zF(e){return e==null}const IF=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Hw=(e,t)=>n=>!!(typeof n=="string"&&IF.test(n)&&n.startsWith(e)||t&&!zF(n)&&Object.prototype.hasOwnProperty.call(n,t)),a3=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,i,s,o]=r.match(Vw);return{[e]:parseFloat(a),[t]:parseFloat(i),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},BF=e=>la(0,255,e),Bv={...zc,transform:e=>Math.round(BF(e))},Os={test:Hw("rgb","red"),parse:a3("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Bv.transform(e)+", "+Bv.transform(t)+", "+Bv.transform(n)+", "+Yu(Nf.transform(r))+")"};function UF(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 ox={test:Hw("#"),parse:UF,transform:Os.transform},nl={test:Hw("hsl","hue"),parse:a3("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ra.transform(Yu(t))+", "+ra.transform(Yu(n))+", "+Yu(Nf.transform(r))+")"},sn={test:e=>Os.test(e)||ox.test(e)||nl.test(e),parse:e=>Os.test(e)?Os.parse(e):nl.test(e)?nl.parse(e):ox.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Os.transform(e):nl.transform(e)},FF=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function VF(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Vw))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(FF))===null||n===void 0?void 0:n.length)||0)>0}const i3="number",s3="color",HF="var",qF="var(",TO="${}",KF=/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 Cf(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let i=0;const o=t.replace(KF,l=>(sn.test(l)?(r.color.push(i),a.push(s3),n.push(sn.parse(l))):l.startsWith(qF)?(r.var.push(i),a.push(HF),n.push(l)):(r.number.push(i),a.push(i3),n.push(parseFloat(l))),++i,TO)).split(TO);return{values:n,split:o,indexes:r,types:a}}function o3(e){return Cf(e).values}function l3(e){const{split:t,types:n}=Cf(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===i3?i+=Yu(a[s]):o===s3?i+=sn.transform(a[s]):i+=a[s]}return i}}const GF=e=>typeof e=="number"?0:e;function YF(e){const t=o3(e);return l3(e)(t.map(GF))}const Ji={test:VF,parse:o3,createTransformer:l3,getAnimatableNone:YF},XF=new Set(["brightness","contrast","saturate","opacity"]);function WF(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Vw)||[];if(!r)return e;const a=n.replace(r,"");let i=XF.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+a+")"}const QF=/\b([a-z-]*)\(.*?\)/gu,lx={...Ji,getAnimatableNone:e=>{const t=e.match(QF);return t?t.map(WF).join(" "):e}},ZF={...Tw,color:sn,backgroundColor:sn,outlineColor:sn,fill:sn,stroke:sn,borderColor:sn,borderTopColor:sn,borderRightColor:sn,borderBottomColor:sn,borderLeftColor:sn,filter:lx,WebkitFilter:lx},qw=e=>ZF[e];function c3(e,t){let n=qw(e);return n!==lx&&(n=Ji),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const JF=new Set(["auto","none","0"]);function eV(e,t,n){let r=0,a;for(;r<e.length&&!a;){const i=e[r];typeof i=="string"&&!JF.has(i)&&Cf(i).values.length&&(a=e[r]),r++}if(a&&n)for(const i of t)e[i]=c3(n,a)}const NO=e=>e===zc||e===fe,CO=(e,t)=>parseFloat(e.split(", ")[t]),_O=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const a=r.match(/^matrix3d\((.+)\)$/u);if(a)return CO(a[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?CO(i[1],e):0}},tV=new Set(["x","y","z"]),nV=Lc.filter(e=>!tV.has(e));function rV(e){const t=[];return nV.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Yl={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:_O(4,13),y:_O(5,14)};Yl.translateX=Yl.x;Yl.translateY=Yl.y;const Gs=new Set;let cx=!1,ux=!1;function u3(){if(ux){const e=Array.from(Gs).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=rV(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)})}ux=!1,cx=!1,Gs.forEach(e=>e.complete()),Gs.clear()}function f3(){Gs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ux=!0)})}function aV(){f3(),u3()}class Kw{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?(Gs.add(this),cx||(cx=!0,Re.read(f3),Re.resolveKeyframes(u3))):(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),Gs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Gs.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const d3=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),iV=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sV(e){const t=iV.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function h3(e,t,n=1){const[r,a]=sV(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return d3(s)?parseFloat(s):s}return Ew(a)?h3(a,t,n+1):a}const p3=e=>t=>t.test(e),oV={test:e=>e==="auto",parse:e=>e},m3=[zc,fe,ra,ui,Z7,Q7,oV],PO=e=>m3.find(p3(e));class y3 extends Kw{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 c=t[l];if(typeof c=="string"&&(c=c.trim(),Ew(c))){const f=h3(c,n.current);f!==void 0&&(t[l]=f),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!G$.has(r)||t.length!==2)return;const[a,i]=t,s=PO(a),o=PO(i);if(s!==o)if(NO(s)&&NO(o))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)LF(t[a])&&r.push(a);r.length&&eV(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Yl[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]=Yl[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,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const MO=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ji.test(e)||e==="0")&&!e.startsWith("url("));function lV(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 cV(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=MO(a,t),o=MO(i,t);return!s||!o?!1:lV(e)||(n==="spring"||Dw(n))&&r}const uV=e=>e!==null;function Xy(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(uV),i=t&&n!=="loop"&&t%2===1?0:a.length-1;return!i||r===void 0?a[i]:r}const fV=40;class g3{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=aa.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>fV?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&aV(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=aa.now(),this.hasAttemptedResolve=!0;const{name:r,type:a,velocity:i,delay:s,onComplete:o,onUpdate:l,isGenerator:c}=this.options;if(!c&&!cV(t,r,a,i))if(s)this.options.duration=0;else{l&&l(Xy(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 Uv(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 dV({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=Uv(l,o,e+1/3),i=Uv(l,o,e),s=Uv(l,o,e-1/3)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function am(e,t){return n=>n>0?t:e}const Fv=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},hV=[ox,Os,nl],pV=e=>hV.find(t=>t.test(e));function RO(e){const t=pV(e);if(!t)return!1;let n=t.parse(e);return t===nl&&(n=dV(n)),n}const DO=(e,t)=>{const n=RO(e),r=RO(t);if(!n||!r)return am(e,t);const a={...n};return i=>(a.red=Fv(n.red,r.red,i),a.green=Fv(n.green,r.green,i),a.blue=Fv(n.blue,r.blue,i),a.alpha=ht(n.alpha,r.alpha,i),Os.transform(a))},mV=(e,t)=>n=>t(e(n)),zd=(...e)=>e.reduce(mV),fx=new Set(["none","hidden"]);function yV(e,t){return fx.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function gV(e,t){return n=>ht(e,t,n)}function Gw(e){return typeof e=="number"?gV:typeof e=="string"?Ew(e)?am:sn.test(e)?DO:xV:Array.isArray(e)?v3:typeof e=="object"?sn.test(e)?DO:vV:am}function v3(e,t){const n=[...e],r=n.length,a=e.map((i,s)=>Gw(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=a[s](i);return n}}function vV(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=Gw(e[a])(e[a],t[a]));return a=>{for(const i in r)n[i]=r[i](a);return n}}function bV(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 xV=(e,t)=>{const n=Ji.createTransformer(t),r=Cf(e),a=Cf(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?fx.has(e)&&!a.values.length||fx.has(t)&&!r.values.length?yV(e,t):zd(v3(bV(r,a),a.values),n):am(e,t)};function b3(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ht(e,t,n):Gw(e)(e,t)}const SV=5;function x3(e,t,n){const r=Math.max(t-SV,0);return Bw(n-e(r),t-r)}const yt={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},Vv=.001;function wV({duration:e=yt.duration,bounce:t=yt.bounce,velocity:n=yt.velocity,mass:r=yt.mass}){let a,i,s=1-t;s=la(yt.minDamping,yt.maxDamping,s),e=la(yt.minDuration,yt.maxDuration,Ba(e)),s<1?(a=c=>{const f=c*s,d=f*e,h=f-n,p=dx(c,s),m=Math.exp(-d);return Vv-h/p*m},i=c=>{const d=c*s*e,h=d*n+n,p=Math.pow(s,2)*Math.pow(c,2)*e,m=Math.exp(-d),g=dx(Math.pow(c,2),s);return(-a(c)+Vv>0?-1:1)*((h-p)*m)/g}):(a=c=>{const f=Math.exp(-c*e),d=(c-n)*e+1;return-Vv+f*d},i=c=>{const f=Math.exp(-c*e),d=(n-c)*(e*e);return f*d});const o=5/e,l=AV(a,i,o);if(e=Ia(e),isNaN(l))return{stiffness:yt.stiffness,damping:yt.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const jV=12;function AV(e,t,n){let r=n;for(let a=1;a<jV;a++)r=r-e(r)/t(r);return r}function dx(e,t){return e*Math.sqrt(1-t*t)}const OV=["duration","bounce"],EV=["stiffness","damping","mass"];function $O(e,t){return t.some(n=>e[n]!==void 0)}function TV(e){let t={velocity:yt.velocity,stiffness:yt.stiffness,damping:yt.damping,mass:yt.mass,isResolvedFromDuration:!1,...e};if(!$O(e,EV)&&$O(e,OV))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,i=2*la(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:yt.mass,stiffness:a,damping:i}}else{const n=wV(e);t={...t,...n,mass:yt.mass},t.isResolvedFromDuration=!0}return t}function S3(e=yt.visualDuration,t=yt.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:c,mass:f,duration:d,velocity:h,isResolvedFromDuration:p}=TV({...n,velocity:-Ba(n.velocity||0)}),m=h||0,g=c/(2*Math.sqrt(l*f)),b=s-i,y=Ba(Math.sqrt(l/f)),v=Math.abs(b)<5;r||(r=v?yt.restSpeed.granular:yt.restSpeed.default),a||(a=v?yt.restDelta.granular:yt.restDelta.default);let x;if(g<1){const S=dx(y,g);x=j=>{const O=Math.exp(-g*y*j);return s-O*((m+g*y*b)/S*Math.sin(S*j)+b*Math.cos(S*j))}}else if(g===1)x=S=>s-Math.exp(-y*S)*(b+(m+y*b)*S);else{const S=y*Math.sqrt(g*g-1);x=j=>{const O=Math.exp(-g*y*j),E=Math.min(S*j,300);return s-O*((m+g*y*b)*Math.sinh(E)+S*b*Math.cosh(E))/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?Ia(m):x3(x,S,j));const E=Math.abs(O)<=r,T=Math.abs(s-j)<=a;o.done=E&&T}return o.value=o.done?s:j,o},toString:()=>{const S=Math.min(I$(w),ax),j=B$(O=>w.next(S*O).value,S,30);return S+"ms "+j}};return w}function kO({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:s,min:o,max:l,restDelta:c=.5,restSpeed:f}){const d=e[0],h={done:!1,value:d},p=E=>o!==void 0&&E<o||l!==void 0&&E>l,m=E=>o===void 0?l:l===void 0||Math.abs(o-E)<Math.abs(l-E)?o:l;let g=n*t;const b=d+g,y=s===void 0?b:s(b);y!==b&&(g=y-d);const v=E=>-g*Math.exp(-E/r),x=E=>y+v(E),w=E=>{const T=v(E),N=x(E);h.done=Math.abs(T)<=c,h.value=h.done?y:N};let S,j;const O=E=>{p(h.value)&&(S=E,j=S3({keyframes:[h.value,m(h.value)],velocity:x3(x,E,h.value),damping:a,stiffness:i,restDelta:c,restSpeed:f}))};return O(0),{calculatedDuration:null,next:E=>{let T=!1;return!j&&S===void 0&&(T=!0,w(E),O(E)),S!==void 0&&E>=S?j.next(E-S):(!T&&w(E),h)}}}const NV=Ld(.42,0,1,1),CV=Ld(0,0,.58,1),w3=Ld(.42,0,.58,1),_V=e=>Array.isArray(e)&&typeof e[0]!="number",PV={linear:yn,easeIn:NV,easeInOut:w3,easeOut:CV,circIn:Fw,circInOut:n3,circOut:t3,backIn:Uw,backInOut:J$,backOut:Z$,anticipate:e3},LO=e=>{if($w(e)){v$(e.length===4);const[t,n,r,a]=e;return Ld(t,n,r,a)}else if(typeof e=="string")return PV[e];return e};function MV(e,t,n){const r=[],a=n||b3,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]||yn:t;o=zd(l,o)}r.push(o)}return r}function Yw(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const i=e.length;if(v$(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=MV(t,r,a),l=o.length,c=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=ro(e[d],e[d+1],f);return o[d](h)};return n?f=>c(la(e[0],e[i-1],f)):c}function RV(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=ro(0,t,r);e.push(ht(n,1,a))}}function j3(e){const t=[0];return RV(t,e.length-1),t}function DV(e,t){return e.map(n=>n*t)}function $V(e,t){return e.map(()=>t||w3).splice(0,e.length-1)}function im({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=_V(r)?r.map(LO):LO(r),i={done:!1,value:t[0]},s=DV(n&&n.length===t.length?n:j3(t),e),o=Yw(s,t,{ease:Array.isArray(a)?a:$V(t,a)});return{calculatedDuration:e,next:l=>(i.value=o(l),i.done=l>=e,i)}}const kV=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Re.update(t,!0),stop:()=>Lr(t),now:()=>Bt.isProcessing?Bt.timestamp:aa.now()}},LV={decay:kO,inertia:kO,tween:im,keyframes:im,spring:S3},zV=e=>e/100;class Xw extends g3{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)||Kw,o=(l,c)=>this.onKeyframesResolved(l,c);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=Dw(n)?n:LV[n]||im;let l,c;o!==im&&typeof t[0]!="number"&&(l=zd(zV,b3(t[0],t[1])),t=[0,100]);const f=o({...this.options,keyframes:t});i==="mirror"&&(c=o({...this.options,keyframes:[...t].reverse(),velocity:-s})),f.calculatedDuration===null&&(f.calculatedDuration=I$(f));const{calculatedDuration:d}=f,h=d+a,p=h*(r+1)-a;return{generator:f,mirroredGenerator:c,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:E}=this.options;return{done:!0,value:E[E.length-1]}}const{finalKeyframe:a,generator:i,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:l,calculatedDuration:c,totalDuration:f,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:h,repeat:p,repeatType:m,repeatDelay:g,onUpdate:b}=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),v=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 E=Math.min(this.currentTime,f)/d;let T=Math.floor(E),N=E%1;!N&&E>=1&&(N=1),N===1&&T--,T=Math.min(T,p+1),!!(T%2)&&(m==="reverse"?(N=1-N,g&&(N-=g/d)):m==="mirror"&&(w=s)),x=la(0,1,N)*d}const S=v?{done:!1,value:l[0]}:w.next(x);o&&(S.value=o(S.value));let{done:j}=S;!v&&c!==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=Xy(l,this.options,a)),b&&b(S.value),O&&this.finish(),S}get duration(){const{resolved:t}=this;return t?Ba(t.calculatedDuration):0}get time(){return Ba(this.currentTime)}set time(t){t=Ia(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=Ba(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=kV,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 IV=new Set(["opacity","clipPath","filter","transform"]);function BV(e,t,n,{delay:r=0,duration:a=300,repeat:i=0,repeatType:s="loop",ease:o="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const f=F$(o,a);return Array.isArray(f)&&(c.easing=f),e.animate(c,{delay:r,duration:a,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}const UV=bw(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),sm=10,FV=2e4;function VV(e){return Dw(e.type)||e.type==="spring"||!U$(e.ease)}function HV(e,t){const n=new Xw({...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<FV;)r=n.sample(i),a.push(r.value),i+=sm;return{times:void 0,keyframes:a,duration:i-sm,ease:"linear"}}const A3={anticipate:e3,backInOut:J$,circInOut:n3};function qV(e){return e in A3}class zO extends g3{constructor(t){super(t);const{name:n,motionValue:r,element:a,keyframes:i}=this.options;this.resolver=new y3(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:c}=this.options;if(!o.owner||!o.owner.current)return!1;if(typeof i=="string"&&rm()&&qV(i)&&(i=A3[i]),VV(this.options)){const{onComplete:d,onUpdate:h,motionValue:p,element:m,...g}=this.options,b=HV(t,g);t=b.keyframes,t.length===1&&(t[1]=t[0]),r=b.duration,a=b.times,i=b.ease,s="keyframes"}const f=BV(o.owner.current,l,t,{...this.options,duration:r,times:a,ease:i});return f.startTime=c??this.calcStartTime(),this.pendingTimeline?(wO(f,this.pendingTimeline),this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:d}=this.options;o.set(Xy(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 Ba(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ba(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Ia(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 yn;const{animation:r}=n;wO(r,t)}return yn}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:c,onUpdate:f,onComplete:d,element:h,...p}=this.options,m=new Xw({...p,keyframes:r,duration:a,type:i,ease:s,times:o,isGenerator:!0}),g=Ia(this.time);c.setWithVelocity(m.sample(g-sm).value,m.sample(g).value,sm)}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:c}=n.owner.getProps();return UV()&&r&&IV.has(r)&&!l&&!c&&!a&&i!=="mirror"&&s!==0&&o!=="inertia"}}const KV={type:"spring",stiffness:500,damping:25,restSpeed:10},GV=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),YV={type:"keyframes",duration:.8},XV={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},WV=(e,{keyframes:t})=>t.length>2?YV:xo.has(e)?e.startsWith("scale")?GV(t[1]):KV:XV;function QV({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:i,repeatType:s,repeatDelay:o,from:l,elapsed:c,...f}){return!!Object.keys(f).length}const Ww=(e,t,n,r={},a,i)=>s=>{const o=Rw(r,e)||{},l=o.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Ia(l);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-c,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};QV(o)||(f={...f,...WV(e,f)}),f.duration&&(f.duration=Ia(f.duration)),f.repeatDelay&&(f.repeatDelay=Ia(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=Xy(f.keyframes,o);if(h!==void 0)return Re.update(()=>{f.onUpdate(h),f.onComplete()}),new bF([])}return!i&&zO.supports(f)?new zO(f):new Xw(f)};function ZV({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function O3(e,t,{delay:n=0,transitionOverride:r,type:a}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:o,...l}=t;r&&(s=r);const c=[],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&&ZV(f,d))continue;const m={delay:n,...Rw(s||{},d)};let g=!1;if(window.MotionHandoffAnimation){const y=Y$(e);if(y){const v=window.MotionHandoffAnimation(y,d,Re);v!==null&&(m.startTime=v,g=!0)}}sx(e,d),h.start(Ww(d,h,p,e.shouldReduceMotion&&G$.has(d)?{type:!1}:m,e,g));const b=h.animation;b&&c.push(b)}return o&&Promise.all(c).then(()=>{Re.update(()=>{o&&MF(e,o)})}),c}function hx(e,t,n={}){var r;const a=Yy(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(O3(e,a,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:f=0,staggerChildren:d,staggerDirection:h}=i;return JV(e,t,f+c,d,h,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,f]=l==="beforeChildren"?[s,o]:[o,s];return c().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?(c=0)=>c*r:(c=0)=>o-c*r;return Array.from(e.variantChildren).sort(e9).forEach((c,f)=>{c.notify("AnimationStart",t),s.push(hx(c,t,{...i,delay:n+l(f)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function e9(e,t){return e.sortNodePosition(t)}function t9(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(i=>hx(e,i,n));r=Promise.all(a)}else if(typeof t=="string")r=hx(e,t,n);else{const a=typeof t=="function"?Yy(e,t,n.custom):t;r=Promise.all(O3(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const n9=Sw.length;function E3(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?E3(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<n9;n++){const r=Sw[n],a=e.props[r];(Tf(a)||a===!1)&&(t[r]=a)}return t}const r9=[...xw].reverse(),a9=xw.length;function i9(e){return t=>Promise.all(t.map(({animation:n,options:r})=>t9(e,n,r)))}function s9(e){let t=i9(e),n=IO(),r=!0;const a=l=>(c,f)=>{var d;const h=Yy(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;c={...c,...g,...m}}return c};function i(l){t=l(e)}function s(l){const{props:c}=e,f=E3(e.parent)||{},d=[],h=new Set;let p={},m=1/0;for(let b=0;b<a9;b++){const y=r9[b],v=n[y],x=c[y]!==void 0?c[y]:f[y],w=Tf(x),S=y===l?v.isActive:null;S===!1&&(m=b);let j=x===f[y]&&x!==c[y]&&w;if(j&&r&&e.manuallyAnimateOnMount&&(j=!1),v.protectedKeys={...p},!v.isActive&&S===null||!x&&!v.prevProp||Ky(x)||typeof x=="boolean")continue;const O=o9(v.prevProp,x);let E=O||y===l&&v.isActive&&!j&&w||b>m&&w,T=!1;const N=Array.isArray(x)?x:[x];let M=N.reduce(a(y),{});S===!1&&(M={});const{prevResolvedValues:C={}}=v,L={...C,...M},D=k=>{E=!0,h.has(k)&&(T=!0,h.delete(k)),v.needsAnimating[k]=!0;const I=e.getValue(k);I&&(I.liveStyle=!1)};for(const k in L){const I=M[k],F=C[k];if(p.hasOwnProperty(k))continue;let H=!1;rx(I)&&rx(F)?H=!L$(I,F):H=I!==F,H?I!=null?D(k):h.add(k):I!==void 0&&h.has(k)?D(k):v.protectedKeys[k]=!0}v.prevProp=x,v.prevResolvedValues=M,v.isActive&&(p={...p,...M}),r&&e.blockInitialAnimation&&(E=!1),E&&(!(j&&O)||T)&&d.push(...N.map(k=>({animation:k,options:{type:y}})))}if(h.size){const b={};h.forEach(y=>{const v=e.getBaseTarget(y),x=e.getValue(y);x&&(x.liveStyle=!0),b[y]=v??null}),d.push({animation:b})}let g=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(d):Promise.resolve()}function o(l,c){var f;if(n[l].isActive===c)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,c)}),n[l].isActive=c;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=IO(),r=!0}}}function o9(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!L$(t,e):!1}function us(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function IO(){return{animate:us(!0),whileInView:us(),whileHover:us(),whileTap:us(),whileDrag:us(),whileFocus:us(),exit:us()}}class ns{constructor(t){this.isMounted=!1,this.node=t}update(){}}class l9 extends ns{constructor(t){super(t),t.animationState||(t.animationState=s9(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ky(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 c9=0;class u9 extends ns{constructor(){super(...arguments),this.id=c9++}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 f9={animation:{Feature:l9},exit:{Feature:u9}};function _f(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Id(e){return{point:{x:e.pageX,y:e.pageY}}}const d9=e=>t=>kw(t)&&e(t,Id(t));function Xu(e,t,n,r){return _f(e,t,d9(n),r)}const BO=(e,t)=>Math.abs(e-t);function h9(e,t){const n=BO(e.x,t.x),r=BO(e.y,t.y);return Math.sqrt(n**2+r**2)}class T3{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=qv(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,p=h9(d.offset,{x:0,y:0})>=3;if(!h&&!p)return;const{point:m}=d,{timestamp:g}=Bt;this.history.push({...m,timestamp:g});const{onStart:b,onMove:y}=this.handlers;h||(b&&b(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Hv(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 b=qv(d.type==="pointercancel"?this.lastMoveEventInfo:Hv(h,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,b),m&&m(d,b)},!kw(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=a||window;const s=Id(t),o=Hv(s,this.transformPagePoint),{point:l}=o,{timestamp:c}=Bt;this.history=[{...l,timestamp:c}];const{onSessionStart:f}=n;f&&f(t,qv(o,this.history)),this.removeListeners=zd(Xu(this.contextWindow,"pointermove",this.handlePointerMove),Xu(this.contextWindow,"pointerup",this.handlePointerUp),Xu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Lr(this.updatePoint)}}function Hv(e,t){return t?{point:t(e.point)}:e}function UO(e,t){return{x:e.x-t.x,y:e.y-t.y}}function qv({point:e},t){return{point:e,delta:UO(e,N3(t)),offset:UO(e,p9(t)),velocity:m9(t,.1)}}function p9(e){return e[0]}function N3(e){return e[e.length-1]}function m9(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=N3(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Ia(t)));)n--;if(!r)return{x:0,y:0};const i=Ba(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 C3=1e-4,y9=1-C3,g9=1+C3,_3=.01,v9=0-_3,b9=0+_3;function Jn(e){return e.max-e.min}function x9(e,t,n){return Math.abs(e-t)<=n}function FO(e,t,n,r=.5){e.origin=r,e.originPoint=ht(t.min,t.max,e.origin),e.scale=Jn(n)/Jn(t),e.translate=ht(n.min,n.max,e.origin)-e.originPoint,(e.scale>=y9&&e.scale<=g9||isNaN(e.scale))&&(e.scale=1),(e.translate>=v9&&e.translate<=b9||isNaN(e.translate))&&(e.translate=0)}function Wu(e,t,n,r){FO(e.x,t.x,n.x,r?r.originX:void 0),FO(e.y,t.y,n.y,r?r.originY:void 0)}function VO(e,t,n){e.min=n.min+t.min,e.max=e.min+Jn(t)}function S9(e,t,n){VO(e.x,t.x,n.x),VO(e.y,t.y,n.y)}function HO(e,t,n){e.min=t.min-n.min,e.max=e.min+Jn(t)}function Qu(e,t,n){HO(e.x,t.x,n.x),HO(e.y,t.y,n.y)}function w9(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 qO(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 j9(e,{top:t,left:n,bottom:r,right:a}){return{x:qO(e.x,n,a),y:qO(e.y,t,r)}}function KO(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function A9(e,t){return{x:KO(e.x,t.x),y:KO(e.y,t.y)}}function O9(e,t){let n=.5;const r=Jn(e),a=Jn(t);return a>r?n=ro(t.min,t.max-r,e.min):r>a&&(n=ro(e.min,e.max-a,t.min)),la(0,1,n)}function E9(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 px=.35;function T9(e=px){return e===!1?e=0:e===!0&&(e=px),{x:GO(e,"left","right"),y:GO(e,"top","bottom")}}function GO(e,t,n){return{min:YO(e,t),max:YO(e,n)}}function YO(e,t){return typeof e=="number"?e:e[t]||0}const XO=()=>({translate:0,scale:1,origin:0,originPoint:0}),rl=()=>({x:XO(),y:XO()}),WO=()=>({min:0,max:0}),bt=()=>({x:WO(),y:WO()});function ir(e){return[e("x"),e("y")]}function P3({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function N9({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function C9(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 Kv(e){return e===void 0||e===1}function mx({scale:e,scaleX:t,scaleY:n}){return!Kv(e)||!Kv(t)||!Kv(n)}function vs(e){return mx(e)||M3(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function M3(e){return QO(e.x)||QO(e.y)}function QO(e){return e&&e!=="0%"}function om(e,t,n){const r=e-n,a=t*r;return n+a}function ZO(e,t,n,r,a){return a!==void 0&&(e=om(e,a,r)),om(e,n,r)+t}function yx(e,t=0,n=1,r,a){e.min=ZO(e.min,t,n,r,a),e.max=ZO(e.max,t,n,r,a)}function R3(e,{x:t,y:n}){yx(e.x,t.translate,t.scale,t.originPoint),yx(e.y,n.translate,n.scale,n.originPoint)}const JO=.999999999999,eE=1.0000000000001;function _9(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&&il(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,R3(e,s)),r&&vs(i.latestValues)&&il(e,i.latestValues))}t.x<eE&&t.x>JO&&(t.x=1),t.y<eE&&t.y>JO&&(t.y=1)}function al(e,t){e.min=e.min+t,e.max=e.max+t}function tE(e,t,n,r,a=.5){const i=ht(e.min,e.max,a);yx(e,t,n,i,r)}function il(e,t){tE(e.x,t.x,t.scaleX,t.scale,t.originX),tE(e.y,t.y,t.scaleY,t.scale,t.originY)}function D3(e,t){return P3(C9(e.getBoundingClientRect(),t))}function P9(e,t,n){const r=D3(e,n),{scroll:a}=t;return a&&(al(r.x,a.offset.x),al(r.y,a.offset.y)),r}const $3=({current:e})=>e?e.ownerDocument.defaultView:null,M9=new WeakMap;class R9{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=bt(),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(Id(f).point)},i=(f,d)=>{const{drag:h,dragPropagation:p,onDragStart:m}=this.getProps();if(h&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=TF(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),ir(b=>{let y=this.getAxisMotionValue(b).get()||0;if(ra.test(y)){const{projection:v}=this.visualElement;if(v&&v.layout){const x=v.layout.layoutBox[b];x&&(y=Jn(x)*(parseFloat(y)/100))}}this.originPoint[b]=y}),m&&Re.postRender(()=>m(f,d)),sx(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:b}=d;if(p&&this.currentDirection===null){this.currentDirection=D9(b),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,b),this.updateAxis("y",d.point,b),this.visualElement.render(),g&&g(f,d)},o=(f,d)=>this.stop(f,d),l=()=>ir(f=>{var d;return this.getAnimationState(f)==="paused"&&((d=this.getAxisMotionValue(f).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new T3(t,{onSessionStart:a,onStart:i,onMove:s,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:$3(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||!Eh(t,a,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=w9(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&&tl(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&a?this.constraints=j9(a.layoutBox,n):this.constraints=!1,this.elastic=T9(r),i!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&ir(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=E9(a.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!tl(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const i=P9(r,a.root,this.visualElement.getTransformPagePoint());let s=A9(a.layout.layoutBox,i);if(n){const o=n(N9(s));this.hasMutatedConstraints=!!o,o&&(s=P3(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},c=ir(f=>{if(!Eh(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(c).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return sx(this.visualElement,t),r.start(Ww(t,r,0,n,this.visualElement,!1))}stopAnimation(){ir(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ir(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){ir(n=>{const{drag:r}=this.getProps();if(!Eh(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(!tl(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};ir(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const l=o.get();a[s]=O9({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(),ir(s=>{if(!Eh(s,t,null))return;const o=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];o.set(ht(l,c,a[s]))})}addListeners(){if(!this.visualElement.current)return;M9.set(this.visualElement,this);const t=this.visualElement.current,n=Xu(t,"pointerdown",l=>{const{drag:c,dragListener:f=!0}=this.getProps();c&&f&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();tl(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=_f(window,"resize",()=>this.scalePositionWithinConstraints()),o=a.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(ir(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=px,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:i,dragElastic:s,dragMomentum:o}}}function Eh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function D9(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class $9 extends ns{constructor(t){super(t),this.removeGroupControls=yn,this.removeListeners=yn,this.controls=new R9(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||yn}unmount(){this.removeGroupControls(),this.removeListeners()}}const nE=e=>(t,n)=>{e&&Re.postRender(()=>e(t,n))};class k9 extends ns{constructor(){super(...arguments),this.removePointerDownListener=yn}onPointerDown(t){this.session=new T3(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:$3(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:nE(t),onStart:nE(n),onMove:r,onEnd:(i,s)=>{delete this.session,a&&Re.postRender(()=>a(i,s))}}}mount(){this.removePointerDownListener=Xu(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 pp={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rE(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ou={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(fe.test(e))e=parseFloat(e);else return e;const n=rE(e,t.target.x),r=rE(e,t.target.y);return`${n}% ${r}%`}},L9={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=Ji.parse(e);if(a.length>5)return r;const i=Ji.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 c=ht(o,l,.5);return typeof a[2+s]=="number"&&(a[2+s]/=c),typeof a[3+s]=="number"&&(a[3+s]/=c),i(a)}};class z9 extends A.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:i}=t;lF(I9),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()})),pp.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(),jw.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 k3(e){const[t,n]=g$(),r=A.useContext(gw);return u.jsx(z9,{...e,layoutGroup:r,switchLayoutGroup:A.useContext(A$),isPresent:t,safeToRemove:n})}const I9={borderRadius:{...ou,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ou,borderTopRightRadius:ou,borderBottomLeftRadius:ou,borderBottomRightRadius:ou,boxShadow:L9};function B9(e,t,n){const r=cn(e)?e:Qr(e);return r.start(Ww("",r,t,n)),r.animation}function U9(e){return e instanceof SVGElement&&e.tagName!=="svg"}const F9=(e,t)=>e.depth-t.depth;class V9{constructor(){this.children=[],this.isDirty=!1}add(t){Lw(this.children,t),this.isDirty=!0}remove(t){zw(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(F9),this.isDirty=!1,this.children.forEach(t)}}function H9(e,t){const n=aa.now(),r=({timestamp:a})=>{const i=a-n;i>=t&&(Lr(r),e(i-t))};return Re.read(r,!0),()=>Lr(r)}const L3=["TopLeft","TopRight","BottomLeft","BottomRight"],q9=L3.length,aE=e=>typeof e=="string"?parseFloat(e):e,iE=e=>typeof e=="number"||fe.test(e);function K9(e,t,n,r,a,i){a?(e.opacity=ht(0,n.opacity!==void 0?n.opacity:1,G9(r)),e.opacityExit=ht(t.opacity!==void 0?t.opacity:1,0,Y9(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<q9;s++){const o=`border${L3[s]}Radius`;let l=sE(t,o),c=sE(n,o);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||iE(l)===iE(c)?(e[o]=Math.max(ht(aE(l),aE(c),r),0),(ra.test(c)||ra.test(l))&&(e[o]+="%")):e[o]=c}(t.rotate||n.rotate)&&(e.rotate=ht(t.rotate||0,n.rotate||0,r))}function sE(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const G9=z3(0,.5,t3),Y9=z3(.5,.95,yn);function z3(e,t,n){return r=>r<e?0:r>t?1:n(ro(e,t,r))}function oE(e,t){e.min=t.min,e.max=t.max}function tr(e,t){oE(e.x,t.x),oE(e.y,t.y)}function lE(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function cE(e,t,n,r,a){return e-=t,e=om(e,1/n,r),a!==void 0&&(e=om(e,1/a,r)),e}function X9(e,t=0,n=1,r=.5,a,i=e,s=e){if(ra.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=cE(e.min,t,n,o,a),e.max=cE(e.max,t,n,o,a)}function uE(e,t,[n,r,a],i,s){X9(e,t[n],t[r],t[a],t.scale,i,s)}const W9=["x","scaleX","originX"],Q9=["y","scaleY","originY"];function fE(e,t,n,r){uE(e.x,t,W9,n?n.x:void 0,r?r.x:void 0),uE(e.y,t,Q9,n?n.y:void 0,r?r.y:void 0)}function dE(e){return e.translate===0&&e.scale===1}function I3(e){return dE(e.x)&&dE(e.y)}function hE(e,t){return e.min===t.min&&e.max===t.max}function Z9(e,t){return hE(e.x,t.x)&&hE(e.y,t.y)}function pE(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function B3(e,t){return pE(e.x,t.x)&&pE(e.y,t.y)}function mE(e){return Jn(e.x)/Jn(e.y)}function yE(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class J9{constructor(){this.members=[]}add(t){Lw(this.members,t),t.scheduleRender()}remove(t){if(zw(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 eH(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:c,rotate:f,rotateX:d,rotateY:h,skewX:p,skewY:m}=n;c&&(r=`perspective(${c}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 bs={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},_u=typeof window<"u"&&window.MotionDebug!==void 0,Gv=["","X","Y","Z"],tH={visibility:"hidden"},gE=1e3;let nH=0;function Yv(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function U3(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Y$(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&&U3(r)}function F3({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,_u&&(bs.totalNodes=bs.resolvedTargetDeltas=bs.recalculatedProjection=0),this.nodes.forEach(iH),this.nodes.forEach(uH),this.nodes.forEach(fH),this.nodes.forEach(sH),_u&&window.MotionDebug.record(bs)},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 V9)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Iw),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=U9(s),this.instance=s;const{layoutId:l,layout:c,visualElement:f}=this.options;if(f&&!f.current&&f.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),o&&(c||l)&&(this.isLayoutDirty=!0),e){let d;const h=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=H9(h,250),pp.hasAnimatedSinceResize&&(pp.hasAnimatedSinceResize=!1,this.nodes.forEach(bE))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&f&&(l||c)&&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()||yH,{onLayoutAnimationStart:b,onLayoutAnimationComplete:y}=f.getProps(),v=!this.targetLayout||!B3(this.targetLayout,m)||p,x=!h&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||h&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,x);const w={...Rw(g,"layout"),onPlay:b,onComplete:y};(f.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else h||bE(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,Lr(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(dH),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&&U3(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 c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(vE);return}this.isUpdating||this.nodes.forEach(lH),this.isUpdating=!1,this.nodes.forEach(cH),this.nodes.forEach(rH),this.nodes.forEach(aH),this.clearAllSnapshots();const o=aa.now();Bt.delta=la(0,1e3/60,o-Bt.timestamp),Bt.timestamp=o,Bt.isProcessing=!0,zv.update.process(Bt),zv.preRender.process(Bt),zv.render.process(Bt),Bt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,jw.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(oH),this.sharedNodes.forEach(hH)}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=bt(),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&&!I3(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,f=c!==this.prevTransformTemplateValue;s&&(o||vs(this.latestValues)||f)&&(a(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return s&&(l=this.removeTransform(l)),gH(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:o}=this.options;if(!o)return bt();const l=o.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(vH))){const{scroll:f}=this.root;f&&(al(l.x,f.offset.x),al(l.y,f.offset.y))}return l}removeElementScroll(s){var o;const l=bt();if(tr(l,s),!((o=this.scroll)===null||o===void 0)&&o.wasRoot)return l;for(let c=0;c<this.path.length;c++){const f=this.path[c],{scroll:d,options:h}=f;f!==this.root&&d&&h.layoutScroll&&(d.wasRoot&&tr(l,s),al(l.x,d.offset.x),al(l.y,d.offset.y))}return l}applyTransform(s,o=!1){const l=bt();tr(l,s);for(let c=0;c<this.path.length;c++){const f=this.path[c];!o&&f.options.layoutScroll&&f.scroll&&f!==f.root&&il(l,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),vs(f.latestValues)&&il(l,f.latestValues)}return vs(this.latestValues)&&il(l,this.latestValues),l}removeTransform(s){const o=bt();tr(o,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!vs(c.latestValues))continue;mx(c.latestValues)&&c.updateSnapshot();const f=bt(),d=c.measurePageBox();tr(f,d),fE(o,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,f)}return vs(this.latestValues)&&fE(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!==Bt.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 c=!!this.resumingFrom||this!==l;if(!(s||c&&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=Bt.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=bt(),this.relativeTargetOrigin=bt(),Qu(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),tr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=bt(),this.targetWithTransforms=bt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),S9(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):tr(this.target,this.layout.layoutBox),R3(this.target,this.targetDelta)):tr(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=bt(),this.relativeTargetOrigin=bt(),Qu(this.relativeTargetOrigin,this.target,p.target),tr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}_u&&bs.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||mx(this.parent.latestValues)||M3(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 c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Bt.timestamp&&(c=!1),c)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;tr(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,p=this.treeScale.y;_9(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=bt());const{target:m}=o;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(lE(this.prevProjectionDelta.x,this.projectionDelta.x),lE(this.prevProjectionDelta.y,this.projectionDelta.y)),Wu(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==p||!yE(this.projectionDelta.x,this.prevProjectionDelta.x)||!yE(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),_u&&bs.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=rl(),this.projectionDelta=rl(),this.projectionDeltaWithTransform=rl()}setAnimationOrigin(s,o=!1){const l=this.snapshot,c=l?l.latestValues:{},f={...this.latestValues},d=rl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const h=bt(),p=l?l.source:void 0,m=this.layout?this.layout.source:void 0,g=p!==m,b=this.getStack(),y=!b||b.members.length<=1,v=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some(mH));this.animationProgress=0;let x;this.mixTargetDelta=w=>{const S=w/1e3;xE(d.x,s.x,S),xE(d.y,s.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Qu(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),pH(this.relativeTarget,this.relativeTargetOrigin,h,S),x&&Z9(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=bt()),tr(x,this.relativeTarget)),g&&(this.animationValues=f,K9(f,c,this.latestValues,S,v,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&&(Lr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Re.update(()=>{pp.hasAnimatedSinceResize=!0,this.currentAnimation=B9(0,gE,{...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(gE),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:l,layout:c,latestValues:f}=s;if(!(!o||!l||!c)){if(this!==s&&this.layout&&c&&V3(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||bt();const d=Jn(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const h=Jn(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}tr(o,l),il(o,f),Wu(this.projectionDeltaWithTransform,this.layoutCorrected,o,f)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new J9),this.sharedNodes.get(s).add(o);const c=o.options.initialPromotionConfig;o.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.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 c=this.getStack();c&&c.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 c={};l.z&&Yv("z",s,c,this.animationValues);for(let f=0;f<Gv.length;f++)Yv(`rotate${Gv[f]}`,s,c,this.animationValues),Yv(`skew${Gv[f]}`,s,c,this.animationValues);s.render();for(const f in c)s.setStaticValue(f,c[f]),this.animationValues&&(this.animationValues[f]=c[f]);s.scheduleRender()}getProjectionStyles(s){var o,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return tH;const c={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=dp(s==null?void 0:s.pointerEvents)||"",c.transform=f?f(this.latestValues,""):"none",c;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=dp(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!vs(this.latestValues)&&(g.transform=f?f({},""):"none",this.hasProjected=!1),g}const h=d.animationValues||d.latestValues;this.applyTransformsToTarget(),c.transform=eH(this.projectionDeltaWithTransform,this.treeScale,h),f&&(c.transform=f(h,c.transform));const{x:p,y:m}=this.projectionDelta;c.transformOrigin=`${p.origin*100}% ${m.origin*100}% 0`,d.animationValues?c.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:c.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const g in nm){if(h[g]===void 0)continue;const{correct:b,applyTo:y}=nm[g],v=c.transform==="none"?h[g]:b(h[g],d);if(y){const x=y.length;for(let w=0;w<x;w++)c[y[w]]=v}else c[g]=v}return this.options.layoutId&&(c.pointerEvents=d===this?dp(s==null?void 0:s.pointerEvents)||"":"none"),c}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(vE),this.root.sharedNodes.clear()}}}function rH(e){e.updateLayout()}function aH(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"?ir(d=>{const h=s?n.measuredBox[d]:n.layoutBox[d],p=Jn(h);h.min=r[d].min,h.max=h.min+p}):V3(i,n.layoutBox,r)&&ir(d=>{const h=s?n.measuredBox[d]:n.layoutBox[d],p=Jn(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=rl();Wu(o,r,n.layoutBox);const l=rl();s?Wu(l,e.applyTransform(a,!0),n.measuredBox):Wu(l,r,n.layoutBox);const c=!I3(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=bt();Qu(m,n.layoutBox,h.layoutBox);const g=bt();Qu(g,r,p.layoutBox),B3(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:c,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function iH(e){_u&&bs.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 sH(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function oH(e){e.clearSnapshot()}function vE(e){e.clearMeasurements()}function lH(e){e.isLayoutDirty=!1}function cH(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function bE(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function uH(e){e.resolveTargetDelta()}function fH(e){e.calcProjection()}function dH(e){e.resetSkewAndRotation()}function hH(e){e.removeLeadSnapshot()}function xE(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 SE(e,t,n,r){e.min=ht(t.min,n.min,r),e.max=ht(t.max,n.max,r)}function pH(e,t,n,r){SE(e.x,t.x,n.x,r),SE(e.y,t.y,n.y,r)}function mH(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const yH={duration:.45,ease:[.4,0,.1,1]},wE=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),jE=wE("applewebkit/")&&!wE("chrome/")?Math.round:yn;function AE(e){e.min=jE(e.min),e.max=jE(e.max)}function gH(e){AE(e.x),AE(e.y)}function V3(e,t,n){return e==="position"||e==="preserve-aspect"&&!x9(mE(t),mE(n),.2)}function vH(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const bH=F3({attachResizeListener:(e,t)=>_f(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Xv={current:void 0},H3=F3({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Xv.current){const e=new bH({});e.mount(window),e.setOptions({layoutScroll:!0}),Xv.current=e}return Xv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),xH={pan:{Feature:k9},drag:{Feature:$9,ProjectionNode:H3,MeasureLayout:k3}};function OE(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,Id(t)))}class SH extends ns{mount(){const{current:t}=this.node;t&&(this.unmount=wF(t,n=>(OE(this.node,n,"Start"),r=>OE(this.node,r,"End"))))}unmount(){}}class wH extends ns{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=zd(_f(this.node.current,"focus",()=>this.onFocus()),_f(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function EE(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,Id(t)))}class jH extends ns{mount(){const{current:t}=this.node;t&&(this.unmount=EF(t,n=>(EE(this.node,n,"Start"),(r,{success:a})=>EE(this.node,r,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const gx=new WeakMap,Wv=new WeakMap,AH=e=>{const t=gx.get(e.target);t&&t(e)},OH=e=>{e.forEach(AH)};function EH({root:e,...t}){const n=e||document;Wv.has(n)||Wv.set(n,{});const r=Wv.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(OH,{root:e,...t})),r[a]}function TH(e,t,n){const r=EH(t);return gx.set(e,n),r.observe(e),()=>{gx.delete(e),r.unobserve(e)}}const NH={some:0,all:1};class CH extends ns{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:NH[a]},o=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:f,onViewportLeave:d}=this.node.getProps(),h=c?f:d;h&&h(l)};return TH(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(_H(t,n))&&this.startObserver()}unmount(){}}function _H({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const PH={inView:{Feature:CH},tap:{Feature:jH},focus:{Feature:wH},hover:{Feature:SH}},MH={layout:{ProjectionNode:H3,MeasureLayout:k3}},lm={current:null},Qw={current:!1};function q3(){if(Qw.current=!0,!!vw)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>lm.current=e.matches;e.addListener(t),t()}else lm.current=!1}const RH=[...m3,sn,Ji],DH=e=>RH.find(p3(e)),TE=new WeakMap;function $H(e,t,n){for(const r in t){const a=t[r],i=n[r];if(cn(a))e.addValue(r,a);else if(cn(i))e.addValue(r,Qr(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,Qr(s!==void 0?s:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const NE=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class kH{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=Kw,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=aa.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,Re.render(this.render,!1,!0))};const{latestValues:l,renderState:c,onUpdate:f}=s;this.onUpdate=f,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,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=Gy(n),this.isVariantNode=w$(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&&cn(m)&&m.set(l[p],!1)}}mount(t){this.current=t,TE.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)),Qw.current||q3(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:lm.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){TE.delete(this.current),this.projection&&this.projection.unmount(),Lr(this.notifyUpdate),Lr(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=xo.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 Gl){const n=Gl[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):bt()}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<NE.length;r++){const a=NE[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=$H(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=Qr(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"&&(d3(a)||r3(a))?a=parseFloat(a):!DH(a)&&Ji.test(n)&&(a=c3(t,n)),this.setBaseTarget(t,cn(a)?a.get():a)),cn(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=Ow(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&&!cn(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 Iw),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class K3 extends kH{constructor(){super(...arguments),this.KeyframeResolver=y3}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;cn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function LH(e){return window.getComputedStyle(e)}class zH extends K3{constructor(){super(...arguments),this.type="html",this.renderInstance=P$}readValueFromInstance(t,n){if(xo.has(n)){const r=qw(n);return r&&r.default||0}else{const r=LH(t),a=(N$(n)?r.getPropertyValue(n):r[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return D3(t,n)}build(t,n,r){Nw(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Mw(t,n,r)}}class IH extends K3{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=bt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(xo.has(n)){const r=qw(n);return r&&r.default||0}return n=M$.has(n)?n:ww(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return $$(t,n,r)}build(t,n,r){Cw(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,a){R$(t,n,r,a)}mount(t){this.isSVGTag=Pw(t.tagName),super.mount(t)}}const BH=(e,t)=>Aw(e)?new IH(t):new zH(t,{allowProjection:e!==A.Fragment}),UH=gF({...f9,...PH,...xH,...MH},BH),Nt=M7(UH);function G3(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),()=>Lr(r)}const mp=new WeakMap;let fi;function FH(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 VH({target:e,contentRect:t,borderBoxSize:n}){var r;(r=mp.get(e))===null||r===void 0||r.forEach(a=>{a({target:e,contentSize:t,get size(){return FH(e,n)}})})}function HH(e){e.forEach(VH)}function qH(){typeof ResizeObserver>"u"||(fi=new ResizeObserver(HH))}function KH(e,t){fi||qH();const n=H$(e);return n.forEach(r=>{let a=mp.get(r);a||(a=new Set,mp.set(r,a)),a.add(t),fi==null||fi.observe(r)}),()=>{n.forEach(r=>{const a=mp.get(r);a==null||a.delete(t),a!=null&&a.size||fi==null||fi.unobserve(r)})}}const yp=new Set;let Zu;function GH(){Zu=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};yp.forEach(n=>n(t))},window.addEventListener("resize",Zu)}function YH(e){return yp.add(e),Zu||GH(),()=>{yp.delete(e),!yp.size&&Zu&&(Zu=void 0)}}function XH(e,t){return typeof e=="function"?YH(e):KH(e,t)}const WH=50,CE=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),QH=()=>({time:0,x:CE(),y:CE()}),ZH={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function _E(e,t,n,r){const a=n[t],{length:i,position:s}=ZH[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=ro(0,a.scrollLength,a.current);const c=r-l;a.velocity=c>WH?0:Bw(a.current-o,c)}function JH(e,t,n){_E(e,"x",t,n),_E(e,"y",t,n),t.time=n}function eq(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 vx={start:0,center:.5,end:1};function PE(e,t,n=0){let r=0;if(e in vx&&(e=vx[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 tq=[0,0];function nq(e,t,n,r){let a=Array.isArray(e)?e:tq,i=0,s=0;return typeof e=="number"?a=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?a=e.split(" "):a=[e,vx[e]?e:"0"]),i=PE(a[0],n,r),s=PE(a[1],t),i-s}const rq={All:[[0,0],[1,1]]},aq={x:0,y:0};function iq(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function sq(e,t,n){const{offset:r=rq.All}=n,{target:a=e,axis:i="y"}=n,s=i==="y"?"height":"width",o=a!==e?eq(a,e):aq,l=a===e?{width:e.scrollWidth,height:e.scrollHeight}:iq(a),c={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],c[s],l[s],o[i]);!f&&p!==t[i].interpolatorOffsets[h]&&(f=!0),t[i].offset[h]=p}f&&(t[i].interpolate=Yw(t[i].offset,j3(r),{clamp:!1}),t[i].interpolatorOffsets=[...t[i].offset]),t[i].progress=la(0,1,t[i].interpolate(t[i].current))}function oq(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 lq(e,t,n,r={}){return{measure:()=>oq(e,r.target,n),update:a=>{JH(e,n,a),(r.offset||r.target)&&sq(e,n,r)},notify:()=>t(n)}}const lu=new WeakMap,ME=new WeakMap,Qv=new WeakMap,RE=e=>e===document.documentElement?window:e;function Zw(e,{container:t=document.documentElement,...n}={}){let r=Qv.get(t);r||(r=new Set,Qv.set(t,r));const a=QH(),i=lq(t,e,a,n);if(r.add(i),!lu.has(t)){const o=()=>{for(const h of r)h.measure()},l=()=>{for(const h of r)h.update(Bt.timestamp)},c=()=>{for(const h of r)h.notify()},f=()=>{Re.read(o,!1,!0),Re.read(l,!1,!0),Re.update(c,!1,!0)};lu.set(t,f);const d=RE(t);window.addEventListener("resize",f,{passive:!0}),t!==document.documentElement&&ME.set(t,XH(t,f)),d.addEventListener("scroll",f,{passive:!0})}const s=lu.get(t);return Re.read(s,!1,!0),()=>{var o;Lr(s);const l=Qv.get(t);if(!l||(l.delete(i),l.size))return;const c=lu.get(t);lu.delete(t),c&&(RE(t).removeEventListener("scroll",c),(o=ME.get(t))===null||o===void 0||o(),window.removeEventListener("resize",c))}}function cq({source:e,container:t,axis:n="y"}){e&&(t=e);const r={value:0},a=Zw(i=>{r.value=i[n].progress*100},{container:t,axis:n});return{currentTime:r,cancel:a}}const Zv=new Map;function Y3({source:e,container:t=document.documentElement,axis:n="y"}={}){e&&(t=e),Zv.has(t)||Zv.set(t,{});const r=Zv.get(t);return r[n]||(r[n]=z$()?new ScrollTimeline({source:t,axis:n}):cq({source:t,axis:n})),r[n]}function uq(e){return e.length===2}function X3(e){return e&&(e.target||e.offset)}function fq(e,t){return uq(e)||X3(t)?Zw(n=>{e(n[t.axis].progress,n)},t):G3(e,Y3(t))}function dq(e,t){if(e.flatten(),X3(t))return e.pause(),Zw(n=>{e.time=e.duration*n[t.axis].progress},t);{const n=Y3(t);return e.attachTimeline?e.attachTimeline(n,r=>(r.pause(),G3(a=>{r.time=r.duration*a},n))):yn}}function hq(e,{axis:t="y",...n}={}){const r={axis:t,...n};return typeof e=="function"?fq(e,r):dq(e,r)}function DE(e,t){A7(!!(!t||t.current))}const pq=()=>({scrollX:Qr(0),scrollY:Qr(0),scrollXProgress:Qr(0),scrollYProgress:Qr(0)});function mq({container:e,target:t,layoutEffect:n=!0,...r}={}){const a=kc(pq);return(n?Hy:A.useEffect)(()=>(DE("target",t),DE("container",e),hq((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 yq(e){const t=kc(()=>Qr(e)),{isStatic:n}=A.useContext(Vy);if(n){const[,r]=A.useState(e);A.useEffect(()=>t.on("change",r),[])}return t}function W3(e,t){const n=yq(t()),r=()=>n.set(t());return r(),Hy(()=>{const a=()=>Re.preRender(r,!1,!0),i=e.map(s=>s.on("change",a));return()=>{i.forEach(s=>s()),Lr(r)}}),n}const gq=e=>e&&typeof e=="object"&&e.mix,vq=e=>gq(e)?e.mix:void 0;function bq(...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=Yw(a,i,{mixer:vq(i[0]),...s});return t?o(r):o}function xq(e){Gu.current=[],e();const t=W3(Gu.current,e);return Gu.current=void 0,t}function Jv(e,t,n,r){if(typeof e=="function")return xq(e);const a=typeof t=="function"?t:bq(t,n,r);return Array.isArray(e)?$E(e,a):$E([e],([i])=>a(i))}function $E(e,t){const n=kc(()=>[]);return W3(e,()=>{n.length=0;const r=e.length;for(let a=0;a<r;a++)n[a]=e[a].get();return t(n)})}function ti(){!Qw.current&&q3();const[e]=A.useState(lm.current);return e}const pe=e=>typeof e=="string",cu=()=>{let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n},kE=e=>e==null?"":String(e),Sq=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},wq=/###/g,LE=e=>e&&e.includes("###")?e.replace(wq,"."):e,zE=e=>!e||pe(e),Ju=(e,t,n)=>{const r=pe(t)?t.split("."):t;let a=0;for(;a<r.length-1;){if(zE(e))return{};const i=LE(r[a]);!e[i]&&n&&(e[i]=new n),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++a}return zE(e)?{}:{obj:e,k:LE(r[a])}},IE=(e,t,n)=>{const{obj:r,k:a}=Ju(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=Ju(e,s,Object);for(;o.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),o=Ju(e,s,Object),o!=null&&o.obj&&typeof o.obj[`${o.k}.${i}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${i}`]=n},jq=(e,t,n,r)=>{const{obj:a,k:i}=Ju(e,t,Object);a[i]=a[i]||[],a[i].push(n)},cm=(e,t)=>{const{obj:n,k:r}=Ju(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Aq=(e,t,n)=>{const r=cm(e,n);return r!==void 0?r:cm(t,n)},Q3=(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]):Q3(e[r],t[r],n):e[r]=t[r]);return e},xa=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),Oq={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},Eq=e=>pe(e)?e.replace(/[&<>"'\/]/g,t=>Oq[t]):e;class Tq{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 Nq=[" ",",","?","!",";"],Cq=new Tq(20),_q=(e,t,n)=>{t=t||"",n=n||"";const r=Nq.filter(s=>!t.includes(s)&&!n.includes(s));if(r.length===0)return!0;const a=Cq.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},bx=(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},Pf=e=>e==null?void 0:e.replace(/_/g,"-"),Pq={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 um{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||Pq,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 um(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new um(this.logger,t)}}var Zr=new um;let Wy=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 BE extends Wy{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 c,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=cm(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:bx((f=(c=this.data)==null?void 0:c[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),IE(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=cm(this.data,o)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?Q3(l,r,i):l={...l,...r},IE(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 Z3={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 J3=Symbol("i18next/PATH_KEY");function Mq(){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===J3?e:(e.push(a),n=Proxy.revocable(r,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}function vl(e,t){const{[J3]:n}=e(Mq()),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 eb=e=>!pe(e)&&typeof e!="boolean"&&typeof e!="number";class fm extends Wy{constructor(t,n={}){super(),Sq(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Zr.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=eb(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&&!_q(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 c=t.split(r);(r!==a||r===a&&this.options.ns.includes(c[0]))&&(i=c.shift()),t=c.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=vl(t,{...this.options,...a})),Array.isArray(t)||(t=[String(t)]),t=t.map(L=>typeof L=="function"?vl(L,{...this.options,...a}):String(L));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),c=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:`${c}${f}${o}`,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(a)}:`${c}${f}${o}`:i?{res:o,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:c,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,b=(p==null?void 0:p.exactUsedKey)||o,y=["[object Number]","[object Function]","[object RegExp]"],v=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,w=a.count!==void 0&&!pe(a.count),S=fm.hasDefaultValue(a),j=w?this.pluralResolver.getSuffix(d,a.count,a):"",O=a.ordinal&&w?this.pluralResolver.getSuffix(d,a.count,{ordinal:!1}):"",E=w&&!a.ordinal&&a.count===0,T=E&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${j}`]||a[`defaultValue${O}`]||a.defaultValue;let N=m;x&&!m&&S&&(N=T);const M=eb(N),C=Object.prototype.toString.apply(N);if(x&&N&&M&&!y.includes(C)&&!(pe(v)&&Array.isArray(N))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const L=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,N,{...a,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(p.res=L,p.usedParams=this.getUsedParamsDetails(a),p):L}if(s){const L=Array.isArray(N),D=L?[]:{},$=L?b:g;for(const P in N)if(Object.prototype.hasOwnProperty.call(N,P)){const k=`${$}${s}${P}`;S&&!m?D[P]=this.translate(k,{...a,defaultValue:eb(T)?T[P]:void 0,joinArrays:!1,ns:l}):D[P]=this.translate(k,{...a,joinArrays:!1,ns:l}),D[P]===k&&(D[P]=N[P])}m=D}}else if(x&&pe(v)&&Array.isArray(m))m=m.join(v),m&&(m=this.extendTranslation(m,t,a,r));else{let L=!1,D=!1;!this.isValidLookup(m)&&S&&(L=!0,m=T),this.isValidLookup(m)||(D=!0,m=o);const P=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&D?void 0:m,k=S&&T!==m&&this.options.updateMissing;if(D||L||k){if(this.logger.log(k?"updateKey":"missingKey",d,c,w&&!k?`${o}${this.pluralResolver.getSuffix(d,a.count,a)}`:o,k?T:m),s){const Y=this.resolve(o,{...a,keySeparator:!1});Y&&Y.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 Y=0;Y<F.length;Y++)I.push(F[Y]);else this.options.saveMissingTo==="all"?I=this.languageUtils.toResolveHierarchy(a.lng||this.language):I.push(a.lng||this.language);const H=(Y,q,te)=>{var ye;const Z=S&&te!==m?te:P;this.options.missingKeyHandler?this.options.missingKeyHandler(Y,c,q,Z,k,a):(ye=this.backendConnector)!=null&&ye.saveMissing&&this.backendConnector.saveMissing(Y,c,q,Z,k,a),this.emit("missingKey",Y,c,q,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&w?I.forEach(Y=>{const q=this.pluralResolver.getSuffixes(Y,a);E&&a[`defaultValue${this.options.pluralSeparator}zero`]&&!q.includes(`${this.options.pluralSeparator}zero`)&&q.push(`${this.options.pluralSeparator}zero`),q.forEach(te=>{H([Y],o+te,a[`defaultValue${te}`]||T)})}):H(I,o,T))}m=this.extendTranslation(m,t,a,p,r),D&&m===o&&this.options.appendNamespaceToMissingKey&&(m=`${c}${f}${o}`),(D||L)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${f}${o}`:o,L?m:void 0,a))}return i?(p.res=m,p.usedParams=this.getUsedParamsDetails(a),p):m}extendTranslation(t,n,r,a,i){var l,c;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)&&(((c=r==null?void 0:r.interpolation)==null?void 0:c.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=Z3.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"?vl(l,{...this.options,...n}):l)),t.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),f=c.key;a=f;let d=c.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(b=>{var y,v;this.isValidLookup(r)||(o=b,!this.checkedLoadedFor[`${g[0]}-${b}`]&&((y=this.utils)!=null&&y.hasLoadedNamespace)&&!((v=this.utils)!=null&&v.hasLoadedNamespace(o))&&(this.checkedLoadedFor[`${g[0]}-${b}`]=!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,b,n);else{let O;h&&(O=this.pluralResolver.getSuffix(x,n.count,n));const E=`${this.options.pluralSeparator}zero`,T=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(n.ordinal&&O.startsWith(T)&&w.push(f+O.replace(T,this.options.pluralSeparator)),w.push(f+O),p&&w.push(f+E)),m){const N=`${f}${this.options.contextSeparator||"_"}${n.context}`;w.push(N),h&&(n.ordinal&&O.startsWith(T)&&w.push(N+O.replace(T,this.options.pluralSeparator)),w.push(N+O),p&&w.push(N+E))}}let S;for(;S=w.pop();)this.isValidLookup(r)||(i=S,r=this.getResource(x,b,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 UE{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Zr.create("languageUtils")}getScriptPartFromCode(t){if(t=Pf(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=Pf(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 FE={zero:0,one:1,two:2,few:3,many:4,other:5},VE={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Rq{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Zr.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=Pf(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!"),VE;if(!t.match(/-|_/))return VE;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)=>FE[a]-FE[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 HE=(e,t,n,r=".",a=!0)=>{let i=Aq(e,t,n);return!i&&a&&pe(n)&&(i=bx(e,n,r),i===void 0&&(i=bx(t,n,r))),i},tb=e=>e.replace(/\$/g,"$$$$");class qE{constructor(t={}){var n;this.logger=Zr.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:c,unescapeSuffix:f,unescapePrefix:d,nestingPrefix:h,nestingPrefixEscaped:p,nestingSuffix:m,nestingSuffixEscaped:g,nestingOptionsSeparator:b,maxReplaces:y,alwaysFormat:v}=t.interpolation;this.escape=n!==void 0?n:Eq,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=i?xa(i):s||"{{",this.suffix=o?xa(o):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=f?"":d?xa(d):"-",this.unescapeSuffix=this.unescapePrefix?"":f?xa(f):"",this.nestingPrefix=h?xa(h):p||xa("$t("),this.nestingSuffix=m?xa(m):g||xa(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=y||1e3,this.alwaysFormat=v!==void 0?v:!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||{},c=m=>{if(!m.includes(this.formatSeparator)){const v=HE(n,l,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,r,{...a,...n,interpolationkey:m}):v}const g=m.split(this.formatSeparator),b=g.shift().trim(),y=g.join(this.formatSeparator).trim();return this.format(HE(n,l,b,this.options.keySeparator,this.options.ignoreJSONStructure),y,r,{...a,...n,interpolationkey:b})};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=>tb(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?tb(this.escape(m)):tb(m)}].forEach(m=>{for(o=0;i=m.regex.exec(t);){const g=i[1].trim();if(s=c(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=kE(s));const b=m.safeValue(s);if(t=t.replace(i[0],b),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,c)=>{const f=this.nestingOptionsSeparator;if(!l.includes(f))return l;const d=l.split(new RegExp(`${xa(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),c&&(s={...c,...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 c=/{.*}/.test(a[1])?a[1].lastIndexOf("}")+1:a[1].indexOf(this.formatSeparator);if(c!==-1&&(l=a[1].slice(c).split(this.formatSeparator).map(f=>f.trim()).filter(Boolean),a[1]=a[1].slice(0,c)),i=n(o.call(this,a[1].trim(),s),s),i&&a[0]===t&&!pe(i))return i;pe(i)||(i=kE(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 Dq=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(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),f=o.trim();n[f]||(n[f]=c),c==="false"&&(n[f]=!1),c==="true"&&(n[f]=!0),isNaN(c)||(n[f]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},KE=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(Pf(r),a),t[s]=o),o(n)}},$q=e=>(t,n,r)=>e(Pf(n),r)(t);class kq{constructor(t={}){this.logger=Zr.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?KE:$q;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()]=KE(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:c,formatOptions:f}=Dq(l);if(this.formats[c]){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[c](o,m,{...f,...a,...p})}catch(p){this.logger.warn(p)}return h}else this.logger.warn(`there was no format function for ${c}`);return o},t)}}const Lq=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class zq extends Wy{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=Zr.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(c=>{let f=!0;n.forEach(d=>{const h=`${c}|${d}`;!r.reload&&this.store.hasResourceBundle(c,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[c]=!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=>{jq(l.loaded,[i],s),Lq(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{o[c]||(o[c]={});const f=l.loaded[c];f.length&&f.forEach(d=>{o[c][d]===void 0&&(o[c][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=(c,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(c&&f&&a<this.maxRetries){setTimeout(()=>{this.read(t,n,r,a+1,i*2,s)},i);return}s(c,f)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(t,n);c&&typeof c.then=="function"?c.then(f=>o(null,f)).catch(o):o(null,c)}catch(c){o(c)}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,c,f,d,h;if((c=(l=this.services)==null?void 0:l.utils)!=null&&c.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(b=>o(null,b)).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 nb=()=>({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}),GE=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),Th=()=>{},Iq=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class ef extends Wy{constructor(t={},n){if(super(),this.options=GE(t),this.services={},this.logger=Zr,this.modules={external:[]},Iq(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=nb();this.options={...r,...this.options,...GE(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=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?Zr.init(a(this.modules.logger),this.options):Zr.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=kq;const f=new UE(this.options);this.store=new BE(this.options.resources,this.options);const d=this.services;d.logger=Zr,d.resourceStore=this.store,d.languageUtils=f,d.pluralResolver=new Rq(f,{prepend:this.options.pluralSeparator}),c&&(d.formatter=a(c),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new qE(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new zq(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 fm(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=Th),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[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(c=>{this[c]=(...f)=>this.store[c](...f)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...f)=>(this.store[c](...f),this)});const o=cu(),l=()=>{const c=(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 c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),o}loadResources(t,n=Th){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=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).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,c=>l(c)),this.services.backendConnector.load(o,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(t,n,r){const a=cu();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=Th),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"&&Z3.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=cu();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((...c)=>this.t(...c)),n&&n(o,(...c)=>this.t(...c))},s=o=>{var f,d;!t&&!o&&this.services.languageDetector&&(o=[]);const l=pe(o)?o:o&&o[0],c=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(pe(o)?[o]:o);c&&(this.language||a(c),this.translator.language||this.translator.changeLanguage(c),(d=(f=this.services.languageDetector)==null?void 0:f.cacheUserLanguage)==null||d.call(f,c)),this.loadResources(c,h=>{i(h,c)})};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,...c)=>{let f;typeof l!="object"?f=this.options.overloadTranslationOptionHandler([o,l].concat(c)):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=vl(f.keyPrefix,h));const p=this.options.keySeparator||".";let m;return f.keyPrefix&&Array.isArray(o)?m=o.map(g=>(typeof g=="function"&&(g=vl(g,h)),`${f.keyPrefix}${p}${g}`)):(typeof o=="function"&&(o=vl(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 c=this.services.backendConnector.state[`${o}|${l}`];return c===-1||c===0||c===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=cu();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=cu();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 UE(nb());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 ef(t,n);return r.createInstance=ef.createInstance,r}cloneInstance(t={},n=Th){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},i=new ef(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,c)=>(l[c]={...this.store.data[c]},l[c]=Object.keys(l[c]).reduce((f,d)=>(f[d]={...l[c][d]},f),l[c]),l),{});i.store=new BE(o,a),i.services.resourceStore=i.store}if(t.interpolation){const l={...nb().interpolation,...this.options.interpolation,...t.interpolation},c={...a,interpolation:l};i.services.interpolator=new qE(c)}return i.translator=new fm(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 rn=ef.createInstance();rn.createInstance;rn.dir;rn.init;rn.loadResources;rn.reloadResources;rn.use;rn.changeLanguage;rn.getFixedT;rn.t;rn.exists;rn.setDefaultNamespace;rn.hasLoadedNamespace;rn.loadNamespaces;rn.loadLanguages;const Bq=(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);ao(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)},YE={},xx=(e,t,n,r)=>{ao(n)&&YE[n]||(ao(n)&&(YE[n]=new Date),Bq(e,t,n,r))},ek=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},Sx=(e,t,n)=>{e.loadNamespaces(t,ek(e,n))},XE=(e,t,n,r)=>{if(ao(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Sx(e,n,r);n.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,ek(e,r))},Uq=(e,t,n={})=>!t.languages||!t.languages.length?(xx(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}}),ao=e=>typeof e=="string",Fq=e=>typeof e=="object"&&e!==null,Vq=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Hq={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},qq=e=>Hq[e],Kq=e=>e.replace(Vq,qq);let wx={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Kq,transDefaultProps:void 0};const Gq=(e={})=>{wx={...wx,...e}},Yq=()=>wx;let tk;const Xq=e=>{tk=e},Wq=()=>tk,Qq={type:"3rdParty",init(e){Gq(e.options.react),Xq(e)}},Zq=A.createContext();class Jq{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var nk={exports:{}},rk={};/**
 * @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 Xl=A;function eK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tK=typeof Object.is=="function"?Object.is:eK,nK=Xl.useState,rK=Xl.useEffect,aK=Xl.useLayoutEffect,iK=Xl.useDebugValue;function sK(e,t){var n=t(),r=nK({inst:{value:n,getSnapshot:t}}),a=r[0].inst,i=r[1];return aK(function(){a.value=n,a.getSnapshot=t,rb(a)&&i({inst:a})},[e,n,t]),rK(function(){return rb(a)&&i({inst:a}),e(function(){rb(a)&&i({inst:a})})},[e]),iK(n),n}function rb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tK(e,n)}catch{return!0}}function oK(e,t){return t()}var lK=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?oK:sK;rk.useSyncExternalStore=Xl.useSyncExternalStore!==void 0?Xl.useSyncExternalStore:lK;nk.exports=rk;var cK=nk.exports;const uK=(e,t)=>{if(ao(t))return t;if(Fq(t)&&ao(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},fK={t:uK,ready:!1},dK=()=>()=>{},ni=(e,t={})=>{var T,N,M;const{i18n:n}=t,{i18n:r,defaultNS:a}=A.useContext(Zq)||{},i=n||r||Wq();i&&!i.reportNamespaces&&(i.reportNamespaces=new Jq),i||xx(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const s=A.useMemo(()=>{var C;return{...Yq(),...(C=i==null?void 0:i.options)==null?void 0:C.react,...t}},[i,t]),{useSuspense:o,keyPrefix:l}=s,c=a||((T=i==null?void 0:i.options)==null?void 0:T.defaultNS),f=ao(c)?[c]:c||["translation"],d=A.useMemo(()=>f,f);(M=(N=i==null?void 0:i.reportNamespaces)==null?void 0:N.addUsedNamespaces)==null||M.call(N,d);const h=A.useRef(0),p=A.useCallback(C=>{if(!i)return dK;const{bindI18n:L,bindI18nStore:D}=s,$=()=>{h.current+=1,C()};return L&&i.on(L,$),D&&i.store.on(D,$),()=>{L&&L.split(" ").forEach(P=>i.off(P,$)),D&&D.split(" ").forEach(P=>i.store.off(P,$))}},[i,s]),m=A.useRef(),g=A.useCallback(()=>{if(!i)return fK;const C=!!(i.isInitialized||i.initializedStoreOnce)&&d.every(I=>Uq(I,i,s)),L=t.lng||i.language,D=h.current,$=m.current;if($&&$.ready===C&&$.lng===L&&$.keyPrefix===l&&$.revision===D)return $;const k={t:i.getFixedT(L,s.nsMode==="fallback"?d:d[0],l,{scopeNs:d}),ready:C,lng:L,keyPrefix:l,revision:D};return m.current=k,k},[i,d,l,s,t.lng]),[b,y]=A.useState(0),{t:v,ready:x}=cK.useSyncExternalStore(p,g,g);A.useEffect(()=>{if(i&&!x&&!o){const C=()=>y(L=>L+1);t.lng?XE(i,t.lng,d,C):Sx(i,d,C)}},[i,t.lng,d,x,o,b]);const w=i||{},S=A.useRef(null),j=A.useRef(),O=C=>{const L=Object.getOwnPropertyDescriptors(C);L.__original&&delete L.__original;const D=Object.create(Object.getPrototypeOf(C),L);if(!Object.prototype.hasOwnProperty.call(D,"__original"))try{Object.defineProperty(D,"__original",{value:C,writable:!1,enumerable:!1,configurable:!1})}catch{}return D},E=A.useMemo(()=>{const C=w,L=C==null?void 0:C.language;let D=C;C&&(S.current&&S.current.__original===C?j.current!==L?(D=O(C),S.current=D,j.current=L):D=S.current:(D=O(C),S.current=D,j.current=L));const $=!x&&!o?(...k)=>(xx(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."),v(...k)):v,P=[$,D,x];return P.t=$,P.i18n=D,P.ready=x,P},[v,w,x,w.resolvedLanguage,w.language,w.languages]);if(i&&o&&!x)throw new Promise(C=>{const L=()=>C();t.lng?XE(i,t.lng,d,L):Sx(i,d,L)});return E};/**
 * @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=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ak=(...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 pK={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 mK=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,...pK,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ak("lucide",a),...o},[...s.map(([c,f])=>A.createElement(c,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 ae=(e,t)=>{const n=A.forwardRef(({className:r,...a},i)=>A.createElement(mK,{ref:i,iconNode:t,className:ak(`lucide-${hK(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 ik=ae("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 Es=ae("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 Jw=ae("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 sk=ae("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 ok=ae("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 yK=ae("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 lk=ae("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 gK=ae("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 Pu=ae("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 vK=ae("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 bK=ae("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 ck=ae("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 uk=ae("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 fk=ae("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 WE=ae("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 Mf=ae("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 xK=ae("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 dk=ae("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 hk=ae("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 pk=ae("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 ft=ae("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 mk=ae("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 SK=ae("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 wK=ae("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 jK=ae("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 Rf=ae("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 yk=ae("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 AK=ae("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 ej=ae("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 QE=ae("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 gk=ae("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 dm=ae("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 Df=ae("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 vk=ae("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 OK=ae("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 ZE=ae("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 EK=ae("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 tj=ae("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 TK=ae("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 JE=ae("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 nj=ae("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 Qy=ae("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 bk=ae("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 rj=ae("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 NK=ae("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 xk=ae("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 aj=ae("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 ij=ae("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 sj=ae("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 CK=ae("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 bl=ae("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 xr=ae("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 Wa=ae("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 Bd=ae("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 _K=ae("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 PK=ae("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 MK=ae("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 RK=ae("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 Ud=ae("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 Sk=ae("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 wk=ae("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 jk=ae("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"}]]);function Ak(e,t){return function(){return e.apply(t,arguments)}}const{toString:DK}=Object.prototype,{getPrototypeOf:Zy}=Object,{iterator:Jy,toStringTag:Ok}=Symbol,eg=(e=>t=>{const n=DK.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Br=e=>(e=e.toLowerCase(),t=>eg(t)===e),tg=e=>t=>typeof t===e,{isArray:io}=Array,Wl=tg("undefined");function Ic(e){return e!==null&&!Wl(e)&&e.constructor!==null&&!Wl(e.constructor)&&Cn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ek=Br("ArrayBuffer");function $K(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ek(e.buffer),t}const kK=tg("string"),Cn=tg("function"),Tk=tg("number"),Fd=e=>e!==null&&typeof e=="object",LK=e=>e===!0||e===!1,gp=e=>{if(eg(e)!=="object")return!1;const t=Zy(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ok in e)&&!(Jy in e)},zK=e=>{if(!Fd(e)||Ic(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},IK=Br("Date"),BK=Br("File"),UK=e=>!!(e&&typeof e.uri<"u"),FK=e=>e&&typeof e.getParts<"u",VK=Br("Blob"),HK=Br("FileList"),qK=e=>Fd(e)&&Cn(e.pipe);function KK(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const eT=KK(),tT=typeof eT.FormData<"u"?eT.FormData:void 0,GK=e=>{if(!e)return!1;if(tT&&e instanceof tT)return!0;const t=Zy(e);if(!t||t===Object.prototype||!Cn(e.append))return!1;const n=eg(e);return n==="formdata"||n==="object"&&Cn(e.toString)&&e.toString()==="[object FormData]"},YK=Br("URLSearchParams"),[XK,WK,QK,ZK]=["ReadableStream","Request","Response","Headers"].map(Br),JK=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vd(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),io(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(Ic(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 Nk(e,t){if(Ic(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 Ts=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ck=e=>!Wl(e)&&e!==Ts;function jx(...e){const{caseless:t,skipUndefined:n}=Ck(this)&&this||{},r={},a=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const o=t&&typeof s=="string"&&Nk(r,s)||s,l=Ax(r,o)?r[o]:void 0;gp(l)&&gp(i)?r[o]=jx(l,i):gp(i)?r[o]=jx({},i):io(i)?r[o]=i.slice():(!n||!Wl(i))&&(r[o]=i)};for(let i=0,s=e.length;i<s;i++){const o=e[i];if(!o||Ic(o)||(Vd(o,a),typeof o!="object"||io(o)))continue;const l=Object.getOwnPropertySymbols(o);for(let c=0;c<l.length;c++){const f=l[c];fG.call(o,f)&&a(o[f],f)}}return r}const eG=(e,t,n,{allOwnKeys:r}={})=>(Vd(t,(a,i)=>{n&&Cn(a)?Object.defineProperty(e,i,{__proto__:null,value:Ak(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),tG=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),nG=(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&&Zy(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},aG=(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},iG=e=>{if(!e)return null;if(io(e))return e;let t=e.length;if(!Tk(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},sG=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Zy(Uint8Array)),oG=(e,t)=>{const r=(e&&e[Jy]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},lG=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},cG=Br("HTMLFormElement"),uG=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),Ax=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),{propertyIsEnumerable:fG}=Object.prototype,dG=Br("RegExp"),_k=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Vd(n,(a,i)=>{let s;(s=t(a,i,e))!==!1&&(r[i]=s||a)}),Object.defineProperties(e,r)},hG=e=>{_k(e,(t,n)=>{if(Cn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(Cn(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+"'")})}})},pG=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return io(e)?r(e):r(String(e).split(t)),n},mG=()=>{},yG=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function gG(e){return!!(e&&Cn(e.append)&&e[Ok]==="FormData"&&e[Jy])}const vG=e=>{const t=new WeakSet,n=r=>{if(Fd(r)){if(t.has(r))return;if(Ic(r))return r;if(!("toJSON"in r)){t.add(r);const a=io(r)?[]:{};return Vd(r,(i,s)=>{const o=n(i);!Wl(o)&&(a[s]=o)}),t.delete(r),a}}return r};return n(e)},bG=Br("AsyncFunction"),xG=e=>e&&(Fd(e)||Cn(e))&&Cn(e.then)&&Cn(e.catch),Pk=((e,t)=>e?setImmediate:t?((n,r)=>(Ts.addEventListener("message",({source:a,data:i})=>{a===Ts&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),Ts.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Cn(Ts.postMessage)),SG=typeof queueMicrotask<"u"?queueMicrotask.bind(Ts):typeof process<"u"&&process.nextTick||Pk,wG=e=>e!=null&&Cn(e[Jy]),z={isArray:io,isArrayBuffer:Ek,isBuffer:Ic,isFormData:GK,isArrayBufferView:$K,isString:kK,isNumber:Tk,isBoolean:LK,isObject:Fd,isPlainObject:gp,isEmptyObject:zK,isReadableStream:XK,isRequest:WK,isResponse:QK,isHeaders:ZK,isUndefined:Wl,isDate:IK,isFile:BK,isReactNativeBlob:UK,isReactNative:FK,isBlob:VK,isRegExp:dG,isFunction:Cn,isStream:qK,isURLSearchParams:YK,isTypedArray:sG,isFileList:HK,forEach:Vd,merge:jx,extend:eG,trim:JK,stripBOM:tG,inherits:nG,toFlatObject:rG,kindOf:eg,kindOfTest:Br,endsWith:aG,toArray:iG,forEachEntry:oG,matchAll:lG,isHTMLForm:cG,hasOwnProperty:Ax,hasOwnProp:Ax,reduceDescriptors:_k,freezeMethods:hG,toObjectSet:pG,toCamelCase:uG,noop:mG,toFiniteNumber:yG,findKey:Nk,global:Ts,isContextDefined:Ck,isSpecCompliantForm:gG,toJSONObject:vG,isAsyncFn:bG,isThenable:xG,setImmediate:Pk,asap:SG,isIterable:wG},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"]),AG=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 OG(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 EG=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),TG=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function oj(e,t){return z.isArray(e)?e.map(n=>oj(n,t)):OG(String(e).replace(t,""))}const NG=e=>oj(e,EG),CG=e=>oj(e,TG);function Mk(e){const t=Object.create(null);return z.forEach(e.toJSON(),(n,r)=>{t[r]=CG(n)}),t}const nT=Symbol("internals");function uu(e){return e&&String(e).trim().toLowerCase()}function vp(e){return e===!1||e==null?e:z.isArray(e)?e.map(vp):NG(String(e))}function _G(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 PG=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ab(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 MG(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function RG(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 gn=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(o,l,c){const f=uu(l);if(!f)return;const d=z.findKey(a,f);(!d||a[d]===void 0||c===!0||c===void 0&&a[d]!==!1)&&(a[d||l]=vp(o))}const s=(o,l)=>z.forEach(o,(c,f)=>i(c,f,l));if(z.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(z.isString(t)&&(t=t.trim())&&!PG(t))s(AG(t),n);else if(z.isObject(t)&&z.isIterable(t)){let o={},l,c;for(const f of t){if(!z.isArray(f))throw new TypeError("Object iterator must return a key-value pair");o[c=f[0]]=(l=o[c])?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=uu(t),t){const r=z.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return _G(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=uu(t),t){const r=z.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ab(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(s){if(s=uu(s),s){const o=z.findKey(r,s);o&&(!n||ab(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||ab(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]=vp(a),delete n[i];return}const o=t?MG(i):String(i).trim();o!==i&&delete n[i],n[o]=vp(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[nT]=this[nT]={accessors:{}}).accessors,a=this.prototype;function i(s){const o=uu(s);r[o]||(RG(a,s),r[o]=!0)}return z.isArray(t)?t.forEach(i):i(t),this}};gn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);z.reduceDescriptors(gn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});z.freezeMethods(gn);const DG="[REDACTED ****]";function $G(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 kG(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 gn&&(i=i.toJSON()),r.push(i);let s;if(z.isArray(i))s=[],i.forEach((o,l)=>{const c=a(o);z.isUndefined(c)||(s[l]=c)});else{if(!z.isPlainObject(i)&&$G(i))return r.pop(),i;s=Object.create(null);for(const[o,l]of Object.entries(i)){const c=n.has(o.toLowerCase())?DG:a(l);z.isUndefined(c)||(s[o]=c)}}return r.pop(),s};return a(e)}let re=class Rk extends Error{static from(t,n,r,a,i,s){const o=new Rk(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?kG(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}}};re.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";re.ERR_BAD_OPTION="ERR_BAD_OPTION";re.ECONNABORTED="ECONNABORTED";re.ETIMEDOUT="ETIMEDOUT";re.ECONNREFUSED="ECONNREFUSED";re.ERR_NETWORK="ERR_NETWORK";re.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";re.ERR_DEPRECATED="ERR_DEPRECATED";re.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";re.ERR_BAD_REQUEST="ERR_BAD_REQUEST";re.ERR_CANCELED="ERR_CANCELED";re.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";re.ERR_INVALID_URL="ERR_INVALID_URL";re.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const LG=null;function Ox(e){return z.isPlainObject(e)||z.isArray(e)}function Dk(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function ib(e,t,n){return e?e.concat(t).map(function(a,i){return a=Dk(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function zG(e){return z.isArray(e)&&!e.some(Ox)}const IG=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function ng(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(b,y){return!z.isUndefined(y[b])});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,c=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(!c&&z.isBlob(g))throw new re("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(g)||z.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,b,y){let v=g;if(z.isReactNative(t)&&z.isReactNativeBlob(g))return t.append(ib(y,b,i),f(g)),!1;if(g&&!y&&typeof g=="object"){if(z.endsWith(b,"{}"))b=r?b:b.slice(0,-2),g=JSON.stringify(g);else if(z.isArray(g)&&zG(g)||(z.isFileList(g)||z.endsWith(b,"[]"))&&(v=z.toArray(g)))return b=Dk(b),v.forEach(function(w,S){!(z.isUndefined(w)||w===null)&&t.append(s===!0?ib([b],S,i):s===null?b:b+"[]",f(w))}),!1}return Ox(g)?!0:(t.append(ib(y,b,i),f(g)),!1)}const h=[],p=Object.assign(IG,{defaultVisitor:d,convertValue:f,isVisitable:Ox});function m(g,b,y=0){if(!z.isUndefined(g)){if(y>l)throw new re("Object is too deeply nested ("+y+" levels). Max depth: "+l,re.ERR_FORM_DATA_DEPTH_EXCEEDED);if(h.indexOf(g)!==-1)throw new Error("Circular reference detected in "+b.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,b,p))===!0&&m(x,b?b.concat(w):[w],y+1)}),h.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return m(e),t}function rT(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function lj(e,t){this._pairs=[],e&&ng(e,this,t)}const $k=lj.prototype;$k.append=function(t,n){this._pairs.push([t,n])};$k.toString=function(t){const n=t?function(r){return t.call(this,r,rT)}:rT;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function BG(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function kk(e,t,n){if(!t)return e;const r=n&&n.encode||BG,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 lj(t,a).toString(r),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class aT{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 cj={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},UG=typeof URLSearchParams<"u"?URLSearchParams:lj,FG=typeof FormData<"u"?FormData:null,VG=typeof Blob<"u"?Blob:null,HG={isBrowser:!0,classes:{URLSearchParams:UG,FormData:FG,Blob:VG},protocols:["http","https","file","blob","url","data"]},uj=typeof window<"u"&&typeof document<"u",Ex=typeof navigator=="object"&&navigator||void 0,qG=uj&&(!Ex||["ReactNative","NativeScript","NS"].indexOf(Ex.product)<0),KG=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",GG=uj&&window.location.href||"http://localhost",YG=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:uj,hasStandardBrowserEnv:qG,hasStandardBrowserWebWorkerEnv:KG,navigator:Ex,origin:GG},Symbol.toStringTag,{value:"Module"})),Jt={...YG,...HG};function XG(e,t){return ng(e,new Jt.classes.URLSearchParams,{visitor:function(n,r,a,i){return Jt.isNode&&z.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function WG(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function QG(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 Lk(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]=QG(a[s])),!o)}if(z.isFormData(e)&&z.isFunction(e.entries)){const n={};return z.forEachEntry(e,(r,a)=>{t(WG(r),a,n,0)}),n}return null}const Mo=(e,t)=>e!=null&&z.hasOwnProp(e,t)?e[t]:void 0;function ZG(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 Hd={transitional:cj,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(Lk(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=Mo(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return XG(t,l).toString();if((o=z.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=Mo(this,"env"),f=c&&c.FormData;return ng(o?{"files[]":t}:t,f&&new f,l)}}return i||a?(n.setContentType("application/json",!1),ZG(t)):t}],transformResponse:[function(t){const n=Mo(this,"transitional")||Hd.transitional,r=n&&n.forcedJSONParsing,a=Mo(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,Mo(this,"parseReviver"))}catch(l){if(o)throw l.name==="SyntaxError"?re.from(l,re.ERR_BAD_RESPONSE,this,null,Mo(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Jt.classes.FormData,Blob:Jt.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=>{Hd.headers[e]={}});function sb(e,t){const n=this||Hd,r=t||n,a=gn.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 zk(e){return!!(e&&e.__CANCEL__)}let qd=class extends re{constructor(t,n,r){super(t??"canceled",re.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Ik(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new re("Request failed with status code "+n.status,n.status>=400&&n.status<500?re.ERR_BAD_REQUEST:re.ERR_BAD_RESPONSE,n.config,n.request,n))}function JG(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function eY(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 c=Date.now(),f=r[i];s||(s=c),n[a]=l,r[a]=c;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),c-s<t)return;const p=f&&c-f;return p?Math.round(h*1e3/p):void 0}}function tY(e,t){let n=0,r=1e3/t,a,i;const s=(c,f=Date.now())=>{n=f,a=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const f=Date.now(),d=f-n;d>=r?s(c,f):(a=c,i||(i=setTimeout(()=>{i=null,s(a)},r-d)))},()=>a&&s(a)]}const hm=(e,t,n=3)=>{let r=0;const a=eY(50,250);return tY(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,c=Math.max(0,l-r),f=a(c);r=Math.max(r,l);const d={loaded:l,total:o,progress:o?l/o:void 0,bytes:c,rate:f||void 0,estimated:f&&o?(o-l)/f:void 0,event:i,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(d)},n)},iT=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},sT=e=>(...t)=>z.asap(()=>e(...t)),nY=Jt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Jt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Jt.origin),Jt.navigator&&/(msie|trident)/i.test(Jt.navigator.userAgent)):()=>!0,rY=Jt.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 aY(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function iY(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Bk(e,t,n){let r=!aY(t);return e&&(r||n===!1)?iY(e,t):t}const oT=e=>e instanceof gn?{...e}:e;function so(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(c,f,d,h){return z.isPlainObject(c)&&z.isPlainObject(f)?z.merge.call({caseless:h},c,f):z.isPlainObject(f)?z.merge({},f):z.isArray(f)?f.slice():f}function a(c,f,d,h){if(z.isUndefined(f)){if(!z.isUndefined(c))return r(void 0,c,d,h)}else return r(c,f,d,h)}function i(c,f){if(!z.isUndefined(f))return r(void 0,f)}function s(c,f){if(z.isUndefined(f)){if(!z.isUndefined(c))return r(void 0,c)}else return r(void 0,f)}function o(c,f,d){if(z.hasOwnProp(t,d))return r(c,f);if(z.hasOwnProp(e,d))return r(void 0,c)}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:(c,f,d)=>a(oT(c),oT(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 sY=["content-type","content-length"];function oY(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,a])=>{sY.includes(r.toLowerCase())&&e.set(r,a)})}const lY=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function Uk(e){const t=so({},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"),c=n("baseURL"),f=n("allowAbsoluteUrls"),d=n("url");if(t.headers=o=gn.from(o),t.url=kk(Bk(c,d,f),n("params"),n("paramsSerializer")),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?lY(l.password):""))),z.isFormData(r)&&(Jt.hasStandardBrowserEnv||Jt.hasStandardBrowserWebWorkerEnv||z.isReactNative(r)?o.setContentType(void 0):z.isFunction(r.getHeaders)&&oY(o,r.getHeaders(),n("formDataHeaderPolicy"))),Jt.hasStandardBrowserEnv&&(z.isFunction(a)&&(a=a(t)),a===!0||a==null&&nY(t.url))){const p=i&&s&&rY.read(s);p&&o.set(i,p)}return t}const cY=typeof XMLHttpRequest<"u",uY=cY&&function(e){return new Promise(function(n,r){const a=Uk(e);let i=a.data;const s=gn.from(a.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:c}=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 b=new XMLHttpRequest;b.open(a.method.toUpperCase(),a.url,!0),b.timeout=a.timeout;function y(){if(!b)return;const x=gn.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),S={data:!o||o==="text"||o==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:x,config:e,request:b};Ik(function(O){n(O),g()},function(O){r(O),g()},S),b=null}"onloadend"in b?b.onloadend=y:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.startsWith("file:"))||setTimeout(y)},b.onabort=function(){b&&(r(new re("Request aborted",re.ECONNABORTED,e,b)),g(),b=null)},b.onerror=function(w){const S=w&&w.message?w.message:"Network Error",j=new re(S,re.ERR_NETWORK,e,b);j.event=w||null,r(j),g(),b=null},b.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||cj;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),r(new re(w,S.clarifyTimeoutError?re.ETIMEDOUT:re.ECONNABORTED,e,b)),g(),b=null},i===void 0&&s.setContentType(null),"setRequestHeader"in b&&z.forEach(Mk(s),function(w,S){b.setRequestHeader(S,w)}),z.isUndefined(a.withCredentials)||(b.withCredentials=!!a.withCredentials),o&&o!=="json"&&(b.responseType=a.responseType),c&&([h,m]=hm(c,!0),b.addEventListener("progress",h)),l&&b.upload&&([d,p]=hm(l),b.upload.addEventListener("progress",d),b.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(f=x=>{b&&(r(!x||x.type?new qd(null,e,b):x),b.abort(),g(),b=null)},a.cancelToken&&a.cancelToken.subscribe(f),a.signal&&(a.signal.aborted?f():a.signal.addEventListener("abort",f)));const v=JG(a.url);if(v&&!Jt.protocols.includes(v)){r(new re("Unsupported protocol "+v+":",re.ERR_BAD_REQUEST,e));return}b.send(i||null)})},fY=(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 c=l instanceof Error?l:this.reason;n.abort(c instanceof re?c:new qd(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{i=null,a(new re(`timeout of ${t}ms exceeded`,re.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},dY=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},hY=async function*(e,t){for await(const n of pY(e))yield*dY(n,t)},pY=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()}},lT=(e,t,n,r)=>{const a=hY(e,t);let i=0,s,o=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:f}=await a.next();if(c){o(),l.close();return}let d=f.byteLength;if(n){let h=i+=d;n(h)}l.enqueue(new Uint8Array(f))}catch(c){throw o(c),c}},cancel(l){return o(l),a.return()}},{highWaterMark:2})};function mY(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,c=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);c>=0&&(r.charCodeAt(c)===61?(l++,c--):f(c)&&(l++,c-=3)),l===1&&c>=0&&(r.charCodeAt(c)===61||f(c))&&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 c=r.charCodeAt(s+1);c>=56320&&c<=57343?(i+=4,s++):i+=3}else i+=3}return i}const fj="1.17.0",cT=64*1024,{isFunction:Nh}=z,yY=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),uT=e=>{if(!z.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},fT=(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(":")},vY=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?Nh(a):typeof fetch=="function",l=Nh(i),c=Nh(s);if(!o)return!1;const f=o&&Nh(n),d=o&&(typeof r=="function"?(y=>v=>y.encode(v))(new r):async y=>new Uint8Array(await new i(y).arrayBuffer())),h=l&&f&&fT(()=>{let y=!1;const v=new i(Jt.origin,{body:new n,method:"POST",get duplex(){return y=!0,"half"}}),x=v.headers.has("Content-Type");return v.body!=null&&v.body.cancel(),y&&!x}),p=c&&f&&fT(()=>z.isReadableStream(new s("").body)),m={stream:p&&(y=>y.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!m[y]&&(m[y]=(v,x)=>{let w=v&&v[y];if(w)return w.call(v);throw new re(`Response type '${y}' is not supported`,re.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(Jt.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},b=async(y,v)=>{const x=z.toFiniteNumber(y.getContentLength());return x??g(v)};return async y=>{let{url:v,method:x,data:w,signal:S,cancelToken:j,timeout:O,onDownloadProgress:E,onUploadProgress:T,responseType:N,headers:M,withCredentials:C="same-origin",fetchOptions:L,maxContentLength:D,maxBodyLength:$}=Uk(y);const P=z.isNumber(D)&&D>-1,k=z.isNumber($)&&$>-1,I=Z=>z.hasOwnProp(y,Z)?y[Z]:void 0;let F=a||fetch;N=N?(N+"").toLowerCase():"text";let H=fY([S,j&&j.toAbortSignal()],O),Y=null;const q=H&&H.unsubscribe&&(()=>{H.unsubscribe()});let te;try{let Z;const ye=I("auth");if(ye){const X=ye.username||"",V=ye.password||"";Z={username:X,password:V}}if(gY(v)){const X=new URL(v,Jt.origin);if(!Z&&(X.username||X.password)){const V=uT(X.username),_e=uT(X.password);Z={username:V,password:_e}}(X.username||X.password)&&(X.username="",X.password="",v=X.href)}if(Z&&(M.delete("authorization"),M.set("Authorization","Basic "+btoa(yY((Z.username||"")+":"+(Z.password||""))))),P&&typeof v=="string"&&v.startsWith("data:")&&mY(v)>D)throw new re("maxContentLength size of "+D+" exceeded",re.ERR_BAD_RESPONSE,y,Y);if(k&&x!=="get"&&x!=="head"){const X=await b(M,w);if(typeof X=="number"&&isFinite(X)&&X>$)throw new re("Request body larger than maxBodyLength limit",re.ERR_BAD_REQUEST,y,Y)}if(T&&h&&x!=="get"&&x!=="head"&&(te=await b(M,w))!==0){let X=new i(v,{method:"POST",body:w,duplex:"half"}),V;if(z.isFormData(w)&&(V=X.headers.get("content-type"))&&M.setContentType(V),X.body){const[_e,ge]=iT(te,hm(sT(T)));w=lT(X.body,cT,_e,ge)}}z.isString(C)||(C=C?"include":"omit");const J=l&&"credentials"in i.prototype;if(z.isFormData(w)){const X=M.getContentType();X&&/^multipart\/form-data/i.test(X)&&!/boundary=/i.test(X)&&M.delete("content-type")}M.set("User-Agent","axios/"+fj,!1);const st={...L,signal:H,method:x.toUpperCase(),headers:Mk(M.normalize()),body:w,duplex:"half",credentials:J?C:void 0};Y=l&&new i(v,st);let Ve=await(l?F(Y,L):F(v,st));if(P){const X=z.toFiniteNumber(Ve.headers.get("content-length"));if(X!=null&&X>D)throw new re("maxContentLength size of "+D+" exceeded",re.ERR_BAD_RESPONSE,y,Y)}const G=p&&(N==="stream"||N==="response");if(p&&Ve.body&&(E||P||G&&q)){const X={};["status","statusText","headers"].forEach(dt=>{X[dt]=Ve[dt]});const V=z.toFiniteNumber(Ve.headers.get("content-length")),[_e,ge]=E&&iT(V,hm(sT(E),!0))||[];let Xe=0;const ot=dt=>{if(P&&(Xe=dt,Xe>D))throw new re("maxContentLength size of "+D+" exceeded",re.ERR_BAD_RESPONSE,y,Y);_e&&_e(dt)};Ve=new s(lT(Ve.body,cT,ot,()=>{ge&&ge(),q&&q()}),X)}N=N||"text";let oe=await m[z.findKey(m,N)||"text"](Ve,y);if(P&&!p&&!G){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 re("maxContentLength size of "+D+" exceeded",re.ERR_BAD_RESPONSE,y,Y)}return!G&&q&&q(),await new Promise((X,V)=>{Ik(X,V,{data:oe,headers:gn.from(Ve.headers),status:Ve.status,statusText:Ve.statusText,config:y,request:Y})})}catch(Z){if(q&&q(),H&&H.aborted&&H.reason instanceof re){const ye=H.reason;throw ye.config=y,Y&&(ye.request=Y),Z!==ye&&(ye.cause=Z),ye}throw Z&&Z.name==="TypeError"&&/Load failed|fetch/i.test(Z.message)?Object.assign(new re("Network Error",re.ERR_NETWORK,y,Y,Z&&Z.response),{cause:Z.cause||Z}):re.from(Z,Z&&Z.code,y,Y,Z&&Z.response)}}},bY=new Map,Fk=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,c,f=bY;for(;o--;)l=i[o],c=f.get(l),c===void 0&&f.set(l,c=o?new Map:vY(t)),f=c;return c};Fk();const dj={http:LG,xhr:uY,fetch:{get:Fk}};z.forEach(dj,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const dT=e=>`- ${e}`,xY=e=>z.isFunction(e)||e===null||e===!1;function SY(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=dj[(o=String(r)).toLowerCase()],a===void 0))throw new re(`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,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=n?s.length>1?`since :
`+s.map(dT).join(`
`):" "+dT(s[0]):"as no adapter specified";throw new re("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return a}const Vk={getAdapter:SY,adapters:dj};function ob(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qd(null,e)}function hT(e){return ob(e),e.headers=gn.from(e.headers),e.data=sb.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Vk.getAdapter(e.adapter||Hd.adapter,e)(e).then(function(r){ob(e),e.response=r;try{r.data=sb.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=gn.from(r.headers),r},function(r){if(!zk(r)&&(ob(e),r&&r.response)){e.response=r.response;try{r.response.data=sb.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=gn.from(r.response.headers)}return Promise.reject(r)})}const rg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{rg[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const pT={};rg.transitional=function(t,n,r){function a(i,s){return"[Axios v"+fj+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(t===!1)throw new re(a(s," has been removed"+(n?" in "+n:"")),re.ERR_DEPRECATED);return n&&!pT[s]&&(pT[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}};rg.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function wY(e,t,n){if(typeof e!="object")throw new re("options must be an object",re.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 re("option "+i+" must be "+l,re.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new re("Unknown option "+i,re.ERR_BAD_OPTION)}}const bp={assertOptions:wY,validators:rg},wn=bp.validators;let Ys=class{constructor(t){this.defaults=t||{},this.interceptors={request:new aT,response:new aT}}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=so(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&bp.assertOptions(r,{silentJSONParsing:wn.transitional(wn.boolean),forcedJSONParsing:wn.transitional(wn.boolean),clarifyTimeoutError:wn.transitional(wn.boolean),legacyInterceptorReqResOrdering:wn.transitional(wn.boolean),advertiseZstdAcceptEncoding:wn.transitional(wn.boolean)},!1),a!=null&&(z.isFunction(a)?n.paramsSerializer={serialize:a}:bp.assertOptions(a,{encode:wn.function,serialize:wn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),bp.assertOptions(n,{baseUrl:wn.spelling("baseURL"),withXsrfToken:wn.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=gn.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 b=n.transitional||cj;b&&b.legacyInterceptorReqResOrdering?o.unshift(g.fulfilled,g.rejected):o.push(g.fulfilled,g.rejected)});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let f,d=0,h;if(!l){const m=[hT.bind(this),void 0];for(m.unshift(...o),m.push(...c),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(b){g.call(this,b);break}}try{f=hT.call(this,p)}catch(m){return Promise.reject(m)}for(d=0,h=c.length;d<h;)f=f.then(c[d++],c[d++]);return f}getUri(t){t=so(this.defaults,t);const n=Bk(t.baseURL,t.url,t.allowAbsoluteUrls);return kk(n,t.params,t.paramsSerializer)}};z.forEach(["delete","get","head","options"],function(t){Ys.prototype[t]=function(n,r){return this.request(so(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(so(o||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Ys.prototype[t]=n(),t!=="query"&&(Ys.prototype[t+"Form"]=n(!0))});let jY=class Hk{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 qd(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 Hk(function(a){t=a}),cancel:t}}};function AY(e){return function(n){return e.apply(null,n)}}function OY(e){return z.isObject(e)&&e.isAxiosError===!0}const Tx={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(Tx).forEach(([e,t])=>{Tx[t]=e});function qk(e){const t=new Ys(e),n=Ak(Ys.prototype.request,t);return z.extend(n,Ys.prototype,t,{allOwnKeys:!0}),z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return qk(so(e,a))},n}const jt=qk(Hd);jt.Axios=Ys;jt.CanceledError=qd;jt.CancelToken=jY;jt.isCancel=zk;jt.VERSION=fj;jt.toFormData=ng;jt.AxiosError=re;jt.Cancel=jt.CanceledError;jt.all=function(t){return Promise.all(t)};jt.spread=AY;jt.isAxiosError=OY;jt.mergeConfig=so;jt.AxiosHeaders=gn;jt.formToJSON=e=>Lk(z.isHTMLForm(e)?new FormData(e):e);jt.getAdapter=Vk.getAdapter;jt.HttpStatusCode=Tx;jt.default=jt;const{Axios:YAe,AxiosError:XAe,CanceledError:WAe,isCancel:QAe,CancelToken:ZAe,VERSION:JAe,all:e2e,Cancel:t2e,isAxiosError:n2e,spread:r2e,toFormData:a2e,AxiosHeaders:i2e,HttpStatusCode:s2e,formToJSON:o2e,getAdapter:l2e,mergeConfig:c2e,create:u2e}=jt,W=jt.create({baseURL:""}),Kk=()=>location.pathname.startsWith("/admin"),Gk=()=>Kk()?"mall_admin_token":"mall_token";W.interceptors.request.use(e=>{const t=localStorage.getItem(Gk());return t&&(e.headers.Authorization=`Bearer ${t}`),e});W.interceptors.response.use(e=>e,e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&(localStorage.removeItem(Gk()),Kk()&&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}),Yk=(e,t)=>W.post("/api/mall/auth/login",{username:e,password:t}),EY=(e,t,n)=>W.post("/api/mall/auth/register",{username:e,password:t,displayName:n}),Xk=()=>Q(W.get("/api/mall/auth/me")),So=(e=!0)=>Q(W.get(`/api/mall/store?activeOnly=${e}`)),TY=(e,t)=>Q(W.put(`/api/mall/store/${e}/active`,{active:t})),NY=e=>Q(W.get(`/api/mall/zone/lookup?zip=${encodeURIComponent(e)}`)),Ql=(e={})=>{const t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{r!==void 0&&r!==""&&r!==null&&t.set(n,String(r))}),Q(W.get(`/api/mall/product?${t}`))},CY=e=>Q(W.get(`/api/mall/product/${e}`)),_Y=(e,t)=>Q(W.put(`/api/mall/product/${e}/status`,{status:t})),PY=()=>Q(W.get("/api/mall/category")),MY=e=>Q(W.get(`/api/mall/store-inventory/store/${e}`)),RY=(e,t,n)=>Q(W.put(`/api/mall/store-inventory/store/${e}/product/${t}/toggle`,{available:n})),DY=(e,t,n)=>Q(W.put(`/api/mall/store-inventory/store/${e}/product/${t}/adjust`,{delta:n})),$Y=(e,t)=>Q(W.get(`/api/mall/schedule/availability?storeId=${e}&date=${t}`)),Wk=()=>Q(W.get("/api/mall/schedule/holidays")),kY=e=>Q(W.post("/api/mall/schedule/holiday",e)),hj=()=>Q(W.get("/api/mall/cart")),LY=e=>Q(W.post("/api/mall/cart",e)),zY=(e,t)=>Q(W.put(`/api/mall/cart/${e}`,{quantity:t})),IY=e=>W.delete(`/api/mall/cart/${e}`),BY=(e="")=>Q(W.get(`/api/mall/order?status=${e}`)),UY=e=>Q(W.post("/api/mall/order/checkout",e)),Qk=(e,t)=>Q(W.put(`/api/mall/order/${e}/status`,{status:t})),FY=(e="",t=100)=>Q(W.get(`/api/mall/order/admin?status=${e}&limit=${t}`)),VY=e=>Q(W.post("/api/mall/payment",e)),HY=()=>Q(W.get("/api/mall/subscription")),qY=e=>Q(W.post("/api/mall/subscription",e)),mT=(e,t)=>Q(W.put(`/api/mall/subscription/${e}/status`,{status:t})),KY=()=>Q(W.get("/api/mall/subscription/admin")),GY=(e="",t="")=>{const n=new URLSearchParams;return e&&n.set("status",e),t&&n.set("storeId",t),Q(W.get(`/api/mall/transfer?${n}`))},YY=e=>Q(W.put(`/api/mall/transfer/${e}/approve`,{})),XY=e=>Q(W.put(`/api/mall/transfer/${e}/reject`,{})),WY=e=>Q(W.get(`/api/mall/review/product/${e}`)),QY=e=>Q(W.get(`/api/mall/review/product/${e}/stats`)),ZY=e=>Q(W.post("/api/mall/review",e)),JY=()=>Q(W.get("/api/mall/member/me")),eX=()=>Q(W.get("/api/mall/cs")),tX=e=>Q(W.post("/api/mall/cs",e)),nX=()=>Q(W.get("/api/mall/wishlist")),rX=e=>Q(W.post(`/api/mall/wishlist/${e}`,{})),aX=e=>W.delete(`/api/mall/wishlist/${e}`),iX=(e=1,t=500)=>Q(W.get(`/api/mall/analytics/dashboard?days=${e}&bigOrderThreshold=${t}`)),Zk=(e=7)=>Q(W.get(`/api/mall/analytics/store-sales?days=${e}`)),Jk=(e=14)=>Q(W.get(`/api/mall/analytics/trend?days=${e}`)),e5=(e=10)=>Q(W.get(`/api/mall/analytics/top-products?limit=${e}`)),sX=(e,t,n)=>Q(W.post("/api/mall/gateway/tax/quote",{amount:e,zip:t,state:n})),oX=(e,t)=>Q(W.post("/api/mall/gateway/address/verify",{address:e,zip:t})),lX=()=>Q(W.get("/api/mall/gateway/providers")),t5=(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(W.get(`/api/mall/ai/recommend?${r}`))},cX=e=>Q(W.get(`/api/mall/ai/review-summary/${e}`)),n5=e=>Q(W.post("/api/mall/ai/nl-search",{query:e})),uX=(e,t,n)=>Q(W.post("/api/mall/ai/card-message",{occasion:e,tone:t,recipient:n})),fX=(e="valentine",t=14)=>Q(W.get(`/api/mall/ai/demand-forecast?season=${e}&days=${t}`)),dX=e=>Q(W.post("/api/mall/ai/transfer-recommend",{storeIds:e})),hX=()=>Q(W.get("/api/admin/users")),pX=e=>Q(W.post("/api/admin/users",e)),mX=(e,t)=>Q(W.put(`/api/admin/users/${e}/role`,{role:t})),yX=(e,t)=>Q(W.put(`/api/admin/users/${e}/active`,{active:t})),gX=(e,t)=>Q(W.put(`/api/admin/users/${e}/password`,{password:t})),vX=e=>W.delete(`/api/admin/users/${e}`),bX=(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(W.get(`/api/admin/audit?${r}`))},xX=()=>Q(W.get("/api/admin/settings")),SX=(e,t)=>Q(W.put(`/api/admin/settings/${encodeURIComponent(e)}`,{value:t})),wX=(e=!0)=>Q(W.get(`/api/mall/loyalty/tiers?activeOnly=${e}`)),jX=(e,t)=>Q(W.put(`/api/mall/loyalty/tiers/${e}`,t)),pj=()=>Q(W.get("/api/mall/loyalty/me")),AX=(e=100)=>Q(W.get(`/api/mall/loyalty/points/history?limit=${e}`)),OX=(e,t,n)=>Q(W.post("/api/mall/loyalty/points/adjust",{owner:e,points:t,reason:n})),EX=()=>Q(W.post("/api/mall/loyalty/recalc-all",{})),r5=(e=30)=>Q(W.get(`/api/mall/loyalty/analytics/by-tier?days=${e}`)),TX=(e="")=>Q(W.get(`/api/mall/event/ongoing${e?`?tier=${e}`:""}`)),NX=e=>Q(W.post(`/api/mall/event/${e}/join`,{})),CX=(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(W.get(`/api/mall/event?${r}`))},_X=e=>Q(W.post("/api/mall/event",e)),PX=e=>Q(W.post(`/api/mall/event/${e}/publish`,{})),MX=e=>Q(W.post(`/api/mall/event/${e}/end`,{})),RX=e=>W.delete(`/api/mall/event/${e}`),DX=e=>Q(W.get(`/api/mall/event/${e}/performance`)),$X=(e,t,n)=>Q(W.post("/api/mall/event/ai/copy",{eventType:e,theme:t,tone:n}));function Gr({children:e,delay:t=0,y:n=24,className:r="",as:a="div"}){const i=ti(),s=Nt[a];return u.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 kX={hidden:{},show:{transition:{staggerChildren:.07,delayChildren:.05}}},LX={hidden:{opacity:0,y:22},show:{opacity:1,y:0,transition:{duration:.6,ease:[.22,1,.36,1]}}};function pm({children:e,className:t=""}){const n=ti();return u.jsx(Nt.div,{className:t,variants:n?void 0:kX,initial:n?!1:"hidden",whileInView:"show",viewport:{once:!0,margin:"-40px"},children:e})}function mm({children:e,className:t=""}){const n=ti();return u.jsx(Nt.div,{className:t,variants:n?void 0:LX,children:e})}const yT=["","sage","cream"];function Kd({count:e=14,className:t=""}){const n=ti(),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:yT[i%yT.length]}}),[e]);return n?null:u.jsx("div",{className:`petal-layer ${t}`,"aria-hidden":"true",children:r.map((a,i)=>u.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 Ua({children:e,className:t="",onClick:n,type:r="button",disabled:a}){const i=ti();return u.jsx(Nt.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 ke={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."},lb=[{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"}],zX=[{code:"en",label:"EN"},{code:"ko",label:"한국어"}];function ag({variant:e="shop"}){const{i18n:t}=ni(),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 u.jsxs("div",{className:"flex items-center gap-1.5","aria-label":"Language",children:[u.jsx(SK,{size:15,className:a?"text-slate-400":"text-sage-600"}),u.jsx("div",{className:i,role:"group",children:zX.map(s=>{const o=s.code===n,l="px-2 py-0.5 text-[11px] font-medium rounded-full transition-colors",c=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 u.jsx("button",{type:"button",onClick:()=>r(s.code),"aria-pressed":o,className:`${l} ${a?"rounded-md":""} ${c}`,children:s.label},s.code)})})]})}function IX(){const{t:e}=ni(),[t,n]=A.useState(""),[r,a]=A.useState(null),[i,s]=A.useState(!1),[o,l]=A.useState(""),{setZone:c}=bn(),f=Kt(),d=async p=>{if(p.preventDefault(),l(""),a(null),!/^\d{5}$/.test(t)){l(e("zip.errInvalid"));return}s(!0);try{const m=await NY(t);a(m),m!=null&&m.deliverable||l(e("zip.errNotDeliverable"))}catch{l(e("zip.errFailed"))}finally{s(!1)}},h=p=>{c(t,p.storeId,p.storeName),f("/home")};return u.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:[u.jsx("div",{className:"absolute top-5 right-5 z-20",children:u.jsx(ag,{variant:"shop"})}),u.jsx(Kd,{count:18}),u.jsx(Nt.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:u.jsx(ft,{size:320,strokeWidth:.5})}),u.jsx(Nt.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:u.jsx(ft,{size:260,strokeWidth:.5})}),u.jsxs(Nt.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:[u.jsxs("div",{className:"flex flex-col items-center mb-5",children:[u.jsx(Nt.span,{animate:{rotate:[0,8,-6,0]},transition:{duration:7,repeat:1/0,ease:"easeInOut"},children:u.jsx(ft,{className:"text-blush-500",size:44})}),u.jsx("h1",{className:"font-serif text-4xl font-bold text-blush-900 mt-3",children:"Montvale Florist"}),u.jsx("p",{className:"font-display text-[13px] tracking-[0.35em] uppercase text-sage-600 mt-1",children:e("zip.since",{year:ke.founded})})]}),u.jsx("p",{className:"font-display text-2xl text-[#6b5258] mb-1",children:ke.tagline}),u.jsx("p",{className:"text-[#8a7077] text-sm mb-8",children:e("zip.lead")}),u.jsxs("form",{onSubmit:d,className:"bg-white/90 backdrop-blur rounded-4xl shadow-bloom p-7 border border-blush-100",children:[u.jsxs("label",{className:"flex items-center gap-2 text-sm text-blush-700 font-medium mb-3 justify-center",children:[u.jsx(dm,{size:16})," ",e("zip.enterZip")]}),u.jsxs("div",{className:"flex gap-2",children:[u.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"}),u.jsx(Ua,{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?"…":u.jsxs(u.Fragment,{children:[e("zip.go")," ",u.jsx(Es,{size:16})]})})]}),o&&u.jsx("p",{className:"text-blush-500 text-xs mt-3",children:o}),(r==null?void 0:r.deliverable)&&u.jsxs(Nt.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},className:"mt-6 text-left overflow-hidden",children:[u.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-sage-700 font-medium mb-3",children:[u.jsx(Ud,{size:15})," ",e("zip.availableStores")]}),u.jsx("div",{className:"space-y-2",children:(r.stores||[]).map(p=>u.jsxs(Ua,{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:[u.jsxs("span",{children:[u.jsxs("span",{className:"font-medium text-sm flex items-center gap-1.5 text-blush-900",children:[u.jsx(Bd,{size:14,className:"text-blush-500"}),p.storeName]}),u.jsx("span",{className:"block text-xs text-[#8a7077] mt-0.5",children:e("zip.radiusSameDay",{radius:p.radiusMi,cutoff:p.sameDayCutoff,tz:p.timezone})})]}),u.jsx(Es,{size:16,className:"text-blush-500"})]},p.storeId))})]})]}),u.jsxs("div",{className:"flex items-center justify-center gap-2 mt-6 text-[12px] text-[#8a7077]",children:[u.jsx("span",{className:"flex text-gold",children:[1,2,3,4,5].map(p=>u.jsx(Wa,{size:13,fill:"currentColor"},p))}),ke.rating,"★ · ",e("zip.reviews",{n:ke.reviewCount.toLocaleString()})]}),u.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 a5({size:e=18}){return u.jsx("svg",{viewBox:"0 0 24 24",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:u.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 BX({size:e=18}){return u.jsxs("svg",{viewBox:"0 0 24 24",width:e,height:e,"aria-hidden":"true",children:[u.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"}),u.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"}),u.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"}),u.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 UX({size:e=18}){return u.jsx("svg",{viewBox:"0 0 24 24",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:u.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 FX={instagram:({size:e})=>u.jsx(yk,{size:e}),facebook:({size:e})=>u.jsx(pk,{size:e}),pinterest:a5,google:BX,yelp:UX},VX={instagram:"Instagram",facebook:"Facebook",pinterest:"Pinterest",google:"Google Business",yelp:"Yelp"},HX=["instagram","facebook","pinterest","google","yelp"];function qX({size:e=18,className:t="",iconClass:n=""}){return u.jsx("div",{className:`flex items-center gap-3 ${t}`,children:HX.map(r=>{const a=ke.social[r];if(!a)return null;const i=FX[r];return u.jsx("a",{href:a,target:"_blank",rel:"noreferrer","aria-label":VX[r],className:`transition-colors ${n}`,children:u.jsx(i,{size:e})},r)})})}function KX({url:e,title:t,image:n,className:r=""}){const a=encodeURIComponent(e),i=encodeURIComponent(t||ke.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}`,c=ke.social.instagram,f=d=>window.open(d,"_blank","noopener,width=640,height=600");return u.jsxs("div",{className:`flex items-center gap-2 ${r}`,children:[u.jsx("span",{className:"text-xs text-[#a08a90]",children:"Share:"}),u.jsx("button",{type:"button",onClick:()=>f(c),"aria-label":"Share on Instagram",className:"p-2 rounded-full border border-blush-100 text-blush-500 hover:bg-blush-50 transition-colors",children:u.jsx(yk,{size:16})}),u.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:u.jsx(pk,{size:16})}),u.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:u.jsx(a5,{size:16})})]})}function GX(){return u.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"Visa",children:[u.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#fff",stroke:"#e7e2dc"}),u.jsx("text",{x:"24",y:"21",textAnchor:"middle",fontFamily:"Georgia, serif",fontWeight:"700",fontStyle:"italic",fontSize:"13",fill:"#1a1f71",children:"VISA"})]})}function YX(){return u.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"Mastercard",children:[u.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#fff",stroke:"#e7e2dc"}),u.jsx("circle",{cx:"20",cy:"16",r:"8",fill:"#eb001b"}),u.jsx("circle",{cx:"28",cy:"16",r:"8",fill:"#f79e1b",fillOpacity:"0.85"})]})}function XX(){return u.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"American Express",children:[u.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#2e77bb"}),u.jsx("text",{x:"24",y:"20",textAnchor:"middle",fontFamily:"Arial, sans-serif",fontWeight:"700",fontSize:"9",fill:"#fff",children:"AMEX"})]})}function WX(){return u.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"Discover",children:[u.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#fff",stroke:"#e7e2dc"}),u.jsx("circle",{cx:"36",cy:"22",r:"9",fill:"#f68121"}),u.jsx("text",{x:"22",y:"19",textAnchor:"middle",fontFamily:"Arial, sans-serif",fontWeight:"700",fontSize:"7",fill:"#231f20",children:"DISCOVER"})]})}function QX(){return u.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"Apple Pay",children:[u.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#000"}),u.jsx("text",{x:"24",y:"20",textAnchor:"middle",fontFamily:"-apple-system, Helvetica, sans-serif",fontWeight:"600",fontSize:"9",fill:"#fff",children:" Pay"})]})}function ZX(){return u.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"Google Pay",children:[u.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#fff",stroke:"#e7e2dc"}),u.jsxs("text",{x:"24",y:"20",textAnchor:"middle",fontFamily:"Arial, sans-serif",fontWeight:"700",fontSize:"9",children:[u.jsx("tspan",{fill:"#4285f4",children:"G"}),u.jsx("tspan",{fill:"#ea4335",children:"o"}),u.jsx("tspan",{fill:"#fbbc05",children:"o"}),u.jsx("tspan",{fill:"#4285f4",children:"g"}),u.jsx("tspan",{fill:"#34a853",children:"l"}),u.jsx("tspan",{fill:"#ea4335",children:"e"}),u.jsx("tspan",{fill:"#5f6368",children:" Pay"})]})]})}const i5={Visa:GX,Mastercard:YX,Amex:XX,Discover:WX,"Apple Pay":QX,"Google Pay":ZX};function s5({items:e,className:t=""}){return u.jsx("div",{className:`flex flex-wrap items-center gap-1.5 ${t}`,children:e.map(n=>{const r=i5[n];return r?u.jsx(r,{},n):u.jsx("span",{className:"text-[10px] bg-cream/10 rounded px-2 py-1",children:n},n)})})}function JX(e){const t=e.replace(/\D/g,"");return t.length<4?"•••• •••• •••• ••••":`•••• •••• •••• ${t.slice(-4)}`}function eW(e){return e.replace(/\D/g,"").slice(0,16).replace(/(.{4})/g,"$1 ").trim()}function tW({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(""),[c,f]=A.useState(""),[d,h]=A.useState(""),[p,m]=A.useState(!1),g=i.replace(/\D/g,""),b=(v=i,x=o,w=c)=>{const S=v.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=v=>v==="Apple Pay"?"APPLE_PAY":"GOOGLE_PAY";return u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[u.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:[u.jsx(WE,{size:16})," Card"]}),a.map(v=>{const x=y(v),w=i5[v];return u.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":v,children:w?u.jsx(w,{}):u.jsx("span",{className:"text-sm",children:v})},v)})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"text-[11px] text-gray-400",children:"Accepted:"}),u.jsx(s5,{items:r})]}),e==="CARD"?u.jsxs("div",{className:"rounded-2xl border border-blush-100 p-4 space-y-3 bg-white",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"Card number"}),u.jsxs("div",{className:"flex items-center gap-2 px-3 py-2.5 rounded-xl border border-blush-100 focus-within:border-bloom",children:[u.jsx(WE,{size:16,className:"text-blush-400 shrink-0"}),u.jsx("input",{inputMode:"numeric",autoComplete:"cc-number",value:p?eW(i):g?JX(i):"",onFocus:()=>m(!0),onBlur:()=>m(!1),onChange:v=>{const x=v.target.value;s(x),b(x)},placeholder:"1234 1234 1234 1234",className:"flex-1 bg-transparent text-sm outline-none tracking-wider"})]})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"Expiry (MM/YY)"}),u.jsx("input",{inputMode:"numeric",autoComplete:"cc-exp",value:o,onChange:v=>{let x=v.target.value.replace(/\D/g,"").slice(0,4);x.length>=3&&(x=x.slice(0,2)+"/"+x.slice(2)),l(x),b(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"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"CVC"}),u.jsx("input",{inputMode:"numeric",autoComplete:"cc-csc",value:c,onChange:v=>{const x=v.target.value.replace(/\D/g,"").slice(0,4);f(x),b(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"})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"Name on card"}),u.jsx("input",{autoComplete:"cc-name",value:d,onChange:v=>h(v.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"})]}),u.jsxs("p",{className:"flex items-center gap-1 text-[11px] text-gray-400",children:[u.jsx(QE,{size:11})," Card number is masked and never stored on this device. Processed via GUARDiA PaymentGateway."]})]}):u.jsxs("div",{className:"rounded-2xl border border-blush-100 p-4 bg-white",children:[u.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"}),u.jsxs("p",{className:"flex items-center gap-1 text-[11px] text-gray-400 mt-2",children:[u.jsx(QE,{size:11})," ",e==="APPLE_PAY"?"Apple Pay":"Google Pay"," via secure wallet. If unconfigured, processed as mock at checkout."]})]})]})}const nW=[{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 rW(){const{t:e}=ni(),{zip:t,storeName:n,custToken:r,cartCount:a,setCartCount:i}=bn(),s=Kt(),o=jr(),l=ti(),[c,f]=A.useState("");A.useEffect(()=>{if(!r){i(0);return}hj().then(h=>i((h||[]).reduce((p,m)=>p+(m.quantity||1),0))).catch(()=>{})},[r]);const d=h=>{h.preventDefault(),c.trim()&&s(`/search?q=${encodeURIComponent(c.trim())}`)};return u.jsxs("div",{className:"min-h-screen bg-cream text-[#43343a] flex flex-col",children:[u.jsx("div",{className:"bg-sage-700 text-cream/95 text-[12px] tracking-wide",children:u.jsxs("div",{className:"max-w-6xl mx-auto px-4 h-9 flex items-center justify-center sm:justify-between gap-3",children:[u.jsxs("span",{className:"hidden sm:flex items-center gap-1.5",children:[u.jsx(ft,{size:13})," ",ke.tagline]}),u.jsxs("span",{className:"flex items-center gap-3",children:[u.jsxs("span",{className:"flex items-center gap-1",children:[u.jsx(Wa,{size:12,className:"text-gold",fill:"currentColor"})," ",ke.rating,"★ · ",e("shop.topbar.reviews",{n:ke.reviewCount.toLocaleString()})]}),u.jsxs("a",{href:`tel:${ke.phoneTel}`,className:"hidden sm:flex items-center gap-1 hover:text-white",children:[u.jsx(ZE,{size:12})," ",ke.phone]})]})]})}),u.jsxs("header",{className:"sticky top-0 z-30 bg-cream/90 backdrop-blur-md border-b border-blush-100",children:[u.jsxs("div",{className:"max-w-6xl mx-auto px-4 h-[72px] flex items-center gap-4",children:[u.jsxs(Le,{to:"/home",className:"flex items-center gap-2.5 shrink-0",children:[u.jsx(Nt.span,{animate:l?void 0:{rotate:[0,8,-6,0]},transition:{duration:7,repeat:1/0,ease:"easeInOut"},children:u.jsx(ft,{className:"text-blush-500",size:28})}),u.jsxs("span",{className:"leading-none",children:[u.jsx("span",{className:"block font-serif text-[20px] font-bold text-blush-900 tracking-tight",children:"Montvale"}),u.jsx("span",{className:"block font-display text-[12px] tracking-[0.35em] text-sage-600 uppercase -mt-0.5",children:"Florist"})]})]}),u.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:[u.jsx(rj,{size:16,className:"text-blush-400"}),u.jsx("input",{value:c,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"})]}),u.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-3 ml-auto",children:[u.jsx(ag,{variant:"shop"}),u.jsxs(Le,{to:"/",className:"hidden sm:flex items-center gap-1 text-sm text-sage-700 hover:text-blush-500 transition-colors",children:[u.jsx(dm,{size:15})," ",t?`${t}`:e("shop.header.zip")]}),u.jsx(Le,{to:"/wishlist","aria-label":e("shop.header.wishlist"),className:"p-1.5 text-blush-700 hover:text-blush-500 transition-colors",children:u.jsx(Rf,{size:20})}),u.jsxs(Le,{to:"/cart",className:"relative p-1.5 text-blush-700 hover:text-blush-500 transition-colors",children:[u.jsx(sj,{size:20}),u.jsx(nx,{children:a>0&&u.jsx(Nt.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)})]}),u.jsx(Le,{to:r?"/mypage":"/account",className:"p-1.5 text-blush-700 hover:text-blush-500 transition-colors",children:u.jsx(wk,{size:20})})]})]}),u.jsx("nav",{className:"border-t border-blush-50 bg-white/60",children:u.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:nW.map(h=>{const p=o.pathname+o.search===h.to||h.to==="/home"&&o.pathname==="/home";return u.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&&u.jsx(Nt.span,{layoutId:"nav-underline",className:"absolute -bottom-[1px] left-0 right-0 h-[2px] bg-blush-500 rounded-full"})]},h.to)})})})]}),u.jsx("main",{className:"flex-1",children:u.jsx(f$,{})}),u.jsxs("footer",{className:"mt-16 bg-sage-800 text-cream/85",children:[u.jsx("div",{className:"botanical-divider py-6 opacity-50",children:u.jsx(ft,{size:16})}),u.jsxs("div",{className:"max-w-6xl mx-auto px-4 pb-10 grid md:grid-cols-4 gap-8",children:[u.jsxs("div",{className:"md:col-span-1",children:[u.jsx("div",{className:"font-serif text-xl font-bold text-white mb-1",children:"Montvale Florist"}),u.jsx("p",{className:"font-display text-[13px] tracking-[0.3em] uppercase text-sage-300 mb-3",children:e("shop.footer.since",{year:ke.founded})}),u.jsx("p",{className:"text-[13px] leading-relaxed text-cream/70",children:ke.tagline}),u.jsx(qX,{size:18,className:"mt-4 text-cream/80",iconClass:"hover:text-white"})]}),u.jsxs("div",{children:[u.jsx("div",{className:"font-semibold text-white mb-3 text-sm",children:e("shop.footer.visitUs")}),u.jsxs("p",{className:"text-[13px] flex items-start gap-1.5 text-cream/75 mb-1.5",children:[u.jsx(dm,{size:14,className:"mt-0.5 shrink-0"})," ",ke.address]}),u.jsxs("a",{href:`tel:${ke.phoneTel}`,className:"text-[13px] flex items-center gap-1.5 text-cream/75 hover:text-white mb-1.5",children:[u.jsx(ZE,{size:14})," ",ke.phone]}),u.jsx("p",{className:"text-[13px] text-cream/60",children:ke.email})]}),u.jsxs("div",{children:[u.jsxs("div",{className:"font-semibold text-white mb-3 text-sm flex items-center gap-1.5",children:[u.jsx(ck,{size:14})," ",e("shop.footer.hours")]}),ke.hours.map(h=>u.jsxs("div",{className:"text-[13px] text-cream/75 mb-1",children:[u.jsx("span",{className:"inline-block w-20",children:h.day})," ",h.open]},h.day))]}),u.jsxs("div",{children:[u.jsx("div",{className:"font-semibold text-white mb-3 text-sm",children:e("shop.footer.customerCare")}),u.jsxs(Le,{to:"/cs",className:"flex items-center gap-1 text-[13px] text-cream/75 hover:text-white mb-1.5",children:[u.jsx(Pu,{size:13})," ",e("shop.footer.contactAiHelp")]}),u.jsxs(Le,{to:"/orders",className:"flex items-center gap-1 text-[13px] text-cream/75 hover:text-white mb-1.5",children:[u.jsx(Pu,{size:13})," ",e("shop.footer.orderStatus")]}),u.jsxs(Le,{to:"/subscription",className:"flex items-center gap-1 text-[13px] text-cream/75 hover:text-white mb-1.5",children:[u.jsx(Pu,{size:13})," ",e("shop.footer.subscriptions")]}),u.jsxs(Le,{to:"/app",className:"flex items-center gap-1 text-[13px] text-gold hover:text-white mb-3 font-medium",children:[u.jsx(Pu,{size:13})," ",e("shop.footer.getApp")]}),u.jsx("div",{className:"text-[11px] text-cream/50 mb-1.5",children:e("shop.footer.weAccept")}),u.jsx(s5,{items:ke.payments})]})]}),u.jsx("div",{className:"border-t border-cream/10",children:u.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:[u.jsxs("span",{children:["© 2026 Montvale Florist · ",ke.address]}),u.jsx("span",{className:"flex flex-wrap gap-3",children:ke.policies.map(h=>u.jsx("span",{className:"hover:text-cream/80",children:h},h))})]})})]})]})}function Zl({p:e}){var a;const t=ti(),n=e.salePrice!=null&&e.salePrice>0&&e.salePrice<(e.price||0),r=n?Math.round((1-e.salePrice/e.price)*100):0;return u.jsx(Nt.div,{whileHover:t?void 0:{y:-8},transition:{type:"spring",stiffness:300,damping:24},className:"group h-full",children:u.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:[u.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?u.jsx("img",{src:e.thumbnail,alt:e.name,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-110"}):u.jsx(ft,{className:"text-blush-200",size:56}),n&&u.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&&u.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}),u.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"})]}),u.jsxs("div",{className:"p-4",children:[e.brand&&u.jsx("div",{className:"text-[10px] uppercase tracking-[0.12em] text-sage-600 mb-0.5",children:e.brand}),u.jsx("div",{className:"font-serif text-[15px] leading-snug text-blush-900 truncate",children:e.name}),u.jsxs("div",{className:"flex items-center justify-between mt-2",children:[u.jsx("div",{className:"flex items-baseline gap-1.5",children:n?u.jsxs(u.Fragment,{children:[u.jsx("span",{className:"text-blush-600 font-bold",children:Ee(e.salePrice)}),u.jsx("span",{className:"text-gray-400 line-through text-xs",children:Ee(e.price)})]}):u.jsx("span",{className:"font-bold text-blush-900",children:Ee(e.price)})}),e.ratingAvg!=null&&e.reviewCount?u.jsxs("span",{className:"flex items-center gap-0.5 text-xs text-gold",children:[u.jsx(Wa,{size:12,fill:"currentColor"}),(a=e.ratingAvg)==null?void 0:a.toFixed(1)]}):null]})]})]})})}const aW=[wK,ft,aj],iW=6e3;function sW(){const{storeName:e}=bn(),t=ti(),n=A.useRef(null),{scrollYProgress:r}=mq({target:n,offset:["start start","end start"]}),a=Jv(r,[0,1],["0%",t?"0%":"28%"]),i=Jv(r,[0,1],[1,t?1:1.12]),s=Jv(r,[0,.8],[1,t?1:.2]),[o,l]=A.useState(0),[c,f]=A.useState(1),d=lb.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)},iW);return()=>clearInterval(m)},[t,d]);const p=lb[o];return u.jsxs("section",{ref:n,className:"relative overflow-hidden min-h-[78vh] flex items-center",children:[u.jsxs(Nt.div,{style:{y:a,scale:i},className:"absolute inset-0 z-0",children:[u.jsx(nx,{initial:!1,children:u.jsx(Nt.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)}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-blush-900/70 via-blush-900/40 to-transparent"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-sage-900/40 to-transparent"})]}),u.jsx(Kd,{count:16,className:"z-[1]"}),u.jsx(Nt.div,{style:{opacity:s},className:"relative z-10 max-w-6xl mx-auto px-4 w-full py-20",children:u.jsx(nx,{mode:"wait",custom:c,children:u.jsxs(Nt.div,{className:"max-w-xl",custom:c,initial:t?!1:{opacity:0,x:c*36},animate:{opacity:1,x:0},exit:t?{opacity:0}:{opacity:0,x:c*-36},transition:{duration:.7,ease:[.22,1,.36,1]},children:[u.jsxs("div",{className:"inline-flex items-center gap-2 text-cream/90 text-[12px] tracking-[0.25em] uppercase mb-5",children:[u.jsx("span",{className:"h-px w-8 bg-gold"})," ",p.eyebrow]}),u.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}),u.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}.`:""]}),u.jsxs("div",{className:"flex flex-wrap gap-3",children:[u.jsx(Le,{to:p.to,children:u.jsxs(Ua,{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," ",u.jsx(Es,{size:17})]})}),u.jsx(Le,{to:"/daily-standard",children:u.jsxs(Ua,{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:[u.jsx(ej,{size:16})," Today's Bouquet"]})})]}),u.jsxs("div",{className:"flex items-center gap-2 mt-7 text-cream/85 text-sm",children:[u.jsx("span",{className:"flex text-gold",children:[1,2,3,4,5].map(m=>u.jsx(Wa,{size:15,fill:"currentColor"},m))}),u.jsx("span",{className:"font-medium",children:ke.rating}),u.jsxs("span",{className:"text-cream/60",children:["· ",ke.reviewCount.toLocaleString()," happy customers"]})]})]},o)})}),u.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:u.jsx(gK,{size:22})}),u.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:u.jsx(Pu,{size:22})}),u.jsx("div",{className:"absolute bottom-7 left-1/2 -translate-x-1/2 z-20 flex items-center gap-2.5",children:lb.map((m,g)=>u.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))}),u.jsx(Nt.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:u.jsx(ft,{size:130,strokeWidth:1})})]})}function oW(){var i,s,o;const{data:e}=se({queryKey:["ai-rec"],queryFn:()=>t5("","",8)}),{data:t}=se({queryKey:["best"],queryFn:()=>Ql({sort:"sales",size:8})}),{data:n}=se({queryKey:["feat"],queryFn:()=>Ql({sort:"rating",size:12})}),r=(t==null?void 0:t.items)||[],a=(n==null?void 0:n.items)||[];return u.jsxs("div",{children:[u.jsx(sW,{}),u.jsx("section",{className:"bg-ivory border-b border-blush-100",children:u.jsx("div",{className:"max-w-6xl mx-auto px-4 py-10 grid md:grid-cols-3 gap-6",children:ke.promise.map((l,c)=>{const f=aW[c];return u.jsxs(Gr,{delay:c*.1,className:"flex items-start gap-3",children:[u.jsx("span",{className:"shrink-0 w-11 h-11 rounded-full bg-blush-50 text-blush-500 flex items-center justify-center",children:u.jsx(f,{size:20})}),u.jsxs("div",{children:[u.jsx("div",{className:"font-serif text-lg text-blush-900",children:l.title}),u.jsx("p",{className:"text-sm text-[#6b5258] leading-relaxed mt-0.5",children:l.desc})]})]},l.title)})})}),u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-14 space-y-20",children:[u.jsxs("section",{children:[u.jsxs(Gr,{className:"flex items-end justify-between mb-7",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 text-sage-600 text-[12px] tracking-[0.2em] uppercase mb-2",children:[u.jsx(xr,{size:15})," Curated by GUARDiA AI · On-premise"]}),u.jsx("h2",{className:"font-serif text-3xl text-blush-900",children:"Picked Just for You"})]}),u.jsxs(Le,{to:"/category",className:"hidden sm:flex items-center gap-1 text-sm text-blush-500 hover:text-blush-700",children:["View all ",u.jsx(Es,{size:15})]})]}),u.jsxs(pm,{className:"grid grid-cols-2 md:grid-cols-4 gap-5",children:[(e||[]).slice(0,8).map(l=>u.jsx(mm,{children:u.jsx(Zl,{p:l})},l.id)),!(e||[]).length&&u.jsx("div",{className:"col-span-4 text-blush-300 text-sm py-12 text-center",children:"Curating fresh picks…"})]})]}),u.jsx("div",{className:"botanical-divider",children:u.jsx(ft,{size:18})}),u.jsx(Gr,{children:u.jsxs("section",{className:"relative overflow-hidden rounded-4xl bg-gradient-to-br from-sage-700 to-sage-800 text-white",children:[u.jsx(Kd,{count:8}),u.jsxs("div",{className:"relative z-10 p-8 md:p-12 flex flex-col md:flex-row items-center justify-between gap-6",children:[u.jsxs("div",{className:"max-w-lg",children:[u.jsxs("div",{className:"flex items-center gap-2 text-sage-200 text-[12px] tracking-[0.2em] uppercase mb-3",children:[u.jsx(ej,{size:15})," Farmgirl-style daily"]}),u.jsx("h3",{className:"font-serif text-3xl md:text-4xl font-bold mb-3",children:"Today's Designer Bouquet"}),u.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."})]}),u.jsx(Le,{to:"/daily-standard",children:u.jsxs(Ua,{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 ",u.jsx(Es,{size:16})]})})]})]})}),u.jsxs("section",{children:[u.jsxs(Gr,{className:"flex items-end justify-between mb-7",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 text-sage-600 text-[12px] tracking-[0.2em] uppercase mb-2",children:[u.jsx(Wa,{size:14})," Most loved"]}),u.jsx("h2",{className:"font-serif text-3xl text-blush-900",children:"Bestsellers"})]}),u.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 ",u.jsx(Es,{size:15})]})]}),u.jsx(pm,{className:"grid grid-cols-2 md:grid-cols-4 gap-5",children:r.map(l=>u.jsx(mm,{children:u.jsx(Zl,{p:l})},l.id))})]}),u.jsx(Gr,{children:u.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,c)=>u.jsxs(Le,{to:l.to,className:"group relative rounded-3xl overflow-hidden zoom-frame aspect-[5/4] block shadow-soft",children:[l.img?u.jsx("img",{src:l.img,alt:"",loading:"lazy",className:"w-full h-full object-cover group-hover:scale-110"}):u.jsx("div",{className:"w-full h-full bg-gradient-to-br from-blush-100 to-sage-100"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-blush-900/75 via-blush-900/20 to-transparent"}),u.jsxs("div",{className:"absolute bottom-0 left-0 p-6 text-white",children:[u.jsx("div",{className:"font-serif text-xl font-semibold mb-0.5",children:l.label}),u.jsx("p",{className:"text-cream/85 text-sm",children:l.sub}),u.jsxs("span",{className:"inline-flex items-center gap-1 text-[13px] text-gold mt-2 group-hover:gap-2 transition-all",children:["Explore ",u.jsx(Es,{size:14})]})]})]},l.to))})}),u.jsx(Gr,{children:u.jsxs("section",{className:"rounded-4xl bg-blush-50 border border-blush-100 p-8 md:p-10 text-center",children:[u.jsx("div",{className:"flex justify-center mb-4",children:u.jsx("span",{className:"w-12 h-12 rounded-full bg-white text-blush-500 flex items-center justify-center shadow-soft",children:u.jsx(Ud,{size:22})})}),u.jsxs("h3",{className:"font-serif text-2xl text-blush-900 mb-2",children:["Your Local Florist Since ",ke.founded]}),u.jsx("p",{className:"text-[#6b5258] max-w-xl mx-auto leading-relaxed text-[15px]",children:ke.about}),u.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-2 mt-5 text-[12px] text-sage-700",children:[u.jsx("span",{className:"bg-white rounded-full px-3 py-1.5 shadow-soft",children:"Same-Day Delivery"}),u.jsx("span",{className:"bg-white rounded-full px-3 py-1.5 shadow-soft",children:"Hand-Delivered"}),u.jsx("span",{className:"bg-white rounded-full px-3 py-1.5 shadow-soft",children:"100% Satisfaction"}),u.jsx("span",{className:"bg-white rounded-full px-3 py-1.5 shadow-soft",children:"No-Contact Available"})]})]})})]})]})}const gT=[["","All"],["BIRTHDAY","Birthday"],["ANNIVERSARY","Anniversary"],["SYMPATHY","Sympathy"],["CONGRATS","Congrats"],["ROMANCE","Romance"]],lW=[["","Recommended"],["price_asc","Price ↑"],["price_desc","Price ↓"],["sales","Bestselling"],["rating","Top rated"]];function cW(){var b;const[e,t]=m$(),n=e.get("occasion")||"",[r,a]=A.useState(e.get("sort")||""),[i,s]=A.useState(""),[o,l]=A.useState(""),[c,f]=A.useState(null);se({queryKey:["cats"],queryFn:PY});const{data:d}=se({queryKey:["products",n,r,i],queryFn:()=>Ql({occasion:n,sort:r,maxPrice:i?Number(i):void 0,size:24})}),h=c?c.items:(d==null?void 0:d.items)||[],p=y=>{const v=new URLSearchParams(e);y?v.set("occasion",y):v.delete("occasion"),t(v),f(null)},m=async y=>{if(y.preventDefault(),!o.trim()){f(null);return}const v=await n5(o.trim()).catch(()=>null);f(v)},g=((b=gT.find(y=>y[0]===n))==null?void 0:b[1])||"All";return u.jsxs("div",{children:[u.jsx("section",{className:"bg-gradient-to-br from-blush-50 to-ivory border-b border-blush-100",children:u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-10",children:[u.jsx("div",{className:"text-[12px] tracking-[0.2em] uppercase text-sage-600 mb-2",children:"Shop the collection"}),u.jsx("h1",{className:"font-serif text-4xl text-blush-900",children:g==="All"?"All Flowers":g})]})}),u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-8",children:[u.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:[u.jsx(xr,{size:16,className:"text-blush-500"}),u.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"}),u.jsx("button",{className:"text-blush-500 text-sm font-semibold",children:"AI Search"})]}),c&&u.jsxs("div",{className:"text-xs text-sage-700 mb-4",children:["AI understood: ",u.jsx("span",{className:"font-medium",children:JSON.stringify(c.parsed)})," · ",c.source]}),u.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-7",children:[gT.map(([y,v])=>u.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:v},y)),u.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[u.jsx(CK,{size:15,className:"text-blush-300"}),u.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"}),u.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:lW.map(([y,v])=>u.jsx("option",{value:y,children:v},y))})]})]}),u.jsx(pm,{className:"grid grid-cols-2 md:grid-cols-4 gap-5",children:h.map(y=>u.jsx(mm,{children:u.jsx(Zl,{p:y})},y.id))}),!h.length&&u.jsxs(Gr,{className:"text-center text-blush-300 py-20",children:[u.jsx(ft,{size:40,className:"mx-auto mb-3 text-blush-200"}),"No flowers match those filters."]})]})]})}function uW(){const{t:e}=ni(),[t]=m$(),n=t.get("q")||"",{data:r,isLoading:a}=se({queryKey:["nl-search",n],queryFn:()=>n5(n),enabled:!!n}),i=(r==null?void 0:r.items)||[];return u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx(xr,{className:"text-bloom",size:20}),u.jsx("h1",{className:"font-serif text-2xl font-bold",children:e("search.resultsFor",{query:n})})]}),(r==null?void 0:r.parsed)&&u.jsxs("div",{className:"text-xs text-bloom2 mb-5",children:[e("search.aiUnderstood")," ",u.jsx("span",{className:"font-medium",children:JSON.stringify(r.parsed)})," · ",r.source]}),a&&u.jsx("div",{className:"text-gray-400 py-10 text-center",children:e("search.searching")}),u.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:i.map(s=>u.jsx(Zl,{p:s},s.id))}),!a&&!i.length&&u.jsx("div",{className:"text-center text-gray-400 py-16",children:e("search.noResults")})]})}function fW(){var te,Z,ye;const{id:e}=o$(),t=Number(e),n=Kt(),r=ti(),{custToken:a,setCartCount:i}=bn(),[s,o]=A.useState(""),[l,c]=A.useState(null),[f,d]=A.useState(null),[h,p]=A.useState(""),[m,g]=A.useState(1),[b,y]=A.useState(""),[v,x]=A.useState(!1),[w,S]=A.useState(null),{data:j}=se({queryKey:["product",t],queryFn:()=>CY(t)}),{data:O}=se({queryKey:["reviews",t],queryFn:()=>WY(t)}),{data:E}=se({queryKey:["rstats",t],queryFn:()=>QY(t)}),{data:T}=se({queryKey:["aisum",t],queryFn:()=>cX(t)});if(!j)return u.jsx("div",{className:"max-w-6xl mx-auto px-4 py-24 text-center text-blush-300",children:"Loading…"});const N=j.sizes||[],M=N.find(J=>J.sizeCode===s)||N[0],C=j.options||[],L=C.filter(J=>J.optionType==="VASE"),D=C.filter(J=>J.optionType==="WRAP"),$=J=>C.find(st=>st.id===J),P=M?M.price:j.salePrice&&j.salePrice>0?j.salePrice:j.price,k=(((te=$(l))==null?void 0:te.extraPrice)||0)+(((Z=$(f))==null?void 0:Z.extraPrice)||0),I=(P+k)*m,F=w||j.thumbnail,H=async()=>{if(!a){n("/account");return}try{await LY({productId:j.id,optionId:l||f||null,sizeCode:(M==null?void 0:M.sizeCode)||"",cardMessage:h,quantity:m}),i(J=>J+m),y("Added to your cart.")}catch{y("Could not add to cart.")}},Y=async()=>{await H(),n("/cart")},q=async()=>{if(!a){n("/account");return}x(!0),setTimeout(()=>x(!1),700),await rX(j.id).catch(()=>{}),y("Saved to your wishlist.")};return u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-10",children:[u.jsxs("div",{className:"grid md:grid-cols-2 gap-10",children:[u.jsxs(Gr,{children:[u.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?u.jsx(Nt.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):u.jsx(ft,{className:"text-blush-200",size:96})}),!!(j.images||[]).length&&u.jsxs("div",{className:"flex gap-2 mt-3",children:[u.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?u.jsx("img",{src:j.thumbnail,className:"w-full h-full object-cover"}):u.jsx(ft,{className:"text-blush-200 m-auto",size:20})}),j.images.map((J,st)=>u.jsx("button",{onClick:()=>S(J),className:`w-16 h-16 rounded-2xl overflow-hidden border-2 ${w===J?"border-blush-400":"border-blush-100"}`,children:u.jsx("img",{src:J,className:"w-full h-full object-cover"})},st))]})]}),u.jsxs(Gr,{delay:.1,children:[j.brand&&u.jsx("div",{className:"text-[11px] uppercase tracking-[0.2em] text-sage-600 mb-1",children:j.brand}),u.jsx("h1",{className:"font-serif text-3xl font-bold text-blush-900 mb-2 leading-tight",children:j.name}),u.jsxs("div",{className:"flex items-center gap-2 text-sm text-gold mb-4",children:[u.jsx(Wa,{size:15,fill:"currentColor"})," ",((ye=j.ratingAvg)==null?void 0:ye.toFixed(1))||"–",u.jsxs("span",{className:"text-[#a08a90]",children:["(",j.reviewCount||0," reviews)"]}),j.occasion&&u.jsx("span",{className:"text-xs bg-blush-50 text-blush-700 px-2.5 py-0.5 rounded-full ml-1",children:j.occasion})]}),u.jsx("p",{className:"text-[#6b5258] text-[15px] mb-6 leading-relaxed",children:j.description}),!!N.length&&u.jsxs("div",{className:"mb-6",children:[u.jsx("div",{className:"text-sm font-medium text-blush-900 mb-2",children:"Choose your size"}),u.jsx("div",{className:"grid grid-cols-3 gap-2.5",children:N.map(J=>u.jsxs(Ua,{onClick:()=>o(J.sizeCode),className:`rounded-2xl border p-3 text-center transition-colors ${(M==null?void 0:M.sizeCode)===J.sizeCode?"border-blush-400 bg-blush-50":"border-blush-100 hover:border-blush-300"}`,children:[u.jsx("div",{className:"font-semibold text-sm text-blush-900",children:J.label}),u.jsxs("div",{className:"text-xs text-[#8a7077]",children:[J.stemCount," stems"]}),u.jsx("div",{className:"text-blush-600 font-bold text-sm mt-1",children:Ee(J.price)})]},J.sizeCode))})]}),!!L.length&&u.jsxs("div",{className:"mb-4",children:[u.jsx("div",{className:"text-sm font-medium text-blush-900 mb-2",children:"Add a vase"}),u.jsxs("div",{className:"flex flex-wrap gap-2",children:[u.jsx(Ch,{active:l===null,onClick:()=>c(null),children:"No vase"}),L.map(J=>u.jsxs(Ch,{active:l===J.id,onClick:()=>c(J.id),children:[J.optionValue," +",Ee(J.extraPrice)]},J.id))]})]}),!!D.length&&u.jsxs("div",{className:"mb-4",children:[u.jsx("div",{className:"text-sm font-medium text-blush-900 mb-2",children:"Wrapping"}),u.jsxs("div",{className:"flex flex-wrap gap-2",children:[u.jsx(Ch,{active:f===null,onClick:()=>d(null),children:"Standard"}),D.map(J=>u.jsxs(Ch,{active:f===J.id,onClick:()=>d(J.id),children:[J.optionValue," +",Ee(J.extraPrice)]},J.id))]})]}),u.jsxs("div",{className:"mb-5",children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsx("span",{className:"text-sm font-medium text-blush-900",children:"Card message"}),u.jsxs(Le,{to:"/cs",className:"text-xs text-blush-500 flex items-center gap-1",children:[u.jsx(xr,{size:12})," AI message helper"]})]}),u.jsx("textarea",{value:h,onChange:J=>p(J.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"})]}),u.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[u.jsxs("div",{className:"flex items-center border border-blush-100 rounded-full",children:[u.jsx("button",{onClick:()=>g(J=>Math.max(1,J-1)),className:"px-3.5 py-1.5 text-blush-600",children:"−"}),u.jsx("span",{className:"px-2 text-sm w-8 text-center",children:m}),u.jsx("button",{onClick:()=>g(J=>J+1),className:"px-3.5 py-1.5 text-blush-600",children:"+"})]}),u.jsx("div",{className:"font-serif text-2xl font-bold text-blush-900",children:Ee(I)})]}),b&&u.jsx("div",{className:"text-sm text-sage-700 mb-3",children:b}),u.jsxs("div",{className:"flex gap-3",children:[u.jsxs(Ua,{onClick:H,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:[u.jsx(sj,{size:18})," Add to Cart"]}),u.jsx(Ua,{onClick:Y,className:"flex-1 bg-blush-500 text-white font-semibold py-3.5 rounded-full hover:bg-blush-600 shadow-petal",children:"Buy Now"}),u.jsx("button",{onClick:q,className:`px-4 border border-blush-100 rounded-full text-blush-500 hover:bg-blush-50 ${v?"animate-heartbeat":""}`,children:u.jsx(Rf,{size:18,fill:v?"currentColor":"none"})})]}),u.jsxs("div",{className:"flex items-center gap-5 mt-5 text-xs text-sage-700",children:[u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(Ud,{size:14})," Same-day local delivery"]}),u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(aj,{size:14})," 100% satisfaction"]})]}),u.jsx("div",{className:"mt-4 pt-4 border-t border-blush-100/60",children:u.jsx(KX,{url:typeof window<"u"?window.location.href:"",title:j.name,image:j.thumbnail||""})})]})]}),u.jsxs("div",{className:"mt-16",children:[u.jsx("div",{className:"botanical-divider mb-8",children:u.jsx(ft,{size:16})}),u.jsxs("h2",{className:"font-serif text-2xl font-bold text-blush-900 mb-5",children:["Reviews (",(E==null?void 0:E.count)??j.reviewCount??0,")"]}),(T==null?void 0:T.summary)&&u.jsxs(Gr,{className:"bg-gradient-to-br from-blush-50 to-sage-50 border border-blush-100 rounded-3xl p-5 mb-6",children:[u.jsxs("div",{className:"flex items-center gap-2 text-blush-700 font-medium text-sm mb-1.5",children:[u.jsx(xr,{size:15})," AI Review Summary ",u.jsx("span",{className:"text-xs text-[#a08a90]",children:T.source})]}),u.jsx("p",{className:"text-sm text-[#5a474d] leading-relaxed",children:T.summary})]}),u.jsxs("div",{className:"space-y-3",children:[(O||[]).map(J=>u.jsxs("div",{className:"bg-white rounded-3xl border border-blush-100/70 p-5 shadow-soft",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"font-medium text-sm text-blush-900",children:J.title||"Review"}),u.jsxs("span",{className:"flex items-center gap-0.5 text-gold text-sm",children:[u.jsx(Wa,{size:13,fill:"currentColor"}),J.rating]})]}),u.jsx("p",{className:"text-sm text-[#6b5258] mt-1.5 leading-relaxed",children:J.content})]},J.id)),!(O||[]).length&&u.jsx("div",{className:"text-blush-300 text-sm py-8 text-center",children:"No reviews yet — be the first."})]}),u.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 Ch({active:e,onClick:t,children:n}){return u.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 dW(){const{t:e}=ni(),t=nn(),n=Kt(),{custToken:r,setCartCount:a}=bn(),{data:i}=se({queryKey:["cart"],queryFn:hj,enabled:!!r}),s=()=>t.invalidateQueries({queryKey:["cart"]}),o=async(d,h)=>{h<1||(await zY(d,h),s())},l=async d=>{await IY(d),s(),a(h=>Math.max(0,h-1))};if(!r)return u.jsxs("div",{className:"max-w-3xl mx-auto px-4 py-20 text-center",children:[u.jsx(sj,{className:"mx-auto text-bloom/40 mb-3",size:48}),u.jsx("p",{className:"text-gray-500 mb-4",children:e("cart.signInPrompt")}),u.jsx(Le,{to:"/account",className:"bg-bloom text-white px-6 py-2.5 rounded-full font-semibold",children:e("cart.signInRegister")})]});const c=i||[],f=c.reduce((d,h)=>d+(h.price||(h.unitPrice||0)*(h.quantity||1)),0);return u.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-8",children:[u.jsx("h1",{className:"font-serif text-2xl font-bold mb-6",children:e("cart.title")}),c.length?u.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[u.jsx("div",{className:"md:col-span-2 space-y-3",children:c.map(d=>u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-4 flex gap-4",children:[u.jsx("div",{className:"w-20 h-20 bg-petal rounded-xl flex items-center justify-center overflow-hidden shrink-0",children:d.thumbnail?u.jsx("img",{src:d.thumbnail,className:"w-full h-full object-cover"}):u.jsx(ft,{className:"text-bloom/30",size:32})}),u.jsxs("div",{className:"flex-1",children:[u.jsx("div",{className:"font-medium text-sm",children:d.productName||`Product #${d.productId}`}),u.jsxs("div",{className:"text-xs text-gray-500",children:[d.sizeCode,d.cardMessage?` · ${e("cart.card")}: ${d.cardMessage.slice(0,20)}`:""]}),u.jsxs("div",{className:"flex items-center gap-3 mt-2",children:[u.jsxs("div",{className:"flex items-center border border-blush-100 rounded-full text-sm",children:[u.jsx("button",{onClick:()=>o(d.id,(d.quantity||1)-1),className:"px-2.5 py-1 text-bloom2",children:"−"}),u.jsx("span",{className:"px-1 w-6 text-center",children:d.quantity||1}),u.jsx("button",{onClick:()=>o(d.id,(d.quantity||1)+1),className:"px-2.5 py-1 text-bloom2",children:"+"})]}),u.jsx("button",{onClick:()=>l(d.id),className:"text-blush-400 hover:text-blush-600",children:u.jsx(PK,{size:16})})]})]}),u.jsx("div",{className:"font-bold text-bloom2 text-sm",children:Ee(d.price||(d.unitPrice||0)*(d.quantity||1))})]},d.id))}),u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 h-fit",children:[u.jsxs("div",{className:"flex justify-between text-sm mb-2",children:[u.jsx("span",{className:"text-gray-500",children:e("cart.subtotal")}),u.jsx("span",{className:"font-medium",children:Ee(f)})]}),u.jsxs("div",{className:"flex justify-between text-sm mb-3",children:[u.jsx("span",{className:"text-gray-500",children:e("cart.shippingTax")}),u.jsx("span",{className:"text-gray-400",children:e("cart.calcAtCheckout")})]}),u.jsxs("div",{className:"border-t border-blush-100/60 pt-3 flex justify-between font-bold",children:[u.jsx("span",{children:e("cart.total")}),u.jsx("span",{className:"text-bloom2",children:Ee(f)})]}),u.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")})]})]}):u.jsxs("div",{className:"text-center text-gray-400 py-16",children:[e("cart.empty")," ",u.jsx(Le,{to:"/category",className:"text-bloom",children:e("cart.startShopping")})]})]})}function hW(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 pW(){var Co;const e=Kt(),{custToken:t,storeId:n,zip:r,setCartCount:a}=bn(),[i,s]=A.useState("DELIVERY"),[o,l]=A.useState(n||0),[c,f]=A.useState(""),[d,h]=A.useState(null),[p,m]=A.useState(""),[g,b]=A.useState(""),[y,v]=A.useState(""),[x,w]=A.useState(r||""),[S,j]=A.useState(""),[O,E]=A.useState(""),[T,N]=A.useState(0),[M,C]=A.useState("CARD"),[L,D]=A.useState({last4:"",expiry:"",complete:!1}),[$,P]=A.useState(null),[k,I]=A.useState(null),[F,H]=A.useState(!1),[Y,q]=A.useState(null),[te,Z]=A.useState(""),{data:ye}=se({queryKey:["cart"],queryFn:hj,enabled:!!t}),{data:J}=se({queryKey:["stores"],queryFn:()=>So(!0)}),{data:st}=se({queryKey:["loyalty-me"],queryFn:pj,enabled:!!t}),{data:Ve}=se({queryKey:["holidays"],queryFn:Wk}),{data:G}=se({queryKey:["avail",o,c],queryFn:()=>$Y(o,c),enabled:!!o&&!!c});A.useEffect(()=>{!o&&(J!=null&&J.length)&&l(J[0].id)},[J]);const oe=ye||[],X=oe.reduce((le,zt)=>le+(zt.price||(zt.unitPrice||0)*(zt.quantity||1)),0),V=G!=null&&G.surgeMultiplier&&G.surgeMultiplier>1?X*(G.surgeMultiplier-1):0,_e=((Co=st==null?void 0:st.benefit)==null?void 0:Co.discountRate)||0,ge=X*(_e/100),Xe=(k==null?void 0:k.taxAmount)||0,ot=(st==null?void 0:st.pointBalance)||0,dt=Math.min(ot,Math.floor(X)),Rn=Math.max(0,X+V+Xe-ge-T),oi=A.useMemo(()=>new Set((Ve||[]).filter(le=>le.blocked).map(le=>le.holidayDate)),[Ve]),No=async()=>{if(!y||!x)return;const le=await oX(y,x).catch(()=>null);P(le)},pa=async()=>{var Er;const le=((Er=J==null?void 0:J.find(nh=>nh.id===o))==null?void 0:Er.state)||"",zt=await sX(X,x||"",le).catch(()=>null);I(zt)};A.useEffect(()=>{X>0&&o&&pa()},[X,o,x]);const ma=async()=>{var le,zt;if(Z(""),!t){e("/account");return}if(!oe.length){Z("Your cart is empty.");return}if(!c||!d){Z("Please select a delivery/pickup date and time slot.");return}if(i==="DELIVERY"&&(!y||!p)){Z("Please enter the recipient and delivery address.");return}if(M==="CARD"&&!L.complete){Z("Please enter your card details.");return}H(!0);try{const Er=await UY({storeId:o,fulfillmentType:i,receiverName:p,receiverPhone:g,address:i==="DELIVERY"?y:"",deliveryZip:x,scheduledDate:c,slotId:d.id,slotLabel:d.label,cardMessage:S,memo:O,couponId:null,discountAmount:Math.round((ge+T)*100)/100,taxAmount:Xe,surgeAmount:Math.round(V*100)/100});await VY({orderId:Er.id,amount:Rn,method:M,usePoints:T,cardLast4:M==="CARD"?L.last4:""}).catch(()=>{}),a(0),q(Er)}catch(Er){Z(((zt=(le=Er==null?void 0:Er.response)==null?void 0:le.data)==null?void 0:zt.message)||"Order failed. Please try again in a moment.")}finally{H(!1)}};return t?Y?u.jsxs("div",{className:"max-w-lg mx-auto px-4 py-20 text-center",children:[u.jsx(vK,{className:"mx-auto text-leaf mb-4",size:56}),u.jsx("h1",{className:"font-serif text-2xl font-bold mb-2",children:"Your order has been placed"}),u.jsxs("p",{className:"text-gray-500 mb-1",children:["Order Number ",u.jsx("span",{className:"font-semibold text-bloom2",children:Y.orderNo||`#${Y.id}`})]}),u.jsxs("p",{className:"text-sm text-gray-500 mb-6",children:[c," · ",d==null?void 0:d.label," · ",Ee(Rn)]}),u.jsxs("div",{className:"flex gap-3 justify-center",children:[u.jsx("button",{onClick:()=>e("/orders"),className:"bg-bloom text-white px-6 py-2.5 rounded-full font-semibold",children:"Order History"}),u.jsx("button",{onClick:()=>e("/home"),className:"border border-blush-100 px-6 py-2.5 rounded-full text-bloom2",children:"Continue Shopping"})]})]}):u.jsxs("div",{className:"max-w-5xl mx-auto px-4 py-8",children:[u.jsx("h1",{className:"font-serif text-2xl font-bold mb-6",children:"Checkout"}),u.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[u.jsxs("div",{className:"md:col-span-2 space-y-5",children:[u.jsxs("section",{className:"bg-white rounded-2xl border border-blush-100/60 p-5",children:[u.jsx("div",{className:"text-sm font-semibold mb-3",children:"Fulfillment Method"}),u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.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:[u.jsx(Ud,{size:18})," Local Delivery"]}),u.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:[u.jsx(Bd,{size:18})," Store Pickup"]})]}),u.jsxs("div",{className:"mt-3",children:[u.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"Store"}),u.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:(J||[]).map(le=>u.jsxs("option",{value:le.id,children:[le.name," (",le.city,", ",le.state,")"]},le.id))})]})]}),u.jsxs("section",{className:"bg-white rounded-2xl border border-blush-100/60 p-5",children:[u.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold mb-3",children:[u.jsx(yK,{size:16,className:"text-bloom"})," Delivery / Pickup Date"]}),u.jsx("div",{className:"flex gap-2 overflow-x-auto pb-2",children:hW(14).map(le=>{const zt=oi.has(le),Er=c===le,nh=new Date(le);return u.jsxs("button",{disabled:zt,onClick:()=>{f(le),h(null)},className:`shrink-0 w-16 py-2 rounded-xl border text-center text-xs ${zt?"opacity-30 cursor-not-allowed border-blush-100":Er?"border-bloom bg-bloom text-white":"border-blush-100 hover:border-bloom"}`,children:[u.jsx("div",{className:"font-semibold",children:nh.toLocaleDateString("en-US",{weekday:"short"})}),u.jsx("div",{className:"text-base",children:nh.getDate()}),zt&&u.jsx("div",{className:"text-[9px]",children:"Closed"})]},le)})}),c&&G&&u.jsxs("div",{className:"mt-3",children:[G.blocked&&u.jsxs("div",{className:"flex items-center gap-1.5 text-blush-500 text-xs mb-2",children:[u.jsx(RK,{size:13})," Delivery is unavailable on this date (peak season / closed)."]}),G.surgeMultiplier>1&&u.jsxs("div",{className:"text-xs text-amber-600 mb-2",children:["⚡ Peak-season surge pricing ×",G.surgeMultiplier," applied"]}),G.sameDayAvailable&&u.jsxs("div",{className:"text-xs text-leaf mb-2",children:["Same-Day Delivery available (order by ",G.sameDayCutoff,")"]}),u.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium mb-2",children:[u.jsx(ck,{size:14,className:"text-bloom"})," Delivery Time Slot"]}),u.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[(G.slots||[]).map(le=>{const zt=le.available===!1||le.capacity!=null&&le.booked>=le.capacity;return u.jsx("button",{disabled:zt,onClick:()=>h({id:le.id,label:le.slotLabel}),className:`py-2 rounded-lg border text-xs ${zt?"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)}),!(G.slots||[]).length&&u.jsx("div",{className:"col-span-3 text-gray-400 text-xs py-2",children:"No time slots available."})]})]})]}),i==="DELIVERY"&&u.jsxs("section",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 space-y-3",children:[u.jsx("div",{className:"text-sm font-semibold",children:"Recipient Information"}),u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.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"}),u.jsx("input",{value:g,onChange:le=>b(le.target.value),placeholder:"Phone",className:"px-3 py-2 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"})]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("input",{value:y,onChange:le=>v(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"}),u.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"}),u.jsxs("button",{onClick:No,className:"px-3 rounded-xl border border-bloom text-bloom text-sm font-semibold flex items-center gap-1",children:[u.jsx(dm,{size:14})," Verify"]})]}),$&&u.jsx("div",{className:`text-xs ${$.valid?"text-leaf":"text-blush-500"}`,children:$.valid?`Verified: ${$.normalized||y} (${$.provider})`:`Address verification failed (${$.provider})`})]}),u.jsxs("section",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 space-y-3",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("div",{className:"text-sm font-semibold",children:"Gift Card Message"}),u.jsxs("span",{className:"text-xs text-bloom flex items-center gap-1",children:[u.jsx(xr,{size:12})," AI writing is on the product page"]})]}),u.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"}),u.jsx("input",{value:O,onChange:le=>E(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"})]}),u.jsxs("section",{className:"bg-white rounded-2xl border border-blush-100/60 p-5",children:[u.jsx("div",{className:"text-sm font-semibold mb-3",children:"Payment Method"}),u.jsx(tW,{method:M,onMethod:C,onCardChange:D,cards:ke.cards,wallets:ke.wallets})]})]}),u.jsxs("aside",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 h-fit sticky top-20",children:[u.jsx("div",{className:"text-sm font-semibold mb-3",children:"Order Summary"}),u.jsxs("div",{className:"space-y-1.5 text-sm",children:[u.jsx(fu,{k:"Subtotal",v:Ee(X)}),V>0&&u.jsx(fu,{k:"Surge Pricing",v:`+${Ee(V)}`,amber:!0}),u.jsx(fu,{k:"Tax",v:Ee(Xe),sub:k?`${k.provider} ${(k.rate*100).toFixed(1)}%`:""}),ge>0&&u.jsx(fu,{k:`Tier Discount (${(st==null?void 0:st.tierName)||""} ${_e}%)`,v:`-${Ee(ge)}`,green:!0}),T>0&&u.jsx(fu,{k:"Points Used",v:`-${Ee(T)}`,green:!0})]}),!!t&&u.jsxs("div",{className:"mt-4 bg-petal rounded-xl p-3",children:[u.jsxs("div",{className:"flex items-center justify-between text-xs text-bloom2 mb-1",children:[u.jsxs("span",{children:["Points Balance ",ot.toLocaleString()," pts"]}),u.jsx("button",{onClick:()=>N(dt),className:"text-bloom font-semibold",children:"Use All"})]}),u.jsx("input",{type:"range",min:0,max:dt,value:T,onChange:le=>N(Number(le.target.value)),className:"w-full accent-bloom"}),u.jsxs("div",{className:"text-xs text-gray-500 text-right",children:[T.toLocaleString()," pts used"]})]}),u.jsxs("div",{className:"border-t border-blush-100/60 mt-4 pt-3 flex justify-between font-bold text-base",children:[u.jsx("span",{children:"Order Total"}),u.jsx("span",{className:"text-bloom2",children:Ee(Rn)})]}),te&&u.jsx("div",{className:"text-blush-500 text-xs mt-3",children:te}),u.jsx("button",{onClick:ma,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 · ${Ee(Rn)}`}),u.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 fu({k:e,v:t,sub:n,amber:r,green:a}){return u.jsxs("div",{className:"flex justify-between",children:[u.jsxs("span",{className:"text-gray-500",children:[e,n&&u.jsx("span",{className:"text-[10px] text-gray-400 ml-1",children:n})]}),u.jsx("span",{className:r?"text-amber-600":a?"text-leaf":"font-medium",children:t})]})}const mW={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"},yW={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 Ur({status:e}){if(!e)return null;const t=mW[e]||"bg-slate-500/15 text-slate-400 border-slate-500/30";return u.jsx("span",{className:`inline-block px-2 py-0.5 rounded text-xs font-medium border ${t}`,children:yW[e]||e})}const vT=[["WEEKLY","Weekly"],["BIWEEKLY","Every 2 Weeks"],["MONTHLY","Monthly"]];function gW(){const e=nn(),t=Kt(),{custToken:n,storeId:r}=bn(),[a,i]=A.useState("WEEKLY"),[s,o]=A.useState(0),[l,c]=A.useState(!1),{data:f}=se({queryKey:["subs"],queryFn:HY,enabled:!!n}),{data:d}=se({queryKey:["stores"],queryFn:()=>So(!0)}),{data:h}=se({queryKey:["sub-prods"],queryFn:()=>Ql({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),v=p.find(w=>w.id===s)||p[0];v&&(await qY({storeId:y,productId:v.id,sizeCode:"ORIGINAL",frequency:a,receiverName:"",receiverPhone:"",address:"",deliveryZip:"",price:v.price}).catch(()=>{}),c(!1),e.invalidateQueries({queryKey:["subs"]}))},g=async(y,v)=>{await mT(y,v==="ACTIVE"?"PAUSED":"ACTIVE").catch(()=>{}),e.invalidateQueries({queryKey:["subs"]})},b=async y=>{await mT(y,"CANCELLED").catch(()=>{}),e.invalidateQueries({queryKey:["subs"]})};return u.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx(Qy,{className:"text-bloom",size:22}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"Flower Subscription"})]}),u.jsx("p",{className:"text-sm text-gray-500 mb-6",children:"Get fresh flowers delivered weekly, every two weeks, or monthly."}),!n&&u.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. ",u.jsx(Le,{to:"/account",className:"text-bloom font-semibold",children:"Log In →"})]}),u.jsx("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 mb-6",children:l?u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-sm font-medium mb-2",children:"Delivery Frequency"}),u.jsx("div",{className:"flex gap-2",children:vT.map(([y,v])=>u.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:v},y))})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm font-medium mb-2",children:"Choose a Product"}),u.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:[u.jsx("option",{value:0,children:"Best Seller (Recommended)"}),p.map(y=>u.jsxs("option",{value:y.id,children:[y.name," — ",Ee(y.price)]},y.id))]})]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("button",{onClick:m,className:"bg-bloom text-white px-6 py-2.5 rounded-full font-semibold",children:"Start Subscription"}),u.jsx("button",{onClick:()=>c(!1),className:"border border-blush-100 px-6 py-2.5 rounded-full text-gray-600",children:"Cancel"})]})]}):u.jsx("button",{onClick:()=>n?c(!0):t("/account"),className:"bg-bloom text-white px-6 py-2.5 rounded-full font-semibold",children:"Start a New Subscription"})}),u.jsx("h2",{className:"font-serif text-lg font-bold mb-3",children:"My Subscriptions"}),u.jsxs("div",{className:"space-y-3",children:[(f||[]).map(y=>{var v;return u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-4 flex items-center gap-4",children:[u.jsx("div",{className:"w-14 h-14 bg-petal rounded-xl flex items-center justify-center",children:u.jsx(ft,{className:"text-bloom/40",size:26})}),u.jsxs("div",{className:"flex-1",children:[u.jsxs("div",{className:"font-medium text-sm",children:[y.productName||`상품 #${y.productId}`," · ",((v=vT.find(x=>x[0]===y.frequency))==null?void 0:v[1])||y.frequency]}),u.jsxs("div",{className:"text-xs text-gray-500",children:["다음 배송 ",y.nextDeliveryDate||"-"," · ",Ee(y.price)]})]}),u.jsx(Ur,{status:y.status}),y.status!=="CANCELLED"&&u.jsxs(u.Fragment,{children:[u.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"?"일시정지":"재개"}),u.jsx("button",{onClick:()=>b(y.id),className:"text-xs text-blush-400 border border-blush-100 rounded-full px-3 py-1.5",children:"해지"})]})]},y.id)}),!(f||[]).length&&u.jsx("div",{className:"text-gray-400 text-sm py-8 text-center",children:"아직 구독이 없습니다."})]})]})}function vW(){const{storeName:e}=bn(),{data:t}=se({queryKey:["daily-rec"],queryFn:()=>t5("daily","",8)}),{data:n}=se({queryKey:["daily-fresh"],queryFn:()=>Ql({sort:"rating",size:8})}),r=(t&&t.length?t:n==null?void 0:n.items)||[];return u.jsxs("div",{children:[u.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-br from-sage-700 to-sage-800 text-white",children:[u.jsx(Kd,{count:12}),u.jsxs("div",{className:"relative z-10 max-w-6xl mx-auto px-4 py-16",children:[u.jsxs("div",{className:"flex items-center gap-2 text-sage-200 text-[12px] tracking-[0.2em] uppercase mb-3",children:[u.jsx(ej,{size:15})," Fresh today, gone tomorrow"]}),u.jsx("h1",{className:"font-serif text-5xl font-bold mb-4",children:"Today's Designer Bouquet"}),u.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 ",u.jsx("b",{className:"font-medium",children:"GUARDiA AI"}),". Limited daily stock · ",e||"your nearest store"," same-day delivery."]})]})]}),u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-12",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[u.jsx(xr,{className:"text-blush-500",size:18}),u.jsx("h2",{className:"font-serif text-2xl font-bold text-blush-900",children:"Today's Picks"}),u.jsx("span",{className:"text-xs text-sage-600",children:"AI-curated"})]}),u.jsx(pm,{className:"grid grid-cols-2 md:grid-cols-4 gap-5",children:r.map(a=>u.jsx(mm,{children:u.jsx(Zl,{p:a})},a.id))}),!r.length&&u.jsxs("div",{className:"text-center text-blush-300 py-20",children:[u.jsx(ft,{className:"mx-auto text-blush-200 mb-3",size:40}),"Today's bouquet is being designed. ",u.jsx(Le,{to:"/category",className:"text-blush-500",children:"Browse all flowers →"})]})]})]})}const bW={DISCOUNT:_K,POINT_BONUS:Mf,GIFT:mk,TIER_ONLY:Mf,SEASON:Df};function xW(){const{custToken:e}=bn(),t=Kt(),[n,r]=A.useState(""),{data:a}=se({queryKey:["loyalty-me"],queryFn:pj,enabled:!!e}),i=(a==null?void 0:a.tier)||"",{data:s}=se({queryKey:["ongoing-events",i],queryFn:()=>TX(i)}),o=async l=>{var c,f;if(!e){t("/account");return}r("");try{const d=await NX(l);r(d!=null&&d.coupon?`참여 완료! 쿠폰 발급: ${d.coupon.name} (${d.coupon.code})`:"이벤트에 참여했습니다.")}catch(d){r(((f=(c=d==null?void 0:d.response)==null?void 0:c.data)==null?void 0:f.message)||"참여 자격이 없거나 이미 참여했습니다.")}};return u.jsxs("div",{className:"max-w-5xl mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx(Df,{className:"text-bloom",size:22}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"이벤트 / 캠페인"})]}),i&&u.jsxs("p",{className:"text-sm text-gray-500 mb-2",children:["현재 등급 ",u.jsx("span",{className:"font-semibold text-bloom2",children:(a==null?void 0:a.tierName)||i})," · 등급 전용 이벤트가 함께 표시됩니다."]}),n&&u.jsx("div",{className:"bg-petal text-bloom2 text-sm rounded-xl px-4 py-2 mb-4",children:n}),u.jsxs("div",{className:"grid md:grid-cols-2 gap-4 mt-4",children:[(s||[]).map(l=>{const c=bW[l.eventType]||Df,f=(l.banners||[])[0];return u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 overflow-hidden",children:[u.jsx("div",{className:"bg-gradient-to-r from-bloom2 to-bloom text-white p-5",children:f?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"font-serif text-lg font-bold",children:f.headline||l.title}),u.jsx("p",{className:"text-white/85 text-sm mt-1",children:f.subtext||l.description})]}):u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"font-serif text-lg font-bold",children:l.title}),u.jsx("p",{className:"text-white/85 text-sm mt-1",children:l.description})]})}),u.jsxs("div",{className:"p-4 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600",children:[u.jsx(c,{size:16,className:"text-bloom"}),u.jsx("span",{children:l.eventType}),l.bonusPointRate>0&&u.jsxs("span",{className:"text-xs text-leaf",children:["+",l.bonusPointRate,"% 포인트"]}),l.targetTiers&&u.jsxs("span",{className:"text-xs bg-petal text-bloom2 px-2 py-0.5 rounded-full",children:[l.targetTiers," 전용"]})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Ur,{status:l.status}),u.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:"참여"})]})]}),u.jsxs("div",{className:"px-4 pb-3 text-[11px] text-gray-400",children:[l.startDate," ~ ",l.endDate]})]},l.id)}),!(s||[]).length&&u.jsx("div",{className:"col-span-2 text-center text-gray-400 py-16",children:"진행 중인 이벤트가 없습니다."})]})]})}function SW(){const{t:e}=ni(),t=nn(),n=Kt(),{custToken:r}=bn(),{data:a}=se({queryKey:["wishlist"],queryFn:nX,enabled:!!r});if(!r)return n("/account"),null;const i=a||[],s=async o=>{await aX(o).catch(()=>{}),t.invalidateQueries({queryKey:["wishlist"]})};return u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[u.jsx(Rf,{className:"text-bloom",size:22}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:e("wishlist.title")})]}),i.length?u.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:i.map(o=>u.jsxs("div",{className:"relative",children:[u.jsx(Zl,{p:{...o,id:o.productId||o.id}}),u.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:u.jsx(Rf,{size:16,fill:"currentColor"})})]},o.id||o.productId))}):u.jsxs("div",{className:"text-center text-gray-400 py-16",children:[e("wishlist.empty")," ",u.jsx(Le,{to:"/category",className:"text-bloom",children:e("wishlist.startShopping")})]})]})}const bT={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 wW(){const{custToken:e,setCustToken:t}=bn(),n=Kt(),{data:r}=se({queryKey:["member"],queryFn:JY,enabled:!!e}),{data:a}=se({queryKey:["loyalty-me"],queryFn:pj,enabled:!!e}),{data:i}=se({queryKey:["point-history"],queryFn:()=>AX(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 u.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center justify-between mb-6",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(wk,{className:"text-bloom",size:22}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"My Account"})]}),u.jsxs("button",{onClick:l,className:"flex items-center gap-1.5 text-sm text-gray-500 hover:text-bloom",children:[u.jsx(gk,{size:16})," Log Out"]})]}),u.jsxs("div",{className:`rounded-2xl bg-gradient-to-r ${bT[s]||bT.BASIC} text-white p-6 mb-5`,children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-xs uppercase tracking-widest text-white/70",children:"Membership Tier"}),u.jsxs("div",{className:"font-serif text-2xl font-bold flex items-center gap-2",children:[u.jsx(Mf,{size:24})," ",(a==null?void 0:a.tierName)||s]}),u.jsxs("div",{className:"text-sm text-white/85 mt-1",children:["Spent in last 12 months ",Ee(a==null?void 0:a.spend12m)," · ",(a==null?void 0:a.orderCount12m)||0," orders"]})]}),u.jsxs("div",{className:"text-right",children:[u.jsx("div",{className:"text-xs text-white/70",children:"Points Balance"}),u.jsxs("div",{className:"text-3xl font-bold",children:[((a==null?void 0:a.pointBalance)||0).toLocaleString(),u.jsx("span",{className:"text-base",children:"P"})]})]})]}),o&&!o.isTop&&u.jsxs("div",{className:"mt-4 text-xs text-white/85 bg-white/15 rounded-lg px-3 py-2",children:["Spend ",Ee(o.spendNeeded)," more or place ",o.ordersNeeded," more orders to reach ",u.jsx("b",{children:o.nextTierName}),"."]})]}),(a==null?void 0:a.benefit)&&u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 mb-5",children:[u.jsxs("div",{className:"text-sm font-semibold mb-3 flex items-center gap-2",children:[u.jsx(mk,{size:16,className:"text-bloom"})," My Tier Benefits"]}),u.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 text-sm",children:[u.jsx(_h,{label:"Discount",value:`${a.benefit.discountRate}%`}),u.jsx(_h,{label:"Earn Rate",value:`${a.benefit.pointEarnRate}%`}),u.jsx(_h,{label:"Free Shipping",value:a.benefit.freeShipThreshold===0?"Always":a.benefit.freeShipThreshold?Ee(a.benefit.freeShipThreshold)+"+":"None"}),u.jsx(_h,{label:"Priority Slot",value:a.benefit.prioritySlot?"Included":"–"})]})]}),u.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-6",children:[u.jsx(cb,{to:"/orders",icon:vk,label:"Order History"}),u.jsx(cb,{to:"/wishlist",icon:Rf,label:"Wishlist"}),u.jsx(cb,{to:"/subscription",icon:Qy,label:"Manage Subscription"})]}),u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-5",children:[u.jsxs("div",{className:"text-sm font-semibold mb-3 flex items-center gap-2",children:[u.jsx(uk,{size:16,className:"text-bloom"})," Points Earned / Used History"]}),u.jsxs("div",{className:"divide-y divide-blush-100/60",children:[(i||[]).map(c=>u.jsxs("div",{className:"flex items-center justify-between py-2 text-sm",children:[u.jsxs("div",{children:[u.jsx("span",{className:"text-gray-700",children:c.reason||c.entryType}),c.orderNo&&u.jsx("span",{className:"text-xs text-gray-400 ml-2",children:c.orderNo}),u.jsx("div",{className:"text-[11px] text-gray-400",children:(c.createdAt||"").slice(0,10)})]}),u.jsxs("span",{className:c.points>=0?"text-leaf font-semibold":"text-blush-500 font-semibold",children:[c.points>=0?"+":"",c.points,"P"]})]},c.id)),!(i||[]).length&&u.jsx("div",{className:"text-gray-400 text-sm py-6 text-center",children:"No points history yet."})]})]}),(r==null?void 0:r.username)&&u.jsx("div",{className:"text-center text-xs text-gray-400 mt-6",children:r.displayName||r.username})]})}function _h({label:e,value:t}){return u.jsxs("div",{className:"bg-petal rounded-xl p-3 text-center",children:[u.jsx("div",{className:"text-[11px] text-gray-500",children:e}),u.jsx("div",{className:"font-bold text-bloom2",children:t})]})}function cb({to:e,icon:t,label:n}){return u.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:[u.jsx(t,{size:22,className:"text-bloom"}),u.jsx("span",{className:"text-sm",children:n})]})}function jW(){const e=nn(),t=Kt(),{custToken:n}=bn(),{data:r}=se({queryKey:["my-orders"],queryFn:()=>BY(""),enabled:!!n});if(!n)return t("/account"),null;const a=r||[],i=async(s,o)=>{await Qk(s,o).catch(()=>{}),e.invalidateQueries({queryKey:["my-orders"]})};return u.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[u.jsx(vk,{className:"text-bloom",size:22}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"주문 내역"})]}),a.length?u.jsx("div",{className:"space-y-3",children:a.map(s=>u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-5",children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsx("div",{className:"font-semibold text-sm",children:s.orderNo||`주문 #${s.id}`}),u.jsx(Ur,{status:s.status})]}),u.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]}),u.jsx("div",{className:"space-y-1.5",children:(s.items||[]).map(o=>u.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[u.jsx("div",{className:"w-9 h-9 bg-petal rounded-lg flex items-center justify-center",children:u.jsx(ft,{className:"text-bloom/40",size:16})}),u.jsxs("span",{className:"flex-1",children:[o.productName||`상품 #${o.productId}`," ",o.sizeCode&&`· ${o.sizeCode}`," ×",o.quantity]}),u.jsx("span",{className:"text-gray-600",children:Ee(o.price||o.unitPrice)})]},o.id))}),u.jsxs("div",{className:"flex items-center justify-between mt-3 pt-3 border-t border-blush-100/60",children:[u.jsx("span",{className:"font-bold text-bloom2",children:Ee(s.payAmount??s.totalAmount)}),u.jsxs("div",{className:"flex gap-2",children:[s.status==="DELIVERED"&&u.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)&&u.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))}):u.jsxs("div",{className:"text-center text-gray-400 py-16",children:["주문 내역이 없습니다. ",u.jsx(Le,{to:"/category",className:"text-bloom",children:"쇼핑하기 →"})]})]})}function AW(){const{productId:e}=o$(),t=Number(e),n=Kt(),{custToken:r}=bn(),[a,i]=A.useState(5),[s,o]=A.useState(""),[l,c]=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 ZY({productId:t,rating:a,title:s,content:l,imageUrl:f}),p("리뷰가 등록되었습니다."),setTimeout(()=>n(`/product/${t}`),800)}catch{p("등록에 실패했습니다. (구매 이력이 필요할 수 있습니다)")}};return u.jsxs("div",{className:"max-w-lg mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[u.jsx(OK,{className:"text-bloom",size:22}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"리뷰 작성"})]}),u.jsxs("form",{onSubmit:m,className:"bg-white rounded-2xl border border-blush-100/60 p-5 space-y-4",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-sm font-medium mb-2",children:"별점"}),u.jsx("div",{className:"flex gap-1",children:[1,2,3,4,5].map(g=>u.jsx("button",{type:"button",onClick:()=>i(g),className:"text-amber-400",children:u.jsx(Wa,{size:28,fill:g<=a?"currentColor":"none"})},g))})]}),u.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"}),u.jsx("textarea",{value:l,onChange:g=>c(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"}),u.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&&u.jsx("div",{className:"text-sm text-leaf",children:h}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("button",{className:"flex-1 bg-bloom text-white font-semibold py-3 rounded-full hover:bg-bloom2",children:"등록"}),u.jsx("button",{type:"button",onClick:()=>n(-1),className:"px-6 border border-blush-100 rounded-full text-gray-600",children:"취소"})]})]})]})}function OW(){const[e,t]=A.useState("login"),[n,r]=A.useState(""),[a,i]=A.useState(""),[s,o]=A.useState(""),[l,c]=A.useState(""),[f,d]=A.useState(!1),{setCustToken:h}=bn(),p=Kt(),m=async g=>{var b,y;g.preventDefault(),c(""),d(!0);try{const x=(y=(b=(e==="login"?await Yk(n,a):await EY(n,a,s||n)).data)==null?void 0:b.data)==null?void 0:y.token;if(!x)throw new Error("no token");h(x),p("/home")}catch{c(e==="login"?"Login failed — check your username and password.":"Sign-up failed — that username may already be taken.")}finally{d(!1)}};return u.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:[u.jsx(Kd,{count:12}),u.jsxs(Nt.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:[u.jsxs(Le,{to:"/home",className:"flex flex-col items-center gap-1 mb-6",children:[u.jsx(ft,{className:"text-blush-500",size:32}),u.jsx("span",{className:"font-serif text-xl font-bold text-blush-900",children:"Montvale Florist"})]}),u.jsx("div",{className:"flex gap-2 mb-6 bg-blush-50 rounded-full p-1 text-sm",children:["login","register"].map(g=>u.jsx("button",{type:"button",onClick:()=>{t(g),c("")},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))}),u.jsx("label",{className:"block text-xs text-blush-700 mb-1",children:"Username"}),u.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"&&u.jsxs(u.Fragment,{children:[u.jsx("label",{className:"block text-xs text-blush-700 mb-1",children:"Name"}),u.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"})]}),u.jsx("label",{className:"block text-xs text-blush-700 mb-1",children:"Password"}),u.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&&u.jsx("p",{className:"text-blush-500 text-xs mb-3",children:l}),u.jsx(Ua,{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"}),u.jsxs("p",{className:"text-center text-[11px] text-[#a08a90] mt-4",children:["Store & owner staff → ",u.jsx("a",{href:"/admin/login",className:"text-blush-600",children:"Admin Console"})]}),u.jsx("p",{className:"text-center text-[11px] text-sage-600 mt-2",children:ke.tagline})]})]})}const EW=["DELIVERY","PRODUCT","PAYMENT","REFUND","OTHER"];function TW(){const e=nn(),t=Kt(),{custToken:n}=bn(),[r,a]=A.useState("DELIVERY"),[i,s]=A.useState(""),[o,l]=A.useState(""),[c,f]=A.useState(""),[d,h]=A.useState(""),[p,m]=A.useState("Birthday"),[g,b]=A.useState("Warm"),[y,v]=A.useState(""),[x,w]=A.useState([]),{data:S}=se({queryKey:["cs"],queryFn:eX,enabled:!!n}),j=async E=>{if(E.preventDefault(),h(""),!n){t("/account");return}try{const T=await tX({orderNo:i,category:r,subject:o,content:c});h(T!=null&&T.aiReply?`AI auto-reply: ${T.aiReply}`:"Your request has been submitted."),l(""),f(""),e.invalidateQueries({queryKey:["cs"]})}catch{h("Failed to submit your request.")}},O=async()=>{const E=await uX(p,g,y).catch(()=>null);w((E==null?void 0:E.messages)||[])};return u.jsxs("div",{className:"max-w-3xl mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[u.jsx(jK,{className:"text-bloom",size:22}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"Customer Support (1:1)"})]}),u.jsxs("div",{className:"bg-petal rounded-2xl p-5 mb-6",children:[u.jsxs("div",{className:"flex items-center gap-2 text-bloom2 font-medium text-sm mb-3",children:[u.jsx(xr,{size:16})," AI Card Message Helper"]}),u.jsxs("div",{className:"grid grid-cols-3 gap-2 mb-3",children:[u.jsx("input",{value:p,onChange:E=>m(E.target.value),placeholder:"Occasion (e.g. Birthday)",className:"px-3 py-2 rounded-lg border border-blush-100 text-sm bg-white outline-none"}),u.jsx("input",{value:g,onChange:E=>b(E.target.value),placeholder:"Tone",className:"px-3 py-2 rounded-lg border border-blush-100 text-sm bg-white outline-none"}),u.jsx("input",{value:y,onChange:E=>v(E.target.value),placeholder:"Recipient",className:"px-3 py-2 rounded-lg border border-blush-100 text-sm bg-white outline-none"})]}),u.jsx("button",{onClick:O,className:"bg-bloom text-white text-sm font-semibold px-4 py-2 rounded-full",children:"Suggest Messages"}),!!x.length&&u.jsx("ul",{className:"mt-3 space-y-2",children:x.map((E,T)=>u.jsx("li",{className:"bg-white rounded-lg px-3 py-2 text-sm text-gray-700",children:E},T))})]}),u.jsxs("form",{onSubmit:j,className:"bg-white rounded-2xl border border-blush-100/60 p-5 space-y-3 mb-8",children:[u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsx("select",{value:r,onChange:E=>a(E.target.value),className:"px-3 py-2 rounded-xl border border-blush-100 text-sm bg-white",children:EW.map(E=>u.jsx("option",{value:E,children:E},E))}),u.jsx("input",{value:i,onChange:E=>s(E.target.value),placeholder:"Order number (optional)",className:"px-3 py-2 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"})]}),u.jsx("input",{value:o,onChange:E=>l(E.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"}),u.jsx("textarea",{value:c,onChange:E=>f(E.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&&u.jsx("div",{className:"text-sm text-leaf bg-leaf/10 rounded-lg px-3 py-2",children:d}),u.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:[u.jsx(NK,{size:16})," Submit Request"]}),!n&&u.jsxs("p",{className:"text-xs text-gray-400",children:["Please log in to submit a request. ",u.jsx(Le,{to:"/account",className:"text-bloom",children:"Log In"})]})]}),u.jsx("h2",{className:"font-serif text-lg font-bold mb-3",children:"My Requests"}),u.jsxs("div",{className:"space-y-2",children:[(S||[]).map(E=>u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"font-medium text-sm",children:E.subject}),u.jsx(Ur,{status:E.status})]}),u.jsx("p",{className:"text-sm text-gray-600 mt-1",children:E.content}),E.aiReply&&u.jsxs("div",{className:"mt-2 text-xs text-bloom2 bg-petal rounded-lg px-3 py-2",children:[u.jsx("b",{children:"AI Reply:"})," ",E.aiReply]}),E.itsmSrId&&u.jsxs("div",{className:"text-[11px] text-gray-400 mt-1",children:["ITSM SR: ",E.itsmSrId]})]},E.id)),!(S||[]).length&&u.jsx("div",{className:"text-gray-400 text-sm py-6 text-center",children:"No requests submitted yet."})]})]})}const o5="https://itsm.zioinfo.co.kr",ub=e=>e==null?void 0:e.replace(/https?:\/\/zioinfo\.co\.kr:8443/g,o5);function NW(){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(`${o5}/api/app/public-latest`).then(f=>f.json()).then(f=>t({...f,qr_url:ub(f.qr_url),landing_url:ub(f.landing_url),download_url:ub(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 c=async()=>{if(e!=null&&e.landing_url)try{await navigator.clipboard.writeText(e.landing_url),o(!0),setTimeout(()=>o(!1),2e3)}catch{}};return u.jsxs("div",{className:"max-w-3xl mx-auto px-4 py-10",children:[u.jsxs("div",{className:"text-center mb-8",children:[u.jsxs("div",{className:"flex items-center gap-2 justify-center mb-2",children:[u.jsx(bl,{className:"text-bloom",size:26}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-bloom2",children:"Order with the App"})]}),u.jsxs("p",{className:"text-sm text-gray-500",children:["Scan the QR code to open the ",u.jsx("span",{className:"text-bloom font-semibold",children:"GUARDiA Mall"})," customer app install page.",u.jsx("br",{}),"Enjoy same-day delivery alerts, easy reordering, and subscription management right in the app."]})]}),n&&u.jsx("div",{className:"text-center text-gray-400 py-10",children:"Loading…"}),a&&u.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&&u.jsxs("div",{className:"bg-white border border-blush-100/60 rounded-2xl p-10 text-center text-gray-400",children:[u.jsx(ft,{size:40,className:"mx-auto mb-3 text-bloom/30"}),"No app version has been published yet.",u.jsx("br",{}),u.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)&&u.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:[u.jsx("div",{className:"bg-petal rounded-2xl p-3 flex items-center justify-center",children:e.qr_url?u.jsx("img",{src:e.qr_url,alt:"App install QR code",className:"w-44 h-44"}):u.jsx(bl,{size:64,className:"text-bloom/40"})}),u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[u.jsx("span",{className:"text-lg font-bold",children:e.app_name||"GUARDiA Mall"}),u.jsxs("span",{className:"px-2 py-0.5 rounded-md bg-bloom text-white text-xs font-semibold",children:["v",e.version]})]}),u.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&&u.jsxs("div",{className:"mb-4",children:[u.jsx("div",{className:"text-[11px] font-semibold text-gray-400 uppercase tracking-wider mb-1",children:"What's New"}),u.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})]}),u.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.landing_url&&u.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:[u.jsx(hk,{size:15})," Install Page"]}),e.download_url&&u.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:[u.jsx(dk,{size:15})," Download APK"]}),u.jsxs("button",{onClick:c,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?u.jsx(lk,{size:15,className:"text-leaf"}):u.jsx(fk,{size:15}),s?"Copied":"Copy Link"]}),u.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:u.jsx(nj,{size:15})})]})]})]})]})}function CW(){const{t:e}=ni(),[t,n]=A.useState("admin"),[r,a]=A.useState(""),[i,s]=A.useState(""),o=Kt();A.useEffect(()=>(document.documentElement.classList.add("admin-shell"),()=>document.documentElement.classList.remove("admin-shell")),[]);const l=async c=>{var f,d;c.preventDefault(),s("");try{const p=(d=(f=(await Yk(t,r)).data)==null?void 0:f.data)==null?void 0:d.token;if(!p)throw new Error("no token");localStorage.setItem("mall_admin_token",p);const m=await Xk().catch(()=>null);if(m!=null&&m.role&&localStorage.setItem("mall_role",m.role),m!=null&&m.username&&localStorage.setItem("mall_admin_user",m.username),(m==null?void 0:m.role)==="USER"){s(e("admin.login.errNoPriv")),localStorage.removeItem("mall_admin_token");return}o("/admin/dashboard")}catch{s(e("admin.login.errFailed"))}};return u.jsxs("div",{className:"admin-shell min-h-screen flex items-center justify-center bg-ink text-[#e6edf6]",children:[u.jsx("div",{className:"absolute top-5 right-5",children:u.jsx(ag,{variant:"admin"})}),u.jsxs("form",{onSubmit:l,className:"w-[360px] bg-panel border border-edge rounded-2xl p-8",children:[u.jsxs("div",{className:"flex items-center gap-2 justify-center mb-6",children:[u.jsx(ft,{className:"text-brand",size:28}),u.jsx("span",{className:"text-xl font-bold",children:e("admin.login.title")})]}),u.jsx("p",{className:"text-center text-sm text-slate-400 mb-6",children:e("admin.login.subtitle")}),u.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:e("admin.login.username")}),u.jsx("input",{value:t,onChange:c=>n(c.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"}),u.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:e("admin.login.password")}),u.jsx("input",{type:"password",value:r,onChange:c=>a(c.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&&u.jsx("p",{className:"text-rose-400 text-xs mb-3",children:i}),u.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")}),u.jsxs("p",{className:"text-center text-[11px] text-slate-500 mt-4",children:[e("admin.login.storefrontHere")," ",u.jsx("a",{href:"/",className:"text-brand",children:e("admin.login.here")})]})]})]})}const _W=[{to:"/admin/dashboard",key:"dashboard",icon:AK,roles:["ADMIN","MANAGER"]},{to:"/admin/stores",key:"stores",icon:Bd,roles:["ADMIN","MANAGER"]},{to:"/admin/products",key:"products",icon:ft,roles:["ADMIN","MANAGER"]},{to:"/admin/inventory",key:"inventory",icon:sk,roles:["ADMIN","MANAGER"]},{to:"/admin/orders",key:"orders",icon:ij,roles:["ADMIN","MANAGER"]},{to:"/admin/transfers",key:"transfers",icon:ik,roles:["ADMIN","MANAGER"]},{to:"/admin/members",key:"members",icon:jk,roles:["ADMIN","MANAGER"]},{to:"/admin/loyalty",key:"loyalty",icon:Mf,roles:["ADMIN","MANAGER"]},{to:"/admin/events",key:"events",icon:Df,roles:["ADMIN","MANAGER"]},{to:"/admin/subscriptions",key:"subscriptions",icon:Qy,roles:["ADMIN","MANAGER"]},{to:"/admin/schedule",key:"schedule",icon:ok,roles:["ADMIN","MANAGER"]},{to:"/admin/analytics",key:"analytics",icon:Jw,roles:["ADMIN","MANAGER"]}],PW=[{to:"/admin/users",key:"users",icon:Sk,roles:["ADMIN"]},{to:"/admin/audit",key:"audit",icon:bk,roles:["ADMIN","MANAGER"]},{to:"/admin/settings",key:"settings",icon:xk,roles:["ADMIN"]},{to:"/admin/app",key:"appInstall",icon:bl,roles:["ADMIN","MANAGER"]}],xT=({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 MW(){const{t:e}=ni(),t=localStorage.getItem("mall_admin_token"),[n,r]=A.useState(()=>localStorage.getItem("mall_role")||""),[a,i]=A.useState(()=>localStorage.getItem("mall_admin_user")||""),s=Kt();if(A.useEffect(()=>(document.documentElement.classList.add("admin-shell"),()=>document.documentElement.classList.remove("admin-shell")),[]),A.useEffect(()=>{t&&Xk().then(f=>{f!=null&&f.role&&(localStorage.setItem("mall_role",f.role),r(f.role)),f!=null&&f.username&&(localStorage.setItem("mall_admin_user",f.username),i(f.username))}).catch(()=>{})},[t]),!t)return u.jsx(em,{to:"/admin/login",replace:!0});if(n&&n==="USER")return u.jsx(em,{to:"/admin/login",replace:!0});const o=_W.filter(f=>!n||f.roles.includes(n)),l=PW.filter(f=>f.roles.includes(n)),c=()=>{localStorage.removeItem("mall_admin_token"),localStorage.removeItem("mall_role"),localStorage.removeItem("mall_admin_user"),s("/admin/login")};return u.jsxs("div",{className:"admin-shell flex h-screen bg-ink text-[#e6edf6]",children:[u.jsxs("aside",{className:"w-60 bg-panel border-r border-edge flex flex-col",children:[u.jsxs("div",{className:"h-16 flex items-center gap-2 px-5 border-b border-edge",children:[u.jsx(ft,{className:"text-brand",size:22}),u.jsxs("div",{children:[u.jsx("div",{className:"font-bold text-base leading-tight",children:"GUARDiA Mall"}),u.jsx("div",{className:"text-[11px] text-slate-400",children:e("admin.console")})]})]}),u.jsxs("nav",{className:"flex-1 py-2 overflow-auto",children:[o.map(({to:f,key:d,icon:h})=>u.jsxs(tx,{to:f,className:xT,children:[u.jsx(h,{size:18}),e(`admin.nav.${d}`)]},f)),l.length>0&&u.jsxs(u.Fragment,{children:[u.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:f,key:d,icon:h})=>u.jsxs(tx,{to:f,className:xT,children:[u.jsx(h,{size:18}),e(`admin.nav.${d}`)]},f))]})]}),u.jsx("div",{className:"p-4 text-[11px] text-slate-500 border-t border-edge",children:e("admin.onPremiseTag")})]}),u.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[u.jsxs("header",{className:"h-16 bg-panel border-b border-edge flex items-center justify-between px-6",children:[u.jsx("div",{className:"text-sm text-slate-400 truncate",children:e("admin.header")}),u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx(ag,{variant:"admin"}),u.jsxs("span",{className:"flex items-center gap-1.5 text-sm text-slate-300",children:[u.jsx(bK,{size:18})," ",a||"admin"," ",u.jsx("span",{className:"text-[10px] text-brand",children:n})]}),u.jsxs("button",{onClick:c,className:"flex items-center gap-1.5 text-sm text-slate-400 hover:text-brand",children:[u.jsx(gk,{size:16})," ",e("admin.signOut")]})]})]}),u.jsx("main",{className:"flex-1 overflow-auto p-6",children:u.jsx(f$,{})})]})]})}function l5(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=l5(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ve(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=l5(e))&&(r&&(r+=" "),r+=t);return r}var RW=Array.isArray,Mn=RW,DW=typeof ah=="object"&&ah&&ah.Object===Object&&ah,c5=DW,$W=c5,kW=typeof self=="object"&&self&&self.Object===Object&&self,LW=$W||kW||Function("return this")(),da=LW,zW=da,IW=zW.Symbol,Gd=IW,ST=Gd,u5=Object.prototype,BW=u5.hasOwnProperty,UW=u5.toString,du=ST?ST.toStringTag:void 0;function FW(e){var t=BW.call(e,du),n=e[du];try{e[du]=void 0;var r=!0}catch{}var a=UW.call(e);return r&&(t?e[du]=n:delete e[du]),a}var VW=FW,HW=Object.prototype,qW=HW.toString;function KW(e){return qW.call(e)}var GW=KW,wT=Gd,YW=VW,XW=GW,WW="[object Null]",QW="[object Undefined]",jT=wT?wT.toStringTag:void 0;function ZW(e){return e==null?e===void 0?QW:WW:jT&&jT in Object(e)?YW(e):XW(e)}var ri=ZW;function JW(e){return e!=null&&typeof e=="object"}var ai=JW,eQ=ri,tQ=ai,nQ="[object Symbol]";function rQ(e){return typeof e=="symbol"||tQ(e)&&eQ(e)==nQ}var Bc=rQ,aQ=Mn,iQ=Bc,sQ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oQ=/^\w*$/;function lQ(e,t){if(aQ(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||iQ(e)?!0:oQ.test(e)||!sQ.test(e)||t!=null&&e in Object(t)}var mj=lQ;function cQ(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var rs=cQ;const Uc=Ie(rs);var uQ=ri,fQ=rs,dQ="[object AsyncFunction]",hQ="[object Function]",pQ="[object GeneratorFunction]",mQ="[object Proxy]";function yQ(e){if(!fQ(e))return!1;var t=uQ(e);return t==hQ||t==pQ||t==dQ||t==mQ}var yj=yQ;const de=Ie(yj);var gQ=da,vQ=gQ["__core-js_shared__"],bQ=vQ,fb=bQ,AT=function(){var e=/[^.]+$/.exec(fb&&fb.keys&&fb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function xQ(e){return!!AT&&AT in e}var SQ=xQ,wQ=Function.prototype,jQ=wQ.toString;function AQ(e){if(e!=null){try{return jQ.call(e)}catch{}try{return e+""}catch{}}return""}var f5=AQ,OQ=yj,EQ=SQ,TQ=rs,NQ=f5,CQ=/[\\^$.*+?()[\]{}|]/g,_Q=/^\[object .+?Constructor\]$/,PQ=Function.prototype,MQ=Object.prototype,RQ=PQ.toString,DQ=MQ.hasOwnProperty,$Q=RegExp("^"+RQ.call(DQ).replace(CQ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kQ(e){if(!TQ(e)||EQ(e))return!1;var t=OQ(e)?$Q:_Q;return t.test(NQ(e))}var LQ=kQ;function zQ(e,t){return e==null?void 0:e[t]}var IQ=zQ,BQ=LQ,UQ=IQ;function FQ(e,t){var n=UQ(e,t);return BQ(n)?n:void 0}var wo=FQ,VQ=wo,HQ=VQ(Object,"create"),ig=HQ,OT=ig;function qQ(){this.__data__=OT?OT(null):{},this.size=0}var KQ=qQ;function GQ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var YQ=GQ,XQ=ig,WQ="__lodash_hash_undefined__",QQ=Object.prototype,ZQ=QQ.hasOwnProperty;function JQ(e){var t=this.__data__;if(XQ){var n=t[e];return n===WQ?void 0:n}return ZQ.call(t,e)?t[e]:void 0}var eZ=JQ,tZ=ig,nZ=Object.prototype,rZ=nZ.hasOwnProperty;function aZ(e){var t=this.__data__;return tZ?t[e]!==void 0:rZ.call(t,e)}var iZ=aZ,sZ=ig,oZ="__lodash_hash_undefined__";function lZ(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=sZ&&t===void 0?oZ:t,this}var cZ=lZ,uZ=KQ,fZ=YQ,dZ=eZ,hZ=iZ,pZ=cZ;function Fc(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])}}Fc.prototype.clear=uZ;Fc.prototype.delete=fZ;Fc.prototype.get=dZ;Fc.prototype.has=hZ;Fc.prototype.set=pZ;var mZ=Fc;function yZ(){this.__data__=[],this.size=0}var gZ=yZ;function vZ(e,t){return e===t||e!==e&&t!==t}var gj=vZ,bZ=gj;function xZ(e,t){for(var n=e.length;n--;)if(bZ(e[n][0],t))return n;return-1}var sg=xZ,SZ=sg,wZ=Array.prototype,jZ=wZ.splice;function AZ(e){var t=this.__data__,n=SZ(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():jZ.call(t,n,1),--this.size,!0}var OZ=AZ,EZ=sg;function TZ(e){var t=this.__data__,n=EZ(t,e);return n<0?void 0:t[n][1]}var NZ=TZ,CZ=sg;function _Z(e){return CZ(this.__data__,e)>-1}var PZ=_Z,MZ=sg;function RZ(e,t){var n=this.__data__,r=MZ(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var DZ=RZ,$Z=gZ,kZ=OZ,LZ=NZ,zZ=PZ,IZ=DZ;function Vc(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])}}Vc.prototype.clear=$Z;Vc.prototype.delete=kZ;Vc.prototype.get=LZ;Vc.prototype.has=zZ;Vc.prototype.set=IZ;var og=Vc,BZ=wo,UZ=da,FZ=BZ(UZ,"Map"),vj=FZ,ET=mZ,VZ=og,HZ=vj;function qZ(){this.size=0,this.__data__={hash:new ET,map:new(HZ||VZ),string:new ET}}var KZ=qZ;function GZ(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var YZ=GZ,XZ=YZ;function WZ(e,t){var n=e.__data__;return XZ(t)?n[typeof t=="string"?"string":"hash"]:n.map}var lg=WZ,QZ=lg;function ZZ(e){var t=QZ(this,e).delete(e);return this.size-=t?1:0,t}var JZ=ZZ,eJ=lg;function tJ(e){return eJ(this,e).get(e)}var nJ=tJ,rJ=lg;function aJ(e){return rJ(this,e).has(e)}var iJ=aJ,sJ=lg;function oJ(e,t){var n=sJ(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var lJ=oJ,cJ=KZ,uJ=JZ,fJ=nJ,dJ=iJ,hJ=lJ;function Hc(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])}}Hc.prototype.clear=cJ;Hc.prototype.delete=uJ;Hc.prototype.get=fJ;Hc.prototype.has=dJ;Hc.prototype.set=hJ;var bj=Hc,d5=bj,pJ="Expected a function";function xj(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(pJ);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(xj.Cache||d5),n}xj.Cache=d5;var h5=xj;const mJ=Ie(h5);var yJ=h5,gJ=500;function vJ(e){var t=yJ(e,function(r){return n.size===gJ&&n.clear(),r}),n=t.cache;return t}var bJ=vJ,xJ=bJ,SJ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wJ=/\\(\\)?/g,jJ=xJ(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(SJ,function(n,r,a,i){t.push(a?i.replace(wJ,"$1"):r||n)}),t}),AJ=jJ;function OJ(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 Sj=OJ,TT=Gd,EJ=Sj,TJ=Mn,NJ=Bc,NT=TT?TT.prototype:void 0,CT=NT?NT.toString:void 0;function p5(e){if(typeof e=="string")return e;if(TJ(e))return EJ(e,p5)+"";if(NJ(e))return CT?CT.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var CJ=p5,_J=CJ;function PJ(e){return e==null?"":_J(e)}var m5=PJ,MJ=Mn,RJ=mj,DJ=AJ,$J=m5;function kJ(e,t){return MJ(e)?e:RJ(e,t)?[e]:DJ($J(e))}var y5=kJ,LJ=Bc;function zJ(e){if(typeof e=="string"||LJ(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var cg=zJ,IJ=y5,BJ=cg;function UJ(e,t){t=IJ(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[BJ(t[n++])];return n&&n==r?e:void 0}var wj=UJ,FJ=wj;function VJ(e,t,n){var r=e==null?void 0:FJ(e,t);return r===void 0?n:r}var g5=VJ;const Xn=Ie(g5);function HJ(e){return e==null}var qJ=HJ;const me=Ie(qJ);var KJ=ri,GJ=Mn,YJ=ai,XJ="[object String]";function WJ(e){return typeof e=="string"||!GJ(e)&&YJ(e)&&KJ(e)==XJ}var QJ=WJ;const oo=Ie(QJ);var v5={exports:{}},Fe={};/**
 * @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 jj=Symbol.for("react.element"),Aj=Symbol.for("react.portal"),ug=Symbol.for("react.fragment"),fg=Symbol.for("react.strict_mode"),dg=Symbol.for("react.profiler"),hg=Symbol.for("react.provider"),pg=Symbol.for("react.context"),ZJ=Symbol.for("react.server_context"),mg=Symbol.for("react.forward_ref"),yg=Symbol.for("react.suspense"),gg=Symbol.for("react.suspense_list"),vg=Symbol.for("react.memo"),bg=Symbol.for("react.lazy"),JJ=Symbol.for("react.offscreen"),b5;b5=Symbol.for("react.module.reference");function Ar(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case jj:switch(e=e.type,e){case ug:case dg:case fg:case yg:case gg:return e;default:switch(e=e&&e.$$typeof,e){case ZJ:case pg:case mg:case bg:case vg:case hg:return e;default:return t}}case Aj:return t}}}Fe.ContextConsumer=pg;Fe.ContextProvider=hg;Fe.Element=jj;Fe.ForwardRef=mg;Fe.Fragment=ug;Fe.Lazy=bg;Fe.Memo=vg;Fe.Portal=Aj;Fe.Profiler=dg;Fe.StrictMode=fg;Fe.Suspense=yg;Fe.SuspenseList=gg;Fe.isAsyncMode=function(){return!1};Fe.isConcurrentMode=function(){return!1};Fe.isContextConsumer=function(e){return Ar(e)===pg};Fe.isContextProvider=function(e){return Ar(e)===hg};Fe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===jj};Fe.isForwardRef=function(e){return Ar(e)===mg};Fe.isFragment=function(e){return Ar(e)===ug};Fe.isLazy=function(e){return Ar(e)===bg};Fe.isMemo=function(e){return Ar(e)===vg};Fe.isPortal=function(e){return Ar(e)===Aj};Fe.isProfiler=function(e){return Ar(e)===dg};Fe.isStrictMode=function(e){return Ar(e)===fg};Fe.isSuspense=function(e){return Ar(e)===yg};Fe.isSuspenseList=function(e){return Ar(e)===gg};Fe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ug||e===dg||e===fg||e===yg||e===gg||e===JJ||typeof e=="object"&&e!==null&&(e.$$typeof===bg||e.$$typeof===vg||e.$$typeof===hg||e.$$typeof===pg||e.$$typeof===mg||e.$$typeof===b5||e.getModuleId!==void 0)};Fe.typeOf=Ar;v5.exports=Fe;var eee=v5.exports,tee=ri,nee=ai,ree="[object Number]";function aee(e){return typeof e=="number"||nee(e)&&tee(e)==ree}var x5=aee;const iee=Ie(x5);var see=x5;function oee(e){return see(e)&&e!=+e}var lee=oee;const qc=Ie(lee);var hn=function(t){return t===0?0:t>0?1:-1},Ns=function(t){return oo(t)&&t.indexOf("%")===t.length-1},K=function(t){return iee(t)&&!qc(t)},cee=function(t){return me(t)},$t=function(t){return K(t)||oo(t)},uee=0,jo=function(t){var n=++uee;return"".concat(t||"").concat(n)},pn=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!K(t)&&!oo(t))return r;var i;if(Ns(t)){var s=t.indexOf("%");i=n*parseFloat(t.slice(0,s))/100}else i=+t;return qc(i)&&(i=r),a&&i>n&&(i=n),i},xi=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},fee=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},Rt=function(t,n){return K(t)&&K(n)?function(r){return t+r*(n-t)}:function(){return n}};function ym(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Xn(r,t))===n})}var dee=function(t,n){return K(t)&&K(n)?t-n:oo(t)&&oo(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function xl(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 Nx(e){"@babel/helpers - typeof";return Nx=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},Nx(e)}var hee=["viewBox","children"],pee=["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"],_T=["points","pathLength"],db={svg:hee,polygon:_T,polyline:_T},Oj=["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"],gm=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(A.isValidElement(t)&&(r=t.props),!Uc(r))return null;var a={};return Object.keys(r).forEach(function(i){Oj.includes(i)&&(a[i]=n||function(s){return r[i](r,s)})}),a},mee=function(t,n,r){return function(a){return t(n,r,a),null}},lo=function(t,n,r){if(!Uc(t)||Nx(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var s=t[i];Oj.includes(i)&&typeof s=="function"&&(a||(a={}),a[i]=mee(s,n,r))}),a},yee=["children"],gee=["children"];function PT(e,t){if(e==null)return{};var n=vee(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 vee(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 Cx(e){"@babel/helpers - typeof";return Cx=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},Cx(e)}var MT={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"},Fa=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},RT=null,hb=null,Ej=function e(t){if(t===RT&&Array.isArray(hb))return hb;var n=[];return A.Children.forEach(t,function(r){me(r)||(eee.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),hb=n,RT=t,n};function Wn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return Fa(a)}):r=[Fa(t)],Ej(e).forEach(function(a){var i=Xn(a,"type.displayName")||Xn(a,"type.name");r.indexOf(i)!==-1&&n.push(a)}),n}function Ln(e,t){var n=Wn(e,t);return n&&n[0]}var DT=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!K(r)||r<=0||!K(a)||a<=0)},bee=["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"],xee=function(t){return t&&t.type&&oo(t.type)&&bee.indexOf(t.type)>=0},S5=function(t){return t&&Cx(t)==="object"&&"clipDot"in t},See=function(t,n,r,a){var i,s=(i=db==null?void 0:db[a])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!de(t)&&(a&&s.includes(n)||pee.includes(n))||r&&Oj.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),!Uc(a))return null;var i={};return Object.keys(a).forEach(function(s){var o;See((o=a)===null||o===void 0?void 0:o[s],s,n,r)&&(i[s]=a[s])}),i},_x=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 $T(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(!$T(i,s))return!1}return!0},$T=function(t,n){if(me(t)&&me(n))return!0;if(!me(t)&&!me(n)){var r=t.props||{},a=r.children,i=PT(r,yee),s=n.props||{},o=s.children,l=PT(s,gee);return a&&o?xl(i,l)&&_x(a,o):!a&&!o?xl(i,l):!1}return!1},kT=function(t,n){var r=[],a={};return Ej(t).forEach(function(i,s){if(xee(i))r.push(i);else if(i){var o=Fa(i.type),l=n[o]||{},c=l.handler,f=l.once;if(c&&(!f||!a[o])){var d=c(i,o,s);r.push(d),a[o]=!0}}}),r},wee=function(t){var n=t&&t.type;return n&&MT[n]?MT[n]:null},jee=function(t,n){return Ej(n).indexOf(t)},Aee=["children","width","height","viewBox","className","style","title","desc"];function Px(){return Px=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},Px.apply(this,arguments)}function Oee(e,t){if(e==null)return{};var n=Eee(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 Eee(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 Mx(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,c=Oee(e,Aee),f=a||{width:n,height:r,x:0,y:0},d=ve("recharts-surface",i);return _.createElement("svg",Px({},ie(c,!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 Tee=["children","className"];function Rx(){return Rx=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},Rx.apply(this,arguments)}function Nee(e,t){if(e==null)return{};var n=Cee(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 Cee(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 Ae=_.forwardRef(function(e,t){var n=e.children,r=e.className,a=Nee(e,Tee),i=ve("recharts-layer",r);return _.createElement("g",Rx({className:i},ie(a,!0),{ref:t}),n)}),kr=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 _ee(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 Pee=_ee,Mee=Pee;function Ree(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Mee(e,t,n)}var Dee=Ree,$ee="\\ud800-\\udfff",kee="\\u0300-\\u036f",Lee="\\ufe20-\\ufe2f",zee="\\u20d0-\\u20ff",Iee=kee+Lee+zee,Bee="\\ufe0e\\ufe0f",Uee="\\u200d",Fee=RegExp("["+Uee+$ee+Iee+Bee+"]");function Vee(e){return Fee.test(e)}var w5=Vee;function Hee(e){return e.split("")}var qee=Hee,j5="\\ud800-\\udfff",Kee="\\u0300-\\u036f",Gee="\\ufe20-\\ufe2f",Yee="\\u20d0-\\u20ff",Xee=Kee+Gee+Yee,Wee="\\ufe0e\\ufe0f",Qee="["+j5+"]",Dx="["+Xee+"]",$x="\\ud83c[\\udffb-\\udfff]",Zee="(?:"+Dx+"|"+$x+")",A5="[^"+j5+"]",O5="(?:\\ud83c[\\udde6-\\uddff]){2}",E5="[\\ud800-\\udbff][\\udc00-\\udfff]",Jee="\\u200d",T5=Zee+"?",N5="["+Wee+"]?",ete="(?:"+Jee+"(?:"+[A5,O5,E5].join("|")+")"+N5+T5+")*",tte=N5+T5+ete,nte="(?:"+[A5+Dx+"?",Dx,O5,E5,Qee].join("|")+")",rte=RegExp($x+"(?="+$x+")|"+nte+tte,"g");function ate(e){return e.match(rte)||[]}var ite=ate,ste=qee,ote=w5,lte=ite;function cte(e){return ote(e)?lte(e):ste(e)}var ute=cte,fte=Dee,dte=w5,hte=ute,pte=m5;function mte(e){return function(t){t=pte(t);var n=dte(t)?hte(t):void 0,r=n?n[0]:t.charAt(0),a=n?fte(n,1).join(""):t.slice(1);return r[e]()+a}}var yte=mte,gte=yte,vte=gte("toUpperCase"),bte=vte;const xg=Ie(bte);function Qe(e){return function(){return e}}const C5=Math.cos,vm=Math.sin,Fr=Math.sqrt,bm=Math.PI,Sg=2*bm,kx=Math.PI,Lx=2*kx,xs=1e-6,xte=Lx-xs;function _5(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Ste(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return _5;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 wte{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?_5:Ste(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,c=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>xs)if(!(Math.abs(d*l-c*f)>xs)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-s,m=a-o,g=l*l+c*c,b=p*p+m*m,y=Math.sqrt(g),v=Math.sqrt(h),x=i*Math.tan((kx-Math.acos((g+h-b)/(2*y*v)))/2),w=x/v,S=x/y;Math.abs(w-1)>xs&&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*c}`}}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),c=t+o,f=n+l,d=1^s,h=s?a-i:i-a;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>xs||Math.abs(this._y1-f)>xs)&&this._append`L${c},${f}`,r&&(h<0&&(h=h%Lx+Lx),h>xte?this._append`A${r},${r},0,1,${d},${t-o},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=f}`:h>xs&&this._append`A${r},${r},0,${+(h>=kx)},${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 Tj(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 wte(t)}function Nj(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function P5(e){this._context=e}P5.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 wg(e){return new P5(e)}function M5(e){return e[0]}function R5(e){return e[1]}function D5(e,t){var n=Qe(!0),r=null,a=wg,i=null,s=Tj(o);e=typeof e=="function"?e:e===void 0?M5:Qe(e),t=typeof t=="function"?t:t===void 0?R5:Qe(t);function o(l){var c,f=(l=Nj(l)).length,d,h=!1,p;for(r==null&&(i=a(p=s())),c=0;c<=f;++c)!(c<f&&n(d=l[c],c,l))===h&&((h=!h)?i.lineStart():i.lineEnd()),h&&i.point(+e(d,c,l),+t(d,c,l));if(p)return i=null,p+""||null}return o.x=function(l){return arguments.length?(e=typeof l=="function"?l:Qe(+l),o):e},o.y=function(l){return arguments.length?(t=typeof l=="function"?l:Qe(+l),o):t},o.defined=function(l){return arguments.length?(n=typeof l=="function"?l:Qe(!!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 Ph(e,t,n){var r=null,a=Qe(!0),i=null,s=wg,o=null,l=Tj(c);e=typeof e=="function"?e:e===void 0?M5:Qe(+e),t=typeof t=="function"?t:Qe(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?R5:Qe(+n);function c(d){var h,p,m,g=(d=Nj(d)).length,b,y=!1,v,x=new Array(g),w=new Array(g);for(i==null&&(o=s(v=l())),h=0;h<=g;++h){if(!(h<g&&a(b=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(b,h,d),w[h]=+t(b,h,d),o.point(r?+r(b,h,d):x[h],n?+n(b,h,d):w[h]))}if(v)return o=null,v+""||null}function f(){return D5().defined(a).curve(s).context(i)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Qe(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Qe(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Qe(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:Qe(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:Qe(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Qe(+d),c):n},c.lineX0=c.lineY0=function(){return f().x(e).y(t)},c.lineY1=function(){return f().x(e).y(n)},c.lineX1=function(){return f().x(r).y(t)},c.defined=function(d){return arguments.length?(a=typeof d=="function"?d:Qe(!!d),c):a},c.curve=function(d){return arguments.length?(s=d,i!=null&&(o=s(i)),c):s},c.context=function(d){return arguments.length?(d==null?i=o=null:o=s(i=d),c):i},c}class $5{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 jte(e){return new $5(e,!0)}function Ate(e){return new $5(e,!1)}const Cj={draw(e,t){const n=Fr(t/bm);e.moveTo(n,0),e.arc(0,0,n,0,Sg)}},Ote={draw(e,t){const n=Fr(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()}},k5=Fr(1/3),Ete=k5*2,Tte={draw(e,t){const n=Fr(t/Ete),r=n*k5;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Nte={draw(e,t){const n=Fr(t),r=-n/2;e.rect(r,r,n,n)}},Cte=.8908130915292852,L5=vm(bm/10)/vm(7*bm/10),_te=vm(Sg/10)*L5,Pte=-C5(Sg/10)*L5,Mte={draw(e,t){const n=Fr(t*Cte),r=_te*n,a=Pte*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const s=Sg*i/5,o=C5(s),l=vm(s);e.lineTo(l*n,-o*n),e.lineTo(o*r-l*a,l*r+o*a)}e.closePath()}},pb=Fr(3),Rte={draw(e,t){const n=-Fr(t/(pb*3));e.moveTo(0,n*2),e.lineTo(-pb*n,-n),e.lineTo(pb*n,-n),e.closePath()}},nr=-.5,rr=Fr(3)/2,zx=1/Fr(12),Dte=(zx/2+1)*3,$te={draw(e,t){const n=Fr(t/Dte),r=n/2,a=n*zx,i=r,s=n*zx+n,o=-i,l=s;e.moveTo(r,a),e.lineTo(i,s),e.lineTo(o,l),e.lineTo(nr*r-rr*a,rr*r+nr*a),e.lineTo(nr*i-rr*s,rr*i+nr*s),e.lineTo(nr*o-rr*l,rr*o+nr*l),e.lineTo(nr*r+rr*a,nr*a-rr*r),e.lineTo(nr*i+rr*s,nr*s-rr*i),e.lineTo(nr*o+rr*l,nr*l-rr*o),e.closePath()}};function kte(e,t){let n=null,r=Tj(a);e=typeof e=="function"?e:Qe(e||Cj),t=typeof t=="function"?t:Qe(t===void 0?64:+t);function a(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:Qe(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Qe(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function xm(){}function Sm(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 z5(e){this._context=e}z5.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:Sm(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:Sm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Lte(e){return new z5(e)}function I5(e){this._context=e}I5.prototype={areaStart:xm,areaEnd:xm,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:Sm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zte(e){return new I5(e)}function B5(e){this._context=e}B5.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:Sm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ite(e){return new B5(e)}function U5(e){this._context=e}U5.prototype={areaStart:xm,areaEnd:xm,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 Bte(e){return new U5(e)}function LT(e){return e<0?-1:1}function zT(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(LT(i)+LT(s))*Math.min(Math.abs(i),Math.abs(s),.5*Math.abs(o))||0}function IT(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function mb(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 wm(e){this._context=e}wm.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:mb(this,this._t0,IT(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,mb(this,IT(this,n=zT(this,e,t)),n);break;default:mb(this,this._t0,n=zT(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function F5(e){this._context=new V5(e)}(F5.prototype=Object.create(wm.prototype)).point=function(e,t){wm.prototype.point.call(this,t,e)};function V5(e){this._context=e}V5.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 Ute(e){return new wm(e)}function Fte(e){return new F5(e)}function H5(e){this._context=e}H5.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=BT(e),a=BT(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 BT(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 Vte(e){return new H5(e)}function jg(e,t){this._context=e,this._t=t}jg.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 Hte(e){return new jg(e,.5)}function qte(e){return new jg(e,0)}function Kte(e){return new jg(e,1)}function Jl(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 Ix(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Gte(e,t){return e[t]}function Yte(e){const t=[];return t.key=e,t}function Xte(){var e=Qe([]),t=Ix,n=Jl,r=Gte;function a(i){var s=Array.from(e.apply(this,arguments),Yte),o,l=s.length,c=-1,f;for(const d of i)for(o=0,++c;o<l;++o)(s[o][c]=[0,+r(d,s[o].key,c,i)]).data=d;for(o=0,f=Nj(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:Qe(Array.from(i)),a):e},a.value=function(i){return arguments.length?(r=typeof i=="function"?i:Qe(+i),a):r},a.order=function(i){return arguments.length?(t=i==null?Ix:typeof i=="function"?i:Qe(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??Jl,a):n},a}function Wte(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}Jl(e,t)}}function Qte(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}Jl(e,t)}}function Zte(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,c=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]],b=g[r][1]||0,y=g[r-1][1]||0;p+=b-y}l+=d,c+=p*d}a[r-1][1]+=a[r-1][0]=n,l&&(n-=c/l)}a[r-1][1]+=a[r-1][0]=n,Jl(e,t)}}function $f(e){"@babel/helpers - typeof";return $f=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},$f(e)}var Jte=["type","size","sizeType"];function Bx(){return Bx=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},Bx.apply(this,arguments)}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 FT(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){ene(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 ene(e,t,n){return t=tne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tne(e){var t=nne(e,"string");return $f(t)=="symbol"?t:t+""}function nne(e,t){if($f(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($f(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rne(e,t){if(e==null)return{};var n=ane(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ane(e,t){if(e==null)return{};var n={};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 q5={symbolCircle:Cj,symbolCross:Ote,symbolDiamond:Tte,symbolSquare:Nte,symbolStar:Mte,symbolTriangle:Rte,symbolWye:$te},ine=Math.PI/180,sne=function(t){var n="symbol".concat(xg(t));return q5[n]||Cj},one=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*ine;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}},lne=function(t,n){q5["symbol".concat(xg(t))]=n},_j=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=rne(t,Jte),c=FT(FT({},l),{},{type:r,size:i,sizeType:o}),f=function(){var b=sne(r),y=kte().type(b).size(one(i,o,r));return y()},d=c.className,h=c.cx,p=c.cy,m=ie(c,!0);return h===+h&&p===+p&&i===+i?_.createElement("path",Bx({},m,{className:ve("recharts-symbols",d),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};_j.registerSymbol=lne;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 Ux(){return Ux=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},Ux.apply(this,arguments)}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 cne(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){kf(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 une(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fne(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,G5(r.key),r)}}function dne(e,t,n){return t&&fne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hne(e,t,n){return t=jm(t),pne(e,K5()?Reflect.construct(t,n||[],jm(e).constructor):t.apply(e,n))}function pne(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 mne(e)}function mne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(K5=function(){return!!e})()}function jm(e){return jm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jm(e)}function yne(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&&Fx(e,t)}function Fx(e,t){return Fx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Fx(e,t)}function kf(e,t,n){return t=G5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G5(e){var t=gne(e,"string");return ec(t)=="symbol"?t:t+""}function gne(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 String(e)}var ar=32,Pj=function(e){function t(){return une(this,t),hne(this,t,arguments)}return yne(t,e),dne(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,i=ar/2,s=ar/6,o=ar/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:ar,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(ar,"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(ar/8,"h").concat(ar,"v").concat(ar*3/4,"h").concat(-ar,"z"),className:"recharts-legend-icon"});if(_.isValidElement(r.legendIcon)){var c=cne({},r);return delete c.legendIcon,_.cloneElement(r.legendIcon,c)}return _.createElement(_j,{fill:l,cx:i,cy:i,size:ar,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,c=a.inactiveColor,f={x:0,y:0,width:ar,height:ar},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,b=ve(kf(kf({"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;kr(!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 v=p.inactive?c:p.color;return _.createElement("li",Ux({className:b,style:d,key:"legend-item-".concat(m)},lo(r.props,p,m)),_.createElement(Mx,{width:s,height:s,viewBox:f,style:h},r.renderIcon(p)),_.createElement("span",{className:"recharts-legend-item-text",style:{color:v}},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);kf(Pj,"displayName","Legend");kf(Pj,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var vne=og;function bne(){this.__data__=new vne,this.size=0}var xne=bne;function Sne(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var wne=Sne;function jne(e){return this.__data__.get(e)}var Ane=jne;function One(e){return this.__data__.has(e)}var Ene=One,Tne=og,Nne=vj,Cne=bj,_ne=200;function Pne(e,t){var n=this.__data__;if(n instanceof Tne){var r=n.__data__;if(!Nne||r.length<_ne-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Cne(r)}return n.set(e,t),this.size=n.size,this}var Mne=Pne,Rne=og,Dne=xne,$ne=wne,kne=Ane,Lne=Ene,zne=Mne;function Kc(e){var t=this.__data__=new Rne(e);this.size=t.size}Kc.prototype.clear=Dne;Kc.prototype.delete=$ne;Kc.prototype.get=kne;Kc.prototype.has=Lne;Kc.prototype.set=zne;var Y5=Kc,Ine="__lodash_hash_undefined__";function Bne(e){return this.__data__.set(e,Ine),this}var Une=Bne;function Fne(e){return this.__data__.has(e)}var Vne=Fne,Hne=bj,qne=Une,Kne=Vne;function Am(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Hne;++t<n;)this.add(e[t])}Am.prototype.add=Am.prototype.push=qne;Am.prototype.has=Kne;var X5=Am;function Gne(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 W5=Gne;function Yne(e,t){return e.has(t)}var Q5=Yne,Xne=X5,Wne=W5,Qne=Q5,Zne=1,Jne=2;function ere(e,t,n,r,a,i){var s=n&Zne,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var c=i.get(e),f=i.get(t);if(c&&f)return c==t&&f==e;var d=-1,h=!0,p=n&Jne?new Xne:void 0;for(i.set(e,t),i.set(t,e);++d<o;){var m=e[d],g=t[d];if(r)var b=s?r(g,m,d,t,e,i):r(m,g,d,e,t,i);if(b!==void 0){if(b)continue;h=!1;break}if(p){if(!Wne(t,function(y,v){if(!Qne(p,v)&&(m===y||a(m,y,n,r,i)))return p.push(v)})){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 Z5=ere,tre=da,nre=tre.Uint8Array,rre=nre;function are(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var ire=are;function sre(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Mj=sre,HT=Gd,qT=rre,ore=gj,lre=Z5,cre=ire,ure=Mj,fre=1,dre=2,hre="[object Boolean]",pre="[object Date]",mre="[object Error]",yre="[object Map]",gre="[object Number]",vre="[object RegExp]",bre="[object Set]",xre="[object String]",Sre="[object Symbol]",wre="[object ArrayBuffer]",jre="[object DataView]",KT=HT?HT.prototype:void 0,yb=KT?KT.valueOf:void 0;function Are(e,t,n,r,a,i,s){switch(n){case jre:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case wre:return!(e.byteLength!=t.byteLength||!i(new qT(e),new qT(t)));case hre:case pre:case gre:return ore(+e,+t);case mre:return e.name==t.name&&e.message==t.message;case vre:case xre:return e==t+"";case yre:var o=cre;case bre:var l=r&fre;if(o||(o=ure),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=dre,s.set(e,t);var f=lre(o(e),o(t),r,a,i,s);return s.delete(e),f;case Sre:if(yb)return yb.call(e)==yb.call(t)}return!1}var Ore=Are;function Ere(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var J5=Ere,Tre=J5,Nre=Mn;function Cre(e,t,n){var r=t(e);return Nre(e)?r:Tre(r,n(e))}var _re=Cre;function Pre(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 Mre=Pre;function Rre(){return[]}var Dre=Rre,$re=Mre,kre=Dre,Lre=Object.prototype,zre=Lre.propertyIsEnumerable,GT=Object.getOwnPropertySymbols,Ire=GT?function(e){return e==null?[]:(e=Object(e),$re(GT(e),function(t){return zre.call(e,t)}))}:kre,Bre=Ire;function Ure(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Fre=Ure,Vre=ri,Hre=ai,qre="[object Arguments]";function Kre(e){return Hre(e)&&Vre(e)==qre}var Gre=Kre,YT=Gre,Yre=ai,e4=Object.prototype,Xre=e4.hasOwnProperty,Wre=e4.propertyIsEnumerable,Qre=YT(function(){return arguments}())?YT:function(e){return Yre(e)&&Xre.call(e,"callee")&&!Wre.call(e,"callee")},Rj=Qre,Om={exports:{}};function Zre(){return!1}var Jre=Zre;Om.exports;(function(e,t){var n=da,r=Jre,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,c=l||r;e.exports=c})(Om,Om.exports);var t4=Om.exports,eae=9007199254740991,tae=/^(?:0|[1-9]\d*)$/;function nae(e,t){var n=typeof e;return t=t??eae,!!t&&(n=="number"||n!="symbol"&&tae.test(e))&&e>-1&&e%1==0&&e<t}var Dj=nae,rae=9007199254740991;function aae(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=rae}var $j=aae,iae=ri,sae=$j,oae=ai,lae="[object Arguments]",cae="[object Array]",uae="[object Boolean]",fae="[object Date]",dae="[object Error]",hae="[object Function]",pae="[object Map]",mae="[object Number]",yae="[object Object]",gae="[object RegExp]",vae="[object Set]",bae="[object String]",xae="[object WeakMap]",Sae="[object ArrayBuffer]",wae="[object DataView]",jae="[object Float32Array]",Aae="[object Float64Array]",Oae="[object Int8Array]",Eae="[object Int16Array]",Tae="[object Int32Array]",Nae="[object Uint8Array]",Cae="[object Uint8ClampedArray]",_ae="[object Uint16Array]",Pae="[object Uint32Array]",tt={};tt[jae]=tt[Aae]=tt[Oae]=tt[Eae]=tt[Tae]=tt[Nae]=tt[Cae]=tt[_ae]=tt[Pae]=!0;tt[lae]=tt[cae]=tt[Sae]=tt[uae]=tt[wae]=tt[fae]=tt[dae]=tt[hae]=tt[pae]=tt[mae]=tt[yae]=tt[gae]=tt[vae]=tt[bae]=tt[xae]=!1;function Mae(e){return oae(e)&&sae(e.length)&&!!tt[iae(e)]}var Rae=Mae;function Dae(e){return function(t){return e(t)}}var n4=Dae,Em={exports:{}};Em.exports;(function(e,t){var n=c5,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})(Em,Em.exports);var $ae=Em.exports,kae=Rae,Lae=n4,XT=$ae,WT=XT&&XT.isTypedArray,zae=WT?Lae(WT):kae,r4=zae,Iae=Fre,Bae=Rj,Uae=Mn,Fae=t4,Vae=Dj,Hae=r4,qae=Object.prototype,Kae=qae.hasOwnProperty;function Gae(e,t){var n=Uae(e),r=!n&&Bae(e),a=!n&&!r&&Fae(e),i=!n&&!r&&!a&&Hae(e),s=n||r||a||i,o=s?Iae(e.length,String):[],l=o.length;for(var c in e)(t||Kae.call(e,c))&&!(s&&(c=="length"||a&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Vae(c,l)))&&o.push(c);return o}var Yae=Gae,Xae=Object.prototype;function Wae(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Xae;return e===n}var Qae=Wae;function Zae(e,t){return function(n){return e(t(n))}}var a4=Zae,Jae=a4,eie=Jae(Object.keys,Object),tie=eie,nie=Qae,rie=tie,aie=Object.prototype,iie=aie.hasOwnProperty;function sie(e){if(!nie(e))return rie(e);var t=[];for(var n in Object(e))iie.call(e,n)&&n!="constructor"&&t.push(n);return t}var oie=sie,lie=yj,cie=$j;function uie(e){return e!=null&&cie(e.length)&&!lie(e)}var Yd=uie,fie=Yae,die=oie,hie=Yd;function pie(e){return hie(e)?fie(e):die(e)}var Ag=pie,mie=_re,yie=Bre,gie=Ag;function vie(e){return mie(e,gie,yie)}var bie=vie,QT=bie,xie=1,Sie=Object.prototype,wie=Sie.hasOwnProperty;function jie(e,t,n,r,a,i){var s=n&xie,o=QT(e),l=o.length,c=QT(t),f=c.length;if(l!=f&&!s)return!1;for(var d=l;d--;){var h=o[d];if(!(s?h in t:wie.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 b=s;++d<l;){h=o[d];var y=e[h],v=t[h];if(r)var x=s?r(v,y,h,t,e,i):r(y,v,h,e,t,i);if(!(x===void 0?y===v||a(y,v,n,r,i):x)){g=!1;break}b||(b=h=="constructor")}if(g&&!b){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 Aie=jie,Oie=wo,Eie=da,Tie=Oie(Eie,"DataView"),Nie=Tie,Cie=wo,_ie=da,Pie=Cie(_ie,"Promise"),Mie=Pie,Rie=wo,Die=da,$ie=Rie(Die,"Set"),i4=$ie,kie=wo,Lie=da,zie=kie(Lie,"WeakMap"),Iie=zie,Vx=Nie,Hx=vj,qx=Mie,Kx=i4,Gx=Iie,s4=ri,Gc=f5,ZT="[object Map]",Bie="[object Object]",JT="[object Promise]",eN="[object Set]",tN="[object WeakMap]",nN="[object DataView]",Uie=Gc(Vx),Fie=Gc(Hx),Vie=Gc(qx),Hie=Gc(Kx),qie=Gc(Gx),Ss=s4;(Vx&&Ss(new Vx(new ArrayBuffer(1)))!=nN||Hx&&Ss(new Hx)!=ZT||qx&&Ss(qx.resolve())!=JT||Kx&&Ss(new Kx)!=eN||Gx&&Ss(new Gx)!=tN)&&(Ss=function(e){var t=s4(e),n=t==Bie?e.constructor:void 0,r=n?Gc(n):"";if(r)switch(r){case Uie:return nN;case Fie:return ZT;case Vie:return JT;case Hie:return eN;case qie:return tN}return t});var Kie=Ss,gb=Y5,Gie=Z5,Yie=Ore,Xie=Aie,rN=Kie,aN=Mn,iN=t4,Wie=r4,Qie=1,sN="[object Arguments]",oN="[object Array]",Mh="[object Object]",Zie=Object.prototype,lN=Zie.hasOwnProperty;function Jie(e,t,n,r,a,i){var s=aN(e),o=aN(t),l=s?oN:rN(e),c=o?oN:rN(t);l=l==sN?Mh:l,c=c==sN?Mh:c;var f=l==Mh,d=c==Mh,h=l==c;if(h&&iN(e)){if(!iN(t))return!1;s=!0,f=!1}if(h&&!f)return i||(i=new gb),s||Wie(e)?Gie(e,t,n,r,a,i):Yie(e,t,l,n,r,a,i);if(!(n&Qie)){var p=f&&lN.call(e,"__wrapped__"),m=d&&lN.call(t,"__wrapped__");if(p||m){var g=p?e.value():e,b=m?t.value():t;return i||(i=new gb),a(g,b,n,r,i)}}return h?(i||(i=new gb),Xie(e,t,n,r,a,i)):!1}var ese=Jie,tse=ese,cN=ai;function o4(e,t,n,r,a){return e===t?!0:e==null||t==null||!cN(e)&&!cN(t)?e!==e&&t!==t:tse(e,t,n,r,o4,a)}var kj=o4,nse=Y5,rse=kj,ase=1,ise=2;function sse(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],c=e[l],f=o[1];if(s&&o[2]){if(c===void 0&&!(l in e))return!1}else{var d=new nse;if(r)var h=r(c,f,l,e,t,d);if(!(h===void 0?rse(f,c,ase|ise,r,d):h))return!1}}return!0}var ose=sse,lse=rs;function cse(e){return e===e&&!lse(e)}var l4=cse,use=l4,fse=Ag;function dse(e){for(var t=fse(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,use(a)]}return t}var hse=dse;function pse(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var c4=pse,mse=ose,yse=hse,gse=c4;function vse(e){var t=yse(e);return t.length==1&&t[0][2]?gse(t[0][0],t[0][1]):function(n){return n===e||mse(n,e,t)}}var bse=vse;function xse(e,t){return e!=null&&t in Object(e)}var Sse=xse,wse=y5,jse=Rj,Ase=Mn,Ose=Dj,Ese=$j,Tse=cg;function Nse(e,t,n){t=wse(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var s=Tse(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&&Ese(a)&&Ose(s,a)&&(Ase(e)||jse(e)))}var Cse=Nse,_se=Sse,Pse=Cse;function Mse(e,t){return e!=null&&Pse(e,t,_se)}var Rse=Mse,Dse=kj,$se=g5,kse=Rse,Lse=mj,zse=l4,Ise=c4,Bse=cg,Use=1,Fse=2;function Vse(e,t){return Lse(e)&&zse(t)?Ise(Bse(e),t):function(n){var r=$se(n,e);return r===void 0&&r===t?kse(n,e):Dse(t,r,Use|Fse)}}var Hse=Vse;function qse(e){return e}var Yc=qse;function Kse(e){return function(t){return t==null?void 0:t[e]}}var Gse=Kse,Yse=wj;function Xse(e){return function(t){return Yse(t,e)}}var Wse=Xse,Qse=Gse,Zse=Wse,Jse=mj,eoe=cg;function toe(e){return Jse(e)?Qse(eoe(e)):Zse(e)}var noe=toe,roe=bse,aoe=Hse,ioe=Yc,soe=Mn,ooe=noe;function loe(e){return typeof e=="function"?e:e==null?ioe:typeof e=="object"?soe(e)?aoe(e[0],e[1]):roe(e):ooe(e)}var ha=loe;function coe(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 u4=coe;function uoe(e){return e!==e}var foe=uoe;function doe(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var hoe=doe,poe=u4,moe=foe,yoe=hoe;function goe(e,t,n){return t===t?yoe(e,t,n):poe(e,moe,n)}var voe=goe,boe=voe;function xoe(e,t){var n=e==null?0:e.length;return!!n&&boe(e,t,0)>-1}var Soe=xoe;function woe(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 joe=woe;function Aoe(){}var Ooe=Aoe,vb=i4,Eoe=Ooe,Toe=Mj,Noe=1/0,Coe=vb&&1/Toe(new vb([,-0]))[1]==Noe?function(e){return new vb(e)}:Eoe,_oe=Coe,Poe=X5,Moe=Soe,Roe=joe,Doe=Q5,$oe=_oe,koe=Mj,Loe=200;function zoe(e,t,n){var r=-1,a=Moe,i=e.length,s=!0,o=[],l=o;if(n)s=!1,a=Roe;else if(i>=Loe){var c=t?null:$oe(e);if(c)return koe(c);s=!1,a=Doe,l=new Poe}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 Ioe=zoe,Boe=ha,Uoe=Ioe;function Foe(e,t){return e&&e.length?Uoe(e,Boe(t)):[]}var Voe=Foe;const uN=Ie(Voe);function f4(e,t,n){return t===!0?uN(e,n):de(t)?uN(e,t):e}function tc(e){"@babel/helpers - typeof";return tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tc(e)}var Hoe=["ref"];function fN(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 Sa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fN(Object(n),!0).forEach(function(r){Og(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h4(r.key),r)}}function Koe(e,t,n){return t&&dN(e.prototype,t),n&&dN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Goe(e,t,n){return t=Tm(t),Yoe(e,d4()?Reflect.construct(t,n||[],Tm(e).constructor):t.apply(e,n))}function Yoe(e,t){if(t&&(tc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xoe(e)}function Xoe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(d4=function(){return!!e})()}function Tm(e){return Tm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tm(e)}function Woe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yx(e,t)}function Yx(e,t){return Yx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Yx(e,t)}function Og(e,t,n){return t=h4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h4(e){var t=Qoe(e,"string");return tc(t)=="symbol"?t:t+""}function Qoe(e,t){if(tc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Zoe(e,t){if(e==null)return{};var n=Joe(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 Joe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ele(e){return e.value}function tle(e,t){if(_.isValidElement(e))return _.cloneElement(e,t);if(typeof e=="function")return _.createElement(e,t);t.ref;var n=Zoe(t,Hoe);return _.createElement(Pj,n)}var hN=1,Jr=function(e){function t(){var n;qoe(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Goe(this,t,[].concat(a)),Og(n,"lastBoundingBox",{width:-1,height:-1}),n}return Woe(t,e),Koe(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)>hN||Math.abs(a.height-this.lastBoundingBox.height)>hN)&&(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?Sa({},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,c=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:((c||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 Sa(Sa({},d),h)}},{key:"render",value:function(){var r=this,a=this.props,i=a.content,s=a.width,o=a.height,l=a.wrapperStyle,c=a.payloadUniqBy,f=a.payload,d=Sa(Sa({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}},tle(i,Sa(Sa({},this.props),{},{payload:f4(f,c,ele)})))}}],[{key:"getWithHeight",value:function(r,a){var i=Sa(Sa({},this.defaultProps),r.props),s=i.layout;return s==="vertical"&&K(r.props.height)?{height:r.props.height}:s==="horizontal"?{width:r.props.width||a}:null}}])}(A.PureComponent);Og(Jr,"displayName","Legend");Og(Jr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var pN=Gd,nle=Rj,rle=Mn,mN=pN?pN.isConcatSpreadable:void 0;function ale(e){return rle(e)||nle(e)||!!(mN&&e&&e[mN])}var ile=ale,sle=J5,ole=ile;function p4(e,t,n,r,a){var i=-1,s=e.length;for(n||(n=ole),a||(a=[]);++i<s;){var o=e[i];t>0&&n(o)?t>1?p4(o,t-1,n,r,a):sle(a,o):r||(a[a.length]=o)}return a}var m4=p4;function lle(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 cle=lle,ule=cle,fle=ule(),dle=fle,hle=dle,ple=Ag;function mle(e,t){return e&&hle(e,t,ple)}var y4=mle,yle=Yd;function gle(e,t){return function(n,r){if(n==null)return n;if(!yle(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 vle=gle,ble=y4,xle=vle,Sle=xle(ble),Lj=Sle,wle=Lj,jle=Yd;function Ale(e,t){var n=-1,r=jle(e)?Array(e.length):[];return wle(e,function(a,i,s){r[++n]=t(a,i,s)}),r}var g4=Ale;function Ole(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var Ele=Ole,yN=Bc;function Tle(e,t){if(e!==t){var n=e!==void 0,r=e===null,a=e===e,i=yN(e),s=t!==void 0,o=t===null,l=t===t,c=yN(t);if(!o&&!c&&!i&&e>t||i&&s&&l&&!o&&!c||r&&s&&l||!n&&l||!a)return 1;if(!r&&!i&&!c&&e<t||c&&n&&a&&!r&&!i||o&&n&&a||!s&&a||!l)return-1}return 0}var Nle=Tle,Cle=Nle;function _le(e,t,n){for(var r=-1,a=e.criteria,i=t.criteria,s=a.length,o=n.length;++r<s;){var l=Cle(a[r],i[r]);if(l){if(r>=o)return l;var c=n[r];return l*(c=="desc"?-1:1)}}return e.index-t.index}var Ple=_le,bb=Sj,Mle=wj,Rle=ha,Dle=g4,$le=Ele,kle=n4,Lle=Ple,zle=Yc,Ile=Mn;function Ble(e,t,n){t.length?t=bb(t,function(i){return Ile(i)?function(s){return Mle(s,i.length===1?i[0]:i)}:i}):t=[zle];var r=-1;t=bb(t,kle(Rle));var a=Dle(e,function(i,s,o){var l=bb(t,function(c){return c(i)});return{criteria:l,index:++r,value:i}});return $le(a,function(i,s){return Lle(i,s,n)})}var Ule=Ble;function Fle(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 Vle=Fle,Hle=Vle,gN=Math.max;function qle(e,t,n){return t=gN(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=gN(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),Hle(e,this,o)}}var Kle=qle;function Gle(e){return function(){return e}}var Yle=Gle,Xle=wo,Wle=function(){try{var e=Xle(Object,"defineProperty");return e({},"",{}),e}catch{}}(),v4=Wle,Qle=Yle,vN=v4,Zle=Yc,Jle=vN?function(e,t){return vN(e,"toString",{configurable:!0,enumerable:!1,value:Qle(t),writable:!0})}:Zle,ece=Jle,tce=800,nce=16,rce=Date.now;function ace(e){var t=0,n=0;return function(){var r=rce(),a=nce-(r-n);if(n=r,a>0){if(++t>=tce)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var ice=ace,sce=ece,oce=ice,lce=oce(sce),cce=lce,uce=Yc,fce=Kle,dce=cce;function hce(e,t){return dce(fce(e,t,uce),e+"")}var pce=hce,mce=gj,yce=Yd,gce=Dj,vce=rs;function bce(e,t,n){if(!vce(n))return!1;var r=typeof t;return(r=="number"?yce(n)&&gce(t,n.length):r=="string"&&t in n)?mce(n[t],e):!1}var Eg=bce,xce=m4,Sce=Ule,wce=pce,bN=Eg,jce=wce(function(e,t){if(e==null)return[];var n=t.length;return n>1&&bN(e,t[0],t[1])?t=[]:n>2&&bN(t[0],t[1],t[2])&&(t=[t[0]]),Sce(e,xce(t,1),[])}),Ace=jce;const zj=Ie(Ace);function Lf(e){"@babel/helpers - typeof";return Lf=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},Lf(e)}function Xx(){return Xx=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},Xx.apply(this,arguments)}function Oce(e,t){return Cce(e)||Nce(e,t)||Tce(e,t)||Ece()}function Ece(){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 Tce(e,t){if(e){if(typeof e=="string")return xN(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 xN(e,t)}}function xN(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 Nce(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,c=!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){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function Cce(e){if(Array.isArray(e))return e}function SN(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 xb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SN(Object(n),!0).forEach(function(r){_ce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _ce(e,t,n){return t=Pce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pce(e){var t=Mce(e,"string");return Lf(t)=="symbol"?t:t+""}function Mce(e,t){if(Lf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rce(e){return Array.isArray(e)&&$t(e[0])&&$t(e[1])?e.join(" ~ "):e}var Dce=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,c=l===void 0?{}:l,f=t.payload,d=t.formatter,h=t.itemSorter,p=t.wrapperClassName,m=t.labelClassName,g=t.label,b=t.labelFormatter,y=t.accessibilityLayer,v=y===void 0?!1:y,x=function(){if(f&&f.length){var C={padding:0,margin:0},L=(h?zj(f,h):f).map(function(D,$){if(D.type==="none")return null;var P=xb({display:"block",paddingTop:4,paddingBottom:4,color:D.color||"#000"},o),k=D.formatter||d||Rce,I=D.value,F=D.name,H=I,Y=F;if(k&&H!=null&&Y!=null){var q=k(I,F,D,$,f);if(Array.isArray(q)){var te=Oce(q,2);H=te[0],Y=te[1]}else H=q}return _.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat($),style:P},$t(Y)?_.createElement("span",{className:"recharts-tooltip-item-name"},Y):null,$t(Y)?_.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,_.createElement("span",{className:"recharts-tooltip-item-value"},H),_.createElement("span",{className:"recharts-tooltip-item-unit"},D.unit||""))});return _.createElement("ul",{className:"recharts-tooltip-item-list",style:C},L)}return null},w=xb({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),S=xb({margin:0},c),j=!me(g),O=j?g:"",E=ve("recharts-default-tooltip",p),T=ve("recharts-tooltip-label",m);j&&b&&f!==void 0&&f!==null&&(O=b(g,f));var N=v?{role:"status","aria-live":"assertive"}:{};return _.createElement("div",Xx({className:E,style:w},N),_.createElement("p",{className:T,style:S},_.isValidElement(O)?O:"".concat(O)),x())};function zf(e){"@babel/helpers - typeof";return zf=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},zf(e)}function Rh(e,t,n){return t=$ce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $ce(e){var t=kce(e,"string");return zf(t)=="symbol"?t:t+""}function kce(e,t){if(zf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hu="recharts-tooltip-wrapper",Lce={visibility:"hidden"};function zce(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return ve(hu,Rh(Rh(Rh(Rh({},"".concat(hu,"-right"),K(n)&&t&&K(t.x)&&n>=t.x),"".concat(hu,"-left"),K(n)&&t&&K(t.x)&&n<t.x),"".concat(hu,"-bottom"),K(r)&&t&&K(t.y)&&r>=t.y),"".concat(hu,"-top"),K(r)&&t&&K(t.y)&&r<t.y))}function wN(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,c=e.viewBoxDimension;if(i&&K(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]+c;return m>g?Math.max(f,l[r]):Math.max(d,l[r])}function Ice(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 Bce(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,c,f,d;return s.height>0&&s.width>0&&n?(f=wN({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:s.width,viewBox:l,viewBoxDimension:l.width}),d=wN({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:s.height,viewBox:l,viewBoxDimension:l.height}),c=Ice({translateX:f,translateY:d,useTranslate3d:o})):c=Lce,{cssProperties:c,cssClasses:zce({translateX:f,translateY:d,coordinate:n})}}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 jN(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 AN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jN(Object(n),!0).forEach(function(r){Qx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fce(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,x4(r.key),r)}}function Vce(e,t,n){return t&&Fce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hce(e,t,n){return t=Nm(t),qce(e,b4()?Reflect.construct(t,n||[],Nm(e).constructor):t.apply(e,n))}function qce(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 Kce(e)}function Kce(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 Nm(e){return Nm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nm(e)}function Gce(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&&Wx(e,t)}function Wx(e,t){return Wx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Wx(e,t)}function Qx(e,t,n){return t=x4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x4(e){var t=Yce(e,"string");return nc(t)=="symbol"?t:t+""}function Yce(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)}var ON=1,Xce=function(e){function t(){var n;Uce(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Hce(this,t,[].concat(a)),Qx(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Qx(n,"handleKeyDown",function(s){if(s.key==="Escape"){var o,l,c,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:(c=(f=n.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&c!==void 0?c:0}})}}),n}return Gce(t,e),Vce(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>ON||Math.abs(r.height-this.state.lastBoundingBox.height)>ON)&&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,c=a.children,f=a.coordinate,d=a.hasPayload,h=a.isAnimationActive,p=a.offset,m=a.position,g=a.reverseDirection,b=a.useTranslate3d,y=a.viewBox,v=a.wrapperStyle,x=Bce({allowEscapeViewBox:s,coordinate:f,offsetTopLeft:p,position:m,reverseDirection:g,tooltipBox:this.state.lastBoundingBox,useTranslate3d:b,viewBox:y}),w=x.cssClasses,S=x.cssProperties,j=AN(AN({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},v);return _.createElement("div",{tabIndex:-1,className:w,style:j,ref:function(E){r.wrapperNode=E}},c)}}])}(A.PureComponent),Wce=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},as={isSsr:Wce()};function rc(e){"@babel/helpers - typeof";return rc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rc(e)}function EN(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 TN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EN(Object(n),!0).forEach(function(r){Ij(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zce(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,w4(r.key),r)}}function Jce(e,t,n){return t&&Zce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function eue(e,t,n){return t=Cm(t),tue(e,S4()?Reflect.construct(t,n||[],Cm(e).constructor):t.apply(e,n))}function tue(e,t){if(t&&(rc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nue(e)}function nue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(S4=function(){return!!e})()}function Cm(e){return Cm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cm(e)}function rue(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&&Zx(e,t)}function Zx(e,t){return Zx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Zx(e,t)}function Ij(e,t,n){return t=w4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w4(e){var t=aue(e,"string");return rc(t)=="symbol"?t:t+""}function aue(e,t){if(rc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function iue(e){return e.dataKey}function sue(e,t){return _.isValidElement(e)?_.cloneElement(e,t):typeof e=="function"?_.createElement(e,t):_.createElement(Dce,t)}var Bn=function(e){function t(){return Qce(this,t),eue(this,t,arguments)}return rue(t,e),Jce(t,[{key:"render",value:function(){var r=this,a=this.props,i=a.active,s=a.allowEscapeViewBox,o=a.animationDuration,l=a.animationEasing,c=a.content,f=a.coordinate,d=a.filterNull,h=a.isAnimationActive,p=a.offset,m=a.payload,g=a.payloadUniqBy,b=a.position,y=a.reverseDirection,v=a.useTranslate3d,x=a.viewBox,w=a.wrapperStyle,S=m??[];d&&S.length&&(S=f4(m.filter(function(O){return O.value!=null&&(O.hide!==!0||r.props.includeHidden)}),g,iue));var j=S.length>0;return _.createElement(Xce,{allowEscapeViewBox:s,animationDuration:o,animationEasing:l,isAnimationActive:h,active:i,coordinate:f,hasPayload:j,offset:p,position:b,reverseDirection:y,useTranslate3d:v,viewBox:x,wrapperStyle:w},sue(c,TN(TN({},this.props),{},{payload:S})))}}])}(A.PureComponent);Ij(Bn,"displayName","Tooltip");Ij(Bn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!as.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 oue=da,lue=function(){return oue.Date.now()},cue=lue,uue=/\s/;function fue(e){for(var t=e.length;t--&&uue.test(e.charAt(t)););return t}var due=fue,hue=due,pue=/^\s+/;function mue(e){return e&&e.slice(0,hue(e)+1).replace(pue,"")}var yue=mue,gue=yue,NN=rs,vue=Bc,CN=NaN,bue=/^[-+]0x[0-9a-f]+$/i,xue=/^0b[01]+$/i,Sue=/^0o[0-7]+$/i,wue=parseInt;function jue(e){if(typeof e=="number")return e;if(vue(e))return CN;if(NN(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=NN(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=gue(e);var n=xue.test(e);return n||Sue.test(e)?wue(e.slice(2),n?2:8):bue.test(e)?CN:+e}var j4=jue,Aue=rs,Sb=cue,_N=j4,Oue="Expected a function",Eue=Math.max,Tue=Math.min;function Nue(e,t,n){var r,a,i,s,o,l,c=0,f=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(Oue);t=_N(t)||0,Aue(n)&&(f=!!n.leading,d="maxWait"in n,i=d?Eue(_N(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function p(j){var O=r,E=a;return r=a=void 0,c=j,s=e.apply(E,O),s}function m(j){return c=j,o=setTimeout(y,t),f?p(j):s}function g(j){var O=j-l,E=j-c,T=t-O;return d?Tue(T,i-E):T}function b(j){var O=j-l,E=j-c;return l===void 0||O>=t||O<0||d&&E>=i}function y(){var j=Sb();if(b(j))return v(j);o=setTimeout(y,g(j))}function v(j){return o=void 0,h&&r?p(j):(r=a=void 0,s)}function x(){o!==void 0&&clearTimeout(o),c=0,r=l=a=o=void 0}function w(){return o===void 0?s:v(Sb())}function S(){var j=Sb(),O=b(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 Cue=Nue,_ue=Cue,Pue=rs,Mue="Expected a function";function Rue(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(Mue);return Pue(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),_ue(e,t,{leading:r,maxWait:t,trailing:a})}var Due=Rue;const A4=Ie(Due);function If(e){"@babel/helpers - typeof";return If=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},If(e)}function PN(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 Dh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PN(Object(n),!0).forEach(function(r){$ue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $ue(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=Lue(e,"string");return If(t)=="symbol"?t:t+""}function Lue(e,t){if(If(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(If(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zue(e,t){return Fue(e)||Uue(e,t)||Bue(e,t)||Iue()}function Iue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bue(e,t){if(e){if(typeof e=="string")return MN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MN(e,t)}}function MN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Uue(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,c=!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){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function Fue(e){if(Array.isArray(e))return e}var $h=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,c=e.minWidth,f=c===void 0?0:c,d=e.minHeight,h=e.maxHeight,p=e.children,m=e.debounce,g=m===void 0?0:m,b=e.id,y=e.className,v=e.onResize,x=e.style,w=x===void 0?{}:x,S=A.useRef(null),j=A.useRef();j.current=v,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}),E=zue(O,2),T=E[0],N=E[1],M=A.useCallback(function(L,D){N(function($){var P=Math.round(L),k=Math.round(D);return $.containerWidth===P&&$.containerHeight===k?$:{containerWidth:P,containerHeight:k}})},[]);A.useEffect(function(){var L=function(F){var H,Y=F[0].contentRect,q=Y.width,te=Y.height;M(q,te),(H=j.current)===null||H===void 0||H.call(j,q,te)};g>0&&(L=A4(L,g,{trailing:!0,leading:!1}));var D=new ResizeObserver(L),$=S.current.getBoundingClientRect(),P=$.width,k=$.height;return M(P,k),D.observe(S.current),function(){D.disconnect()}},[M,g]);var C=A.useMemo(function(){var L=T.containerWidth,D=T.containerHeight;if(L<0||D<0)return null;kr(Ns(s)||Ns(l),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,s,l),kr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var $=Ns(s)?L:s,P=Ns(l)?D:l;n&&n>0&&($?P=$/n:P&&($=P*n),h&&P>h&&(P=h)),kr($>0||P>0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,$,P,s,l,f,d,n);var k=!Array.isArray(p)&&Fa(p.type).endsWith("Chart");return _.Children.map(p,function(I){return _.isValidElement(I)?A.cloneElement(I,Dh({width:$,height:P},k?{style:Dh({height:"100%",width:"100%",maxHeight:P,maxWidth:$},I.props.style)}:{})):I})},[n,p,l,h,d,f,T,s]);return _.createElement("div",{id:b?"".concat(b):void 0,className:ve("recharts-responsive-container",y),style:Dh(Dh({},w),{},{width:s,height:l,minWidth:f,minHeight:d,maxHeight:h}),ref:S},C)}),Tg=function(t){return null};Tg.displayName="Cell";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)}function RN(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 Jx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RN(Object(n),!0).forEach(function(r){Vue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vue(e,t,n){return t=Hue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hue(e){var t=que(e,"string");return Bf(t)=="symbol"?t:t+""}function que(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)}var Ro={widthCache:{},cacheCount:0},Kue=2e3,Gue={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},DN="recharts_measurement_span";function Yue(e){var t=Jx({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var tf=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||as.isSsr)return{width:0,height:0};var r=Yue(n),a=JSON.stringify({text:t,copyStyle:r});if(Ro.widthCache[a])return Ro.widthCache[a];try{var i=document.getElementById(DN);i||(i=document.createElement("span"),i.setAttribute("id",DN),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var s=Jx(Jx({},Gue),r);Object.assign(i.style,s),i.textContent="".concat(t);var o=i.getBoundingClientRect(),l={width:o.width,height:o.height};return Ro.widthCache[a]=l,++Ro.cacheCount>Kue&&(Ro.cacheCount=0,Ro.widthCache={}),l}catch{return{width:0,height:0}}},Xue=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Uf(e){"@babel/helpers - typeof";return Uf=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},Uf(e)}function _m(e,t){return Jue(e)||Zue(e,t)||Que(e,t)||Wue()}function Wue(){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 Que(e,t){if(e){if(typeof e=="string")return $N(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 $N(e,t)}}function $N(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 Zue(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,c=!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){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function Jue(e){if(Array.isArray(e))return e}function efe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kN(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,nfe(r.key),r)}}function tfe(e,t,n){return t&&kN(e.prototype,t),n&&kN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nfe(e){var t=rfe(e,"string");return Uf(t)=="symbol"?t:t+""}function rfe(e,t){if(Uf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var LN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,zN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,afe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,ife=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,O4={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},sfe=Object.keys(O4),sl="NaN";function ofe(e,t){return e*O4[t]}var kh=function(){function e(t,n){efe(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!afe.test(n)&&(this.num=NaN,this.unit=""),sfe.includes(n)&&(this.num=ofe(t,n),this.unit="px")}return tfe(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=ife.exec(n))!==null&&r!==void 0?r:[],i=_m(a,3),s=i[1],o=i[2];return new e(parseFloat(s),o??"")}}])}();function E4(e){if(e.includes(sl))return sl;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=LN.exec(t))!==null&&n!==void 0?n:[],a=_m(r,4),i=a[1],s=a[2],o=a[3],l=kh.parse(i??""),c=kh.parse(o??""),f=s==="*"?l.multiply(c):l.divide(c);if(f.isNaN())return sl;t=t.replace(LN,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,h=(d=zN.exec(t))!==null&&d!==void 0?d:[],p=_m(h,4),m=p[1],g=p[2],b=p[3],y=kh.parse(m??""),v=kh.parse(b??""),x=g==="+"?y.add(v):y.subtract(v);if(x.isNaN())return sl;t=t.replace(zN,x.toString())}return t}var IN=/\(([^()]*)\)/;function lfe(e){for(var t=e;t.includes("(");){var n=IN.exec(t),r=_m(n,2),a=r[1];t=t.replace(IN,E4(a))}return t}function cfe(e){var t=e.replace(/\s+/g,"");return t=lfe(t),t=E4(t),t}function ufe(e){try{return cfe(e)}catch{return sl}}function wb(e){var t=ufe(e.slice(5,-1));return t===sl?"":t}var ffe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],dfe=["dx","dy","angle","className","breakAll"];function e1(){return e1=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},e1.apply(this,arguments)}function BN(e,t){if(e==null)return{};var n=hfe(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 hfe(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 UN(e,t){return gfe(e)||yfe(e,t)||mfe(e,t)||pfe()}function pfe(){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 mfe(e,t){if(e){if(typeof e=="string")return FN(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 FN(e,t)}}function FN(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 yfe(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,c=!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){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function gfe(e){if(Array.isArray(e))return e}var T4=/[ \f\n\r\t\v\u2028\u2029]+/,N4=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(T4));var s=i.map(function(l){return{word:l,width:tf(l,a).width}}),o=r?0:tf(" ",a).width;return{wordsWithComputedWidth:s,spaceWidth:o}}catch{return null}},vfe=function(t,n,r,a,i){var s=t.maxLines,o=t.children,l=t.style,c=t.breakAll,f=K(s),d=o,h=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return $.reduce(function(P,k){var I=k.word,F=k.width,H=P[P.length-1];if(H&&(a==null||i||H.width+F+r<Number(a)))H.words.push(I),H.width+=F+r;else{var Y={words:[I],width:F};P.push(Y)}return P},[])},p=h(n),m=function($){return $.reduce(function(P,k){return P.width>k.width?P:k})};if(!f)return p;for(var g="…",b=function($){var P=d.slice(0,$),k=N4({breakAll:c,style:l,children:P+g}).wordsWithComputedWidth,I=h(k),F=I.length>s||m(I).width>Number(a);return[F,I]},y=0,v=d.length-1,x=0,w;y<=v&&x<=d.length-1;){var S=Math.floor((y+v)/2),j=S-1,O=b(j),E=UN(O,2),T=E[0],N=E[1],M=b(S),C=UN(M,1),L=C[0];if(!T&&!L&&(y=S+1),T&&L&&(v=S-1),!T&&L){w=N;break}x++}return w||p},VN=function(t){var n=me(t)?[]:t.toString().split(T4);return[{words:n}]},bfe=function(t){var n=t.width,r=t.scaleToFit,a=t.children,i=t.style,s=t.breakAll,o=t.maxLines;if((n||r)&&!as.isSsr){var l,c,f=N4({breakAll:s,children:a,style:i});if(f){var d=f.wordsWithComputedWidth,h=f.spaceWidth;l=d,c=h}else return VN(a);return vfe({breakAll:s,children:a,maxLines:o,style:i},l,c,n,r)}return VN(a)},HN="#808080",co=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,c=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,b=t.fill,y=b===void 0?HN:b,v=BN(t,ffe),x=A.useMemo(function(){return bfe({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:d,style:v.style,width:v.width})},[v.breakAll,v.children,v.maxLines,d,v.style,v.width]),w=v.dx,S=v.dy,j=v.angle,O=v.className,E=v.breakAll,T=BN(v,dfe);if(!$t(r)||!$t(i))return null;var N=r+(K(w)?w:0),M=i+(K(S)?S:0),C;switch(g){case"start":C=wb("calc(".concat(c,")"));break;case"middle":C=wb("calc(".concat((x.length-1)/2," * -").concat(o," + (").concat(c," / 2))"));break;default:C=wb("calc(".concat(x.length-1," * -").concat(o,")"));break}var L=[];if(d){var D=x[0].width,$=v.width;L.push("scale(".concat((K($)?$/D:1)/D,")"))}return j&&L.push("rotate(".concat(j,", ").concat(N,", ").concat(M,")")),L.length&&(T.transform=L.join(" ")),_.createElement("text",e1({},ie(T,!0),{x:N,y:M,className:ve("recharts-text",O),textAnchor:p,fill:y.includes("url")?HN:y}),x.map(function(P,k){var I=P.words.join(E?"":" ");return _.createElement("tspan",{x:N,dy:k===0?C:o,key:"".concat(I,"-").concat(k)},I)}))};function Ki(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function xfe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Bj(e){let t,n,r;e.length!==2?(t=Ki,n=(o,l)=>Ki(e(o),l),r=(o,l)=>e(o)-l):(t=e===Ki||e===xfe?e:Sfe,n=e,r=e);function a(o,l,c=0,f=o.length){if(c<f){if(t(l,l)!==0)return f;do{const d=c+f>>>1;n(o[d],l)<0?c=d+1:f=d}while(c<f)}return c}function i(o,l,c=0,f=o.length){if(c<f){if(t(l,l)!==0)return f;do{const d=c+f>>>1;n(o[d],l)<=0?c=d+1:f=d}while(c<f)}return c}function s(o,l,c=0,f=o.length){const d=a(o,l,c,f-1);return d>c&&r(o[d-1],l)>-r(o[d],l)?d-1:d}return{left:a,center:s,right:i}}function Sfe(){return 0}function C4(e){return e===null?NaN:+e}function*wfe(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const jfe=Bj(Ki),Xd=jfe.right;Bj(C4).center;class qN extends Map{constructor(t,n=Efe){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(KN(this,t))}has(t){return super.has(KN(this,t))}set(t,n){return super.set(Afe(this,t),n)}delete(t){return super.delete(Ofe(this,t))}}function KN({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Afe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Ofe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Efe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Tfe(e=Ki){if(e===Ki)return _4;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 _4(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Nfe=Math.sqrt(50),Cfe=Math.sqrt(10),_fe=Math.sqrt(2);function Pm(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>=Nfe?10:i>=Cfe?5:i>=_fe?2:1;let o,l,c;return a<0?(c=Math.pow(10,-a)/s,o=Math.round(e*c),l=Math.round(t*c),o/c<e&&++o,l/c>t&&--l,c=-c):(c=Math.pow(10,a)*s,o=Math.round(e/c),l=Math.round(t/c),o*c<e&&++o,l*c>t&&--l),l<o&&.5<=n&&n<2?Pm(e,t,n*2):[o,l,c]}function t1(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?Pm(t,e,n):Pm(e,t,n);if(!(i>=a))return[];const o=i-a+1,l=new Array(o);if(r)if(s<0)for(let c=0;c<o;++c)l[c]=(i-c)/-s;else for(let c=0;c<o;++c)l[c]=(i-c)*s;else if(s<0)for(let c=0;c<o;++c)l[c]=(a+c)/-s;else for(let c=0;c<o;++c)l[c]=(a+c)*s;return l}function n1(e,t,n){return t=+t,e=+e,n=+n,Pm(e,t,n)[2]}function r1(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?n1(t,e,n):n1(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function GN(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function YN(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function P4(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?_4:Tfe(a);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,f=Math.log(l),d=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*d*(l-d)/l)*(c-l/2<0?-1:1),p=Math.max(n,Math.floor(t-c*d/l+h)),m=Math.min(r,Math.floor(t+(l-c)*d/l+h));P4(e,t,p,m,a)}const i=e[t];let s=n,o=r;for(pu(e,n,t),a(e[r],i)>0&&pu(e,n,r);s<o;){for(pu(e,s,o),++s,--o;a(e[s],i)<0;)++s;for(;a(e[o],i)>0;)--o}a(e[n],i)===0?pu(e,n,o):(++o,pu(e,o,r)),o<=t&&(n=o+1),t<=o&&(r=o-1)}return e}function pu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Pfe(e,t,n){if(e=Float64Array.from(wfe(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return YN(e);if(t>=1)return GN(e);var r,a=(r-1)*t,i=Math.floor(a),s=GN(P4(e,i).subarray(0,i+1)),o=YN(e.subarray(i+1));return s+(o-s)*(a-i)}}function Mfe(e,t,n=C4){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 Rfe(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 Or(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ii(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 a1=Symbol("implicit");function Uj(){var e=new qN,t=[],n=[],r=a1;function a(i){let s=e.get(i);if(s===void 0){if(r!==a1)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 qN;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 Uj(t,n).unknown(r)},Or.apply(a,arguments),a}function Ff(){var e=Uj().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,s,o=!1,l=0,c=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+c*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 b=Rfe(h).map(function(y){return m+i*y});return n(p?b.reverse():b)}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,c=+h),d()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),d()):l},e.paddingOuter=function(h){return arguments.length?(c=+h,d()):c},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),d()):f},e.copy=function(){return Ff(t(),[r,a]).round(o).paddingInner(l).paddingOuter(c).align(f)},Or.apply(d(),arguments)}function M4(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return M4(t())},e}function nf(){return M4(Ff.apply(null,arguments).paddingInner(1))}function Fj(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function R4(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Wd(){}var Vf=.7,Mm=1/Vf,Sl="\\s*([+-]?\\d+)\\s*",Hf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ia="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Dfe=/^#([0-9a-f]{3,8})$/,$fe=new RegExp(`^rgb\\(${Sl},${Sl},${Sl}\\)$`),kfe=new RegExp(`^rgb\\(${ia},${ia},${ia}\\)$`),Lfe=new RegExp(`^rgba\\(${Sl},${Sl},${Sl},${Hf}\\)$`),zfe=new RegExp(`^rgba\\(${ia},${ia},${ia},${Hf}\\)$`),Ife=new RegExp(`^hsl\\(${Hf},${ia},${ia}\\)$`),Bfe=new RegExp(`^hsla\\(${Hf},${ia},${ia},${Hf}\\)$`),XN={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};Fj(Wd,qf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:WN,formatHex:WN,formatHex8:Ufe,formatHsl:Ffe,formatRgb:QN,toString:QN});function WN(){return this.rgb().formatHex()}function Ufe(){return this.rgb().formatHex8()}function Ffe(){return D4(this).formatHsl()}function QN(){return this.rgb().formatRgb()}function qf(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Dfe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ZN(t):n===3?new Tn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Lh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Lh(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=$fe.exec(e))?new Tn(t[1],t[2],t[3],1):(t=kfe.exec(e))?new Tn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Lfe.exec(e))?Lh(t[1],t[2],t[3],t[4]):(t=zfe.exec(e))?Lh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Ife.exec(e))?tC(t[1],t[2]/100,t[3]/100,1):(t=Bfe.exec(e))?tC(t[1],t[2]/100,t[3]/100,t[4]):XN.hasOwnProperty(e)?ZN(XN[e]):e==="transparent"?new Tn(NaN,NaN,NaN,0):null}function ZN(e){return new Tn(e>>16&255,e>>8&255,e&255,1)}function Lh(e,t,n,r){return r<=0&&(e=t=n=NaN),new Tn(e,t,n,r)}function Vfe(e){return e instanceof Wd||(e=qf(e)),e?(e=e.rgb(),new Tn(e.r,e.g,e.b,e.opacity)):new Tn}function i1(e,t,n,r){return arguments.length===1?Vfe(e):new Tn(e,t,n,r??1)}function Tn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Fj(Tn,i1,R4(Wd,{brighter(e){return e=e==null?Mm:Math.pow(Mm,e),new Tn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Vf:Math.pow(Vf,e),new Tn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Tn(Xs(this.r),Xs(this.g),Xs(this.b),Rm(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:JN,formatHex:JN,formatHex8:Hfe,formatRgb:eC,toString:eC}));function JN(){return`#${Cs(this.r)}${Cs(this.g)}${Cs(this.b)}`}function Hfe(){return`#${Cs(this.r)}${Cs(this.g)}${Cs(this.b)}${Cs((isNaN(this.opacity)?1:this.opacity)*255)}`}function eC(){const e=Rm(this.opacity);return`${e===1?"rgb(":"rgba("}${Xs(this.r)}, ${Xs(this.g)}, ${Xs(this.b)}${e===1?")":`, ${e})`}`}function Rm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Xs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Cs(e){return e=Xs(e),(e<16?"0":"")+e.toString(16)}function tC(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Dr(e,t,n,r)}function D4(e){if(e instanceof Dr)return new Dr(e.h,e.s,e.l,e.opacity);if(e instanceof Wd||(e=qf(e)),!e)return new Dr;if(e instanceof Dr)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 Dr(s,o,l,e.opacity)}function qfe(e,t,n,r){return arguments.length===1?D4(e):new Dr(e,t,n,r??1)}function Dr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Fj(Dr,qfe,R4(Wd,{brighter(e){return e=e==null?Mm:Math.pow(Mm,e),new Dr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Vf:Math.pow(Vf,e),new Dr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new Tn(jb(e>=240?e-240:e+120,a,r),jb(e,a,r),jb(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Dr(nC(this.h),zh(this.s),zh(this.l),Rm(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=Rm(this.opacity);return`${e===1?"hsl(":"hsla("}${nC(this.h)}, ${zh(this.s)*100}%, ${zh(this.l)*100}%${e===1?")":`, ${e})`}`}}));function nC(e){return e=(e||0)%360,e<0?e+360:e}function zh(e){return Math.max(0,Math.min(1,e||0))}function jb(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 Vj=e=>()=>e;function Kfe(e,t){return function(n){return e+n*t}}function Gfe(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 Yfe(e){return(e=+e)==1?$4:function(t,n){return n-t?Gfe(t,n,e):Vj(isNaN(t)?n:t)}}function $4(e,t){var n=t-e;return n?Kfe(e,n):Vj(isNaN(e)?t:e)}const rC=function e(t){var n=Yfe(t);function r(a,i){var s=n((a=i1(a)).r,(i=i1(i)).r),o=n(a.g,i.g),l=n(a.b,i.b),c=$4(a.opacity,i.opacity);return function(f){return a.r=s(f),a.g=o(f),a.b=l(f),a.opacity=c(f),a+""}}return r.gamma=e,r}(1);function Xfe(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 Wfe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Qfe(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]=Xc(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 Zfe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Dm(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Jfe(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]=Xc(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var s1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ab=new RegExp(s1.source,"g");function ede(e){return function(){return e}}function tde(e){return function(t){return e(t)+""}}function nde(e,t){var n=s1.lastIndex=Ab.lastIndex=0,r,a,i,s=-1,o=[],l=[];for(e=e+"",t=t+"";(r=s1.exec(e))&&(a=Ab.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:Dm(r,a)})),n=Ab.lastIndex;return n<t.length&&(i=t.slice(n),o[s]?o[s]+=i:o[++s]=i),o.length<2?l[0]?tde(l[0].x):ede(t):(t=l.length,function(c){for(var f=0,d;f<t;++f)o[(d=l[f]).i]=d.x(c);return o.join("")})}function Xc(e,t){var n=typeof t,r;return t==null||n==="boolean"?Vj(t):(n==="number"?Dm:n==="string"?(r=qf(t))?(t=r,rC):nde:t instanceof qf?rC:t instanceof Date?Zfe:Wfe(t)?Xfe:Array.isArray(t)?Qfe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Jfe:Dm)(e,t)}function Hj(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function rde(e,t){t===void 0&&(t=e,e=Xc);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 ade(e){return function(){return e}}function $m(e){return+e}var aC=[0,1];function mn(e){return e}function o1(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:ade(isNaN(t)?NaN:.5)}function ide(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function sde(e,t,n){var r=e[0],a=e[1],i=t[0],s=t[1];return a<r?(r=o1(a,r),i=n(s,i)):(r=o1(r,a),i=n(i,s)),function(o){return i(r(o))}}function ode(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]=o1(e[s],e[s+1]),i[s]=n(t[s],t[s+1]);return function(o){var l=Xd(e,o,1,r)-1;return i[l](a[l](o))}}function Qd(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ng(){var e=aC,t=aC,n=Xc,r,a,i,s=mn,o,l,c;function f(){var h=Math.min(e.length,t.length);return s!==mn&&(s=ide(e[0],e[h-1])),o=h>2?ode:sde,l=c=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((c||(c=o(t,e.map(r),Dm)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,$m),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=Hj,f()},d.clamp=function(h){return arguments.length?(s=h?!0:mn,f()):s!==mn},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 qj(){return Ng()(mn,mn)}function lde(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function km(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 ac(e){return e=km(Math.abs(e)),e?e[1]:NaN}function cde(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 ude(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var fde=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Kf(e){if(!(t=fde.exec(e)))throw new Error("invalid format: "+e);var t;return new Kj({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]})}Kf.prototype=Kj.prototype;function Kj(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+""}Kj.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 dde(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 Lm;function hde(e,t){var n=km(e,t);if(!n)return Lm=void 0,e.toPrecision(t);var r=n[0],a=n[1],i=a-(Lm=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")+km(e,Math.max(0,t+i-1))[0]}function iC(e,t){var n=km(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 sC={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:lde,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)=>iC(e*100,t),r:iC,s:hde,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function oC(e){return e}var lC=Array.prototype.map,cC=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function pde(e){var t=e.grouping===void 0||e.thousands===void 0?oC:cde(lC.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?oC:ude(lC.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 c(d,h){d=Kf(d);var p=d.fill,m=d.align,g=d.sign,b=d.symbol,y=d.zero,v=d.width,x=d.comma,w=d.precision,S=d.trim,j=d.type;j==="n"?(x=!0,j="g"):sC[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:"")+(b==="$"?n:b==="#"&&/[boxX]/.test(j)?"0"+j.toLowerCase():""),E=(b==="$"?r:/[%p]/.test(j)?s:"")+(h&&h.suffix!==void 0?h.suffix:""),T=sC[j],N=/[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 M(C){var L=O,D=E,$,P,k;if(j==="c")D=T(C)+D,C="";else{C=+C;var I=C<0||1/C<0;if(C=isNaN(C)?l:T(Math.abs(C),w),S&&(C=dde(C)),I&&+C==0&&g!=="+"&&(I=!1),L=(I?g==="("?g:o:g==="-"||g==="("?"":g)+L,D=(j==="s"&&!isNaN(C)&&Lm!==void 0?cC[8+Lm/3]:"")+D+(I&&g==="("?")":""),N){for($=-1,P=C.length;++$<P;)if(k=C.charCodeAt($),48>k||k>57){D=(k===46?a+C.slice($+1):C.slice($))+D,C=C.slice(0,$);break}}}x&&!y&&(C=t(C,1/0));var F=L.length+C.length+D.length,H=F<v?new Array(v-F+1).join(p):"";switch(x&&y&&(C=t(H+C,H.length?v-D.length:1/0),H=""),m){case"<":C=L+C+D+H;break;case"=":C=L+H+C+D;break;case"^":C=H.slice(0,F=H.length>>1)+L+C+D+H.slice(F);break;default:C=H+L+C+D;break}return i(C)}return M.toString=function(){return d+""},M}function f(d,h){var p=Math.max(-8,Math.min(8,Math.floor(ac(h)/3)))*3,m=Math.pow(10,-p),g=c((d=Kf(d),d.type="f",d),{suffix:cC[8+p/3]});return function(b){return g(m*b)}}return{format:c,formatPrefix:f}}var Ih,Gj,k4;mde({thousands:",",grouping:[3],currency:["$",""]});function mde(e){return Ih=pde(e),Gj=Ih.format,k4=Ih.formatPrefix,Ih}function yde(e){return Math.max(0,-ac(Math.abs(e)))}function gde(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ac(t)/3)))*3-ac(Math.abs(e)))}function vde(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ac(t)-ac(e))+1}function L4(e,t,n,r){var a=r1(e,t,n),i;switch(r=Kf(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=gde(a,s))&&(r.precision=i),k4(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=vde(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=yde(a))&&(r.precision=i-(r.type==="%")*2);break}}return Gj(r)}function is(e){var t=e.domain;return e.ticks=function(n){var r=t();return t1(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return L4(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,c,f=10;for(o<s&&(c=s,s=o,o=c,c=a,a=i,i=c);f-- >0;){if(c=n1(s,o,n),c===l)return r[a]=s,r[i]=o,t(r);if(c>0)s=Math.floor(s/c)*c,o=Math.ceil(o/c)*c;else if(c<0)s=Math.ceil(s*c)/c,o=Math.floor(o*c)/c;else break;l=c}return e},e}function zm(){var e=qj();return e.copy=function(){return Qd(e,zm())},Or.apply(e,arguments),is(e)}function z4(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,$m),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return z4(e).unknown(t)},e=arguments.length?Array.from(e,$m):[0,1],is(n)}function I4(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 uC(e){return Math.log(e)}function fC(e){return Math.exp(e)}function bde(e){return-Math.log(-e)}function xde(e){return-Math.exp(-e)}function Sde(e){return isFinite(e)?+("1e"+e):e<0?0:e}function wde(e){return e===10?Sde:e===Math.E?Math.exp:t=>Math.pow(e,t)}function jde(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 dC(e){return(t,n)=>-e(-t,n)}function Yj(e){const t=e(uC,fC),n=t.domain;let r=10,a,i;function s(){return a=jde(r),i=wde(r),n()[0]<0?(a=dC(a),i=dC(i),e(bde,xde)):e(uC,fC),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 c=l[0],f=l[l.length-1];const d=f<c;d&&([c,f]=[f,c]);let h=a(c),p=a(f),m,g;const b=o==null?10:+o;let y=[];if(!(r%1)&&p-h<b){if(h=Math.floor(h),p=Math.ceil(p),c>0){for(;h<=p;++h)for(m=1;m<r;++m)if(g=h<0?m/i(-h):m*i(h),!(g<c)){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<c)){if(g>f)break;y.push(g)}y.length*2<b&&(y=t1(c,f,b))}else y=t1(h,p,Math.min(p-h,b)).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=Kf(l)).precision==null&&(l.trim=!0),l=Gj(l)),o===1/0)return l;const c=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<=c?l(f):""}},t.nice=()=>n(I4(n(),{floor:o=>i(Math.floor(a(o))),ceil:o=>i(Math.ceil(a(o)))})),t}function B4(){const e=Yj(Ng()).domain([1,10]);return e.copy=()=>Qd(e,B4()).base(e.base()),Or.apply(e,arguments),e}function hC(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function pC(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Xj(e){var t=1,n=e(hC(t),pC(t));return n.constant=function(r){return arguments.length?e(hC(t=+r),pC(t)):t},is(n)}function U4(){var e=Xj(Ng());return e.copy=function(){return Qd(e,U4()).constant(e.constant())},Or.apply(e,arguments)}function mC(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Ade(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Ode(e){return e<0?-e*e:e*e}function Wj(e){var t=e(mn,mn),n=1;function r(){return n===1?e(mn,mn):n===.5?e(Ade,Ode):e(mC(n),mC(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},is(t)}function Qj(){var e=Wj(Ng());return e.copy=function(){return Qd(e,Qj()).exponent(e.exponent())},Or.apply(e,arguments),e}function Ede(){return Qj.apply(null,arguments).exponent(.5)}function yC(e){return Math.sign(e)*e*e}function Tde(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function F4(){var e=qj(),t=[0,1],n=!1,r;function a(i){var s=Tde(e(i));return isNaN(s)?r:n?Math.round(s):s}return a.invert=function(i){return e.invert(yC(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,$m)).map(yC)),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 F4(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Or.apply(a,arguments),is(a)}function V4(){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]=Mfe(e,s/o);return i}function i(s){return s==null||isNaN(s=+s)?r:t[Xd(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(Ki),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 V4().domain(e).range(t).unknown(r)},Or.apply(i,arguments)}function H4(){var e=0,t=1,n=1,r=[.5],a=[0,1],i;function s(l){return l!=null&&l<=l?a[Xd(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 c=a.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},s.unknown=function(l){return arguments.length&&(i=l),s},s.thresholds=function(){return r.slice()},s.copy=function(){return H4().domain([e,t]).range(a).unknown(i)},Or.apply(is(s),arguments)}function q4(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[Xd(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 q4().domain(e).range(t).unknown(n)},Or.apply(a,arguments)}const Ob=new Date,Eb=new Date;function Lt(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 c;do l.push(c=new Date(+i)),t(i,o),e(i);while(c<i&&i<s);return l},a.filter=i=>Lt(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)=>(Ob.setTime(+i),Eb.setTime(+s),e(Ob),e(Eb),Math.floor(n(Ob,Eb))),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 Im=Lt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Im.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Lt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Im);Im.range;const Ma=1e3,mr=Ma*60,Ra=mr*60,Qa=Ra*24,Zj=Qa*7,gC=Qa*30,Tb=Qa*365,_s=Lt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ma)},(e,t)=>(t-e)/Ma,e=>e.getUTCSeconds());_s.range;const Jj=Lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ma)},(e,t)=>{e.setTime(+e+t*mr)},(e,t)=>(t-e)/mr,e=>e.getMinutes());Jj.range;const eA=Lt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*mr)},(e,t)=>(t-e)/mr,e=>e.getUTCMinutes());eA.range;const tA=Lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ma-e.getMinutes()*mr)},(e,t)=>{e.setTime(+e+t*Ra)},(e,t)=>(t-e)/Ra,e=>e.getHours());tA.range;const nA=Lt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ra)},(e,t)=>(t-e)/Ra,e=>e.getUTCHours());nA.range;const Zd=Lt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*mr)/Qa,e=>e.getDate()-1);Zd.range;const Cg=Lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Qa,e=>e.getUTCDate()-1);Cg.range;const K4=Lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Qa,e=>Math.floor(e/Qa));K4.range;function Ao(e){return Lt(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())*mr)/Zj)}const _g=Ao(0),Bm=Ao(1),Nde=Ao(2),Cde=Ao(3),ic=Ao(4),_de=Ao(5),Pde=Ao(6);_g.range;Bm.range;Nde.range;Cde.range;ic.range;_de.range;Pde.range;function Oo(e){return Lt(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)/Zj)}const Pg=Oo(0),Um=Oo(1),Mde=Oo(2),Rde=Oo(3),sc=Oo(4),Dde=Oo(5),$de=Oo(6);Pg.range;Um.range;Mde.range;Rde.range;sc.range;Dde.range;$de.range;const rA=Lt(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());rA.range;const aA=Lt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());aA.range;const Za=Lt(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());Za.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Lt(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)});Za.range;const Ja=Lt(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());Ja.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Lt(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)});Ja.range;function G4(e,t,n,r,a,i){const s=[[_s,1,Ma],[_s,5,5*Ma],[_s,15,15*Ma],[_s,30,30*Ma],[i,1,mr],[i,5,5*mr],[i,15,15*mr],[i,30,30*mr],[a,1,Ra],[a,3,3*Ra],[a,6,6*Ra],[a,12,12*Ra],[r,1,Qa],[r,2,2*Qa],[n,1,Zj],[t,1,gC],[t,3,3*gC],[e,1,Tb]];function o(c,f,d){const h=f<c;h&&([c,f]=[f,c]);const p=d&&typeof d.range=="function"?d:l(c,f,d),m=p?p.range(c,+f+1):[];return h?m.reverse():m}function l(c,f,d){const h=Math.abs(f-c)/d,p=Bj(([,,b])=>b).right(s,h);if(p===s.length)return e.every(r1(c/Tb,f/Tb,d));if(p===0)return Im.every(Math.max(r1(c,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[kde,Lde]=G4(Ja,aA,Pg,K4,nA,eA),[zde,Ide]=G4(Za,rA,_g,Zd,tA,Jj);function Nb(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 Cb(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function mu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Bde(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,c=yu(a),f=gu(a),d=yu(i),h=gu(i),p=yu(s),m=gu(s),g=yu(o),b=gu(o),y=yu(l),v=gu(l),x={a:k,A:I,b:F,B:H,c:null,d:jC,e:jC,f:che,g:bhe,G:She,H:she,I:ohe,j:lhe,L:Y4,m:uhe,M:fhe,p:Y,q,Q:EC,s:TC,S:dhe,u:hhe,U:phe,V:mhe,w:yhe,W:ghe,x:null,X:null,y:vhe,Y:xhe,Z:whe,"%":OC},w={a:te,A:Z,b:ye,B:J,c:null,d:AC,e:AC,f:Ehe,g:khe,G:zhe,H:jhe,I:Ahe,j:Ohe,L:W4,m:The,M:Nhe,p:st,q:Ve,Q:EC,s:TC,S:Che,u:_he,U:Phe,V:Mhe,w:Rhe,W:Dhe,x:null,X:null,y:$he,Y:Lhe,Z:Ihe,"%":OC},S={a:N,A:M,b:C,B:L,c:D,d:SC,e:SC,f:nhe,g:xC,G:bC,H:wC,I:wC,j:Zde,L:the,m:Qde,M:Jde,p:T,q:Wde,Q:ahe,s:ihe,S:ehe,u:qde,U:Kde,V:Gde,w:Hde,W:Yde,x:$,X:P,y:xC,Y:bC,Z:Xde,"%":rhe};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(G,oe){return function(X){var V=[],_e=-1,ge=0,Xe=G.length,ot,dt,Rn;for(X instanceof Date||(X=new Date(+X));++_e<Xe;)G.charCodeAt(_e)===37&&(V.push(G.slice(ge,_e)),(dt=vC[ot=G.charAt(++_e)])!=null?ot=G.charAt(++_e):dt=ot==="e"?" ":"0",(Rn=oe[ot])&&(ot=Rn(X,dt)),V.push(ot),ge=_e+1);return V.push(G.slice(ge,_e)),V.join("")}}function O(G,oe){return function(X){var V=mu(1900,void 0,1),_e=E(V,G,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=Cb(mu(V.y,0,1)),Xe=ge.getUTCDay(),ge=Xe>4||Xe===0?Um.ceil(ge):Um(ge),ge=Cg.offset(ge,(V.V-1)*7),V.y=ge.getUTCFullYear(),V.m=ge.getUTCMonth(),V.d=ge.getUTCDate()+(V.w+6)%7):(ge=Nb(mu(V.y,0,1)),Xe=ge.getDay(),ge=Xe>4||Xe===0?Bm.ceil(ge):Bm(ge),ge=Zd.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?Cb(mu(V.y,0,1)).getUTCDay():Nb(mu(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,Cb(V)):Nb(V)}}function E(G,oe,X,V){for(var _e=0,ge=oe.length,Xe=X.length,ot,dt;_e<ge;){if(V>=Xe)return-1;if(ot=oe.charCodeAt(_e++),ot===37){if(ot=oe.charAt(_e++),dt=S[ot in vC?oe.charAt(_e++):ot],!dt||(V=dt(G,X,V))<0)return-1}else if(ot!=X.charCodeAt(V++))return-1}return V}function T(G,oe,X){var V=c.exec(oe.slice(X));return V?(G.p=f.get(V[0].toLowerCase()),X+V[0].length):-1}function N(G,oe,X){var V=p.exec(oe.slice(X));return V?(G.w=m.get(V[0].toLowerCase()),X+V[0].length):-1}function M(G,oe,X){var V=d.exec(oe.slice(X));return V?(G.w=h.get(V[0].toLowerCase()),X+V[0].length):-1}function C(G,oe,X){var V=y.exec(oe.slice(X));return V?(G.m=v.get(V[0].toLowerCase()),X+V[0].length):-1}function L(G,oe,X){var V=g.exec(oe.slice(X));return V?(G.m=b.get(V[0].toLowerCase()),X+V[0].length):-1}function D(G,oe,X){return E(G,t,oe,X)}function $(G,oe,X){return E(G,n,oe,X)}function P(G,oe,X){return E(G,r,oe,X)}function k(G){return s[G.getDay()]}function I(G){return i[G.getDay()]}function F(G){return l[G.getMonth()]}function H(G){return o[G.getMonth()]}function Y(G){return a[+(G.getHours()>=12)]}function q(G){return 1+~~(G.getMonth()/3)}function te(G){return s[G.getUTCDay()]}function Z(G){return i[G.getUTCDay()]}function ye(G){return l[G.getUTCMonth()]}function J(G){return o[G.getUTCMonth()]}function st(G){return a[+(G.getUTCHours()>=12)]}function Ve(G){return 1+~~(G.getUTCMonth()/3)}return{format:function(G){var oe=j(G+="",x);return oe.toString=function(){return G},oe},parse:function(G){var oe=O(G+="",!1);return oe.toString=function(){return G},oe},utcFormat:function(G){var oe=j(G+="",w);return oe.toString=function(){return G},oe},utcParse:function(G){var oe=O(G+="",!0);return oe.toString=function(){return G},oe}}}var vC={"-":"",_:" ",0:"0"},Gt=/^\s*\d+/,Ude=/^%/,Fde=/[\\^$*+?|[\]().{}]/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 Vde(e){return e.replace(Fde,"\\$&")}function yu(e){return new RegExp("^(?:"+e.map(Vde).join("|")+")","i")}function gu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Hde(e,t,n){var r=Gt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function qde(e,t,n){var r=Gt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Kde(e,t,n){var r=Gt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Gde(e,t,n){var r=Gt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Yde(e,t,n){var r=Gt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function bC(e,t,n){var r=Gt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function xC(e,t,n){var r=Gt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Xde(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 Wde(e,t,n){var r=Gt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Qde(e,t,n){var r=Gt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function SC(e,t,n){var r=Gt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Zde(e,t,n){var r=Gt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function wC(e,t,n){var r=Gt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Jde(e,t,n){var r=Gt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ehe(e,t,n){var r=Gt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function the(e,t,n){var r=Gt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function nhe(e,t,n){var r=Gt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function rhe(e,t,n){var r=Ude.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ahe(e,t,n){var r=Gt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ihe(e,t,n){var r=Gt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function jC(e,t){return Pe(e.getDate(),t,2)}function she(e,t){return Pe(e.getHours(),t,2)}function ohe(e,t){return Pe(e.getHours()%12||12,t,2)}function lhe(e,t){return Pe(1+Zd.count(Za(e),e),t,3)}function Y4(e,t){return Pe(e.getMilliseconds(),t,3)}function che(e,t){return Y4(e,t)+"000"}function uhe(e,t){return Pe(e.getMonth()+1,t,2)}function fhe(e,t){return Pe(e.getMinutes(),t,2)}function dhe(e,t){return Pe(e.getSeconds(),t,2)}function hhe(e){var t=e.getDay();return t===0?7:t}function phe(e,t){return Pe(_g.count(Za(e)-1,e),t,2)}function X4(e){var t=e.getDay();return t>=4||t===0?ic(e):ic.ceil(e)}function mhe(e,t){return e=X4(e),Pe(ic.count(Za(e),e)+(Za(e).getDay()===4),t,2)}function yhe(e){return e.getDay()}function ghe(e,t){return Pe(Bm.count(Za(e)-1,e),t,2)}function vhe(e,t){return Pe(e.getFullYear()%100,t,2)}function bhe(e,t){return e=X4(e),Pe(e.getFullYear()%100,t,2)}function xhe(e,t){return Pe(e.getFullYear()%1e4,t,4)}function She(e,t){var n=e.getDay();return e=n>=4||n===0?ic(e):ic.ceil(e),Pe(e.getFullYear()%1e4,t,4)}function whe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Pe(t/60|0,"0",2)+Pe(t%60,"0",2)}function AC(e,t){return Pe(e.getUTCDate(),t,2)}function jhe(e,t){return Pe(e.getUTCHours(),t,2)}function Ahe(e,t){return Pe(e.getUTCHours()%12||12,t,2)}function Ohe(e,t){return Pe(1+Cg.count(Ja(e),e),t,3)}function W4(e,t){return Pe(e.getUTCMilliseconds(),t,3)}function Ehe(e,t){return W4(e,t)+"000"}function The(e,t){return Pe(e.getUTCMonth()+1,t,2)}function Nhe(e,t){return Pe(e.getUTCMinutes(),t,2)}function Che(e,t){return Pe(e.getUTCSeconds(),t,2)}function _he(e){var t=e.getUTCDay();return t===0?7:t}function Phe(e,t){return Pe(Pg.count(Ja(e)-1,e),t,2)}function Q4(e){var t=e.getUTCDay();return t>=4||t===0?sc(e):sc.ceil(e)}function Mhe(e,t){return e=Q4(e),Pe(sc.count(Ja(e),e)+(Ja(e).getUTCDay()===4),t,2)}function Rhe(e){return e.getUTCDay()}function Dhe(e,t){return Pe(Um.count(Ja(e)-1,e),t,2)}function $he(e,t){return Pe(e.getUTCFullYear()%100,t,2)}function khe(e,t){return e=Q4(e),Pe(e.getUTCFullYear()%100,t,2)}function Lhe(e,t){return Pe(e.getUTCFullYear()%1e4,t,4)}function zhe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?sc(e):sc.ceil(e),Pe(e.getUTCFullYear()%1e4,t,4)}function Ihe(){return"+0000"}function OC(){return"%"}function EC(e){return+e}function TC(e){return Math.floor(+e/1e3)}var Do,Z4,J4;Bhe({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 Bhe(e){return Do=Bde(e),Z4=Do.format,Do.parse,J4=Do.utcFormat,Do.utcParse,Do}function Uhe(e){return new Date(e)}function Fhe(e){return e instanceof Date?+e:+new Date(+e)}function iA(e,t,n,r,a,i,s,o,l,c){var f=qj(),d=f.invert,h=f.domain,p=c(".%L"),m=c(":%S"),g=c("%I:%M"),b=c("%I %p"),y=c("%a %d"),v=c("%b %d"),x=c("%B"),w=c("%Y");function S(j){return(l(j)<j?p:o(j)<j?m:s(j)<j?g:i(j)<j?b:r(j)<j?a(j)<j?y:v: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,Fhe)):h().map(Uhe)},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:c(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(I4(O,j)):f},f.copy=function(){return Qd(f,iA(e,t,n,r,a,i,s,o,l,c))},f}function Vhe(){return Or.apply(iA(zde,Ide,Za,rA,_g,Zd,tA,Jj,_s,Z4).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Hhe(){return Or.apply(iA(kde,Lde,Ja,aA,Pg,Cg,nA,eA,_s,J4).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Mg(){var e=0,t=1,n,r,a,i,s=mn,o=!1,l;function c(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))}c.domain=function(d){return arguments.length?([e,t]=d,n=i(e=+e),r=i(t=+t),a=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(d){return arguments.length?(o=!!d,c):o},c.interpolator=function(d){return arguments.length?(s=d,c):s};function f(d){return function(h){var p,m;return arguments.length?([p,m]=h,s=d(p,m),c):[s(0),s(1)]}}return c.range=f(Xc),c.rangeRound=f(Hj),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return i=d,n=d(e),r=d(t),a=n===r?0:1/(r-n),c}}function ss(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function eL(){var e=is(Mg()(mn));return e.copy=function(){return ss(e,eL())},ii.apply(e,arguments)}function tL(){var e=Yj(Mg()).domain([1,10]);return e.copy=function(){return ss(e,tL()).base(e.base())},ii.apply(e,arguments)}function nL(){var e=Xj(Mg());return e.copy=function(){return ss(e,nL()).constant(e.constant())},ii.apply(e,arguments)}function sA(){var e=Wj(Mg());return e.copy=function(){return ss(e,sA()).exponent(e.exponent())},ii.apply(e,arguments)}function qhe(){return sA.apply(null,arguments).exponent(.5)}function rL(){var e=[],t=mn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Xd(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(Ki),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)=>Pfe(e,i/r))},n.copy=function(){return rL(t).domain(e)},ii.apply(n,arguments)}function Rg(){var e=0,t=.5,n=1,r=1,a,i,s,o,l,c=mn,f,d=!1,h;function p(g){return isNaN(g=+g)?h:(g=.5+((g=+f(g))-i)*(r*g<r*i?o:l),c(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?(c=g,p):c};function m(g){return function(b){var y,v,x;return arguments.length?([y,v,x]=b,c=rde(g,[y,v,x]),p):[c(0),c(.5),c(1)]}}return p.range=m(Xc),p.rangeRound=m(Hj),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 aL(){var e=is(Rg()(mn));return e.copy=function(){return ss(e,aL())},ii.apply(e,arguments)}function iL(){var e=Yj(Rg()).domain([.1,1,10]);return e.copy=function(){return ss(e,iL()).base(e.base())},ii.apply(e,arguments)}function sL(){var e=Xj(Rg());return e.copy=function(){return ss(e,sL()).constant(e.constant())},ii.apply(e,arguments)}function oA(){var e=Wj(Rg());return e.copy=function(){return ss(e,oA()).exponent(e.exponent())},ii.apply(e,arguments)}function Khe(){return oA.apply(null,arguments).exponent(.5)}const NC=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ff,scaleDiverging:aL,scaleDivergingLog:iL,scaleDivergingPow:oA,scaleDivergingSqrt:Khe,scaleDivergingSymlog:sL,scaleIdentity:z4,scaleImplicit:a1,scaleLinear:zm,scaleLog:B4,scaleOrdinal:Uj,scalePoint:nf,scalePow:Qj,scaleQuantile:V4,scaleQuantize:H4,scaleRadial:F4,scaleSequential:eL,scaleSequentialLog:tL,scaleSequentialPow:sA,scaleSequentialQuantile:rL,scaleSequentialSqrt:qhe,scaleSequentialSymlog:nL,scaleSqrt:Ede,scaleSymlog:U4,scaleThreshold:q4,scaleTime:Vhe,scaleUtc:Hhe,tickFormat:L4},Symbol.toStringTag,{value:"Module"}));var Ghe=Bc;function Yhe(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&&!Ghe(s):n(s,o)))var o=s,l=i}return l}var Dg=Yhe;function Xhe(e,t){return e>t}var oL=Xhe,Whe=Dg,Qhe=oL,Zhe=Yc;function Jhe(e){return e&&e.length?Whe(e,Zhe,Qhe):void 0}var epe=Jhe;const Di=Ie(epe);function tpe(e,t){return e<t}var lL=tpe,npe=Dg,rpe=lL,ape=Yc;function ipe(e){return e&&e.length?npe(e,ape,rpe):void 0}var spe=ipe;const $g=Ie(spe);var ope=Sj,lpe=ha,cpe=g4,upe=Mn;function fpe(e,t){var n=upe(e)?ope:cpe;return n(e,lpe(t))}var dpe=fpe,hpe=m4,ppe=dpe;function mpe(e,t){return hpe(ppe(e,t),1)}var ype=mpe;const gpe=Ie(ype);var vpe=kj;function bpe(e,t){return vpe(e,t)}var xpe=bpe;const uo=Ie(xpe);var Wc=1e9,Spe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},cA,ct=!0,Sr="[DecimalError] ",Ws=Sr+"Invalid argument: ",lA=Sr+"Exponent out of range: ",Qc=Math.floor,ws=Math.pow,wpe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Vn,Ut=1e7,nt=7,cL=9007199254740991,Fm=Qc(cL/nt),ne={};ne.absoluteValue=ne.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ne.comparedTo=ne.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};ne.decimalPlaces=ne.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*nt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};ne.dividedBy=ne.div=function(e){return Va(this,new this.constructor(e))};ne.dividedToIntegerBy=ne.idiv=function(e){var t=this,n=t.constructor;return Ge(Va(t,new n(e),0,1),n.precision)};ne.equals=ne.eq=function(e){return!this.cmp(e)};ne.exponent=function(){return _t(this)};ne.greaterThan=ne.gt=function(e){return this.cmp(e)>0};ne.greaterThanOrEqualTo=ne.gte=function(e){return this.cmp(e)>=0};ne.isInteger=ne.isint=function(){return this.e>this.d.length-2};ne.isNegative=ne.isneg=function(){return this.s<0};ne.isPositive=ne.ispos=function(){return this.s>0};ne.isZero=function(){return this.s===0};ne.lessThan=ne.lt=function(e){return this.cmp(e)<0};ne.lessThanOrEqualTo=ne.lte=function(e){return this.cmp(e)<1};ne.logarithm=ne.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(Vn))throw Error(Sr+"NaN");if(n.s<1)throw Error(Sr+(n.s?"NaN":"-Infinity"));return n.eq(Vn)?new r(0):(ct=!1,t=Va(Gf(n,i),Gf(e,i),i),ct=!0,Ge(t,a))};ne.minus=ne.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?dL(t,e):uL(t,(e.s=-e.s,e))};ne.modulo=ne.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(Sr+"NaN");return n.s?(ct=!1,t=Va(n,e,0,1).times(e),ct=!0,n.minus(t)):Ge(new r(n),a)};ne.naturalExponential=ne.exp=function(){return fL(this)};ne.naturalLogarithm=ne.ln=function(){return Gf(this)};ne.negated=ne.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ne.plus=ne.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?uL(t,e):dL(t,(e.s=-e.s,e))};ne.precision=ne.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ws+e);if(t=_t(a)+1,r=a.d.length-1,n=r*nt+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};ne.squareRoot=ne.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(Sr+"NaN")}for(e=_t(o),ct=!1,a=Math.sqrt(+o),a==0||a==1/0?(t=ea(o.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Qc((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(Va(o,i,s+2)).times(.5),ea(i.d).slice(0,s)===(t=ea(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),a==s&&t=="4999"){if(Ge(i,n+1,0),i.times(i).eq(o)){r=i;break}}else if(t!="9999")break;s+=4}return ct=!0,Ge(r,n)};ne.times=ne.mul=function(e){var t,n,r,a,i,s,o,l,c,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,c=p.length,l<c&&(i=h,h=p,p=i,s=l,l=c,c=s),i=[],s=l+c,r=s;r--;)i.push(0);for(r=c;--r>=0;){for(t=0,a=l+r;a>r;)o=i[a]+p[r]*h[a-r-1]+t,i[a--]=o%Ut|0,t=o/Ut|0;i[a]=(i[a]+t)%Ut|0}for(;!i[--s];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,ct?Ge(e,d.precision):e};ne.toDecimalPlaces=ne.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(ca(e,0,Wc),t===void 0?t=r.rounding:ca(t,0,8),Ge(n,e+_t(n)+1,t))};ne.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=fo(r,!0):(ca(e,0,Wc),t===void 0?t=a.rounding:ca(t,0,8),r=Ge(new a(r),e+1,t),n=fo(r,!0,e+1)),n};ne.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?fo(a):(ca(e,0,Wc),t===void 0?t=i.rounding:ca(t,0,8),r=Ge(new i(a),e+_t(a)+1,t),n=fo(r.abs(),!1,e+_t(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};ne.toInteger=ne.toint=function(){var e=this,t=e.constructor;return Ge(new t(e),_t(e)+1,t.rounding)};ne.toNumber=function(){return+this};ne.toPower=ne.pow=function(e){var t,n,r,a,i,s,o=this,l=o.constructor,c=12,f=+(e=new l(e));if(!e.s)return new l(Vn);if(o=new l(o),!o.s){if(e.s<1)throw Error(Sr+"Infinity");return o}if(o.eq(Vn))return o;if(r=l.precision,e.eq(Vn))return Ge(o,r);if(t=e.e,n=e.d.length-1,s=t>=n,i=o.s,s){if((n=f<0?-f:f)<=cL){for(a=new l(Vn),t=Math.ceil(r/nt+4),ct=!1;n%2&&(a=a.times(o),_C(a.d,t)),n=Qc(n/2),n!==0;)o=o.times(o),_C(o.d,t);return ct=!0,e.s<0?new l(Vn).div(a):Ge(a,r)}}else if(i<0)throw Error(Sr+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,o.s=1,ct=!1,a=e.times(Gf(o,r+c)),ct=!0,a=fL(a),a.s=i,a};ne.toPrecision=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?(n=_t(a),r=fo(a,n<=i.toExpNeg||n>=i.toExpPos)):(ca(e,1,Wc),t===void 0?t=i.rounding:ca(t,0,8),a=Ge(new i(a),e,t),n=_t(a),r=fo(a,e<=n||n<=i.toExpNeg,e)),r};ne.toSignificantDigits=ne.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(ca(e,1,Wc),t===void 0?t=r.rounding:ca(t,0,8)),Ge(new r(n),e,t)};ne.toString=ne.valueOf=ne.val=ne.toJSON=ne[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=_t(e),n=e.constructor;return fo(e,t<=n.toExpNeg||t>=n.toExpPos)};function uL(e,t){var n,r,a,i,s,o,l,c,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),ct?Ge(t,d):t;if(l=e.d,c=t.d,s=e.e,a=t.e,l=l.slice(),i=s-a,i){for(i<0?(r=l,i=-i,o=c.length):(r=c,a=s,o=l.length),s=Math.ceil(d/nt),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=c.length,o-i<0&&(i=o,r=c,c=l,l=r),n=0;i;)n=(l[--i]=l[i]+c[i]+n)/Ut|0,l[i]%=Ut;for(n&&(l.unshift(n),++a),o=l.length;l[--o]==0;)l.pop();return t.d=l,t.e=a,ct?Ge(t,d):t}function ca(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Ws+e)}function ea(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=nt-r.length,n&&(i+=mi(n)),i+=r;s=e[t],r=s+"",n=nt-r.length,n&&(i+=mi(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return i+s}var Va=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%Ut|0,s=i/Ut|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*Ut+r[i]-a[i];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,i,s){var o,l,c,f,d,h,p,m,g,b,y,v,x,w,S,j,O,E,T=r.constructor,N=r.s==a.s?1:-1,M=r.d,C=a.d;if(!r.s)return new T(r);if(!a.s)throw Error(Sr+"Division by zero");for(l=r.e-a.e,O=C.length,S=M.length,p=new T(N),m=p.d=[],c=0;C[c]==(M[c]||0);)++c;if(C[c]>(M[c]||0)&&--l,i==null?v=i=T.precision:s?v=i+(_t(r)-_t(a))+1:v=i,v<0)return new T(0);if(v=v/nt+2|0,c=0,O==1)for(f=0,C=C[0],v++;(c<S||f)&&v--;c++)x=f*Ut+(M[c]||0),m[c]=x/C|0,f=x%C|0;else{for(f=Ut/(C[0]+1)|0,f>1&&(C=e(C,f),M=e(M,f),O=C.length,S=M.length),w=O,g=M.slice(0,O),b=g.length;b<O;)g[b++]=0;E=C.slice(),E.unshift(0),j=C[0],C[1]>=Ut/2&&++j;do f=0,o=t(C,g,O,b),o<0?(y=g[0],O!=b&&(y=y*Ut+(g[1]||0)),f=y/j|0,f>1?(f>=Ut&&(f=Ut-1),d=e(C,f),h=d.length,b=g.length,o=t(d,g,h,b),o==1&&(f--,n(d,O<h?E:C,h))):(f==0&&(o=f=1),d=C.slice()),h=d.length,h<b&&d.unshift(0),n(g,d,b),o==-1&&(b=g.length,o=t(C,g,O,b),o<1&&(f++,n(g,O<b?E:C,b))),b=g.length):o===0&&(f++,g=[0]),m[c++]=f,o&&g[0]?g[b++]=M[w]||0:(g=[M[w]],b=1);while((w++<S||g[0]!==void 0)&&v--)}return m[0]||m.shift(),p.e=l,Ge(p,s?i+_t(p)+1:i)}}();function fL(e,t){var n,r,a,i,s,o,l=0,c=0,f=e.constructor,d=f.precision;if(_t(e)>16)throw Error(lA+_t(e));if(!e.s)return new f(Vn);for(ct=!1,o=d,s=new f(.03125);e.abs().gte(.1);)e=e.times(s),c+=5;for(r=Math.log(ws(2,c))/Math.LN10*2+5|0,o+=r,n=a=i=new f(Vn),f.precision=o;;){if(a=Ge(a.times(e),o),n=n.times(++l),s=i.plus(Va(a,n,o)),ea(s.d).slice(0,o)===ea(i.d).slice(0,o)){for(;c--;)i=Ge(i.times(i),o);return f.precision=d,t==null?(ct=!0,Ge(i,d)):i}i=s}}function _t(e){for(var t=e.e*nt,n=e.d[0];n>=10;n/=10)t++;return t}function _b(e,t,n){if(t>e.LN10.sd())throw ct=!0,n&&(e.precision=n),Error(Sr+"LN10 precision limit exceeded");return Ge(new e(e.LN10),t)}function mi(e){for(var t="";e--;)t+="0";return t}function Gf(e,t){var n,r,a,i,s,o,l,c,f,d=1,h=10,p=e,m=p.d,g=p.constructor,b=g.precision;if(p.s<1)throw Error(Sr+(p.s?"NaN":"-Infinity"));if(p.eq(Vn))return new g(0);if(t==null?(ct=!1,c=b):c=t,p.eq(10))return t==null&&(ct=!0),_b(g,c);if(c+=h,g.precision=c,n=ea(m),r=n.charAt(0),i=_t(p),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=ea(p.d),r=n.charAt(0),d++;i=_t(p),r>1?(p=new g("0."+n),i++):p=new g(r+"."+n.slice(1))}else return l=_b(g,c+2,b).times(i+""),p=Gf(new g(r+"."+n.slice(1)),c-h).plus(l),g.precision=b,t==null?(ct=!0,Ge(p,b)):p;for(o=s=p=Va(p.minus(Vn),p.plus(Vn),c),f=Ge(p.times(p),c),a=3;;){if(s=Ge(s.times(f),c),l=o.plus(Va(s,new g(a),c)),ea(l.d).slice(0,c)===ea(o.d).slice(0,c))return o=o.times(2),i!==0&&(o=o.plus(_b(g,c+2,b).times(i+""))),o=Va(o,new g(d),c),g.precision=b,t==null?(ct=!0,Ge(o,b)):o;o=l,a+=2}}function CC(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=Qc(n/nt),e.d=[],r=(n+1)%nt,n<0&&(r+=nt),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=nt;r<a;)e.d.push(+t.slice(r,r+=nt));t=t.slice(r),r=nt-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),ct&&(e.e>Fm||e.e<-Fm))throw Error(lA+n)}else e.s=0,e.e=0,e.d=[0];return e}function Ge(e,t,n){var r,a,i,s,o,l,c,f,d=e.d;for(s=1,i=d[0];i>=10;i/=10)s++;if(r=t-s,r<0)r+=nt,a=t,c=d[f=0];else{if(f=Math.ceil((r+1)/nt),i=d.length,f>=i)return e;for(c=i=d[f],s=1;i>=10;i/=10)s++;r%=nt,a=r-nt+s}if(n!==void 0&&(i=ws(10,s-a-1),o=c/i%10|0,l=t<0||d[f+1]!==void 0||c%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?c/ws(10,s-a):0:d[f-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return l?(i=_t(e),d.length=1,t=t-i-1,d[0]=ws(10,(nt-t%nt)%nt),e.e=Qc(-t/nt)||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=ws(10,nt-r),d[f]=a>0?(c/ws(10,s-a)%ws(10,a)|0)*i:0),l)for(;;)if(f==0){(d[0]+=i)==Ut&&(d[0]=1,++e.e);break}else{if(d[f]+=i,d[f]!=Ut)break;d[f--]=0,i=1}for(r=d.length;d[--r]===0;)d.pop();if(ct&&(e.e>Fm||e.e<-Fm))throw Error(lA+_t(e));return e}function dL(e,t){var n,r,a,i,s,o,l,c,f,d,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),ct?Ge(t,p):t;if(l=e.d,d=t.d,r=t.e,c=e.e,l=l.slice(),s=c-r,s){for(f=s<0,f?(n=l,s=-s,o=d.length):(n=d,r=c,o=l.length),a=Math.max(Math.ceil(p/nt),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]=Ut-1;--l[i],l[a]+=Ut}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,ct?Ge(t,p):t):new h(0)}function fo(e,t,n){var r,a=_t(e),i=ea(e.d),s=i.length;return t?(n&&(r=n-s)>0?i=i.charAt(0)+"."+i.slice(1)+mi(r):s>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+mi(-a-1)+i,n&&(r=n-s)>0&&(i+=mi(r))):a>=s?(i+=mi(a+1-s),n&&(r=n-a-1)>0&&(i=i+"."+mi(r))):((r=a+1)<s&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-s)>0&&(a+1===s&&(i+="."),i+=mi(r))),e.s<0?"-"+i:i}function _C(e,t){if(e.length>t)return e.length=t,!0}function hL(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(Ws+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 CC(s,i.toString())}else if(typeof i!="string")throw Error(Ws+i);if(i.charCodeAt(0)===45?(i=i.slice(1),s.s=-1):s.s=1,wpe.test(i))CC(s,i);else throw Error(Ws+i)}if(a.prototype=ne,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=hL,a.config=a.set=jpe,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 jpe(e){if(!e||typeof e!="object")throw Error(Sr+"Object expected");var t,n,r,a=["precision",1,Wc,"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(Qc(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(Ws+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Ws+n+": "+r);return this}var cA=hL(Spe);Vn=new cA(1);const qe=cA;function Ape(e){return Npe(e)||Tpe(e)||Epe(e)||Ope()}function Ope(){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 Epe(e,t){if(e){if(typeof e=="string")return l1(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 l1(e,t)}}function Tpe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Npe(e){if(Array.isArray(e))return l1(e)}function l1(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 Cpe=function(t){return t},pL={},mL=function(t){return t===pL},PC=function(t){return function n(){return arguments.length===0||arguments.length===1&&mL(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},_pe=function e(t,n){return t===1?n:PC(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!==pL}).length;return s>=t?n.apply(void 0,a):e(t-s,PC(function(){for(var o=arguments.length,l=new Array(o),c=0;c<o;c++)l[c]=arguments[c];var f=a.map(function(d){return mL(d)?l.shift():d});return n.apply(void 0,Ape(f).concat(l))}))})},kg=function(t){return _pe(t.length,t)},c1=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},Ppe=kg(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),Mpe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Cpe;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))}},u1=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},yL=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 Rpe(e){var t;return e===0?t=1:t=Math.floor(new qe(e).abs().log(10).toNumber())+1,t}function Dpe(e,t,n){for(var r=new qe(e),a=0,i=[];r.lt(t)&&a<1e5;)i.push(r.toNumber()),r=r.add(n),a++;return i}var $pe=kg(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),kpe=kg(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),Lpe=kg(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Lg={rangeStep:Dpe,getDigitCount:Rpe,interpolateNumber:$pe,uninterpolateNumber:kpe,uninterpolateTruncation:Lpe};function f1(e){return Bpe(e)||Ipe(e)||gL(e)||zpe()}function zpe(){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 Ipe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Bpe(e){if(Array.isArray(e))return d1(e)}function Yf(e,t){return Vpe(e)||Fpe(e,t)||gL(e,t)||Upe()}function Upe(){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 gL(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 Fpe(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 Vpe(e){if(Array.isArray(e))return e}function vL(e){var t=Yf(e,2),n=t[0],r=t[1],a=n,i=r;return n>r&&(a=r,i=n),[a,i]}function bL(e,t,n){if(e.lte(0))return new qe(0);var r=Lg.getDigitCount(e.toNumber()),a=new qe(10).pow(r),i=e.div(a),s=r!==1?.05:.1,o=new qe(Math.ceil(i.div(s).toNumber())).add(n).mul(s),l=o.mul(a);return t?l:new qe(Math.ceil(l))}function Hpe(e,t,n){var r=1,a=new qe(e);if(!a.isint()&&n){var i=Math.abs(e);i<1?(r=new qe(10).pow(Lg.getDigitCount(e)-1),a=new qe(Math.floor(a.div(r).toNumber())).mul(r)):i>1&&(a=new qe(Math.floor(e)))}else e===0?a=new qe(Math.floor((t-1)/2)):n||(a=new qe(Math.floor(e)));var s=Math.floor((t-1)/2),o=Mpe(Ppe(function(l){return a.add(new qe(l-s).mul(r)).toNumber()}),c1);return o(0,t)}function xL(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 qe(0),tickMin:new qe(0),tickMax:new qe(0)};var i=bL(new qe(t).sub(e).div(n-1),r,a),s;e<=0&&t>=0?s=new qe(0):(s=new qe(e).add(t).div(2),s=s.sub(new qe(s).mod(i)));var o=Math.ceil(s.sub(e).div(i).toNumber()),l=Math.ceil(new qe(t).sub(s).div(i).toNumber()),c=o+l+1;return c>n?xL(e,t,n,r,a+1):(c<n&&(l=t>0?l+(n-c):l,o=t>0?o:o+(n-c)),{step:i,tickMin:s.sub(new qe(o).mul(i)),tickMax:s.add(new qe(l).mul(i))})}function qpe(e){var t=Yf(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=vL([n,r]),l=Yf(o,2),c=l[0],f=l[1];if(c===-1/0||f===1/0){var d=f===1/0?[c].concat(f1(c1(0,a-1).map(function(){return 1/0}))):[].concat(f1(c1(0,a-1).map(function(){return-1/0})),[f]);return n>r?u1(d):d}if(c===f)return Hpe(c,a,i);var h=xL(c,f,s,i),p=h.step,m=h.tickMin,g=h.tickMax,b=Lg.rangeStep(m,g.add(new qe(.1).mul(p)),p);return n>r?u1(b):b}function Kpe(e,t){var n=Yf(e,2),r=n[0],a=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=vL([r,a]),o=Yf(s,2),l=o[0],c=o[1];if(l===-1/0||c===1/0)return[r,a];if(l===c)return[l];var f=Math.max(t,2),d=bL(new qe(c).sub(l).div(f-1),i,0),h=[].concat(f1(Lg.rangeStep(new qe(l),new qe(c).sub(new qe(.99).mul(d)),d)),[c]);return r>a?u1(h):h}var Gpe=yL(qpe),Ype=yL(Kpe),Xpe="Invariant failed";function ho(e,t){throw new Error(Xpe)}var Wpe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 Vm(){return Vm=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},Vm.apply(this,arguments)}function Qpe(e,t){return tme(e)||eme(e,t)||Jpe(e,t)||Zpe()}function Zpe(){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 Jpe(e,t){if(e){if(typeof e=="string")return MC(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 MC(e,t)}}function MC(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 eme(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,c=!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){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function tme(e){if(Array.isArray(e))return e}function nme(e,t){if(e==null)return{};var n=rme(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 rme(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 ame(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ime(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,jL(r.key),r)}}function sme(e,t,n){return t&&ime(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ome(e,t,n){return t=Hm(t),lme(e,SL()?Reflect.construct(t,n||[],Hm(e).constructor):t.apply(e,n))}function lme(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 cme(e)}function cme(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SL=function(){return!!e})()}function Hm(e){return Hm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hm(e)}function ume(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 wL(e,t,n){return t=jL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jL(e){var t=fme(e,"string");return oc(t)=="symbol"?t:t+""}function fme(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)}var Jd=function(e){function t(){return ame(this,t),ome(this,t,arguments)}return ume(t,e),sme(t,[{key:"render",value:function(){var r=this.props,a=r.offset,i=r.layout,s=r.width,o=r.dataKey,l=r.data,c=r.dataPointFormatter,f=r.xAxis,d=r.yAxis,h=nme(r,Wpe),p=ie(h,!1);this.props.direction==="x"&&f.type!=="number"&&ho();var m=l.map(function(g){var b=c(g,o),y=b.x,v=b.y,x=b.value,w=b.errorVal;if(!w)return null;var S=[],j,O;if(Array.isArray(w)){var E=Qpe(w,2);j=E[0],O=E[1]}else j=O=w;if(i==="vertical"){var T=f.scale,N=v+a,M=N+s,C=N-s,L=T(x-j),D=T(x+O);S.push({x1:D,y1:M,x2:D,y2:C}),S.push({x1:L,y1:N,x2:D,y2:N}),S.push({x1:L,y1:M,x2:L,y2:C})}else if(i==="horizontal"){var $=d.scale,P=y+a,k=P-s,I=P+s,F=$(x-j),H=$(x+O);S.push({x1:k,y1:H,x2:I,y2:H}),S.push({x1:P,y1:F,x2:P,y2:H}),S.push({x1:k,y1:F,x2:I,y2:F})}return _.createElement(Ae,Vm({className:"recharts-errorBar",key:"bar-".concat(S.map(function(Y){return"".concat(Y.x1,"-").concat(Y.x2,"-").concat(Y.y1,"-").concat(Y.y2)}))},p),S.map(function(Y){return _.createElement("line",Vm({},Y,{key:"line-".concat(Y.x1,"-").concat(Y.x2,"-").concat(Y.y1,"-").concat(Y.y2)}))}))});return _.createElement(Ae,{className:"recharts-errorBars"},m)}}])}(_.Component);wL(Jd,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});wL(Jd,"displayName","ErrorBar");function Xf(e){"@babel/helpers - typeof";return Xf=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},Xf(e)}function RC(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 fs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RC(Object(n),!0).forEach(function(r){dme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dme(e,t,n){return t=hme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hme(e){var t=pme(e,"string");return Xf(t)=="symbol"?t:t+""}function pme(e,t){if(Xf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var AL=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,s=Ln(n,Jr);if(!s)return null;var o=Jr.defaultProps,l=o!==void 0?fs(fs({},o),s.props):{},c;return s.props&&s.props.payload?c=s.props&&s.props.payload:i==="children"?c=(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}}))},[]):c=(r||[]).map(function(f){var d=f.item,h=d.type.defaultProps,p=h!==void 0?fs(fs({},h),d.props):{},m=p.dataKey,g=p.name,b=p.legendType,y=p.hide;return{inactive:y,dataKey:m,type:l.iconType||b||"square",color:uA(d),value:g||m,payload:p}}),fs(fs(fs({},l),Jr.getWithHeight(s,a)),{},{payload:c,item:s})};function Wf(e){"@babel/helpers - typeof";return Wf=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},Wf(e)}function DC(e){return vme(e)||gme(e)||yme(e)||mme()}function mme(){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 yme(e,t){if(e){if(typeof e=="string")return p1(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 p1(e,t)}}function gme(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vme(e){if(Array.isArray(e))return p1(e)}function p1(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 $C(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 gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$C(Object(n),!0).forEach(function(r){wl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$C(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wl(e,t,n){return t=bme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bme(e){var t=xme(e,"string");return Wf(t)=="symbol"?t:t+""}function xme(e,t){if(Wf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function St(e,t,n){return me(e)||me(t)?n:$t(t)?Xn(e,t,n):de(t)?t(e):n}function rf(e,t,n,r){var a=gpe(e,function(o){return St(o,t)});if(n==="number"){var i=a.filter(function(o){return K(o)||parseFloat(o)});return i.length?[$g(i),Di(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 Sme=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,c=0;c<o;c++){var f=c>0?a[c-1].coordinate:a[o-1].coordinate,d=a[c].coordinate,h=c>=o-1?a[0].coordinate:a[c+1].coordinate,p=void 0;if(hn(d-f)!==hn(h-d)){var m=[];if(hn(h-d)===hn(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 b=h+l[1]-l[0];m[0]=Math.min(d,(b+d)/2),m[1]=Math.max(d,(b+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[c].index;break}}else{var v=Math.min(f,h),x=Math.max(f,h);if(t>(v+d)/2&&t<=(x+d)/2){s=a[c].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},uA=function(t){var n,r=t,a=r.type.displayName,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?gt(gt({},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},wme=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,c=o.length;l<c;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,b=m.cateAxisId,y=g.filter(function(O){return Fa(O.type).indexOf("Bar")>=0});if(y&&y.length){var v=y[0].type.defaultProps,x=v!==void 0?gt(gt({},v),y[0].props):y[0].props,w=x.barSize,S=x[b];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:pn(j,r,0)})}}return s},jme=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 c=pn(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)*c,m>=a&&(m-=(l-1)*c,c=0),m>=a&&p>0&&(h=!0,p*=.9,m=l*p);var g=(a-m)/2>>0,b={offset:g-c,size:0};f=s.reduce(function(w,S){var j={item:S.item,position:{offset:b.offset+b.size+c,size:h?p:S.barSize}},O=[].concat(DC(w),[j]);return b=O[O.length-1].position,S.stackList&&S.stackList.length&&S.stackList.forEach(function(E){O.push({item:E,position:b})}),O},d)}else{var y=pn(r,a,0,!0);a-2*y-(l-1)*c<=0&&(c=0);var v=(a-2*y-(l-1)*c)/l;v>1&&(v>>=0);var x=o===+o?Math.min(v,o):v;f=s.reduce(function(w,S,j){var O=[].concat(DC(w),[{item:S.item,position:{offset:y+(v+c)*j+(v-x)/2,size:x}}]);return S.stackList&&S.stackList.length&&S.stackList.forEach(function(E){O.push({item:E,position:O[O.length-1].position})}),O},d)}return f},Ame=function(t,n,r,a){var i=r.children,s=r.width,o=r.margin,l=s-(o.left||0)-(o.right||0),c=AL({children:i,legendWidth:l});if(c){var f=a||{},d=f.width,h=f.height,p=c.align,m=c.verticalAlign,g=c.layout;if((g==="vertical"||g==="horizontal"&&m==="middle")&&p!=="center"&&K(t[p]))return gt(gt({},t),{},wl({},p,t[p]+(d||0)));if((g==="horizontal"||g==="vertical"&&p==="center")&&m!=="middle"&&K(t[m]))return gt(gt({},t),{},wl({},m,t[m]+(h||0)))}return t},Ome=function(t,n,r){return me(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},OL=function(t,n,r,a,i){var s=n.props.children,o=Wn(s,Jd).filter(function(c){return Ome(a,i,c.props.direction)});if(o&&o.length){var l=o.map(function(c){return c.props.dataKey});return t.reduce(function(c,f){var d=St(f,r);if(me(d))return c;var h=Array.isArray(d)?[$g(d),Di(d)]:[d,d],p=l.reduce(function(m,g){var b=St(f,g,0),y=h[0]-Math.abs(Array.isArray(b)?b[0]:b),v=h[1]+Math.abs(Array.isArray(b)?b[1]:b);return[Math.min(y,m[0]),Math.max(v,m[1])]},[1/0,-1/0]);return[Math.min(p[0],c[0]),Math.max(p[1],c[1])]},[1/0,-1/0])}return null},Eme=function(t,n,r,a,i){var s=n.map(function(o){return OL(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},EL=function(t,n,r,a,i){var s=n.map(function(l){var c=l.props.dataKey;return r==="number"&&c&&OL(t,l,c,a)||rf(t,c,r,i)});if(r==="number")return s.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);var o={};return s.reduce(function(l,c){for(var f=0,d=c.length;f<d;f++)o[c[f]]||(o[c[f]]=!0,l.push(c[f]));return l},[])},TL=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},NL=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},Da=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,c=(n||r)&&s==="category"&&a.bandwidth?a.bandwidth()/l:0;if(c=t.axisType==="angleAxis"&&(o==null?void 0:o.length)>=2?hn(o[0]-o[1])*2*c:c,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)+c,value:d,offset:c}});return f.filter(function(d){return!qc(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,h){return{coordinate:a(d)+c,value:d,index:h,offset:c}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(d){return{coordinate:a(d)+c,value:d,offset:c}}):a.domain().map(function(d,h){return{coordinate:a(d)+c,value:i?i[d]:d,index:h,offset:c}})},Pb=new WeakMap,Bh=function(t,n){if(typeof n!="function")return t;Pb.has(t)||Pb.set(t,new WeakMap);var r=Pb.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},CL=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:Ff(),realScaleType:"band"}:s==="radial"&&o==="angleAxis"?{scale:zm(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:nf(),realScaleType:"point"}:i==="category"?{scale:Ff(),realScaleType:"band"}:{scale:zm(),realScaleType:"linear"};if(oo(a)){var l="scale".concat(xg(a));return{scale:(NC[l]||nf)(),realScaleType:NC[l]?l:"point"}}return de(a)?{scale:a}:{scale:nf(),realScaleType:"point"}},kC=1e-4,_L=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]])}},Tme=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},Nme=function(t,n){if(!n||n.length!==2||!K(n[0])||!K(n[1]))return t;var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]),i=[t[0],t[1]];return(!K(t[0])||t[0]<r)&&(i[0]=r),(!K(t[1])||t[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<r&&(i[1]=r),i},Cme=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=qc(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])}},_me=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=qc(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)}},Pme={sign:Cme,expand:Wte,none:Jl,silhouette:Qte,wiggle:Zte,positive:_me},Mme=function(t,n,r){var a=n.map(function(o){return o.props.dataKey}),i=Pme[r],s=Xte().keys(a).value(function(o,l){return+St(o,l,0)}).order(Ix).offset(i);return s(t)},Rme=function(t,n,r,a,i,s){if(!t)return null;var o=s?n.reverse():n,l={},c=o.reduce(function(d,h){var p,m=(p=h.type)!==null&&p!==void 0&&p.defaultProps?gt(gt({},h.type.defaultProps),h.props):h.props,g=m.stackId,b=m.hide;if(b)return d;var y=m[r],v=d[y]||{hasStack:!1,stackGroups:{}};if($t(g)){var x=v.stackGroups[g]||{numericAxisId:r,cateAxisId:a,items:[]};x.items.push(h),v.hasStack=!0,v.stackGroups[g]=x}else v.stackGroups[jo("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[h]};return gt(gt({},d),{},wl({},y,v))},l),f={};return Object.keys(c).reduce(function(d,h){var p=c[h];if(p.hasStack){var m={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(g,b){var y=p.stackGroups[b];return gt(gt({},g),{},wl({},b,{numericAxisId:r,cateAxisId:a,items:y.items,stackedData:Mme(t,y.items,i)}))},m)}return gt(gt({},d),{},wl({},h,p))},f)},PL=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 c=t.domain();if(!c.length)return null;var f=Gpe(c,i,o);return t.domain([$g(f),Di(f)]),{niceTicks:f}}if(i&&a==="number"){var d=t.domain(),h=Ype(d,i,o);return{niceTicks:h}}return null};function qm(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=ym(n,"value",a[t.dataKey]);if(o)return o.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var l=St(a,me(s)?t.dataKey:s);return me(l)?null:t.scale(l)}var LC=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=St(s,n.dataKey,n.domain[o]);return me(l)?null:n.scale(l)-i/2+a},Dme=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]},$me=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?gt(gt({},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},kme=function(t){return t.reduce(function(n,r){return[$g(r.concat([n[0]]).filter(K)),Di(r.concat([n[1]]).filter(K))]},[1/0,-1/0])},ML=function(t,n,r){return Object.keys(t).reduce(function(a,i){var s=t[i],o=s.stackedData,l=o.reduce(function(c,f){var d=kme(f.slice(n,r+1));return[Math.min(c[0],d[0]),Math.max(c[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})},zC=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,IC=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,m1=function(t,n,r){if(de(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(K(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(zC.test(t[0])){var i=+zC.exec(t[0])[1];a[0]=n[0]-i}else de(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(K(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(IC.test(t[1])){var s=+IC.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},Km=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=zj(n,function(d){return d.coordinate}),s=1/0,o=1,l=i.length;o<l;o++){var c=i[o],f=i[o-1];s=Math.min((c.coordinate||0)-(f.coordinate||0),s)}return s===1/0?0:s}return r?void 0:0},BC=function(t,n,r){return!t||!t.length||uo(t,Xn(r,"type.defaultProps.domain"))?n:t},RL=function(t,n){var r=t.type.defaultProps?gt(gt({},t.type.defaultProps),t.props):t.props,a=r.dataKey,i=r.name,s=r.unit,o=r.formatter,l=r.tooltipType,c=r.chartType,f=r.hide;return gt(gt({},ie(t,!1)),{},{dataKey:a,unit:s,formatter:o,name:i||a,color:uA(t),value:St(n,a),type:l,payload:n,chartType:c,hide:f})};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 UC(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?UC(Object(n),!0).forEach(function(r){DL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DL(e,t,n){return t=Lme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lme(e){var t=zme(e,"string");return Qf(t)=="symbol"?t:t+""}function zme(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)}function Ime(e,t){return Vme(e)||Fme(e,t)||Ume(e,t)||Bme()}function Bme(){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 Ume(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 Fme(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,c=!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){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function Vme(e){if(Array.isArray(e))return e}var Gm=Math.PI/180,Hme=function(t){return t*180/Math.PI},Je=function(t,n,r,a){return{x:t+Math.cos(-Gm*a)*r,y:n+Math.sin(-Gm*a)*r}},$L=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},qme=function(t,n,r,a,i){var s=t.width,o=t.height,l=t.startAngle,c=t.endAngle,f=pn(t.cx,s,s/2),d=pn(t.cy,o,o/2),h=$L(s,o,r),p=pn(t.innerRadius,h,0),m=pn(t.outerRadius,h,h*.8),g=Object.keys(n);return g.reduce(function(b,y){var v=n[y],x=v.domain,w=v.reversed,S;if(me(v.range))a==="angleAxis"?S=[l,c]:a==="radiusAxis"&&(S=[p,m]),w&&(S=[S[1],S[0]]);else{S=v.range;var j=S,O=Ime(j,2);l=O[0],c=O[1]}var E=CL(v,i),T=E.realScaleType,N=E.scale;N.domain(x).range(S),_L(N);var M=PL(N,Aa(Aa({},v),{},{realScaleType:T})),C=Aa(Aa(Aa({},v),M),{},{range:S,radius:m,realScaleType:T,scale:N,cx:f,cy:d,innerRadius:p,outerRadius:m,startAngle:l,endAngle:c});return Aa(Aa({},b),{},DL({},y,C))},{})},Kme=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))},Gme=function(t,n){var r=t.x,a=t.y,i=n.cx,s=n.cy,o=Kme({x:r,y:a},{x:i,y:s});if(o<=0)return{radius:o};var l=(r-i)/o,c=Math.acos(l);return a>s&&(c=2*Math.PI-c),{radius:o,angle:Hme(c),angleInRadian:c}},Yme=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}},Xme=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},VC=function(t,n){var r=t.x,a=t.y,i=Gme({x:r,y:a},n),s=i.radius,o=i.angle,l=n.innerRadius,c=n.outerRadius;if(s<l||s>c)return!1;if(s===0)return!0;var f=Yme(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?Aa(Aa({},n),{},{radius:s,angle:Xme(p,n)}):null},kL=function(t){return!A.isValidElement(t)&&!de(t)&&typeof t!="boolean"?t.className:""};function Zf(e){"@babel/helpers - typeof";return Zf=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},Zf(e)}var Wme=["offset"];function Qme(e){return tye(e)||eye(e)||Jme(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 Jme(e,t){if(e){if(typeof e=="string")return y1(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 y1(e,t)}}function eye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tye(e){if(Array.isArray(e))return y1(e)}function y1(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 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 HC(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?HC(Object(n),!0).forEach(function(r){aye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aye(e,t,n){return t=iye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iye(e){var t=sye(e,"string");return Zf(t)=="symbol"?t:t+""}function sye(e,t){if(Zf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jf(){return Jf=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},Jf.apply(this,arguments)}var oye=function(t){var n=t.value,r=t.formatter,a=me(t.children)?n:t.children;return de(r)?r(a):a},lye=function(t,n){var r=hn(n-t),a=Math.min(Math.abs(n-t),360);return r*a},cye=function(t,n,r){var a=t.position,i=t.viewBox,s=t.offset,o=t.className,l=i,c=l.cx,f=l.cy,d=l.innerRadius,h=l.outerRadius,p=l.startAngle,m=l.endAngle,g=l.clockWise,b=(d+h)/2,y=lye(p,m),v=y>=0?1:-1,x,w;a==="insideStart"?(x=p+v*s,w=g):a==="insideEnd"?(x=m-v*s,w=!g):a==="end"&&(x=m+v*s,w=g),w=y<=0?w:!w;var S=Je(c,f,b,x),j=Je(c,f,b,x+(w?1:-1)*359),O="M".concat(S.x,",").concat(S.y,`
    A`).concat(b,",").concat(b,",0,1,").concat(w?0:1,`,
    `).concat(j.x,",").concat(j.y),E=me(t.id)?jo("recharts-radial-line-"):t.id;return _.createElement("text",Jf({},r,{dominantBaseline:"central",className:ve("recharts-radial-bar-label",o)}),_.createElement("defs",null,_.createElement("path",{id:E,d:O})),_.createElement("textPath",{xlinkHref:"#".concat(E)},n))},uye=function(t){var n=t.viewBox,r=t.offset,a=t.position,i=n,s=i.cx,o=i.cy,l=i.innerRadius,c=i.outerRadius,f=i.startAngle,d=i.endAngle,h=(f+d)/2;if(a==="outside"){var p=Je(s,o,c+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 b=(l+c)/2,y=Je(s,o,b,h),v=y.x,x=y.y;return{x:v,y:x,textAnchor:"middle",verticalAnchor:"middle"}},fye=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,i=t.position,s=n,o=s.x,l=s.y,c=s.width,f=s.height,d=f>=0?1:-1,h=d*a,p=d>0?"end":"start",m=d>0?"start":"end",g=c>=0?1:-1,b=g*a,y=g>0?"end":"start",v=g>0?"start":"end";if(i==="top"){var x={x:o+c/2,y:l-d*a,textAnchor:"middle",verticalAnchor:p};return Mt(Mt({},x),r?{height:Math.max(l-r.y,0),width:c}:{})}if(i==="bottom"){var w={x:o+c/2,y:l+f+h,textAnchor:"middle",verticalAnchor:m};return Mt(Mt({},w),r?{height:Math.max(r.y+r.height-(l+f),0),width:c}:{})}if(i==="left"){var S={x:o-b,y:l+f/2,textAnchor:y,verticalAnchor:"middle"};return Mt(Mt({},S),r?{width:Math.max(S.x-r.x,0),height:f}:{})}if(i==="right"){var j={x:o+c+b,y:l+f/2,textAnchor:v,verticalAnchor:"middle"};return Mt(Mt({},j),r?{width:Math.max(r.x+r.width-j.x,0),height:f}:{})}var O=r?{width:c,height:f}:{};return i==="insideLeft"?Mt({x:o+b,y:l+f/2,textAnchor:v,verticalAnchor:"middle"},O):i==="insideRight"?Mt({x:o+c-b,y:l+f/2,textAnchor:y,verticalAnchor:"middle"},O):i==="insideTop"?Mt({x:o+c/2,y:l+h,textAnchor:"middle",verticalAnchor:m},O):i==="insideBottom"?Mt({x:o+c/2,y:l+f-h,textAnchor:"middle",verticalAnchor:p},O):i==="insideTopLeft"?Mt({x:o+b,y:l+h,textAnchor:v,verticalAnchor:m},O):i==="insideTopRight"?Mt({x:o+c-b,y:l+h,textAnchor:y,verticalAnchor:m},O):i==="insideBottomLeft"?Mt({x:o+b,y:l+f-h,textAnchor:v,verticalAnchor:p},O):i==="insideBottomRight"?Mt({x:o+c-b,y:l+f-h,textAnchor:y,verticalAnchor:p},O):Uc(i)&&(K(i.x)||Ns(i.x))&&(K(i.y)||Ns(i.y))?Mt({x:o+pn(i.x,c),y:l+pn(i.y,f),textAnchor:"end",verticalAnchor:"end"},O):Mt({x:o+c/2,y:l+f/2,textAnchor:"middle",verticalAnchor:"middle"},O)},dye=function(t){return"cx"in t&&K(t.cx)};function Ht(e){var t=e.offset,n=t===void 0?5:t,r=nye(e,Wme),a=Mt({offset:n},r),i=a.viewBox,s=a.position,o=a.value,l=a.children,c=a.content,f=a.className,d=f===void 0?"":f,h=a.textBreakAll;if(!i||me(o)&&me(l)&&!A.isValidElement(c)&&!de(c))return null;if(A.isValidElement(c))return A.cloneElement(c,a);var p;if(de(c)){if(p=A.createElement(c,a),A.isValidElement(p))return p}else p=oye(a);var m=dye(i),g=ie(a,!0);if(m&&(s==="insideStart"||s==="insideEnd"||s==="end"))return cye(a,p,g);var b=m?uye(a):fye(a);return _.createElement(co,Jf({className:ve("recharts-label",d)},g,b,{breakAll:h}),p)}Ht.displayName="Label";var LL=function(t){var n=t.cx,r=t.cy,a=t.angle,i=t.startAngle,s=t.endAngle,o=t.r,l=t.radius,c=t.innerRadius,f=t.outerRadius,d=t.x,h=t.y,p=t.top,m=t.left,g=t.width,b=t.height,y=t.clockWise,v=t.labelViewBox;if(v)return v;if(K(g)&&K(b)){if(K(d)&&K(h))return{x:d,y:h,width:g,height:b};if(K(p)&&K(m))return{x:p,y:m,width:g,height:b}}return K(d)&&K(h)?{x:d,y:h,width:0,height:0}:K(n)&&K(r)?{cx:n,cy:r,startAngle:i||a||0,endAngle:s||a||0,innerRadius:c||0,outerRadius:f||l||o||0,clockWise:y}:t.viewBox?t.viewBox:{}},hye=function(t,n){return t?t===!0?_.createElement(Ht,{key:"label-implicit",viewBox:n}):$t(t)?_.createElement(Ht,{key:"label-implicit",viewBox:n,value:t}):A.isValidElement(t)?t.type===Ht?A.cloneElement(t,{key:"label-implicit",viewBox:n}):_.createElement(Ht,{key:"label-implicit",content:t,viewBox:n}):de(t)?_.createElement(Ht,{key:"label-implicit",content:t,viewBox:n}):Uc(t)?_.createElement(Ht,Jf({viewBox:n},t,{key:"label-implicit"})):null:null},pye=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=LL(t),s=Wn(a,Ht).map(function(l,c){return A.cloneElement(l,{viewBox:n||i,key:"label-".concat(c)})});if(!r)return s;var o=hye(t.label,n||i);return[o].concat(Qme(s))};Ht.parseViewBox=LL;Ht.renderCallByParent=pye;function mye(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var yye=mye;const gye=Ie(yye);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)}var vye=["valueAccessor"],bye=["data","dataKey","clockWise","id","textBreakAll"];function xye(e){return Aye(e)||jye(e)||wye(e)||Sye()}function Sye(){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 wye(e,t){if(e){if(typeof e=="string")return g1(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 g1(e,t)}}function jye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Aye(e){if(Array.isArray(e))return g1(e)}function g1(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 Ym(){return Ym=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},Ym.apply(this,arguments)}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 KC(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){Oye(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 Oye(e,t,n){return t=Eye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eye(e){var t=Tye(e,"string");return ed(t)=="symbol"?t:t+""}function Tye(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)}function GC(e,t){if(e==null)return{};var n=Nye(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 Nye(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 Cye=function(t){return Array.isArray(t.value)?gye(t.value):t.value};function sa(e){var t=e.valueAccessor,n=t===void 0?Cye:t,r=GC(e,vye),a=r.data,i=r.dataKey,s=r.clockWise,o=r.id,l=r.textBreakAll,c=GC(r,bye);return!a||!a.length?null:_.createElement(Ae,{className:"recharts-label-list"},a.map(function(f,d){var h=me(i)?n(f,d):St(f&&f.payload,i),p=me(o)?{}:{id:"".concat(o,"-").concat(d)};return _.createElement(Ht,Ym({},ie(f,!0),c,p,{parentViewBox:f.parentViewBox,value:h,textBreakAll:l,viewBox:Ht.parseViewBox(me(s)?f:KC(KC({},f),{},{clockWise:s})),key:"label-".concat(d),index:d}))}))}sa.displayName="LabelList";function _ye(e,t){return e?e===!0?_.createElement(sa,{key:"labelList-implicit",data:t}):_.isValidElement(e)||de(e)?_.createElement(sa,{key:"labelList-implicit",data:t,content:e}):Uc(e)?_.createElement(sa,Ym({data:t},e,{key:"labelList-implicit"})):null:null}function Pye(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=Wn(r,sa).map(function(s,o){return A.cloneElement(s,{data:t,key:"labelList-".concat(o)})});if(!n)return a;var i=_ye(e.label,t);return[i].concat(xye(a))}sa.renderCallByParent=Pye;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 v1(){return v1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v1.apply(this,arguments)}function YC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function XC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YC(Object(n),!0).forEach(function(r){Mye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mye(e,t,n){return t=Rye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rye(e){var t=Dye(e,"string");return td(t)=="symbol"?t:t+""}function Dye(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)}var $ye=function(t,n){var r=hn(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},Uh=function(t){var n=t.cx,r=t.cy,a=t.radius,i=t.angle,s=t.sign,o=t.isExternal,l=t.cornerRadius,c=t.cornerIsExternal,f=l*(o?1:-1)+a,d=Math.asin(l/f)/Gm,h=c?i:i+s*d,p=Je(n,r,f,h),m=Je(n,r,a,h),g=c?i-s*d:i,b=Je(n,r,f*Math.cos(d*Gm),g);return{center:p,circleTangency:m,lineTangency:b,theta:d}},zL=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,s=t.startAngle,o=t.endAngle,l=$ye(s,o),c=s+l,f=Je(n,r,i,s),d=Je(n,r,i,c),h="M ".concat(f.x,",").concat(f.y,`
    A `).concat(i,",").concat(i,`,0,
    `).concat(+(Math.abs(l)>180),",").concat(+(s>c),`,
    `).concat(d.x,",").concat(d.y,`
  `);if(a>0){var p=Je(n,r,a,s),m=Je(n,r,a,c);h+="L ".concat(m.x,",").concat(m.y,`
            A `).concat(a,",").concat(a,`,0,
            `).concat(+(Math.abs(l)>180),",").concat(+(s<=c),`,
            `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(n,",").concat(r," Z");return h},kye=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,s=t.cornerRadius,o=t.forceCornerRadius,l=t.cornerIsExternal,c=t.startAngle,f=t.endAngle,d=hn(f-c),h=Uh({cx:n,cy:r,radius:i,angle:c,sign:d,cornerRadius:s,cornerIsExternal:l}),p=h.circleTangency,m=h.lineTangency,g=h.theta,b=Uh({cx:n,cy:r,radius:i,angle:f,sign:-d,cornerRadius:s,cornerIsExternal:l}),y=b.circleTangency,v=b.lineTangency,x=b.theta,w=l?Math.abs(c-f):Math.abs(c-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
      `):zL({cx:n,cy:r,innerRadius:a,outerRadius:i,startAngle:c,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(v.x,",").concat(v.y,`
  `);if(a>0){var j=Uh({cx:n,cy:r,radius:a,angle:c,sign:d,isExternal:!0,cornerRadius:s,cornerIsExternal:l}),O=j.circleTangency,E=j.lineTangency,T=j.theta,N=Uh({cx:n,cy:r,radius:a,angle:f,sign:-d,isExternal:!0,cornerRadius:s,cornerIsExternal:l}),M=N.circleTangency,C=N.lineTangency,L=N.theta,D=l?Math.abs(c-f):Math.abs(c-f)-T-L;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(M.x,",").concat(M.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(E.x,",").concat(E.y,"Z")}else S+="L".concat(n,",").concat(r,"Z");return S},Lye={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},IL=function(t){var n=XC(XC({},Lye),t),r=n.cx,a=n.cy,i=n.innerRadius,s=n.outerRadius,o=n.cornerRadius,l=n.forceCornerRadius,c=n.cornerIsExternal,f=n.startAngle,d=n.endAngle,h=n.className;if(s<i||f===d)return null;var p=ve("recharts-sector",h),m=s-i,g=pn(o,m,0,!0),b;return g>0&&Math.abs(f-d)<360?b=kye({cx:r,cy:a,innerRadius:i,outerRadius:s,cornerRadius:Math.min(g,m/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:f,endAngle:d}):b=zL({cx:r,cy:a,innerRadius:i,outerRadius:s,startAngle:f,endAngle:d}),_.createElement("path",v1({},ie(n,!0),{className:p,d:b,role:"img"}))};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 b1(){return b1=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},b1.apply(this,arguments)}function WC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function QC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WC(Object(n),!0).forEach(function(r){zye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zye(e,t,n){return t=Iye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iye(e){var t=Bye(e,"string");return nd(t)=="symbol"?t:t+""}function Bye(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)}var ZC={curveBasisClosed:zte,curveBasisOpen:Ite,curveBasis:Lte,curveBumpX:jte,curveBumpY:Ate,curveLinearClosed:Bte,curveLinear:wg,curveMonotoneX:Ute,curveMonotoneY:Fte,curveNatural:Vte,curveStep:Hte,curveStepAfter:Kte,curveStepBefore:qte},Fh=function(t){return t.x===+t.x&&t.y===+t.y},vu=function(t){return t.x},bu=function(t){return t.y},Uye=function(t,n){if(de(t))return t;var r="curve".concat(xg(t));return(r==="curveMonotone"||r==="curveBump")&&n?ZC["".concat(r).concat(n==="vertical"?"Y":"X")]:ZC[r]||wg},Fye=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,c=l===void 0?!1:l,f=Uye(r,o),d=c?i.filter(function(g){return Fh(g)}):i,h;if(Array.isArray(s)){var p=c?s.filter(function(g){return Fh(g)}):s,m=d.map(function(g,b){return QC(QC({},g),{},{base:p[b]})});return o==="vertical"?h=Ph().y(bu).x1(vu).x0(function(g){return g.base.x}):h=Ph().x(vu).y1(bu).y0(function(g){return g.base.y}),h.defined(Fh).curve(f),h(m)}return o==="vertical"&&K(s)?h=Ph().y(bu).x1(vu).x0(s):K(s)?h=Ph().x(vu).y1(bu).y0(s):h=D5().x(vu).y(bu),h.defined(Fh).curve(f),h(d)},Qs=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?Fye(t):a;return A.createElement("path",b1({},ie(t,!1),gm(t),{className:ve("recharts-curve",n),d:s,ref:i}))},BL={exports:{}},Vye="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Hye=Vye,qye=Hye;function UL(){}function FL(){}FL.resetWarningCache=UL;var Kye=function(){function e(r,a,i,s,o,l){if(l!==qye){var c=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 c.name="Invariant Violation",c}}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:FL,resetWarningCache:UL};return n.PropTypes=n,n};BL.exports=Kye();var Gye=BL.exports;const $e=Ie(Gye),{getOwnPropertyNames:Yye,getOwnPropertySymbols:Xye}=Object,{hasOwnProperty:Wye}=Object.prototype;function Mb(e,t){return function(r,a,i){return e(r,a,i)&&t(r,a,i)}}function Vh(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 Qye(e){return e!=null?e[Symbol.toStringTag]:void 0}function JC(e){return Yye(e).concat(Xye(e))}const Zye=Object.hasOwn||((e,t)=>Wye.call(e,t));function Eo(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const Jye="__v",ege="__o",tge="_owner",{getOwnPropertyDescriptor:e_,keys:t_}=Object;function nge(e,t){return e.byteLength===t.byteLength&&Xm(new Uint8Array(e),new Uint8Array(t))}function rge(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 age(e,t){return e.byteLength===t.byteLength&&Xm(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function ige(e,t){return Eo(e.getTime(),t.getTime())}function sge(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function oge(e,t){return e===t}function n_(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 c=t.entries();let f=!1,d=0;for(;(o=c.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 lge=Eo;function cge(e,t,n){const r=t_(e);let a=r.length;if(t_(t).length!==a)return!1;for(;a-- >0;)if(!VL(e,t,n,r[a]))return!1;return!0}function xu(e,t,n){const r=JC(e);let a=r.length;if(JC(t).length!==a)return!1;let i,s,o;for(;a-- >0;)if(i=r[a],!VL(e,t,n,i)||(s=e_(e,i),o=e_(t,i),(s||o)&&(!s||!o||s.configurable!==o.configurable||s.enumerable!==o.enumerable||s.writable!==o.writable)))return!1;return!0}function uge(e,t){return Eo(e.valueOf(),t.valueOf())}function fge(e,t){return e.source===t.source&&e.flags===t.flags}function r_(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 c=!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)){c=a[f]=!0;break}f++}if(!c)return!1}return!0}function Xm(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 dge(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 VL(e,t,n,r){return(r===tge||r===ege||r===Jye)&&(e.$$typeof||t.$$typeof)?!0:Zye(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const hge="[object ArrayBuffer]",pge="[object Arguments]",mge="[object Boolean]",yge="[object DataView]",gge="[object Date]",vge="[object Error]",bge="[object Map]",xge="[object Number]",Sge="[object Object]",wge="[object RegExp]",jge="[object Set]",Age="[object String]",Oge={"[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},Ege="[object URL]",Tge=Object.prototype.toString;function Nge({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:i,areMapsEqual:s,areNumbersEqual:o,areObjectsEqual:l,arePrimitiveWrappersEqual:c,areRegExpsEqual:f,areSetsEqual:d,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:m}){return function(b,y,v){if(b===y)return!0;if(b==null||y==null)return!1;const x=typeof b;if(x!==typeof y)return!1;if(x!=="object")return x==="number"?o(b,y,v):x==="function"?i(b,y,v):!1;const w=b.constructor;if(w!==y.constructor)return!1;if(w===Object)return l(b,y,v);if(Array.isArray(b))return t(b,y,v);if(w===Date)return r(b,y,v);if(w===RegExp)return f(b,y,v);if(w===Map)return s(b,y,v);if(w===Set)return d(b,y,v);const S=Tge.call(b);if(S===gge)return r(b,y,v);if(S===wge)return f(b,y,v);if(S===bge)return s(b,y,v);if(S===jge)return d(b,y,v);if(S===Sge)return typeof b.then!="function"&&typeof y.then!="function"&&l(b,y,v);if(S===Ege)return p(b,y,v);if(S===vge)return a(b,y,v);if(S===pge)return l(b,y,v);if(Oge[S])return h(b,y,v);if(S===hge)return e(b,y,v);if(S===yge)return n(b,y,v);if(S===mge||S===xge||S===Age)return c(b,y,v);if(m){let j=m[S];if(!j){const O=Qye(b);O&&(j=m[O])}if(j)return j(b,y,v)}return!1}}function Cge({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:nge,areArraysEqual:n?xu:rge,areDataViewsEqual:age,areDatesEqual:ige,areErrorsEqual:sge,areFunctionsEqual:oge,areMapsEqual:n?Mb(n_,xu):n_,areNumbersEqual:lge,areObjectsEqual:n?xu:cge,arePrimitiveWrappersEqual:uge,areRegExpsEqual:fge,areSetsEqual:n?Mb(r_,xu):r_,areTypedArraysEqual:n?Mb(Xm,xu):Xm,areUrlsEqual:dge,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const a=Vh(r.areArraysEqual),i=Vh(r.areMapsEqual),s=Vh(r.areObjectsEqual),o=Vh(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:s,areSetsEqual:o})}return r}function _ge(e){return function(t,n,r,a,i,s,o){return e(t,n,o)}}function Pge({circular:e,comparator:t,createState:n,equals:r,strict:a}){if(n)return function(o,l){const{cache:c=e?new WeakMap:void 0,meta:f}=n();return t(o,l,{cache:c,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 Mge=os();os({strict:!0});os({circular:!0});os({circular:!0,strict:!0});os({createInternalComparator:()=>Eo});os({strict:!0,createInternalComparator:()=>Eo});os({circular:!0,createInternalComparator:()=>Eo});os({circular:!0,createInternalComparator:()=>Eo,strict:!0});function os(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,i=Cge(e),s=Nge(i),o=n?n(s):_ge(s);return Pge({circular:t,comparator:s,createState:r,equals:o,strict:a})}function Rge(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function a_(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):Rge(a)};requestAnimationFrame(r)}function x1(e){"@babel/helpers - typeof";return x1=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},x1(e)}function Dge(e){return zge(e)||Lge(e)||kge(e)||$ge()}function $ge(){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 kge(e,t){if(e){if(typeof e=="string")return i_(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 i_(e,t)}}function i_(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 Lge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zge(e){if(Array.isArray(e))return e}function Ige(){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=Dge(s),l=o[0],c=o.slice(1);if(typeof l=="number"){a_(a.bind(null,c),l);return}a(l),a_(a.bind(null,c));return}x1(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 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)}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){HL(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 HL(e,t,n){return t=Bge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bge(e){var t=Uge(e,"string");return rd(t)==="symbol"?t:String(t)}function Uge(e,t){if(rd(e)!=="object"||e===null)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)}var Fge=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(i){return a.includes(i)})})},Vge=function(t){return t},Hge=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},af=function(t,n){return Object.keys(n).reduce(function(r,a){return o_(o_({},r),{},HL({},a,t(a,n[a])))},{})},l_=function(t,n,r){return t.map(function(a){return"".concat(Hge(a)," ").concat(n,"ms ").concat(r)}).join(",")};function qge(e,t){return Yge(e)||Gge(e,t)||qL(e,t)||Kge()}function Kge(){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 Gge(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,c=!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){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function Yge(e){if(Array.isArray(e))return e}function Xge(e){return Zge(e)||Qge(e)||qL(e)||Wge()}function Wge(){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 qL(e,t){if(e){if(typeof e=="string")return S1(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 S1(e,t)}}function Qge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zge(e){if(Array.isArray(e))return S1(e)}function S1(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 Wm=1e-4,KL=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},GL=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},c_=function(t,n){return function(r){var a=KL(t,n);return GL(a,r)}},Jge=function(t,n){return function(r){var a=KL(t,n),i=[].concat(Xge(a.map(function(s,o){return s*o}).slice(1)),[0]);return GL(i,r)}},u_=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 c=l[1].split(")")[0].split(",").map(function(b){return parseFloat(b)}),f=qge(c,4);a=f[0],i=f[1],s=f[2],o=f[3]}}}var d=c_(a,s),h=c_(i,o),p=Jge(a,s),m=function(y){return y>1?1:y<0?0:y},g=function(y){for(var v=y>1?1:y,x=v,w=0;w<8;++w){var S=d(x)-v,j=p(x);if(Math.abs(S-v)<Wm||j<Wm)return h(x);x=m(x-S/j)}return h(x)};return g.isStepper=!1,g},eve=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,b=h*o/1e3+f;return Math.abs(b-d)<Wm&&Math.abs(g)<Wm?[d,0]:[b,g]};return l.isStepper=!0,l.dt=o,l},tve=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 u_(a);case"spring":return eve();default:if(a.split("(")[0]==="cubic-bezier")return u_(a)}return typeof a=="function"?a:null};function ad(e){"@babel/helpers - typeof";return ad=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},ad(e)}function f_(e){return ave(e)||rve(e)||YL(e)||nve()}function nve(){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 rve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ave(e){if(Array.isArray(e))return j1(e)}function d_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Yt(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){w1(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 w1(e,t,n){return t=ive(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ive(e){var t=sve(e,"string");return ad(t)==="symbol"?t:String(t)}function sve(e,t){if(ad(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ad(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ove(e,t){return uve(e)||cve(e,t)||YL(e,t)||lve()}function lve(){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 YL(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 cve(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,c=!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){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function uve(e){if(Array.isArray(e))return e}var Qm=function(t,n,r){return t+(n-t)*r},A1=function(t){var n=t.from,r=t.to;return n!==r},fve=function e(t,n,r){var a=af(function(i,s){if(A1(s)){var o=t(s.from,s.to,s.velocity),l=ove(o,2),c=l[0],f=l[1];return Yt(Yt({},s),{},{from:c,velocity:f})}return s},n);return r<1?af(function(i,s){return A1(s)?Yt(Yt({},s),{},{velocity:Qm(s.velocity,a[i].velocity,r),from:Qm(s.from,a[i].from,r)}):s},n):e(t,a,r-1)};const dve=function(e,t,n,r,a){var i=Fge(e,t),s=i.reduce(function(b,y){return Yt(Yt({},b),{},w1({},y,[e[y],t[y]]))},{}),o=i.reduce(function(b,y){return Yt(Yt({},b),{},w1({},y,{from:e[y],velocity:0,to:t[y]}))},{}),l=-1,c,f,d=function(){return null},h=function(){return af(function(y,v){return v.from},o)},p=function(){return!Object.values(o).filter(A1).length},m=function(y){c||(c=y);var v=y-c,x=v/n.dt;o=fve(n,o,x),a(Yt(Yt(Yt({},e),t),h())),c=y,p()||(l=requestAnimationFrame(d))},g=function(y){f||(f=y);var v=(y-f)/r,x=af(function(S,j){return Qm.apply(void 0,f_(j).concat([n(v)]))},s);if(a(Yt(Yt(Yt({},e),t),x)),v<1)l=requestAnimationFrame(d);else{var w=af(function(S,j){return Qm.apply(void 0,f_(j).concat([n(1)]))},s);a(Yt(Yt(Yt({},e),t),w))}};return d=n.isStepper?m:g,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(l)}}};function lc(e){"@babel/helpers - typeof";return lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lc(e)}var hve=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function pve(e,t){if(e==null)return{};var n=mve(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 mve(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 Rb(e){return bve(e)||vve(e)||gve(e)||yve()}function yve(){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 gve(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 vve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bve(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 h_(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 Nr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h_(Object(n),!0).forEach(function(r){Mu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mu(e,t,n){return t=XL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sve(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,XL(r.key),r)}}function wve(e,t,n){return t&&Sve(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XL(e){var t=jve(e,"string");return lc(t)==="symbol"?t:String(t)}function jve(e,t){if(lc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ave(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&&E1(e,t)}function E1(e,t){return E1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},E1(e,t)}function Ove(e){var t=Eve();return function(){var r=Zm(e),a;if(t){var i=Zm(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return T1(this,a)}}function T1(e,t){if(t&&(lc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return N1(e)}function N1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Eve(){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 Zm(e){return Zm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zm(e)}var zr=function(e){Ave(n,e);var t=Ove(n);function n(r,a){var i;xve(this,n),i=t.call(this,r,a);var s=i.props,o=s.isActive,l=s.attributeName,c=s.from,f=s.to,d=s.steps,h=s.children,p=s.duration;if(i.handleStyleChange=i.handleStyleChange.bind(N1(i)),i.changeStyle=i.changeStyle.bind(N1(i)),!o||p<=0)return i.state={style:{}},typeof h=="function"&&(i.state={style:f}),T1(i);if(d&&d.length)i.state={style:d[0].style};else if(c){if(typeof h=="function")return i.state={style:c},T1(i);i.state={style:l?Mu({},l,c):c}}else i.state={style:{}};return i}return wve(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,c=i.shouldReAnimate,f=i.to,d=i.from,h=this.state.style;if(o){if(!s){var p={style:l?Mu({},l,f):f};this.state&&h&&(l&&h[l]!==f||!l&&h!==f)&&this.setState(p);return}if(!(Mge(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||c?d:a.to;if(this.state&&h){var b={style:l?Mu({},l,g):g};(l&&h[l]!==g||!l&&h!==g)&&this.setState(b)}this.runAnimation(Nr(Nr({},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,c=a.easing,f=a.begin,d=a.onAnimationEnd,h=a.onAnimationStart,p=dve(s,o,tve(c),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,c=s[0],f=c.style,d=c.duration,h=d===void 0?0:d,p=function(g,b,y){if(y===0)return g;var v=b.duration,x=b.easing,w=x===void 0?"ease":x,S=b.style,j=b.properties,O=b.onAnimationEnd,E=y>0?s[y-1]:b,T=j||Object.keys(S);if(typeof w=="function"||w==="spring")return[].concat(Rb(g),[i.runJSAnimation.bind(i,{from:E.style,to:S,duration:v,easing:w}),v]);var N=l_(T,v,w),M=Nr(Nr(Nr({},E.style),S),{},{transition:N});return[].concat(Rb(g),[M,v,O]).filter(Vge)};return this.manager.start([l].concat(Rb(s.reduce(p,[f,Math.max(h,o)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=Ige());var i=a.begin,s=a.duration,o=a.attributeName,l=a.to,c=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 c=="function"||typeof p=="function"||c==="spring"){this.runJSAnimation(a);return}if(h.length>1){this.runStepAnimation(a);return}var g=o?Mu({},o,l):l,b=l_(Object.keys(g),s,c);m.start([f,i,Nr(Nr({},g),{},{transition:b}),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=pve(a,hve),c=A.Children.count(i),f=this.state.style;if(typeof i=="function")return i(f);if(!o||c===0||s<=0)return i;var d=function(p){var m=p.props,g=m.style,b=g===void 0?{}:g,y=m.className,v=A.cloneElement(p,Nr(Nr({},l),{},{style:Nr(Nr({},b),f),className:y}));return v};return c===1?d(A.Children.only(i)):_.createElement("div",null,A.Children.map(i,function(h){return d(h)}))}}]),n}(A.PureComponent);zr.displayName="Animate";zr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};zr.propTypes={from:$e.oneOfType([$e.object,$e.string]),to:$e.oneOfType([$e.object,$e.string]),attributeName:$e.string,duration:$e.number,begin:$e.number,easing:$e.oneOfType([$e.string,$e.func]),steps:$e.arrayOf($e.shape({duration:$e.number.isRequired,style:$e.object.isRequired,easing:$e.oneOfType([$e.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),$e.func]),properties:$e.arrayOf("string"),onAnimationEnd:$e.func})),children:$e.oneOfType([$e.node,$e.func]),isActive:$e.bool,canBegin:$e.bool,onAnimationEnd:$e.func,shouldReAnimate:$e.bool,onAnimationStart:$e.func,onAnimationReStart:$e.func};function 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)}function Jm(){return Jm=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},Jm.apply(this,arguments)}function Tve(e,t){return Pve(e)||_ve(e,t)||Cve(e,t)||Nve()}function Nve(){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 Cve(e,t){if(e){if(typeof e=="string")return p_(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 p_(e,t)}}function p_(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 _ve(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,c=!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){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function Pve(e){if(Array.isArray(e))return e}function m_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function y_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m_(Object(n),!0).forEach(function(r){Mve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mve(e,t,n){return t=Rve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rve(e){var t=Dve(e,"string");return id(t)=="symbol"?t:t+""}function Dve(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)}var g_=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,c=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(c,",").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(c,`,
        `).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(c,`,
        `).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(c,`,
        `).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(c,",").concat(t+l*m,",").concat(n,`
            L `).concat(t+r-l*m,",").concat(n,`
            A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+r,",").concat(n+o*m,`
            L `).concat(t+r,",").concat(n+a-o*m,`
            A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+r-l*m,",").concat(n+a,`
            L `).concat(t+l*m,",").concat(n+a,`
            A `).concat(m,",").concat(m,",0,0,").concat(c,",").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},$ve=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 c=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>=c&&r<=f&&a>=d&&a<=h}return!1},kve={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},fA=function(t){var n=y_(y_({},kve),t),r=A.useRef(),a=A.useState(-1),i=Tve(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,c=n.y,f=n.width,d=n.height,h=n.radius,p=n.className,m=n.animationEasing,g=n.animationDuration,b=n.animationBegin,y=n.isAnimationActive,v=n.isUpdateAnimationActive;if(l!==+l||c!==+c||f!==+f||d!==+d||f===0||d===0)return null;var x=ve("recharts-rectangle",p);return v?_.createElement(zr,{canBegin:s>0,from:{width:f,height:d,x:l,y:c},to:{width:f,height:d,x:l,y:c},duration:g,animationEasing:m,isActive:v},function(w){var S=w.width,j=w.height,O=w.x,E=w.y;return _.createElement(zr,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:g,isActive:y,easing:m},_.createElement("path",Jm({},ie(n,!0),{className:x,d:g_(O,E,S,j,h),ref:r})))}):_.createElement("path",Jm({},ie(n,!0),{className:x,d:g_(l,c,f,d,h)}))},Lve=["points","className","baseLinePoints","connectNulls"];function ol(){return ol=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},ol.apply(this,arguments)}function zve(e,t){if(e==null)return{};var n=Ive(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 Ive(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 v_(e){return Vve(e)||Fve(e)||Uve(e)||Bve()}function Bve(){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 Uve(e,t){if(e){if(typeof e=="string")return C1(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 C1(e,t)}}function Fve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vve(e){if(Array.isArray(e))return C1(e)}function C1(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 b_=function(t){return t&&t.x===+t.x&&t.y===+t.y},Hve=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){b_(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),b_(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},sf=function(t,n){var r=Hve(t);n&&(r=[r.reduce(function(i,s){return[].concat(v_(i),v_(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},qve=function(t,n,r){var a=sf(t,r);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(sf(n.reverse(),r).slice(1))},Kve=function(t){var n=t.points,r=t.className,a=t.baseLinePoints,i=t.connectNulls,s=zve(t,Lve);if(!n||!n.length)return null;var o=ve("recharts-polygon",r);if(a&&a.length){var l=s.stroke&&s.stroke!=="none",c=qve(n,a,i);return _.createElement("g",{className:o},_.createElement("path",ol({},ie(s,!0),{fill:c.slice(-1)==="Z"?s.fill:"none",stroke:"none",d:c})),l?_.createElement("path",ol({},ie(s,!0),{fill:"none",d:sf(n,i)})):null,l?_.createElement("path",ol({},ie(s,!0),{fill:"none",d:sf(a,i)})):null)}var f=sf(n,i);return _.createElement("path",ol({},ie(s,!0),{fill:f.slice(-1)==="Z"?s.fill:"none",className:o,d:f}))};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)}var eh=function(t){var n=t.cx,r=t.cy,a=t.r,i=t.className,s=ve("recharts-dot",i);return n===+n&&r===+r&&a===+a?A.createElement("circle",_1({},ie(t,!1),gm(t),{className:s,cx:n,cy:r,r:a})):null};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)}var Gve=["x","y","top","left","width","height","className"];function P1(){return P1=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},P1.apply(this,arguments)}function x_(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 Yve(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x_(Object(n),!0).forEach(function(r){Xve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xve(e,t,n){return t=Wve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wve(e){var t=Qve(e,"string");return sd(t)=="symbol"?t:t+""}function Qve(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)}function Zve(e,t){if(e==null)return{};var n=Jve(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 Jve(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 ebe=function(t,n,r,a,i,s){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(s,",").concat(n,"h").concat(r)},tbe=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,c=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=Zve(t,Gve),b=Yve({x:r,y:i,top:o,left:c,width:d,height:p},g);return!K(r)||!K(i)||!K(d)||!K(p)||!K(o)||!K(c)?null:_.createElement("path",P1({},ie(b,!0),{className:ve("recharts-cross",m),d:ebe(r,i,d,p,o,c)}))},nbe=Dg,rbe=oL,abe=ha;function ibe(e,t){return e&&e.length?nbe(e,abe(t),rbe):void 0}var sbe=ibe;const obe=Ie(sbe);var lbe=Dg,cbe=ha,ube=lL;function fbe(e,t){return e&&e.length?lbe(e,cbe(t),ube):void 0}var dbe=fbe;const hbe=Ie(dbe);var pbe=["cx","cy","angle","ticks","axisLine"],mbe=["ticks","tick","angle","tickFormatter","stroke"];function cc(e){"@babel/helpers - typeof";return cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cc(e)}function of(){return of=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},of.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 ds(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){zg(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 w_(e,t){if(e==null)return{};var n=ybe(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 ybe(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 gbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j_(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,QL(r.key),r)}}function vbe(e,t,n){return t&&j_(e.prototype,t),n&&j_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function bbe(e,t,n){return t=ey(t),xbe(e,WL()?Reflect.construct(t,n||[],ey(e).constructor):t.apply(e,n))}function xbe(e,t){if(t&&(cc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sbe(e)}function Sbe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WL=function(){return!!e})()}function ey(e){return ey=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ey(e)}function wbe(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&&M1(e,t)}function M1(e,t){return M1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},M1(e,t)}function zg(e,t,n){return t=QL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QL(e){var t=jbe(e,"string");return cc(t)=="symbol"?t:t+""}function jbe(e,t){if(cc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ig=function(e){function t(){return gbe(this,t),bbe(this,t,arguments)}return wbe(t,e),vbe(t,[{key:"getTickValueCoord",value:function(r){var a=r.coordinate,i=this.props,s=i.angle,o=i.cx,l=i.cy;return Je(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=obe(o,function(f){return f.coordinate||0}),c=hbe(o,function(f){return f.coordinate||0});return{cx:a,cy:i,startAngle:s,endAngle:s,innerRadius:c.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,c=w_(r,pbe),f=o.reduce(function(m,g){return[Math.min(m[0],g.coordinate),Math.max(m[1],g.coordinate)]},[1/0,-1/0]),d=Je(a,i,f[0],s),h=Je(a,i,f[1],s),p=ds(ds(ds({},ie(c,!1)),{},{fill:"none"},ie(l,!1)),{},{x1:d.x,y1:d.y,x2:h.x,y2:h.y});return _.createElement("line",of({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,c=a.stroke,f=w_(a,mbe),d=this.getTickTextAnchor(),h=ie(f,!1),p=ie(s,!1),m=i.map(function(g,b){var y=r.getTickValueCoord(g),v=ds(ds(ds(ds({textAnchor:d,transform:"rotate(".concat(90-o,", ").concat(y.x,", ").concat(y.y,")")},h),{},{stroke:"none",fill:c},p),{},{index:b},y),{},{payload:g});return _.createElement(Ae,of({className:ve("recharts-polar-radius-axis-tick",kL(s)),key:"tick-".concat(g.coordinate)},lo(r.props,g,b)),t.renderTickItem(s,v,l?l(g.value,b):g.value))});return _.createElement(Ae,{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(Ae,{className:ve("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),s&&this.renderTicks(),Ht.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(co,of({},a,{className:"recharts-polar-radius-axis-tick-value"}),i),s}}])}(A.PureComponent);zg(Ig,"displayName","PolarRadiusAxis");zg(Ig,"axisType","radiusAxis");zg(Ig,"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 uc(e){"@babel/helpers - typeof";return uc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uc(e)}function js(){return js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},js.apply(this,arguments)}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 hs(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){Bg(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 Abe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O_(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,JL(r.key),r)}}function Obe(e,t,n){return t&&O_(e.prototype,t),n&&O_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ebe(e,t,n){return t=ty(t),Tbe(e,ZL()?Reflect.construct(t,n||[],ty(e).constructor):t.apply(e,n))}function Tbe(e,t){if(t&&(uc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nbe(e)}function Nbe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZL=function(){return!!e})()}function ty(e){return ty=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ty(e)}function Cbe(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&&R1(e,t)}function R1(e,t){return R1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},R1(e,t)}function Bg(e,t,n){return t=JL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JL(e){var t=_be(e,"string");return uc(t)=="symbol"?t:t+""}function _be(e,t){if(uc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Pbe=Math.PI/180,E_=1e-5,Ug=function(e){function t(){return Abe(this,t),Ebe(this,t,arguments)}return Cbe(t,e),Obe(t,[{key:"getTickLineCoord",value:function(r){var a=this.props,i=a.cx,s=a.cy,o=a.radius,l=a.orientation,c=a.tickSize,f=c||8,d=Je(i,s,o,r.coordinate),h=Je(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*Pbe),s;return i>E_?s=a==="outer"?"start":"end":i<-E_?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,c=hs(hs({},ie(this.props,!1)),{},{fill:"none"},ie(o,!1));if(l==="circle")return _.createElement(eh,js({className:"recharts-polar-angle-axis-line"},c,{cx:a,cy:i,r:s}));var f=this.props.ticks,d=f.map(function(h){return Je(a,i,s,h.coordinate)});return _.createElement(Kve,js({className:"recharts-polar-angle-axis-line"},c,{points:d}))}},{key:"renderTicks",value:function(){var r=this,a=this.props,i=a.ticks,s=a.tick,o=a.tickLine,l=a.tickFormatter,c=a.stroke,f=ie(this.props,!1),d=ie(s,!1),h=hs(hs({},f),{},{fill:"none"},ie(o,!1)),p=i.map(function(m,g){var b=r.getTickLineCoord(m),y=r.getTickTextAnchor(m),v=hs(hs(hs({textAnchor:y},f),{},{stroke:"none",fill:c},d),{},{index:g,payload:m,x:b.x2,y:b.y2});return _.createElement(Ae,js({className:ve("recharts-polar-angle-axis-tick",kL(s)),key:"tick-".concat(m.coordinate)},lo(r.props,m,g)),o&&_.createElement("line",js({className:"recharts-polar-angle-axis-tick-line"},h,b)),s&&t.renderTickItem(s,v,l?l(m.value,g):m.value))});return _.createElement(Ae,{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(Ae,{className:ve("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(co,js({},a,{className:"recharts-polar-angle-axis-tick-value"}),i),s}}])}(A.PureComponent);Bg(Ug,"displayName","PolarAngleAxis");Bg(Ug,"axisType","angleAxis");Bg(Ug,"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 Mbe=a4,Rbe=Mbe(Object.getPrototypeOf,Object),Dbe=Rbe,$be=ri,kbe=Dbe,Lbe=ai,zbe="[object Object]",Ibe=Function.prototype,Bbe=Object.prototype,e6=Ibe.toString,Ube=Bbe.hasOwnProperty,Fbe=e6.call(Object);function Vbe(e){if(!Lbe(e)||$be(e)!=zbe)return!1;var t=kbe(e);if(t===null)return!0;var n=Ube.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&e6.call(n)==Fbe}var Hbe=Vbe;const qbe=Ie(Hbe);var Kbe=ri,Gbe=ai,Ybe="[object Boolean]";function Xbe(e){return e===!0||e===!1||Gbe(e)&&Kbe(e)==Ybe}var Wbe=Xbe;const Qbe=Ie(Wbe);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 ny(){return ny=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},ny.apply(this,arguments)}function Zbe(e,t){return n0e(e)||t0e(e,t)||e0e(e,t)||Jbe()}function Jbe(){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 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 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,c=!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){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function n0e(e){if(Array.isArray(e))return e}function N_(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 C_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N_(Object(n),!0).forEach(function(r){r0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N_(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 od(t)=="symbol"?t:t+""}function i0e(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 __=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=C_(C_({},s0e),t),r=A.useRef(),a=A.useState(-1),i=Zbe(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,c=n.y,f=n.upperWidth,d=n.lowerWidth,h=n.height,p=n.className,m=n.animationEasing,g=n.animationDuration,b=n.animationBegin,y=n.isUpdateAnimationActive;if(l!==+l||c!==+c||f!==+f||d!==+d||h!==+h||f===0&&d===0||h===0)return null;var v=ve("recharts-trapezoid",p);return y?_.createElement(zr,{canBegin:s>0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:c},to:{upperWidth:f,lowerWidth:d,height:h,x:l,y:c},duration:g,animationEasing:m,isActive:y},function(x){var w=x.upperWidth,S=x.lowerWidth,j=x.height,O=x.x,E=x.y;return _.createElement(zr,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:g,easing:m},_.createElement("path",ny({},ie(n,!0),{className:v,d:__(O,E,w,S,j),ref:r})))}):_.createElement("g",null,_.createElement("path",ny({},ie(n,!0),{className:v,d:__(l,c,f,d,h)})))},l0e=["option","shapeType","propTransformer","activeClassName","isActive"];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 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 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 ry(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){f0e(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 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 ld(t)=="symbol"?t:t+""}function h0e(e,t){if(ld(e)!="object"||!e)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)}function p0e(e,t){return ry(ry({},t),e)}function m0e(e,t){return e==="symbols"}function M_(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return _.createElement(fA,n);case"trapezoid":return _.createElement(o0e,n);case"sector":return _.createElement(IL,n);case"symbols":if(m0e(t))return _.createElement(_j,n);break;default:return null}}function y0e(e){return A.isValidElement(e)?e.props:e}function t6(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),c;if(A.isValidElement(t))c=A.cloneElement(t,ry(ry({},l),y0e(t)));else if(de(t))c=t(l);else if(qbe(t)&&!Qbe(t)){var f=a(t,l);c=_.createElement(M_,{shapeType:n,elementProps:f})}else{var d=l;c=_.createElement(M_,{shapeType:n,elementProps:d})}return o?_.createElement(Ae,{className:s},c):c}function Fg(e,t){return t!=null&&"trapezoids"in e.props}function Vg(e,t){return t!=null&&"sectors"in e.props}function cd(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 Fg(e,t)?n=g0e:Vg(e,t)?n=v0e:cd(e,t)&&(n=b0e),n}function S0e(e,t){var n;return Fg(e,t)?n="trapezoids":Vg(e,t)?n="sectors":cd(e,t)&&(n="points"),n}function w0e(e,t){if(Fg(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(Vg(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 cd(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,c){var f=uo(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=c===h;return f&&p}),o=r.indexOf(s[s.length-1]);return o}var xp;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 ll(){return ll=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},ll.apply(this,arguments)}function R_(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 We(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R_(Object(n),!0).forEach(function(r){pr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R_(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 D_(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,r6(r.key),r)}}function O0e(e,t,n){return t&&D_(e.prototype,t),n&&D_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function E0e(e,t,n){return t=ay(t),T0e(e,n6()?Reflect.construct(t,n||[],ay(e).constructor):t.apply(e,n))}function T0e(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 N0e(e)}function N0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(n6=function(){return!!e})()}function ay(e){return ay=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ay(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&&D1(e,t)}function D1(e,t){return D1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},D1(e,t)}function pr(e,t,n){return t=r6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r6(e){var t=_0e(e,"string");return fc(t)=="symbol"?t:t+""}function _0e(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 si=function(e){function t(n){var r;return A0e(this,t),r=E0e(this,t,[n]),pr(r,"pieRef",null),pr(r,"sectorRefs",[]),pr(r,"id",jo("recharts-pie-")),pr(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),de(a)&&a()}),pr(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,c=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,b){var y=(g.startAngle+g.endAngle)/2,v=Je(g.cx,g.cy,g.outerRadius+p,y),x=We(We(We(We({},f),g),{},{stroke:"none"},d),{},{index:b,textAnchor:t.getTextAnchor(v.x,g.cx)},v),w=We(We(We(We({},f),g),{},{fill:"none",stroke:g.fill},h),{},{index:b,points:[Je(g.cx,g.cy,g.outerRadius,y),v]}),S=l;return me(l)&&me(c)?S="value":me(l)&&(S=c),_.createElement(Ae,{key:"label-".concat(g.startAngle,"-").concat(g.endAngle,"-").concat(g.midAngle,"-").concat(b)},o&&t.renderLabelLineItem(o,w,"line"),t.renderLabelItem(s,x,St(g,S)))});return _.createElement(Ae,{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(c,f){if((c==null?void 0:c.startAngle)===0&&(c==null?void 0:c.endAngle)===0&&r.length!==1)return null;var d=a.isActiveIndex(f),h=l&&a.hasActiveIndex()?l:null,p=d?s:h,m=We(We({},c),{},{stroke:o?c.fill:c.stroke,tabIndex:-1});return _.createElement(Ae,ll({ref:function(b){b&&!a.sectorRefs.includes(b)&&a.sectorRefs.push(b)},tabIndex:-1,className:"recharts-pie-sector"},lo(a.props,c,f),{key:"sector-".concat(c==null?void 0:c.startAngle,"-").concat(c==null?void 0:c.endAngle,"-").concat(c.midAngle,"-").concat(f)}),_.createElement(t6,ll({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,c=a.animationEasing,f=a.animationId,d=this.state,h=d.prevSectors,p=d.prevIsAnimationActive;return _.createElement(zr,{begin:o,duration:l,isActive:s,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var g=m.t,b=[],y=i&&i[0],v=y.startAngle;return i.forEach(function(x,w){var S=h&&h[w],j=w>0?Xn(x,"paddingAngle",0):0;if(S){var O=Rt(S.endAngle-S.startAngle,x.endAngle-x.startAngle),E=We(We({},x),{},{startAngle:v+j,endAngle:v+O(g)+j});b.push(E),v=E.endAngle}else{var T=x.endAngle,N=x.startAngle,M=Rt(0,T-N),C=M(g),L=We(We({},x),{},{startAngle:v+j,endAngle:v+C+j});b.push(L),v=L.endAngle}}),_.createElement(Ae,null,r.renderSectorsStatically(b))})}},{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||!uo(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,c=a.cx,f=a.cy,d=a.innerRadius,h=a.outerRadius,p=a.isAnimationActive,m=this.state.isAnimationFinished;if(i||!s||!s.length||!K(c)||!K(f)||!K(d)||!K(h))return null;var g=ve("recharts-pie",o);return _.createElement(Ae,{tabIndex:this.props.rootTabIndex,className:g,ref:function(y){r.pieRef=y}},this.renderSectors(),l&&this.renderLabels(s),Ht.renderCallByParent(this.props,null,!1),(!p||m)&&sa.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=ve("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return _.createElement(Qs,ll({},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=ve("recharts-pie-label-text",typeof r!="boolean"&&!de(r)?r.className:"");return _.createElement(co,ll({},a,{alignmentBaseline:"middle",className:o}),s)}}])}(A.PureComponent);xp=si;pr(si,"displayName","Pie");pr(si,"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:!as.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});pr(si,"parseDeltaAngle",function(e,t){var n=hn(t-e),r=Math.min(Math.abs(t-e),360);return n*r});pr(si,"getRealPieData",function(e){var t=e.data,n=e.children,r=ie(e,!1),a=Wn(n,Tg);return t&&t.length?t.map(function(i,s){return We(We(We({payload:i},r),i),a&&a[s]&&a[s].props)}):a&&a.length?a.map(function(i){return We(We({},r),i.props)}):[]});pr(si,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,i=t.height,s=$L(a,i),o=r+pn(e.cx,a,a/2),l=n+pn(e.cy,i,i/2),c=pn(e.innerRadius,s,0),f=pn(e.outerRadius,s,s*.8),d=e.maxRadius||Math.sqrt(a*a+i*i)/2;return{cx:o,cy:l,innerRadius:c,outerRadius:f,maxRadius:d}});pr(si,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?We(We({},t.type.defaultProps),t.props):t.props,a=xp.getRealPieData(r);if(!a||!a.length)return null;var i=r.cornerRadius,s=r.startAngle,o=r.endAngle,l=r.paddingAngle,c=r.dataKey,f=r.nameKey,d=r.valueKey,h=r.tooltipType,p=Math.abs(r.minAngle),m=xp.parseCoordinateOfPie(r,n),g=xp.parseDeltaAngle(s,o),b=Math.abs(g),y=c;me(c)&&me(d)?(kr(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),y="value"):me(c)&&(kr(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),y=d);var v=a.filter(function(E){return St(E,y,0)!==0}).length,x=(b>=360?v:v-1)*l,w=b-v*p-x,S=a.reduce(function(E,T){var N=St(T,y,0);return E+(K(N)?N:0)},0),j;if(S>0){var O;j=a.map(function(E,T){var N=St(E,y,0),M=St(E,f,T),C=(K(N)?N:0)/S,L;T?L=O.endAngle+hn(g)*l*(N!==0?1:0):L=s;var D=L+hn(g)*((N!==0?p:0)+C*w),$=(L+D)/2,P=(m.innerRadius+m.outerRadius)/2,k=[{name:M,value:N,payload:E,dataKey:y,type:h}],I=Je(m.cx,m.cy,P,$);return O=We(We(We({percent:C,cornerRadius:i,name:M,tooltipPayload:k,midAngle:$,middleRadius:P,tooltipPosition:I},E),m),{},{value:St(E,y),startAngle:L,endAngle:D,payload:E,paddingAngle:hn(g)*l}),O})}return We(We({},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,$0e=j4,$_=1/0,k0e=17976931348623157e292;function L0e(e){if(!e)return e===0?e:0;if(e=$0e(e),e===$_||e===-$_){var t=e<0?-1:1;return t*k0e}return e===e?e:0}var a6=L0e,z0e=D0e,I0e=Eg,Db=a6;function B0e(e){return function(t,n,r){return r&&typeof r!="number"&&I0e(t,n,r)&&(n=r=void 0),t=Db(t),n===void 0?(n=t,t=0):n=Db(n),r=r===void 0?t<n?1:-1:Db(r),z0e(t,n,r,e)}}var U0e=B0e,F0e=U0e,V0e=F0e(),H0e=V0e;const iy=Ie(H0e);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 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 L_(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){i6(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 i6(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 ud(t)=="symbol"?t:t+""}function K0e(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 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 L_(L_({},i),{},i6({},s+r,n))},{});return a[t]=n,a};function dc(e){"@babel/helpers - typeof";return dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dc(e)}function 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 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 $b(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){$n(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 X0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I_(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,o6(r.key),r)}}function W0e(e,t,n){return t&&I_(e.prototype,t),n&&I_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q0e(e,t,n){return t=oy(t),Z0e(e,s6()?Reflect.construct(t,n||[],oy(e).constructor):t.apply(e,n))}function Z0e(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 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 s6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(s6=function(){return!!e})()}function oy(e){return oy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},oy(e)}function exe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$1(e,t)}function $1(e,t){return $1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},$1(e,t)}function $n(e,t,n){return t=o6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o6(e){var t=txe(e,"string");return dc(t)=="symbol"?t:t+""}function txe(e,t){if(dc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var nxe=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,c=nf().domain(iy(0,l)).range([i,i+s-o]),f=c.domain().map(function(d){return c(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(r),endX:c(a),scale:c,scaleValues:f}},B_=function(t){return t.changedTouches&&!!t.changedTouches.length},hc=function(e){function t(n){var r;return X0e(this,t),r=Q0e(this,t,[n]),$n(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),$n(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),$n(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()}),$n(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),$n(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),$n(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),$n(r,"handleSlideDragStart",function(a){var i=B_(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 exe(t,e),W0e(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,c=o.data,f=c.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=St(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,c=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,c+f-d-o,c+f-d-s):g<0&&(g=Math.max(g,c-s,c-o));var b=this.getIndex({startX:s+g,endX:o+g});(b.startIndex!==h||b.endIndex!==p)&&m&&m(b),this.setState({startX:s+g,endX:o+g,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var i=B_(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,c=this.state[s],f=this.props,d=f.x,h=f.width,p=f.travellerWidth,m=f.onChange,g=f.gap,b=f.data,y={startX:this.state.startX,endX:this.state.endX},v=r.pageX-i;v>0?v=Math.min(v,d+h-p-c):v<0&&(v=Math.max(v,d-c)),y[s]=c+v;var x=this.getIndex(y),w=x.startIndex,S=x.endIndex,j=function(){var E=b.length-1;return s==="startX"&&(o>l?w%g===0:S%g===0)||o<l&&S===E||s==="endX"&&(o>l?S%g===0:w%g===0)||o>l&&S===E};this.setState($n($n({},s,c+v),"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,c=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>=c||a==="endX"&&p<=l||this.setState($n({},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,c=r.stroke;return _.createElement("rect",{stroke:c,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,c=r.children,f=r.padding,d=A.Children.only(c);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,c=l.y,f=l.travellerWidth,d=l.height,h=l.traveller,p=l.ariaLabel,m=l.data,g=l.startIndex,b=l.endIndex,y=Math.max(r,this.props.x),v=$b($b({},ie(this.props,!1)),{},{x:y,y:c,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[b])===null||s===void 0?void 0:s.name);return _.createElement(Ae,{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,v))}},{key:"renderSlide",value:function(r,a){var i=this.props,s=i.y,o=i.height,l=i.stroke,c=i.travellerWidth,f=Math.min(r,a)+c,d=Math.max(Math.abs(a-r)-c,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,c=r.stroke,f=this.state,d=f.startX,h=f.endX,p=5,m={pointerEvents:"none",fill:c};return _.createElement(Ae,{className:"recharts-brush-texts"},_.createElement(co,sy({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,h)-p,y:s+o/2},m),this.getTextOfTick(a)),_.createElement(co,sy({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,c=r.width,f=r.height,d=r.alwaysShowText,h=this.state,p=h.startX,m=h.endX,g=h.isTextActive,b=h.isSlideMoving,y=h.isTravellerMoving,v=h.isTravellerFocused;if(!a||!a.length||!K(o)||!K(l)||!K(c)||!K(f)||c<=0||f<=0)return null;var x=ve("recharts-brush",i),w=_.Children.count(s)===1,S=Y0e("userSelect","none");return _.createElement(Ae,{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||b||y||v||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var a=r.x,i=r.y,s=r.width,o=r.height,l=r.stroke,c=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:c,x2:a+s-1,y2:c,fill:"none",stroke:"#fff"}),_.createElement("line",{x1:a+1,y1:c+2,x2:a+s-1,y2:c+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,c=r.updateId,f=r.startIndex,d=r.endIndex;if(i!==a.prevData||c!==a.prevUpdateId)return $b({prevData:i,prevTravellerWidth:l,prevUpdateId:c,prevX:o,prevWidth:s},i&&i.length?nxe({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:c,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);$n(hc,"displayName","Brush");$n(hc,"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 rxe=Lj;function axe(e,t){var n;return rxe(e,function(r,a,i){return n=t(r,a,i),!n}),!!n}var ixe=axe,sxe=W5,oxe=ha,lxe=ixe,cxe=Mn,uxe=Eg;function fxe(e,t,n){var r=cxe(e)?sxe:lxe;return n&&uxe(e,t,n)&&(t=void 0),r(e,oxe(t))}var dxe=fxe;const hxe=Ie(dxe);var oa=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},U_=v4;function pxe(e,t,n){t=="__proto__"&&U_?U_(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var mxe=pxe,yxe=mxe,gxe=y4,vxe=ha;function bxe(e,t){var n={};return t=vxe(t),gxe(e,function(r,a,i){yxe(n,a,t(r,a,i))}),n}var xxe=bxe;const Sxe=Ie(xxe);function wxe(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 jxe=wxe,Axe=Lj;function Oxe(e,t){var n=!0;return Axe(e,function(r,a,i){return n=!!t(r,a,i),n}),n}var Exe=Oxe,Txe=jxe,Nxe=Exe,Cxe=ha,_xe=Mn,Pxe=Eg;function Mxe(e,t,n){var r=_xe(e)?Txe:Nxe;return n&&Pxe(e,t,n)&&(t=void 0),r(e,Cxe(t))}var Rxe=Mxe;const l6=Ie(Rxe);var Dxe=["x","y"];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)}function k1(){return k1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k1.apply(this,arguments)}function F_(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 Su(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F_(Object(n),!0).forEach(function(r){$xe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $xe(e,t,n){return t=kxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kxe(e){var t=Lxe(e,"string");return fd(t)=="symbol"?t:t+""}function Lxe(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 zxe(e,t){if(e==null)return{};var n=Ixe(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 Ixe(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 Bxe(e,t){var n=e.x,r=e.y,a=zxe(e,Dxe),i="".concat(n),s=parseInt(i,10),o="".concat(r),l=parseInt(o,10),c="".concat(t.height||a.height),f=parseInt(c,10),d="".concat(t.width||a.width),h=parseInt(d,10);return Su(Su(Su(Su(Su({},t),a),s?{x:s}:{}),l?{y:l}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function V_(e){return _.createElement(t6,k1({shapeType:"rectangle",propTransformer:Bxe,activeClassName:"recharts-active-bar"},e))}var Uxe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,a){if(typeof t=="number")return t;var i=K(r)||cee(r);return i?t(r,a):(i||ho(),n)}},Fxe=["value","background"],c6;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 Vxe(e,t){if(e==null)return{};var n=Hxe(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 Hxe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ly(){return ly=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},ly.apply(this,arguments)}function H_(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 At(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H_(Object(n),!0).forEach(function(r){$i(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q_(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 Kxe(e,t,n){return t&&q_(e.prototype,t),n&&q_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gxe(e,t,n){return t=cy(t),Yxe(e,u6()?Reflect.construct(t,n||[],cy(e).constructor):t.apply(e,n))}function Yxe(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 Xxe(e)}function Xxe(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 cy(e){return cy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cy(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&&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 $i(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=Qxe(e,"string");return pc(t)=="symbol"?t:t+""}function Qxe(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 String(e)}var To=function(e){function t(){var n;qxe(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Gxe(this,t,[].concat(a)),$i(n,"state",{isAnimationFinished:!1}),$i(n,"id",jo("recharts-bar-")),$i(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),s&&s()}),$i(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),s&&s()}),n}return Wxe(t,e),Kxe(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,i=this.props,s=i.shape,o=i.dataKey,l=i.activeIndex,c=i.activeBar,f=ie(this.props,!1);return r&&r.map(function(d,h){var p=h===l,m=p?c:s,g=At(At(At({},f),d),{},{isActive:p,option:m,index:h,dataKey:o,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return _.createElement(Ae,ly({className:"recharts-bar-rectangle"},lo(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(V_,g))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,a=this.props,i=a.data,s=a.layout,o=a.isAnimationActive,l=a.animationBegin,c=a.animationDuration,f=a.animationEasing,d=a.animationId,h=this.state.prevData;return _.createElement(zr,{begin:l,duration:c,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(b,y){var v=h&&h[y];if(v){var x=Rt(v.x,b.x),w=Rt(v.y,b.y),S=Rt(v.width,b.width),j=Rt(v.height,b.height);return At(At({},b),{},{x:x(m),y:w(m),width:S(m),height:j(m)})}if(s==="horizontal"){var O=Rt(0,b.height),E=O(m);return At(At({},b),{},{y:b.y+b.height-E,height:E})}var T=Rt(0,b.width),N=T(m);return At(At({},b),{},{width:N})});return _.createElement(Ae,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||!uo(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(c,f){c.value;var d=c.background,h=Vxe(c,Fxe);if(!d)return null;var p=At(At(At(At(At({},h),{},{fill:"#eee"},d),l),lo(r.props,c,f)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:s,index:f,className:"recharts-bar-background-rectangle"});return _.createElement(V_,ly({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,c=i.layout,f=i.children,d=Wn(f,Jd);if(!d)return null;var h=c==="vertical"?s[0].height/2:s[0].width/2,p=function(b,y){var v=Array.isArray(b.value)?b.value[1]:b.value;return{x:b.x,y:b.y,value:v,errorVal:St(b,y)}},m={clipPath:r?"url(#clipPath-".concat(a,")"):null};return _.createElement(Ae,m,d.map(function(g){return _.cloneElement(g,{key:"error-bar-".concat(a,"-").concat(g.props.dataKey),data:s,xAxis:o,yAxis:l,layout:c,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,c=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 b=this.state.isAnimationFinished,y=ve("recharts-bar",s),v=o&&o.allowDataOverflow,x=l&&l.allowDataOverflow,w=v||x,S=me(g)?this.id:g;return _.createElement(Ae,{className:y},v||x?_.createElement("defs",null,_.createElement("clipPath",{id:"clipPath-".concat(S)},_.createElement("rect",{x:v?c:c-d/2,y:x?f:f-h/2,width:v?d:d*2,height:x?h:h*2}))):null,_.createElement(Ae,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(S,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,S),(!p||b)&&sa.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);c6=To;$i(To,"displayName","Bar");$i(To,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!as.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});$i(To,"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,c=e.stackedData,f=e.dataStartIndex,d=e.displayedData,h=e.offset,p=Tme(r,n);if(!p)return null;var m=t.layout,g=n.type.defaultProps,b=g!==void 0?At(At({},g),n.props):n.props,y=b.dataKey,v=b.children,x=b.minPointSize,w=m==="horizontal"?s:i,S=c?w.scale.domain():null,j=Dme({numericAxis:w}),O=Wn(v,Tg),E=d.map(function(T,N){var M,C,L,D,$,P;c?M=Nme(c[f+N],S):(M=St(T,y),Array.isArray(M)||(M=[j,M]));var k=Uxe(x,c6.defaultProps.minPointSize)(M[1],N);if(m==="horizontal"){var I,F=[s.scale(M[0]),s.scale(M[1])],H=F[0],Y=F[1];C=LC({axis:i,ticks:o,bandSize:a,offset:p.offset,entry:T,index:N}),L=(I=Y??H)!==null&&I!==void 0?I:void 0,D=p.size;var q=H-Y;if($=Number.isNaN(q)?0:q,P={x:C,y:s.y,width:D,height:s.height},Math.abs(k)>0&&Math.abs($)<Math.abs(k)){var te=hn($||k)*(Math.abs(k)-Math.abs($));L-=te,$+=te}}else{var Z=[i.scale(M[0]),i.scale(M[1])],ye=Z[0],J=Z[1];if(C=ye,L=LC({axis:s,ticks:l,bandSize:a,offset:p.offset,entry:T,index:N}),D=J-ye,$=p.size,P={x:i.x,y:L,width:i.width,height:$},Math.abs(k)>0&&Math.abs(D)<Math.abs(k)){var st=hn(D||k)*(Math.abs(k)-Math.abs(D));D+=st}}return At(At(At({},T),{},{x:C,y:L,width:D,height:$,value:c?M:M[1],payload:T,background:P},O&&O[N]&&O[N].props),{},{tooltipPayload:[RL(n,T)],tooltipPosition:{x:C+D/2,y:L+$/2}})});return At({data:E,layout:m},h)});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 Zxe(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,d6(r.key),r)}}function Jxe(e,t,n){return t&&K_(e.prototype,t),n&&K_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function G_(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 Mr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G_(Object(n),!0).forEach(function(r){Hg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hg(e,t,n){return t=d6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d6(e){var t=e1e(e,"string");return dd(t)=="symbol"?t:t+""}function e1e(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 dA=function(t,n,r,a,i){var s=t.width,o=t.height,l=t.layout,c=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=!!Ln(c,To);return f.reduce(function(p,m){var g=n[m],b=g.orientation,y=g.domain,v=g.padding,x=v===void 0?{}:v,w=g.mirror,S=g.reversed,j="".concat(b).concat(w?"Mirror":""),O,E,T,N,M;if(g.type==="number"&&(g.padding==="gap"||g.padding==="no-gap")){var C=y[1]-y[0],L=1/0,D=g.categoricalDomain.sort(dee);if(D.forEach(function(Z,ye){ye>0&&(L=Math.min((Z||0)-(D[ye-1]||0),L))}),Number.isFinite(L)){var $=L/C,P=g.layout==="vertical"?r.height:r.width;if(g.padding==="gap"&&(O=$*P/2),g.padding==="no-gap"){var k=pn(t.barCategoryGap,$*P),I=$*P/2;O=I-k-(I-k)/P*k}}}a==="xAxis"?E=[r.left+(x.left||0)+(O||0),r.left+r.width-(x.right||0)-(O||0)]:a==="yAxis"?E=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)]:E=g.range,S&&(E=[E[1],E[0]]);var F=CL(g,i,h),H=F.scale,Y=F.realScaleType;H.domain(y).range(E),_L(H);var q=PL(H,Mr(Mr({},g),{},{realScaleType:Y}));a==="xAxis"?(M=b==="top"&&!w||b==="bottom"&&w,T=r.left,N=d[j]-M*g.height):a==="yAxis"&&(M=b==="left"&&!w||b==="right"&&w,T=d[j]-M*g.width,N=r.top);var te=Mr(Mr(Mr({},g),q),{},{realScaleType:Y,x:T,y:N,scale:H,width:a==="xAxis"?r.width:g.width,height:a==="yAxis"?r.height:g.height});return te.bandSize=Km(te,q),!g.hide&&a==="xAxis"?d[j]+=(M?-1:1)*te.height:g.hide||(d[j]+=(M?-1:1)*te.width),Mr(Mr({},p),{},Hg({},m,te))},{})},h6=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)}},t1e=function(t){var n=t.x1,r=t.y1,a=t.x2,i=t.y2;return h6({x:n,y:r},{x:a,y:i})},p6=function(){function e(t){Zxe(this,e),this.scale=t}return Jxe(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)}}])}();Hg(p6,"EPS",1e-4);var hA=function(t){var n=Object.keys(t).reduce(function(r,a){return Mr(Mr({},r),{},Hg({},a,p6.create(t[a])))},{});return Mr(Mr({},n),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=i.bandAware,o=i.position;return Sxe(a,function(l,c){return n[c].apply(l,{bandAware:s,position:o})})},isInRange:function(a){return l6(a,function(i,s){return n[s].isInRange(i)})}})};function n1e(e){return(e%180+180)%180}var r1e=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=n1e(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)},a1e=ha,i1e=Yd,s1e=Ag;function o1e(e){return function(t,n,r){var a=Object(t);if(!i1e(t)){var i=a1e(n);t=s1e(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 l1e=o1e,c1e=a6;function u1e(e){var t=c1e(e),n=t%1;return t===t?n?t-n:t:0}var f1e=u1e,d1e=u4,h1e=ha,p1e=f1e,m1e=Math.max;function y1e(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=n==null?0:p1e(n);return a<0&&(a=m1e(r+a,0)),d1e(e,h1e(t),a)}var g1e=y1e,v1e=l1e,b1e=g1e,x1e=v1e(b1e),S1e=x1e;const w1e=Ie(S1e);var j1e=mJ(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("")}),pA=A.createContext(void 0),mA=A.createContext(void 0),m6=A.createContext(void 0),y6=A.createContext({}),g6=A.createContext(void 0),v6=A.createContext(0),b6=A.createContext(0),Y_=function(t){var n=t.state,r=n.xAxisMap,a=n.yAxisMap,i=n.offset,s=t.clipPathId,o=t.children,l=t.width,c=t.height,f=j1e(i);return _.createElement(pA.Provider,{value:r},_.createElement(mA.Provider,{value:a},_.createElement(y6.Provider,{value:i},_.createElement(m6.Provider,{value:f},_.createElement(g6.Provider,{value:s},_.createElement(v6.Provider,{value:c},_.createElement(b6.Provider,{value:l},o)))))))},A1e=function(){return A.useContext(g6)},x6=function(t){var n=A.useContext(pA);n==null&&ho();var r=n[t];return r==null&&ho(),r},O1e=function(){var t=A.useContext(pA);return xi(t)},E1e=function(){var t=A.useContext(mA),n=w1e(t,function(r){return l6(r.domain,Number.isFinite)});return n||xi(t)},S6=function(t){var n=A.useContext(mA);n==null&&ho();var r=n[t];return r==null&&ho(),r},T1e=function(){var t=A.useContext(m6);return t},N1e=function(){return A.useContext(y6)},yA=function(){return A.useContext(b6)},gA=function(){return A.useContext(v6)};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 C1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _1e(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,j6(r.key),r)}}function P1e(e,t,n){return t&&_1e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function M1e(e,t,n){return t=uy(t),R1e(e,w6()?Reflect.construct(t,n||[],uy(e).constructor):t.apply(e,n))}function R1e(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 D1e(e)}function D1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(w6=function(){return!!e})()}function uy(e){return uy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},uy(e)}function $1e(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 X_(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 W_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X_(Object(n),!0).forEach(function(r){vA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vA(e,t,n){return t=j6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j6(e){var t=k1e(e,"string");return mc(t)=="symbol"?t:t+""}function k1e(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)}function L1e(e,t){return U1e(e)||B1e(e,t)||I1e(e,t)||z1e()}function z1e(){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 I1e(e,t){if(e){if(typeof e=="string")return Q_(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 Q_(e,t)}}function Q_(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 B1e(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,c=!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){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function U1e(e){if(Array.isArray(e))return e}function I1(){return I1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I1.apply(this,arguments)}var F1e=function(t,n){var r;return _.isValidElement(t)?r=_.cloneElement(t,n):de(t)?r=t(n):r=_.createElement("line",I1({},n,{className:"recharts-reference-line-line"})),r},V1e=function(t,n,r,a,i,s,o,l,c){var f=i.x,d=i.y,h=i.width,p=i.height;if(r){var m=c.y,g=t.y.apply(m,{position:s});if(oa(c,"discard")&&!t.y.isInRange(g))return null;var b=[{x:f+h,y:g},{x:f,y:g}];return l==="left"?b.reverse():b}if(n){var y=c.x,v=t.x.apply(y,{position:s});if(oa(c,"discard")&&!t.x.isInRange(v))return null;var x=[{x:v,y:d+p},{x:v,y:d}];return o==="top"?x.reverse():x}if(a){var w=c.segment,S=w.map(function(j){return t.apply(j,{position:s})});return oa(c,"discard")&&hxe(S,function(j){return!t.isInRange(j)})?null:S}return null};function H1e(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,c=A1e(),f=x6(a),d=S6(i),h=T1e();if(!c||!h)return null;kr(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=hA({x:f.scale,y:d.scale}),m=$t(t),g=$t(n),b=r&&r.length===2,y=V1e(p,m,g,b,h,e.position,f.orientation,d.orientation,e);if(!y)return null;var v=L1e(y,2),x=v[0],w=x.x,S=x.y,j=v[1],O=j.x,E=j.y,T=oa(e,"hidden")?"url(#".concat(c,")"):void 0,N=W_(W_({clipPath:T},ie(e,!0)),{},{x1:w,y1:S,x2:O,y2:E});return _.createElement(Ae,{className:ve("recharts-reference-line",o)},F1e(s,N),Ht.renderCallByParent(e,t1e({x1:w,y1:S,x2:O,y2:E})))}var bA=function(e){function t(){return C1e(this,t),M1e(this,t,arguments)}return $1e(t,e),P1e(t,[{key:"render",value:function(){return _.createElement(H1e,this.props)}}])}(_.Component);vA(bA,"displayName","ReferenceLine");vA(bA,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function B1(){return B1=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},B1.apply(this,arguments)}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 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 J_(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){qg(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 q1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K1e(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,O6(r.key),r)}}function G1e(e,t,n){return t&&K1e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Y1e(e,t,n){return t=fy(t),X1e(e,A6()?Reflect.construct(t,n||[],fy(e).constructor):t.apply(e,n))}function X1e(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 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 A6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(A6=function(){return!!e})()}function fy(e){return fy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fy(e)}function Q1e(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&&U1(e,t)}function U1(e,t){return U1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},U1(e,t)}function qg(e,t,n){return t=O6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O6(e){var t=Z1e(e,"string");return yc(t)=="symbol"?t:t+""}function Z1e(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 J1e=function(t){var n=t.x,r=t.y,a=t.xAxis,i=t.yAxis,s=hA({x:a.scale,y:i.scale}),o=s.apply({x:n,y:r},{bandAware:!0});return oa(t,"discard")&&!s.isInRange(o)?null:o},Kg=function(e){function t(){return q1e(this,t),Y1e(this,t,arguments)}return Q1e(t,e),G1e(t,[{key:"render",value:function(){var r=this.props,a=r.x,i=r.y,s=r.r,o=r.alwaysShow,l=r.clipPathId,c=$t(a),f=$t(i);if(kr(o===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!f)return null;var d=J1e(this.props);if(!d)return null;var h=d.x,p=d.y,m=this.props,g=m.shape,b=m.className,y=oa(this.props,"hidden")?"url(#".concat(l,")"):void 0,v=J_(J_({clipPath:y},ie(this.props,!0)),{},{cx:h,cy:p});return _.createElement(Ae,{className:ve("recharts-reference-dot",b)},t.renderDot(g,v),Ht.renderCallByParent(this.props,{x:h-s,y:p-s,width:2*s,height:2*s}))}}])}(_.Component);qg(Kg,"displayName","ReferenceDot");qg(Kg,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});qg(Kg,"renderDot",function(e,t){var n;return _.isValidElement(e)?n=_.cloneElement(e,t):de(e)?n=e(t):n=_.createElement(eh,B1({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});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 gc(e){"@babel/helpers - typeof";return gc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gc(e)}function 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 tP(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){Gg(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 eSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tSe(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,T6(r.key),r)}}function nSe(e,t,n){return t&&tSe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rSe(e,t,n){return t=dy(t),aSe(e,E6()?Reflect.construct(t,n||[],dy(e).constructor):t.apply(e,n))}function aSe(e,t){if(t&&(gc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iSe(e)}function iSe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(E6=function(){return!!e})()}function dy(e){return dy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dy(e)}function sSe(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 Gg(e,t,n){return t=T6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T6(e){var t=oSe(e,"string");return gc(t)=="symbol"?t:t+""}function oSe(e,t){if(gc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var lSe=function(t,n,r,a,i){var s=i.x1,o=i.x2,l=i.y1,c=i.y2,f=i.xAxis,d=i.yAxis;if(!f||!d)return null;var h=hA({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(c,{position:"end"}):h.y.rangeMax};return oa(i,"discard")&&(!h.isInRange(p)||!h.isInRange(m))?null:h6(p,m)},Yg=function(e){function t(){return eSe(this,t),rSe(this,t,arguments)}return sSe(t,e),nSe(t,[{key:"render",value:function(){var r=this.props,a=r.x1,i=r.x2,s=r.y1,o=r.y2,l=r.className,c=r.alwaysShow,f=r.clipPathId;kr(c===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 b=lSe(d,h,p,m,this.props);if(!b&&!g)return null;var y=oa(this.props,"hidden")?"url(#".concat(f,")"):void 0;return _.createElement(Ae,{className:ve("recharts-reference-area",l)},t.renderRect(g,tP(tP({clipPath:y},ie(this.props,!0)),b)),Ht.renderCallByParent(this.props,b))}}])}(_.Component);Gg(Yg,"displayName","ReferenceArea");Gg(Yg,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Gg(Yg,"renderRect",function(e,t){var n;return _.isValidElement(e)?n=_.cloneElement(e,t):de(e)?n=e(t):n=_.createElement(fA,F1({},t,{className:"recharts-reference-area-rect"})),n});function N6(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 cSe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return r1e(r,n)}function uSe(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 hy(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 fSe(e,t){return N6(e,t+1)}function dSe(e,t,n,r,a){for(var i=(r||[]).slice(),s=t.start,o=t.end,l=0,c=1,f=s,d=function(){var m=r==null?void 0:r[l];if(m===void 0)return{v:N6(r,c)};var g=l,b,y=function(){return b===void 0&&(b=n(m,g)),b},v=m.coordinate,x=l===0||hy(e,v,y,f,o);x||(l=0,f=s,c+=1),x&&(f=v+e*(y()/2+a),l+=c)},h;c<=i.length;)if(h=d(),h)return h.v;return[]}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 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 on(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){hSe(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 hSe(e,t,n){return t=pSe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pSe(e){var t=mSe(e,"string");return hd(t)=="symbol"?t:t+""}function mSe(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 ySe(e,t,n,r,a){for(var i=(r||[]).slice(),s=i.length,o=t.start,l=t.end,c=function(h){var p=i[h],m,g=function(){return m===void 0&&(m=n(p,h)),m};if(h===s-1){var b=e*(p.coordinate+e*g()/2-l);i[h]=p=on(on({},p),{},{tickCoord:b>0?p.coordinate-b*e:p.coordinate})}else i[h]=p=on(on({},p),{},{tickCoord:p.coordinate});var y=hy(e,p.tickCoord,g,o,l);y&&(l=p.tickCoord-e*(g()/2+a),i[h]=on(on({},p),{},{isShow:!0}))},f=s-1;f>=0;f--)c(f);return i}function gSe(e,t,n,r,a,i){var s=(r||[]).slice(),o=s.length,l=t.start,c=t.end;if(i){var f=r[o-1],d=n(f,o-1),h=e*(f.coordinate+e*d/2-c);s[o-1]=f=on(on({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var p=hy(e,f.tickCoord,function(){return d},l,c);p&&(c=f.tickCoord-e*(d/2+a),s[o-1]=on(on({},f),{},{isShow:!0}))}for(var m=i?o-1:o,g=function(v){var x=s[v],w,S=function(){return w===void 0&&(w=n(x,v)),w};if(v===0){var j=e*(x.coordinate-e*S()/2-l);s[v]=x=on(on({},x),{},{tickCoord:j<0?x.coordinate-j*e:x.coordinate})}else s[v]=x=on(on({},x),{},{tickCoord:x.coordinate});var O=hy(e,x.tickCoord,S,l,c);O&&(l=x.tickCoord+e*(S()/2+a),s[v]=on(on({},x),{},{isShow:!0}))},b=0;b<m;b++)g(b);return s}function xA(e,t,n){var r=e.tick,a=e.ticks,i=e.viewBox,s=e.minTickGap,o=e.orientation,l=e.interval,c=e.tickFormatter,f=e.unit,d=e.angle;if(!a||!a.length||!r)return[];if(K(l)||as.isSsr)return fSe(a,typeof l=="number"&&K(l)?l:0);var h=[],p=o==="top"||o==="bottom"?"width":"height",m=f&&p==="width"?tf(f,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=function(x,w){var S=de(c)?c(x.value,w):x.value;return p==="width"?cSe(tf(S,{fontSize:t,letterSpacing:n}),m,d):tf(S,{fontSize:t,letterSpacing:n})[p]},b=a.length>=2?hn(a[1].coordinate-a[0].coordinate):1,y=uSe(i,b,p);return l==="equidistantPreserveStart"?dSe(b,y,g,a,s):(l==="preserveStart"||l==="preserveStartEnd"?h=gSe(b,y,g,a,s,l==="preserveStartEnd"):h=ySe(b,y,g,a,s),h.filter(function(v){return v.isShow}))}var vSe=["viewBox"],bSe=["viewBox"],xSe=["ticks"];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 cl(){return cl=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},cl.apply(this,arguments)}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 Pt(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){SA(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 kb(e,t){if(e==null)return{};var n=SSe(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 SSe(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 wSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aP(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 jSe(e,t,n){return t&&aP(e.prototype,t),n&&aP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ASe(e,t,n){return t=py(t),OSe(e,C6()?Reflect.construct(t,n||[],py(e).constructor):t.apply(e,n))}function OSe(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 ESe(e)}function ESe(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 py(e){return py=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},py(e)}function TSe(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 SA(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=NSe(e,"string");return vc(t)=="symbol"?t:t+""}function NSe(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 Zc=function(e){function t(n){var r;return wSe(this,t),r=ASe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return TSe(t,e),jSe(t,[{key:"shouldComponentUpdate",value:function(r,a){var i=r.viewBox,s=kb(r,vSe),o=this.props,l=o.viewBox,c=kb(o,bSe);return!xl(i,l)||!xl(s,c)||!xl(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,c=a.orientation,f=a.tickSize,d=a.mirror,h=a.tickMargin,p,m,g,b,y,v,x=d?-1:1,w=r.tickSize||f,S=K(r.tickCoord)?r.tickCoord:r.coordinate;switch(c){case"top":p=m=r.coordinate,b=s+ +!d*l,g=b-x*w,v=g-x*h,y=S;break;case"left":g=b=r.coordinate,m=i+ +!d*o,p=m-x*w,y=p-x*h,v=S;break;case"right":g=b=r.coordinate,m=i+ +d*o,p=m+x*w,y=p+x*h,v=S;break;default:p=m=r.coordinate,b=s+ +d*l,g=b+x*w,v=g+x*h,y=S;break}return{line:{x1:p,y1:g,x2:m,y2:b},tick:{x:y,y:v}}}},{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,c=r.mirror,f=r.axisLine,d=Pt(Pt(Pt({},ie(this.props,!1)),ie(f,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var h=+(l==="top"&&!c||l==="bottom"&&c);d=Pt(Pt({},d),{},{x1:a,y1:i+h*o,x2:a+s,y2:i+h*o})}else{var p=+(l==="left"&&!c||l==="right"&&c);d=Pt(Pt({},d),{},{x1:a+p*s,y1:i,x2:a+p*s,y2:i+o})}return _.createElement("line",cl({},d,{className:ve("recharts-cartesian-axis-line",Xn(f,"className"))}))}},{key:"renderTicks",value:function(r,a,i){var s=this,o=this.props,l=o.tickLine,c=o.stroke,f=o.tick,d=o.tickFormatter,h=o.unit,p=xA(Pt(Pt({},this.props),{},{ticks:r}),a,i),m=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),b=ie(this.props,!1),y=ie(f,!1),v=Pt(Pt({},b),{},{fill:"none"},ie(l,!1)),x=p.map(function(w,S){var j=s.getTickLineCoord(w),O=j.line,E=j.tick,T=Pt(Pt(Pt(Pt({textAnchor:m,verticalAnchor:g},b),{},{stroke:"none",fill:c},y),E),{},{index:S,payload:w,visibleTicksCount:p.length,tickFormatter:d});return _.createElement(Ae,cl({className:"recharts-cartesian-axis-tick",key:"tick-".concat(w.value,"-").concat(w.coordinate,"-").concat(w.tickCoord)},lo(s.props,w,S)),l&&_.createElement("line",cl({},v,O,{className:ve("recharts-cartesian-axis-tick-line",Xn(l,"className"))})),f&&t.renderTickItem(f,T,"".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,c=a.className,f=a.hide;if(f)return null;var d=this.props,h=d.ticks,p=kb(d,xSe),m=h;return de(l)&&(m=h&&h.length>0?l(this.props):l(p)),s<=0||o<=0||!m||!m.length?null:_.createElement(Ae,{className:ve("recharts-cartesian-axis",c),ref:function(b){r.layerReference=b}},i&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),Ht.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,i){var s,o=ve(a.className,"recharts-cartesian-axis-tick-value");return _.isValidElement(r)?s=_.cloneElement(r,Pt(Pt({},a),{},{className:o})):de(r)?s=r(Pt(Pt({},a),{},{className:o})):s=_.createElement(co,cl({},a,{className:"recharts-cartesian-axis-tick-value"}),i),s}}])}(A.Component);SA(Zc,"displayName","CartesianAxis");SA(Zc,"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 CSe=["x1","y1","x2","y2","key"],_Se=["offset"];function po(e){"@babel/helpers - typeof";return po=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},po(e)}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 ln(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){PSe(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 PSe(e,t,n){return t=MSe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MSe(e){var t=RSe(e,"string");return po(t)=="symbol"?t:t+""}function RSe(e,t){if(po(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(po(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ps(){return Ps=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ps.apply(this,arguments)}function sP(e,t){if(e==null)return{};var n=DSe(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 DSe(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 $Se=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 P6(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=sP(t,CSe),c=ie(l,!1);c.offset;var f=sP(c,_Se);n=_.createElement("line",Ps({},f,{x1:r,y1:a,x2:i,y2:s,fill:"none",key:o}))}return n}function kSe(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 c=ln(ln({},e),{},{x1:t,y1:o,x2:t+n,y2:o,key:"line-".concat(l),index:l});return P6(a,c)});return _.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function LSe(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 c=ln(ln({},e),{},{x1:o,y1:t,x2:o,y2:t+n,key:"line-".concat(l),index:l});return P6(a,c)});return _.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function zSe(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,c=l===void 0?!0:l;if(!c||!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 b=p%t.length;return _.createElement("rect",{key:"react-".concat(p),y:h,x:r,height:g,width:i,stroke:"none",fill:t[b],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return _.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function ISe(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,c=e.verticalPoints;if(!n||!r||!r.length)return null;var f=c.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 b=p%r.length;return _.createElement("rect",{key:"react-".concat(p),x:h,y:s,width:g,height:l,stroke:"none",fill:r[b],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return _.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var BSe=function(t,n){var r=t.xAxis,a=t.width,i=t.height,s=t.offset;return NL(xA(ln(ln(ln({},Zc.defaultProps),r),{},{ticks:Da(r,!0),viewBox:{x:0,y:0,width:a,height:i}})),s.left,s.left+s.width,n)},USe=function(t,n){var r=t.yAxis,a=t.width,i=t.height,s=t.offset;return NL(xA(ln(ln(ln({},Zc.defaultProps),r),{},{ticks:Da(r,!0),viewBox:{x:0,y:0,width:a,height:i}})),s.top,s.top+s.height,n)},$o={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Sp(e){var t,n,r,a,i,s,o=yA(),l=gA(),c=N1e(),f=ln(ln({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:$o.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:$o.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:$o.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:$o.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:$o.vertical,verticalFill:(s=e.verticalFill)!==null&&s!==void 0?s:$o.verticalFill,x:K(e.x)?e.x:c.left,y:K(e.y)?e.y:c.top,width:K(e.width)?e.width:c.width,height:K(e.height)?e.height:c.height}),d=f.x,h=f.y,p=f.width,m=f.height,g=f.syncWithTicks,b=f.horizontalValues,y=f.verticalValues,v=O1e(),x=E1e();if(!K(p)||p<=0||!K(m)||m<=0||!K(d)||d!==+d||!K(h)||h!==+h)return null;var w=f.verticalCoordinatesGenerator||BSe,S=f.horizontalCoordinatesGenerator||USe,j=f.horizontalPoints,O=f.verticalPoints;if((!j||!j.length)&&de(S)){var E=b&&b.length,T=S({yAxis:x?ln(ln({},x),{},{ticks:E?b:x.ticks}):void 0,width:o,height:l,offset:c},E?!0:g);kr(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(po(T),"]")),Array.isArray(T)&&(j=T)}if((!O||!O.length)&&de(w)){var N=y&&y.length,M=w({xAxis:v?ln(ln({},v),{},{ticks:N?y:v.ticks}):void 0,width:o,height:l,offset:c},N?!0:g);kr(Array.isArray(M),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(po(M),"]")),Array.isArray(M)&&(O=M)}return _.createElement("g",{className:"recharts-cartesian-grid"},_.createElement($Se,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),_.createElement(kSe,Ps({},f,{offset:c,horizontalPoints:j,xAxis:v,yAxis:x})),_.createElement(LSe,Ps({},f,{offset:c,verticalPoints:O,xAxis:v,yAxis:x})),_.createElement(zSe,Ps({},f,{horizontalPoints:j})),_.createElement(ISe,Ps({},f,{verticalPoints:O})))}Sp.displayName="CartesianGrid";var FSe=["type","layout","connectNulls","ref"],VSe=["key"];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 oP(e,t){if(e==null)return{};var n=HSe(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 HSe(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 lf(){return lf=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},lf.apply(this,arguments)}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 Dn(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){Rr(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 ko(e){return YSe(e)||GSe(e)||KSe(e)||qSe()}function qSe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KSe(e,t){if(e){if(typeof e=="string")return q1(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 q1(e,t)}}function GSe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YSe(e){if(Array.isArray(e))return q1(e)}function q1(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 XSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cP(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,R6(r.key),r)}}function WSe(e,t,n){return t&&cP(e.prototype,t),n&&cP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function QSe(e,t,n){return t=my(t),ZSe(e,M6()?Reflect.construct(t,n||[],my(e).constructor):t.apply(e,n))}function ZSe(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 JSe(e)}function JSe(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 my(e){return my=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},my(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&&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 Rr(e,t,n){return t=R6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R6(e){var t=twe(e,"string");return bc(t)=="symbol"?t:t+""}function twe(e,t){if(bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var th=function(e){function t(){var n;XSe(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=QSe(this,t,[].concat(a)),Rr(n,"state",{isAnimationFinished:!0,totalLength:0}),Rr(n,"generateSimpleStrokeDasharray",function(s,o){return"".concat(o,"px ").concat(s-o,"px")}),Rr(n,"getStrokeDasharray",function(s,o,l){var c=l.reduce(function(y,v){return y+v});if(!c)return n.generateSimpleStrokeDasharray(o,s);for(var f=Math.floor(s/c),d=s%c,h=o-s,p=[],m=0,g=0;m<l.length;g+=l[m],++m)if(g+l[m]>d){p=[].concat(ko(l.slice(0,m)),[d-g]);break}var b=p.length%2===0?[0,h]:[h];return[].concat(ko(t.repeat(l,f)),ko(p),b).map(function(y){return"".concat(y,"px")}).join(", ")}),Rr(n,"id",jo("recharts-line-")),Rr(n,"pathRef",function(s){n.mainCurve=s}),Rr(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Rr(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return ewe(t,e),WSe(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,c=i.layout,f=i.children,d=Wn(f,Jd);if(!d)return null;var h=function(g,b){return{x:g.x,y:g.y,value:g.value,errorVal:St(g.payload,b)}},p={clipPath:r?"url(#clipPath-".concat(a,")"):null};return _.createElement(Ae,p,d.map(function(m){return _.cloneElement(m,{key:"bar-".concat(m.props.dataKey),data:s,xAxis:o,yAxis:l,layout:c,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,c=o.points,f=o.dataKey,d=ie(this.props,!1),h=ie(l,!0),p=c.map(function(g,b){var y=Dn(Dn(Dn({key:"dot-".concat(b),r:3},d),h),{},{index:b,cx:g.x,cy:g.y,value:g.value,dataKey:f,payload:g.payload,points:c});return t.renderDotItem(l,y)}),m={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return _.createElement(Ae,lf({className:"recharts-line-dots",key:"dots"},m),p)}},{key:"renderCurveStatically",value:function(r,a,i,s){var o=this.props,l=o.type,c=o.layout,f=o.connectNulls;o.ref;var d=oP(o,FSe),h=Dn(Dn(Dn({},ie(d,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:a?"url(#clipPath-".concat(i,")"):null,points:r},s),{},{type:l,layout:c,connectNulls:f});return _.createElement(Qs,lf({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,a){var i=this,s=this.props,o=s.points,l=s.strokeDasharray,c=s.isAnimationActive,f=s.animationBegin,d=s.animationDuration,h=s.animationEasing,p=s.animationId,m=s.animateNewValues,g=s.width,b=s.height,y=this.state,v=y.prevPoints,x=y.totalLength;return _.createElement(zr,{begin:f,duration:d,isActive:c,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(v){var j=v.length/o.length,O=o.map(function(C,L){var D=Math.floor(L*j);if(v[D]){var $=v[D],P=Rt($.x,C.x),k=Rt($.y,C.y);return Dn(Dn({},C),{},{x:P(S),y:k(S)})}if(m){var I=Rt(g*2,C.x),F=Rt(b/2,C.y);return Dn(Dn({},C),{},{x:I(S),y:F(S)})}return Dn(Dn({},C),{},{x:C.x,y:C.y})});return i.renderCurveStatically(O,r,a)}var E=Rt(0,x),T=E(S),N;if(l){var M="".concat(l).split(/[,\s]+/gim).map(function(C){return parseFloat(C)});N=i.getStrokeDasharray(T,x,M)}else N=i.generateSimpleStrokeDasharray(x,T);return i.renderCurveStatically(o,r,a,{strokeDasharray:N})})}},{key:"renderCurve",value:function(r,a){var i=this.props,s=i.points,o=i.isAnimationActive,l=this.state,c=l.prevPoints,f=l.totalLength;return o&&s&&s.length&&(!c&&f>0||!uo(c,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,c=a.xAxis,f=a.yAxis,d=a.top,h=a.left,p=a.width,m=a.height,g=a.isAnimationActive,b=a.id;if(i||!o||!o.length)return null;var y=this.state.isAnimationFinished,v=o.length===1,x=ve("recharts-line",l),w=c&&c.allowDataOverflow,S=f&&f.allowDataOverflow,j=w||S,O=me(b)?this.id:b,E=(r=ie(s,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},T=E.r,N=T===void 0?3:T,M=E.strokeWidth,C=M===void 0?2:M,L=S5(s)?s:{},D=L.clipDot,$=D===void 0?!0:D,P=N*2+C;return _.createElement(Ae,{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})),!$&&_.createElement("clipPath",{id:"clipPath-dots-".concat(O)},_.createElement("rect",{x:h-P/2,y:d-P/2,width:p+P,height:m+P}))):null,!v&&this.renderCurve(j,O),this.renderErrorBar(j,O),(v||s)&&this.renderDots(j,$,O),(!g||y)&&sa.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(ko(r),[0]):r,s=[],o=0;o<a;++o)s=[].concat(ko(s),ko(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=oP(a,VSe),l=ve("recharts-line-dot",typeof r!="boolean"?r.className:"");i=_.createElement(eh,lf({key:s},o,{className:l}))}return i}}])}(A.PureComponent);Rr(th,"displayName","Line");Rr(th,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!as.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Rr(th,"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,c=e.offset,f=t.layout,d=l.map(function(h,p){var m=St(h,s);return f==="horizontal"?{x:qm({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:qm({axis:r,ticks:i,bandSize:o,entry:h,index:p}),value:m,payload:h}});return Dn({points:d,layout:f},c)});var nwe=["layout","type","stroke","connectNulls","isRange","ref"],rwe=["key"],D6;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 $6(e,t){if(e==null)return{};var n=awe(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 awe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ms(){return Ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ms.apply(this,arguments)}function 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 di(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){ta(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 iwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fP(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,L6(r.key),r)}}function swe(e,t,n){return t&&fP(e.prototype,t),n&&fP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function owe(e,t,n){return t=yy(t),lwe(e,k6()?Reflect.construct(t,n||[],yy(e).constructor):t.apply(e,n))}function lwe(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 cwe(e)}function cwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k6=function(){return!!e})()}function yy(e){return yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yy(e)}function uwe(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&&G1(e,t)}function G1(e,t){return G1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},G1(e,t)}function ta(e,t,n){return t=L6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L6(e){var t=fwe(e,"string");return xc(t)=="symbol"?t:t+""}function fwe(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 ls=function(e){function t(){var n;iwe(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=owe(this,t,[].concat(a)),ta(n,"state",{isAnimationFinished:!0}),ta(n,"id",jo("recharts-area-")),ta(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),de(s)&&s()}),ta(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),de(s)&&s()}),n}return uwe(t,e),swe(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,c=l.dot,f=l.points,d=l.dataKey,h=ie(this.props,!1),p=ie(c,!0),m=f.map(function(b,y){var v=di(di(di({key:"dot-".concat(y),r:3},h),p),{},{index:y,cx:b.x,cy:b.y,dataKey:d,value:b.value,payload:b.payload,points:f});return t.renderDotItem(c,v)}),g={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return _.createElement(Ae,Ms({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,c=s[s.length-1].x,f=r*Math.abs(l-c),d=Di(s.map(function(h){return h.y||0}));return K(i)&&typeof i=="number"?d=Math.max(i,d):i&&Array.isArray(i)&&i.length&&(d=Math.max(Di(i.map(function(h){return h.y||0})),d)),K(d)?_.createElement("rect",{x:l<c?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,c=s[s.length-1].y,f=r*Math.abs(l-c),d=Di(s.map(function(h){return h.x||0}));return K(i)&&typeof i=="number"?d=Math.max(i,d):i&&Array.isArray(i)&&i.length&&(d=Math.max(Di(i.map(function(h){return h.x||0})),d)),K(d)?_.createElement("rect",{x:0,y:l<c?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,c=o.type,f=o.stroke,d=o.connectNulls,h=o.isRange;o.ref;var p=$6(o,nwe);return _.createElement(Ae,{clipPath:i?"url(#clipPath-".concat(s,")"):null},_.createElement(Qs,Ms({},ie(p,!0),{points:r,connectNulls:d,type:c,baseLine:a,layout:l,stroke:"none",className:"recharts-area-area"})),f!=="none"&&_.createElement(Qs,Ms({},ie(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:d,fill:"none",points:r})),f!=="none"&&h&&_.createElement(Qs,Ms({},ie(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:d,fill:"none",points:a})))}},{key:"renderAreaWithAnimation",value:function(r,a){var i=this,s=this.props,o=s.points,l=s.baseLine,c=s.isAnimationActive,f=s.animationBegin,d=s.animationDuration,h=s.animationEasing,p=s.animationId,m=this.state,g=m.prevPoints,b=m.prevBaseLine;return _.createElement(zr,{begin:f,duration:d,isActive:c,easing:h,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(y){var v=y.t;if(g){var x=g.length/o.length,w=o.map(function(E,T){var N=Math.floor(T*x);if(g[N]){var M=g[N],C=Rt(M.x,E.x),L=Rt(M.y,E.y);return di(di({},E),{},{x:C(v),y:L(v)})}return E}),S;if(K(l)&&typeof l=="number"){var j=Rt(b,l);S=j(v)}else if(me(l)||qc(l)){var O=Rt(b,0);S=O(v)}else S=l.map(function(E,T){var N=Math.floor(T*x);if(b[N]){var M=b[N],C=Rt(M.x,E.x),L=Rt(M.y,E.y);return di(di({},E),{},{x:C(v),y:L(v)})}return E});return i.renderAreaStatically(w,S,r,a)}return _.createElement(Ae,null,_.createElement("defs",null,_.createElement("clipPath",{id:"animationClipPath-".concat(a)},i.renderClipRect(v))),_.createElement(Ae,{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,c=this.state,f=c.prevPoints,d=c.prevBaseLine,h=c.totalLength;return l&&s&&s.length&&(!f&&h>0||!uo(f,s)||!uo(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,c=a.top,f=a.left,d=a.xAxis,h=a.yAxis,p=a.width,m=a.height,g=a.isAnimationActive,b=a.id;if(i||!o||!o.length)return null;var y=this.state.isAnimationFinished,v=o.length===1,x=ve("recharts-area",l),w=d&&d.allowDataOverflow,S=h&&h.allowDataOverflow,j=w||S,O=me(b)?this.id:b,E=(r=ie(s,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},T=E.r,N=T===void 0?3:T,M=E.strokeWidth,C=M===void 0?2:M,L=S5(s)?s:{},D=L.clipDot,$=D===void 0?!0:D,P=N*2+C;return _.createElement(Ae,{className:x},w||S?_.createElement("defs",null,_.createElement("clipPath",{id:"clipPath-".concat(O)},_.createElement("rect",{x:w?f:f-p/2,y:S?c:c-m/2,width:w?p:p*2,height:S?m:m*2})),!$&&_.createElement("clipPath",{id:"clipPath-dots-".concat(O)},_.createElement("rect",{x:f-P/2,y:c-P/2,width:p+P,height:m+P}))):null,v?null:this.renderArea(j,O),(s||v)&&this.renderDots(j,$,O),(!g||y)&&sa.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);D6=ls;ta(ls,"displayName","Area");ta(ls,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!as.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});ta(ls,"getBaseValue",function(e,t,n,r){var a=e.layout,i=e.baseValue,s=t.props.baseValue,o=s??i;if(K(o)&&typeof o=="number")return o;var l=a==="horizontal"?r:n,c=l.scale.domain();if(l.type==="number"){var f=Math.max(c[0],c[1]),d=Math.min(c[0],c[1]);return o==="dataMin"?d:o==="dataMax"||f<0?f:Math.max(Math.min(c[0],c[1]),0)}return o==="dataMin"?c[0]:o==="dataMax"?c[1]:c[0]});ta(ls,"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,c=e.stackedData,f=e.dataStartIndex,d=e.displayedData,h=e.offset,p=t.layout,m=c&&c.length,g=D6.getBaseValue(t,n,r,a),b=p==="horizontal",y=!1,v=d.map(function(w,S){var j;m?j=c[f+S]:(j=St(w,l),Array.isArray(j)?y=!0:j=[g,j]);var O=j[1]==null||m&&St(w,l)==null;return b?{x:qm({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:qm({axis:a,ticks:s,bandSize:o,entry:w,index:S}),value:j,payload:w}}),x;return m||y?x=v.map(function(w){var S=Array.isArray(w.value)?w.value[0]:null;return b?{x:w.x,y:S!=null&&w.y!=null?a.scale(S):null}:{x:S!=null?r.scale(S):null,y:w.y}}):x=b?a.scale(g):r.scale(g),di({points:v,baseLine:x,layout:p,isRange:y},h)});ta(ls,"renderDotItem",function(e,t){var n;if(_.isValidElement(e))n=_.cloneElement(e,t);else if(de(e))n=e(t);else{var r=ve("recharts-area-dot",typeof e!="boolean"?e.className:""),a=t.key,i=$6(t,rwe);n=_.createElement(eh,Ms({},i,{key:a,className:r}))}return 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 dwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hwe(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,B6(r.key),r)}}function pwe(e,t,n){return t&&hwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mwe(e,t,n){return t=gy(t),ywe(e,z6()?Reflect.construct(t,n||[],gy(e).constructor):t.apply(e,n))}function ywe(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 gwe(e)}function gwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(z6=function(){return!!e})()}function gy(e){return gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gy(e)}function vwe(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 I6(e,t,n){return t=B6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B6(e){var t=bwe(e,"string");return Sc(t)=="symbol"?t:t+""}function bwe(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)}function X1(){return X1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X1.apply(this,arguments)}function xwe(e){var t=e.xAxisId,n=yA(),r=gA(),a=x6(t);return a==null?null:A.createElement(Zc,X1({},a,{className:ve("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(s){return Da(s,!0)}}))}var Gi=function(e){function t(){return dwe(this,t),mwe(this,t,arguments)}return vwe(t,e),pwe(t,[{key:"render",value:function(){return A.createElement(xwe,this.props)}}])}(A.Component);I6(Gi,"displayName","XAxis");I6(Gi,"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 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 Swe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wwe(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 jwe(e,t,n){return t&&wwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Awe(e,t,n){return t=vy(t),Owe(e,U6()?Reflect.construct(t,n||[],vy(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 Ewe(e)}function Ewe(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 vy(e){return vy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vy(e)}function Twe(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 F6(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=Nwe(e,"string");return wc(t)=="symbol"?t:t+""}function Nwe(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)}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)}var Cwe=function(t){var n=t.yAxisId,r=yA(),a=gA(),i=S6(n);return i==null?null:A.createElement(Zc,Q1({},i,{className:ve("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(o){return Da(o,!0)}}))},Yi=function(e){function t(){return Swe(this,t),Awe(this,t,arguments)}return Twe(t,e),jwe(t,[{key:"render",value:function(){return A.createElement(Cwe,this.props)}}])}(A.Component);F6(Yi,"displayName","YAxis");F6(Yi,"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 dP(e){return Rwe(e)||Mwe(e)||Pwe(e)||_we()}function _we(){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 Pwe(e,t){if(e){if(typeof e=="string")return Z1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z1(e,t)}}function Mwe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Rwe(e){if(Array.isArray(e))return Z1(e)}function Z1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var J1=function(t,n,r,a,i){var s=Wn(t,bA),o=Wn(t,Kg),l=[].concat(dP(s),dP(o)),c=Wn(t,Yg),f="".concat(a,"Id"),d=a[0],h=n;if(l.length&&(h=l.reduce(function(g,b){if(b.props[f]===r&&oa(b.props,"extendDomain")&&K(b.props[d])){var y=b.props[d];return[Math.min(g[0],y),Math.max(g[1],y)]}return g},h)),c.length){var p="".concat(d,"1"),m="".concat(d,"2");h=c.reduce(function(g,b){if(b.props[f]===r&&oa(b.props,"extendDomain")&&K(b.props[p])&&K(b.props[m])){var y=b.props[p],v=b.props[m];return[Math.min(g[0],y,v),Math.max(g[1],y,v)]}return g},h)}return i&&i.length&&(h=i.reduce(function(g,b){return K(b)?[Math.min(g[0],b),Math.max(g[1],b)]:g},h)),h},H6={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,c,f){this.fn=l,this.context=c,this.once=f||!1}function i(l,c,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+c:c;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,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function o(){this._events=new r,this._eventsCount=0}o.prototype.eventNames=function(){var c=[],f,d;if(this._eventsCount===0)return c;for(d in f=this._events)t.call(f,d)&&c.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},o.prototype.listeners=function(c){var f=n?n+c:c,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(c){var f=n?n+c:c,d=this._events[f];return d?d.fn?1:d.length:0},o.prototype.emit=function(c,f,d,h,p,m){var g=n?n+c:c;if(!this._events[g])return!1;var b=this._events[g],y=arguments.length,v,x;if(b.fn){switch(b.once&&this.removeListener(c,b.fn,void 0,!0),y){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,f),!0;case 3:return b.fn.call(b.context,f,d),!0;case 4:return b.fn.call(b.context,f,d,h),!0;case 5:return b.fn.call(b.context,f,d,h,p),!0;case 6:return b.fn.call(b.context,f,d,h,p,m),!0}for(x=1,v=new Array(y-1);x<y;x++)v[x-1]=arguments[x];b.fn.apply(b.context,v)}else{var w=b.length,S;for(x=0;x<w;x++)switch(b[x].once&&this.removeListener(c,b[x].fn,void 0,!0),y){case 1:b[x].fn.call(b[x].context);break;case 2:b[x].fn.call(b[x].context,f);break;case 3:b[x].fn.call(b[x].context,f,d);break;case 4:b[x].fn.call(b[x].context,f,d,h);break;default:if(!v)for(S=1,v=new Array(y-1);S<y;S++)v[S-1]=arguments[S];b[x].fn.apply(b[x].context,v)}}return!0},o.prototype.on=function(c,f,d){return i(this,c,f,d,!1)},o.prototype.once=function(c,f,d){return i(this,c,f,d,!0)},o.prototype.removeListener=function(c,f,d,h){var p=n?n+c:c;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,b=[],y=m.length;g<y;g++)(m[g].fn!==f||h&&!m[g].once||d&&m[g].context!==d)&&b.push(m[g]);b.length?this._events[p]=b.length===1?b[0]:b:s(this,p)}return this},o.prototype.removeAllListeners=function(c){var f;return c?(f=n?n+c:c,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})(H6);var Dwe=H6.exports;const $we=Ie(Dwe);var Lb=new $we,zb="recharts.syncMouseEvents";function pd(e){"@babel/helpers - typeof";return pd=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},pd(e)}function kwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lwe(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,q6(r.key),r)}}function zwe(e,t,n){return t&&Lwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ib(e,t,n){return t=q6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q6(e){var t=Iwe(e,"string");return pd(t)=="symbol"?t:t+""}function Iwe(e,t){if(pd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Bwe=function(){function e(){kwe(this,e),Ib(this,"activeIndex",0),Ib(this,"coordinateList",[]),Ib(this,"layout","horizontal")}return zwe(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,c=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=c??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,c=((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+c,h=s+this.offset.top+o/2+f;this.mouseHandlerCallback({pageX:d,pageY:h})}}}])}();function Uwe(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],a=e==null?void 0:e[1];if(r&&a&&K(r)&&K(a))return!0}return!1}function Fwe(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 K6(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle,s=Je(t,n,r,a),o=Je(t,n,r,i);return{points:[s,o],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function Vwe(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,c=t.innerRadius,f=t.outerRadius,d=t.angle,h=Je(o,l,c,d),p=Je(o,l,f,d);r=h.x,a=h.y,i=p.x,s=p.y}else return K6(t);return[{x:r,y:a},{x:i,y:s}]}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 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 Hh(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){Hwe(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 Hwe(e,t,n){return t=qwe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qwe(e){var t=Kwe(e,"string");return md(t)=="symbol"?t:t+""}function Kwe(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)}function Gwe(e){var t,n,r=e.element,a=e.tooltipEventType,i=e.isActive,s=e.activeCoordinate,o=e.activePayload,l=e.offset,c=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=Qs;if(h==="ScatterChart")m=s,g=tbe;else if(h==="BarChart")m=Fwe(d,s,l,f),g=fA;else if(d==="radial"){var b=K6(s),y=b.cx,v=b.cy,x=b.radius,w=b.startAngle,S=b.endAngle;m={cx:y,cy:v,startAngle:w,endAngle:S,innerRadius:x,outerRadius:x},g=IL}else m={points:Vwe(d,s,l)},g=Qs;var j=Hh(Hh(Hh(Hh({stroke:"#ccc",pointerEvents:"none"},l),m),ie(p,!1)),{},{payload:o,payloadIndex:c,className:ve("recharts-tooltip-cursor",p.className)});return A.isValidElement(p)?A.cloneElement(p,j):A.createElement(g,j)}var Ywe=["item"],Xwe=["children","className","width","height","style","compact","title","desc"];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 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 pP(e,t){return Zwe(e)||Qwe(e,t)||Y6(e,t)||Wwe()}function Wwe(){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 Qwe(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,c=!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){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function Zwe(e){if(Array.isArray(e))return e}function mP(e,t){if(e==null)return{};var n=Jwe(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 Jwe(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 eje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tje(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,X6(r.key),r)}}function nje(e,t,n){return t&&tje(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rje(e,t,n){return t=by(t),aje(e,G6()?Reflect.construct(t,n||[],by(e).constructor):t.apply(e,n))}function aje(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 ije(e)}function ije(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 by(e){return by=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},by(e)}function sje(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 Ac(e){return cje(e)||lje(e)||Y6(e)||oje()}function oje(){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 Y6(e,t){if(e){if(typeof e=="string")return tS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tS(e,t)}}function lje(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cje(e){if(Array.isArray(e))return tS(e)}function tS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yP(Object(n),!0).forEach(function(r){ue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ue(e,t,n){return t=X6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X6(e){var t=uje(e,"string");return jc(t)=="symbol"?t:t+""}function uje(e,t){if(jc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fje={xAxis:["bottom","top"],yAxis:["left","right"]},dje={width:"100%",height:"100%"},W6={x:0,y:0};function qh(e){return e}var hje=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},pje=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),Je(a.cx,a.cy,o,s)),{},{angle:s,radius:o})}var l=i.coordinate,c=a.angle;return B(B(B({},a),Je(a.cx,a.cy,l,c)),{},{angle:c,radius:l})}return W6},Xg=function(t,n){var r=n.graphicalItems,a=n.dataStartIndex,i=n.dataEndIndex,s=(r??[]).reduce(function(o,l){var c=l.props.data;return c&&c.length?[].concat(Ac(o),Ac(c)):o},[]);return s.length>0?s:t&&t.length&&K(a)&&K(i)?t.slice(a,i+1):[]};function Q6(e){return e==="number"?[0,"auto"]:void 0}var nS=function(t,n,r,a){var i=t.graphicalItems,s=t.tooltipAxis,o=Xg(n,t);return r<0||!i||!i.length||r>=o.length?null:i.reduce(function(l,c){var f,d=(f=c.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=ym(p,s.dataKey,a)}else h=d&&d[r]||o[r];return h?[].concat(Ac(l),[RL(c,h)]):l},[])},gP=function(t,n,r,a){var i=a||{x:t.chartX,y:t.chartY},s=hje(i,r),o=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,f=Sme(s,o,c,l);if(f>=0&&c){var d=c[f]&&c[f].value,h=nS(t,n,f,d),p=pje(r,o,f,i);return{activeTooltipIndex:f,activeLabel:d,activePayload:h,activeCoordinate:p}}return null},mje=function(t,n){var r=n.axes,a=n.graphicalItems,i=n.axisType,s=n.axisIdKey,o=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,f=t.layout,d=t.children,h=t.stackOffset,p=TL(f,i);return r.reduce(function(m,g){var b,y=g.type.defaultProps!==void 0?B(B({},g.type.defaultProps),g.props):g.props,v=y.type,x=y.dataKey,w=y.allowDataOverflow,S=y.allowDuplicatedCategory,j=y.scale,O=y.ticks,E=y.includeHidden,T=y[s];if(m[T])return m;var N=Xg(t.data,{graphicalItems:a.filter(function(q){var te,Z=s in q.props?q.props[s]:(te=q.type.defaultProps)===null||te===void 0?void 0:te[s];return Z===T}),dataStartIndex:l,dataEndIndex:c}),M=N.length,C,L,D;Uwe(y.domain,w,v)&&(C=m1(y.domain,null,w),p&&(v==="number"||j!=="auto")&&(D=rf(N,x,"category")));var $=Q6(v);if(!C||C.length===0){var P,k=(P=y.domain)!==null&&P!==void 0?P:$;if(x){if(C=rf(N,x,v),v==="category"&&p){var I=fee(C);S&&I?(L=C,C=iy(0,M)):S||(C=BC(k,C,g).reduce(function(q,te){return q.indexOf(te)>=0?q:[].concat(Ac(q),[te])},[]))}else if(v==="category")S?C=C.filter(function(q){return q!==""&&!me(q)}):C=BC(k,C,g).reduce(function(q,te){return q.indexOf(te)>=0||te===""||me(te)?q:[].concat(Ac(q),[te])},[]);else if(v==="number"){var F=Eme(N,a.filter(function(q){var te,Z,ye=s in q.props?q.props[s]:(te=q.type.defaultProps)===null||te===void 0?void 0:te[s],J="hide"in q.props?q.props.hide:(Z=q.type.defaultProps)===null||Z===void 0?void 0:Z.hide;return ye===T&&(E||!J)}),x,i,f);F&&(C=F)}p&&(v==="number"||j!=="auto")&&(D=rf(N,x,"category"))}else p?C=iy(0,M):o&&o[T]&&o[T].hasStack&&v==="number"?C=h==="expand"?[0,1]:ML(o[T].stackGroups,l,c):C=EL(N,a.filter(function(q){var te=s in q.props?q.props[s]:q.type.defaultProps[s],Z="hide"in q.props?q.props.hide:q.type.defaultProps.hide;return te===T&&(E||!Z)}),v,f,!0);if(v==="number")C=J1(d,C,T,i,O),k&&(C=m1(k,C,w));else if(v==="category"&&k){var H=k,Y=C.every(function(q){return H.indexOf(q)>=0});Y&&(C=H)}}return B(B({},m),{},ue({},T,B(B({},y),{},{axisType:i,domain:C,categoricalDomain:D,duplicateDomain:L,originalDomain:(b=y.domain)!==null&&b!==void 0?b:$,isCategorical:p,layout:f})))},{})},yje=function(t,n){var r=n.graphicalItems,a=n.Axis,i=n.axisType,s=n.axisIdKey,o=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,f=t.layout,d=t.children,h=Xg(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:c}),p=h.length,m=TL(f,i),g=-1;return r.reduce(function(b,y){var v=y.type.defaultProps!==void 0?B(B({},y.type.defaultProps),y.props):y.props,x=v[s],w=Q6("number");if(!b[x]){g++;var S;return m?S=iy(0,p):o&&o[x]&&o[x].hasStack?(S=ML(o[x].stackGroups,l,c),S=J1(d,S,x,i)):(S=m1(w,EL(h,r.filter(function(j){var O,E,T=s in j.props?j.props[s]:(O=j.type.defaultProps)===null||O===void 0?void 0:O[s],N="hide"in j.props?j.props.hide:(E=j.type.defaultProps)===null||E===void 0?void 0:E.hide;return T===x&&!N}),"number",f),a.defaultProps.allowDataOverflow),S=J1(d,S,x,i)),B(B({},b),{},ue({},x,B(B({axisType:i},a.defaultProps),{},{hide:!0,orientation:Xn(fje,"".concat(i,".").concat(g%2),null),domain:S,originalDomain:w,isCategorical:m,layout:f})))}return b},{})},gje=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,c=n.dataEndIndex,f=t.children,d="".concat(a,"Id"),h=Wn(f,i),p={};return h&&h.length?p=mje(t,{axes:h,graphicalItems:s,axisType:a,axisIdKey:d,stackGroups:o,dataStartIndex:l,dataEndIndex:c}):s&&s.length&&(p=yje(t,{Axis:i,graphicalItems:s,axisType:a,axisIdKey:d,stackGroups:o,dataStartIndex:l,dataEndIndex:c})),p},vje=function(t){var n=xi(t),r=Da(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:zj(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Km(n,r)}},vP=function(t){var n=t.children,r=t.defaultShowTooltip,a=Ln(n,hc),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}},bje=function(t){return!t||!t.length?!1:t.some(function(n){var r=Fa(n&&n.type);return r&&r.indexOf("Bar")>=0})},bP=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"}},xje=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,c=r.width,f=r.height,d=r.children,h=r.margin||{},p=Ln(d,hc),m=Ln(d,Jr),g=Object.keys(l).reduce(function(S,j){var O=l[j],E=O.orientation;return!O.mirror&&!O.hide?B(B({},S),{},ue({},E,S[E]+O.width)):S},{left:h.left||0,right:h.right||0}),b=Object.keys(s).reduce(function(S,j){var O=s[j],E=O.orientation;return!O.mirror&&!O.hide?B(B({},S),{},ue({},E,Xn(S,"".concat(E))+O.height)):S},{top:h.top||0,bottom:h.bottom||0}),y=B(B({},b),g),v=y.bottom;p&&(y.bottom+=p.props.height||hc.defaultProps.height),m&&n&&(y=Ame(y,a,r,n));var x=c-y.left-y.right,w=f-y.top-y.bottom;return B(B({brushBottom:v},y),{},{width:Math.max(x,0),height:Math.max(w,0)})},Sje=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},Wg=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,c=t.legendContent,f=t.formatAxisMap,d=t.defaultProps,h=function(y,v){var x=v.graphicalItems,w=v.stackGroups,S=v.offset,j=v.updateId,O=v.dataStartIndex,E=v.dataEndIndex,T=y.barSize,N=y.layout,M=y.barGap,C=y.barCategoryGap,L=y.maxBarSize,D=bP(N),$=D.numericAxisName,P=D.cateAxisName,k=bje(x),I=[];return x.forEach(function(F,H){var Y=Xg(y.data,{graphicalItems:[F],dataStartIndex:O,dataEndIndex:E}),q=F.type.defaultProps!==void 0?B(B({},F.type.defaultProps),F.props):F.props,te=q.dataKey,Z=q.maxBarSize,ye=q["".concat($,"Id")],J=q["".concat(P,"Id")],st={},Ve=l.reduce(function(pa,ma){var Co=v["".concat(ma.axisType,"Map")],le=q["".concat(ma.axisType,"Id")];Co&&Co[le]||ma.axisType==="zAxis"||ho();var zt=Co[le];return B(B({},pa),{},ue(ue({},ma.axisType,zt),"".concat(ma.axisType,"Ticks"),Da(zt)))},st),G=Ve[P],oe=Ve["".concat(P,"Ticks")],X=w&&w[ye]&&w[ye].hasStack&&$me(F,w[ye].stackGroups),V=Fa(F.type).indexOf("Bar")>=0,_e=Km(G,oe),ge=[],Xe=k&&wme({barSize:T,stackGroups:w,totalSize:Sje(Ve,P)});if(V){var ot,dt,Rn=me(Z)?L:Z,oi=(ot=(dt=Km(G,oe,!0))!==null&&dt!==void 0?dt:Rn)!==null&&ot!==void 0?ot:0;ge=jme({barGap:M,barCategoryGap:C,bandSize:oi!==_e?oi:_e,sizeList:Xe[J],maxBarSize:Rn}),oi!==_e&&(ge=ge.map(function(pa){return B(B({},pa),{},{position:B(B({},pa.position),{},{offset:pa.position.offset-oi/2})})}))}var No=F&&F.type&&F.type.getComposedData;No&&I.push({props:B(B({},No(B(B({},Ve),{},{displayedData:Y,props:y,dataKey:te,item:F,bandSize:_e,barPosition:ge,offset:S,stackedData:X,layout:N,dataStartIndex:O,dataEndIndex:E}))),{},ue(ue(ue({key:F.key||"item-".concat(H)},$,Ve[$]),P,Ve[P]),"animationId",j)),childIndex:jee(F,y.children),item:F})}),I},p=function(y,v){var x=y.props,w=y.dataStartIndex,S=y.dataEndIndex,j=y.updateId;if(!DT({props:x}))return null;var O=x.children,E=x.layout,T=x.stackOffset,N=x.data,M=x.reverseStackOrder,C=bP(E),L=C.numericAxisName,D=C.cateAxisName,$=Wn(O,r),P=Rme(N,$,"".concat(L,"Id"),"".concat(D,"Id"),T,M),k=l.reduce(function(q,te){var Z="".concat(te.axisType,"Map");return B(B({},q),{},ue({},Z,gje(x,B(B({},te),{},{graphicalItems:$,stackGroups:te.axisType===L&&P,dataStartIndex:w,dataEndIndex:S}))))},{}),I=xje(B(B({},k),{},{props:x,graphicalItems:$}),v==null?void 0:v.legendBBox);Object.keys(k).forEach(function(q){k[q]=f(x,k[q],I,q.replace("Map",""),n)});var F=k["".concat(D,"Map")],H=vje(F),Y=h(x,B(B({},k),{},{dataStartIndex:w,dataEndIndex:S,updateId:j,graphicalItems:$,stackGroups:P,offset:I}));return B(B({formattedGraphicalItems:Y,graphicalItems:$,offset:I,stackGroups:P},H),k)},m=function(b){function y(v){var x,w,S;return eje(this,y),S=rje(this,y,[v]),ue(S,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ue(S,"accessibilityManager",new Bwe),ue(S,"handleLegendBBoxUpdate",function(j){if(j){var O=S.state,E=O.dataStartIndex,T=O.dataEndIndex,N=O.updateId;S.setState(B({legendBBox:j},p({props:S.props,dataStartIndex:E,dataEndIndex:T,updateId:N},B(B({},S.state),{},{legendBBox:j}))))}}),ue(S,"handleReceiveSyncEvent",function(j,O,E){if(S.props.syncId===j){if(E===S.eventEmitterSymbol&&typeof S.props.syncMethod!="function")return;S.applySyncEvent(O)}}),ue(S,"handleBrushChange",function(j){var O=j.startIndex,E=j.endIndex;if(O!==S.state.dataStartIndex||E!==S.state.dataEndIndex){var T=S.state.updateId;S.setState(function(){return B({dataStartIndex:O,dataEndIndex:E},p({props:S.props,dataStartIndex:O,dataEndIndex:E,updateId:T},S.state))}),S.triggerSyncEvent({dataStartIndex:O,dataEndIndex:E})}}),ue(S,"handleMouseEnter",function(j){var O=S.getMouseInfo(j);if(O){var E=B(B({},O),{},{isTooltipActive:!0});S.setState(E),S.triggerSyncEvent(E);var T=S.props.onMouseEnter;de(T)&&T(E,j)}}),ue(S,"triggeredAfterMouseMove",function(j){var O=S.getMouseInfo(j),E=O?B(B({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};S.setState(E),S.triggerSyncEvent(E);var T=S.props.onMouseMove;de(T)&&T(E,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 E=S.props.onMouseLeave;de(E)&&E(O,j)}),ue(S,"handleOuterEvent",function(j){var O=wee(j),E=Xn(S.props,"".concat(O));if(O&&de(E)){var T,N;/.*touch.*/i.test(O)?N=S.getMouseInfo(j.changedTouches[0]):N=S.getMouseInfo(j),E((T=N)!==null&&T!==void 0?T:{},j)}}),ue(S,"handleClick",function(j){var O=S.getMouseInfo(j);if(O){var E=B(B({},O),{},{isTooltipActive:!0});S.setState(E),S.triggerSyncEvent(E);var T=S.props.onClick;de(T)&&T(E,j)}}),ue(S,"handleMouseDown",function(j){var O=S.props.onMouseDown;if(de(O)){var E=S.getMouseInfo(j);O(E,j)}}),ue(S,"handleMouseUp",function(j){var O=S.props.onMouseUp;if(de(O)){var E=S.getMouseInfo(j);O(E,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 E=S.getMouseInfo(j);O(E,j)}}),ue(S,"handleContextMenu",function(j){var O=S.props.onContextMenu;if(de(O)){var E=S.getMouseInfo(j);O(E,j)}}),ue(S,"triggerSyncEvent",function(j){S.props.syncId!==void 0&&Lb.emit(zb,S.props.syncId,j,S.eventEmitterSymbol)}),ue(S,"applySyncEvent",function(j){var O=S.props,E=O.layout,T=O.syncMethod,N=S.state.updateId,M=j.dataStartIndex,C=j.dataEndIndex;if(j.dataStartIndex!==void 0||j.dataEndIndex!==void 0)S.setState(B({dataStartIndex:M,dataEndIndex:C},p({props:S.props,dataStartIndex:M,dataEndIndex:C,updateId:N},S.state)));else if(j.activeTooltipIndex!==void 0){var L=j.chartX,D=j.chartY,$=j.activeTooltipIndex,P=S.state,k=P.offset,I=P.tooltipTicks;if(!k)return;if(typeof T=="function")$=T(I,j);else if(T==="value"){$=-1;for(var F=0;F<I.length;F++)if(I[F].value===j.activeLabel){$=F;break}}var H=B(B({},k),{},{x:k.left,y:k.top}),Y=Math.min(L,H.x+H.width),q=Math.min(D,H.y+H.height),te=I[$]&&I[$].value,Z=nS(S.state,S.props.data,$),ye=I[$]?{x:E==="horizontal"?I[$].coordinate:Y,y:E==="horizontal"?q:I[$].coordinate}:W6;S.setState(B(B({},j),{},{activeLabel:te,activeCoordinate:ye,activePayload:Z,activeTooltipIndex:$}))}else S.setState(j)}),ue(S,"renderCursor",function(j){var O,E=S.state,T=E.isTooltipActive,N=E.activeCoordinate,M=E.activePayload,C=E.offset,L=E.activeTooltipIndex,D=E.tooltipAxisBandSize,$=S.getTooltipEventType(),P=(O=j.props.active)!==null&&O!==void 0?O:T,k=S.props.layout,I=j.key||"_recharts-cursor";return _.createElement(Gwe,{key:I,activeCoordinate:N,activePayload:M,activeTooltipIndex:L,chartName:n,element:j,isActive:P,layout:k,offset:C,tooltipAxisBandSize:D,tooltipEventType:$})}),ue(S,"renderPolarAxis",function(j,O,E){var T=Xn(j,"type.axisType"),N=Xn(S.state,"".concat(T,"Map")),M=j.type.defaultProps,C=M!==void 0?B(B({},M),j.props):j.props,L=N&&N[C["".concat(T,"Id")]];return A.cloneElement(j,B(B({},L),{},{className:ve(T,L.className),key:j.key||"".concat(O,"-").concat(E),ticks:Da(L,!0)}))}),ue(S,"renderPolarGrid",function(j){var O=j.props,E=O.radialLines,T=O.polarAngles,N=O.polarRadius,M=S.state,C=M.radiusAxisMap,L=M.angleAxisMap,D=xi(C),$=xi(L),P=$.cx,k=$.cy,I=$.innerRadius,F=$.outerRadius;return A.cloneElement(j,{polarAngles:Array.isArray(T)?T:Da($,!0).map(function(H){return H.coordinate}),polarRadius:Array.isArray(N)?N:Da(D,!0).map(function(H){return H.coordinate}),cx:P,cy:k,innerRadius:I,outerRadius:F,key:j.key||"polar-grid",radialLines:E})}),ue(S,"renderLegend",function(){var j=S.state.formattedGraphicalItems,O=S.props,E=O.children,T=O.width,N=O.height,M=S.props.margin||{},C=T-(M.left||0)-(M.right||0),L=AL({children:E,formattedGraphicalItems:j,legendWidth:C,legendContent:c});if(!L)return null;var D=L.item,$=mP(L,Ywe);return A.cloneElement(D,B(B({},$),{},{chartWidth:T,chartHeight:N,margin:M,onBBoxUpdate:S.handleLegendBBoxUpdate}))}),ue(S,"renderTooltip",function(){var j,O=S.props,E=O.children,T=O.accessibilityLayer,N=Ln(E,Bn);if(!N)return null;var M=S.state,C=M.isTooltipActive,L=M.activeCoordinate,D=M.activePayload,$=M.activeLabel,P=M.offset,k=(j=N.props.active)!==null&&j!==void 0?j:C;return A.cloneElement(N,{viewBox:B(B({},P),{},{x:P.left,y:P.top}),active:k,label:$,payload:k?D:[],coordinate:L,accessibilityLayer:T})}),ue(S,"renderBrush",function(j){var O=S.props,E=O.margin,T=O.data,N=S.state,M=N.offset,C=N.dataStartIndex,L=N.dataEndIndex,D=N.updateId;return A.cloneElement(j,{key:j.key||"_recharts-brush",onChange:Bh(S.handleBrushChange,j.props.onChange),data:T,x:K(j.props.x)?j.props.x:M.left,y:K(j.props.y)?j.props.y:M.top+M.height+M.brushBottom-(E.bottom||0),width:K(j.props.width)?j.props.width:M.width,startIndex:C,endIndex:L,updateId:"brush-".concat(D)})}),ue(S,"renderReferenceElement",function(j,O,E){if(!j)return null;var T=S,N=T.clipPathId,M=S.state,C=M.xAxisMap,L=M.yAxisMap,D=M.offset,$=j.type.defaultProps||{},P=j.props,k=P.xAxisId,I=k===void 0?$.xAxisId:k,F=P.yAxisId,H=F===void 0?$.yAxisId:F;return A.cloneElement(j,{key:j.key||"".concat(O,"-").concat(E),xAxis:C[I],yAxis:L[H],viewBox:{x:D.left,y:D.top,width:D.width,height:D.height},clipPathId:N})}),ue(S,"renderActivePoints",function(j){var O=j.item,E=j.activePoint,T=j.basePoint,N=j.childIndex,M=j.isRange,C=[],L=O.props.key,D=O.item.type.defaultProps!==void 0?B(B({},O.item.type.defaultProps),O.item.props):O.item.props,$=D.activeDot,P=D.dataKey,k=B(B({index:N,dataKey:P,cx:E.x,cy:E.y,r:4,fill:uA(O.item),strokeWidth:2,stroke:"#fff",payload:E.payload,value:E.value},ie($,!1)),gm($));return C.push(y.renderActiveDot($,k,"".concat(L,"-activePoint-").concat(N))),T?C.push(y.renderActiveDot($,B(B({},k),{},{cx:T.x,cy:T.y}),"".concat(L,"-basePoint-").concat(N))):M&&C.push(null),C}),ue(S,"renderGraphicChild",function(j,O,E){var T=S.filterFormatItem(j,O,E);if(!T)return null;var N=S.getTooltipEventType(),M=S.state,C=M.isTooltipActive,L=M.tooltipAxis,D=M.activeTooltipIndex,$=M.activeLabel,P=S.props.children,k=Ln(P,Bn),I=T.props,F=I.points,H=I.isRange,Y=I.baseLine,q=T.item.type.defaultProps!==void 0?B(B({},T.item.type.defaultProps),T.item.props):T.item.props,te=q.activeDot,Z=q.hide,ye=q.activeBar,J=q.activeShape,st=!!(!Z&&C&&k&&(te||ye||J)),Ve={};N!=="axis"&&k&&k.props.trigger==="click"?Ve={onClick:Bh(S.handleItemMouseEnter,j.props.onClick)}:N!=="axis"&&(Ve={onMouseLeave:Bh(S.handleItemMouseLeave,j.props.onMouseLeave),onMouseEnter:Bh(S.handleItemMouseEnter,j.props.onMouseEnter)});var G=A.cloneElement(j,B(B({},T.props),Ve));function oe(ma){return typeof L.dataKey=="function"?L.dataKey(ma.payload):null}if(st)if(D>=0){var X,V;if(L.dataKey&&!L.allowDuplicatedCategory){var _e=typeof L.dataKey=="function"?oe:"payload.".concat(L.dataKey.toString());X=ym(F,_e,$),V=H&&Y&&ym(Y,_e,$)}else X=F==null?void 0:F[D],V=H&&Y&&Y[D];if(J||ye){var ge=j.props.activeIndex!==void 0?j.props.activeIndex:D;return[A.cloneElement(j,B(B(B({},T.props),Ve),{},{activeIndex:ge})),null,null]}if(!me(X))return[G].concat(Ac(S.renderActivePoints({item:T,activePoint:X,basePoint:V,childIndex:D,isRange:H})))}else{var Xe,ot=(Xe=S.getItemByXY(S.state.activeCoordinate))!==null&&Xe!==void 0?Xe:{graphicalItem:G},dt=ot.graphicalItem,Rn=dt.item,oi=Rn===void 0?j:Rn,No=dt.childIndex,pa=B(B(B({},T.props),Ve),{},{activeIndex:No});return[A.cloneElement(oi,pa),null,null]}return H?[G,null,null]:[G,null]}),ue(S,"renderCustomized",function(j,O,E){return A.cloneElement(j,B(B({key:"recharts-customized-".concat(E)},S.props),S.state))}),ue(S,"renderMap",{CartesianGrid:{handler:qh,once:!0},ReferenceArea:{handler:S.renderReferenceElement},ReferenceLine:{handler:qh},ReferenceDot:{handler:S.renderReferenceElement},XAxis:{handler:qh},YAxis:{handler:qh},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=v.id)!==null&&x!==void 0?x:jo("recharts"),"-clip"),S.throttleTriggeredAfterMouseMove=A4(S.triggeredAfterMouseMove,(w=v.throttleDelay)!==null&&w!==void 0?w:1e3/60),S.state={},S}return sje(y,b),nje(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,E=Ln(w,Bn);if(E){var T=E.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var N=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,M=nS(this.state,S,T,N),C=this.state.tooltipTicks[T].coordinate,L=(this.state.offset.top+j)/2,D=O==="horizontal",$=D?{x:C,y:L}:{y:C,x:L},P=this.state.formattedGraphicalItems.find(function(I){var F=I.item;return F.type.name==="Scatter"});P&&($=B(B({},$),P.props.points[T].tooltipPosition),M=P.props.points[T].tooltipPayload);var k={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:N,activePayload:M,activeCoordinate:$};this.setState(k),this.renderCursor(E),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,w){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==w.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var S,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){_x([Ln(x.children,Bn)],[Ln(this.props.children,Bn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=Ln(this.props.children,Bn);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=Xue(S),O={chartX:Math.round(x.pageX-j.left),chartY:Math.round(x.pageY-j.top)},E=S.width/w.offsetWidth||1,T=this.inRange(O.chartX,O.chartY,E);if(!T)return null;var N=this.state,M=N.xAxisMap,C=N.yAxisMap,L=this.getTooltipEventType(),D=gP(this.state,this.props.data,this.props.layout,T);if(L!=="axis"&&M&&C){var $=xi(M).scale,P=xi(C).scale,k=$&&$.invert?$.invert(O.chartX):null,I=P&&P.invert?P.invert(O.chartY):null;return B(B({},O),{},{xValue:k,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,E=w/S;if(j==="horizontal"||j==="vertical"){var T=this.state.offset,N=O>=T.left&&O<=T.left+T.width&&E>=T.top&&E<=T.top+T.height;return N?{x:O,y:E}:null}var M=this.state,C=M.angleAxisMap,L=M.radiusAxisMap;if(C&&L){var D=xi(C);return VC({x:O,y:E},D)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,w=this.getTooltipEventType(),S=Ln(x,Bn),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=gm(this.props,this.handleOuterEvent);return B(B({},O),j)}},{key:"addListener",value:function(){Lb.on(zb,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Lb.removeListener(zb,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,w,S){for(var j=this.state.formattedGraphicalItems,O=0,E=j.length;O<E;O++){var T=j[O];if(T.item===x||T.props.key===x.key||w===Fa(T.item.type)&&S===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,w=this.state.offset,S=w.left,j=w.top,O=w.height,E=w.width;return _.createElement("defs",null,_.createElement("clipPath",{id:x},_.createElement("rect",{x:S,y:j,height:O,width:E})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(w,S){var j=pP(S,2),O=j[0],E=j[1];return B(B({},w),{},ue({},O,E.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(w,S){var j=pP(S,2),O=j[0],E=j[1];return B(B({},w),{},ue({},O,E.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var w;return(w=this.state.xAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getYScaleByAxisId",value:function(x){var w;return(w=this.state.yAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getItemByXY",value:function(x){var w=this.state,S=w.formattedGraphicalItems,j=w.activeItem;if(S&&S.length)for(var O=0,E=S.length;O<E;O++){var T=S[O],N=T.props,M=T.item,C=M.type.defaultProps!==void 0?B(B({},M.type.defaultProps),M.props):M.props,L=Fa(M.type);if(L==="Bar"){var D=(N.data||[]).find(function(I){return $ve(x,I)});if(D)return{graphicalItem:T,payload:D}}else if(L==="RadialBar"){var $=(N.data||[]).find(function(I){return VC(x,I)});if($)return{graphicalItem:T,payload:$}}else if(Fg(T,j)||Vg(T,j)||cd(T,j)){var P=j0e({graphicalItem:T,activeTooltipItem:j,itemData:C.data}),k=C.activeIndex===void 0?P:C.activeIndex;return{graphicalItem:B(B({},T),{},{childIndex:k}),payload:cd(T,j)?C.data[P]:T.props.data[P]}}}return null}},{key:"render",value:function(){var x=this;if(!DT(this))return null;var w=this.props,S=w.children,j=w.className,O=w.width,E=w.height,T=w.style,N=w.compact,M=w.title,C=w.desc,L=mP(w,Xwe),D=ie(L,!1);if(N)return _.createElement(Y_,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},_.createElement(Mx,ul({},D,{width:O,height:E,title:M,desc:C}),this.renderClipPath(),kT(S,this.renderMap)));if(this.props.accessibilityLayer){var $,P;D.tabIndex=($=this.props.tabIndex)!==null&&$!==void 0?$:0,D.role=(P=this.props.role)!==null&&P!==void 0?P:"application",D.onKeyDown=function(I){x.accessibilityManager.keyboardEvent(I)},D.onFocus=function(){x.accessibilityManager.focus()}}var k=this.parseEventsOfWrapper();return _.createElement(Y_,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},_.createElement("div",ul({className:ve("recharts-wrapper",j),style:B({position:"relative",cursor:"default",width:O,height:E},T)},k,{ref:function(F){x.container=F}}),_.createElement(Mx,ul({},D,{width:O,height:E,title:M,desc:C,style:dje}),this.renderClipPath(),kT(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(b,y){var v=b.dataKey,x=b.data,w=b.children,S=b.width,j=b.height,O=b.layout,E=b.stackOffset,T=b.margin,N=y.dataStartIndex,M=y.dataEndIndex;if(y.updateId===void 0){var C=vP(b);return B(B(B({},C),{},{updateId:0},p(B(B({props:b},C),{},{updateId:0}),y)),{},{prevDataKey:v,prevData:x,prevWidth:S,prevHeight:j,prevLayout:O,prevStackOffset:E,prevMargin:T,prevChildren:w})}if(v!==y.prevDataKey||x!==y.prevData||S!==y.prevWidth||j!==y.prevHeight||O!==y.prevLayout||E!==y.prevStackOffset||!xl(T,y.prevMargin)){var L=vP(b),D={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},$=B(B({},gP(y,x,O)),{},{updateId:y.updateId+1}),P=B(B(B({},L),D),$);return B(B(B({},P),p(B({props:b},P),y)),{},{prevDataKey:v,prevData:x,prevWidth:S,prevHeight:j,prevLayout:O,prevStackOffset:E,prevMargin:T,prevChildren:w})}if(!_x(w,y.prevChildren)){var k,I,F,H,Y=Ln(w,hc),q=Y&&(k=(I=Y.props)===null||I===void 0?void 0:I.startIndex)!==null&&k!==void 0?k:N,te=Y&&(F=(H=Y.props)===null||H===void 0?void 0:H.endIndex)!==null&&F!==void 0?F:M,Z=q!==N||te!==M,ye=!me(x),J=ye&&!Z?y.updateId:y.updateId+1;return B(B({updateId:J},p(B(B({props:b},y),{},{updateId:J,dataStartIndex:q,dataEndIndex:te}),y)),{},{prevChildren:w,dataStartIndex:q,dataEndIndex:te})}return null}),ue(m,"renderActiveDot",function(b,y,v){var x;return A.isValidElement(b)?x=A.cloneElement(b,y):de(b)?x=b(y):x=_.createElement(eh,y),_.createElement(Ae,{className:"recharts-active-dot",key:v},x)});var g=A.forwardRef(function(y,v){return _.createElement(m,ul({},y,{ref:v}))});return g.displayName=m.displayName,g},wje=Wg({chartName:"LineChart",GraphicalChild:th,axisComponents:[{axisType:"xAxis",AxisComp:Gi},{axisType:"yAxis",AxisComp:Yi}],formatAxisMap:dA}),jje=Wg({chartName:"BarChart",GraphicalChild:To,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Gi},{axisType:"yAxis",AxisComp:Yi}],formatAxisMap:dA}),Aje=Wg({chartName:"PieChart",GraphicalChild:si,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Ug},{axisType:"radiusAxis",AxisComp:Ig}],formatAxisMap:qme,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),Oje=Wg({chartName:"AreaChart",GraphicalChild:ls,axisComponents:[{axisType:"xAxis",AxisComp:Gi},{axisType:"yAxis",AxisComp:Yi}],formatAxisMap:dA});const Vr=["#00a0c8","#3ddc97","#f59e0b","#ef4444","#8b5cf6","#06b6d4","#ec4899","#e84a7f"],Lo={fontSize:11,fill:"#94a3b8"},Kh={background:"#0f172a",border:"1px solid #1e293b",borderRadius:8,fontSize:12,color:"#e2e8f0"};function $a({type:e="BAR",rows:t,dataKeys:n,xKey:r="name",height:a=260}){if(!t||!t.length)return u.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 u.jsx($h,{width:"100%",height:a,children:u.jsxs(Aje,{children:[u.jsx(si,{data:t,dataKey:s,nameKey:r,outerRadius:a/2.8,innerRadius:a/5,children:t.map((o,l)=>u.jsx(Tg,{fill:Vr[l%Vr.length]},l))}),u.jsx(Bn,{contentStyle:Kh}),u.jsx(Jr,{wrapperStyle:{fontSize:11}})]})})}return i==="LINE"?u.jsx($h,{width:"100%",height:a,children:u.jsxs(wje,{data:t,children:[u.jsx(Sp,{strokeDasharray:"3 3",stroke:"#1e293b"}),u.jsx(Gi,{dataKey:r,tick:Lo}),u.jsx(Yi,{tick:Lo}),u.jsx(Bn,{contentStyle:Kh}),u.jsx(Jr,{wrapperStyle:{fontSize:11}}),n.map((s,o)=>u.jsx(th,{type:"monotone",dataKey:s,stroke:Vr[o%Vr.length],strokeWidth:2,dot:!1},s))]})}):i==="AREA"?u.jsx($h,{width:"100%",height:a,children:u.jsxs(Oje,{data:t,children:[u.jsx(Sp,{strokeDasharray:"3 3",stroke:"#1e293b"}),u.jsx(Gi,{dataKey:r,tick:Lo}),u.jsx(Yi,{tick:Lo}),u.jsx(Bn,{contentStyle:Kh}),u.jsx(Jr,{wrapperStyle:{fontSize:11}}),n.map((s,o)=>u.jsx(ls,{type:"monotone",dataKey:s,stroke:Vr[o%Vr.length],fill:Vr[o%Vr.length],fillOpacity:.18,strokeWidth:2},s))]})}):u.jsx($h,{width:"100%",height:a,children:u.jsxs(jje,{data:t,children:[u.jsx(Sp,{strokeDasharray:"3 3",stroke:"#1e293b"}),u.jsx(Gi,{dataKey:r,tick:Lo}),u.jsx(Yi,{tick:Lo}),u.jsx(Bn,{contentStyle:Kh,cursor:{fill:"#1e293b55"}}),u.jsx(Jr,{wrapperStyle:{fontSize:11}}),n.map((s,o)=>u.jsx(To,{dataKey:s,fill:Vr[o%Vr.length],radius:[3,3,0,0]},s))]})})}function Gh({icon:e,label:t,value:n,sub:r}){return u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsx("span",{className:"text-xs text-slate-400",children:t}),u.jsx(e,{size:18,className:"text-brand"})]}),u.jsx("div",{className:"text-2xl font-bold",children:n}),r&&u.jsx("div",{className:"text-xs text-slate-500 mt-1",children:r})]})}function Eje(){const{t:e}=ni(),{data:t}=se({queryKey:["adash"],queryFn:()=>iX(1,500)}),{data:n}=se({queryKey:["store-sales"],queryFn:()=>Zk(7)}),{data:r}=se({queryKey:["trend"],queryFn:()=>Jk(14)}),{data:a}=se({queryKey:["top"],queryFn:()=>e5(8)}),i=(t==null?void 0:t.today)||{},s=(n||[]).map(c=>({name:c.storeCode||c.storeName,Revenue:c.sales,Orders:c.orderCount})),o=(r||[]).map(c=>({name:(c.date||"").slice(5),Revenue:c.sales,Orders:c.orderCount})),l=(a||[]).map(c=>({name:c.name,"Units Sold":c.salesCount}));return u.jsxs("div",{children:[u.jsx("h1",{className:"text-xl font-bold mb-5",children:e("admin.dashboard.title")}),u.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-6",children:[u.jsx(Gh,{icon:xK,label:e("admin.dashboard.todaysRevenue"),value:Ee(i.totalSales)}),u.jsx(Gh,{icon:ij,label:e("admin.dashboard.todaysOrders"),value:`${i.orderCount||0}`}),u.jsx(Gh,{icon:MK,label:e("admin.dashboard.stores"),value:`${((t==null?void 0:t.storeRanking)||[]).length}`,sub:e("admin.dashboard.storesSub")}),u.jsx(Gh,{icon:Wa,label:e("admin.dashboard.largeOrders"),value:`${((t==null?void 0:t.bigOrders)||[]).length}`,sub:e("admin.dashboard.largeOrdersSub")})]}),u.jsxs("div",{className:"grid lg:grid-cols-2 gap-5 mb-6",children:[u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:e("admin.dashboard.revenueByStore")}),u.jsx($a,{type:"BAR",rows:s,dataKeys:["Revenue","Orders"]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:e("admin.dashboard.revenueTrend")}),u.jsx($a,{type:"AREA",rows:o,dataKeys:["Revenue"]})]})]}),u.jsxs("div",{className:"grid lg:grid-cols-2 gap-5",children:[u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:e("admin.dashboard.bestSellers")}),u.jsx($a,{type:"BAR",rows:l,dataKeys:["Units Sold"]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:e("admin.dashboard.storeRanking")}),u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge",children:[u.jsx("th",{className:"text-left py-2",children:e("admin.dashboard.store")}),u.jsx("th",{className:"text-right",children:e("admin.dashboard.revenue")}),u.jsx("th",{className:"text-right",children:e("admin.dashboard.orders")})]})}),u.jsxs("tbody",{children:[((t==null?void 0:t.storeRanking)||[]).map((c,f)=>u.jsxs("tr",{className:"border-b border-edge/50",children:[u.jsx("td",{className:"py-2",children:c.storeName||c.storeCode}),u.jsx("td",{className:"text-right",children:Ee(c.sales)}),u.jsx("td",{className:"text-right text-slate-400",children:c.orderCount})]},f)),!((t==null?void 0:t.storeRanking)||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:3,className:"text-center text-slate-500 py-6",children:e("common.noData")})})]})]})]})]})]})}function Tje(){const e=nn(),{data:t}=se({queryKey:["admin-stores"],queryFn:()=>So(!1)}),n=async(r,a)=>{await TY(r,!a).catch(()=>{}),e.invalidateQueries({queryKey:["admin-stores"]})};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[u.jsx(Bd,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Stores"})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"Code"}),u.jsx("th",{className:"text-left",children:"Store"}),u.jsx("th",{className:"text-left",children:"Location"}),u.jsx("th",{className:"text-left",children:"Hours"}),u.jsx("th",{className:"text-right",children:"Same-Day Cutoff"}),u.jsx("th",{className:"text-right",children:"Radius (mi)"}),u.jsx("th",{className:"text-right",children:"Daily Capacity"}),u.jsx("th",{className:"text-center",children:"Status"})]})}),u.jsxs("tbody",{children:[(t||[]).map(r=>u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3 font-mono text-xs text-brand",children:r.code}),u.jsx("td",{children:r.name}),u.jsxs("td",{className:"text-slate-400",children:[r.city,", ",r.state," ",r.zip]}),u.jsxs("td",{className:"text-slate-400",children:[r.openTime,"–",r.closeTime]}),u.jsx("td",{className:"text-right text-slate-400",children:r.sameDayCutoff}),u.jsx("td",{className:"text-right text-slate-400",children:r.deliveryRadiusMi}),u.jsx("td",{className:"text-right text-slate-400",children:r.dailyCapacity}),u.jsx("td",{className:"text-center",children:u.jsxs("button",{onClick:()=>n(r.id,r.active),className:`inline-flex items-center gap-1 px-2 py-1 rounded text-xs ${r.active?"bg-emerald-500/15 text-emerald-400":"bg-slate-600/20 text-slate-400"}`,children:[u.jsx(TK,{size:12})," ",r.active?"Active":"Inactive"]})})]},r.id)),!(t||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:8,className:"text-center text-slate-500 py-8",children:"No stores found."})})]})]})})]})}function Nje(){const e=nn(),[t,n]=A.useState(""),{data:r}=se({queryKey:["admin-products",t],queryFn:()=>Ql({keyword:t,size:100,status:""})}),a=(r==null?void 0:r.items)||[],i=async(s,o)=>{await _Y(s,o==="ACTIVE"?"HIDDEN":"ACTIVE").catch(()=>{}),e.invalidateQueries({queryKey:["admin-products"]})};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(ft,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"상품 관리"})]}),u.jsxs("div",{className:"flex items-center gap-2 bg-card border border-edge rounded-lg px-3 py-2",children:[u.jsx(rj,{size:15,className:"text-slate-500"}),u.jsx("input",{value:t,onChange:s=>n(s.target.value),placeholder:"상품 검색",className:"bg-transparent text-sm outline-none w-48"})]})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"SKU"}),u.jsx("th",{className:"text-left",children:"상품명"}),u.jsx("th",{className:"text-left",children:"상황"}),u.jsx("th",{className:"text-right",children:"가격"}),u.jsx("th",{className:"text-right",children:"재고"}),u.jsx("th",{className:"text-right",children:"판매"}),u.jsx("th",{className:"text-right",children:"평점"}),u.jsx("th",{className:"text-center",children:"상태"})]})}),u.jsxs("tbody",{children:[a.map(s=>{var o;return u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3 font-mono text-xs text-slate-400",children:s.sku}),u.jsx("td",{children:s.name}),u.jsx("td",{className:"text-slate-400",children:s.occasion||"-"}),u.jsx("td",{className:"text-right",children:Ee(s.salePrice&&s.salePrice>0?s.salePrice:s.price)}),u.jsx("td",{className:"text-right text-slate-400",children:s.stock}),u.jsx("td",{className:"text-right text-slate-400",children:s.salesCount}),u.jsx("td",{className:"text-right text-amber-400",children:((o=s.ratingAvg)==null?void 0:o.toFixed(1))||"-"}),u.jsx("td",{className:"text-center",children:u.jsx("button",{onClick:()=>i(s.id,s.status),children:u.jsx(Ur,{status:s.status})})})]},s.id)}),!a.length&&u.jsx("tr",{children:u.jsx("td",{colSpan:8,className:"text-center text-slate-500 py-8",children:"상품이 없습니다."})})]})]})})]})}function Cje(){const e=nn(),[t,n]=A.useState(0),{data:r}=se({queryKey:["inv-stores"],queryFn:()=>So(!1)});A.useEffect(()=>{!t&&(r!=null&&r.length)&&n(r[0].id)},[r]);const{data:a}=se({queryKey:["store-inv",t],queryFn:()=>MY(t),enabled:!!t}),i=async(o,l)=>{await RY(t,o,!l).catch(()=>{}),e.invalidateQueries({queryKey:["store-inv",t]})},s=async(o,l)=>{await DY(t,o,l).catch(()=>{}),e.invalidateQueries({queryKey:["store-inv",t]})};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(sk,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Store Inventory (ON/OFF)"})]}),u.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=>u.jsx("option",{value:o.id,children:o.name},o.id))})]}),u.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."}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"Product"}),u.jsx("th",{className:"text-right",children:"Stock"}),u.jsx("th",{className:"text-center",children:"Adjust"}),u.jsx("th",{className:"text-center",children:"Sale"})]})}),u.jsxs("tbody",{children:[(a||[]).map(o=>{const l=o.available!==!1;return u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3",children:o.productName||`Product #${o.productId}`}),u.jsx("td",{className:"text-right text-slate-300",children:o.stock??o.quantity??"-"}),u.jsx("td",{className:"text-center",children:u.jsxs("div",{className:"inline-flex items-center gap-1",children:[u.jsx("button",{onClick:()=>s(o.productId,-1),className:"w-6 h-6 rounded bg-panel border border-edge text-slate-300",children:"−"}),u.jsx("button",{onClick:()=>s(o.productId,1),className:"w-6 h-6 rounded bg-panel border border-edge text-slate-300",children:"+"})]})}),u.jsx("td",{className:"text-center",children:u.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&&u.jsx("tr",{children:u.jsx("td",{colSpan:4,className:"text-center text-slate-500 py-8",children:"No inventory items found."})})]})]})})]})}const Bb={PAID:"PREPARING",PREPARING:"SHIPPED",SHIPPED:"DELIVERED"};function _je(){const e=nn(),[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:()=>FY(t,100)}),{data:c}=se({queryKey:["ord-stores"],queryFn:()=>So(!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 b=JSON.parse(g.data);a(y=>[b,...y].slice(0,12)),b.event==="ORDER_NEW"&&e.invalidateQueries({queryKey:["admin-orders"]})}catch{}},()=>m.close()}catch{s(!1)}},[]);const f=async p=>{const m=Bb[p.status];m&&(await Qk(p.id,m).catch(()=>{}),e.invalidateQueries({queryKey:["admin-orders"]}))},d=p=>{var m;return((m=c==null?void 0:c.find(g=>g.id===p))==null?void 0:m.code)||`#${p}`},h=l||[];return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(ij,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Orders (Live)"})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsxs("span",{className:`flex items-center gap-1.5 text-xs ${i?"text-emerald-400":"text-slate-500"}`,children:[u.jsx(JE,{size:13})," ",i?"Connected":"Offline"]}),u.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:[u.jsx("option",{value:"",children:"All"}),["PENDING","PAID","PREPARING","SHIPPED","DELIVERED","CONFIRMED","CANCELLED"].map(p=>u.jsx("option",{value:p,children:p},p))]})]})]}),!!r.length&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4 mb-5",children:[u.jsxs("div",{className:"text-xs text-slate-400 mb-2 flex items-center gap-1.5",children:[u.jsx(JE,{size:12,className:"text-brand"})," Live Events"]}),u.jsx("div",{className:"flex flex-wrap gap-2",children:r.map((p,m)=>u.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?`· ${Ee(p.payAmount)}`:""]},m))})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"Order No."}),u.jsx("th",{className:"text-left",children:"Store"}),u.jsx("th",{className:"text-left",children:"Fulfillment"}),u.jsx("th",{className:"text-left",children:"Schedule"}),u.jsx("th",{className:"text-left",children:"Recipient"}),u.jsx("th",{className:"text-right",children:"Amount"}),u.jsx("th",{className:"text-center",children:"Status"}),u.jsx("th",{className:"text-center",children:"Actions"})]})}),u.jsxs("tbody",{children:[h.map(p=>u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3 font-mono text-xs text-brand",children:p.orderNo||`#${p.id}`}),u.jsx("td",{className:"text-slate-400",children:d(p.storeId)}),u.jsx("td",{children:p.fulfillmentType==="PICKUP"?u.jsxs("span",{className:"flex items-center gap-1 text-xs",children:[u.jsx(Bd,{size:12})," 픽업"]}):u.jsxs("span",{className:"flex items-center gap-1 text-xs",children:[u.jsx(Ud,{size:12})," 배송"]})}),u.jsxs("td",{className:"text-slate-400 text-xs",children:[p.scheduledDate," ",p.slotLabel]}),u.jsx("td",{className:"text-slate-400",children:p.receiverName||"-"}),u.jsx("td",{className:"text-right",children:Ee(p.payAmount??p.totalAmount)}),u.jsx("td",{className:"text-center",children:u.jsx(Ur,{status:p.status})}),u.jsx("td",{className:"text-center",children:Bb[p.status]&&u.jsxs("button",{onClick:()=>f(p),className:"text-xs bg-brand text-ink font-semibold px-2.5 py-1 rounded",children:["→ ",Bb[p.status]]})})]},p.id)),!h.length&&u.jsx("tr",{children:u.jsx("td",{colSpan:8,className:"text-center text-slate-500 py-8",children:"주문이 없습니다."})})]})]})})]})}function Pje(){const e=nn(),[t,n]=A.useState(""),[r,a]=A.useState([]),{data:i}=se({queryKey:["transfers",t],queryFn:()=>GY(t,"")}),{data:s}=se({queryKey:["tr-stores"],queryFn:()=>So(!1)}),o=async d=>{await YY(d).catch(()=>{}),e.invalidateQueries({queryKey:["transfers"]})},l=async d=>{await XY(d).catch(()=>{}),e.invalidateQueries({queryKey:["transfers"]})},c=async()=>{const d=(s||[]).map(p=>p.id),h=await dX(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 u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(ik,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Inventory Transfers"})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs("button",{onClick:c,className:"flex items-center gap-1.5 bg-brand2 text-white text-sm px-3 py-2 rounded-lg",children:[u.jsx(xr,{size:14})," AI Transfer Suggestions"]}),u.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:[u.jsx("option",{value:"",children:"All"}),["REQUESTED","APPROVED","REJECTED","COMPLETED"].map(d=>u.jsx("option",{value:d,children:d},d))]})]})]}),!!r.length&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4 mb-5",children:[u.jsxs("div",{className:"text-xs text-brand mb-2 flex items-center gap-1.5",children:[u.jsx(xr,{size:12})," AI Recommended Transfers"]}),u.jsx("div",{className:"space-y-1.5 text-sm",children:r.map((d,h)=>u.jsxs("div",{className:"flex items-center justify-between text-slate-300",children:[u.jsxs("span",{children:["Product #",d.productId,": ",f(d.fromStoreId)," → ",f(d.toStoreId)," ×",d.suggestedQty]}),u.jsx("span",{className:"text-xs text-slate-500",children:d.reason})]},h))})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"ID"}),u.jsx("th",{className:"text-left",children:"From → To"}),u.jsx("th",{className:"text-left",children:"Product"}),u.jsx("th",{className:"text-right",children:"Quantity"}),u.jsx("th",{className:"text-left",children:"Reason"}),u.jsx("th",{className:"text-center",children:"Status"}),u.jsx("th",{className:"text-center",children:"Actions"})]})}),u.jsxs("tbody",{children:[(i||[]).map(d=>u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3 text-slate-400",children:d.id}),u.jsxs("td",{children:[f(d.fromStoreId)," → ",f(d.toStoreId)]}),u.jsxs("td",{className:"text-slate-400",children:["#",d.productId,d.aiRecommended&&u.jsx("span",{className:"ml-1 text-[10px] text-brand",children:"AI"})]}),u.jsx("td",{className:"text-right",children:d.quantity}),u.jsx("td",{className:"text-slate-400 text-xs",children:d.reason}),u.jsx("td",{className:"text-center",children:u.jsx(Ur,{status:d.status})}),u.jsx("td",{className:"text-center",children:d.status==="REQUESTED"&&u.jsxs("div",{className:"inline-flex gap-1",children:[u.jsx("button",{onClick:()=>o(d.id),className:"text-xs bg-emerald-500/15 text-emerald-400 px-2 py-1 rounded",children:"Approve"}),u.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&&u.jsx("tr",{children:u.jsx("td",{colSpan:7,className:"text-center text-slate-500 py-8",children:"No transfer requests."})})]})]})})]})}function Mje(){const e=nn(),{data:t}=se({queryKey:["by-tier"],queryFn:()=>r5(30)}),n=async()=>{await EX().catch(()=>{}),e.invalidateQueries({queryKey:["by-tier"]})},r=(t||[]).map(a=>({name:a.tier,customers:a.customers,sales:a.sales}));return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(jk,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Members (CRM)"})]}),u.jsxs("button",{onClick:n,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:[u.jsx(nj,{size:14})," Recalculate All Tiers"]})]}),u.jsxs("div",{className:"grid lg:grid-cols-2 gap-5 mb-5",children:[u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:"Customer Distribution by Tier (30 days)"}),u.jsx($a,{type:"BAR",rows:r,dataKeys:["customers"]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:"Sales Contribution by Tier"}),u.jsx($a,{type:"PIE",rows:(t||[]).map(a=>({name:a.tier,value:a.sales})),dataKeys:["value"]})]})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"Tier"}),u.jsx("th",{className:"text-right",children:"Customers"}),u.jsx("th",{className:"text-right",children:"Orders"}),u.jsx("th",{className:"text-right",children:"Sales"})]})}),u.jsxs("tbody",{children:[(t||[]).map(a=>u.jsxs("tr",{className:"border-b border-edge/50",children:[u.jsx("td",{className:"p-3",children:u.jsx(Ur,{status:a.tier})}),u.jsx("td",{className:"text-right",children:a.customers}),u.jsx("td",{className:"text-right text-slate-400",children:a.orderCount}),u.jsx("td",{className:"text-right",children:Ee(a.sales)})]},a.tier)),!(t||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:4,className:"text-center text-slate-500 py-8",children:"No data"})})]})]})})]})}function Rje(){const e=nn(),{data:t}=se({queryKey:["tiers-all"],queryFn:()=>wX(!1)}),[n,r]=A.useState(null),[a,i]=A.useState(""),[s,o]=A.useState(0),[l,c]=A.useState(""),[f,d]=A.useState(""),h=async()=>{n&&(await jX(n.id,n).catch(()=>{}),r(null),e.invalidateQueries({queryKey:["tiers-all"]}))},p=async()=>{if(!a||!s)return;const m=await OX(a,s,l).catch(()=>null);d(m?`${a} points adjusted · Balance ${m.balance}P`:"Adjustment failed"),i(""),o(0),c("")};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[u.jsx(Mf,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Tier & Points Management"})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden mb-6",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"Tier"}),u.jsx("th",{className:"text-right",children:"Min Spend"}),u.jsx("th",{className:"text-right",children:"Min Orders"}),u.jsx("th",{className:"text-right",children:"Discount"}),u.jsx("th",{className:"text-right",children:"Earn Rate"}),u.jsx("th",{className:"text-right",children:"Free Shipping"}),u.jsx("th",{className:"text-center",children:"Priority Slot"}),u.jsx("th",{className:"text-center",children:"Edit"})]})}),u.jsxs("tbody",{children:[(t||[]).map(m=>u.jsxs("tr",{className:"border-b border-edge/50",children:[u.jsxs("td",{className:"p-3",children:[u.jsx(Ur,{status:m.tierCode})," ",u.jsx("span",{className:"text-slate-400 text-xs ml-1",children:m.name})]}),u.jsx("td",{className:"text-right",children:Ee(m.minSpend12m)}),u.jsx("td",{className:"text-right text-slate-400",children:m.minOrders12m}),u.jsxs("td",{className:"text-right",children:[m.discountRate,"%"]}),u.jsxs("td",{className:"text-right",children:[m.pointEarnRate,"%"]}),u.jsx("td",{className:"text-right text-slate-400",children:m.freeShipThreshold===0?"Always":m.freeShipThreshold?Ee(m.freeShipThreshold):"None"}),u.jsx("td",{className:"text-center",children:m.prioritySlot?"✓":"–"}),u.jsx("td",{className:"text-center",children:u.jsx("button",{onClick:()=>r({...m}),className:"text-xs text-brand",children:"Edit"})})]},m.id)),!(t||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:8,className:"text-center text-slate-500 py-8",children:"No tier data found."})})]})]})}),n&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-6",children:[u.jsxs("div",{className:"text-sm font-semibold mb-3",children:["Edit Tier: ",n.name," (",n.tierCode,")"]}),u.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 text-sm",children:[u.jsx(Yh,{label:"Min Spend ($)",value:n.minSpend12m,onChange:m=>r({...n,minSpend12m:Number(m)})}),u.jsx(Yh,{label:"Min Orders",value:n.minOrders12m,onChange:m=>r({...n,minOrders12m:Number(m)})}),u.jsx(Yh,{label:"Discount (%)",value:n.discountRate,onChange:m=>r({...n,discountRate:Number(m)})}),u.jsx(Yh,{label:"Earn Rate (%)",value:n.pointEarnRate,onChange:m=>r({...n,pointEarnRate:Number(m)})})]}),u.jsxs("div",{className:"flex gap-2 mt-4",children:[u.jsx("button",{onClick:h,className:"bg-brand text-ink font-semibold px-5 py-2 rounded-lg text-sm",children:"Save"}),u.jsx("button",{onClick:()=>r(null),className:"border border-edge px-5 py-2 rounded-lg text-sm text-slate-400",children:"Cancel"})]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold mb-3",children:[u.jsx(uk,{size:16,className:"text-brand"})," Manual Point Adjustment"]}),u.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[u.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"}),u.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"}),u.jsx("input",{value:l,onChange:m=>c(m.target.value),placeholder:"Reason",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsx("button",{onClick:p,className:"bg-brand2 text-white rounded-lg px-3 py-2 text-sm font-semibold",children:"Adjust"})]}),f&&u.jsx("div",{className:"text-xs text-accent mt-2",children:f})]})]})}function Yh({label:e,value:t,onChange:n}){return u.jsxs("div",{children:[u.jsx("label",{className:"block text-[11px] text-slate-400 mb-1",children:e}),u.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 Dje=["DISCOUNT","POINT_BONUS","GIFT","TIER_ONLY","SEASON"];function $je(){const e=nn(),[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}),[c,f]=A.useState(""),{data:d}=se({queryKey:["admin-events",t],queryFn:()=>CX(t,"",!1)}),h=()=>e.invalidateQueries({queryKey:["admin-events"]}),p=async()=>{await _X({...o,status:"DRAFT",banners:[]}).catch(()=>{}),a(!1),h()},m=async x=>{await PX(x).catch(()=>{}),h()},g=async x=>{await MX(x).catch(()=>{}),h()},b=async x=>{await RX(x).catch(()=>{}),h()},y=async x=>{const w=await DX(x).catch(()=>null);s(w)},v=async()=>{const x=await $X(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 u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Df,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Events & Campaigns"})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.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:[u.jsx("option",{value:"",children:"All"}),["DRAFT","PUBLISHED","ENDED"].map(x=>u.jsx("option",{value:x,children:x},x))]}),u.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:[u.jsx(tj,{size:15})," New Event"]})]})]}),r&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-5 space-y-3",children:[u.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[u.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"}),u.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"})]}),u.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"}),u.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[u.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:Dje.map(x=>u.jsx("option",{children:x},x))}),u.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"}),u.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"}),u.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"})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs("button",{onClick:v,className:"flex items-center gap-1.5 bg-brand2 text-white text-sm px-3 py-2 rounded-lg",children:[u.jsx(xr,{size:14})," Generate AI Copy"]}),c&&u.jsx("span",{className:"text-xs text-accent",children:c}),u.jsx("button",{onClick:p,className:"ml-auto bg-brand text-ink font-semibold text-sm px-5 py-2 rounded-lg",children:"Create"}),u.jsx("button",{onClick:()=>a(!1),className:"border border-edge text-slate-400 text-sm px-4 py-2 rounded-lg",children:"Cancel"})]})]}),i&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4 mb-5 flex items-center gap-6 text-sm",children:[u.jsxs("span",{className:"flex items-center gap-1.5 text-brand",children:[u.jsx(Jw,{size:15})," ",i.title]}),u.jsxs("span",{className:"text-slate-400",children:["Participations ",i.participations," · Participants ",i.participants]}),u.jsxs("span",{className:"text-slate-400",children:["Linked Orders ",i.linkedOrders," · Attributed Sales ",Ee(i.attributedSales)]}),u.jsx("button",{onClick:()=>s(null),className:"ml-auto text-slate-500 text-xs",children:"Close"})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"Code"}),u.jsx("th",{className:"text-left",children:"Title"}),u.jsx("th",{className:"text-left",children:"Type"}),u.jsx("th",{className:"text-left",children:"Period"}),u.jsx("th",{className:"text-left",children:"Target"}),u.jsx("th",{className:"text-center",children:"Status"}),u.jsx("th",{className:"text-center",children:"Actions"})]})}),u.jsxs("tbody",{children:[(d||[]).map(x=>u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3 font-mono text-xs text-brand",children:x.code}),u.jsx("td",{children:x.title}),u.jsx("td",{className:"text-slate-400 text-xs",children:x.eventType}),u.jsxs("td",{className:"text-slate-400 text-xs",children:[x.startDate,"~",x.endDate]}),u.jsx("td",{className:"text-slate-400 text-xs",children:x.targetTiers||"All"}),u.jsx("td",{className:"text-center",children:u.jsx(Ur,{status:x.status})}),u.jsx("td",{className:"text-center",children:u.jsxs("div",{className:"inline-flex gap-1",children:[x.status==="DRAFT"&&u.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"&&u.jsx("button",{onClick:()=>g(x.id),className:"text-xs bg-slate-600/20 text-slate-400 px-2 py-1 rounded",children:"End"}),u.jsx("button",{onClick:()=>y(x.id),className:"text-xs bg-panel border border-edge text-slate-300 px-2 py-1 rounded",children:"Performance"}),u.jsx("button",{onClick:()=>b(x.id),className:"text-xs bg-rose-500/15 text-rose-400 px-2 py-1 rounded",children:"Delete"})]})})]},x.id)),!(d||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:7,className:"text-center text-slate-500 py-8",children:"No events found."})})]})]})})]})}function kje(){const{data:e}=se({queryKey:["admin-subs"],queryFn:KY}),t=e||[];return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[u.jsx(Qy,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Subscriptions"})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"Customer"}),u.jsx("th",{className:"text-left",children:"Product"}),u.jsx("th",{className:"text-left",children:"Frequency"}),u.jsx("th",{className:"text-left",children:"Next Delivery"}),u.jsx("th",{className:"text-right",children:"Amount"}),u.jsx("th",{className:"text-center",children:"Status"})]})}),u.jsxs("tbody",{children:[t.map(n=>u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3",children:n.owner}),u.jsx("td",{className:"text-slate-400",children:n.productName||`#${n.productId}`}),u.jsx("td",{className:"text-slate-400",children:n.frequency}),u.jsx("td",{className:"text-slate-400",children:n.nextDeliveryDate||"-"}),u.jsx("td",{className:"text-right",children:Ee(n.price)}),u.jsx("td",{className:"text-center",children:u.jsx(Ur,{status:n.status})})]},n.id)),!t.length&&u.jsx("tr",{children:u.jsx("td",{colSpan:6,className:"text-center text-slate-500 py-8",children:"No subscriptions found."})})]})]})})]})}const Lje=["valentine","mothers_day","christmas","thanksgiving"];function zje(){const e=nn(),[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:Wk}),{data:l}=se({queryKey:["sch-stores"],queryFn:()=>So(!1)}),c=async()=>{t.holidayDate&&(await kY(t).catch(()=>{}),n({...t,holidayDate:"",name:""}),e.invalidateQueries({queryKey:["admin-holidays"]}))},f=async()=>{const h=await fX(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 u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[u.jsx(ok,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Schedule · Holidays · Surge"})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-5",children:[u.jsx("div",{className:"text-sm font-semibold mb-3",children:"Add Holiday / Surge"}),u.jsxs("div",{className:"grid grid-cols-5 gap-3",children:[u.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"}),u.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"}),u.jsxs("label",{className:"flex items-center gap-2 text-sm text-slate-300",children:[u.jsx("input",{type:"checkbox",checked:t.blocked,onChange:h=>n({...t,blocked:h.target.checked})})," Block Delivery"]}),u.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"}),u.jsxs("button",{onClick:c,className:"flex items-center gap-1.5 bg-brand text-ink font-semibold rounded-lg px-3 py-2 text-sm justify-center",children:[u.jsx(tj,{size:15})," Add"]})]})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden mb-6",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"Date"}),u.jsx("th",{className:"text-left",children:"Name"}),u.jsx("th",{className:"text-center",children:"Block Delivery"}),u.jsx("th",{className:"text-right",children:"Surge Multiplier"}),u.jsx("th",{className:"text-left",children:"Store"})]})}),u.jsxs("tbody",{children:[(o||[]).map(h=>u.jsxs("tr",{className:"border-b border-edge/50",children:[u.jsx("td",{className:"p-3",children:h.holidayDate}),u.jsx("td",{className:"text-slate-400",children:h.name}),u.jsx("td",{className:"text-center",children:h.blocked?u.jsx("span",{className:"text-rose-400",children:"Blocked"}):u.jsx("span",{className:"text-slate-500",children:"–"})}),u.jsx("td",{className:"text-right",children:h.surgeMultiplier>1?u.jsxs("span",{className:"text-amber-400",children:["×",h.surgeMultiplier]}):"–"}),u.jsx("td",{className:"text-slate-400 text-xs",children:h.storeId?d(h.storeId):"All"})]},h.id||h.holidayDate)),!(o||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:5,className:"text-center text-slate-500 py-8",children:"No holidays registered."})})]})]})}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[u.jsx(xr,{size:16,className:"text-brand"}),u.jsx("span",{className:"text-sm font-semibold",children:"AI Peak-Season Demand Forecast"}),u.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:Lje.map(h=>u.jsx("option",{children:h},h))}),u.jsx("button",{onClick:f,className:"bg-brand2 text-white text-sm px-3 py-1.5 rounded-lg",children:"Run Forecast"})]}),i&&u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge",children:[u.jsx("th",{className:"text-left py-2",children:"Store"}),u.jsx("th",{className:"text-right",children:"Recent Orders"}),u.jsx("th",{className:"text-right",children:"Forecast Orders"}),u.jsx("th",{className:"text-right",children:"Multiplier"})]})}),u.jsx("tbody",{children:(i.forecast||[]).map((h,p)=>u.jsxs("tr",{className:"border-b border-edge/50",children:[u.jsx("td",{className:"py-2",children:d(h.storeId)}),u.jsx("td",{className:"text-right text-slate-400",children:h.recentOrders}),u.jsx("td",{className:"text-right text-brand",children:h.predictedOrders}),u.jsxs("td",{className:"text-right text-amber-400",children:["×",h.multiplier]})]},p))})]})]})]})}function Ije(){const[e,t]=A.useState(14),{data:n}=se({queryKey:["an-store",e],queryFn:()=>Zk(e)}),{data:r}=se({queryKey:["an-trend",e],queryFn:()=>Jk(e)}),{data:a}=se({queryKey:["an-top"],queryFn:()=>e5(10)}),{data:i}=se({queryKey:["an-tier"],queryFn:()=>r5(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})),c=(i||[]).map(d=>({name:d.tier,Revenue:d.sales,Customers:d.customers})),f=(n||[]).reduce((d,h)=>d+(h.sales||0),0);return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Jw,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Revenue Analytics (BI)"})]}),u.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=>u.jsxs("option",{value:d,children:["Last ",d," days"]},d))})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-5",children:[u.jsx("div",{className:"text-xs text-slate-400",children:"Total Revenue (Period)"}),u.jsx("div",{className:"text-3xl font-bold",children:Ee(f)})]}),u.jsxs("div",{className:"grid lg:grid-cols-2 gap-5",children:[u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:"Revenue Trend"}),u.jsx($a,{type:"AREA",rows:o,dataKeys:["Revenue"]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:"Revenue by Store"}),u.jsx($a,{type:"BAR",rows:s,dataKeys:["Revenue","Orders"]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:"Revenue by Tier (BI)"}),u.jsx($a,{type:"BAR",rows:c,dataKeys:["Revenue","Customers"]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:"Best Sellers Top 10"}),u.jsx($a,{type:"BAR",rows:l,dataKeys:["Sold"]})]})]})]})}const xP=["USER","MANAGER","ADMIN"];function Bje(){const e=nn(),{data:t}=se({queryKey:["users"],queryFn:hX}),[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 pX(n).catch(()=>{}),r({username:"",password:"",role:"USER"}),i(!1),s())},l=async(h,p)=>{await mX(h,p).catch(()=>{}),s()},c=async(h,p)=>{await yX(h,!p).catch(()=>{}),s()},f=async h=>{const p=prompt("New password");p&&(await gX(h,p).catch(()=>{}),alert("Password updated"))},d=async h=>{confirm("Are you sure you want to delete?")&&(await vX(h).catch(()=>{}),s())};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Sk,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"User Management (RBAC)"})]}),u.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:[u.jsx(tj,{size:15})," Add User"]})]}),a&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-5 grid grid-cols-4 gap-3",children:[u.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"}),u.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"}),u.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:xP.map(h=>u.jsx("option",{children:h},h))}),u.jsx("button",{onClick:o,className:"bg-brand text-ink font-semibold rounded-lg px-3 py-2 text-sm",children:"Create"})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"ID"}),u.jsx("th",{className:"text-left",children:"Username"}),u.jsx("th",{className:"text-left",children:"Role"}),u.jsx("th",{className:"text-center",children:"Status"}),u.jsx("th",{className:"text-center",children:"Actions"})]})}),u.jsxs("tbody",{children:[(t||[]).map(h=>u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3 text-slate-400",children:h.id}),u.jsx("td",{children:h.username}),u.jsx("td",{children:u.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:xP.map(p=>u.jsx("option",{children:p},p))})}),u.jsx("td",{className:"text-center",children:u.jsx("button",{onClick:()=>c(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"})}),u.jsx("td",{className:"text-center",children:u.jsxs("div",{className:"inline-flex gap-1",children:[u.jsx("button",{onClick:()=>f(h.id),className:"text-xs bg-panel border border-edge px-2 py-1 rounded text-slate-300",children:"Password"}),u.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&&u.jsx("tr",{children:u.jsx("td",{colSpan:5,className:"text-center text-slate-500 py-8",children:"No users found."})})]})]})})]})}function Uje(){const[e,t]=A.useState(""),[n,r]=A.useState(""),{data:a}=se({queryKey:["audit",e,n],queryFn:()=>bX(e,n,200)});return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(bk,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Audit Log"})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs("div",{className:"flex items-center gap-2 bg-card border border-edge rounded-lg px-3 py-2",children:[u.jsx(rj,{size:14,className:"text-slate-500"}),u.jsx("input",{value:n,onChange:i=>r(i.target.value),placeholder:"Actor",className:"bg-transparent text-sm outline-none w-28"})]}),u.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"})]})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"Time"}),u.jsx("th",{className:"text-left",children:"Actor"}),u.jsx("th",{className:"text-left",children:"Action"}),u.jsx("th",{className:"text-left",children:"Target"}),u.jsx("th",{className:"text-left",children:"Details"})]})}),u.jsxs("tbody",{children:[(a||[]).map((i,s)=>u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3 text-slate-400 text-xs whitespace-nowrap",children:(i.createdAt||i.timestamp||"").slice(0,19).replace("T"," ")}),u.jsx("td",{className:"text-slate-300",children:i.actor||i.username||"-"}),u.jsx("td",{children:u.jsx("span",{className:"text-brand text-xs font-mono",children:i.action})}),u.jsx("td",{className:"text-slate-400 text-xs",children:i.target||i.resource||"-"}),u.jsx("td",{className:"text-slate-500 text-xs max-w-md truncate",children:i.detail||i.details||""})]},i.id||s)),!(a||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:5,className:"text-center text-slate-500 py-8",children:"No audit logs found."})})]})]})})]})}function Fje(){const e=nn(),{data:t}=se({queryKey:["providers"],queryFn:lX}),{data:n}=se({queryKey:["settings"],queryFn:xX}),[r,a]=A.useState({}),i=async o=>{const l=r[o];l!==void 0&&(await SX(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 u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[u.jsx(xk,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Gateways · Settings"})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold mb-3",children:[u.jsx(EK,{size:16,className:"text-brand"})," Gateway Adapters (provider)"]}),u.jsxs("p",{className:"text-xs text-slate-500 mb-3 flex items-center gap-1.5",children:[u.jsx(aj,{size:13,className:"text-accent"})," API keys are stored only in environment variables and are never shown on screen. (Default mock = 0 external calls)"]}),u.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-3",children:[s.map((o,l)=>u.jsxs("div",{className:"bg-panel border border-edge rounded-lg p-3 flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-xs text-slate-400 uppercase",children:o.adapter}),u.jsx("div",{className:"font-semibold",children:o.provider||"mock"})]}),u.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&&u.jsx("div",{className:"text-slate-500 text-sm",children:"Unable to load provider information."})]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("div",{className:"text-sm font-semibold mb-3",children:"System Settings"}),u.jsxs("div",{className:"space-y-2",children:[(n||[]).map(o=>{const l=o.key||o.settingKey,c=r[l]??o.value??o.settingValue??"";return u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("span",{className:"text-sm text-slate-400 w-56 font-mono text-xs",children:l}),u.jsx("input",{value:c,onChange:f=>a({...r,[l]:f.target.value}),className:"flex-1 bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsx("button",{onClick:()=>i(l),className:"bg-brand2 text-white text-xs px-3 py-2 rounded-lg",children:"Save"})]},l)}),!(n||[]).length&&u.jsx("div",{className:"text-slate-500 text-sm py-4",children:"No settings available."})]})]})]})}const Z6="https://itsm.zioinfo.co.kr",Ub=e=>e==null?void 0:e.replace(/https?:\/\/zioinfo\.co\.kr:8443/g,Z6);function Vje(){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(`${Z6}/api/app/public-latest`).then(f=>f.json()).then(f=>t({...f,qr_url:Ub(f.qr_url),landing_url:Ub(f.landing_url),download_url:Ub(f.download_url)})).catch(()=>i("Unable to connect to the central app repository (ITSM).")).finally(()=>r(!1))};A.useEffect(()=>{l()},[]);const c=async()=>{if(e!=null&&e.landing_url)try{await navigator.clipboard.writeText(e.landing_url),o(!0),setTimeout(()=>o(!1),2e3)}catch{}};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(bl,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Admin App Install"})]}),u.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:[u.jsx(nj,{size:15})," Refresh"]})]}),u.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 ",u.jsx("span",{className:"text-brand",children:"GUARDiA Manager"})," (read-only)."]}),n&&u.jsx("div",{className:"text-slate-400 text-sm",children:"Loading…"}),a&&u.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&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-8 text-center text-slate-400",children:[u.jsx(bl,{size:36,className:"mx-auto mb-3 text-slate-600"}),"No app version has been registered yet.",u.jsx("br",{}),u.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)&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-6 grid md:grid-cols-[200px_1fr] gap-6 items-start",children:[u.jsx("div",{className:"bg-white rounded-xl p-3 flex items-center justify-center",children:e.qr_url?u.jsx("img",{src:e.qr_url,alt:"Admin App QR",className:"w-44 h-44"}):u.jsx(bl,{size:64,className:"text-slate-400"})}),u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[u.jsx("span",{className:"text-lg font-bold",children:e.app_name||"GUARDiA Mall Admin"}),u.jsxs("span",{className:"px-2 py-0.5 rounded-md bg-brand2 text-white text-xs font-semibold",children:["v",e.version]})]}),u.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&&u.jsxs("div",{className:"mb-4",children:[u.jsx("div",{className:"text-[11px] font-semibold text-slate-500 uppercase tracking-wider mb-1",children:"Release Notes"}),u.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})]}),u.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.landing_url&&u.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:[u.jsx(hk,{size:15})," Install Page"]}),e.download_url&&u.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:[u.jsx(dk,{size:15})," Download APK"]}),u.jsxs("button",{onClick:c,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?u.jsx(lk,{size:15,className:"text-accent"}):u.jsx(fk,{size:15}),s?"Copied":"Copy Link"]})]})]})]})]})}const Hje=new T8({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1,staleTime:3e4}}});function qje(){return u.jsx(N8,{client:Hje,children:u.jsx(b7,{children:u.jsx(u7,{children:u.jsxs(IU,{children:[u.jsx(Se,{path:"/",element:u.jsx(IX,{})}),u.jsx(Se,{path:"/account",element:u.jsx(OW,{})}),u.jsxs(Se,{element:u.jsx(rW,{}),children:[u.jsx(Se,{path:"/home",element:u.jsx(oW,{})}),u.jsx(Se,{path:"/category",element:u.jsx(cW,{})}),u.jsx(Se,{path:"/search",element:u.jsx(uW,{})}),u.jsx(Se,{path:"/product/:id",element:u.jsx(fW,{})}),u.jsx(Se,{path:"/cart",element:u.jsx(dW,{})}),u.jsx(Se,{path:"/checkout",element:u.jsx(pW,{})}),u.jsx(Se,{path:"/subscription",element:u.jsx(gW,{})}),u.jsx(Se,{path:"/daily-standard",element:u.jsx(vW,{})}),u.jsx(Se,{path:"/events",element:u.jsx(xW,{})}),u.jsx(Se,{path:"/wishlist",element:u.jsx(SW,{})}),u.jsx(Se,{path:"/mypage",element:u.jsx(wW,{})}),u.jsx(Se,{path:"/orders",element:u.jsx(jW,{})}),u.jsx(Se,{path:"/review/:productId",element:u.jsx(AW,{})}),u.jsx(Se,{path:"/cs",element:u.jsx(TW,{})}),u.jsx(Se,{path:"/app",element:u.jsx(NW,{})})]}),u.jsx(Se,{path:"/admin/login",element:u.jsx(CW,{})}),u.jsxs(Se,{path:"/admin",element:u.jsx(MW,{}),children:[u.jsx(Se,{index:!0,element:u.jsx(em,{to:"/admin/dashboard",replace:!0})}),u.jsx(Se,{path:"dashboard",element:u.jsx(Eje,{})}),u.jsx(Se,{path:"stores",element:u.jsx(Tje,{})}),u.jsx(Se,{path:"products",element:u.jsx(Nje,{})}),u.jsx(Se,{path:"inventory",element:u.jsx(Cje,{})}),u.jsx(Se,{path:"orders",element:u.jsx(_je,{})}),u.jsx(Se,{path:"transfers",element:u.jsx(Pje,{})}),u.jsx(Se,{path:"members",element:u.jsx(Mje,{})}),u.jsx(Se,{path:"loyalty",element:u.jsx(Rje,{})}),u.jsx(Se,{path:"events",element:u.jsx($je,{})}),u.jsx(Se,{path:"subscriptions",element:u.jsx(kje,{})}),u.jsx(Se,{path:"schedule",element:u.jsx(zje,{})}),u.jsx(Se,{path:"analytics",element:u.jsx(Ije,{})}),u.jsx(Se,{path:"users",element:u.jsx(Bje,{})}),u.jsx(Se,{path:"audit",element:u.jsx(Uje,{})}),u.jsx(Se,{path:"settings",element:u.jsx(Fje,{})}),u.jsx(Se,{path:"app",element:u.jsx(Vje,{})})]}),u.jsx(Se,{path:"*",element:u.jsx(em,{to:"/",replace:!0})})]})})})})}const{slice:Kje,forEach:Gje}=[];function Yje(e){return Gje.call(Kje.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function Xje(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 SP=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Wje=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(!SP.test(r.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${r.domain}`}if(r.path){if(!SP.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},wP={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=Wje(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 Qje={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return wP.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:a,cookieOptions:i}=t;n&&typeof document<"u"&&wP.create(n,e,r,a,i)}},Zje={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}},Jje={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 c=o[l].indexOf("=");c>0&&o[l].substring(0,c)===t&&(r=o[l].substring(c+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 zo=null;const jP=()=>{if(zo!==null)return zo;try{if(zo=typeof window<"u"&&window.localStorage!==null,!zo)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{zo=!1}return zo};var eAe={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&jP())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&jP()&&window.localStorage.setItem(n,e)}};let Io=null;const AP=()=>{if(Io!==null)return Io;try{if(Io=typeof window<"u"&&window.sessionStorage!==null,!Io)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Io=!1}return Io};var tAe={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&AP())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&AP()&&window.sessionStorage.setItem(n,e)}},nAe={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}},rAe={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}},aAe={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}},iAe={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 J6=!1;try{document.cookie,J6=!0}catch{}const ez=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];J6||ez.splice(1,1);const sAe=()=>({order:ez,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class tz{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=Yje(n,this.options||{},sAe()),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(Qje),this.addDetector(Zje),this.addDetector(eAe),this.addDetector(tAe),this.addDetector(nAe),this.addDetector(rAe),this.addDetector(aAe),this.addDetector(iAe),this.addDetector(Jje)}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&&!Xje(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)}))}}tz.type="languageDetector";const oAe={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"},lAe={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"}},cAe={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."},uAe={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"},fAe={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!"},dAe={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"},hAe={resultsFor:'Search Results for "{{query}}"',aiUnderstood:"AI understood:",searching:"AI is searching…",noResults:"No results found."},pAe={title:"Wishlist",empty:"Your wishlist is empty.",startShopping:"Start Shopping →"},mAe={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"},yAe={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"},gAe={title:"Write a Review",rating:"Rating",comment:"Your Review",commentPlaceholder:"Share your experience…",submit:"Submit Review",thanks:"Thank you for your review!"},vAe={title:"Offers & Events",subtitle:"Seasonal deals and special campaigns.",endsIn:"Ends in",shopNow:"Shop Now"},bAe={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"},xAe={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"},SAe={title:"Get the Montvale App",subtitle:"Scan the QR code to install on your phone.",ios:"iOS",android:"Android"},wAe={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"}},jAe={common:oAe,shop:lAe,zip:cAe,cart:uAe,checkout:fAe,subscription:dAe,search:hAe,wishlist:pAe,mypage:mAe,product:yAe,review:gAe,events:vAe,account:bAe,cs:xAe,app:SAe,admin:wAe},AAe={search:"검색",searchPlaceholder:"부케, 장미, 상황별로 검색하세요…",loading:"불러오는 중…",noData:"데이터 없음",save:"저장",cancel:"취소",close:"닫기",edit:"수정",delete:"삭제",add:"추가",create:"생성",confirm:"확인",submit:"제출",back:"뒤로",next:"다음",continue:"계속",apply:"적용",viewAll:"전체 보기",yes:"예",no:"아니오",actions:"작업",status:"상태",all:"전체",language:"언어"},OAe={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"}},EAe={since:"{{year}}년부터",lead:"어디로 꽃을 보내실지 알려주시면 근처에서 가능한 상품을 보여드립니다.",enterZip:"배송 우편번호 입력",placeholder:"예: 07645",go:"확인",availableStores:"배송 가능 매장",radiusSameDay:"반경 {{radius}}마일 · {{cutoff}}까지 당일 배송 ({{tz}})",reviews:"리뷰 {{n}}개",browsePickup:"매장 픽업으로 둘러보기 →",errInvalid:"5자리 우편번호를 입력해 주세요.",errNotDeliverable:"죄송합니다. 아직 해당 지역은 배송이 어렵습니다. 매장 픽업 또는 다른 우편번호를 시도해 보세요.",errFailed:"조회에 실패했습니다. 잠시 후 다시 시도해 주세요."},TAe={title:"장바구니",signInPrompt:"장바구니를 보려면 로그인해 주세요.",signInRegister:"로그인 / 회원가입",empty:"장바구니가 비어 있습니다.",startShopping:"쇼핑 시작하기 →",card:"카드",subtotal:"상품 합계",shippingTax:"배송비/세금",calcAtCheckout:"결제 시 계산",total:"총 결제금액",checkout:"결제하기"},NAe={title:"결제",recipient:"받는 분",recipientName:"받는 분 성함",deliveryAddress:"배송 주소",deliveryDate:"배송 날짜",timeSlot:"배송 시간대",cardMessage:"카드 메시지",cardMessagePlaceholder:"진심 어린 메시지를 적어 주세요…",aiSuggest:"AI 카드 메시지",payment:"결제 수단",placeOrder:"주문하기",orderSummary:"주문 요약",contactPhone:"연락처",sameDay:"당일 배송",processing:"처리 중…",success:"주문이 완료되었습니다!"},CAe={title:"꽃 정기 구독",subtitle:"플로리스트가 디자인한 신선한 꽃을 원하는 주기로 받아보세요.",weekly:"매주",biweekly:"격주",monthly:"매월",subscribe:"구독하기",manage:"구독 관리",frequency:"배송 주기",nextDelivery:"다음 배송"},_Ae={resultsFor:'"{{query}}" 검색 결과',aiUnderstood:"AI가 이해한 내용:",searching:"AI가 검색 중입니다…",noResults:"검색 결과가 없습니다."},PAe={title:"찜한 상품",empty:"찜한 상품이 없습니다.",startShopping:"쇼핑 시작하기 →"},MAe={title:"마이페이지",hello:"안녕하세요",myOrders:"내 주문",mySubscriptions:"내 구독",wishlist:"찜한 상품",points:"포인트",tier:"등급",addresses:"배송지 관리",signOut:"로그아웃",memberSince:"가입일"},RAe={addToCart:"장바구니 담기",buyNow:"바로 구매",size:"사이즈",options:"옵션",reviews:"리뷰",description:"상품 설명",writeReview:"리뷰 작성",inStock:"재고 있음",outOfStock:"품절",share:"공유",sizeStandard:"스탠다드",sizeDeluxe:"디럭스",sizePremium:"프리미엄"},DAe={title:"리뷰 작성",rating:"별점",comment:"리뷰 내용",commentPlaceholder:"이용 후기를 남겨 주세요…",submit:"리뷰 등록",thanks:"소중한 리뷰 감사합니다!"},$Ae={title:"이벤트 & 혜택",subtitle:"시즌 특가와 특별 캠페인을 만나보세요.",endsIn:"종료까지",shopNow:"쇼핑하기"},kAe={signIn:"로그인",signUp:"회원가입",email:"이메일",password:"비밀번호",name:"이름",phone:"전화번호",createAccount:"계정 만들기",haveAccount:"이미 계정이 있으신가요?",noAccount:"계정이 없으신가요?",guestCheckout:"비회원으로 계속하기"},LAe={title:"고객 지원",subtitle:"도와드리겠습니다 — AI 어시스턴트에게 묻거나 직접 문의하세요.",askAi:"AI 어시스턴트에게 문의",placeholder:"궁금한 점을 입력하세요…",send:"보내기",contactUs:"문의하기"},zAe={title:"Montvale 앱 받기",subtitle:"QR 코드를 스캔하여 휴대폰에 설치하세요.",ios:"iOS",android:"안드로이드"},IAe={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:"비활성"}},BAe={common:AAe,shop:OAe,zip:EAe,cart:TAe,checkout:NAe,subscription:CAe,search:_Ae,wishlist:PAe,mypage:MAe,product:RAe,review:DAe,events:$Ae,account:kAe,cs:LAe,app:zAe,admin:IAe},nz=["en","ko"],UAe="mall_lang";function rz(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")}rn.use(tz).use(Qq).init({resources:{en:{translation:jAe},ko:{translation:BAe}},fallbackLng:"en",supportedLngs:nz,nonExplicitSupportedLngs:!0,load:"languageOnly",interpolation:{escapeValue:!1},detection:{order:["localStorage","navigator","htmlTag"],lookupLocalStorage:UAe,caches:["localStorage"]}});rz(rn.language);rn.on("languageChanged",rz);t8.createRoot(document.getElementById("root")).render(u.jsx(_.StrictMode,{children:u.jsx(qje,{})}));
