@wraps.dev/cli 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,371 +0,0 @@
1
- function yq(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const l=Object.getOwnPropertyDescriptor(r,i);l&&Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();var Td=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lg={exports:{}},Au={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var FT;function bq(){if(FT)return Au;FT=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,l){var s=null;if(l!==void 0&&(s=""+l),i.key!==void 0&&(s=""+i.key),"key"in i){l={};for(var c in i)c!=="key"&&(l[c]=i[c])}else l=i;return i=l.ref,{$$typeof:e,type:r,key:s,ref:i!==void 0?i:null,props:l}}return Au.Fragment=t,Au.jsx=n,Au.jsxs=n,Au}var GT;function xq(){return GT||(GT=1,Lg.exports=bq()),Lg.exports}var v=xq(),Ig={exports:{}},je={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var VT;function wq(){if(VT)return je;VT=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),y=Symbol.iterator;function x($){return $===null||typeof $!="object"?null:($=y&&$[y]||$["@@iterator"],typeof $=="function"?$:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,S={};function E($,F,Z){this.props=$,this.context=F,this.refs=S,this.updater=Z||O}E.prototype.isReactComponent={},E.prototype.setState=function($,F){if(typeof $!="object"&&typeof $!="function"&&$!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,$,F,"setState")},E.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function T(){}T.prototype=E.prototype;function A($,F,Z){this.props=$,this.context=F,this.refs=S,this.updater=Z||O}var M=A.prototype=new T;M.constructor=A,w(M,E.prototype),M.isPureReactComponent=!0;var j=Array.isArray;function N(){}var R={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function I($,F,Z){var se=Z.ref;return{$$typeof:e,type:$,key:F,ref:se!==void 0?se:null,props:Z}}function V($,F){return I($.type,F,$.props)}function z($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function B($){var F={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(Z){return F[Z]})}var G=/\/+/g;function K($,F){return typeof $=="object"&&$!==null&&$.key!=null?B(""+$.key):F.toString(36)}function X($){switch($.status){case"fulfilled":return $.value;case"rejected":throw $.reason;default:switch(typeof $.status=="string"?$.then(N,N):($.status="pending",$.then(function(F){$.status==="pending"&&($.status="fulfilled",$.value=F)},function(F){$.status==="pending"&&($.status="rejected",$.reason=F)})),$.status){case"fulfilled":return $.value;case"rejected":throw $.reason}}throw $}function D($,F,Z,se,de){var ge=typeof $;(ge==="undefined"||ge==="boolean")&&($=null);var fe=!1;if($===null)fe=!0;else switch(ge){case"bigint":case"string":case"number":fe=!0;break;case"object":switch($.$$typeof){case e:case t:fe=!0;break;case m:return fe=$._init,D(fe($._payload),F,Z,se,de)}}if(fe)return de=de($),fe=se===""?"."+K($,0):se,j(de)?(Z="",fe!=null&&(Z=fe.replace(G,"$&/")+"/"),D(de,F,Z,"",function(me){return me})):de!=null&&(z(de)&&(de=V(de,Z+(de.key==null||$&&$.key===de.key?"":(""+de.key).replace(G,"$&/")+"/")+fe)),F.push(de)),1;fe=0;var pe=se===""?".":se+":";if(j($))for(var ae=0;ae<$.length;ae++)se=$[ae],ge=pe+K(se,ae),fe+=D(se,F,Z,ge,de);else if(ae=x($),typeof ae=="function")for($=ae.call($),ae=0;!(se=$.next()).done;)se=se.value,ge=pe+K(se,ae++),fe+=D(se,F,Z,ge,de);else if(ge==="object"){if(typeof $.then=="function")return D(X($),F,Z,se,de);throw F=String($),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return fe}function U($,F,Z){if($==null)return $;var se=[],de=0;return D($,se,"","",function(ge){return F.call(Z,ge,de++)}),se}function Y($){if($._status===-1){var F=$._result;F=F(),F.then(function(Z){($._status===0||$._status===-1)&&($._status=1,$._result=Z)},function(Z){($._status===0||$._status===-1)&&($._status=2,$._result=Z)}),$._status===-1&&($._status=0,$._result=F)}if($._status===1)return $._result.default;throw $._result}var W=typeof reportError=="function"?reportError:function($){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $=="object"&&$!==null&&typeof $.message=="string"?String($.message):String($),error:$});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",$);return}console.error($)},oe={map:U,forEach:function($,F,Z){U($,function(){F.apply(this,arguments)},Z)},count:function($){var F=0;return U($,function(){F++}),F},toArray:function($){return U($,function(F){return F})||[]},only:function($){if(!z($))throw Error("React.Children.only expected to receive a single React element child.");return $}};return je.Activity=p,je.Children=oe,je.Component=E,je.Fragment=n,je.Profiler=i,je.PureComponent=A,je.StrictMode=r,je.Suspense=f,je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,je.__COMPILER_RUNTIME={__proto__:null,c:function($){return R.H.useMemoCache($)}},je.cache=function($){return function(){return $.apply(null,arguments)}},je.cacheSignal=function(){return null},je.cloneElement=function($,F,Z){if($==null)throw Error("The argument must be a React element, but you passed "+$+".");var se=w({},$.props),de=$.key;if(F!=null)for(ge in F.key!==void 0&&(de=""+F.key),F)!k.call(F,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&F.ref===void 0||(se[ge]=F[ge]);var ge=arguments.length-2;if(ge===1)se.children=Z;else if(1<ge){for(var fe=Array(ge),pe=0;pe<ge;pe++)fe[pe]=arguments[pe+2];se.children=fe}return I($.type,de,se)},je.createContext=function($){return $={$$typeof:s,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null},$.Provider=$,$.Consumer={$$typeof:l,_context:$},$},je.createElement=function($,F,Z){var se,de={},ge=null;if(F!=null)for(se in F.key!==void 0&&(ge=""+F.key),F)k.call(F,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(de[se]=F[se]);var fe=arguments.length-2;if(fe===1)de.children=Z;else if(1<fe){for(var pe=Array(fe),ae=0;ae<fe;ae++)pe[ae]=arguments[ae+2];de.children=pe}if($&&$.defaultProps)for(se in fe=$.defaultProps,fe)de[se]===void 0&&(de[se]=fe[se]);return I($,ge,de)},je.createRef=function(){return{current:null}},je.forwardRef=function($){return{$$typeof:c,render:$}},je.isValidElement=z,je.lazy=function($){return{$$typeof:m,_payload:{_status:-1,_result:$},_init:Y}},je.memo=function($,F){return{$$typeof:d,type:$,compare:F===void 0?null:F}},je.startTransition=function($){var F=R.T,Z={};R.T=Z;try{var se=$(),de=R.S;de!==null&&de(Z,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(N,W)}catch(ge){W(ge)}finally{F!==null&&Z.types!==null&&(F.types=Z.types),R.T=F}},je.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},je.use=function($){return R.H.use($)},je.useActionState=function($,F,Z){return R.H.useActionState($,F,Z)},je.useCallback=function($,F){return R.H.useCallback($,F)},je.useContext=function($){return R.H.useContext($)},je.useDebugValue=function(){},je.useDeferredValue=function($,F){return R.H.useDeferredValue($,F)},je.useEffect=function($,F){return R.H.useEffect($,F)},je.useEffectEvent=function($){return R.H.useEffectEvent($)},je.useId=function(){return R.H.useId()},je.useImperativeHandle=function($,F,Z){return R.H.useImperativeHandle($,F,Z)},je.useInsertionEffect=function($,F){return R.H.useInsertionEffect($,F)},je.useLayoutEffect=function($,F){return R.H.useLayoutEffect($,F)},je.useMemo=function($,F){return R.H.useMemo($,F)},je.useOptimistic=function($,F){return R.H.useOptimistic($,F)},je.useReducer=function($,F,Z){return R.H.useReducer($,F,Z)},je.useRef=function($){return R.H.useRef($)},je.useState=function($){return R.H.useState($)},je.useSyncExternalStore=function($,F,Z){return R.H.useSyncExternalStore($,F,Z)},je.useTransition=function(){return R.H.useTransition()},je.version="19.2.0",je}var YT;function mp(){return YT||(YT=1,Ig.exports=wq()),Ig.exports}var _=mp();const L=lt(_),J1=yq({__proto__:null,default:L},[_]);var zg={exports:{}},Tu={},Bg={exports:{}},qg={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var WT;function Sq(){return WT||(WT=1,(function(e){function t(D,U){var Y=D.length;D.push(U);e:for(;0<Y;){var W=Y-1>>>1,oe=D[W];if(0<i(oe,U))D[W]=U,D[Y]=oe,Y=W;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var U=D[0],Y=D.pop();if(Y!==U){D[0]=Y;e:for(var W=0,oe=D.length,$=oe>>>1;W<$;){var F=2*(W+1)-1,Z=D[F],se=F+1,de=D[se];if(0>i(Z,Y))se<oe&&0>i(de,Z)?(D[W]=de,D[se]=Y,W=se):(D[W]=Z,D[F]=Y,W=F);else if(se<oe&&0>i(de,Y))D[W]=de,D[se]=Y,W=se;else break e}}return U}function i(D,U){var Y=D.sortIndex-U.sortIndex;return Y!==0?Y:D.id-U.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,c=s.now();e.unstable_now=function(){return s.now()-c}}var f=[],d=[],m=1,p=null,y=3,x=!1,O=!1,w=!1,S=!1,E=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function M(D){for(var U=n(d);U!==null;){if(U.callback===null)r(d);else if(U.startTime<=D)r(d),U.sortIndex=U.expirationTime,t(f,U);else break;U=n(d)}}function j(D){if(w=!1,M(D),!O)if(n(f)!==null)O=!0,N||(N=!0,B());else{var U=n(d);U!==null&&X(j,U.startTime-D)}}var N=!1,R=-1,k=5,I=-1;function V(){return S?!0:!(e.unstable_now()-I<k)}function z(){if(S=!1,N){var D=e.unstable_now();I=D;var U=!0;try{e:{O=!1,w&&(w=!1,T(R),R=-1),x=!0;var Y=y;try{t:{for(M(D),p=n(f);p!==null&&!(p.expirationTime>D&&V());){var W=p.callback;if(typeof W=="function"){p.callback=null,y=p.priorityLevel;var oe=W(p.expirationTime<=D);if(D=e.unstable_now(),typeof oe=="function"){p.callback=oe,M(D),U=!0;break t}p===n(f)&&r(f),M(D)}else r(f);p=n(f)}if(p!==null)U=!0;else{var $=n(d);$!==null&&X(j,$.startTime-D),U=!1}}break e}finally{p=null,y=Y,x=!1}U=void 0}}finally{U?B():N=!1}}}var B;if(typeof A=="function")B=function(){A(z)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,K=G.port2;G.port1.onmessage=z,B=function(){K.postMessage(null)}}else B=function(){E(z,0)};function X(D,U){R=E(function(){D(e.unstable_now())},U)}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(D){D.callback=null},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(D){switch(y){case 1:case 2:case 3:var U=3;break;default:U=y}var Y=y;y=U;try{return D()}finally{y=Y}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(D,U){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var Y=y;y=D;try{return U()}finally{y=Y}},e.unstable_scheduleCallback=function(D,U,Y){var W=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?W+Y:W):Y=W,D){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=Y+oe,D={id:m++,callback:U,priorityLevel:D,startTime:Y,expirationTime:oe,sortIndex:-1},Y>W?(D.sortIndex=Y,t(d,D),n(f)===null&&D===n(d)&&(w?(T(R),R=-1):w=!0,X(j,Y-W))):(D.sortIndex=oe,t(f,D),O||x||(O=!0,N||(N=!0,B()))),D},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(D){var U=y;return function(){var Y=y;y=U;try{return D.apply(this,arguments)}finally{y=Y}}}})(qg)),qg}var KT;function Oq(){return KT||(KT=1,Bg.exports=Sq()),Bg.exports}var Ug={exports:{}},cn={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var XT;function _q(){if(XT)return cn;XT=1;var e=mp();function t(f){var d="https://react.dev/errors/"+f;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function l(f,d,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:f,containerInfo:d,implementation:m}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,d){if(f==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return cn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,cn.createPortal=function(f,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return l(f,d,null,m)},cn.flushSync=function(f){var d=s.T,m=r.p;try{if(s.T=null,r.p=2,f)return f()}finally{s.T=d,r.p=m,r.d.f()}},cn.preconnect=function(f,d){typeof f=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(f,d))},cn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},cn.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var m=d.as,p=c(m,d.crossOrigin),y=typeof d.integrity=="string"?d.integrity:void 0,x=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?r.d.S(f,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:p,integrity:y,fetchPriority:x}):m==="script"&&r.d.X(f,{crossOrigin:p,integrity:y,fetchPriority:x,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},cn.preinitModule=function(f,d){if(typeof f=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=c(d.as,d.crossOrigin);r.d.M(f,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(f)},cn.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,p=c(m,d.crossOrigin);r.d.L(f,m,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},cn.preloadModule=function(f,d){if(typeof f=="string")if(d){var m=c(d.as,d.crossOrigin);r.d.m(f,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(f)},cn.requestFormReset=function(f){r.d.r(f)},cn.unstable_batchedUpdates=function(f,d){return f(d)},cn.useFormState=function(f,d,m){return s.H.useFormState(f,d,m)},cn.useFormStatus=function(){return s.H.useHostTransitionStatus()},cn.version="19.2.0",cn}var QT;function ek(){if(QT)return Ug.exports;QT=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Ug.exports=_q(),Ug.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var ZT;function Eq(){if(ZT)return Tu;ZT=1;var e=Oq(),t=mp(),n=ek();function r(a){var o="https://react.dev/errors/"+a;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)o+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+a+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function l(a){var o=a,u=a;if(a.alternate)for(;o.return;)o=o.return;else{a=o;do o=a,(o.flags&4098)!==0&&(u=o.return),a=o.return;while(a)}return o.tag===3?u:null}function s(a){if(a.tag===13){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function c(a){if(a.tag===31){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function f(a){if(l(a)!==a)throw Error(r(188))}function d(a){var o=a.alternate;if(!o){if(o=l(a),o===null)throw Error(r(188));return o!==a?null:a}for(var u=a,h=o;;){var g=u.return;if(g===null)break;var b=g.alternate;if(b===null){if(h=g.return,h!==null){u=h;continue}break}if(g.child===b.child){for(b=g.child;b;){if(b===u)return f(g),a;if(b===h)return f(g),o;b=b.sibling}throw Error(r(188))}if(u.return!==h.return)u=g,h=b;else{for(var C=!1,P=g.child;P;){if(P===u){C=!0,u=g,h=b;break}if(P===h){C=!0,h=g,u=b;break}P=P.sibling}if(!C){for(P=b.child;P;){if(P===u){C=!0,u=b,h=g;break}if(P===h){C=!0,h=b,u=g;break}P=P.sibling}if(!C)throw Error(r(189))}}if(u.alternate!==h)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?a:o}function m(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a;for(a=a.child;a!==null;){if(o=m(a),o!==null)return o;a=a.sibling}return null}var p=Object.assign,y=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),A=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),V=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function B(a){return a===null||typeof a!="object"?null:(a=z&&a[z]||a["@@iterator"],typeof a=="function"?a:null)}var G=Symbol.for("react.client.reference");function K(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===G?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case w:return"Fragment";case E:return"Profiler";case S:return"StrictMode";case j:return"Suspense";case N:return"SuspenseList";case I:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case O:return"Portal";case A:return a.displayName||"Context";case T:return(a._context.displayName||"Context")+".Consumer";case M:var o=a.render;return a=a.displayName,a||(a=o.displayName||o.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case R:return o=a.displayName||null,o!==null?o:K(a.type)||"Memo";case k:o=a._payload,a=a._init;try{return K(a(o))}catch{}}return null}var X=Array.isArray,D=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},W=[],oe=-1;function $(a){return{current:a}}function F(a){0>oe||(a.current=W[oe],W[oe]=null,oe--)}function Z(a,o){oe++,W[oe]=a.current,a.current=o}var se=$(null),de=$(null),ge=$(null),fe=$(null);function pe(a,o){switch(Z(ge,o),Z(de,a),Z(se,null),o.nodeType){case 9:case 11:a=(a=o.documentElement)&&(a=a.namespaceURI)?hT(a):0;break;default:if(a=o.tagName,o=o.namespaceURI)o=hT(o),a=pT(o,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}F(se),Z(se,a)}function ae(){F(se),F(de),F(ge)}function me(a){a.memoizedState!==null&&Z(fe,a);var o=se.current,u=pT(o,a.type);o!==u&&(Z(de,a),Z(se,u))}function ye(a){de.current===a&&(F(se),F(de)),fe.current===a&&(F(fe),Su._currentValue=Y)}var re,Ne;function Oe(a){if(re===void 0)try{throw Error()}catch(u){var o=u.stack.trim().match(/\n( *(at )?)/);re=o&&o[1]||"",Ne=-1<u.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+re+a+Ne}var Ke=!1;function He(a,o){if(!a||Ke)return"";Ke=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(o){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(ne){var te=ne}Reflect.construct(a,[],ce)}else{try{ce.call()}catch(ne){te=ne}a.call(ce.prototype)}}else{try{throw Error()}catch(ne){te=ne}(ce=a())&&typeof ce.catch=="function"&&ce.catch(function(){})}}catch(ne){if(ne&&te&&typeof ne.stack=="string")return[ne.stack,te.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=h.DetermineComponentFrameRoot(),C=b[0],P=b[1];if(C&&P){var q=C.split(`
44
- `),ee=P.split(`
45
- `);for(g=h=0;h<q.length&&!q[h].includes("DetermineComponentFrameRoot");)h++;for(;g<ee.length&&!ee[g].includes("DetermineComponentFrameRoot");)g++;if(h===q.length||g===ee.length)for(h=q.length-1,g=ee.length-1;1<=h&&0<=g&&q[h]!==ee[g];)g--;for(;1<=h&&0<=g;h--,g--)if(q[h]!==ee[g]){if(h!==1||g!==1)do if(h--,g--,0>g||q[h]!==ee[g]){var ie=`
46
- `+q[h].replace(" at new "," at ");return a.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",a.displayName)),ie}while(1<=h&&0<=g);break}}}finally{Ke=!1,Error.prepareStackTrace=u}return(u=a?a.displayName||a.name:"")?Oe(u):""}function nt(a,o){switch(a.tag){case 26:case 27:case 5:return Oe(a.type);case 16:return Oe("Lazy");case 13:return a.child!==o&&o!==null?Oe("Suspense Fallback"):Oe("Suspense");case 19:return Oe("SuspenseList");case 0:case 15:return He(a.type,!1);case 11:return He(a.type.render,!1);case 1:return He(a.type,!0);case 31:return Oe("Activity");default:return""}}function ln(a){try{var o="",u=null;do o+=nt(a,u),u=a,a=a.return;while(a);return o}catch(h){return`
47
- Error generating stack: `+h.message+`
48
- `+h.stack}}var ft=Object.prototype.hasOwnProperty,$r=e.unstable_scheduleCallback,Pn=e.unstable_cancelCallback,bt=e.unstable_shouldYield,Wn=e.unstable_requestPaint,Gt=e.unstable_now,$o=e.unstable_getCurrentPriorityLevel,Li=e.unstable_ImmediatePriority,hf=e.unstable_UserBlockingPriority,Ii=e.unstable_NormalPriority,ks=e.unstable_LowPriority,ia=e.unstable_IdlePriority,pf=e.log,Ga=e.unstable_setDisableYieldValue,zi=null,pn=null;function gr(a){if(typeof pf=="function"&&Ga(a),pn&&typeof pn.setStrictMode=="function")try{pn.setStrictMode(zi,a)}catch{}}var sn=Math.clz32?Math.clz32:Lr,Am=Math.log,$s=Math.LN2;function Lr(a){return a>>>=0,a===0?32:31-(Am(a)/$s|0)|0}var Lo=256,Io=262144,Bi=4194304;function Ir(a){var o=a&42;if(o!==0)return o;switch(a&-a){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 a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function Te(a,o,u){var h=a.pendingLanes;if(h===0)return 0;var g=0,b=a.suspendedLanes,C=a.pingedLanes;a=a.warmLanes;var P=h&134217727;return P!==0?(h=P&~b,h!==0?g=Ir(h):(C&=P,C!==0?g=Ir(C):u||(u=P&~a,u!==0&&(g=Ir(u))))):(P=h&~b,P!==0?g=Ir(P):C!==0?g=Ir(C):u||(u=h&~a,u!==0&&(g=Ir(u)))),g===0?0:o!==0&&o!==g&&(o&b)===0&&(b=g&-g,u=o&-o,b>=u||b===32&&(u&4194048)!==0)?o:g}function vt(a,o){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&o)===0}function Vt(a,o){switch(a){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function un(){var a=Bi;return Bi<<=1,(Bi&62914560)===0&&(Bi=4194304),a}function Va(a){for(var o=[],u=0;31>u;u++)o.push(a);return o}function xt(a,o){a.pendingLanes|=o,o!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function bn(a,o,u,h,g,b){var C=a.pendingLanes;a.pendingLanes=u,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=u,a.entangledLanes&=u,a.errorRecoveryDisabledLanes&=u,a.shellSuspendCounter=0;var P=a.entanglements,q=a.expirationTimes,ee=a.hiddenUpdates;for(u=C&~u;0<u;){var ie=31-sn(u),ce=1<<ie;P[ie]=0,q[ie]=-1;var te=ee[ie];if(te!==null)for(ee[ie]=null,ie=0;ie<te.length;ie++){var ne=te[ie];ne!==null&&(ne.lane&=-536870913)}u&=~ce}h!==0&&qi(a,h,0),b!==0&&g===0&&a.tag!==0&&(a.suspendedLanes|=b&~(C&~o))}function qi(a,o,u){a.pendingLanes|=o,a.suspendedLanes&=~o;var h=31-sn(o);a.entangledLanes|=o,a.entanglements[h]=a.entanglements[h]|1073741824|u&261930}function xn(a,o){var u=a.entangledLanes|=o;for(a=a.entanglements;u;){var h=31-sn(u),g=1<<h;g&o|a[h]&o&&(a[h]|=o),u&=~g}}function wn(a,o){var u=o&-o;return u=(u&42)!==0?1:zo(u),(u&(a.suspendedLanes|o))!==0?0:u}function zo(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=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:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function yr(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function Tm(){var a=U.p;return a!==0?a:(a=window.event,a===void 0?32:LT(a.type))}function JO(a,o){var u=U.p;try{return U.p=a,o()}finally{U.p=u}}var Ya=Math.random().toString(36).slice(2),Zt="__reactFiber$"+Ya,Sn="__reactProps$"+Ya,Bo="__reactContainer$"+Ya,jm="__reactEvents$"+Ya,l5="__reactListeners$"+Ya,s5="__reactHandles$"+Ya,e_="__reactResources$"+Ya,Ls="__reactMarker$"+Ya;function Cm(a){delete a[Zt],delete a[Sn],delete a[jm],delete a[l5],delete a[s5]}function qo(a){var o=a[Zt];if(o)return o;for(var u=a.parentNode;u;){if(o=u[Bo]||u[Zt]){if(u=o.alternate,o.child!==null||u!==null&&u.child!==null)for(a=wT(a);a!==null;){if(u=a[Zt])return u;a=wT(a)}return o}a=u,u=a.parentNode}return null}function Uo(a){if(a=a[Zt]||a[Bo]){var o=a.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return a}return null}function Is(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a.stateNode;throw Error(r(33))}function Ho(a){var o=a[e_];return o||(o=a[e_]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Yt(a){a[Ls]=!0}var t_=new Set,n_={};function Ui(a,o){Fo(a,o),Fo(a+"Capture",o)}function Fo(a,o){for(n_[a]=o,a=0;a<o.length;a++)t_.add(o[a])}var u5=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]*$"),r_={},a_={};function c5(a){return ft.call(a_,a)?!0:ft.call(r_,a)?!1:u5.test(a)?a_[a]=!0:(r_[a]=!0,!1)}function mf(a,o,u){if(c5(o))if(u===null)a.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":a.removeAttribute(o);return;case"boolean":var h=o.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){a.removeAttribute(o);return}}a.setAttribute(o,""+u)}}function vf(a,o,u){if(u===null)a.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(o);return}a.setAttribute(o,""+u)}}function oa(a,o,u,h){if(h===null)a.removeAttribute(u);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(u);return}a.setAttributeNS(o,u,""+h)}}function Kn(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function i_(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function f5(a,o,u){var h=Object.getOwnPropertyDescriptor(a.constructor.prototype,o);if(!a.hasOwnProperty(o)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var g=h.get,b=h.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return g.call(this)},set:function(C){u=""+C,b.call(this,C)}}),Object.defineProperty(a,o,{enumerable:h.enumerable}),{getValue:function(){return u},setValue:function(C){u=""+C},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function Mm(a){if(!a._valueTracker){var o=i_(a)?"checked":"value";a._valueTracker=f5(a,o,""+a[o])}}function o_(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var u=o.getValue(),h="";return a&&(h=i_(a)?a.checked?"true":"false":a.value),a=h,a!==u?(o.setValue(a),!0):!1}function gf(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var d5=/[\n"\\]/g;function Xn(a){return a.replace(d5,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Nm(a,o,u,h,g,b,C,P){a.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?a.type=C:a.removeAttribute("type"),o!=null?C==="number"?(o===0&&a.value===""||a.value!=o)&&(a.value=""+Kn(o)):a.value!==""+Kn(o)&&(a.value=""+Kn(o)):C!=="submit"&&C!=="reset"||a.removeAttribute("value"),o!=null?Rm(a,C,Kn(o)):u!=null?Rm(a,C,Kn(u)):h!=null&&a.removeAttribute("value"),g==null&&b!=null&&(a.defaultChecked=!!b),g!=null&&(a.checked=g&&typeof g!="function"&&typeof g!="symbol"),P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"?a.name=""+Kn(P):a.removeAttribute("name")}function l_(a,o,u,h,g,b,C,P){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(a.type=b),o!=null||u!=null){if(!(b!=="submit"&&b!=="reset"||o!=null)){Mm(a);return}u=u!=null?""+Kn(u):"",o=o!=null?""+Kn(o):u,P||o===a.value||(a.value=o),a.defaultValue=o}h=h??g,h=typeof h!="function"&&typeof h!="symbol"&&!!h,a.checked=P?a.checked:!!h,a.defaultChecked=!!h,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(a.name=C),Mm(a)}function Rm(a,o,u){o==="number"&&gf(a.ownerDocument)===a||a.defaultValue===""+u||(a.defaultValue=""+u)}function Go(a,o,u,h){if(a=a.options,o){o={};for(var g=0;g<u.length;g++)o["$"+u[g]]=!0;for(u=0;u<a.length;u++)g=o.hasOwnProperty("$"+a[u].value),a[u].selected!==g&&(a[u].selected=g),g&&h&&(a[u].defaultSelected=!0)}else{for(u=""+Kn(u),o=null,g=0;g<a.length;g++){if(a[g].value===u){a[g].selected=!0,h&&(a[g].defaultSelected=!0);return}o!==null||a[g].disabled||(o=a[g])}o!==null&&(o.selected=!0)}}function s_(a,o,u){if(o!=null&&(o=""+Kn(o),o!==a.value&&(a.value=o),u==null)){a.defaultValue!==o&&(a.defaultValue=o);return}a.defaultValue=u!=null?""+Kn(u):""}function u_(a,o,u,h){if(o==null){if(h!=null){if(u!=null)throw Error(r(92));if(X(h)){if(1<h.length)throw Error(r(93));h=h[0]}u=h}u==null&&(u=""),o=u}u=Kn(o),a.defaultValue=u,h=a.textContent,h===u&&h!==""&&h!==null&&(a.value=h),Mm(a)}function Vo(a,o){if(o){var u=a.firstChild;if(u&&u===a.lastChild&&u.nodeType===3){u.nodeValue=o;return}}a.textContent=o}var h5=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 c_(a,o,u){var h=o.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?h?a.setProperty(o,""):o==="float"?a.cssFloat="":a[o]="":h?a.setProperty(o,u):typeof u!="number"||u===0||h5.has(o)?o==="float"?a.cssFloat=u:a[o]=(""+u).trim():a[o]=u+"px"}function f_(a,o,u){if(o!=null&&typeof o!="object")throw Error(r(62));if(a=a.style,u!=null){for(var h in u)!u.hasOwnProperty(h)||o!=null&&o.hasOwnProperty(h)||(h.indexOf("--")===0?a.setProperty(h,""):h==="float"?a.cssFloat="":a[h]="");for(var g in o)h=o[g],o.hasOwnProperty(g)&&u[g]!==h&&c_(a,g,h)}else for(var b in o)o.hasOwnProperty(b)&&c_(a,b,o[b])}function Pm(a){if(a.indexOf("-")===-1)return!1;switch(a){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 p5=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"]]),m5=/^[\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 yf(a){return m5.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function la(){}var Dm=null;function km(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Yo=null,Wo=null;function d_(a){var o=Uo(a);if(o&&(a=o.stateNode)){var u=a[Sn]||null;e:switch(a=o.stateNode,o.type){case"input":if(Nm(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),o=u.name,u.type==="radio"&&o!=null){for(u=a;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Xn(""+o)+'"][type="radio"]'),o=0;o<u.length;o++){var h=u[o];if(h!==a&&h.form===a.form){var g=h[Sn]||null;if(!g)throw Error(r(90));Nm(h,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(o=0;o<u.length;o++)h=u[o],h.form===a.form&&o_(h)}break e;case"textarea":s_(a,u.value,u.defaultValue);break e;case"select":o=u.value,o!=null&&Go(a,!!u.multiple,o,!1)}}}var $m=!1;function h_(a,o,u){if($m)return a(o,u);$m=!0;try{var h=a(o);return h}finally{if($m=!1,(Yo!==null||Wo!==null)&&(id(),Yo&&(o=Yo,a=Wo,Wo=Yo=null,d_(o),a)))for(o=0;o<a.length;o++)d_(a[o])}}function zs(a,o){var u=a.stateNode;if(u===null)return null;var h=u[Sn]||null;if(h===null)return null;u=h[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(a=a.type,h=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!h;break e;default:a=!1}if(a)return null;if(u&&typeof u!="function")throw Error(r(231,o,typeof u));return u}var sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lm=!1;if(sa)try{var Bs={};Object.defineProperty(Bs,"passive",{get:function(){Lm=!0}}),window.addEventListener("test",Bs,Bs),window.removeEventListener("test",Bs,Bs)}catch{Lm=!1}var Wa=null,Im=null,bf=null;function p_(){if(bf)return bf;var a,o=Im,u=o.length,h,g="value"in Wa?Wa.value:Wa.textContent,b=g.length;for(a=0;a<u&&o[a]===g[a];a++);var C=u-a;for(h=1;h<=C&&o[u-h]===g[b-h];h++);return bf=g.slice(a,1<h?1-h:void 0)}function xf(a){var o=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&o===13&&(a=13)):a=o,a===10&&(a=13),32<=a||a===13?a:0}function wf(){return!0}function m_(){return!1}function On(a){function o(u,h,g,b,C){this._reactName=u,this._targetInst=g,this.type=h,this.nativeEvent=b,this.target=C,this.currentTarget=null;for(var P in a)a.hasOwnProperty(P)&&(u=a[P],this[P]=u?u(b):b[P]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?wf:m_,this.isPropagationStopped=m_,this}return p(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=wf)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=wf)},persist:function(){},isPersistent:wf}),o}var Hi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sf=On(Hi),qs=p({},Hi,{view:0,detail:0}),v5=On(qs),zm,Bm,Us,Of=p({},qs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Um,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==Us&&(Us&&a.type==="mousemove"?(zm=a.screenX-Us.screenX,Bm=a.screenY-Us.screenY):Bm=zm=0,Us=a),zm)},movementY:function(a){return"movementY"in a?a.movementY:Bm}}),v_=On(Of),g5=p({},Of,{dataTransfer:0}),y5=On(g5),b5=p({},qs,{relatedTarget:0}),qm=On(b5),x5=p({},Hi,{animationName:0,elapsedTime:0,pseudoElement:0}),w5=On(x5),S5=p({},Hi,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),O5=On(S5),_5=p({},Hi,{data:0}),g_=On(_5),E5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},A5={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"},T5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function j5(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=T5[a])?!!o[a]:!1}function Um(){return j5}var C5=p({},qs,{key:function(a){if(a.key){var o=E5[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=xf(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?A5[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Um,charCode:function(a){return a.type==="keypress"?xf(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?xf(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),M5=On(C5),N5=p({},Of,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),y_=On(N5),R5=p({},qs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Um}),P5=On(R5),D5=p({},Hi,{propertyName:0,elapsedTime:0,pseudoElement:0}),k5=On(D5),$5=p({},Of,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),L5=On($5),I5=p({},Hi,{newState:0,oldState:0}),z5=On(I5),B5=[9,13,27,32],Hm=sa&&"CompositionEvent"in window,Hs=null;sa&&"documentMode"in document&&(Hs=document.documentMode);var q5=sa&&"TextEvent"in window&&!Hs,b_=sa&&(!Hm||Hs&&8<Hs&&11>=Hs),x_=" ",w_=!1;function S_(a,o){switch(a){case"keyup":return B5.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function O_(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Ko=!1;function U5(a,o){switch(a){case"compositionend":return O_(o);case"keypress":return o.which!==32?null:(w_=!0,x_);case"textInput":return a=o.data,a===x_&&w_?null:a;default:return null}}function H5(a,o){if(Ko)return a==="compositionend"||!Hm&&S_(a,o)?(a=p_(),bf=Im=Wa=null,Ko=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return b_&&o.locale!=="ko"?null:o.data;default:return null}}var F5={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 __(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!F5[a.type]:o==="textarea"}function E_(a,o,u,h){Yo?Wo?Wo.push(h):Wo=[h]:Yo=h,o=dd(o,"onChange"),0<o.length&&(u=new Sf("onChange","change",null,u,h),a.push({event:u,listeners:o}))}var Fs=null,Gs=null;function G5(a){lT(a,0)}function _f(a){var o=Is(a);if(o_(o))return a}function A_(a,o){if(a==="change")return o}var T_=!1;if(sa){var Fm;if(sa){var Gm="oninput"in document;if(!Gm){var j_=document.createElement("div");j_.setAttribute("oninput","return;"),Gm=typeof j_.oninput=="function"}Fm=Gm}else Fm=!1;T_=Fm&&(!document.documentMode||9<document.documentMode)}function C_(){Fs&&(Fs.detachEvent("onpropertychange",M_),Gs=Fs=null)}function M_(a){if(a.propertyName==="value"&&_f(Gs)){var o=[];E_(o,Gs,a,km(a)),h_(G5,o)}}function V5(a,o,u){a==="focusin"?(C_(),Fs=o,Gs=u,Fs.attachEvent("onpropertychange",M_)):a==="focusout"&&C_()}function Y5(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return _f(Gs)}function W5(a,o){if(a==="click")return _f(o)}function K5(a,o){if(a==="input"||a==="change")return _f(o)}function X5(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var Dn=typeof Object.is=="function"?Object.is:X5;function Vs(a,o){if(Dn(a,o))return!0;if(typeof a!="object"||a===null||typeof o!="object"||o===null)return!1;var u=Object.keys(a),h=Object.keys(o);if(u.length!==h.length)return!1;for(h=0;h<u.length;h++){var g=u[h];if(!ft.call(o,g)||!Dn(a[g],o[g]))return!1}return!0}function N_(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function R_(a,o){var u=N_(a);a=0;for(var h;u;){if(u.nodeType===3){if(h=a+u.textContent.length,a<=o&&h>=o)return{node:u,offset:o-a};a=h}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=N_(u)}}function P_(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?P_(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function D_(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var o=gf(a.document);o instanceof a.HTMLIFrameElement;){try{var u=typeof o.contentWindow.location.href=="string"}catch{u=!1}if(u)a=o.contentWindow;else break;o=gf(a.document)}return o}function Vm(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}var Q5=sa&&"documentMode"in document&&11>=document.documentMode,Xo=null,Ym=null,Ys=null,Wm=!1;function k_(a,o,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Wm||Xo==null||Xo!==gf(h)||(h=Xo,"selectionStart"in h&&Vm(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Ys&&Vs(Ys,h)||(Ys=h,h=dd(Ym,"onSelect"),0<h.length&&(o=new Sf("onSelect","select",null,o,u),a.push({event:o,listeners:h}),o.target=Xo)))}function Fi(a,o){var u={};return u[a.toLowerCase()]=o.toLowerCase(),u["Webkit"+a]="webkit"+o,u["Moz"+a]="moz"+o,u}var Qo={animationend:Fi("Animation","AnimationEnd"),animationiteration:Fi("Animation","AnimationIteration"),animationstart:Fi("Animation","AnimationStart"),transitionrun:Fi("Transition","TransitionRun"),transitionstart:Fi("Transition","TransitionStart"),transitioncancel:Fi("Transition","TransitionCancel"),transitionend:Fi("Transition","TransitionEnd")},Km={},$_={};sa&&($_=document.createElement("div").style,"AnimationEvent"in window||(delete Qo.animationend.animation,delete Qo.animationiteration.animation,delete Qo.animationstart.animation),"TransitionEvent"in window||delete Qo.transitionend.transition);function Gi(a){if(Km[a])return Km[a];if(!Qo[a])return a;var o=Qo[a],u;for(u in o)if(o.hasOwnProperty(u)&&u in $_)return Km[a]=o[u];return a}var L_=Gi("animationend"),I_=Gi("animationiteration"),z_=Gi("animationstart"),Z5=Gi("transitionrun"),J5=Gi("transitionstart"),eB=Gi("transitioncancel"),B_=Gi("transitionend"),q_=new Map,Xm="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(" ");Xm.push("scrollEnd");function br(a,o){q_.set(a,o),Ui(o,[a])}var Ef=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},Qn=[],Zo=0,Qm=0;function Af(){for(var a=Zo,o=Qm=Zo=0;o<a;){var u=Qn[o];Qn[o++]=null;var h=Qn[o];Qn[o++]=null;var g=Qn[o];Qn[o++]=null;var b=Qn[o];if(Qn[o++]=null,h!==null&&g!==null){var C=h.pending;C===null?g.next=g:(g.next=C.next,C.next=g),h.pending=g}b!==0&&U_(u,g,b)}}function Tf(a,o,u,h){Qn[Zo++]=a,Qn[Zo++]=o,Qn[Zo++]=u,Qn[Zo++]=h,Qm|=h,a.lanes|=h,a=a.alternate,a!==null&&(a.lanes|=h)}function Zm(a,o,u,h){return Tf(a,o,u,h),jf(a)}function Vi(a,o){return Tf(a,null,null,o),jf(a)}function U_(a,o,u){a.lanes|=u;var h=a.alternate;h!==null&&(h.lanes|=u);for(var g=!1,b=a.return;b!==null;)b.childLanes|=u,h=b.alternate,h!==null&&(h.childLanes|=u),b.tag===22&&(a=b.stateNode,a===null||a._visibility&1||(g=!0)),a=b,b=b.return;return a.tag===3?(b=a.stateNode,g&&o!==null&&(g=31-sn(u),a=b.hiddenUpdates,h=a[g],h===null?a[g]=[o]:h.push(o),o.lane=u|536870912),b):null}function jf(a){if(50<mu)throw mu=0,lg=null,Error(r(185));for(var o=a.return;o!==null;)a=o,o=a.return;return a.tag===3?a.stateNode:null}var Jo={};function tB(a,o,u,h){this.tag=a,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kn(a,o,u,h){return new tB(a,o,u,h)}function Jm(a){return a=a.prototype,!(!a||!a.isReactComponent)}function ua(a,o){var u=a.alternate;return u===null?(u=kn(a.tag,o,a.key,a.mode),u.elementType=a.elementType,u.type=a.type,u.stateNode=a.stateNode,u.alternate=a,a.alternate=u):(u.pendingProps=o,u.type=a.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=a.flags&65011712,u.childLanes=a.childLanes,u.lanes=a.lanes,u.child=a.child,u.memoizedProps=a.memoizedProps,u.memoizedState=a.memoizedState,u.updateQueue=a.updateQueue,o=a.dependencies,u.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},u.sibling=a.sibling,u.index=a.index,u.ref=a.ref,u.refCleanup=a.refCleanup,u}function H_(a,o){a.flags&=65011714;var u=a.alternate;return u===null?(a.childLanes=0,a.lanes=o,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,o=u.dependencies,a.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),a}function Cf(a,o,u,h,g,b){var C=0;if(h=a,typeof a=="function")Jm(a)&&(C=1);else if(typeof a=="string")C=oq(a,u,se.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case I:return a=kn(31,u,o,g),a.elementType=I,a.lanes=b,a;case w:return Yi(u.children,g,b,o);case S:C=8,g|=24;break;case E:return a=kn(12,u,o,g|2),a.elementType=E,a.lanes=b,a;case j:return a=kn(13,u,o,g),a.elementType=j,a.lanes=b,a;case N:return a=kn(19,u,o,g),a.elementType=N,a.lanes=b,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case A:C=10;break e;case T:C=9;break e;case M:C=11;break e;case R:C=14;break e;case k:C=16,h=null;break e}C=29,u=Error(r(130,a===null?"null":typeof a,"")),h=null}return o=kn(C,u,o,g),o.elementType=a,o.type=h,o.lanes=b,o}function Yi(a,o,u,h){return a=kn(7,a,h,o),a.lanes=u,a}function ev(a,o,u){return a=kn(6,a,null,o),a.lanes=u,a}function F_(a){var o=kn(18,null,null,0);return o.stateNode=a,o}function tv(a,o,u){return o=kn(4,a.children!==null?a.children:[],a.key,o),o.lanes=u,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}var G_=new WeakMap;function Zn(a,o){if(typeof a=="object"&&a!==null){var u=G_.get(a);return u!==void 0?u:(o={value:a,source:o,stack:ln(o)},G_.set(a,o),o)}return{value:a,source:o,stack:ln(o)}}var el=[],tl=0,Mf=null,Ws=0,Jn=[],er=0,Ka=null,zr=1,Br="";function ca(a,o){el[tl++]=Ws,el[tl++]=Mf,Mf=a,Ws=o}function V_(a,o,u){Jn[er++]=zr,Jn[er++]=Br,Jn[er++]=Ka,Ka=a;var h=zr;a=Br;var g=32-sn(h)-1;h&=~(1<<g),u+=1;var b=32-sn(o)+g;if(30<b){var C=g-g%5;b=(h&(1<<C)-1).toString(32),h>>=C,g-=C,zr=1<<32-sn(o)+g|u<<g|h,Br=b+a}else zr=1<<b|u<<g|h,Br=a}function nv(a){a.return!==null&&(ca(a,1),V_(a,1,0))}function rv(a){for(;a===Mf;)Mf=el[--tl],el[tl]=null,Ws=el[--tl],el[tl]=null;for(;a===Ka;)Ka=Jn[--er],Jn[er]=null,Br=Jn[--er],Jn[er]=null,zr=Jn[--er],Jn[er]=null}function Y_(a,o){Jn[er++]=zr,Jn[er++]=Br,Jn[er++]=Ka,zr=o.id,Br=o.overflow,Ka=a}var Jt=null,dt=null,Be=!1,Xa=null,tr=!1,av=Error(r(519));function Qa(a){var o=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ks(Zn(o,a)),av}function W_(a){var o=a.stateNode,u=a.type,h=a.memoizedProps;switch(o[Zt]=a,o[Sn]=h,u){case"dialog":$e("cancel",o),$e("close",o);break;case"iframe":case"object":case"embed":$e("load",o);break;case"video":case"audio":for(u=0;u<gu.length;u++)$e(gu[u],o);break;case"source":$e("error",o);break;case"img":case"image":case"link":$e("error",o),$e("load",o);break;case"details":$e("toggle",o);break;case"input":$e("invalid",o),l_(o,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0);break;case"select":$e("invalid",o);break;case"textarea":$e("invalid",o),u_(o,h.value,h.defaultValue,h.children)}u=h.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||o.textContent===""+u||h.suppressHydrationWarning===!0||fT(o.textContent,u)?(h.popover!=null&&($e("beforetoggle",o),$e("toggle",o)),h.onScroll!=null&&$e("scroll",o),h.onScrollEnd!=null&&$e("scrollend",o),h.onClick!=null&&(o.onclick=la),o=!0):o=!1,o||Qa(a,!0)}function K_(a){for(Jt=a.return;Jt;)switch(Jt.tag){case 5:case 31:case 13:tr=!1;return;case 27:case 3:tr=!0;return;default:Jt=Jt.return}}function nl(a){if(a!==Jt)return!1;if(!Be)return K_(a),Be=!0,!1;var o=a.tag,u;if((u=o!==3&&o!==27)&&((u=o===5)&&(u=a.type,u=!(u!=="form"&&u!=="button")||Sg(a.type,a.memoizedProps)),u=!u),u&&dt&&Qa(a),K_(a),o===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));dt=xT(a)}else if(o===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));dt=xT(a)}else o===27?(o=dt,fi(a.type)?(a=Tg,Tg=null,dt=a):dt=o):dt=Jt?rr(a.stateNode.nextSibling):null;return!0}function Wi(){dt=Jt=null,Be=!1}function iv(){var a=Xa;return a!==null&&(Tn===null?Tn=a:Tn.push.apply(Tn,a),Xa=null),a}function Ks(a){Xa===null?Xa=[a]:Xa.push(a)}var ov=$(null),Ki=null,fa=null;function Za(a,o,u){Z(ov,o._currentValue),o._currentValue=u}function da(a){a._currentValue=ov.current,F(ov)}function lv(a,o,u){for(;a!==null;){var h=a.alternate;if((a.childLanes&o)!==o?(a.childLanes|=o,h!==null&&(h.childLanes|=o)):h!==null&&(h.childLanes&o)!==o&&(h.childLanes|=o),a===u)break;a=a.return}}function sv(a,o,u,h){var g=a.child;for(g!==null&&(g.return=a);g!==null;){var b=g.dependencies;if(b!==null){var C=g.child;b=b.firstContext;e:for(;b!==null;){var P=b;b=g;for(var q=0;q<o.length;q++)if(P.context===o[q]){b.lanes|=u,P=b.alternate,P!==null&&(P.lanes|=u),lv(b.return,u,a),h||(C=null);break e}b=P.next}}else if(g.tag===18){if(C=g.return,C===null)throw Error(r(341));C.lanes|=u,b=C.alternate,b!==null&&(b.lanes|=u),lv(C,u,a),C=null}else C=g.child;if(C!==null)C.return=g;else for(C=g;C!==null;){if(C===a){C=null;break}if(g=C.sibling,g!==null){g.return=C.return,C=g;break}C=C.return}g=C}}function rl(a,o,u,h){a=null;for(var g=o,b=!1;g!==null;){if(!b){if((g.flags&524288)!==0)b=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var C=g.alternate;if(C===null)throw Error(r(387));if(C=C.memoizedProps,C!==null){var P=g.type;Dn(g.pendingProps.value,C.value)||(a!==null?a.push(P):a=[P])}}else if(g===fe.current){if(C=g.alternate,C===null)throw Error(r(387));C.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(a!==null?a.push(Su):a=[Su])}g=g.return}a!==null&&sv(o,a,u,h),o.flags|=262144}function Nf(a){for(a=a.firstContext;a!==null;){if(!Dn(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Xi(a){Ki=a,fa=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function en(a){return X_(Ki,a)}function Rf(a,o){return Ki===null&&Xi(a),X_(a,o)}function X_(a,o){var u=o._currentValue;if(o={context:o,memoizedValue:u,next:null},fa===null){if(a===null)throw Error(r(308));fa=o,a.dependencies={lanes:0,firstContext:o},a.flags|=524288}else fa=fa.next=o;return u}var nB=typeof AbortController<"u"?AbortController:function(){var a=[],o=this.signal={aborted:!1,addEventListener:function(u,h){a.push(h)}};this.abort=function(){o.aborted=!0,a.forEach(function(u){return u()})}},rB=e.unstable_scheduleCallback,aB=e.unstable_NormalPriority,Ct={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function uv(){return{controller:new nB,data:new Map,refCount:0}}function Xs(a){a.refCount--,a.refCount===0&&rB(aB,function(){a.controller.abort()})}var Qs=null,cv=0,al=0,il=null;function iB(a,o){if(Qs===null){var u=Qs=[];cv=0,al=hg(),il={status:"pending",value:void 0,then:function(h){u.push(h)}}}return cv++,o.then(Q_,Q_),o}function Q_(){if(--cv===0&&Qs!==null){il!==null&&(il.status="fulfilled");var a=Qs;Qs=null,al=0,il=null;for(var o=0;o<a.length;o++)(0,a[o])()}}function oB(a,o){var u=[],h={status:"pending",value:null,reason:null,then:function(g){u.push(g)}};return a.then(function(){h.status="fulfilled",h.value=o;for(var g=0;g<u.length;g++)(0,u[g])(o)},function(g){for(h.status="rejected",h.reason=g,g=0;g<u.length;g++)(0,u[g])(void 0)}),h}var Z_=D.S;D.S=function(a,o){kA=Gt(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&iB(a,o),Z_!==null&&Z_(a,o)};var Qi=$(null);function fv(){var a=Qi.current;return a!==null?a:st.pooledCache}function Pf(a,o){o===null?Z(Qi,Qi.current):Z(Qi,o.pool)}function J_(){var a=fv();return a===null?null:{parent:Ct._currentValue,pool:a}}var ol=Error(r(460)),dv=Error(r(474)),Df=Error(r(542)),kf={then:function(){}};function eE(a){return a=a.status,a==="fulfilled"||a==="rejected"}function tE(a,o,u){switch(u=a[u],u===void 0?a.push(o):u!==o&&(o.then(la,la),o=u),o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,rE(a),a;default:if(typeof o.status=="string")o.then(la,la);else{if(a=st,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=o,a.status="pending",a.then(function(h){if(o.status==="pending"){var g=o;g.status="fulfilled",g.value=h}},function(h){if(o.status==="pending"){var g=o;g.status="rejected",g.reason=h}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,rE(a),a}throw Ji=o,ol}}function Zi(a){try{var o=a._init;return o(a._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Ji=u,ol):u}}var Ji=null;function nE(){if(Ji===null)throw Error(r(459));var a=Ji;return Ji=null,a}function rE(a){if(a===ol||a===Df)throw Error(r(483))}var ll=null,Zs=0;function $f(a){var o=Zs;return Zs+=1,ll===null&&(ll=[]),tE(ll,a,o)}function Js(a,o){o=o.props.ref,a.ref=o!==void 0?o:null}function Lf(a,o){throw o.$$typeof===y?Error(r(525)):(a=Object.prototype.toString.call(o),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a)))}function aE(a){function o(Q,H){if(a){var J=Q.deletions;J===null?(Q.deletions=[H],Q.flags|=16):J.push(H)}}function u(Q,H){if(!a)return null;for(;H!==null;)o(Q,H),H=H.sibling;return null}function h(Q){for(var H=new Map;Q!==null;)Q.key!==null?H.set(Q.key,Q):H.set(Q.index,Q),Q=Q.sibling;return H}function g(Q,H){return Q=ua(Q,H),Q.index=0,Q.sibling=null,Q}function b(Q,H,J){return Q.index=J,a?(J=Q.alternate,J!==null?(J=J.index,J<H?(Q.flags|=67108866,H):J):(Q.flags|=67108866,H)):(Q.flags|=1048576,H)}function C(Q){return a&&Q.alternate===null&&(Q.flags|=67108866),Q}function P(Q,H,J,ue){return H===null||H.tag!==6?(H=ev(J,Q.mode,ue),H.return=Q,H):(H=g(H,J),H.return=Q,H)}function q(Q,H,J,ue){var _e=J.type;return _e===w?ie(Q,H,J.props.children,ue,J.key):H!==null&&(H.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===k&&Zi(_e)===H.type)?(H=g(H,J.props),Js(H,J),H.return=Q,H):(H=Cf(J.type,J.key,J.props,null,Q.mode,ue),Js(H,J),H.return=Q,H)}function ee(Q,H,J,ue){return H===null||H.tag!==4||H.stateNode.containerInfo!==J.containerInfo||H.stateNode.implementation!==J.implementation?(H=tv(J,Q.mode,ue),H.return=Q,H):(H=g(H,J.children||[]),H.return=Q,H)}function ie(Q,H,J,ue,_e){return H===null||H.tag!==7?(H=Yi(J,Q.mode,ue,_e),H.return=Q,H):(H=g(H,J),H.return=Q,H)}function ce(Q,H,J){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return H=ev(""+H,Q.mode,J),H.return=Q,H;if(typeof H=="object"&&H!==null){switch(H.$$typeof){case x:return J=Cf(H.type,H.key,H.props,null,Q.mode,J),Js(J,H),J.return=Q,J;case O:return H=tv(H,Q.mode,J),H.return=Q,H;case k:return H=Zi(H),ce(Q,H,J)}if(X(H)||B(H))return H=Yi(H,Q.mode,J,null),H.return=Q,H;if(typeof H.then=="function")return ce(Q,$f(H),J);if(H.$$typeof===A)return ce(Q,Rf(Q,H),J);Lf(Q,H)}return null}function te(Q,H,J,ue){var _e=H!==null?H.key:null;if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return _e!==null?null:P(Q,H,""+J,ue);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case x:return J.key===_e?q(Q,H,J,ue):null;case O:return J.key===_e?ee(Q,H,J,ue):null;case k:return J=Zi(J),te(Q,H,J,ue)}if(X(J)||B(J))return _e!==null?null:ie(Q,H,J,ue,null);if(typeof J.then=="function")return te(Q,H,$f(J),ue);if(J.$$typeof===A)return te(Q,H,Rf(Q,J),ue);Lf(Q,J)}return null}function ne(Q,H,J,ue,_e){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return Q=Q.get(J)||null,P(H,Q,""+ue,_e);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case x:return Q=Q.get(ue.key===null?J:ue.key)||null,q(H,Q,ue,_e);case O:return Q=Q.get(ue.key===null?J:ue.key)||null,ee(H,Q,ue,_e);case k:return ue=Zi(ue),ne(Q,H,J,ue,_e)}if(X(ue)||B(ue))return Q=Q.get(J)||null,ie(H,Q,ue,_e,null);if(typeof ue.then=="function")return ne(Q,H,J,$f(ue),_e);if(ue.$$typeof===A)return ne(Q,H,J,Rf(H,ue),_e);Lf(H,ue)}return null}function we(Q,H,J,ue){for(var _e=null,Fe=null,Se=H,Re=H=0,ze=null;Se!==null&&Re<J.length;Re++){Se.index>Re?(ze=Se,Se=null):ze=Se.sibling;var Ge=te(Q,Se,J[Re],ue);if(Ge===null){Se===null&&(Se=ze);break}a&&Se&&Ge.alternate===null&&o(Q,Se),H=b(Ge,H,Re),Fe===null?_e=Ge:Fe.sibling=Ge,Fe=Ge,Se=ze}if(Re===J.length)return u(Q,Se),Be&&ca(Q,Re),_e;if(Se===null){for(;Re<J.length;Re++)Se=ce(Q,J[Re],ue),Se!==null&&(H=b(Se,H,Re),Fe===null?_e=Se:Fe.sibling=Se,Fe=Se);return Be&&ca(Q,Re),_e}for(Se=h(Se);Re<J.length;Re++)ze=ne(Se,Q,Re,J[Re],ue),ze!==null&&(a&&ze.alternate!==null&&Se.delete(ze.key===null?Re:ze.key),H=b(ze,H,Re),Fe===null?_e=ze:Fe.sibling=ze,Fe=ze);return a&&Se.forEach(function(vi){return o(Q,vi)}),Be&&ca(Q,Re),_e}function Ee(Q,H,J,ue){if(J==null)throw Error(r(151));for(var _e=null,Fe=null,Se=H,Re=H=0,ze=null,Ge=J.next();Se!==null&&!Ge.done;Re++,Ge=J.next()){Se.index>Re?(ze=Se,Se=null):ze=Se.sibling;var vi=te(Q,Se,Ge.value,ue);if(vi===null){Se===null&&(Se=ze);break}a&&Se&&vi.alternate===null&&o(Q,Se),H=b(vi,H,Re),Fe===null?_e=vi:Fe.sibling=vi,Fe=vi,Se=ze}if(Ge.done)return u(Q,Se),Be&&ca(Q,Re),_e;if(Se===null){for(;!Ge.done;Re++,Ge=J.next())Ge=ce(Q,Ge.value,ue),Ge!==null&&(H=b(Ge,H,Re),Fe===null?_e=Ge:Fe.sibling=Ge,Fe=Ge);return Be&&ca(Q,Re),_e}for(Se=h(Se);!Ge.done;Re++,Ge=J.next())Ge=ne(Se,Q,Re,Ge.value,ue),Ge!==null&&(a&&Ge.alternate!==null&&Se.delete(Ge.key===null?Re:Ge.key),H=b(Ge,H,Re),Fe===null?_e=Ge:Fe.sibling=Ge,Fe=Ge);return a&&Se.forEach(function(gq){return o(Q,gq)}),Be&&ca(Q,Re),_e}function it(Q,H,J,ue){if(typeof J=="object"&&J!==null&&J.type===w&&J.key===null&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case x:e:{for(var _e=J.key;H!==null;){if(H.key===_e){if(_e=J.type,_e===w){if(H.tag===7){u(Q,H.sibling),ue=g(H,J.props.children),ue.return=Q,Q=ue;break e}}else if(H.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===k&&Zi(_e)===H.type){u(Q,H.sibling),ue=g(H,J.props),Js(ue,J),ue.return=Q,Q=ue;break e}u(Q,H);break}else o(Q,H);H=H.sibling}J.type===w?(ue=Yi(J.props.children,Q.mode,ue,J.key),ue.return=Q,Q=ue):(ue=Cf(J.type,J.key,J.props,null,Q.mode,ue),Js(ue,J),ue.return=Q,Q=ue)}return C(Q);case O:e:{for(_e=J.key;H!==null;){if(H.key===_e)if(H.tag===4&&H.stateNode.containerInfo===J.containerInfo&&H.stateNode.implementation===J.implementation){u(Q,H.sibling),ue=g(H,J.children||[]),ue.return=Q,Q=ue;break e}else{u(Q,H);break}else o(Q,H);H=H.sibling}ue=tv(J,Q.mode,ue),ue.return=Q,Q=ue}return C(Q);case k:return J=Zi(J),it(Q,H,J,ue)}if(X(J))return we(Q,H,J,ue);if(B(J)){if(_e=B(J),typeof _e!="function")throw Error(r(150));return J=_e.call(J),Ee(Q,H,J,ue)}if(typeof J.then=="function")return it(Q,H,$f(J),ue);if(J.$$typeof===A)return it(Q,H,Rf(Q,J),ue);Lf(Q,J)}return typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint"?(J=""+J,H!==null&&H.tag===6?(u(Q,H.sibling),ue=g(H,J),ue.return=Q,Q=ue):(u(Q,H),ue=ev(J,Q.mode,ue),ue.return=Q,Q=ue),C(Q)):u(Q,H)}return function(Q,H,J,ue){try{Zs=0;var _e=it(Q,H,J,ue);return ll=null,_e}catch(Se){if(Se===ol||Se===Df)throw Se;var Fe=kn(29,Se,null,Q.mode);return Fe.lanes=ue,Fe.return=Q,Fe}finally{}}}var eo=aE(!0),iE=aE(!1),Ja=!1;function hv(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pv(a,o){a=a.updateQueue,o.updateQueue===a&&(o.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function ei(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function ti(a,o,u){var h=a.updateQueue;if(h===null)return null;if(h=h.shared,(Xe&2)!==0){var g=h.pending;return g===null?o.next=o:(o.next=g.next,g.next=o),h.pending=o,o=jf(a),U_(a,null,u),o}return Tf(a,h,o,u),jf(a)}function eu(a,o,u){if(o=o.updateQueue,o!==null&&(o=o.shared,(u&4194048)!==0)){var h=o.lanes;h&=a.pendingLanes,u|=h,o.lanes=u,xn(a,u)}}function mv(a,o){var u=a.updateQueue,h=a.alternate;if(h!==null&&(h=h.updateQueue,u===h)){var g=null,b=null;if(u=u.firstBaseUpdate,u!==null){do{var C={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};b===null?g=b=C:b=b.next=C,u=u.next}while(u!==null);b===null?g=b=o:b=b.next=o}else g=b=o;u={baseState:h.baseState,firstBaseUpdate:g,lastBaseUpdate:b,shared:h.shared,callbacks:h.callbacks},a.updateQueue=u;return}a=u.lastBaseUpdate,a===null?u.firstBaseUpdate=o:a.next=o,u.lastBaseUpdate=o}var vv=!1;function tu(){if(vv){var a=il;if(a!==null)throw a}}function nu(a,o,u,h){vv=!1;var g=a.updateQueue;Ja=!1;var b=g.firstBaseUpdate,C=g.lastBaseUpdate,P=g.shared.pending;if(P!==null){g.shared.pending=null;var q=P,ee=q.next;q.next=null,C===null?b=ee:C.next=ee,C=q;var ie=a.alternate;ie!==null&&(ie=ie.updateQueue,P=ie.lastBaseUpdate,P!==C&&(P===null?ie.firstBaseUpdate=ee:P.next=ee,ie.lastBaseUpdate=q))}if(b!==null){var ce=g.baseState;C=0,ie=ee=q=null,P=b;do{var te=P.lane&-536870913,ne=te!==P.lane;if(ne?(Ie&te)===te:(h&te)===te){te!==0&&te===al&&(vv=!0),ie!==null&&(ie=ie.next={lane:0,tag:P.tag,payload:P.payload,callback:null,next:null});e:{var we=a,Ee=P;te=o;var it=u;switch(Ee.tag){case 1:if(we=Ee.payload,typeof we=="function"){ce=we.call(it,ce,te);break e}ce=we;break e;case 3:we.flags=we.flags&-65537|128;case 0:if(we=Ee.payload,te=typeof we=="function"?we.call(it,ce,te):we,te==null)break e;ce=p({},ce,te);break e;case 2:Ja=!0}}te=P.callback,te!==null&&(a.flags|=64,ne&&(a.flags|=8192),ne=g.callbacks,ne===null?g.callbacks=[te]:ne.push(te))}else ne={lane:te,tag:P.tag,payload:P.payload,callback:P.callback,next:null},ie===null?(ee=ie=ne,q=ce):ie=ie.next=ne,C|=te;if(P=P.next,P===null){if(P=g.shared.pending,P===null)break;ne=P,P=ne.next,ne.next=null,g.lastBaseUpdate=ne,g.shared.pending=null}}while(!0);ie===null&&(q=ce),g.baseState=q,g.firstBaseUpdate=ee,g.lastBaseUpdate=ie,b===null&&(g.shared.lanes=0),oi|=C,a.lanes=C,a.memoizedState=ce}}function oE(a,o){if(typeof a!="function")throw Error(r(191,a));a.call(o)}function lE(a,o){var u=a.callbacks;if(u!==null)for(a.callbacks=null,a=0;a<u.length;a++)oE(u[a],o)}var sl=$(null),If=$(0);function sE(a,o){a=wa,Z(If,a),Z(sl,o),wa=a|o.baseLanes}function gv(){Z(If,wa),Z(sl,sl.current)}function yv(){wa=If.current,F(sl),F(If)}var $n=$(null),nr=null;function ni(a){var o=a.alternate;Z(Et,Et.current&1),Z($n,a),nr===null&&(o===null||sl.current!==null||o.memoizedState!==null)&&(nr=a)}function bv(a){Z(Et,Et.current),Z($n,a),nr===null&&(nr=a)}function uE(a){a.tag===22?(Z(Et,Et.current),Z($n,a),nr===null&&(nr=a)):ri()}function ri(){Z(Et,Et.current),Z($n,$n.current)}function Ln(a){F($n),nr===a&&(nr=null),F(Et)}var Et=$(0);function zf(a){for(var o=a;o!==null;){if(o.tag===13){var u=o.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||Eg(u)||Ag(u)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var ha=0,Ce=null,rt=null,Mt=null,Bf=!1,ul=!1,to=!1,qf=0,ru=0,cl=null,lB=0;function St(){throw Error(r(321))}function xv(a,o){if(o===null)return!1;for(var u=0;u<o.length&&u<a.length;u++)if(!Dn(a[u],o[u]))return!1;return!0}function wv(a,o,u,h,g,b){return ha=b,Ce=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,D.H=a===null||a.memoizedState===null?VE:$v,to=!1,b=u(h,g),to=!1,ul&&(b=fE(o,u,h,g)),cE(a),b}function cE(a){D.H=ou;var o=rt!==null&&rt.next!==null;if(ha=0,Mt=rt=Ce=null,Bf=!1,ru=0,cl=null,o)throw Error(r(300));a===null||Nt||(a=a.dependencies,a!==null&&Nf(a)&&(Nt=!0))}function fE(a,o,u,h){Ce=a;var g=0;do{if(ul&&(cl=null),ru=0,ul=!1,25<=g)throw Error(r(301));if(g+=1,Mt=rt=null,a.updateQueue!=null){var b=a.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}D.H=YE,b=o(u,h)}while(ul);return b}function sB(){var a=D.H,o=a.useState()[0];return o=typeof o.then=="function"?au(o):o,a=a.useState()[0],(rt!==null?rt.memoizedState:null)!==a&&(Ce.flags|=1024),o}function Sv(){var a=qf!==0;return qf=0,a}function Ov(a,o,u){o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~u}function _v(a){if(Bf){for(a=a.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}Bf=!1}ha=0,Mt=rt=Ce=null,ul=!1,ru=qf=0,cl=null}function mn(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mt===null?Ce.memoizedState=Mt=a:Mt=Mt.next=a,Mt}function At(){if(rt===null){var a=Ce.alternate;a=a!==null?a.memoizedState:null}else a=rt.next;var o=Mt===null?Ce.memoizedState:Mt.next;if(o!==null)Mt=o,rt=a;else{if(a===null)throw Ce.alternate===null?Error(r(467)):Error(r(310));rt=a,a={memoizedState:rt.memoizedState,baseState:rt.baseState,baseQueue:rt.baseQueue,queue:rt.queue,next:null},Mt===null?Ce.memoizedState=Mt=a:Mt=Mt.next=a}return Mt}function Uf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function au(a){var o=ru;return ru+=1,cl===null&&(cl=[]),a=tE(cl,a,o),o=Ce,(Mt===null?o.memoizedState:Mt.next)===null&&(o=o.alternate,D.H=o===null||o.memoizedState===null?VE:$v),a}function Hf(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return au(a);if(a.$$typeof===A)return en(a)}throw Error(r(438,String(a)))}function Ev(a){var o=null,u=Ce.updateQueue;if(u!==null&&(o=u.memoCache),o==null){var h=Ce.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(o={data:h.data.map(function(g){return g.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),u===null&&(u=Uf(),Ce.updateQueue=u),u.memoCache=o,u=o.data[o.index],u===void 0)for(u=o.data[o.index]=Array(a),h=0;h<a;h++)u[h]=V;return o.index++,u}function pa(a,o){return typeof o=="function"?o(a):o}function Ff(a){var o=At();return Av(o,rt,a)}function Av(a,o,u){var h=a.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=u;var g=a.baseQueue,b=h.pending;if(b!==null){if(g!==null){var C=g.next;g.next=b.next,b.next=C}o.baseQueue=g=b,h.pending=null}if(b=a.baseState,g===null)a.memoizedState=b;else{o=g.next;var P=C=null,q=null,ee=o,ie=!1;do{var ce=ee.lane&-536870913;if(ce!==ee.lane?(Ie&ce)===ce:(ha&ce)===ce){var te=ee.revertLane;if(te===0)q!==null&&(q=q.next={lane:0,revertLane:0,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),ce===al&&(ie=!0);else if((ha&te)===te){ee=ee.next,te===al&&(ie=!0);continue}else ce={lane:0,revertLane:ee.revertLane,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},q===null?(P=q=ce,C=b):q=q.next=ce,Ce.lanes|=te,oi|=te;ce=ee.action,to&&u(b,ce),b=ee.hasEagerState?ee.eagerState:u(b,ce)}else te={lane:ce,revertLane:ee.revertLane,gesture:ee.gesture,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},q===null?(P=q=te,C=b):q=q.next=te,Ce.lanes|=ce,oi|=ce;ee=ee.next}while(ee!==null&&ee!==o);if(q===null?C=b:q.next=P,!Dn(b,a.memoizedState)&&(Nt=!0,ie&&(u=il,u!==null)))throw u;a.memoizedState=b,a.baseState=C,a.baseQueue=q,h.lastRenderedState=b}return g===null&&(h.lanes=0),[a.memoizedState,h.dispatch]}function Tv(a){var o=At(),u=o.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=a;var h=u.dispatch,g=u.pending,b=o.memoizedState;if(g!==null){u.pending=null;var C=g=g.next;do b=a(b,C.action),C=C.next;while(C!==g);Dn(b,o.memoizedState)||(Nt=!0),o.memoizedState=b,o.baseQueue===null&&(o.baseState=b),u.lastRenderedState=b}return[b,h]}function dE(a,o,u){var h=Ce,g=At(),b=Be;if(b){if(u===void 0)throw Error(r(407));u=u()}else u=o();var C=!Dn((rt||g).memoizedState,u);if(C&&(g.memoizedState=u,Nt=!0),g=g.queue,Mv(mE.bind(null,h,g,a),[a]),g.getSnapshot!==o||C||Mt!==null&&Mt.memoizedState.tag&1){if(h.flags|=2048,fl(9,{destroy:void 0},pE.bind(null,h,g,u,o),null),st===null)throw Error(r(349));b||(ha&127)!==0||hE(h,o,u)}return u}function hE(a,o,u){a.flags|=16384,a={getSnapshot:o,value:u},o=Ce.updateQueue,o===null?(o=Uf(),Ce.updateQueue=o,o.stores=[a]):(u=o.stores,u===null?o.stores=[a]:u.push(a))}function pE(a,o,u,h){o.value=u,o.getSnapshot=h,vE(o)&&gE(a)}function mE(a,o,u){return u(function(){vE(o)&&gE(a)})}function vE(a){var o=a.getSnapshot;a=a.value;try{var u=o();return!Dn(a,u)}catch{return!0}}function gE(a){var o=Vi(a,2);o!==null&&jn(o,a,2)}function jv(a){var o=mn();if(typeof a=="function"){var u=a;if(a=u(),to){gr(!0);try{u()}finally{gr(!1)}}}return o.memoizedState=o.baseState=a,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:a},o}function yE(a,o,u,h){return a.baseState=u,Av(a,rt,typeof h=="function"?h:pa)}function uB(a,o,u,h,g){if(Yf(a))throw Error(r(485));if(a=o.action,a!==null){var b={payload:g,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){b.listeners.push(C)}};D.T!==null?u(!0):b.isTransition=!1,h(b),u=o.pending,u===null?(b.next=o.pending=b,bE(o,b)):(b.next=u.next,o.pending=u.next=b)}}function bE(a,o){var u=o.action,h=o.payload,g=a.state;if(o.isTransition){var b=D.T,C={};D.T=C;try{var P=u(g,h),q=D.S;q!==null&&q(C,P),xE(a,o,P)}catch(ee){Cv(a,o,ee)}finally{b!==null&&C.types!==null&&(b.types=C.types),D.T=b}}else try{b=u(g,h),xE(a,o,b)}catch(ee){Cv(a,o,ee)}}function xE(a,o,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(h){wE(a,o,h)},function(h){return Cv(a,o,h)}):wE(a,o,u)}function wE(a,o,u){o.status="fulfilled",o.value=u,SE(o),a.state=u,o=a.pending,o!==null&&(u=o.next,u===o?a.pending=null:(u=u.next,o.next=u,bE(a,u)))}function Cv(a,o,u){var h=a.pending;if(a.pending=null,h!==null){h=h.next;do o.status="rejected",o.reason=u,SE(o),o=o.next;while(o!==h)}a.action=null}function SE(a){a=a.listeners;for(var o=0;o<a.length;o++)(0,a[o])()}function OE(a,o){return o}function _E(a,o){if(Be){var u=st.formState;if(u!==null){e:{var h=Ce;if(Be){if(dt){t:{for(var g=dt,b=tr;g.nodeType!==8;){if(!b){g=null;break t}if(g=rr(g.nextSibling),g===null){g=null;break t}}b=g.data,g=b==="F!"||b==="F"?g:null}if(g){dt=rr(g.nextSibling),h=g.data==="F!";break e}}Qa(h)}h=!1}h&&(o=u[0])}}return u=mn(),u.memoizedState=u.baseState=o,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:OE,lastRenderedState:o},u.queue=h,u=HE.bind(null,Ce,h),h.dispatch=u,h=jv(!1),b=kv.bind(null,Ce,!1,h.queue),h=mn(),g={state:o,dispatch:null,action:a,pending:null},h.queue=g,u=uB.bind(null,Ce,g,b,u),g.dispatch=u,h.memoizedState=a,[o,u,!1]}function EE(a){var o=At();return AE(o,rt,a)}function AE(a,o,u){if(o=Av(a,o,OE)[0],a=Ff(pa)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var h=au(o)}catch(C){throw C===ol?Df:C}else h=o;o=At();var g=o.queue,b=g.dispatch;return u!==o.memoizedState&&(Ce.flags|=2048,fl(9,{destroy:void 0},cB.bind(null,g,u),null)),[h,b,a]}function cB(a,o){a.action=o}function TE(a){var o=At(),u=rt;if(u!==null)return AE(o,u,a);At(),o=o.memoizedState,u=At();var h=u.queue.dispatch;return u.memoizedState=a,[o,h,!1]}function fl(a,o,u,h){return a={tag:a,create:u,deps:h,inst:o,next:null},o=Ce.updateQueue,o===null&&(o=Uf(),Ce.updateQueue=o),u=o.lastEffect,u===null?o.lastEffect=a.next=a:(h=u.next,u.next=a,a.next=h,o.lastEffect=a),a}function jE(){return At().memoizedState}function Gf(a,o,u,h){var g=mn();Ce.flags|=a,g.memoizedState=fl(1|o,{destroy:void 0},u,h===void 0?null:h)}function Vf(a,o,u,h){var g=At();h=h===void 0?null:h;var b=g.memoizedState.inst;rt!==null&&h!==null&&xv(h,rt.memoizedState.deps)?g.memoizedState=fl(o,b,u,h):(Ce.flags|=a,g.memoizedState=fl(1|o,b,u,h))}function CE(a,o){Gf(8390656,8,a,o)}function Mv(a,o){Vf(2048,8,a,o)}function fB(a){Ce.flags|=4;var o=Ce.updateQueue;if(o===null)o=Uf(),Ce.updateQueue=o,o.events=[a];else{var u=o.events;u===null?o.events=[a]:u.push(a)}}function ME(a){var o=At().memoizedState;return fB({ref:o,nextImpl:a}),function(){if((Xe&2)!==0)throw Error(r(440));return o.impl.apply(void 0,arguments)}}function NE(a,o){return Vf(4,2,a,o)}function RE(a,o){return Vf(4,4,a,o)}function PE(a,o){if(typeof o=="function"){a=a();var u=o(a);return function(){typeof u=="function"?u():o(null)}}if(o!=null)return a=a(),o.current=a,function(){o.current=null}}function DE(a,o,u){u=u!=null?u.concat([a]):null,Vf(4,4,PE.bind(null,o,a),u)}function Nv(){}function kE(a,o){var u=At();o=o===void 0?null:o;var h=u.memoizedState;return o!==null&&xv(o,h[1])?h[0]:(u.memoizedState=[a,o],a)}function $E(a,o){var u=At();o=o===void 0?null:o;var h=u.memoizedState;if(o!==null&&xv(o,h[1]))return h[0];if(h=a(),to){gr(!0);try{a()}finally{gr(!1)}}return u.memoizedState=[h,o],h}function Rv(a,o,u){return u===void 0||(ha&1073741824)!==0&&(Ie&261930)===0?a.memoizedState=o:(a.memoizedState=u,a=LA(),Ce.lanes|=a,oi|=a,u)}function LE(a,o,u,h){return Dn(u,o)?u:sl.current!==null?(a=Rv(a,u,h),Dn(a,o)||(Nt=!0),a):(ha&42)===0||(ha&1073741824)!==0&&(Ie&261930)===0?(Nt=!0,a.memoizedState=u):(a=LA(),Ce.lanes|=a,oi|=a,o)}function IE(a,o,u,h,g){var b=U.p;U.p=b!==0&&8>b?b:8;var C=D.T,P={};D.T=P,kv(a,!1,o,u);try{var q=g(),ee=D.S;if(ee!==null&&ee(P,q),q!==null&&typeof q=="object"&&typeof q.then=="function"){var ie=oB(q,h);iu(a,o,ie,Bn(a))}else iu(a,o,h,Bn(a))}catch(ce){iu(a,o,{then:function(){},status:"rejected",reason:ce},Bn())}finally{U.p=b,C!==null&&P.types!==null&&(C.types=P.types),D.T=C}}function dB(){}function Pv(a,o,u,h){if(a.tag!==5)throw Error(r(476));var g=zE(a).queue;IE(a,g,o,Y,u===null?dB:function(){return BE(a),u(h)})}function zE(a){var o=a.memoizedState;if(o!==null)return o;o={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:Y},next:null};var u={};return o.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:u},next:null},a.memoizedState=o,a=a.alternate,a!==null&&(a.memoizedState=o),o}function BE(a){var o=zE(a);o.next===null&&(o=a.alternate.memoizedState),iu(a,o.next.queue,{},Bn())}function Dv(){return en(Su)}function qE(){return At().memoizedState}function UE(){return At().memoizedState}function hB(a){for(var o=a.return;o!==null;){switch(o.tag){case 24:case 3:var u=Bn();a=ei(u);var h=ti(o,a,u);h!==null&&(jn(h,o,u),eu(h,o,u)),o={cache:uv()},a.payload=o;return}o=o.return}}function pB(a,o,u){var h=Bn();u={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Yf(a)?FE(o,u):(u=Zm(a,o,u,h),u!==null&&(jn(u,a,h),GE(u,o,h)))}function HE(a,o,u){var h=Bn();iu(a,o,u,h)}function iu(a,o,u,h){var g={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Yf(a))FE(o,g);else{var b=a.alternate;if(a.lanes===0&&(b===null||b.lanes===0)&&(b=o.lastRenderedReducer,b!==null))try{var C=o.lastRenderedState,P=b(C,u);if(g.hasEagerState=!0,g.eagerState=P,Dn(P,C))return Tf(a,o,g,0),st===null&&Af(),!1}catch{}finally{}if(u=Zm(a,o,g,h),u!==null)return jn(u,a,h),GE(u,o,h),!0}return!1}function kv(a,o,u,h){if(h={lane:2,revertLane:hg(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},Yf(a)){if(o)throw Error(r(479))}else o=Zm(a,u,h,2),o!==null&&jn(o,a,2)}function Yf(a){var o=a.alternate;return a===Ce||o!==null&&o===Ce}function FE(a,o){ul=Bf=!0;var u=a.pending;u===null?o.next=o:(o.next=u.next,u.next=o),a.pending=o}function GE(a,o,u){if((u&4194048)!==0){var h=o.lanes;h&=a.pendingLanes,u|=h,o.lanes=u,xn(a,u)}}var ou={readContext:en,use:Hf,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useLayoutEffect:St,useInsertionEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useSyncExternalStore:St,useId:St,useHostTransitionStatus:St,useFormState:St,useActionState:St,useOptimistic:St,useMemoCache:St,useCacheRefresh:St};ou.useEffectEvent=St;var VE={readContext:en,use:Hf,useCallback:function(a,o){return mn().memoizedState=[a,o===void 0?null:o],a},useContext:en,useEffect:CE,useImperativeHandle:function(a,o,u){u=u!=null?u.concat([a]):null,Gf(4194308,4,PE.bind(null,o,a),u)},useLayoutEffect:function(a,o){return Gf(4194308,4,a,o)},useInsertionEffect:function(a,o){Gf(4,2,a,o)},useMemo:function(a,o){var u=mn();o=o===void 0?null:o;var h=a();if(to){gr(!0);try{a()}finally{gr(!1)}}return u.memoizedState=[h,o],h},useReducer:function(a,o,u){var h=mn();if(u!==void 0){var g=u(o);if(to){gr(!0);try{u(o)}finally{gr(!1)}}}else g=o;return h.memoizedState=h.baseState=g,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:g},h.queue=a,a=a.dispatch=pB.bind(null,Ce,a),[h.memoizedState,a]},useRef:function(a){var o=mn();return a={current:a},o.memoizedState=a},useState:function(a){a=jv(a);var o=a.queue,u=HE.bind(null,Ce,o);return o.dispatch=u,[a.memoizedState,u]},useDebugValue:Nv,useDeferredValue:function(a,o){var u=mn();return Rv(u,a,o)},useTransition:function(){var a=jv(!1);return a=IE.bind(null,Ce,a.queue,!0,!1),mn().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,o,u){var h=Ce,g=mn();if(Be){if(u===void 0)throw Error(r(407));u=u()}else{if(u=o(),st===null)throw Error(r(349));(Ie&127)!==0||hE(h,o,u)}g.memoizedState=u;var b={value:u,getSnapshot:o};return g.queue=b,CE(mE.bind(null,h,b,a),[a]),h.flags|=2048,fl(9,{destroy:void 0},pE.bind(null,h,b,u,o),null),u},useId:function(){var a=mn(),o=st.identifierPrefix;if(Be){var u=Br,h=zr;u=(h&~(1<<32-sn(h)-1)).toString(32)+u,o="_"+o+"R_"+u,u=qf++,0<u&&(o+="H"+u.toString(32)),o+="_"}else u=lB++,o="_"+o+"r_"+u.toString(32)+"_";return a.memoizedState=o},useHostTransitionStatus:Dv,useFormState:_E,useActionState:_E,useOptimistic:function(a){var o=mn();o.memoizedState=o.baseState=a;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=u,o=kv.bind(null,Ce,!0,u),u.dispatch=o,[a,o]},useMemoCache:Ev,useCacheRefresh:function(){return mn().memoizedState=hB.bind(null,Ce)},useEffectEvent:function(a){var o=mn(),u={impl:a};return o.memoizedState=u,function(){if((Xe&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},$v={readContext:en,use:Hf,useCallback:kE,useContext:en,useEffect:Mv,useImperativeHandle:DE,useInsertionEffect:NE,useLayoutEffect:RE,useMemo:$E,useReducer:Ff,useRef:jE,useState:function(){return Ff(pa)},useDebugValue:Nv,useDeferredValue:function(a,o){var u=At();return LE(u,rt.memoizedState,a,o)},useTransition:function(){var a=Ff(pa)[0],o=At().memoizedState;return[typeof a=="boolean"?a:au(a),o]},useSyncExternalStore:dE,useId:qE,useHostTransitionStatus:Dv,useFormState:EE,useActionState:EE,useOptimistic:function(a,o){var u=At();return yE(u,rt,a,o)},useMemoCache:Ev,useCacheRefresh:UE};$v.useEffectEvent=ME;var YE={readContext:en,use:Hf,useCallback:kE,useContext:en,useEffect:Mv,useImperativeHandle:DE,useInsertionEffect:NE,useLayoutEffect:RE,useMemo:$E,useReducer:Tv,useRef:jE,useState:function(){return Tv(pa)},useDebugValue:Nv,useDeferredValue:function(a,o){var u=At();return rt===null?Rv(u,a,o):LE(u,rt.memoizedState,a,o)},useTransition:function(){var a=Tv(pa)[0],o=At().memoizedState;return[typeof a=="boolean"?a:au(a),o]},useSyncExternalStore:dE,useId:qE,useHostTransitionStatus:Dv,useFormState:TE,useActionState:TE,useOptimistic:function(a,o){var u=At();return rt!==null?yE(u,rt,a,o):(u.baseState=a,[a,u.queue.dispatch])},useMemoCache:Ev,useCacheRefresh:UE};YE.useEffectEvent=ME;function Lv(a,o,u,h){o=a.memoizedState,u=u(h,o),u=u==null?o:p({},o,u),a.memoizedState=u,a.lanes===0&&(a.updateQueue.baseState=u)}var Iv={enqueueSetState:function(a,o,u){a=a._reactInternals;var h=Bn(),g=ei(h);g.payload=o,u!=null&&(g.callback=u),o=ti(a,g,h),o!==null&&(jn(o,a,h),eu(o,a,h))},enqueueReplaceState:function(a,o,u){a=a._reactInternals;var h=Bn(),g=ei(h);g.tag=1,g.payload=o,u!=null&&(g.callback=u),o=ti(a,g,h),o!==null&&(jn(o,a,h),eu(o,a,h))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var u=Bn(),h=ei(u);h.tag=2,o!=null&&(h.callback=o),o=ti(a,h,u),o!==null&&(jn(o,a,u),eu(o,a,u))}};function WE(a,o,u,h,g,b,C){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(h,b,C):o.prototype&&o.prototype.isPureReactComponent?!Vs(u,h)||!Vs(g,b):!0}function KE(a,o,u,h){a=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(u,h),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(u,h),o.state!==a&&Iv.enqueueReplaceState(o,o.state,null)}function no(a,o){var u=o;if("ref"in o){u={};for(var h in o)h!=="ref"&&(u[h]=o[h])}if(a=a.defaultProps){u===o&&(u=p({},u));for(var g in a)u[g]===void 0&&(u[g]=a[g])}return u}function XE(a){Ef(a)}function QE(a){console.error(a)}function ZE(a){Ef(a)}function Wf(a,o){try{var u=a.onUncaughtError;u(o.value,{componentStack:o.stack})}catch(h){setTimeout(function(){throw h})}}function JE(a,o,u){try{var h=a.onCaughtError;h(u.value,{componentStack:u.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function zv(a,o,u){return u=ei(u),u.tag=3,u.payload={element:null},u.callback=function(){Wf(a,o)},u}function eA(a){return a=ei(a),a.tag=3,a}function tA(a,o,u,h){var g=u.type.getDerivedStateFromError;if(typeof g=="function"){var b=h.value;a.payload=function(){return g(b)},a.callback=function(){JE(o,u,h)}}var C=u.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(a.callback=function(){JE(o,u,h),typeof g!="function"&&(li===null?li=new Set([this]):li.add(this));var P=h.stack;this.componentDidCatch(h.value,{componentStack:P!==null?P:""})})}function mB(a,o,u,h,g){if(u.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(o=u.alternate,o!==null&&rl(o,u,g,!0),u=$n.current,u!==null){switch(u.tag){case 31:case 13:return nr===null?od():u.alternate===null&&Ot===0&&(Ot=3),u.flags&=-257,u.flags|=65536,u.lanes=g,h===kf?u.flags|=16384:(o=u.updateQueue,o===null?u.updateQueue=new Set([h]):o.add(h),cg(a,h,g)),!1;case 22:return u.flags|=65536,h===kf?u.flags|=16384:(o=u.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([h])},u.updateQueue=o):(u=o.retryQueue,u===null?o.retryQueue=new Set([h]):u.add(h)),cg(a,h,g)),!1}throw Error(r(435,u.tag))}return cg(a,h,g),od(),!1}if(Be)return o=$n.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=g,h!==av&&(a=Error(r(422),{cause:h}),Ks(Zn(a,u)))):(h!==av&&(o=Error(r(423),{cause:h}),Ks(Zn(o,u))),a=a.current.alternate,a.flags|=65536,g&=-g,a.lanes|=g,h=Zn(h,u),g=zv(a.stateNode,h,g),mv(a,g),Ot!==4&&(Ot=2)),!1;var b=Error(r(520),{cause:h});if(b=Zn(b,u),pu===null?pu=[b]:pu.push(b),Ot!==4&&(Ot=2),o===null)return!0;h=Zn(h,u),u=o;do{switch(u.tag){case 3:return u.flags|=65536,a=g&-g,u.lanes|=a,a=zv(u.stateNode,h,a),mv(u,a),!1;case 1:if(o=u.type,b=u.stateNode,(u.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(li===null||!li.has(b))))return u.flags|=65536,g&=-g,u.lanes|=g,g=eA(g),tA(g,a,u,h),mv(u,g),!1}u=u.return}while(u!==null);return!1}var Bv=Error(r(461)),Nt=!1;function tn(a,o,u,h){o.child=a===null?iE(o,null,u,h):eo(o,a.child,u,h)}function nA(a,o,u,h,g){u=u.render;var b=o.ref;if("ref"in h){var C={};for(var P in h)P!=="ref"&&(C[P]=h[P])}else C=h;return Xi(o),h=wv(a,o,u,C,b,g),P=Sv(),a!==null&&!Nt?(Ov(a,o,g),ma(a,o,g)):(Be&&P&&nv(o),o.flags|=1,tn(a,o,h,g),o.child)}function rA(a,o,u,h,g){if(a===null){var b=u.type;return typeof b=="function"&&!Jm(b)&&b.defaultProps===void 0&&u.compare===null?(o.tag=15,o.type=b,aA(a,o,b,h,g)):(a=Cf(u.type,null,h,o,o.mode,g),a.ref=o.ref,a.return=o,o.child=a)}if(b=a.child,!Wv(a,g)){var C=b.memoizedProps;if(u=u.compare,u=u!==null?u:Vs,u(C,h)&&a.ref===o.ref)return ma(a,o,g)}return o.flags|=1,a=ua(b,h),a.ref=o.ref,a.return=o,o.child=a}function aA(a,o,u,h,g){if(a!==null){var b=a.memoizedProps;if(Vs(b,h)&&a.ref===o.ref)if(Nt=!1,o.pendingProps=h=b,Wv(a,g))(a.flags&131072)!==0&&(Nt=!0);else return o.lanes=a.lanes,ma(a,o,g)}return qv(a,o,u,h,g)}function iA(a,o,u,h){var g=h.children,b=a!==null?a.memoizedState:null;if(a===null&&o.stateNode===null&&(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.mode==="hidden"){if((o.flags&128)!==0){if(b=b!==null?b.baseLanes|u:u,a!==null){for(h=o.child=a.child,g=0;h!==null;)g=g|h.lanes|h.childLanes,h=h.sibling;h=g&~b}else h=0,o.child=null;return oA(a,o,b,u,h)}if((u&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},a!==null&&Pf(o,b!==null?b.cachePool:null),b!==null?sE(o,b):gv(),uE(o);else return h=o.lanes=536870912,oA(a,o,b!==null?b.baseLanes|u:u,u,h)}else b!==null?(Pf(o,b.cachePool),sE(o,b),ri(),o.memoizedState=null):(a!==null&&Pf(o,null),gv(),ri());return tn(a,o,g,u),o.child}function lu(a,o){return a!==null&&a.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function oA(a,o,u,h,g){var b=fv();return b=b===null?null:{parent:Ct._currentValue,pool:b},o.memoizedState={baseLanes:u,cachePool:b},a!==null&&Pf(o,null),gv(),uE(o),a!==null&&rl(a,o,h,!0),o.childLanes=g,null}function Kf(a,o){return o=Qf({mode:o.mode,children:o.children},a.mode),o.ref=a.ref,a.child=o,o.return=a,o}function lA(a,o,u){return eo(o,a.child,null,u),a=Kf(o,o.pendingProps),a.flags|=2,Ln(o),o.memoizedState=null,a}function vB(a,o,u){var h=o.pendingProps,g=(o.flags&128)!==0;if(o.flags&=-129,a===null){if(Be){if(h.mode==="hidden")return a=Kf(o,h),o.lanes=536870912,lu(null,a);if(bv(o),(a=dt)?(a=bT(a,tr),a=a!==null&&a.data==="&"?a:null,a!==null&&(o.memoizedState={dehydrated:a,treeContext:Ka!==null?{id:zr,overflow:Br}:null,retryLane:536870912,hydrationErrors:null},u=F_(a),u.return=o,o.child=u,Jt=o,dt=null)):a=null,a===null)throw Qa(o);return o.lanes=536870912,null}return Kf(o,h)}var b=a.memoizedState;if(b!==null){var C=b.dehydrated;if(bv(o),g)if(o.flags&256)o.flags&=-257,o=lA(a,o,u);else if(o.memoizedState!==null)o.child=a.child,o.flags|=128,o=null;else throw Error(r(558));else if(Nt||rl(a,o,u,!1),g=(u&a.childLanes)!==0,Nt||g){if(h=st,h!==null&&(C=wn(h,u),C!==0&&C!==b.retryLane))throw b.retryLane=C,Vi(a,C),jn(h,a,C),Bv;od(),o=lA(a,o,u)}else a=b.treeContext,dt=rr(C.nextSibling),Jt=o,Be=!0,Xa=null,tr=!1,a!==null&&Y_(o,a),o=Kf(o,h),o.flags|=4096;return o}return a=ua(a.child,{mode:h.mode,children:h.children}),a.ref=o.ref,o.child=a,a.return=o,a}function Xf(a,o){var u=o.ref;if(u===null)a!==null&&a.ref!==null&&(o.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(a===null||a.ref!==u)&&(o.flags|=4194816)}}function qv(a,o,u,h,g){return Xi(o),u=wv(a,o,u,h,void 0,g),h=Sv(),a!==null&&!Nt?(Ov(a,o,g),ma(a,o,g)):(Be&&h&&nv(o),o.flags|=1,tn(a,o,u,g),o.child)}function sA(a,o,u,h,g,b){return Xi(o),o.updateQueue=null,u=fE(o,h,u,g),cE(a),h=Sv(),a!==null&&!Nt?(Ov(a,o,b),ma(a,o,b)):(Be&&h&&nv(o),o.flags|=1,tn(a,o,u,b),o.child)}function uA(a,o,u,h,g){if(Xi(o),o.stateNode===null){var b=Jo,C=u.contextType;typeof C=="object"&&C!==null&&(b=en(C)),b=new u(h,b),o.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Iv,o.stateNode=b,b._reactInternals=o,b=o.stateNode,b.props=h,b.state=o.memoizedState,b.refs={},hv(o),C=u.contextType,b.context=typeof C=="object"&&C!==null?en(C):Jo,b.state=o.memoizedState,C=u.getDerivedStateFromProps,typeof C=="function"&&(Lv(o,u,C,h),b.state=o.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(C=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),C!==b.state&&Iv.enqueueReplaceState(b,b.state,null),nu(o,h,b,g),tu(),b.state=o.memoizedState),typeof b.componentDidMount=="function"&&(o.flags|=4194308),h=!0}else if(a===null){b=o.stateNode;var P=o.memoizedProps,q=no(u,P);b.props=q;var ee=b.context,ie=u.contextType;C=Jo,typeof ie=="object"&&ie!==null&&(C=en(ie));var ce=u.getDerivedStateFromProps;ie=typeof ce=="function"||typeof b.getSnapshotBeforeUpdate=="function",P=o.pendingProps!==P,ie||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(P||ee!==C)&&KE(o,b,h,C),Ja=!1;var te=o.memoizedState;b.state=te,nu(o,h,b,g),tu(),ee=o.memoizedState,P||te!==ee||Ja?(typeof ce=="function"&&(Lv(o,u,ce,h),ee=o.memoizedState),(q=Ja||WE(o,u,q,h,te,ee,C))?(ie||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(o.flags|=4194308)):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=h,o.memoizedState=ee),b.props=h,b.state=ee,b.context=C,h=q):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),h=!1)}else{b=o.stateNode,pv(a,o),C=o.memoizedProps,ie=no(u,C),b.props=ie,ce=o.pendingProps,te=b.context,ee=u.contextType,q=Jo,typeof ee=="object"&&ee!==null&&(q=en(ee)),P=u.getDerivedStateFromProps,(ee=typeof P=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(C!==ce||te!==q)&&KE(o,b,h,q),Ja=!1,te=o.memoizedState,b.state=te,nu(o,h,b,g),tu();var ne=o.memoizedState;C!==ce||te!==ne||Ja||a!==null&&a.dependencies!==null&&Nf(a.dependencies)?(typeof P=="function"&&(Lv(o,u,P,h),ne=o.memoizedState),(ie=Ja||WE(o,u,ie,h,te,ne,q)||a!==null&&a.dependencies!==null&&Nf(a.dependencies))?(ee||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(h,ne,q),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(h,ne,q)),typeof b.componentDidUpdate=="function"&&(o.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof b.componentDidUpdate!="function"||C===a.memoizedProps&&te===a.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||C===a.memoizedProps&&te===a.memoizedState||(o.flags|=1024),o.memoizedProps=h,o.memoizedState=ne),b.props=h,b.state=ne,b.context=q,h=ie):(typeof b.componentDidUpdate!="function"||C===a.memoizedProps&&te===a.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||C===a.memoizedProps&&te===a.memoizedState||(o.flags|=1024),h=!1)}return b=h,Xf(a,o),h=(o.flags&128)!==0,b||h?(b=o.stateNode,u=h&&typeof u.getDerivedStateFromError!="function"?null:b.render(),o.flags|=1,a!==null&&h?(o.child=eo(o,a.child,null,g),o.child=eo(o,null,u,g)):tn(a,o,u,g),o.memoizedState=b.state,a=o.child):a=ma(a,o,g),a}function cA(a,o,u,h){return Wi(),o.flags|=256,tn(a,o,u,h),o.child}var Uv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hv(a){return{baseLanes:a,cachePool:J_()}}function Fv(a,o,u){return a=a!==null?a.childLanes&~u:0,o&&(a|=zn),a}function fA(a,o,u){var h=o.pendingProps,g=!1,b=(o.flags&128)!==0,C;if((C=b)||(C=a!==null&&a.memoizedState===null?!1:(Et.current&2)!==0),C&&(g=!0,o.flags&=-129),C=(o.flags&32)!==0,o.flags&=-33,a===null){if(Be){if(g?ni(o):ri(),(a=dt)?(a=bT(a,tr),a=a!==null&&a.data!=="&"?a:null,a!==null&&(o.memoizedState={dehydrated:a,treeContext:Ka!==null?{id:zr,overflow:Br}:null,retryLane:536870912,hydrationErrors:null},u=F_(a),u.return=o,o.child=u,Jt=o,dt=null)):a=null,a===null)throw Qa(o);return Ag(a)?o.lanes=32:o.lanes=536870912,null}var P=h.children;return h=h.fallback,g?(ri(),g=o.mode,P=Qf({mode:"hidden",children:P},g),h=Yi(h,g,u,null),P.return=o,h.return=o,P.sibling=h,o.child=P,h=o.child,h.memoizedState=Hv(u),h.childLanes=Fv(a,C,u),o.memoizedState=Uv,lu(null,h)):(ni(o),Gv(o,P))}var q=a.memoizedState;if(q!==null&&(P=q.dehydrated,P!==null)){if(b)o.flags&256?(ni(o),o.flags&=-257,o=Vv(a,o,u)):o.memoizedState!==null?(ri(),o.child=a.child,o.flags|=128,o=null):(ri(),P=h.fallback,g=o.mode,h=Qf({mode:"visible",children:h.children},g),P=Yi(P,g,u,null),P.flags|=2,h.return=o,P.return=o,h.sibling=P,o.child=h,eo(o,a.child,null,u),h=o.child,h.memoizedState=Hv(u),h.childLanes=Fv(a,C,u),o.memoizedState=Uv,o=lu(null,h));else if(ni(o),Ag(P)){if(C=P.nextSibling&&P.nextSibling.dataset,C)var ee=C.dgst;C=ee,h=Error(r(419)),h.stack="",h.digest=C,Ks({value:h,source:null,stack:null}),o=Vv(a,o,u)}else if(Nt||rl(a,o,u,!1),C=(u&a.childLanes)!==0,Nt||C){if(C=st,C!==null&&(h=wn(C,u),h!==0&&h!==q.retryLane))throw q.retryLane=h,Vi(a,h),jn(C,a,h),Bv;Eg(P)||od(),o=Vv(a,o,u)}else Eg(P)?(o.flags|=192,o.child=a.child,o=null):(a=q.treeContext,dt=rr(P.nextSibling),Jt=o,Be=!0,Xa=null,tr=!1,a!==null&&Y_(o,a),o=Gv(o,h.children),o.flags|=4096);return o}return g?(ri(),P=h.fallback,g=o.mode,q=a.child,ee=q.sibling,h=ua(q,{mode:"hidden",children:h.children}),h.subtreeFlags=q.subtreeFlags&65011712,ee!==null?P=ua(ee,P):(P=Yi(P,g,u,null),P.flags|=2),P.return=o,h.return=o,h.sibling=P,o.child=h,lu(null,h),h=o.child,P=a.child.memoizedState,P===null?P=Hv(u):(g=P.cachePool,g!==null?(q=Ct._currentValue,g=g.parent!==q?{parent:q,pool:q}:g):g=J_(),P={baseLanes:P.baseLanes|u,cachePool:g}),h.memoizedState=P,h.childLanes=Fv(a,C,u),o.memoizedState=Uv,lu(a.child,h)):(ni(o),u=a.child,a=u.sibling,u=ua(u,{mode:"visible",children:h.children}),u.return=o,u.sibling=null,a!==null&&(C=o.deletions,C===null?(o.deletions=[a],o.flags|=16):C.push(a)),o.child=u,o.memoizedState=null,u)}function Gv(a,o){return o=Qf({mode:"visible",children:o},a.mode),o.return=a,a.child=o}function Qf(a,o){return a=kn(22,a,null,o),a.lanes=0,a}function Vv(a,o,u){return eo(o,a.child,null,u),a=Gv(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function dA(a,o,u){a.lanes|=o;var h=a.alternate;h!==null&&(h.lanes|=o),lv(a.return,o,u)}function Yv(a,o,u,h,g,b){var C=a.memoizedState;C===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:g,treeForkCount:b}:(C.isBackwards=o,C.rendering=null,C.renderingStartTime=0,C.last=h,C.tail=u,C.tailMode=g,C.treeForkCount=b)}function hA(a,o,u){var h=o.pendingProps,g=h.revealOrder,b=h.tail;h=h.children;var C=Et.current,P=(C&2)!==0;if(P?(C=C&1|2,o.flags|=128):C&=1,Z(Et,C),tn(a,o,h,u),h=Be?Ws:0,!P&&a!==null&&(a.flags&128)!==0)e:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&dA(a,u,o);else if(a.tag===19)dA(a,u,o);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(g){case"forwards":for(u=o.child,g=null;u!==null;)a=u.alternate,a!==null&&zf(a)===null&&(g=u),u=u.sibling;u=g,u===null?(g=o.child,o.child=null):(g=u.sibling,u.sibling=null),Yv(o,!1,g,u,b,h);break;case"backwards":case"unstable_legacy-backwards":for(u=null,g=o.child,o.child=null;g!==null;){if(a=g.alternate,a!==null&&zf(a)===null){o.child=g;break}a=g.sibling,g.sibling=u,u=g,g=a}Yv(o,!0,u,null,b,h);break;case"together":Yv(o,!1,null,null,void 0,h);break;default:o.memoizedState=null}return o.child}function ma(a,o,u){if(a!==null&&(o.dependencies=a.dependencies),oi|=o.lanes,(u&o.childLanes)===0)if(a!==null){if(rl(a,o,u,!1),(u&o.childLanes)===0)return null}else return null;if(a!==null&&o.child!==a.child)throw Error(r(153));if(o.child!==null){for(a=o.child,u=ua(a,a.pendingProps),o.child=u,u.return=o;a.sibling!==null;)a=a.sibling,u=u.sibling=ua(a,a.pendingProps),u.return=o;u.sibling=null}return o.child}function Wv(a,o){return(a.lanes&o)!==0?!0:(a=a.dependencies,!!(a!==null&&Nf(a)))}function gB(a,o,u){switch(o.tag){case 3:pe(o,o.stateNode.containerInfo),Za(o,Ct,a.memoizedState.cache),Wi();break;case 27:case 5:me(o);break;case 4:pe(o,o.stateNode.containerInfo);break;case 10:Za(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,bv(o),null;break;case 13:var h=o.memoizedState;if(h!==null)return h.dehydrated!==null?(ni(o),o.flags|=128,null):(u&o.child.childLanes)!==0?fA(a,o,u):(ni(o),a=ma(a,o,u),a!==null?a.sibling:null);ni(o);break;case 19:var g=(a.flags&128)!==0;if(h=(u&o.childLanes)!==0,h||(rl(a,o,u,!1),h=(u&o.childLanes)!==0),g){if(h)return hA(a,o,u);o.flags|=128}if(g=o.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),Z(Et,Et.current),h)break;return null;case 22:return o.lanes=0,iA(a,o,u,o.pendingProps);case 24:Za(o,Ct,a.memoizedState.cache)}return ma(a,o,u)}function pA(a,o,u){if(a!==null)if(a.memoizedProps!==o.pendingProps)Nt=!0;else{if(!Wv(a,u)&&(o.flags&128)===0)return Nt=!1,gB(a,o,u);Nt=(a.flags&131072)!==0}else Nt=!1,Be&&(o.flags&1048576)!==0&&V_(o,Ws,o.index);switch(o.lanes=0,o.tag){case 16:e:{var h=o.pendingProps;if(a=Zi(o.elementType),o.type=a,typeof a=="function")Jm(a)?(h=no(a,h),o.tag=1,o=uA(null,o,a,h,u)):(o.tag=0,o=qv(null,o,a,h,u));else{if(a!=null){var g=a.$$typeof;if(g===M){o.tag=11,o=nA(null,o,a,h,u);break e}else if(g===R){o.tag=14,o=rA(null,o,a,h,u);break e}}throw o=K(a)||a,Error(r(306,o,""))}}return o;case 0:return qv(a,o,o.type,o.pendingProps,u);case 1:return h=o.type,g=no(h,o.pendingProps),uA(a,o,h,g,u);case 3:e:{if(pe(o,o.stateNode.containerInfo),a===null)throw Error(r(387));h=o.pendingProps;var b=o.memoizedState;g=b.element,pv(a,o),nu(o,h,null,u);var C=o.memoizedState;if(h=C.cache,Za(o,Ct,h),h!==b.cache&&sv(o,[Ct],u,!0),tu(),h=C.element,b.isDehydrated)if(b={element:h,isDehydrated:!1,cache:C.cache},o.updateQueue.baseState=b,o.memoizedState=b,o.flags&256){o=cA(a,o,h,u);break e}else if(h!==g){g=Zn(Error(r(424)),o),Ks(g),o=cA(a,o,h,u);break e}else{switch(a=o.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(dt=rr(a.firstChild),Jt=o,Be=!0,Xa=null,tr=!0,u=iE(o,null,h,u),o.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Wi(),h===g){o=ma(a,o,u);break e}tn(a,o,h,u)}o=o.child}return o;case 26:return Xf(a,o),a===null?(u=ET(o.type,null,o.pendingProps,null))?o.memoizedState=u:Be||(u=o.type,a=o.pendingProps,h=hd(ge.current).createElement(u),h[Zt]=o,h[Sn]=a,nn(h,u,a),Yt(h),o.stateNode=h):o.memoizedState=ET(o.type,a.memoizedProps,o.pendingProps,a.memoizedState),null;case 27:return me(o),a===null&&Be&&(h=o.stateNode=ST(o.type,o.pendingProps,ge.current),Jt=o,tr=!0,g=dt,fi(o.type)?(Tg=g,dt=rr(h.firstChild)):dt=g),tn(a,o,o.pendingProps.children,u),Xf(a,o),a===null&&(o.flags|=4194304),o.child;case 5:return a===null&&Be&&((g=h=dt)&&(h=YB(h,o.type,o.pendingProps,tr),h!==null?(o.stateNode=h,Jt=o,dt=rr(h.firstChild),tr=!1,g=!0):g=!1),g||Qa(o)),me(o),g=o.type,b=o.pendingProps,C=a!==null?a.memoizedProps:null,h=b.children,Sg(g,b)?h=null:C!==null&&Sg(g,C)&&(o.flags|=32),o.memoizedState!==null&&(g=wv(a,o,sB,null,null,u),Su._currentValue=g),Xf(a,o),tn(a,o,h,u),o.child;case 6:return a===null&&Be&&((a=u=dt)&&(u=WB(u,o.pendingProps,tr),u!==null?(o.stateNode=u,Jt=o,dt=null,a=!0):a=!1),a||Qa(o)),null;case 13:return fA(a,o,u);case 4:return pe(o,o.stateNode.containerInfo),h=o.pendingProps,a===null?o.child=eo(o,null,h,u):tn(a,o,h,u),o.child;case 11:return nA(a,o,o.type,o.pendingProps,u);case 7:return tn(a,o,o.pendingProps,u),o.child;case 8:return tn(a,o,o.pendingProps.children,u),o.child;case 12:return tn(a,o,o.pendingProps.children,u),o.child;case 10:return h=o.pendingProps,Za(o,o.type,h.value),tn(a,o,h.children,u),o.child;case 9:return g=o.type._context,h=o.pendingProps.children,Xi(o),g=en(g),h=h(g),o.flags|=1,tn(a,o,h,u),o.child;case 14:return rA(a,o,o.type,o.pendingProps,u);case 15:return aA(a,o,o.type,o.pendingProps,u);case 19:return hA(a,o,u);case 31:return vB(a,o,u);case 22:return iA(a,o,u,o.pendingProps);case 24:return Xi(o),h=en(Ct),a===null?(g=fv(),g===null&&(g=st,b=uv(),g.pooledCache=b,b.refCount++,b!==null&&(g.pooledCacheLanes|=u),g=b),o.memoizedState={parent:h,cache:g},hv(o),Za(o,Ct,g)):((a.lanes&u)!==0&&(pv(a,o),nu(o,null,null,u),tu()),g=a.memoizedState,b=o.memoizedState,g.parent!==h?(g={parent:h,cache:h},o.memoizedState=g,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=g),Za(o,Ct,h)):(h=b.cache,Za(o,Ct,h),h!==g.cache&&sv(o,[Ct],u,!0))),tn(a,o,o.pendingProps.children,u),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function va(a){a.flags|=4}function Kv(a,o,u,h,g){if((o=(a.mode&32)!==0)&&(o=!1),o){if(a.flags|=16777216,(g&335544128)===g)if(a.stateNode.complete)a.flags|=8192;else if(qA())a.flags|=8192;else throw Ji=kf,dv}else a.flags&=-16777217}function mA(a,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!MT(o))if(qA())a.flags|=8192;else throw Ji=kf,dv}function Zf(a,o){o!==null&&(a.flags|=4),a.flags&16384&&(o=a.tag!==22?un():536870912,a.lanes|=o,ml|=o)}function su(a,o){if(!Be)switch(a.tailMode){case"hidden":o=a.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?a.tail=null:u.sibling=null;break;case"collapsed":u=a.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:h.sibling=null}}function ht(a){var o=a.alternate!==null&&a.alternate.child===a.child,u=0,h=0;if(o)for(var g=a.child;g!==null;)u|=g.lanes|g.childLanes,h|=g.subtreeFlags&65011712,h|=g.flags&65011712,g.return=a,g=g.sibling;else for(g=a.child;g!==null;)u|=g.lanes|g.childLanes,h|=g.subtreeFlags,h|=g.flags,g.return=a,g=g.sibling;return a.subtreeFlags|=h,a.childLanes=u,o}function yB(a,o,u){var h=o.pendingProps;switch(rv(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(o),null;case 1:return ht(o),null;case 3:return u=o.stateNode,h=null,a!==null&&(h=a.memoizedState.cache),o.memoizedState.cache!==h&&(o.flags|=2048),da(Ct),ae(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(a===null||a.child===null)&&(nl(o)?va(o):a===null||a.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,iv())),ht(o),null;case 26:var g=o.type,b=o.memoizedState;return a===null?(va(o),b!==null?(ht(o),mA(o,b)):(ht(o),Kv(o,g,null,h,u))):b?b!==a.memoizedState?(va(o),ht(o),mA(o,b)):(ht(o),o.flags&=-16777217):(a=a.memoizedProps,a!==h&&va(o),ht(o),Kv(o,g,a,h,u)),null;case 27:if(ye(o),u=ge.current,g=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==h&&va(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return ht(o),null}a=se.current,nl(o)?W_(o):(a=ST(g,h,u),o.stateNode=a,va(o))}return ht(o),null;case 5:if(ye(o),g=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==h&&va(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return ht(o),null}if(b=se.current,nl(o))W_(o);else{var C=hd(ge.current);switch(b){case 1:b=C.createElementNS("http://www.w3.org/2000/svg",g);break;case 2:b=C.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;default:switch(g){case"svg":b=C.createElementNS("http://www.w3.org/2000/svg",g);break;case"math":b=C.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;case"script":b=C.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof h.is=="string"?C.createElement("select",{is:h.is}):C.createElement("select"),h.multiple?b.multiple=!0:h.size&&(b.size=h.size);break;default:b=typeof h.is=="string"?C.createElement(g,{is:h.is}):C.createElement(g)}}b[Zt]=o,b[Sn]=h;e:for(C=o.child;C!==null;){if(C.tag===5||C.tag===6)b.appendChild(C.stateNode);else if(C.tag!==4&&C.tag!==27&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===o)break e;for(;C.sibling===null;){if(C.return===null||C.return===o)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}o.stateNode=b;e:switch(nn(b,g,h),g){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&va(o)}}return ht(o),Kv(o,o.type,a===null?null:a.memoizedProps,o.pendingProps,u),null;case 6:if(a&&o.stateNode!=null)a.memoizedProps!==h&&va(o);else{if(typeof h!="string"&&o.stateNode===null)throw Error(r(166));if(a=ge.current,nl(o)){if(a=o.stateNode,u=o.memoizedProps,h=null,g=Jt,g!==null)switch(g.tag){case 27:case 5:h=g.memoizedProps}a[Zt]=o,a=!!(a.nodeValue===u||h!==null&&h.suppressHydrationWarning===!0||fT(a.nodeValue,u)),a||Qa(o,!0)}else a=hd(a).createTextNode(h),a[Zt]=o,o.stateNode=a}return ht(o),null;case 31:if(u=o.memoizedState,a===null||a.memoizedState!==null){if(h=nl(o),u!==null){if(a===null){if(!h)throw Error(r(318));if(a=o.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(557));a[Zt]=o}else Wi(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;ht(o),a=!1}else u=iv(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=u),a=!0;if(!a)return o.flags&256?(Ln(o),o):(Ln(o),null);if((o.flags&128)!==0)throw Error(r(558))}return ht(o),null;case 13:if(h=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(g=nl(o),h!==null&&h.dehydrated!==null){if(a===null){if(!g)throw Error(r(318));if(g=o.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[Zt]=o}else Wi(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;ht(o),g=!1}else g=iv(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=g),g=!0;if(!g)return o.flags&256?(Ln(o),o):(Ln(o),null)}return Ln(o),(o.flags&128)!==0?(o.lanes=u,o):(u=h!==null,a=a!==null&&a.memoizedState!==null,u&&(h=o.child,g=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(g=h.alternate.memoizedState.cachePool.pool),b=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(b=h.memoizedState.cachePool.pool),b!==g&&(h.flags|=2048)),u!==a&&u&&(o.child.flags|=8192),Zf(o,o.updateQueue),ht(o),null);case 4:return ae(),a===null&&gg(o.stateNode.containerInfo),ht(o),null;case 10:return da(o.type),ht(o),null;case 19:if(F(Et),h=o.memoizedState,h===null)return ht(o),null;if(g=(o.flags&128)!==0,b=h.rendering,b===null)if(g)su(h,!1);else{if(Ot!==0||a!==null&&(a.flags&128)!==0)for(a=o.child;a!==null;){if(b=zf(a),b!==null){for(o.flags|=128,su(h,!1),a=b.updateQueue,o.updateQueue=a,Zf(o,a),o.subtreeFlags=0,a=u,u=o.child;u!==null;)H_(u,a),u=u.sibling;return Z(Et,Et.current&1|2),Be&&ca(o,h.treeForkCount),o.child}a=a.sibling}h.tail!==null&&Gt()>rd&&(o.flags|=128,g=!0,su(h,!1),o.lanes=4194304)}else{if(!g)if(a=zf(b),a!==null){if(o.flags|=128,g=!0,a=a.updateQueue,o.updateQueue=a,Zf(o,a),su(h,!0),h.tail===null&&h.tailMode==="hidden"&&!b.alternate&&!Be)return ht(o),null}else 2*Gt()-h.renderingStartTime>rd&&u!==536870912&&(o.flags|=128,g=!0,su(h,!1),o.lanes=4194304);h.isBackwards?(b.sibling=o.child,o.child=b):(a=h.last,a!==null?a.sibling=b:o.child=b,h.last=b)}return h.tail!==null?(a=h.tail,h.rendering=a,h.tail=a.sibling,h.renderingStartTime=Gt(),a.sibling=null,u=Et.current,Z(Et,g?u&1|2:u&1),Be&&ca(o,h.treeForkCount),a):(ht(o),null);case 22:case 23:return Ln(o),yv(),h=o.memoizedState!==null,a!==null?a.memoizedState!==null!==h&&(o.flags|=8192):h&&(o.flags|=8192),h?(u&536870912)!==0&&(o.flags&128)===0&&(ht(o),o.subtreeFlags&6&&(o.flags|=8192)):ht(o),u=o.updateQueue,u!==null&&Zf(o,u.retryQueue),u=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==u&&(o.flags|=2048),a!==null&&F(Qi),null;case 24:return u=null,a!==null&&(u=a.memoizedState.cache),o.memoizedState.cache!==u&&(o.flags|=2048),da(Ct),ht(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function bB(a,o){switch(rv(o),o.tag){case 1:return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 3:return da(Ct),ae(),a=o.flags,(a&65536)!==0&&(a&128)===0?(o.flags=a&-65537|128,o):null;case 26:case 27:case 5:return ye(o),null;case 31:if(o.memoizedState!==null){if(Ln(o),o.alternate===null)throw Error(r(340));Wi()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 13:if(Ln(o),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error(r(340));Wi()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 19:return F(Et),null;case 4:return ae(),null;case 10:return da(o.type),null;case 22:case 23:return Ln(o),yv(),a!==null&&F(Qi),a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 24:return da(Ct),null;case 25:return null;default:return null}}function vA(a,o){switch(rv(o),o.tag){case 3:da(Ct),ae();break;case 26:case 27:case 5:ye(o);break;case 4:ae();break;case 31:o.memoizedState!==null&&Ln(o);break;case 13:Ln(o);break;case 19:F(Et);break;case 10:da(o.type);break;case 22:case 23:Ln(o),yv(),a!==null&&F(Qi);break;case 24:da(Ct)}}function uu(a,o){try{var u=o.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var g=h.next;u=g;do{if((u.tag&a)===a){h=void 0;var b=u.create,C=u.inst;h=b(),C.destroy=h}u=u.next}while(u!==g)}}catch(P){et(o,o.return,P)}}function ai(a,o,u){try{var h=o.updateQueue,g=h!==null?h.lastEffect:null;if(g!==null){var b=g.next;h=b;do{if((h.tag&a)===a){var C=h.inst,P=C.destroy;if(P!==void 0){C.destroy=void 0,g=o;var q=u,ee=P;try{ee()}catch(ie){et(g,q,ie)}}}h=h.next}while(h!==b)}}catch(ie){et(o,o.return,ie)}}function gA(a){var o=a.updateQueue;if(o!==null){var u=a.stateNode;try{lE(o,u)}catch(h){et(a,a.return,h)}}}function yA(a,o,u){u.props=no(a.type,a.memoizedProps),u.state=a.memoizedState;try{u.componentWillUnmount()}catch(h){et(a,o,h)}}function cu(a,o){try{var u=a.ref;if(u!==null){switch(a.tag){case 26:case 27:case 5:var h=a.stateNode;break;case 30:h=a.stateNode;break;default:h=a.stateNode}typeof u=="function"?a.refCleanup=u(h):u.current=h}}catch(g){et(a,o,g)}}function qr(a,o){var u=a.ref,h=a.refCleanup;if(u!==null)if(typeof h=="function")try{h()}catch(g){et(a,o,g)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(g){et(a,o,g)}else u.current=null}function bA(a){var o=a.type,u=a.memoizedProps,h=a.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":u.autoFocus&&h.focus();break e;case"img":u.src?h.src=u.src:u.srcSet&&(h.srcset=u.srcSet)}}catch(g){et(a,a.return,g)}}function Xv(a,o,u){try{var h=a.stateNode;qB(h,a.type,u,o),h[Sn]=o}catch(g){et(a,a.return,g)}}function xA(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&fi(a.type)||a.tag===4}function Qv(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||xA(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&fi(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Zv(a,o,u){var h=a.tag;if(h===5||h===6)a=a.stateNode,o?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(a,o):(o=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,o.appendChild(a),u=u._reactRootContainer,u!=null||o.onclick!==null||(o.onclick=la));else if(h!==4&&(h===27&&fi(a.type)&&(u=a.stateNode,o=null),a=a.child,a!==null))for(Zv(a,o,u),a=a.sibling;a!==null;)Zv(a,o,u),a=a.sibling}function Jf(a,o,u){var h=a.tag;if(h===5||h===6)a=a.stateNode,o?u.insertBefore(a,o):u.appendChild(a);else if(h!==4&&(h===27&&fi(a.type)&&(u=a.stateNode),a=a.child,a!==null))for(Jf(a,o,u),a=a.sibling;a!==null;)Jf(a,o,u),a=a.sibling}function wA(a){var o=a.stateNode,u=a.memoizedProps;try{for(var h=a.type,g=o.attributes;g.length;)o.removeAttributeNode(g[0]);nn(o,h,u),o[Zt]=a,o[Sn]=u}catch(b){et(a,a.return,b)}}var ga=!1,Rt=!1,Jv=!1,SA=typeof WeakSet=="function"?WeakSet:Set,Wt=null;function xB(a,o){if(a=a.containerInfo,xg=xd,a=D_(a),Vm(a)){if("selectionStart"in a)var u={start:a.selectionStart,end:a.selectionEnd};else e:{u=(u=a.ownerDocument)&&u.defaultView||window;var h=u.getSelection&&u.getSelection();if(h&&h.rangeCount!==0){u=h.anchorNode;var g=h.anchorOffset,b=h.focusNode;h=h.focusOffset;try{u.nodeType,b.nodeType}catch{u=null;break e}var C=0,P=-1,q=-1,ee=0,ie=0,ce=a,te=null;t:for(;;){for(var ne;ce!==u||g!==0&&ce.nodeType!==3||(P=C+g),ce!==b||h!==0&&ce.nodeType!==3||(q=C+h),ce.nodeType===3&&(C+=ce.nodeValue.length),(ne=ce.firstChild)!==null;)te=ce,ce=ne;for(;;){if(ce===a)break t;if(te===u&&++ee===g&&(P=C),te===b&&++ie===h&&(q=C),(ne=ce.nextSibling)!==null)break;ce=te,te=ce.parentNode}ce=ne}u=P===-1||q===-1?null:{start:P,end:q}}else u=null}u=u||{start:0,end:0}}else u=null;for(wg={focusedElem:a,selectionRange:u},xd=!1,Wt=o;Wt!==null;)if(o=Wt,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,Wt=a;else for(;Wt!==null;){switch(o=Wt,b=o.alternate,a=o.flags,o.tag){case 0:if((a&4)!==0&&(a=o.updateQueue,a=a!==null?a.events:null,a!==null))for(u=0;u<a.length;u++)g=a[u],g.ref.impl=g.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&b!==null){a=void 0,u=o,g=b.memoizedProps,b=b.memoizedState,h=u.stateNode;try{var we=no(u.type,g);a=h.getSnapshotBeforeUpdate(we,b),h.__reactInternalSnapshotBeforeUpdate=a}catch(Ee){et(u,u.return,Ee)}}break;case 3:if((a&1024)!==0){if(a=o.stateNode.containerInfo,u=a.nodeType,u===9)_g(a);else if(u===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":_g(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=o.sibling,a!==null){a.return=o.return,Wt=a;break}Wt=o.return}}function OA(a,o,u){var h=u.flags;switch(u.tag){case 0:case 11:case 15:ba(a,u),h&4&&uu(5,u);break;case 1:if(ba(a,u),h&4)if(a=u.stateNode,o===null)try{a.componentDidMount()}catch(C){et(u,u.return,C)}else{var g=no(u.type,o.memoizedProps);o=o.memoizedState;try{a.componentDidUpdate(g,o,a.__reactInternalSnapshotBeforeUpdate)}catch(C){et(u,u.return,C)}}h&64&&gA(u),h&512&&cu(u,u.return);break;case 3:if(ba(a,u),h&64&&(a=u.updateQueue,a!==null)){if(o=null,u.child!==null)switch(u.child.tag){case 27:case 5:o=u.child.stateNode;break;case 1:o=u.child.stateNode}try{lE(a,o)}catch(C){et(u,u.return,C)}}break;case 27:o===null&&h&4&&wA(u);case 26:case 5:ba(a,u),o===null&&h&4&&bA(u),h&512&&cu(u,u.return);break;case 12:ba(a,u);break;case 31:ba(a,u),h&4&&AA(a,u);break;case 13:ba(a,u),h&4&&TA(a,u),h&64&&(a=u.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(u=CB.bind(null,u),KB(a,u))));break;case 22:if(h=u.memoizedState!==null||ga,!h){o=o!==null&&o.memoizedState!==null||Rt,g=ga;var b=Rt;ga=h,(Rt=o)&&!b?xa(a,u,(u.subtreeFlags&8772)!==0):ba(a,u),ga=g,Rt=b}break;case 30:break;default:ba(a,u)}}function _A(a){var o=a.alternate;o!==null&&(a.alternate=null,_A(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&Cm(o)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var gt=null,_n=!1;function ya(a,o,u){for(u=u.child;u!==null;)EA(a,o,u),u=u.sibling}function EA(a,o,u){if(pn&&typeof pn.onCommitFiberUnmount=="function")try{pn.onCommitFiberUnmount(zi,u)}catch{}switch(u.tag){case 26:Rt||qr(u,o),ya(a,o,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Rt||qr(u,o);var h=gt,g=_n;fi(u.type)&&(gt=u.stateNode,_n=!1),ya(a,o,u),bu(u.stateNode),gt=h,_n=g;break;case 5:Rt||qr(u,o);case 6:if(h=gt,g=_n,gt=null,ya(a,o,u),gt=h,_n=g,gt!==null)if(_n)try{(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).removeChild(u.stateNode)}catch(b){et(u,o,b)}else try{gt.removeChild(u.stateNode)}catch(b){et(u,o,b)}break;case 18:gt!==null&&(_n?(a=gt,gT(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,u.stateNode),Ol(a)):gT(gt,u.stateNode));break;case 4:h=gt,g=_n,gt=u.stateNode.containerInfo,_n=!0,ya(a,o,u),gt=h,_n=g;break;case 0:case 11:case 14:case 15:ai(2,u,o),Rt||ai(4,u,o),ya(a,o,u);break;case 1:Rt||(qr(u,o),h=u.stateNode,typeof h.componentWillUnmount=="function"&&yA(u,o,h)),ya(a,o,u);break;case 21:ya(a,o,u);break;case 22:Rt=(h=Rt)||u.memoizedState!==null,ya(a,o,u),Rt=h;break;default:ya(a,o,u)}}function AA(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{Ol(a)}catch(u){et(o,o.return,u)}}}function TA(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Ol(a)}catch(u){et(o,o.return,u)}}function wB(a){switch(a.tag){case 31:case 13:case 19:var o=a.stateNode;return o===null&&(o=a.stateNode=new SA),o;case 22:return a=a.stateNode,o=a._retryCache,o===null&&(o=a._retryCache=new SA),o;default:throw Error(r(435,a.tag))}}function ed(a,o){var u=wB(a);o.forEach(function(h){if(!u.has(h)){u.add(h);var g=MB.bind(null,a,h);h.then(g,g)}})}function En(a,o){var u=o.deletions;if(u!==null)for(var h=0;h<u.length;h++){var g=u[h],b=a,C=o,P=C;e:for(;P!==null;){switch(P.tag){case 27:if(fi(P.type)){gt=P.stateNode,_n=!1;break e}break;case 5:gt=P.stateNode,_n=!1;break e;case 3:case 4:gt=P.stateNode.containerInfo,_n=!0;break e}P=P.return}if(gt===null)throw Error(r(160));EA(b,C,g),gt=null,_n=!1,b=g.alternate,b!==null&&(b.return=null),g.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)jA(o,a),o=o.sibling}var xr=null;function jA(a,o){var u=a.alternate,h=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:En(o,a),An(a),h&4&&(ai(3,a,a.return),uu(3,a),ai(5,a,a.return));break;case 1:En(o,a),An(a),h&512&&(Rt||u===null||qr(u,u.return)),h&64&&ga&&(a=a.updateQueue,a!==null&&(h=a.callbacks,h!==null&&(u=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=u===null?h:u.concat(h))));break;case 26:var g=xr;if(En(o,a),An(a),h&512&&(Rt||u===null||qr(u,u.return)),h&4){var b=u!==null?u.memoizedState:null;if(h=a.memoizedState,u===null)if(h===null)if(a.stateNode===null){e:{h=a.type,u=a.memoizedProps,g=g.ownerDocument||g;t:switch(h){case"title":b=g.getElementsByTagName("title")[0],(!b||b[Ls]||b[Zt]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=g.createElement(h),g.head.insertBefore(b,g.querySelector("head > title"))),nn(b,h,u),b[Zt]=a,Yt(b),h=b;break e;case"link":var C=jT("link","href",g).get(h+(u.href||""));if(C){for(var P=0;P<C.length;P++)if(b=C[P],b.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&b.getAttribute("rel")===(u.rel==null?null:u.rel)&&b.getAttribute("title")===(u.title==null?null:u.title)&&b.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){C.splice(P,1);break t}}b=g.createElement(h),nn(b,h,u),g.head.appendChild(b);break;case"meta":if(C=jT("meta","content",g).get(h+(u.content||""))){for(P=0;P<C.length;P++)if(b=C[P],b.getAttribute("content")===(u.content==null?null:""+u.content)&&b.getAttribute("name")===(u.name==null?null:u.name)&&b.getAttribute("property")===(u.property==null?null:u.property)&&b.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&b.getAttribute("charset")===(u.charSet==null?null:u.charSet)){C.splice(P,1);break t}}b=g.createElement(h),nn(b,h,u),g.head.appendChild(b);break;default:throw Error(r(468,h))}b[Zt]=a,Yt(b),h=b}a.stateNode=h}else CT(g,a.type,a.stateNode);else a.stateNode=TT(g,h,a.memoizedProps);else b!==h?(b===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):b.count--,h===null?CT(g,a.type,a.stateNode):TT(g,h,a.memoizedProps)):h===null&&a.stateNode!==null&&Xv(a,a.memoizedProps,u.memoizedProps)}break;case 27:En(o,a),An(a),h&512&&(Rt||u===null||qr(u,u.return)),u!==null&&h&4&&Xv(a,a.memoizedProps,u.memoizedProps);break;case 5:if(En(o,a),An(a),h&512&&(Rt||u===null||qr(u,u.return)),a.flags&32){g=a.stateNode;try{Vo(g,"")}catch(we){et(a,a.return,we)}}h&4&&a.stateNode!=null&&(g=a.memoizedProps,Xv(a,g,u!==null?u.memoizedProps:g)),h&1024&&(Jv=!0);break;case 6:if(En(o,a),An(a),h&4){if(a.stateNode===null)throw Error(r(162));h=a.memoizedProps,u=a.stateNode;try{u.nodeValue=h}catch(we){et(a,a.return,we)}}break;case 3:if(vd=null,g=xr,xr=pd(o.containerInfo),En(o,a),xr=g,An(a),h&4&&u!==null&&u.memoizedState.isDehydrated)try{Ol(o.containerInfo)}catch(we){et(a,a.return,we)}Jv&&(Jv=!1,CA(a));break;case 4:h=xr,xr=pd(a.stateNode.containerInfo),En(o,a),An(a),xr=h;break;case 12:En(o,a),An(a);break;case 31:En(o,a),An(a),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,ed(a,h)));break;case 13:En(o,a),An(a),a.child.flags&8192&&a.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(nd=Gt()),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,ed(a,h)));break;case 22:g=a.memoizedState!==null;var q=u!==null&&u.memoizedState!==null,ee=ga,ie=Rt;if(ga=ee||g,Rt=ie||q,En(o,a),Rt=ie,ga=ee,An(a),h&8192)e:for(o=a.stateNode,o._visibility=g?o._visibility&-2:o._visibility|1,g&&(u===null||q||ga||Rt||ro(a)),u=null,o=a;;){if(o.tag===5||o.tag===26){if(u===null){q=u=o;try{if(b=q.stateNode,g)C=b.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{P=q.stateNode;var ce=q.memoizedProps.style,te=ce!=null&&ce.hasOwnProperty("display")?ce.display:null;P.style.display=te==null||typeof te=="boolean"?"":(""+te).trim()}}catch(we){et(q,q.return,we)}}}else if(o.tag===6){if(u===null){q=o;try{q.stateNode.nodeValue=g?"":q.memoizedProps}catch(we){et(q,q.return,we)}}}else if(o.tag===18){if(u===null){q=o;try{var ne=q.stateNode;g?yT(ne,!0):yT(q.stateNode,!1)}catch(we){et(q,q.return,we)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===a)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break e;for(;o.sibling===null;){if(o.return===null||o.return===a)break e;u===o&&(u=null),o=o.return}u===o&&(u=null),o.sibling.return=o.return,o=o.sibling}h&4&&(h=a.updateQueue,h!==null&&(u=h.retryQueue,u!==null&&(h.retryQueue=null,ed(a,u))));break;case 19:En(o,a),An(a),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,ed(a,h)));break;case 30:break;case 21:break;default:En(o,a),An(a)}}function An(a){var o=a.flags;if(o&2){try{for(var u,h=a.return;h!==null;){if(xA(h)){u=h;break}h=h.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var g=u.stateNode,b=Qv(a);Jf(a,b,g);break;case 5:var C=u.stateNode;u.flags&32&&(Vo(C,""),u.flags&=-33);var P=Qv(a);Jf(a,P,C);break;case 3:case 4:var q=u.stateNode.containerInfo,ee=Qv(a);Zv(a,ee,q);break;default:throw Error(r(161))}}catch(ie){et(a,a.return,ie)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function CA(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var o=a;CA(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),a=a.sibling}}function ba(a,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)OA(a,o.alternate,o),o=o.sibling}function ro(a){for(a=a.child;a!==null;){var o=a;switch(o.tag){case 0:case 11:case 14:case 15:ai(4,o,o.return),ro(o);break;case 1:qr(o,o.return);var u=o.stateNode;typeof u.componentWillUnmount=="function"&&yA(o,o.return,u),ro(o);break;case 27:bu(o.stateNode);case 26:case 5:qr(o,o.return),ro(o);break;case 22:o.memoizedState===null&&ro(o);break;case 30:ro(o);break;default:ro(o)}a=a.sibling}}function xa(a,o,u){for(u=u&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var h=o.alternate,g=a,b=o,C=b.flags;switch(b.tag){case 0:case 11:case 15:xa(g,b,u),uu(4,b);break;case 1:if(xa(g,b,u),h=b,g=h.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(ee){et(h,h.return,ee)}if(h=b,g=h.updateQueue,g!==null){var P=h.stateNode;try{var q=g.shared.hiddenCallbacks;if(q!==null)for(g.shared.hiddenCallbacks=null,g=0;g<q.length;g++)oE(q[g],P)}catch(ee){et(h,h.return,ee)}}u&&C&64&&gA(b),cu(b,b.return);break;case 27:wA(b);case 26:case 5:xa(g,b,u),u&&h===null&&C&4&&bA(b),cu(b,b.return);break;case 12:xa(g,b,u);break;case 31:xa(g,b,u),u&&C&4&&AA(g,b);break;case 13:xa(g,b,u),u&&C&4&&TA(g,b);break;case 22:b.memoizedState===null&&xa(g,b,u),cu(b,b.return);break;case 30:break;default:xa(g,b,u)}o=o.sibling}}function eg(a,o){var u=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),a=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(a=o.memoizedState.cachePool.pool),a!==u&&(a!=null&&a.refCount++,u!=null&&Xs(u))}function tg(a,o){a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(o.refCount++,a!=null&&Xs(a))}function wr(a,o,u,h){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)MA(a,o,u,h),o=o.sibling}function MA(a,o,u,h){var g=o.flags;switch(o.tag){case 0:case 11:case 15:wr(a,o,u,h),g&2048&&uu(9,o);break;case 1:wr(a,o,u,h);break;case 3:wr(a,o,u,h),g&2048&&(a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(o.refCount++,a!=null&&Xs(a)));break;case 12:if(g&2048){wr(a,o,u,h),a=o.stateNode;try{var b=o.memoizedProps,C=b.id,P=b.onPostCommit;typeof P=="function"&&P(C,o.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(q){et(o,o.return,q)}}else wr(a,o,u,h);break;case 31:wr(a,o,u,h);break;case 13:wr(a,o,u,h);break;case 23:break;case 22:b=o.stateNode,C=o.alternate,o.memoizedState!==null?b._visibility&2?wr(a,o,u,h):fu(a,o):b._visibility&2?wr(a,o,u,h):(b._visibility|=2,dl(a,o,u,h,(o.subtreeFlags&10256)!==0||!1)),g&2048&&eg(C,o);break;case 24:wr(a,o,u,h),g&2048&&tg(o.alternate,o);break;default:wr(a,o,u,h)}}function dl(a,o,u,h,g){for(g=g&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var b=a,C=o,P=u,q=h,ee=C.flags;switch(C.tag){case 0:case 11:case 15:dl(b,C,P,q,g),uu(8,C);break;case 23:break;case 22:var ie=C.stateNode;C.memoizedState!==null?ie._visibility&2?dl(b,C,P,q,g):fu(b,C):(ie._visibility|=2,dl(b,C,P,q,g)),g&&ee&2048&&eg(C.alternate,C);break;case 24:dl(b,C,P,q,g),g&&ee&2048&&tg(C.alternate,C);break;default:dl(b,C,P,q,g)}o=o.sibling}}function fu(a,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var u=a,h=o,g=h.flags;switch(h.tag){case 22:fu(u,h),g&2048&&eg(h.alternate,h);break;case 24:fu(u,h),g&2048&&tg(h.alternate,h);break;default:fu(u,h)}o=o.sibling}}var du=8192;function hl(a,o,u){if(a.subtreeFlags&du)for(a=a.child;a!==null;)NA(a,o,u),a=a.sibling}function NA(a,o,u){switch(a.tag){case 26:hl(a,o,u),a.flags&du&&a.memoizedState!==null&&lq(u,xr,a.memoizedState,a.memoizedProps);break;case 5:hl(a,o,u);break;case 3:case 4:var h=xr;xr=pd(a.stateNode.containerInfo),hl(a,o,u),xr=h;break;case 22:a.memoizedState===null&&(h=a.alternate,h!==null&&h.memoizedState!==null?(h=du,du=16777216,hl(a,o,u),du=h):hl(a,o,u));break;default:hl(a,o,u)}}function RA(a){var o=a.alternate;if(o!==null&&(a=o.child,a!==null)){o.child=null;do o=a.sibling,a.sibling=null,a=o;while(a!==null)}}function hu(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var h=o[u];Wt=h,DA(h,a)}RA(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)PA(a),a=a.sibling}function PA(a){switch(a.tag){case 0:case 11:case 15:hu(a),a.flags&2048&&ai(9,a,a.return);break;case 3:hu(a);break;case 12:hu(a);break;case 22:var o=a.stateNode;a.memoizedState!==null&&o._visibility&2&&(a.return===null||a.return.tag!==13)?(o._visibility&=-3,td(a)):hu(a);break;default:hu(a)}}function td(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var h=o[u];Wt=h,DA(h,a)}RA(a)}for(a=a.child;a!==null;){switch(o=a,o.tag){case 0:case 11:case 15:ai(8,o,o.return),td(o);break;case 22:u=o.stateNode,u._visibility&2&&(u._visibility&=-3,td(o));break;default:td(o)}a=a.sibling}}function DA(a,o){for(;Wt!==null;){var u=Wt;switch(u.tag){case 0:case 11:case 15:ai(8,u,o);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var h=u.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:Xs(u.memoizedState.cache)}if(h=u.child,h!==null)h.return=u,Wt=h;else e:for(u=a;Wt!==null;){h=Wt;var g=h.sibling,b=h.return;if(_A(h),h===u){Wt=null;break e}if(g!==null){g.return=b,Wt=g;break e}Wt=b}}}var SB={getCacheForType:function(a){var o=en(Ct),u=o.data.get(a);return u===void 0&&(u=a(),o.data.set(a,u)),u},cacheSignal:function(){return en(Ct).controller.signal}},OB=typeof WeakMap=="function"?WeakMap:Map,Xe=0,st=null,ke=null,Ie=0,Je=0,In=null,ii=!1,pl=!1,ng=!1,wa=0,Ot=0,oi=0,ao=0,rg=0,zn=0,ml=0,pu=null,Tn=null,ag=!1,nd=0,kA=0,rd=1/0,ad=null,li=null,zt=0,si=null,vl=null,Sa=0,ig=0,og=null,$A=null,mu=0,lg=null;function Bn(){return(Xe&2)!==0&&Ie!==0?Ie&-Ie:D.T!==null?hg():Tm()}function LA(){if(zn===0)if((Ie&536870912)===0||Be){var a=Io;Io<<=1,(Io&3932160)===0&&(Io=262144),zn=a}else zn=536870912;return a=$n.current,a!==null&&(a.flags|=32),zn}function jn(a,o,u){(a===st&&(Je===2||Je===9)||a.cancelPendingCommit!==null)&&(gl(a,0),ui(a,Ie,zn,!1)),xt(a,u),((Xe&2)===0||a!==st)&&(a===st&&((Xe&2)===0&&(ao|=u),Ot===4&&ui(a,Ie,zn,!1)),Ur(a))}function IA(a,o,u){if((Xe&6)!==0)throw Error(r(327));var h=!u&&(o&127)===0&&(o&a.expiredLanes)===0||vt(a,o),g=h?AB(a,o):ug(a,o,!0),b=h;do{if(g===0){pl&&!h&&ui(a,o,0,!1);break}else{if(u=a.current.alternate,b&&!_B(u)){g=ug(a,o,!1),b=!1;continue}if(g===2){if(b=o,a.errorRecoveryDisabledLanes&b)var C=0;else C=a.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){o=C;e:{var P=a;g=pu;var q=P.current.memoizedState.isDehydrated;if(q&&(gl(P,C).flags|=256),C=ug(P,C,!1),C!==2){if(ng&&!q){P.errorRecoveryDisabledLanes|=b,ao|=b,g=4;break e}b=Tn,Tn=g,b!==null&&(Tn===null?Tn=b:Tn.push.apply(Tn,b))}g=C}if(b=!1,g!==2)continue}}if(g===1){gl(a,0),ui(a,o,0,!0);break}e:{switch(h=a,b=g,b){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:ui(h,o,zn,!ii);break e;case 2:Tn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(g=nd+300-Gt(),10<g)){if(ui(h,o,zn,!ii),Te(h,0,!0)!==0)break e;Sa=o,h.timeoutHandle=mT(zA.bind(null,h,u,Tn,ad,ag,o,zn,ao,ml,ii,b,"Throttled",-0,0),g);break e}zA(h,u,Tn,ad,ag,o,zn,ao,ml,ii,b,null,-0,0)}}break}while(!0);Ur(a)}function zA(a,o,u,h,g,b,C,P,q,ee,ie,ce,te,ne){if(a.timeoutHandle=-1,ce=o.subtreeFlags,ce&8192||(ce&16785408)===16785408){ce={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:la},NA(o,b,ce);var we=(b&62914560)===b?nd-Gt():(b&4194048)===b?kA-Gt():0;if(we=sq(ce,we),we!==null){Sa=b,a.cancelPendingCommit=we(YA.bind(null,a,o,b,u,h,g,C,P,q,ie,ce,null,te,ne)),ui(a,b,C,!ee);return}}YA(a,o,b,u,h,g,C,P,q)}function _B(a){for(var o=a;;){var u=o.tag;if((u===0||u===11||u===15)&&o.flags&16384&&(u=o.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var h=0;h<u.length;h++){var g=u[h],b=g.getSnapshot;g=g.value;try{if(!Dn(b(),g))return!1}catch{return!1}}if(u=o.child,o.subtreeFlags&16384&&u!==null)u.return=o,o=u;else{if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function ui(a,o,u,h){o&=~rg,o&=~ao,a.suspendedLanes|=o,a.pingedLanes&=~o,h&&(a.warmLanes|=o),h=a.expirationTimes;for(var g=o;0<g;){var b=31-sn(g),C=1<<b;h[b]=-1,g&=~C}u!==0&&qi(a,u,o)}function id(){return(Xe&6)===0?(vu(0),!1):!0}function sg(){if(ke!==null){if(Je===0)var a=ke.return;else a=ke,fa=Ki=null,_v(a),ll=null,Zs=0,a=ke;for(;a!==null;)vA(a.alternate,a),a=a.return;ke=null}}function gl(a,o){var u=a.timeoutHandle;u!==-1&&(a.timeoutHandle=-1,FB(u)),u=a.cancelPendingCommit,u!==null&&(a.cancelPendingCommit=null,u()),Sa=0,sg(),st=a,ke=u=ua(a.current,null),Ie=o,Je=0,In=null,ii=!1,pl=vt(a,o),ng=!1,ml=zn=rg=ao=oi=Ot=0,Tn=pu=null,ag=!1,(o&8)!==0&&(o|=o&32);var h=a.entangledLanes;if(h!==0)for(a=a.entanglements,h&=o;0<h;){var g=31-sn(h),b=1<<g;o|=a[g],h&=~b}return wa=o,Af(),u}function BA(a,o){Ce=null,D.H=ou,o===ol||o===Df?(o=nE(),Je=3):o===dv?(o=nE(),Je=4):Je=o===Bv?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,In=o,ke===null&&(Ot=1,Wf(a,Zn(o,a.current)))}function qA(){var a=$n.current;return a===null?!0:(Ie&4194048)===Ie?nr===null:(Ie&62914560)===Ie||(Ie&536870912)!==0?a===nr:!1}function UA(){var a=D.H;return D.H=ou,a===null?ou:a}function HA(){var a=D.A;return D.A=SB,a}function od(){Ot=4,ii||(Ie&4194048)!==Ie&&$n.current!==null||(pl=!0),(oi&134217727)===0&&(ao&134217727)===0||st===null||ui(st,Ie,zn,!1)}function ug(a,o,u){var h=Xe;Xe|=2;var g=UA(),b=HA();(st!==a||Ie!==o)&&(ad=null,gl(a,o)),o=!1;var C=Ot;e:do try{if(Je!==0&&ke!==null){var P=ke,q=In;switch(Je){case 8:sg(),C=6;break e;case 3:case 2:case 9:case 6:$n.current===null&&(o=!0);var ee=Je;if(Je=0,In=null,yl(a,P,q,ee),u&&pl){C=0;break e}break;default:ee=Je,Je=0,In=null,yl(a,P,q,ee)}}EB(),C=Ot;break}catch(ie){BA(a,ie)}while(!0);return o&&a.shellSuspendCounter++,fa=Ki=null,Xe=h,D.H=g,D.A=b,ke===null&&(st=null,Ie=0,Af()),C}function EB(){for(;ke!==null;)FA(ke)}function AB(a,o){var u=Xe;Xe|=2;var h=UA(),g=HA();st!==a||Ie!==o?(ad=null,rd=Gt()+500,gl(a,o)):pl=vt(a,o);e:do try{if(Je!==0&&ke!==null){o=ke;var b=In;t:switch(Je){case 1:Je=0,In=null,yl(a,o,b,1);break;case 2:case 9:if(eE(b)){Je=0,In=null,GA(o);break}o=function(){Je!==2&&Je!==9||st!==a||(Je=7),Ur(a)},b.then(o,o);break e;case 3:Je=7;break e;case 4:Je=5;break e;case 7:eE(b)?(Je=0,In=null,GA(o)):(Je=0,In=null,yl(a,o,b,7));break;case 5:var C=null;switch(ke.tag){case 26:C=ke.memoizedState;case 5:case 27:var P=ke;if(C?MT(C):P.stateNode.complete){Je=0,In=null;var q=P.sibling;if(q!==null)ke=q;else{var ee=P.return;ee!==null?(ke=ee,ld(ee)):ke=null}break t}}Je=0,In=null,yl(a,o,b,5);break;case 6:Je=0,In=null,yl(a,o,b,6);break;case 8:sg(),Ot=6;break e;default:throw Error(r(462))}}TB();break}catch(ie){BA(a,ie)}while(!0);return fa=Ki=null,D.H=h,D.A=g,Xe=u,ke!==null?0:(st=null,Ie=0,Af(),Ot)}function TB(){for(;ke!==null&&!bt();)FA(ke)}function FA(a){var o=pA(a.alternate,a,wa);a.memoizedProps=a.pendingProps,o===null?ld(a):ke=o}function GA(a){var o=a,u=o.alternate;switch(o.tag){case 15:case 0:o=sA(u,o,o.pendingProps,o.type,void 0,Ie);break;case 11:o=sA(u,o,o.pendingProps,o.type.render,o.ref,Ie);break;case 5:_v(o);default:vA(u,o),o=ke=H_(o,wa),o=pA(u,o,wa)}a.memoizedProps=a.pendingProps,o===null?ld(a):ke=o}function yl(a,o,u,h){fa=Ki=null,_v(o),ll=null,Zs=0;var g=o.return;try{if(mB(a,g,o,u,Ie)){Ot=1,Wf(a,Zn(u,a.current)),ke=null;return}}catch(b){if(g!==null)throw ke=g,b;Ot=1,Wf(a,Zn(u,a.current)),ke=null;return}o.flags&32768?(Be||h===1?a=!0:pl||(Ie&536870912)!==0?a=!1:(ii=a=!0,(h===2||h===9||h===3||h===6)&&(h=$n.current,h!==null&&h.tag===13&&(h.flags|=16384))),VA(o,a)):ld(o)}function ld(a){var o=a;do{if((o.flags&32768)!==0){VA(o,ii);return}a=o.return;var u=yB(o.alternate,o,wa);if(u!==null){ke=u;return}if(o=o.sibling,o!==null){ke=o;return}ke=o=a}while(o!==null);Ot===0&&(Ot=5)}function VA(a,o){do{var u=bB(a.alternate,a);if(u!==null){u.flags&=32767,ke=u;return}if(u=a.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!o&&(a=a.sibling,a!==null)){ke=a;return}ke=a=u}while(a!==null);Ot=6,ke=null}function YA(a,o,u,h,g,b,C,P,q){a.cancelPendingCommit=null;do sd();while(zt!==0);if((Xe&6)!==0)throw Error(r(327));if(o!==null){if(o===a.current)throw Error(r(177));if(b=o.lanes|o.childLanes,b|=Qm,bn(a,u,b,C,P,q),a===st&&(ke=st=null,Ie=0),vl=o,si=a,Sa=u,ig=b,og=g,$A=h,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,NB(Ii,function(){return ZA(),null})):(a.callbackNode=null,a.callbackPriority=0),h=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||h){h=D.T,D.T=null,g=U.p,U.p=2,C=Xe,Xe|=4;try{xB(a,o,u)}finally{Xe=C,U.p=g,D.T=h}}zt=1,WA(),KA(),XA()}}function WA(){if(zt===1){zt=0;var a=si,o=vl,u=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||u){u=D.T,D.T=null;var h=U.p;U.p=2;var g=Xe;Xe|=4;try{jA(o,a);var b=wg,C=D_(a.containerInfo),P=b.focusedElem,q=b.selectionRange;if(C!==P&&P&&P.ownerDocument&&P_(P.ownerDocument.documentElement,P)){if(q!==null&&Vm(P)){var ee=q.start,ie=q.end;if(ie===void 0&&(ie=ee),"selectionStart"in P)P.selectionStart=ee,P.selectionEnd=Math.min(ie,P.value.length);else{var ce=P.ownerDocument||document,te=ce&&ce.defaultView||window;if(te.getSelection){var ne=te.getSelection(),we=P.textContent.length,Ee=Math.min(q.start,we),it=q.end===void 0?Ee:Math.min(q.end,we);!ne.extend&&Ee>it&&(C=it,it=Ee,Ee=C);var Q=R_(P,Ee),H=R_(P,it);if(Q&&H&&(ne.rangeCount!==1||ne.anchorNode!==Q.node||ne.anchorOffset!==Q.offset||ne.focusNode!==H.node||ne.focusOffset!==H.offset)){var J=ce.createRange();J.setStart(Q.node,Q.offset),ne.removeAllRanges(),Ee>it?(ne.addRange(J),ne.extend(H.node,H.offset)):(J.setEnd(H.node,H.offset),ne.addRange(J))}}}}for(ce=[],ne=P;ne=ne.parentNode;)ne.nodeType===1&&ce.push({element:ne,left:ne.scrollLeft,top:ne.scrollTop});for(typeof P.focus=="function"&&P.focus(),P=0;P<ce.length;P++){var ue=ce[P];ue.element.scrollLeft=ue.left,ue.element.scrollTop=ue.top}}xd=!!xg,wg=xg=null}finally{Xe=g,U.p=h,D.T=u}}a.current=o,zt=2}}function KA(){if(zt===2){zt=0;var a=si,o=vl,u=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||u){u=D.T,D.T=null;var h=U.p;U.p=2;var g=Xe;Xe|=4;try{OA(a,o.alternate,o)}finally{Xe=g,U.p=h,D.T=u}}zt=3}}function XA(){if(zt===4||zt===3){zt=0,Wn();var a=si,o=vl,u=Sa,h=$A;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?zt=5:(zt=0,vl=si=null,QA(a,a.pendingLanes));var g=a.pendingLanes;if(g===0&&(li=null),yr(u),o=o.stateNode,pn&&typeof pn.onCommitFiberRoot=="function")try{pn.onCommitFiberRoot(zi,o,void 0,(o.current.flags&128)===128)}catch{}if(h!==null){o=D.T,g=U.p,U.p=2,D.T=null;try{for(var b=a.onRecoverableError,C=0;C<h.length;C++){var P=h[C];b(P.value,{componentStack:P.stack})}}finally{D.T=o,U.p=g}}(Sa&3)!==0&&sd(),Ur(a),g=a.pendingLanes,(u&261930)!==0&&(g&42)!==0?a===lg?mu++:(mu=0,lg=a):mu=0,vu(0)}}function QA(a,o){(a.pooledCacheLanes&=o)===0&&(o=a.pooledCache,o!=null&&(a.pooledCache=null,Xs(o)))}function sd(){return WA(),KA(),XA(),ZA()}function ZA(){if(zt!==5)return!1;var a=si,o=ig;ig=0;var u=yr(Sa),h=D.T,g=U.p;try{U.p=32>u?32:u,D.T=null,u=og,og=null;var b=si,C=Sa;if(zt=0,vl=si=null,Sa=0,(Xe&6)!==0)throw Error(r(331));var P=Xe;if(Xe|=4,PA(b.current),MA(b,b.current,C,u),Xe=P,vu(0,!1),pn&&typeof pn.onPostCommitFiberRoot=="function")try{pn.onPostCommitFiberRoot(zi,b)}catch{}return!0}finally{U.p=g,D.T=h,QA(a,o)}}function JA(a,o,u){o=Zn(u,o),o=zv(a.stateNode,o,2),a=ti(a,o,2),a!==null&&(xt(a,2),Ur(a))}function et(a,o,u){if(a.tag===3)JA(a,a,u);else for(;o!==null;){if(o.tag===3){JA(o,a,u);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(li===null||!li.has(h))){a=Zn(u,a),u=eA(2),h=ti(o,u,2),h!==null&&(tA(u,h,o,a),xt(h,2),Ur(h));break}}o=o.return}}function cg(a,o,u){var h=a.pingCache;if(h===null){h=a.pingCache=new OB;var g=new Set;h.set(o,g)}else g=h.get(o),g===void 0&&(g=new Set,h.set(o,g));g.has(u)||(ng=!0,g.add(u),a=jB.bind(null,a,o,u),o.then(a,a))}function jB(a,o,u){var h=a.pingCache;h!==null&&h.delete(o),a.pingedLanes|=a.suspendedLanes&u,a.warmLanes&=~u,st===a&&(Ie&u)===u&&(Ot===4||Ot===3&&(Ie&62914560)===Ie&&300>Gt()-nd?(Xe&2)===0&&gl(a,0):rg|=u,ml===Ie&&(ml=0)),Ur(a)}function eT(a,o){o===0&&(o=un()),a=Vi(a,o),a!==null&&(xt(a,o),Ur(a))}function CB(a){var o=a.memoizedState,u=0;o!==null&&(u=o.retryLane),eT(a,u)}function MB(a,o){var u=0;switch(a.tag){case 31:case 13:var h=a.stateNode,g=a.memoizedState;g!==null&&(u=g.retryLane);break;case 19:h=a.stateNode;break;case 22:h=a.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(o),eT(a,u)}function NB(a,o){return $r(a,o)}var ud=null,bl=null,fg=!1,cd=!1,dg=!1,ci=0;function Ur(a){a!==bl&&a.next===null&&(bl===null?ud=bl=a:bl=bl.next=a),cd=!0,fg||(fg=!0,PB())}function vu(a,o){if(!dg&&cd){dg=!0;do for(var u=!1,h=ud;h!==null;){if(a!==0){var g=h.pendingLanes;if(g===0)var b=0;else{var C=h.suspendedLanes,P=h.pingedLanes;b=(1<<31-sn(42|a)+1)-1,b&=g&~(C&~P),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(u=!0,aT(h,b))}else b=Ie,b=Te(h,h===st?b:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(b&3)===0||vt(h,b)||(u=!0,aT(h,b));h=h.next}while(u);dg=!1}}function RB(){tT()}function tT(){cd=fg=!1;var a=0;ci!==0&&HB()&&(a=ci);for(var o=Gt(),u=null,h=ud;h!==null;){var g=h.next,b=nT(h,o);b===0?(h.next=null,u===null?ud=g:u.next=g,g===null&&(bl=u)):(u=h,(a!==0||(b&3)!==0)&&(cd=!0)),h=g}zt!==0&&zt!==5||vu(a),ci!==0&&(ci=0)}function nT(a,o){for(var u=a.suspendedLanes,h=a.pingedLanes,g=a.expirationTimes,b=a.pendingLanes&-62914561;0<b;){var C=31-sn(b),P=1<<C,q=g[C];q===-1?((P&u)===0||(P&h)!==0)&&(g[C]=Vt(P,o)):q<=o&&(a.expiredLanes|=P),b&=~P}if(o=st,u=Ie,u=Te(a,a===o?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),h=a.callbackNode,u===0||a===o&&(Je===2||Je===9)||a.cancelPendingCommit!==null)return h!==null&&h!==null&&Pn(h),a.callbackNode=null,a.callbackPriority=0;if((u&3)===0||vt(a,u)){if(o=u&-u,o===a.callbackPriority)return o;switch(h!==null&&Pn(h),yr(u)){case 2:case 8:u=hf;break;case 32:u=Ii;break;case 268435456:u=ia;break;default:u=Ii}return h=rT.bind(null,a),u=$r(u,h),a.callbackPriority=o,a.callbackNode=u,o}return h!==null&&h!==null&&Pn(h),a.callbackPriority=2,a.callbackNode=null,2}function rT(a,o){if(zt!==0&&zt!==5)return a.callbackNode=null,a.callbackPriority=0,null;var u=a.callbackNode;if(sd()&&a.callbackNode!==u)return null;var h=Ie;return h=Te(a,a===st?h:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),h===0?null:(IA(a,h,o),nT(a,Gt()),a.callbackNode!=null&&a.callbackNode===u?rT.bind(null,a):null)}function aT(a,o){if(sd())return null;IA(a,o,!0)}function PB(){GB(function(){(Xe&6)!==0?$r(Li,RB):tT()})}function hg(){if(ci===0){var a=al;a===0&&(a=Lo,Lo<<=1,(Lo&261888)===0&&(Lo=256)),ci=a}return ci}function iT(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:yf(""+a)}function oT(a,o){var u=o.ownerDocument.createElement("input");return u.name=o.name,u.value=o.value,a.id&&u.setAttribute("form",a.id),o.parentNode.insertBefore(u,o),a=new FormData(a),u.parentNode.removeChild(u),a}function DB(a,o,u,h,g){if(o==="submit"&&u&&u.stateNode===g){var b=iT((g[Sn]||null).action),C=h.submitter;C&&(o=(o=C[Sn]||null)?iT(o.formAction):C.getAttribute("formAction"),o!==null&&(b=o,C=null));var P=new Sf("action","action",null,h,g);a.push({event:P,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(ci!==0){var q=C?oT(g,C):new FormData(g);Pv(u,{pending:!0,data:q,method:g.method,action:b},null,q)}}else typeof b=="function"&&(P.preventDefault(),q=C?oT(g,C):new FormData(g),Pv(u,{pending:!0,data:q,method:g.method,action:b},b,q))},currentTarget:g}]})}}for(var pg=0;pg<Xm.length;pg++){var mg=Xm[pg],kB=mg.toLowerCase(),$B=mg[0].toUpperCase()+mg.slice(1);br(kB,"on"+$B)}br(L_,"onAnimationEnd"),br(I_,"onAnimationIteration"),br(z_,"onAnimationStart"),br("dblclick","onDoubleClick"),br("focusin","onFocus"),br("focusout","onBlur"),br(Z5,"onTransitionRun"),br(J5,"onTransitionStart"),br(eB,"onTransitionCancel"),br(B_,"onTransitionEnd"),Fo("onMouseEnter",["mouseout","mouseover"]),Fo("onMouseLeave",["mouseout","mouseover"]),Fo("onPointerEnter",["pointerout","pointerover"]),Fo("onPointerLeave",["pointerout","pointerover"]),Ui("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ui("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ui("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ui("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ui("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ui("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gu="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(" "),LB=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(gu));function lT(a,o){o=(o&4)!==0;for(var u=0;u<a.length;u++){var h=a[u],g=h.event;h=h.listeners;e:{var b=void 0;if(o)for(var C=h.length-1;0<=C;C--){var P=h[C],q=P.instance,ee=P.currentTarget;if(P=P.listener,q!==b&&g.isPropagationStopped())break e;b=P,g.currentTarget=ee;try{b(g)}catch(ie){Ef(ie)}g.currentTarget=null,b=q}else for(C=0;C<h.length;C++){if(P=h[C],q=P.instance,ee=P.currentTarget,P=P.listener,q!==b&&g.isPropagationStopped())break e;b=P,g.currentTarget=ee;try{b(g)}catch(ie){Ef(ie)}g.currentTarget=null,b=q}}}}function $e(a,o){var u=o[jm];u===void 0&&(u=o[jm]=new Set);var h=a+"__bubble";u.has(h)||(sT(o,a,2,!1),u.add(h))}function vg(a,o,u){var h=0;o&&(h|=4),sT(u,a,h,o)}var fd="_reactListening"+Math.random().toString(36).slice(2);function gg(a){if(!a[fd]){a[fd]=!0,t_.forEach(function(u){u!=="selectionchange"&&(LB.has(u)||vg(u,!1,a),vg(u,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[fd]||(o[fd]=!0,vg("selectionchange",!1,o))}}function sT(a,o,u,h){switch(LT(o)){case 2:var g=fq;break;case 8:g=dq;break;default:g=Rg}u=g.bind(null,o,u,a),g=void 0,!Lm||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(g=!0),h?g!==void 0?a.addEventListener(o,u,{capture:!0,passive:g}):a.addEventListener(o,u,!0):g!==void 0?a.addEventListener(o,u,{passive:g}):a.addEventListener(o,u,!1)}function yg(a,o,u,h,g){var b=h;if((o&1)===0&&(o&2)===0&&h!==null)e:for(;;){if(h===null)return;var C=h.tag;if(C===3||C===4){var P=h.stateNode.containerInfo;if(P===g)break;if(C===4)for(C=h.return;C!==null;){var q=C.tag;if((q===3||q===4)&&C.stateNode.containerInfo===g)return;C=C.return}for(;P!==null;){if(C=qo(P),C===null)return;if(q=C.tag,q===5||q===6||q===26||q===27){h=b=C;continue e}P=P.parentNode}}h=h.return}h_(function(){var ee=b,ie=km(u),ce=[];e:{var te=q_.get(a);if(te!==void 0){var ne=Sf,we=a;switch(a){case"keypress":if(xf(u)===0)break e;case"keydown":case"keyup":ne=M5;break;case"focusin":we="focus",ne=qm;break;case"focusout":we="blur",ne=qm;break;case"beforeblur":case"afterblur":ne=qm;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ne=v_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=y5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=P5;break;case L_:case I_:case z_:ne=w5;break;case B_:ne=k5;break;case"scroll":case"scrollend":ne=v5;break;case"wheel":ne=L5;break;case"copy":case"cut":case"paste":ne=O5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=y_;break;case"toggle":case"beforetoggle":ne=z5}var Ee=(o&4)!==0,it=!Ee&&(a==="scroll"||a==="scrollend"),Q=Ee?te!==null?te+"Capture":null:te;Ee=[];for(var H=ee,J;H!==null;){var ue=H;if(J=ue.stateNode,ue=ue.tag,ue!==5&&ue!==26&&ue!==27||J===null||Q===null||(ue=zs(H,Q),ue!=null&&Ee.push(yu(H,ue,J))),it)break;H=H.return}0<Ee.length&&(te=new ne(te,we,null,u,ie),ce.push({event:te,listeners:Ee}))}}if((o&7)===0){e:{if(te=a==="mouseover"||a==="pointerover",ne=a==="mouseout"||a==="pointerout",te&&u!==Dm&&(we=u.relatedTarget||u.fromElement)&&(qo(we)||we[Bo]))break e;if((ne||te)&&(te=ie.window===ie?ie:(te=ie.ownerDocument)?te.defaultView||te.parentWindow:window,ne?(we=u.relatedTarget||u.toElement,ne=ee,we=we?qo(we):null,we!==null&&(it=l(we),Ee=we.tag,we!==it||Ee!==5&&Ee!==27&&Ee!==6)&&(we=null)):(ne=null,we=ee),ne!==we)){if(Ee=v_,ue="onMouseLeave",Q="onMouseEnter",H="mouse",(a==="pointerout"||a==="pointerover")&&(Ee=y_,ue="onPointerLeave",Q="onPointerEnter",H="pointer"),it=ne==null?te:Is(ne),J=we==null?te:Is(we),te=new Ee(ue,H+"leave",ne,u,ie),te.target=it,te.relatedTarget=J,ue=null,qo(ie)===ee&&(Ee=new Ee(Q,H+"enter",we,u,ie),Ee.target=J,Ee.relatedTarget=it,ue=Ee),it=ue,ne&&we)t:{for(Ee=IB,Q=ne,H=we,J=0,ue=Q;ue;ue=Ee(ue))J++;ue=0;for(var _e=H;_e;_e=Ee(_e))ue++;for(;0<J-ue;)Q=Ee(Q),J--;for(;0<ue-J;)H=Ee(H),ue--;for(;J--;){if(Q===H||H!==null&&Q===H.alternate){Ee=Q;break t}Q=Ee(Q),H=Ee(H)}Ee=null}else Ee=null;ne!==null&&uT(ce,te,ne,Ee,!1),we!==null&&it!==null&&uT(ce,it,we,Ee,!0)}}e:{if(te=ee?Is(ee):window,ne=te.nodeName&&te.nodeName.toLowerCase(),ne==="select"||ne==="input"&&te.type==="file")var Fe=A_;else if(__(te))if(T_)Fe=K5;else{Fe=Y5;var Se=V5}else ne=te.nodeName,!ne||ne.toLowerCase()!=="input"||te.type!=="checkbox"&&te.type!=="radio"?ee&&Pm(ee.elementType)&&(Fe=A_):Fe=W5;if(Fe&&(Fe=Fe(a,ee))){E_(ce,Fe,u,ie);break e}Se&&Se(a,te,ee),a==="focusout"&&ee&&te.type==="number"&&ee.memoizedProps.value!=null&&Rm(te,"number",te.value)}switch(Se=ee?Is(ee):window,a){case"focusin":(__(Se)||Se.contentEditable==="true")&&(Xo=Se,Ym=ee,Ys=null);break;case"focusout":Ys=Ym=Xo=null;break;case"mousedown":Wm=!0;break;case"contextmenu":case"mouseup":case"dragend":Wm=!1,k_(ce,u,ie);break;case"selectionchange":if(Q5)break;case"keydown":case"keyup":k_(ce,u,ie)}var Re;if(Hm)e:{switch(a){case"compositionstart":var ze="onCompositionStart";break e;case"compositionend":ze="onCompositionEnd";break e;case"compositionupdate":ze="onCompositionUpdate";break e}ze=void 0}else Ko?S_(a,u)&&(ze="onCompositionEnd"):a==="keydown"&&u.keyCode===229&&(ze="onCompositionStart");ze&&(b_&&u.locale!=="ko"&&(Ko||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&Ko&&(Re=p_()):(Wa=ie,Im="value"in Wa?Wa.value:Wa.textContent,Ko=!0)),Se=dd(ee,ze),0<Se.length&&(ze=new g_(ze,a,null,u,ie),ce.push({event:ze,listeners:Se}),Re?ze.data=Re:(Re=O_(u),Re!==null&&(ze.data=Re)))),(Re=q5?U5(a,u):H5(a,u))&&(ze=dd(ee,"onBeforeInput"),0<ze.length&&(Se=new g_("onBeforeInput","beforeinput",null,u,ie),ce.push({event:Se,listeners:ze}),Se.data=Re)),DB(ce,a,ee,u,ie)}lT(ce,o)})}function yu(a,o,u){return{instance:a,listener:o,currentTarget:u}}function dd(a,o){for(var u=o+"Capture",h=[];a!==null;){var g=a,b=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||b===null||(g=zs(a,u),g!=null&&h.unshift(yu(a,g,b)),g=zs(a,o),g!=null&&h.push(yu(a,g,b))),a.tag===3)return h;a=a.return}return[]}function IB(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function uT(a,o,u,h,g){for(var b=o._reactName,C=[];u!==null&&u!==h;){var P=u,q=P.alternate,ee=P.stateNode;if(P=P.tag,q!==null&&q===h)break;P!==5&&P!==26&&P!==27||ee===null||(q=ee,g?(ee=zs(u,b),ee!=null&&C.unshift(yu(u,ee,q))):g||(ee=zs(u,b),ee!=null&&C.push(yu(u,ee,q)))),u=u.return}C.length!==0&&a.push({event:o,listeners:C})}var zB=/\r\n?/g,BB=/\u0000|\uFFFD/g;function cT(a){return(typeof a=="string"?a:""+a).replace(zB,`
49
- `).replace(BB,"")}function fT(a,o){return o=cT(o),cT(a)===o}function at(a,o,u,h,g,b){switch(u){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||Vo(a,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&Vo(a,""+h);break;case"className":vf(a,"class",h);break;case"tabIndex":vf(a,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":vf(a,u,h);break;case"style":f_(a,h,b);break;case"data":if(o!=="object"){vf(a,"data",h);break}case"src":case"href":if(h===""&&(o!=="a"||u!=="href")){a.removeAttribute(u);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){a.removeAttribute(u);break}h=yf(""+h),a.setAttribute(u,h);break;case"action":case"formAction":if(typeof h=="function"){a.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof b=="function"&&(u==="formAction"?(o!=="input"&&at(a,o,"name",g.name,g,null),at(a,o,"formEncType",g.formEncType,g,null),at(a,o,"formMethod",g.formMethod,g,null),at(a,o,"formTarget",g.formTarget,g,null)):(at(a,o,"encType",g.encType,g,null),at(a,o,"method",g.method,g,null),at(a,o,"target",g.target,g,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){a.removeAttribute(u);break}h=yf(""+h),a.setAttribute(u,h);break;case"onClick":h!=null&&(a.onclick=la);break;case"onScroll":h!=null&&$e("scroll",a);break;case"onScrollEnd":h!=null&&$e("scrollend",a);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(g.children!=null)throw Error(r(60));a.innerHTML=u}}break;case"multiple":a.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":a.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){a.removeAttribute("xlink:href");break}u=yf(""+h),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?a.setAttribute(u,""+h):a.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?a.setAttribute(u,""):a.removeAttribute(u);break;case"capture":case"download":h===!0?a.setAttribute(u,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?a.setAttribute(u,h):a.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?a.setAttribute(u,h):a.removeAttribute(u);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?a.removeAttribute(u):a.setAttribute(u,h);break;case"popover":$e("beforetoggle",a),$e("toggle",a),mf(a,"popover",h);break;case"xlinkActuate":oa(a,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":oa(a,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":oa(a,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":oa(a,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":oa(a,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":oa(a,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":oa(a,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":oa(a,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":oa(a,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":mf(a,"is",h);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=p5.get(u)||u,mf(a,u,h))}}function bg(a,o,u,h,g,b){switch(u){case"style":f_(a,h,b);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(g.children!=null)throw Error(r(60));a.innerHTML=u}}break;case"children":typeof h=="string"?Vo(a,h):(typeof h=="number"||typeof h=="bigint")&&Vo(a,""+h);break;case"onScroll":h!=null&&$e("scroll",a);break;case"onScrollEnd":h!=null&&$e("scrollend",a);break;case"onClick":h!=null&&(a.onclick=la);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!n_.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(g=u.endsWith("Capture"),o=u.slice(2,g?u.length-7:void 0),b=a[Sn]||null,b=b!=null?b[u]:null,typeof b=="function"&&a.removeEventListener(o,b,g),typeof h=="function")){typeof b!="function"&&b!==null&&(u in a?a[u]=null:a.hasAttribute(u)&&a.removeAttribute(u)),a.addEventListener(o,h,g);break e}u in a?a[u]=h:h===!0?a.setAttribute(u,""):mf(a,u,h)}}}function nn(a,o,u){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$e("error",a),$e("load",a);var h=!1,g=!1,b;for(b in u)if(u.hasOwnProperty(b)){var C=u[b];if(C!=null)switch(b){case"src":h=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:at(a,o,b,C,u,null)}}g&&at(a,o,"srcSet",u.srcSet,u,null),h&&at(a,o,"src",u.src,u,null);return;case"input":$e("invalid",a);var P=b=C=g=null,q=null,ee=null;for(h in u)if(u.hasOwnProperty(h)){var ie=u[h];if(ie!=null)switch(h){case"name":g=ie;break;case"type":C=ie;break;case"checked":q=ie;break;case"defaultChecked":ee=ie;break;case"value":b=ie;break;case"defaultValue":P=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(r(137,o));break;default:at(a,o,h,ie,u,null)}}l_(a,b,P,q,ee,C,g,!1);return;case"select":$e("invalid",a),h=C=b=null;for(g in u)if(u.hasOwnProperty(g)&&(P=u[g],P!=null))switch(g){case"value":b=P;break;case"defaultValue":C=P;break;case"multiple":h=P;default:at(a,o,g,P,u,null)}o=b,u=C,a.multiple=!!h,o!=null?Go(a,!!h,o,!1):u!=null&&Go(a,!!h,u,!0);return;case"textarea":$e("invalid",a),b=g=h=null;for(C in u)if(u.hasOwnProperty(C)&&(P=u[C],P!=null))switch(C){case"value":h=P;break;case"defaultValue":g=P;break;case"children":b=P;break;case"dangerouslySetInnerHTML":if(P!=null)throw Error(r(91));break;default:at(a,o,C,P,u,null)}u_(a,h,g,b);return;case"option":for(q in u)if(u.hasOwnProperty(q)&&(h=u[q],h!=null))switch(q){case"selected":a.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:at(a,o,q,h,u,null)}return;case"dialog":$e("beforetoggle",a),$e("toggle",a),$e("cancel",a),$e("close",a);break;case"iframe":case"object":$e("load",a);break;case"video":case"audio":for(h=0;h<gu.length;h++)$e(gu[h],a);break;case"image":$e("error",a),$e("load",a);break;case"details":$e("toggle",a);break;case"embed":case"source":case"link":$e("error",a),$e("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ee in u)if(u.hasOwnProperty(ee)&&(h=u[ee],h!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:at(a,o,ee,h,u,null)}return;default:if(Pm(o)){for(ie in u)u.hasOwnProperty(ie)&&(h=u[ie],h!==void 0&&bg(a,o,ie,h,u,void 0));return}}for(P in u)u.hasOwnProperty(P)&&(h=u[P],h!=null&&at(a,o,P,h,u,null))}function qB(a,o,u,h){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,b=null,C=null,P=null,q=null,ee=null,ie=null;for(ne in u){var ce=u[ne];if(u.hasOwnProperty(ne)&&ce!=null)switch(ne){case"checked":break;case"value":break;case"defaultValue":q=ce;default:h.hasOwnProperty(ne)||at(a,o,ne,null,h,ce)}}for(var te in h){var ne=h[te];if(ce=u[te],h.hasOwnProperty(te)&&(ne!=null||ce!=null))switch(te){case"type":b=ne;break;case"name":g=ne;break;case"checked":ee=ne;break;case"defaultChecked":ie=ne;break;case"value":C=ne;break;case"defaultValue":P=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(137,o));break;default:ne!==ce&&at(a,o,te,ne,h,ce)}}Nm(a,C,P,q,ee,ie,b,g);return;case"select":ne=C=P=te=null;for(b in u)if(q=u[b],u.hasOwnProperty(b)&&q!=null)switch(b){case"value":break;case"multiple":ne=q;default:h.hasOwnProperty(b)||at(a,o,b,null,h,q)}for(g in h)if(b=h[g],q=u[g],h.hasOwnProperty(g)&&(b!=null||q!=null))switch(g){case"value":te=b;break;case"defaultValue":P=b;break;case"multiple":C=b;default:b!==q&&at(a,o,g,b,h,q)}o=P,u=C,h=ne,te!=null?Go(a,!!u,te,!1):!!h!=!!u&&(o!=null?Go(a,!!u,o,!0):Go(a,!!u,u?[]:"",!1));return;case"textarea":ne=te=null;for(P in u)if(g=u[P],u.hasOwnProperty(P)&&g!=null&&!h.hasOwnProperty(P))switch(P){case"value":break;case"children":break;default:at(a,o,P,null,h,g)}for(C in h)if(g=h[C],b=u[C],h.hasOwnProperty(C)&&(g!=null||b!=null))switch(C){case"value":te=g;break;case"defaultValue":ne=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:g!==b&&at(a,o,C,g,h,b)}s_(a,te,ne);return;case"option":for(var we in u)if(te=u[we],u.hasOwnProperty(we)&&te!=null&&!h.hasOwnProperty(we))switch(we){case"selected":a.selected=!1;break;default:at(a,o,we,null,h,te)}for(q in h)if(te=h[q],ne=u[q],h.hasOwnProperty(q)&&te!==ne&&(te!=null||ne!=null))switch(q){case"selected":a.selected=te&&typeof te!="function"&&typeof te!="symbol";break;default:at(a,o,q,te,h,ne)}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 Ee in u)te=u[Ee],u.hasOwnProperty(Ee)&&te!=null&&!h.hasOwnProperty(Ee)&&at(a,o,Ee,null,h,te);for(ee in h)if(te=h[ee],ne=u[ee],h.hasOwnProperty(ee)&&te!==ne&&(te!=null||ne!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(r(137,o));break;default:at(a,o,ee,te,h,ne)}return;default:if(Pm(o)){for(var it in u)te=u[it],u.hasOwnProperty(it)&&te!==void 0&&!h.hasOwnProperty(it)&&bg(a,o,it,void 0,h,te);for(ie in h)te=h[ie],ne=u[ie],!h.hasOwnProperty(ie)||te===ne||te===void 0&&ne===void 0||bg(a,o,ie,te,h,ne);return}}for(var Q in u)te=u[Q],u.hasOwnProperty(Q)&&te!=null&&!h.hasOwnProperty(Q)&&at(a,o,Q,null,h,te);for(ce in h)te=h[ce],ne=u[ce],!h.hasOwnProperty(ce)||te===ne||te==null&&ne==null||at(a,o,ce,te,h,ne)}function dT(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function UB(){if(typeof performance.getEntriesByType=="function"){for(var a=0,o=0,u=performance.getEntriesByType("resource"),h=0;h<u.length;h++){var g=u[h],b=g.transferSize,C=g.initiatorType,P=g.duration;if(b&&P&&dT(C)){for(C=0,P=g.responseEnd,h+=1;h<u.length;h++){var q=u[h],ee=q.startTime;if(ee>P)break;var ie=q.transferSize,ce=q.initiatorType;ie&&dT(ce)&&(q=q.responseEnd,C+=ie*(q<P?1:(P-ee)/(q-ee)))}if(--h,o+=8*(b+C)/(g.duration/1e3),a++,10<a)break}}if(0<a)return o/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var xg=null,wg=null;function hd(a){return a.nodeType===9?a:a.ownerDocument}function hT(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function pT(a,o){if(a===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&o==="foreignObject"?0:a}function Sg(a,o){return a==="textarea"||a==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Og=null;function HB(){var a=window.event;return a&&a.type==="popstate"?a===Og?!1:(Og=a,!0):(Og=null,!1)}var mT=typeof setTimeout=="function"?setTimeout:void 0,FB=typeof clearTimeout=="function"?clearTimeout:void 0,vT=typeof Promise=="function"?Promise:void 0,GB=typeof queueMicrotask=="function"?queueMicrotask:typeof vT<"u"?function(a){return vT.resolve(null).then(a).catch(VB)}:mT;function VB(a){setTimeout(function(){throw a})}function fi(a){return a==="head"}function gT(a,o){var u=o,h=0;do{var g=u.nextSibling;if(a.removeChild(u),g&&g.nodeType===8)if(u=g.data,u==="/$"||u==="/&"){if(h===0){a.removeChild(g),Ol(o);return}h--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")h++;else if(u==="html")bu(a.ownerDocument.documentElement);else if(u==="head"){u=a.ownerDocument.head,bu(u);for(var b=u.firstChild;b;){var C=b.nextSibling,P=b.nodeName;b[Ls]||P==="SCRIPT"||P==="STYLE"||P==="LINK"&&b.rel.toLowerCase()==="stylesheet"||u.removeChild(b),b=C}}else u==="body"&&bu(a.ownerDocument.body);u=g}while(u);Ol(o)}function yT(a,o){var u=a;a=0;do{var h=u.nextSibling;if(u.nodeType===1?o?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(o?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),h&&h.nodeType===8)if(u=h.data,u==="/$"){if(a===0)break;a--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||a++;u=h}while(u)}function _g(a){var o=a.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var u=o;switch(o=o.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":_g(u),Cm(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}a.removeChild(u)}}function YB(a,o,u,h){for(;a.nodeType===1;){var g=u;if(a.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(h){if(!a[Ls])switch(o){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(b=a.getAttribute("rel"),b==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(b!==g.rel||a.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||a.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||a.getAttribute("title")!==(g.title==null?null:g.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(b=a.getAttribute("src"),(b!==(g.src==null?null:g.src)||a.getAttribute("type")!==(g.type==null?null:g.type)||a.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&b&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(o==="input"&&a.type==="hidden"){var b=g.name==null?null:""+g.name;if(g.type==="hidden"&&a.getAttribute("name")===b)return a}else return a;if(a=rr(a.nextSibling),a===null)break}return null}function WB(a,o,u){if(o==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!u||(a=rr(a.nextSibling),a===null))return null;return a}function bT(a,o){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!o||(a=rr(a.nextSibling),a===null))return null;return a}function Eg(a){return a.data==="$?"||a.data==="$~"}function Ag(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function KB(a,o){var u=a.ownerDocument;if(a.data==="$~")a._reactRetry=o;else if(a.data!=="$?"||u.readyState!=="loading")o();else{var h=function(){o(),u.removeEventListener("DOMContentLoaded",h)};u.addEventListener("DOMContentLoaded",h),a._reactRetry=h}}function rr(a){for(;a!=null;a=a.nextSibling){var o=a.nodeType;if(o===1||o===3)break;if(o===8){if(o=a.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;if(o==="/$"||o==="/&")return null}}return a}var Tg=null;function xT(a){a=a.nextSibling;for(var o=0;a;){if(a.nodeType===8){var u=a.data;if(u==="/$"||u==="/&"){if(o===0)return rr(a.nextSibling);o--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||o++}a=a.nextSibling}return null}function wT(a){a=a.previousSibling;for(var o=0;a;){if(a.nodeType===8){var u=a.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(o===0)return a;o--}else u!=="/$"&&u!=="/&"||o++}a=a.previousSibling}return null}function ST(a,o,u){switch(o=hd(u),a){case"html":if(a=o.documentElement,!a)throw Error(r(452));return a;case"head":if(a=o.head,!a)throw Error(r(453));return a;case"body":if(a=o.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function bu(a){for(var o=a.attributes;o.length;)a.removeAttributeNode(o[0]);Cm(a)}var ar=new Map,OT=new Set;function pd(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var Oa=U.d;U.d={f:XB,r:QB,D:ZB,C:JB,L:eq,m:tq,X:rq,S:nq,M:aq};function XB(){var a=Oa.f(),o=id();return a||o}function QB(a){var o=Uo(a);o!==null&&o.tag===5&&o.type==="form"?BE(o):Oa.r(a)}var xl=typeof document>"u"?null:document;function _T(a,o,u){var h=xl;if(h&&typeof o=="string"&&o){var g=Xn(o);g='link[rel="'+a+'"][href="'+g+'"]',typeof u=="string"&&(g+='[crossorigin="'+u+'"]'),OT.has(g)||(OT.add(g),a={rel:a,crossOrigin:u,href:o},h.querySelector(g)===null&&(o=h.createElement("link"),nn(o,"link",a),Yt(o),h.head.appendChild(o)))}}function ZB(a){Oa.D(a),_T("dns-prefetch",a,null)}function JB(a,o){Oa.C(a,o),_T("preconnect",a,o)}function eq(a,o,u){Oa.L(a,o,u);var h=xl;if(h&&a&&o){var g='link[rel="preload"][as="'+Xn(o)+'"]';o==="image"&&u&&u.imageSrcSet?(g+='[imagesrcset="'+Xn(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(g+='[imagesizes="'+Xn(u.imageSizes)+'"]')):g+='[href="'+Xn(a)+'"]';var b=g;switch(o){case"style":b=wl(a);break;case"script":b=Sl(a)}ar.has(b)||(a=p({rel:"preload",href:o==="image"&&u&&u.imageSrcSet?void 0:a,as:o},u),ar.set(b,a),h.querySelector(g)!==null||o==="style"&&h.querySelector(xu(b))||o==="script"&&h.querySelector(wu(b))||(o=h.createElement("link"),nn(o,"link",a),Yt(o),h.head.appendChild(o)))}}function tq(a,o){Oa.m(a,o);var u=xl;if(u&&a){var h=o&&typeof o.as=="string"?o.as:"script",g='link[rel="modulepreload"][as="'+Xn(h)+'"][href="'+Xn(a)+'"]',b=g;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=Sl(a)}if(!ar.has(b)&&(a=p({rel:"modulepreload",href:a},o),ar.set(b,a),u.querySelector(g)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(wu(b)))return}h=u.createElement("link"),nn(h,"link",a),Yt(h),u.head.appendChild(h)}}}function nq(a,o,u){Oa.S(a,o,u);var h=xl;if(h&&a){var g=Ho(h).hoistableStyles,b=wl(a);o=o||"default";var C=g.get(b);if(!C){var P={loading:0,preload:null};if(C=h.querySelector(xu(b)))P.loading=5;else{a=p({rel:"stylesheet",href:a,"data-precedence":o},u),(u=ar.get(b))&&jg(a,u);var q=C=h.createElement("link");Yt(q),nn(q,"link",a),q._p=new Promise(function(ee,ie){q.onload=ee,q.onerror=ie}),q.addEventListener("load",function(){P.loading|=1}),q.addEventListener("error",function(){P.loading|=2}),P.loading|=4,md(C,o,h)}C={type:"stylesheet",instance:C,count:1,state:P},g.set(b,C)}}}function rq(a,o){Oa.X(a,o);var u=xl;if(u&&a){var h=Ho(u).hoistableScripts,g=Sl(a),b=h.get(g);b||(b=u.querySelector(wu(g)),b||(a=p({src:a,async:!0},o),(o=ar.get(g))&&Cg(a,o),b=u.createElement("script"),Yt(b),nn(b,"link",a),u.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(g,b))}}function aq(a,o){Oa.M(a,o);var u=xl;if(u&&a){var h=Ho(u).hoistableScripts,g=Sl(a),b=h.get(g);b||(b=u.querySelector(wu(g)),b||(a=p({src:a,async:!0,type:"module"},o),(o=ar.get(g))&&Cg(a,o),b=u.createElement("script"),Yt(b),nn(b,"link",a),u.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(g,b))}}function ET(a,o,u,h){var g=(g=ge.current)?pd(g):null;if(!g)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(o=wl(u.href),u=Ho(g).hoistableStyles,h=u.get(o),h||(h={type:"style",instance:null,count:0,state:null},u.set(o,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){a=wl(u.href);var b=Ho(g).hoistableStyles,C=b.get(a);if(C||(g=g.ownerDocument||g,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(a,C),(b=g.querySelector(xu(a)))&&!b._p&&(C.instance=b,C.state.loading=5),ar.has(a)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},ar.set(a,u),b||iq(g,a,u,C.state))),o&&h===null)throw Error(r(528,""));return C}if(o&&h!==null)throw Error(r(529,""));return null;case"script":return o=u.async,u=u.src,typeof u=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=Sl(u),u=Ho(g).hoistableScripts,h=u.get(o),h||(h={type:"script",instance:null,count:0,state:null},u.set(o,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function wl(a){return'href="'+Xn(a)+'"'}function xu(a){return'link[rel="stylesheet"]['+a+"]"}function AT(a){return p({},a,{"data-precedence":a.precedence,precedence:null})}function iq(a,o,u,h){a.querySelector('link[rel="preload"][as="style"]['+o+"]")?h.loading=1:(o=a.createElement("link"),h.preload=o,o.addEventListener("load",function(){return h.loading|=1}),o.addEventListener("error",function(){return h.loading|=2}),nn(o,"link",u),Yt(o),a.head.appendChild(o))}function Sl(a){return'[src="'+Xn(a)+'"]'}function wu(a){return"script[async]"+a}function TT(a,o,u){if(o.count++,o.instance===null)switch(o.type){case"style":var h=a.querySelector('style[data-href~="'+Xn(u.href)+'"]');if(h)return o.instance=h,Yt(h),h;var g=p({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return h=(a.ownerDocument||a).createElement("style"),Yt(h),nn(h,"style",g),md(h,u.precedence,a),o.instance=h;case"stylesheet":g=wl(u.href);var b=a.querySelector(xu(g));if(b)return o.state.loading|=4,o.instance=b,Yt(b),b;h=AT(u),(g=ar.get(g))&&jg(h,g),b=(a.ownerDocument||a).createElement("link"),Yt(b);var C=b;return C._p=new Promise(function(P,q){C.onload=P,C.onerror=q}),nn(b,"link",h),o.state.loading|=4,md(b,u.precedence,a),o.instance=b;case"script":return b=Sl(u.src),(g=a.querySelector(wu(b)))?(o.instance=g,Yt(g),g):(h=u,(g=ar.get(b))&&(h=p({},u),Cg(h,g)),a=a.ownerDocument||a,g=a.createElement("script"),Yt(g),nn(g,"link",h),a.head.appendChild(g),o.instance=g);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(h=o.instance,o.state.loading|=4,md(h,u.precedence,a));return o.instance}function md(a,o,u){for(var h=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=h.length?h[h.length-1]:null,b=g,C=0;C<h.length;C++){var P=h[C];if(P.dataset.precedence===o)b=P;else if(b!==g)break}b?b.parentNode.insertBefore(a,b.nextSibling):(o=u.nodeType===9?u.head:u,o.insertBefore(a,o.firstChild))}function jg(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.title==null&&(a.title=o.title)}function Cg(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.integrity==null&&(a.integrity=o.integrity)}var vd=null;function jT(a,o,u){if(vd===null){var h=new Map,g=vd=new Map;g.set(u,h)}else g=vd,h=g.get(u),h||(h=new Map,g.set(u,h));if(h.has(a))return h;for(h.set(a,null),u=u.getElementsByTagName(a),g=0;g<u.length;g++){var b=u[g];if(!(b[Ls]||b[Zt]||a==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var C=b.getAttribute(o)||"";C=a+C;var P=h.get(C);P?P.push(b):h.set(C,[b])}}return h}function CT(a,o,u){a=a.ownerDocument||a,a.head.insertBefore(u,o==="title"?a.querySelector("head > title"):null)}function oq(a,o,u){if(u===1||o.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return a=o.disabled,typeof o.precedence=="string"&&a==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function MT(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function lq(a,o,u,h){if(u.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var g=wl(h.href),b=o.querySelector(xu(g));if(b){o=b._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(a.count++,a=gd.bind(a),o.then(a,a)),u.state.loading|=4,u.instance=b,Yt(b);return}b=o.ownerDocument||o,h=AT(h),(g=ar.get(g))&&jg(h,g),b=b.createElement("link"),Yt(b);var C=b;C._p=new Promise(function(P,q){C.onload=P,C.onerror=q}),nn(b,"link",h),u.instance=b}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(u,o),(o=u.state.preload)&&(u.state.loading&3)===0&&(a.count++,u=gd.bind(a),o.addEventListener("load",u),o.addEventListener("error",u))}}var Mg=0;function sq(a,o){return a.stylesheets&&a.count===0&&bd(a,a.stylesheets),0<a.count||0<a.imgCount?function(u){var h=setTimeout(function(){if(a.stylesheets&&bd(a,a.stylesheets),a.unsuspend){var b=a.unsuspend;a.unsuspend=null,b()}},6e4+o);0<a.imgBytes&&Mg===0&&(Mg=62500*UB());var g=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&bd(a,a.stylesheets),a.unsuspend)){var b=a.unsuspend;a.unsuspend=null,b()}},(a.imgBytes>Mg?50:800)+o);return a.unsuspend=u,function(){a.unsuspend=null,clearTimeout(h),clearTimeout(g)}}:null}function gd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bd(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var yd=null;function bd(a,o){a.stylesheets=null,a.unsuspend!==null&&(a.count++,yd=new Map,o.forEach(uq,a),yd=null,gd.call(a))}function uq(a,o){if(!(o.state.loading&4)){var u=yd.get(a);if(u)var h=u.get(null);else{u=new Map,yd.set(a,u);for(var g=a.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<g.length;b++){var C=g[b];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(u.set(C.dataset.precedence,C),h=C)}h&&u.set(null,h)}g=o.instance,C=g.getAttribute("data-precedence"),b=u.get(C)||h,b===h&&u.set(null,g),u.set(C,g),this.count++,h=gd.bind(this),g.addEventListener("load",h),g.addEventListener("error",h),b?b.parentNode.insertBefore(g,b.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(g,a.firstChild)),o.state.loading|=4}}var Su={$$typeof:A,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function cq(a,o,u,h,g,b,C,P,q){this.tag=1,this.containerInfo=a,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=Va(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Va(0),this.hiddenUpdates=Va(null),this.identifierPrefix=h,this.onUncaughtError=g,this.onCaughtError=b,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=q,this.incompleteTransitions=new Map}function NT(a,o,u,h,g,b,C,P,q,ee,ie,ce){return a=new cq(a,o,u,C,q,ee,ie,ce,P),o=1,b===!0&&(o|=24),b=kn(3,null,null,o),a.current=b,b.stateNode=a,o=uv(),o.refCount++,a.pooledCache=o,o.refCount++,b.memoizedState={element:h,isDehydrated:u,cache:o},hv(b),a}function RT(a){return a?(a=Jo,a):Jo}function PT(a,o,u,h,g,b){g=RT(g),h.context===null?h.context=g:h.pendingContext=g,h=ei(o),h.payload={element:u},b=b===void 0?null:b,b!==null&&(h.callback=b),u=ti(a,h,o),u!==null&&(jn(u,a,o),eu(u,a,o))}function DT(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var u=a.retryLane;a.retryLane=u!==0&&u<o?u:o}}function Ng(a,o){DT(a,o),(a=a.alternate)&&DT(a,o)}function kT(a){if(a.tag===13||a.tag===31){var o=Vi(a,67108864);o!==null&&jn(o,a,67108864),Ng(a,67108864)}}function $T(a){if(a.tag===13||a.tag===31){var o=Bn();o=zo(o);var u=Vi(a,o);u!==null&&jn(u,a,o),Ng(a,o)}}var xd=!0;function fq(a,o,u,h){var g=D.T;D.T=null;var b=U.p;try{U.p=2,Rg(a,o,u,h)}finally{U.p=b,D.T=g}}function dq(a,o,u,h){var g=D.T;D.T=null;var b=U.p;try{U.p=8,Rg(a,o,u,h)}finally{U.p=b,D.T=g}}function Rg(a,o,u,h){if(xd){var g=Pg(h);if(g===null)yg(a,o,h,wd,u),IT(a,h);else if(pq(g,a,o,u,h))h.stopPropagation();else if(IT(a,h),o&4&&-1<hq.indexOf(a)){for(;g!==null;){var b=Uo(g);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var C=Ir(b.pendingLanes);if(C!==0){var P=b;for(P.pendingLanes|=2,P.entangledLanes|=2;C;){var q=1<<31-sn(C);P.entanglements[1]|=q,C&=~q}Ur(b),(Xe&6)===0&&(rd=Gt()+500,vu(0))}}break;case 31:case 13:P=Vi(b,2),P!==null&&jn(P,b,2),id(),Ng(b,2)}if(b=Pg(h),b===null&&yg(a,o,h,wd,u),b===g)break;g=b}g!==null&&h.stopPropagation()}else yg(a,o,h,null,u)}}function Pg(a){return a=km(a),Dg(a)}var wd=null;function Dg(a){if(wd=null,a=qo(a),a!==null){var o=l(a);if(o===null)a=null;else{var u=o.tag;if(u===13){if(a=s(o),a!==null)return a;a=null}else if(u===31){if(a=c(o),a!==null)return a;a=null}else if(u===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null)}}return wd=a,null}function LT(a){switch(a){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($o()){case Li:return 2;case hf:return 8;case Ii:case ks:return 32;case ia:return 268435456;default:return 32}default:return 32}}var kg=!1,di=null,hi=null,pi=null,Ou=new Map,_u=new Map,mi=[],hq="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 IT(a,o){switch(a){case"focusin":case"focusout":di=null;break;case"dragenter":case"dragleave":hi=null;break;case"mouseover":case"mouseout":pi=null;break;case"pointerover":case"pointerout":Ou.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":_u.delete(o.pointerId)}}function Eu(a,o,u,h,g,b){return a===null||a.nativeEvent!==b?(a={blockedOn:o,domEventName:u,eventSystemFlags:h,nativeEvent:b,targetContainers:[g]},o!==null&&(o=Uo(o),o!==null&&kT(o)),a):(a.eventSystemFlags|=h,o=a.targetContainers,g!==null&&o.indexOf(g)===-1&&o.push(g),a)}function pq(a,o,u,h,g){switch(o){case"focusin":return di=Eu(di,a,o,u,h,g),!0;case"dragenter":return hi=Eu(hi,a,o,u,h,g),!0;case"mouseover":return pi=Eu(pi,a,o,u,h,g),!0;case"pointerover":var b=g.pointerId;return Ou.set(b,Eu(Ou.get(b)||null,a,o,u,h,g)),!0;case"gotpointercapture":return b=g.pointerId,_u.set(b,Eu(_u.get(b)||null,a,o,u,h,g)),!0}return!1}function zT(a){var o=qo(a.target);if(o!==null){var u=l(o);if(u!==null){if(o=u.tag,o===13){if(o=s(u),o!==null){a.blockedOn=o,JO(a.priority,function(){$T(u)});return}}else if(o===31){if(o=c(u),o!==null){a.blockedOn=o,JO(a.priority,function(){$T(u)});return}}else if(o===3&&u.stateNode.current.memoizedState.isDehydrated){a.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Sd(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var u=Pg(a.nativeEvent);if(u===null){u=a.nativeEvent;var h=new u.constructor(u.type,u);Dm=h,u.target.dispatchEvent(h),Dm=null}else return o=Uo(u),o!==null&&kT(o),a.blockedOn=u,!1;o.shift()}return!0}function BT(a,o,u){Sd(a)&&u.delete(o)}function mq(){kg=!1,di!==null&&Sd(di)&&(di=null),hi!==null&&Sd(hi)&&(hi=null),pi!==null&&Sd(pi)&&(pi=null),Ou.forEach(BT),_u.forEach(BT)}function Od(a,o){a.blockedOn===o&&(a.blockedOn=null,kg||(kg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,mq)))}var _d=null;function qT(a){_d!==a&&(_d=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){_d===a&&(_d=null);for(var o=0;o<a.length;o+=3){var u=a[o],h=a[o+1],g=a[o+2];if(typeof h!="function"){if(Dg(h||u)===null)continue;break}var b=Uo(u);b!==null&&(a.splice(o,3),o-=3,Pv(b,{pending:!0,data:g,method:u.method,action:h},h,g))}}))}function Ol(a){function o(q){return Od(q,a)}di!==null&&Od(di,a),hi!==null&&Od(hi,a),pi!==null&&Od(pi,a),Ou.forEach(o),_u.forEach(o);for(var u=0;u<mi.length;u++){var h=mi[u];h.blockedOn===a&&(h.blockedOn=null)}for(;0<mi.length&&(u=mi[0],u.blockedOn===null);)zT(u),u.blockedOn===null&&mi.shift();if(u=(a.ownerDocument||a).$$reactFormReplay,u!=null)for(h=0;h<u.length;h+=3){var g=u[h],b=u[h+1],C=g[Sn]||null;if(typeof b=="function")C||qT(u);else if(C){var P=null;if(b&&b.hasAttribute("formAction")){if(g=b,C=b[Sn]||null)P=C.formAction;else if(Dg(g)!==null)continue}else P=C.action;typeof P=="function"?u[h+1]=P:(u.splice(h,3),h-=3),qT(u)}}}function UT(){function a(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(C){return g=C})},focusReset:"manual",scroll:"manual"})}function o(){g!==null&&(g(),g=null),h||setTimeout(u,20)}function u(){if(!h&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var h=!1,g=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(u,100),function(){h=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),g!==null&&(g(),g=null)}}}function $g(a){this._internalRoot=a}Ed.prototype.render=$g.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error(r(409));var u=o.current,h=Bn();PT(u,h,a,o,null,null)},Ed.prototype.unmount=$g.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;PT(a.current,2,null,a,null,null),id(),o[Bo]=null}};function Ed(a){this._internalRoot=a}Ed.prototype.unstable_scheduleHydration=function(a){if(a){var o=Tm();a={blockedOn:null,target:a,priority:o};for(var u=0;u<mi.length&&o!==0&&o<mi[u].priority;u++);mi.splice(u,0,a),u===0&&zT(a)}};var HT=t.version;if(HT!=="19.2.0")throw Error(r(527,HT,"19.2.0"));U.findDOMNode=function(a){var o=a._reactInternals;if(o===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=d(o),a=a!==null?m(a):null,a=a===null?null:a.stateNode,a};var vq={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ad=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ad.isDisabled&&Ad.supportsFiber)try{zi=Ad.inject(vq),pn=Ad}catch{}}return Tu.createRoot=function(a,o){if(!i(a))throw Error(r(299));var u=!1,h="",g=XE,b=QE,C=ZE;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(g=o.onUncaughtError),o.onCaughtError!==void 0&&(b=o.onCaughtError),o.onRecoverableError!==void 0&&(C=o.onRecoverableError)),o=NT(a,1,!1,null,null,u,h,null,g,b,C,UT),a[Bo]=o.current,gg(a),new $g(o)},Tu.hydrateRoot=function(a,o,u){if(!i(a))throw Error(r(299));var h=!1,g="",b=XE,C=QE,P=ZE,q=null;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(g=u.identifierPrefix),u.onUncaughtError!==void 0&&(b=u.onUncaughtError),u.onCaughtError!==void 0&&(C=u.onCaughtError),u.onRecoverableError!==void 0&&(P=u.onRecoverableError),u.formState!==void 0&&(q=u.formState)),o=NT(a,1,!0,o,u??null,h,g,q,b,C,P,UT),o.context=RT(null),u=o.current,h=Bn(),h=zo(h),g=ei(h),g.callback=null,ti(u,g,h),u=h,o.current.lanes=u,xt(o,u),Ur(o),a[Bo]=o.current,gg(a),new Ed(o)},Tu.version="19.2.0",Tu}var JT;function Aq(){if(JT)return zg.exports;JT=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),zg.exports=Eq(),zg.exports}var Tq=Aq();/**
50
- * react-router v7.9.5
51
- *
52
- * Copyright (c) Remix Software Inc.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE.md file in the root directory of this source tree.
56
- *
57
- * @license MIT
58
- */var ej="popstate";function jq(e={}){function t(r,i){let{pathname:l,search:s,hash:c}=r.location;return sw("",{pathname:l,search:s,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:ec(i)}return Mq(t,n,null,e)}function wt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Zr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Cq(){return Math.random().toString(36).substring(2,10)}function tj(e,t){return{usr:e.state,key:e.key,idx:t}}function sw(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ys(t):t,state:n,key:t&&t.key||r||Cq()}}function ec({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 ys(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 Mq(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:l=!1}=r,s=i.history,c="POP",f=null,d=m();d==null&&(d=0,s.replaceState({...s.state,idx:d},""));function m(){return(s.state||{idx:null}).idx}function p(){c="POP";let S=m(),E=S==null?null:S-d;d=S,f&&f({action:c,location:w.location,delta:E})}function y(S,E){c="PUSH";let T=sw(w.location,S,E);d=m()+1;let A=tj(T,d),M=w.createHref(T);try{s.pushState(A,"",M)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;i.location.assign(M)}l&&f&&f({action:c,location:w.location,delta:1})}function x(S,E){c="REPLACE";let T=sw(w.location,S,E);d=m();let A=tj(T,d),M=w.createHref(T);s.replaceState(A,"",M),l&&f&&f({action:c,location:w.location,delta:0})}function O(S){return Nq(S)}let w={get action(){return c},get location(){return e(i,s)},listen(S){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(ej,p),f=S,()=>{i.removeEventListener(ej,p),f=null}},createHref(S){return t(i,S)},createURL:O,encodeLocation(S){let E=O(S);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:y,replace:x,go(S){return s.go(S)}};return w}function Nq(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),wt(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:ec(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function tk(e,t,n="/"){return Rq(e,t,n,!1)}function Rq(e,t,n,r){let i=typeof t=="string"?ys(t):t,l=Pa(i.pathname||"/",n);if(l==null)return null;let s=nk(e);Pq(s);let c=null;for(let f=0;c==null&&f<s.length;++f){let d=Fq(l);c=Uq(s[f],d,r)}return c}function nk(e,t=[],n=[],r="",i=!1){let l=(s,c,f=i,d)=>{let m={relativePath:d===void 0?s.path||"":d,caseSensitive:s.caseSensitive===!0,childrenIndex:c,route:s};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(r)&&f)return;wt(m.relativePath.startsWith(r),`Absolute route path "${m.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(r.length)}let p=Ca([r,m.relativePath]),y=n.concat(m);s.children&&s.children.length>0&&(wt(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),nk(s.children,t,y,p,f)),!(s.path==null&&!s.index)&&t.push({path:p,score:Bq(p,s.index),routesMeta:y})};return e.forEach((s,c)=>{var f;if(s.path===""||!((f=s.path)!=null&&f.includes("?")))l(s,c);else for(let d of rk(s.path))l(s,c,!0,d)}),t}function rk(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return i?[l,""]:[l];let s=rk(r.join("/")),c=[];return c.push(...s.map(f=>f===""?l:[l,f].join("/"))),i&&c.push(...s),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function Pq(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:qq(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Dq=/^:[\w-]+$/,kq=3,$q=2,Lq=1,Iq=10,zq=-2,nj=e=>e==="*";function Bq(e,t){let n=e.split("/"),r=n.length;return n.some(nj)&&(r+=zq),t&&(r+=$q),n.filter(i=>!nj(i)).reduce((i,l)=>i+(Dq.test(l)?kq:l===""?Lq:Iq),r)}function qq(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Uq(e,t,n=!1){let{routesMeta:r}=e,i={},l="/",s=[];for(let c=0;c<r.length;++c){let f=r[c],d=c===r.length-1,m=l==="/"?t:t.slice(l.length)||"/",p=nh({path:f.relativePath,caseSensitive:f.caseSensitive,end:d},m),y=f.route;if(!p&&d&&n&&!r[r.length-1].route.index&&(p=nh({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!p)return null;Object.assign(i,p.params),s.push({params:i,pathname:Ca([l,p.pathname]),pathnameBase:Wq(Ca([l,p.pathnameBase])),route:y}),p.pathnameBase!=="/"&&(l=Ca([l,p.pathnameBase]))}return s}function nh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Hq(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let l=i[0],s=l.replace(/(.)\/+$/,"$1"),c=i.slice(1);return{params:r.reduce((d,{paramName:m,isOptional:p},y)=>{if(m==="*"){let O=c[y]||"";s=l.slice(0,l.length-O.length).replace(/(.)\/+$/,"$1")}const x=c[y];return p&&!x?d[m]=void 0:d[m]=(x||"").replace(/%2F/g,"/"),d},{}),pathname:l,pathnameBase:s,pattern:e}}function Hq(e,t=!1,n=!0){Zr(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,c,f)=>(r.push({paramName:c,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Fq(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Zr(!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 Pa(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Gq(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ys(e):e;return{pathname:n?n.startsWith("/")?n:Vq(n,t):t,search:Kq(r),hash:Xq(i)}}function Vq(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Hg(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 Yq(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ak(e){let t=Yq(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function ik(e,t,n,r=!1){let i;typeof e=="string"?i=ys(e):(i={...e},wt(!i.pathname||!i.pathname.includes("?"),Hg("?","pathname","search",i)),wt(!i.pathname||!i.pathname.includes("#"),Hg("#","pathname","hash",i)),wt(!i.search||!i.search.includes("#"),Hg("#","search","hash",i)));let l=e===""||i.pathname==="",s=l?"/":i.pathname,c;if(s==null)c=n;else{let p=t.length-1;if(!r&&s.startsWith("..")){let y=s.split("/");for(;y[0]==="..";)y.shift(),p-=1;i.pathname=y.join("/")}c=p>=0?t[p]:"/"}let f=Gq(i,c),d=s&&s!=="/"&&s.endsWith("/"),m=(l||s===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(d||m)&&(f.pathname+="/"),f}var Ca=e=>e.join("/").replace(/\/\/+/g,"/"),Wq=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Kq=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Xq=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Qq(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ok=["POST","PUT","PATCH","DELETE"];new Set(ok);var Zq=["GET",...ok];new Set(Zq);var bs=_.createContext(null);bs.displayName="DataRouter";var vp=_.createContext(null);vp.displayName="DataRouterState";_.createContext(!1);var lk=_.createContext({isTransitioning:!1});lk.displayName="ViewTransition";var Jq=_.createContext(new Map);Jq.displayName="Fetchers";var e8=_.createContext(null);e8.displayName="Await";var ta=_.createContext(null);ta.displayName="Navigation";var Hc=_.createContext(null);Hc.displayName="Location";var na=_.createContext({outlet:null,matches:[],isDataRoute:!1});na.displayName="Route";var eS=_.createContext(null);eS.displayName="RouteError";function t8(e,{relative:t}={}){wt(Fc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=_.useContext(ta),{hash:i,pathname:l,search:s}=Gc(e,{relative:t}),c=l;return n!=="/"&&(c=l==="/"?n:Ca([n,l])),r.createHref({pathname:c,search:s,hash:i})}function Fc(){return _.useContext(Hc)!=null}function Ba(){return wt(Fc(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(Hc).location}var sk="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function uk(e){_.useContext(ta).static||_.useLayoutEffect(e)}function gp(){let{isDataRoute:e}=_.useContext(na);return e?m8():n8()}function n8(){wt(Fc(),"useNavigate() may be used only in the context of a <Router> component.");let e=_.useContext(bs),{basename:t,navigator:n}=_.useContext(ta),{matches:r}=_.useContext(na),{pathname:i}=Ba(),l=JSON.stringify(ak(r)),s=_.useRef(!1);return uk(()=>{s.current=!0}),_.useCallback((f,d={})=>{if(Zr(s.current,sk),!s.current)return;if(typeof f=="number"){n.go(f);return}let m=ik(f,JSON.parse(l),i,d.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Ca([t,m.pathname])),(d.replace?n.replace:n.push)(m,d.state,d)},[t,n,l,i,e])}_.createContext(null);function r8(){let{matches:e}=_.useContext(na),t=e[e.length-1];return t?t.params:{}}function Gc(e,{relative:t}={}){let{matches:n}=_.useContext(na),{pathname:r}=Ba(),i=JSON.stringify(ak(n));return _.useMemo(()=>ik(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function a8(e,t){return ck(e,t)}function ck(e,t,n,r,i){var T;wt(Fc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=_.useContext(ta),{matches:s}=_.useContext(na),c=s[s.length-1],f=c?c.params:{},d=c?c.pathname:"/",m=c?c.pathnameBase:"/",p=c&&c.route;{let A=p&&p.path||"";fk(d,!p||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${A}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
-
60
- Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let y=Ba(),x;if(t){let A=typeof t=="string"?ys(t):t;wt(m==="/"||((T=A.pathname)==null?void 0:T.startsWith(m)),`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 "${m}" but pathname "${A.pathname}" was given in the \`location\` prop.`),x=A}else x=y;let O=x.pathname||"/",w=O;if(m!=="/"){let A=m.replace(/^\//,"").split("/");w="/"+O.replace(/^\//,"").split("/").slice(A.length).join("/")}let S=tk(e,{pathname:w});Zr(p||S!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Zr(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.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 E=u8(S&&S.map(A=>Object.assign({},A,{params:Object.assign({},f,A.params),pathname:Ca([m,l.encodeLocation?l.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?m:Ca([m,l.encodeLocation?l.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),s,n,r,i);return t&&E?_.createElement(Hc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},E):E}function i8(){let e=p8(),t=Qq(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)",i={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:l},"ErrorBoundary")," or"," ",_.createElement("code",{style:l},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:i},n):null,s)}var o8=_.createElement(i8,null),l8=class extends _.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.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?_.createElement(na.Provider,{value:this.props.routeContext},_.createElement(eS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function s8({routeContext:e,match:t,children:n}){let r=_.useContext(bs);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement(na.Provider,{value:e},n)}function u8(e,t=[],n=null,r=null,i=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,s=n==null?void 0:n.errors;if(s!=null){let d=l.findIndex(m=>m.route.id&&(s==null?void 0:s[m.route.id])!==void 0);wt(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),l=l.slice(0,Math.min(l.length,d+1))}let c=!1,f=-1;if(n)for(let d=0;d<l.length;d++){let m=l[d];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(f=d),m.route.id){let{loaderData:p,errors:y}=n,x=m.route.loader&&!p.hasOwnProperty(m.route.id)&&(!y||y[m.route.id]===void 0);if(m.route.lazy||x){c=!0,f>=0?l=l.slice(0,f+1):l=[l[0]];break}}}return l.reduceRight((d,m,p)=>{let y,x=!1,O=null,w=null;n&&(y=s&&m.route.id?s[m.route.id]:void 0,O=m.route.errorElement||o8,c&&(f<0&&p===0?(fk("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,w=null):f===p&&(x=!0,w=m.route.hydrateFallbackElement||null)));let S=t.concat(l.slice(0,p+1)),E=()=>{let T;return y?T=O:x?T=w:m.route.Component?T=_.createElement(m.route.Component,null):m.route.element?T=m.route.element:T=d,_.createElement(s8,{match:m,routeContext:{outlet:d,matches:S,isDataRoute:n!=null},children:T})};return n&&(m.route.ErrorBoundary||m.route.errorElement||p===0)?_.createElement(l8,{location:n.location,revalidation:n.revalidation,component:O,error:y,children:E(),routeContext:{outlet:null,matches:S,isDataRoute:!0},unstable_onError:r}):E()},null)}function tS(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function c8(e){let t=_.useContext(bs);return wt(t,tS(e)),t}function f8(e){let t=_.useContext(vp);return wt(t,tS(e)),t}function d8(e){let t=_.useContext(na);return wt(t,tS(e)),t}function nS(e){let t=d8(e),n=t.matches[t.matches.length-1];return wt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function h8(){return nS("useRouteId")}function p8(){var r;let e=_.useContext(eS),t=f8("useRouteError"),n=nS("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function m8(){let{router:e}=c8("useNavigate"),t=nS("useNavigate"),n=_.useRef(!1);return uk(()=>{n.current=!0}),_.useCallback(async(i,l={})=>{Zr(n.current,sk),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...l}))},[e,t])}var rj={};function fk(e,t,n){!t&&!rj[e]&&(rj[e]=!0,Zr(!1,n))}_.memo(v8);function v8({routes:e,future:t,state:n,unstable_onError:r}){return ck(e,void 0,n,r,t)}function Pl(e){wt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function g8({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:l=!1}){wt(!Fc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),c=_.useMemo(()=>({basename:s,navigator:i,static:l,future:{}}),[s,i,l]);typeof n=="string"&&(n=ys(n));let{pathname:f="/",search:d="",hash:m="",state:p=null,key:y="default"}=n,x=_.useMemo(()=>{let O=Pa(f,s);return O==null?null:{location:{pathname:O,search:d,hash:m,state:p,key:y},navigationType:r}},[s,f,d,m,p,y,r]);return Zr(x!=null,`<Router basename="${s}"> is not able to match the URL "${f}${d}${m}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:_.createElement(ta.Provider,{value:c},_.createElement(Hc.Provider,{children:t,value:x}))}function y8({children:e,location:t}){return a8(uw(e),t)}function uw(e,t=[]){let n=[];return _.Children.forEach(e,(r,i)=>{if(!_.isValidElement(r))return;let l=[...t,i];if(r.type===_.Fragment){n.push.apply(n,uw(r.props.children,l));return}wt(r.type===Pl,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),wt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||l.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=uw(r.props.children,l)),n.push(s)}),n}var Xd="get",Qd="application/x-www-form-urlencoded";function yp(e){return e!=null&&typeof e.tagName=="string"}function b8(e){return yp(e)&&e.tagName.toLowerCase()==="button"}function x8(e){return yp(e)&&e.tagName.toLowerCase()==="form"}function w8(e){return yp(e)&&e.tagName.toLowerCase()==="input"}function S8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function O8(e,t){return e.button===0&&(!t||t==="_self")&&!S8(e)}var jd=null;function _8(){if(jd===null)try{new FormData(document.createElement("form"),0),jd=!1}catch{jd=!0}return jd}var E8=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Fg(e){return e!=null&&!E8.has(e)?(Zr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Qd}"`),null):e}function A8(e,t){let n,r,i,l,s;if(x8(e)){let c=e.getAttribute("action");r=c?Pa(c,t):null,n=e.getAttribute("method")||Xd,i=Fg(e.getAttribute("enctype"))||Qd,l=new FormData(e)}else if(b8(e)||w8(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||c.getAttribute("action");if(r=f?Pa(f,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Xd,i=Fg(e.getAttribute("formenctype"))||Fg(c.getAttribute("enctype"))||Qd,l=new FormData(c,e),!_8()){let{name:d,type:m,value:p}=e;if(m==="image"){let y=d?`${d}.`:"";l.append(`${y}x`,"0"),l.append(`${y}y`,"0")}else d&&l.append(d,p)}}else{if(yp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Xd,r=null,i=Qd,s=e}return l&&i==="text/plain"&&(s=l,l=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:l,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function rS(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function T8(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Pa(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function j8(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 C8(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 M8(e,t,n){let r=await Promise.all(e.map(async i=>{let l=t.routes[i.route.id];if(l){let s=await j8(l,n);return s.links?s.links():[]}return[]}));return D8(r.flat(1).filter(C8).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function aj(e,t,n,r,i,l){let s=(f,d)=>n[d]?f.route.id!==n[d].route.id:!0,c=(f,d)=>{var m;return n[d].pathname!==f.pathname||((m=n[d].route.path)==null?void 0:m.endsWith("*"))&&n[d].params["*"]!==f.params["*"]};return l==="assets"?t.filter((f,d)=>s(f,d)||c(f,d)):l==="data"?t.filter((f,d)=>{var p;let m=r.routes[f.route.id];if(!m||!m.hasLoader)return!1;if(s(f,d)||c(f,d))return!0;if(f.route.shouldRevalidate){let y=f.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function N8(e,t,{includeHydrateFallback:n}={}){return R8(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let l=[i.module];return i.clientActionModule&&(l=l.concat(i.clientActionModule)),i.clientLoaderModule&&(l=l.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(l=l.concat(i.hydrateFallbackModule)),i.imports&&(l=l.concat(i.imports)),l}).flat(1))}function R8(e){return[...new Set(e)]}function P8(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function D8(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let l=JSON.stringify(P8(i));return n.has(l)||(n.add(l),r.push({key:l,link:i})),r},[])}function dk(){let e=_.useContext(bs);return rS(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function k8(){let e=_.useContext(vp);return rS(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var aS=_.createContext(void 0);aS.displayName="FrameworkContext";function hk(){let e=_.useContext(aS);return rS(e,"You must render this element inside a <HydratedRouter> element"),e}function $8(e,t){let n=_.useContext(aS),[r,i]=_.useState(!1),[l,s]=_.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:d,onMouseLeave:m,onTouchStart:p}=t,y=_.useRef(null);_.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let w=E=>{E.forEach(T=>{s(T.isIntersecting)})},S=new IntersectionObserver(w,{threshold:.5});return y.current&&S.observe(y.current),()=>{S.disconnect()}}},[e]),_.useEffect(()=>{if(r){let w=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(w)}}},[r]);let x=()=>{i(!0)},O=()=>{i(!1),s(!1)};return n?e!=="intent"?[l,y,{}]:[l,y,{onFocus:ju(c,x),onBlur:ju(f,O),onMouseEnter:ju(d,x),onMouseLeave:ju(m,O),onTouchStart:ju(p,x)}]:[!1,y,{}]}function ju(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function L8({page:e,...t}){let{router:n}=dk(),r=_.useMemo(()=>tk(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?_.createElement(z8,{page:e,matches:r,...t}):null}function I8(e){let{manifest:t,routeModules:n}=hk(),[r,i]=_.useState([]);return _.useEffect(()=>{let l=!1;return M8(e,t,n).then(s=>{l||i(s)}),()=>{l=!0}},[e,t,n]),r}function z8({page:e,matches:t,...n}){let r=Ba(),{manifest:i,routeModules:l}=hk(),{basename:s}=dk(),{loaderData:c,matches:f}=k8(),d=_.useMemo(()=>aj(e,t,f,i,r,"data"),[e,t,f,i,r]),m=_.useMemo(()=>aj(e,t,f,i,r,"assets"),[e,t,f,i,r]),p=_.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let O=new Set,w=!1;if(t.forEach(E=>{var A;let T=i.routes[E.route.id];!T||!T.hasLoader||(!d.some(M=>M.route.id===E.route.id)&&E.route.id in c&&((A=l[E.route.id])!=null&&A.shouldRevalidate)||T.hasClientLoader?w=!0:O.add(E.route.id))}),O.size===0)return[];let S=T8(e,s,"data");return w&&O.size>0&&S.searchParams.set("_routes",t.filter(E=>O.has(E.route.id)).map(E=>E.route.id).join(",")),[S.pathname+S.search]},[s,c,r,i,d,t,e,l]),y=_.useMemo(()=>N8(m,i),[m,i]),x=I8(m);return _.createElement(_.Fragment,null,p.map(O=>_.createElement("link",{key:O,rel:"prefetch",as:"fetch",href:O,...n})),y.map(O=>_.createElement("link",{key:O,rel:"modulepreload",href:O,...n})),x.map(({key:O,link:w})=>_.createElement("link",{key:O,nonce:n.nonce,...w})))}function B8(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var pk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{pk&&(window.__reactRouterVersion="7.9.5")}catch{}function q8({basename:e,children:t,window:n}){let r=_.useRef();r.current==null&&(r.current=jq({window:n,v5Compat:!0}));let i=r.current,[l,s]=_.useState({action:i.action,location:i.location}),c=_.useCallback(f=>{_.startTransition(()=>s(f))},[s]);return _.useLayoutEffect(()=>i.listen(c),[i,c]),_.createElement(g8,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:i})}var mk=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rh=_.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:l,replace:s,state:c,target:f,to:d,preventScrollReset:m,viewTransition:p,...y},x){let{basename:O}=_.useContext(ta),w=typeof d=="string"&&mk.test(d),S,E=!1;if(typeof d=="string"&&w&&(S=d,pk))try{let I=new URL(window.location.href),V=d.startsWith("//")?new URL(I.protocol+d):new URL(d),z=Pa(V.pathname,O);V.origin===I.origin&&z!=null?d=z+V.search+V.hash:E=!0}catch{Zr(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let T=t8(d,{relative:i}),[A,M,j]=$8(r,y),N=G8(d,{replace:s,state:c,target:f,preventScrollReset:m,relative:i,viewTransition:p});function R(I){t&&t(I),I.defaultPrevented||N(I)}let k=_.createElement("a",{...y,...j,href:S||T,onClick:E||l?t:R,ref:B8(x,M),target:f,"data-discover":!w&&n==="render"?"true":void 0});return A&&!w?_.createElement(_.Fragment,null,k,_.createElement(L8,{page:T})):k});rh.displayName="Link";var U8=_.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:l,to:s,viewTransition:c,children:f,...d},m){let p=Gc(s,{relative:d.relative}),y=Ba(),x=_.useContext(vp),{navigator:O,basename:w}=_.useContext(ta),S=x!=null&&X8(p)&&c===!0,E=O.encodeLocation?O.encodeLocation(p).pathname:p.pathname,T=y.pathname,A=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||(T=T.toLowerCase(),A=A?A.toLowerCase():null,E=E.toLowerCase()),A&&w&&(A=Pa(A,w)||A);const M=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let j=T===E||!i&&T.startsWith(E)&&T.charAt(M)==="/",N=A!=null&&(A===E||!i&&A.startsWith(E)&&A.charAt(E.length)==="/"),R={isActive:j,isPending:N,isTransitioning:S},k=j?t:void 0,I;typeof r=="function"?I=r(R):I=[r,j?"active":null,N?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let V=typeof l=="function"?l(R):l;return _.createElement(rh,{...d,"aria-current":k,className:I,ref:m,style:V,to:s,viewTransition:c},typeof f=="function"?f(R):f)});U8.displayName="NavLink";var H8=_.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:l,method:s=Xd,action:c,onSubmit:f,relative:d,preventScrollReset:m,viewTransition:p,...y},x)=>{let O=W8(),w=K8(c,{relative:d}),S=s.toLowerCase()==="get"?"get":"post",E=typeof c=="string"&&mk.test(c),T=A=>{if(f&&f(A),A.defaultPrevented)return;A.preventDefault();let M=A.nativeEvent.submitter,j=(M==null?void 0:M.getAttribute("formmethod"))||s;O(M||A.currentTarget,{fetcherKey:t,method:j,navigate:n,replace:i,state:l,relative:d,preventScrollReset:m,viewTransition:p})};return _.createElement("form",{ref:x,method:S,action:w,onSubmit:r?f:T,...y,"data-discover":!E&&e==="render"?"true":void 0})});H8.displayName="Form";function F8(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function vk(e){let t=_.useContext(bs);return wt(t,F8(e)),t}function G8(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:l,viewTransition:s}={}){let c=gp(),f=Ba(),d=Gc(e,{relative:l});return _.useCallback(m=>{if(O8(m,t)){m.preventDefault();let p=n!==void 0?n:ec(f)===ec(d);c(e,{replace:p,state:r,preventScrollReset:i,relative:l,viewTransition:s})}},[f,c,d,n,r,t,e,i,l,s])}var V8=0,Y8=()=>`__${String(++V8)}__`;function W8(){let{router:e}=vk("useSubmit"),{basename:t}=_.useContext(ta),n=h8();return _.useCallback(async(r,i={})=>{let{action:l,method:s,encType:c,formData:f,body:d}=A8(r,t);if(i.navigate===!1){let m=i.fetcherKey||Y8();await e.fetch(m,n,i.action||l,{preventScrollReset:i.preventScrollReset,formData:f,body:d,formMethod:i.method||s,formEncType:i.encType||c,flushSync:i.flushSync})}else await e.navigate(i.action||l,{preventScrollReset:i.preventScrollReset,formData:f,body:d,formMethod:i.method||s,formEncType:i.encType||c,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function K8(e,{relative:t}={}){let{basename:n}=_.useContext(ta),r=_.useContext(na);wt(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),l={...Gc(e||".",{relative:t})},s=Ba();if(e==null){l.search=s.search;let c=new URLSearchParams(l.search),f=c.getAll("index");if(f.some(m=>m==="")){c.delete("index"),f.filter(p=>p).forEach(p=>c.append("index",p));let m=c.toString();l.search=m?`?${m}`:""}}return(!e||e===".")&&i.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:Ca([n,l.pathname])),ec(l)}function X8(e,{relative:t}={}){let n=_.useContext(lk);wt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=vk("useViewTransitionState"),i=Gc(e,{relative:t});if(!n.isTransitioning)return!1;let l=Pa(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Pa(n.nextLocation.pathname,r)||n.nextLocation.pathname;return nh(i.pathname,s)!=null||nh(i.pathname,l)!=null}var Vc=ek();const gk=lt(Vc);/**
61
- * @license lucide-react v0.462.0 - ISC
62
- *
63
- * This source code is licensed under the ISC license.
64
- * See the LICENSE file in the root directory of this source tree.
65
- */const Q8=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),yk=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
66
- * @license lucide-react v0.462.0 - ISC
67
- *
68
- * This source code is licensed under the ISC license.
69
- * See the LICENSE file in the root directory of this source tree.
70
- */var Z8={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"};/**
71
- * @license lucide-react v0.462.0 - ISC
72
- *
73
- * This source code is licensed under the ISC license.
74
- * See the LICENSE file in the root directory of this source tree.
75
- */const J8=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:l,iconNode:s,...c},f)=>_.createElement("svg",{ref:f,...Z8,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:yk("lucide",i),...c},[...s.map(([d,m])=>_.createElement(d,m)),...Array.isArray(l)?l:[l]]));/**
76
- * @license lucide-react v0.462.0 - ISC
77
- *
78
- * This source code is licensed under the ISC license.
79
- * See the LICENSE file in the root directory of this source tree.
80
- */const We=(e,t)=>{const n=_.forwardRef(({className:r,...i},l)=>_.createElement(J8,{ref:l,iconNode:t,className:yk(`lucide-${Q8(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
81
- * @license lucide-react v0.462.0 - ISC
82
- *
83
- * This source code is licensed under the ISC license.
84
- * See the LICENSE file in the root directory of this source tree.
85
- */const tc=We("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
86
- * @license lucide-react v0.462.0 - ISC
87
- *
88
- * This source code is licensed under the ISC license.
89
- * See the LICENSE file in the root directory of this source tree.
90
- */const Gg=We("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
91
- * @license lucide-react v0.462.0 - ISC
92
- *
93
- * This source code is licensed under the ISC license.
94
- * See the LICENSE file in the root directory of this source tree.
95
- */const e6=We("BadgeCheck",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
96
- * @license lucide-react v0.462.0 - ISC
97
- *
98
- * This source code is licensed under the ISC license.
99
- * See the LICENSE file in the root directory of this source tree.
100
- */const t6=We("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
101
- * @license lucide-react v0.462.0 - ISC
102
- *
103
- * This source code is licensed under the ISC license.
104
- * See the LICENSE file in the root directory of this source tree.
105
- */const n6=We("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
106
- * @license lucide-react v0.462.0 - ISC
107
- *
108
- * This source code is licensed under the ISC license.
109
- * See the LICENSE file in the root directory of this source tree.
110
- */const bk=We("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
111
- * @license lucide-react v0.462.0 - ISC
112
- *
113
- * This source code is licensed under the ISC license.
114
- * See the LICENSE file in the root directory of this source tree.
115
- */const xs=We("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
116
- * @license lucide-react v0.462.0 - ISC
117
- *
118
- * This source code is licensed under the ISC license.
119
- * See the LICENSE file in the root directory of this source tree.
120
- */const Yc=We("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
121
- * @license lucide-react v0.462.0 - ISC
122
- *
123
- * This source code is licensed under the ISC license.
124
- * See the LICENSE file in the root directory of this source tree.
125
- */const r6=We("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
126
- * @license lucide-react v0.462.0 - ISC
127
- *
128
- * This source code is licensed under the ISC license.
129
- * See the LICENSE file in the root directory of this source tree.
130
- */const xk=We("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
131
- * @license lucide-react v0.462.0 - ISC
132
- *
133
- * This source code is licensed under the ISC license.
134
- * See the LICENSE file in the root directory of this source tree.
135
- */const bp=We("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
136
- * @license lucide-react v0.462.0 - ISC
137
- *
138
- * This source code is licensed under the ISC license.
139
- * See the LICENSE file in the root directory of this source tree.
140
- */const a6=We("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
141
- * @license lucide-react v0.462.0 - ISC
142
- *
143
- * This source code is licensed under the ISC license.
144
- * See the LICENSE file in the root directory of this source tree.
145
- */const cw=We("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
146
- * @license lucide-react v0.462.0 - ISC
147
- *
148
- * This source code is licensed under the ISC license.
149
- * See the LICENSE file in the root directory of this source tree.
150
- */const i6=We("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"}]]);/**
151
- * @license lucide-react v0.462.0 - ISC
152
- *
153
- * This source code is licensed under the ISC license.
154
- * See the LICENSE file in the root directory of this source tree.
155
- */const o6=We("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"}]]);/**
156
- * @license lucide-react v0.462.0 - ISC
157
- *
158
- * This source code is licensed under the ISC license.
159
- * See the LICENSE file in the root directory of this source tree.
160
- */const l6=We("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
161
- * @license lucide-react v0.462.0 - ISC
162
- *
163
- * This source code is licensed under the ISC license.
164
- * See the LICENSE file in the root directory of this source tree.
165
- */const s6=We("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
166
- * @license lucide-react v0.462.0 - ISC
167
- *
168
- * This source code is licensed under the ISC license.
169
- * See the LICENSE file in the root directory of this source tree.
170
- */const u6=We("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
171
- * @license lucide-react v0.462.0 - ISC
172
- *
173
- * This source code is licensed under the ISC license.
174
- * See the LICENSE file in the root directory of this source tree.
175
- */const mo=We("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
176
- * @license lucide-react v0.462.0 - ISC
177
- *
178
- * This source code is licensed under the ISC license.
179
- * See the LICENSE file in the root directory of this source tree.
180
- */const c6=We("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
181
- * @license lucide-react v0.462.0 - ISC
182
- *
183
- * This source code is licensed under the ISC license.
184
- * See the LICENSE file in the root directory of this source tree.
185
- */const f6=We("OctagonX",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
186
- * @license lucide-react v0.462.0 - ISC
187
- *
188
- * This source code is licensed under the ISC license.
189
- * See the LICENSE file in the root directory of this source tree.
190
- */const d6=We("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
191
- * @license lucide-react v0.462.0 - ISC
192
- *
193
- * This source code is licensed under the ISC license.
194
- * See the LICENSE file in the root directory of this source tree.
195
- */const ij=We("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/**
196
- * @license lucide-react v0.462.0 - ISC
197
- *
198
- * This source code is licensed under the ISC license.
199
- * See the LICENSE file in the root directory of this source tree.
200
- */const wk=We("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"}]]);/**
201
- * @license lucide-react v0.462.0 - ISC
202
- *
203
- * This source code is licensed under the ISC license.
204
- * See the LICENSE file in the root directory of this source tree.
205
- */const h6=We("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
206
- * @license lucide-react v0.462.0 - ISC
207
- *
208
- * This source code is licensed under the ISC license.
209
- * See the LICENSE file in the root directory of this source tree.
210
- */const p6=We("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"}]]);/**
211
- * @license lucide-react v0.462.0 - ISC
212
- *
213
- * This source code is licensed under the ISC license.
214
- * See the LICENSE file in the root directory of this source tree.
215
- */const m6=We("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"}]]);/**
216
- * @license lucide-react v0.462.0 - ISC
217
- *
218
- * This source code is licensed under the ISC license.
219
- * See the LICENSE file in the root directory of this source tree.
220
- */const v6=We("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"}]]);/**
221
- * @license lucide-react v0.462.0 - ISC
222
- *
223
- * This source code is licensed under the ISC license.
224
- * See the LICENSE file in the root directory of this source tree.
225
- */const g6=We("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"}]]);/**
226
- * @license lucide-react v0.462.0 - ISC
227
- *
228
- * This source code is licensed under the ISC license.
229
- * See the LICENSE file in the root directory of this source tree.
230
- */const y6=We("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"}]]);/**
231
- * @license lucide-react v0.462.0 - ISC
232
- *
233
- * This source code is licensed under the ISC license.
234
- * See the LICENSE file in the root directory of this source tree.
235
- */const b6=We("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
236
- * @license lucide-react v0.462.0 - ISC
237
- *
238
- * This source code is licensed under the ISC license.
239
- * See the LICENSE file in the root directory of this source tree.
240
- */const Ll=We("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Sk(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Sk(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ue(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Sk(e))&&(r&&(r+=" "),r+=t);return r}const iS="-",x6=e=>{const t=S6(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const c=s.split(iS);return c[0]===""&&c.length!==1&&c.shift(),Ok(c,t)||w6(s)},getConflictingClassGroupIds:(s,c)=>{const f=n[s]||[];return c&&r[s]?[...f,...r[s]]:f}}},Ok=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?Ok(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const l=e.join(iS);return(s=t.validators.find(({validator:c})=>c(l)))==null?void 0:s.classGroupId},oj=/^\[(.+)\]$/,w6=e=>{if(oj.test(e)){const t=oj.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},S6=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return _6(Object.entries(e.classGroups),n).forEach(([l,s])=>{fw(s,r,l,t)}),r},fw=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const l=i===""?t:lj(t,i);l.classGroupId=n;return}if(typeof i=="function"){if(O6(i)){fw(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([l,s])=>{fw(s,lj(t,l),n,r)})})},lj=(e,t)=>{let n=e;return t.split(iS).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},O6=e=>e.isThemeGetter,_6=(e,t)=>t?e.map(([n,r])=>{const i=r.map(l=>typeof l=="string"?t+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([s,c])=>[t+s,c])):l);return[n,i]}):e,E6=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(l,s)=>{n.set(l,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(l){let s=n.get(l);if(s!==void 0)return s;if((s=r.get(l))!==void 0)return i(l,s),s},set(l,s){n.has(l)?n.set(l,s):i(l,s)}}},_k="!",A6=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],l=t.length,s=c=>{const f=[];let d=0,m=0,p;for(let S=0;S<c.length;S++){let E=c[S];if(d===0){if(E===i&&(r||c.slice(S,S+l)===t)){f.push(c.slice(m,S)),m=S+l;continue}if(E==="/"){p=S;continue}}E==="["?d++:E==="]"&&d--}const y=f.length===0?c:c.substring(m),x=y.startsWith(_k),O=x?y.substring(1):y,w=p&&p>m?p-m:void 0;return{modifiers:f,hasImportantModifier:x,baseClassName:O,maybePostfixModifierPosition:w}};return n?c=>n({className:c,parseClassName:s}):s},T6=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},j6=e=>({cache:E6(e.cacheSize),parseClassName:A6(e),...x6(e)}),C6=/\s+/,M6=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,l=[],s=e.trim().split(C6);let c="";for(let f=s.length-1;f>=0;f-=1){const d=s[f],{modifiers:m,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:x}=n(d);let O=!!x,w=r(O?y.substring(0,x):y);if(!w){if(!O){c=d+(c.length>0?" "+c:c);continue}if(w=r(y),!w){c=d+(c.length>0?" "+c:c);continue}O=!1}const S=T6(m).join(":"),E=p?S+_k:S,T=E+w;if(l.includes(T))continue;l.push(T);const A=i(w,O);for(let M=0;M<A.length;++M){const j=A[M];l.push(E+j)}c=d+(c.length>0?" "+c:c)}return c};function N6(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Ek(t))&&(r&&(r+=" "),r+=n);return r}const Ek=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Ek(e[r]))&&(n&&(n+=" "),n+=t);return n};function R6(e,...t){let n,r,i,l=s;function s(f){const d=t.reduce((m,p)=>p(m),e());return n=j6(d),r=n.cache.get,i=n.cache.set,l=c,c(f)}function c(f){const d=r(f);if(d)return d;const m=M6(f,n);return i(f,m),m}return function(){return l(N6.apply(null,arguments))}}const pt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Ak=/^\[(?:([a-z-]+):)?(.+)\]$/i,P6=/^\d+\/\d+$/,D6=new Set(["px","full","screen"]),k6=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$6=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,L6=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,I6=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,z6=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_a=e=>Il(e)||D6.has(e)||P6.test(e),gi=e=>ws(e,"length",Y6),Il=e=>!!e&&!Number.isNaN(Number(e)),Vg=e=>ws(e,"number",Il),Cu=e=>!!e&&Number.isInteger(Number(e)),B6=e=>e.endsWith("%")&&Il(e.slice(0,-1)),Pe=e=>Ak.test(e),yi=e=>k6.test(e),q6=new Set(["length","size","percentage"]),U6=e=>ws(e,q6,Tk),H6=e=>ws(e,"position",Tk),F6=new Set(["image","url"]),G6=e=>ws(e,F6,K6),V6=e=>ws(e,"",W6),Mu=()=>!0,ws=(e,t,n)=>{const r=Ak.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Y6=e=>$6.test(e)&&!L6.test(e),Tk=()=>!1,W6=e=>I6.test(e),K6=e=>z6.test(e),X6=()=>{const e=pt("colors"),t=pt("spacing"),n=pt("blur"),r=pt("brightness"),i=pt("borderColor"),l=pt("borderRadius"),s=pt("borderSpacing"),c=pt("borderWidth"),f=pt("contrast"),d=pt("grayscale"),m=pt("hueRotate"),p=pt("invert"),y=pt("gap"),x=pt("gradientColorStops"),O=pt("gradientColorStopPositions"),w=pt("inset"),S=pt("margin"),E=pt("opacity"),T=pt("padding"),A=pt("saturate"),M=pt("scale"),j=pt("sepia"),N=pt("skew"),R=pt("space"),k=pt("translate"),I=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",Pe,t],B=()=>[Pe,t],G=()=>["",_a,gi],K=()=>["auto",Il,Pe],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>["start","end","center","between","around","evenly","stretch"],W=()=>["","0",Pe],oe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[Il,Pe];return{cacheSize:500,separator:":",theme:{colors:[Mu],spacing:[_a,gi],blur:["none","",yi,Pe],brightness:$(),borderColor:[e],borderRadius:["none","","full",yi,Pe],borderSpacing:B(),borderWidth:G(),contrast:$(),grayscale:W(),hueRotate:$(),invert:W(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[B6,gi],inset:z(),margin:z(),opacity:$(),padding:B(),saturate:$(),scale:$(),sepia:W(),skew:$(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",Pe]}],container:["container"],columns:[{columns:[yi]}],"break-after":[{"break-after":oe()}],"break-before":[{"break-before":oe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...X(),Pe]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Cu,Pe]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Pe]}],grow:[{grow:W()}],shrink:[{shrink:W()}],order:[{order:["first","last","none",Cu,Pe]}],"grid-cols":[{"grid-cols":[Mu]}],"col-start-end":[{col:["auto",{span:["full",Cu,Pe]},Pe]}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[Mu]}],"row-start-end":[{row:["auto",{span:[Cu,Pe]},Pe]}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Pe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Pe]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...Y()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Y(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Y(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[S]}],mx:[{mx:[S]}],my:[{my:[S]}],ms:[{ms:[S]}],me:[{me:[S]}],mt:[{mt:[S]}],mr:[{mr:[S]}],mb:[{mb:[S]}],ml:[{ml:[S]}],"space-x":[{"space-x":[R]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[R]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Pe,t]}],"min-w":[{"min-w":[Pe,t,"min","max","fit"]}],"max-w":[{"max-w":[Pe,t,"none","full","min","max","fit","prose",{screen:[yi]},yi]}],h:[{h:[Pe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Pe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Pe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Pe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",yi,gi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Vg]}],"font-family":[{font:[Mu]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Pe]}],"line-clamp":[{"line-clamp":["none",Il,Vg]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",_a,Pe]}],"list-image":[{"list-image":["none",Pe]}],"list-style-type":[{list:["none","disc","decimal",Pe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",_a,gi]}],"underline-offset":[{"underline-offset":["auto",_a,Pe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),H6]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",U6]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},G6]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[O]}],"gradient-via-pos":[{via:[O]}],"gradient-to-pos":[{to:[O]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:D()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...D()]}],"outline-offset":[{"outline-offset":[_a,Pe]}],"outline-w":[{outline:[_a,gi]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[_a,gi]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",yi,V6]}],"shadow-color":[{shadow:[Mu]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",yi,Pe]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[p]}],saturate:[{saturate:[A]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Pe]}],duration:[{duration:$()}],ease:[{ease:["linear","in","out","in-out",Pe]}],delay:[{delay:$()}],animate:[{animate:["none","spin","ping","pulse","bounce",Pe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[Cu,Pe]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Pe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Pe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Pe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[_a,gi,Vg]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Q6=R6(X6);function he(...e){return Q6(Ue(e))}function kt({className:e,...t}){return v.jsx("div",{className:he("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",e),"data-slot":"card",...t})}function $t({className:e,...t}){return v.jsx("div",{className:he("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),"data-slot":"card-header",...t})}function an({className:e,...t}){return v.jsx("div",{className:he("font-semibold leading-none",e),"data-slot":"card-title",...t})}function hr({className:e,...t}){return v.jsx("div",{className:he("text-muted-foreground text-sm",e),"data-slot":"card-description",...t})}function Ut({className:e,...t}){return v.jsx("div",{className:he("px-6",e),"data-slot":"card-content",...t})}function Z6(){return v.jsxs(v.Fragment,{children:[v.jsxs("div",{children:[v.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Dashboard"}),v.jsx("p",{className:"mt-2 text-muted-foreground",children:"Aggregate metrics across all product lines"})]}),v.jsxs("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:[v.jsxs(kt,{children:[v.jsxs($t,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[v.jsx(an,{className:"font-medium text-sm",children:"Email"}),v.jsx(mo,{className:"size-4 text-muted-foreground"})]}),v.jsxs(Ut,{children:[v.jsx("div",{className:"font-bold text-2xl",children:"-"}),v.jsx("p",{className:"mt-1 text-muted-foreground text-xs",children:"Email metrics coming soon"})]})]}),v.jsxs(kt,{children:[v.jsxs($t,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[v.jsx(an,{className:"font-medium text-sm",children:"Text"}),v.jsx(c6,{className:"size-4 text-muted-foreground"})]}),v.jsxs(Ut,{children:[v.jsx("div",{className:"font-bold text-2xl",children:"-"}),v.jsx("p",{className:"mt-1 text-muted-foreground text-xs",children:"Text metrics coming soon"})]})]}),v.jsxs(kt,{children:[v.jsxs($t,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[v.jsx(an,{className:"font-medium text-sm",children:"Queues"}),v.jsx(s6,{className:"size-4 text-muted-foreground"})]}),v.jsxs(Ut,{children:[v.jsx("div",{className:"font-bold text-2xl",children:"-"}),v.jsx("p",{className:"mt-1 text-muted-foreground text-xs",children:"Queue metrics coming soon"})]})]}),v.jsxs(kt,{children:[v.jsxs($t,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[v.jsx(an,{className:"font-medium text-sm",children:"MQTT"}),v.jsx(b6,{className:"size-4 text-muted-foreground"})]}),v.jsxs(Ut,{children:[v.jsx("div",{className:"font-bold text-2xl",children:"-"}),v.jsx("p",{className:"mt-1 text-muted-foreground text-xs",children:"MQTT metrics coming soon"})]})]})]}),v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsx(an,{children:"Activity Overview"}),v.jsx(hr,{children:"Aggregate activity across all product lines"})]}),v.jsx(Ut,{children:v.jsxs("div",{className:"flex h-[200px] items-center justify-center text-muted-foreground",children:[v.jsx(tc,{className:"mr-2 size-5"}),v.jsx("span",{children:"Charts and visualizations coming soon"})]})})]})]})}function jk(e,t=[]){let n=[];function r(l,s){const c=_.createContext(s);c.displayName=l+"Context";const f=n.length;n=[...n,s];const d=p=>{var E;const{scope:y,children:x,...O}=p,w=((E=y==null?void 0:y[e])==null?void 0:E[f])||c,S=_.useMemo(()=>O,Object.values(O));return v.jsx(w.Provider,{value:S,children:x})};d.displayName=l+"Provider";function m(p,y){var w;const x=((w=y==null?void 0:y[e])==null?void 0:w[f])||c,O=_.useContext(x);if(O)return O;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${l}\``)}return[d,m]}const i=()=>{const l=n.map(s=>_.createContext(s));return function(c){const f=(c==null?void 0:c[e])||l;return _.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return i.scopeName=e,[r,J6(i,...t)]}function J6(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(l){const s=r.reduce((c,{useScope:f,scopeName:d})=>{const p=f(l)[`__scope${d}`];return{...c,...p}},{});return _.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Cr(e){const t=_.useRef(e);return _.useEffect(()=>{t.current=e}),_.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var It=globalThis!=null&&globalThis.document?_.useLayoutEffect:()=>{};function sj(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Wc(...e){return t=>{let n=!1;const r=e.map(i=>{const l=sj(i,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let i=0;i<r.length;i++){const l=r[i];typeof l=="function"?l():sj(e[i],null)}}}}function Ve(...e){return _.useCallback(Wc(...e),e)}var eU=Symbol.for("react.lazy"),ah=J1[" use ".trim().toString()];function tU(e){return typeof e=="object"&&e!==null&&"then"in e}function Ck(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===eU&&"_payload"in e&&tU(e._payload)}function Mk(e){const t=nU(e),n=_.forwardRef((r,i)=>{let{children:l,...s}=r;Ck(l)&&typeof ah=="function"&&(l=ah(l._payload));const c=_.Children.toArray(l),f=c.find(aU);if(f){const d=f.props.children,m=c.map(p=>p===f?_.Children.count(d)>1?_.Children.only(null):_.isValidElement(d)?d.props.children:null:p);return v.jsx(t,{...s,ref:i,children:_.isValidElement(d)?_.cloneElement(d,void 0,m):null})}return v.jsx(t,{...s,ref:i,children:l})});return n.displayName=`${e}.Slot`,n}var jo=Mk("Slot");function nU(e){const t=_.forwardRef((n,r)=>{let{children:i,...l}=n;if(Ck(i)&&typeof ah=="function"&&(i=ah(i._payload)),_.isValidElement(i)){const s=oU(i),c=iU(l,i.props);return i.type!==_.Fragment&&(c.ref=r?Wc(r,s):s),_.cloneElement(i,c)}return _.Children.count(i)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var rU=Symbol("radix.slottable");function aU(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===rU}function iU(e,t){const n={...t};for(const r in t){const i=e[r],l=t[r];/^on[A-Z]/.test(r)?i&&l?n[r]=(...c)=>{const f=l(...c);return i(...c),f}:i&&(n[r]=i):r==="style"?n[r]={...i,...l}:r==="className"&&(n[r]=[i,l].filter(Boolean).join(" "))}return{...e,...n}}function oU(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var lU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Co=lU.reduce((e,t)=>{const n=Mk(`Primitive.${t}`),r=_.forwardRef((i,l)=>{const{asChild:s,...c}=i,f=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(f,{...c,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Yg={exports:{}},Wg={};/**
241
- * @license React
242
- * use-sync-external-store-shim.production.js
243
- *
244
- * Copyright (c) Meta Platforms, Inc. and affiliates.
245
- *
246
- * This source code is licensed under the MIT license found in the
247
- * LICENSE file in the root directory of this source tree.
248
- */var uj;function sU(){if(uj)return Wg;uj=1;var e=mp();function t(p,y){return p===y&&(p!==0||1/p===1/y)||p!==p&&y!==y}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,l=e.useLayoutEffect,s=e.useDebugValue;function c(p,y){var x=y(),O=r({inst:{value:x,getSnapshot:y}}),w=O[0].inst,S=O[1];return l(function(){w.value=x,w.getSnapshot=y,f(w)&&S({inst:w})},[p,x,y]),i(function(){return f(w)&&S({inst:w}),p(function(){f(w)&&S({inst:w})})},[p]),s(x),x}function f(p){var y=p.getSnapshot;p=p.value;try{var x=y();return!n(p,x)}catch{return!0}}function d(p,y){return y()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:c;return Wg.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Wg}var cj;function uU(){return cj||(cj=1,Yg.exports=sU()),Yg.exports}var cU=uU();function fU(){return cU.useSyncExternalStore(dU,()=>!0,()=>!1)}function dU(){return()=>{}}var oS="Avatar",[hU]=jk(oS),[pU,Nk]=hU(oS),Rk=_.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[i,l]=_.useState("idle");return v.jsx(pU,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:l,children:v.jsx(Co.span,{...r,ref:t})})});Rk.displayName=oS;var Pk="AvatarImage",Dk=_.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...l}=e,s=Nk(Pk,n),c=mU(r,l),f=Cr(d=>{i(d),s.onImageLoadingStatusChange(d)});return It(()=>{c!=="idle"&&f(c)},[c,f]),c==="loaded"?v.jsx(Co.img,{...l,ref:t,src:r}):null});Dk.displayName=Pk;var kk="AvatarFallback",$k=_.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...i}=e,l=Nk(kk,n),[s,c]=_.useState(r===void 0);return _.useEffect(()=>{if(r!==void 0){const f=window.setTimeout(()=>c(!0),r);return()=>window.clearTimeout(f)}},[r]),s&&l.imageLoadingStatus!=="loaded"?v.jsx(Co.span,{...i,ref:t}):null});$k.displayName=kk;function fj(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function mU(e,{referrerPolicy:t,crossOrigin:n}){const r=fU(),i=_.useRef(null),l=r?(i.current||(i.current=new window.Image),i.current):null,[s,c]=_.useState(()=>fj(l,e));return It(()=>{c(fj(l,e))},[l,e]),It(()=>{const f=p=>()=>{c(p)};if(!l)return;const d=f("loaded"),m=f("error");return l.addEventListener("load",d),l.addEventListener("error",m),t&&(l.referrerPolicy=t),typeof n=="string"&&(l.crossOrigin=n),()=>{l.removeEventListener("load",d),l.removeEventListener("error",m)}},[l,n,t]),s}var vU=Rk,gU=Dk,yU=$k;function dj({className:e,...t}){return v.jsx(vU,{className:he("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),"data-slot":"avatar",...t})}function hj({className:e,...t}){return v.jsx(gU,{className:he("aspect-square size-full",e),"data-slot":"avatar-image",...t})}function pj({className:e,...t}){return v.jsx(yU,{className:he("flex size-full items-center justify-center rounded-full bg-muted",e),"data-slot":"avatar-fallback",...t})}function be(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function bU(e,t){const n=_.createContext(t),r=l=>{const{children:s,...c}=l,f=_.useMemo(()=>c,Object.values(c));return v.jsx(n.Provider,{value:f,children:s})};r.displayName=e+"Provider";function i(l){const s=_.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[r,i]}function Rr(e,t=[]){let n=[];function r(l,s){const c=_.createContext(s),f=n.length;n=[...n,s];const d=p=>{var E;const{scope:y,children:x,...O}=p,w=((E=y==null?void 0:y[e])==null?void 0:E[f])||c,S=_.useMemo(()=>O,Object.values(O));return v.jsx(w.Provider,{value:S,children:x})};d.displayName=l+"Provider";function m(p,y){var w;const x=((w=y==null?void 0:y[e])==null?void 0:w[f])||c,O=_.useContext(x);if(O)return O;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${l}\``)}return[d,m]}const i=()=>{const l=n.map(s=>_.createContext(s));return function(c){const f=(c==null?void 0:c[e])||l;return _.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return i.scopeName=e,[r,xU(i,...t)]}function xU(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(l){const s=r.reduce((c,{useScope:f,scopeName:d})=>{const p=f(l)[`__scope${d}`];return{...c,...p}},{});return _.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var wU=J1[" useInsertionEffect ".trim().toString()]||It;function Ai({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,l,s]=SU({defaultProp:t,onChange:n}),c=e!==void 0,f=c?e:i;{const m=_.useRef(e!==void 0);_.useEffect(()=>{const p=m.current;p!==c&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=c},[c,r])}const d=_.useCallback(m=>{var p;if(c){const y=OU(m)?m(e):m;y!==e&&((p=s.current)==null||p.call(s,y))}else l(m)},[c,e,l,s]);return[f,d]}function SU({defaultProp:e,onChange:t}){const[n,r]=_.useState(e),i=_.useRef(n),l=_.useRef(t);return wU(()=>{l.current=t},[t]),_.useEffect(()=>{var s;i.current!==n&&((s=l.current)==null||s.call(l,n),i.current=n)},[n,i]),[n,r,l]}function OU(e){return typeof e=="function"}function Vl(e){const t=_U(e),n=_.forwardRef((r,i)=>{const{children:l,...s}=r,c=_.Children.toArray(l),f=c.find(EU);if(f){const d=f.props.children,m=c.map(p=>p===f?_.Children.count(d)>1?_.Children.only(null):_.isValidElement(d)?d.props.children:null:p);return v.jsx(t,{...s,ref:i,children:_.isValidElement(d)?_.cloneElement(d,void 0,m):null})}return v.jsx(t,{...s,ref:i,children:l})});return n.displayName=`${e}.Slot`,n}function _U(e){const t=_.forwardRef((n,r)=>{const{children:i,...l}=n;if(_.isValidElement(i)){const s=TU(i),c=AU(l,i.props);return i.type!==_.Fragment&&(c.ref=r?Wc(r,s):s),_.cloneElement(i,c)}return _.Children.count(i)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Lk=Symbol("radix.slottable");function Ik(e){const t=({children:n})=>v.jsx(v.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Lk,t}function EU(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Lk}function AU(e,t){const n={...t};for(const r in t){const i=e[r],l=t[r];/^on[A-Z]/.test(r)?i&&l?n[r]=(...c)=>{const f=l(...c);return i(...c),f}:i&&(n[r]=i):r==="style"?n[r]={...i,...l}:r==="className"&&(n[r]=[i,l].filter(Boolean).join(" "))}return{...e,...n}}function TU(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var jU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Me=jU.reduce((e,t)=>{const n=Vl(`Primitive.${t}`),r=_.forwardRef((i,l)=>{const{asChild:s,...c}=i,f=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(f,{...c,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function zk(e,t){e&&Vc.flushSync(()=>e.dispatchEvent(t))}function lS(e){const t=e+"CollectionProvider",[n,r]=Rr(t),[i,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=w=>{const{scope:S,children:E}=w,T=L.useRef(null),A=L.useRef(new Map).current;return v.jsx(i,{scope:S,itemMap:A,collectionRef:T,children:E})};s.displayName=t;const c=e+"CollectionSlot",f=Vl(c),d=L.forwardRef((w,S)=>{const{scope:E,children:T}=w,A=l(c,E),M=Ve(S,A.collectionRef);return v.jsx(f,{ref:M,children:T})});d.displayName=c;const m=e+"CollectionItemSlot",p="data-radix-collection-item",y=Vl(m),x=L.forwardRef((w,S)=>{const{scope:E,children:T,...A}=w,M=L.useRef(null),j=Ve(S,M),N=l(m,E);return L.useEffect(()=>(N.itemMap.set(M,{ref:M,...A}),()=>void N.itemMap.delete(M))),v.jsx(y,{[p]:"",ref:j,children:T})});x.displayName=m;function O(w){const S=l(e+"CollectionConsumer",w);return L.useCallback(()=>{const T=S.collectionRef.current;if(!T)return[];const A=Array.from(T.querySelectorAll(`[${p}]`));return Array.from(S.itemMap.values()).sort((N,R)=>A.indexOf(N.ref.current)-A.indexOf(R.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:s,Slot:d,ItemSlot:x},O,r]}var CU=_.createContext(void 0);function xp(e){const t=_.useContext(CU);return e||t||"ltr"}function MU(e,t=globalThis==null?void 0:globalThis.document){const n=Cr(e);_.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var NU="DismissableLayer",dw="dismissableLayer.update",RU="dismissableLayer.pointerDownOutside",PU="dismissableLayer.focusOutside",mj,Bk=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Kc=_.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:l,onInteractOutside:s,onDismiss:c,...f}=e,d=_.useContext(Bk),[m,p]=_.useState(null),y=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=_.useState({}),O=Ve(t,R=>p(R)),w=Array.from(d.layers),[S]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),E=w.indexOf(S),T=m?w.indexOf(m):-1,A=d.layersWithOutsidePointerEventsDisabled.size>0,M=T>=E,j=$U(R=>{const k=R.target,I=[...d.branches].some(V=>V.contains(k));!M||I||(i==null||i(R),s==null||s(R),R.defaultPrevented||c==null||c())},y),N=LU(R=>{const k=R.target;[...d.branches].some(V=>V.contains(k))||(l==null||l(R),s==null||s(R),R.defaultPrevented||c==null||c())},y);return MU(R=>{T===d.layers.size-1&&(r==null||r(R),!R.defaultPrevented&&c&&(R.preventDefault(),c()))},y),_.useEffect(()=>{if(m)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(mj=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),vj(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=mj)}},[m,y,n,d]),_.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),vj())},[m,d]),_.useEffect(()=>{const R=()=>x({});return document.addEventListener(dw,R),()=>document.removeEventListener(dw,R)},[]),v.jsx(Me.div,{...f,ref:O,style:{pointerEvents:A?M?"auto":"none":void 0,...e.style},onFocusCapture:be(e.onFocusCapture,N.onFocusCapture),onBlurCapture:be(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:be(e.onPointerDownCapture,j.onPointerDownCapture)})});Kc.displayName=NU;var DU="DismissableLayerBranch",kU=_.forwardRef((e,t)=>{const n=_.useContext(Bk),r=_.useRef(null),i=Ve(t,r);return _.useEffect(()=>{const l=r.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),v.jsx(Me.div,{...e,ref:i})});kU.displayName=DU;function $U(e,t=globalThis==null?void 0:globalThis.document){const n=Cr(e),r=_.useRef(!1),i=_.useRef(()=>{});return _.useEffect(()=>{const l=c=>{if(c.target&&!r.current){let f=function(){qk(RU,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=f,t.addEventListener("click",i.current,{once:!0})):f()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",l),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function LU(e,t=globalThis==null?void 0:globalThis.document){const n=Cr(e),r=_.useRef(!1);return _.useEffect(()=>{const i=l=>{l.target&&!r.current&&qk(PU,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function vj(){const e=new CustomEvent(dw);document.dispatchEvent(e)}function qk(e,t,n,{discrete:r}){const i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?zk(i,l):i.dispatchEvent(l)}var Kg=0;function sS(){_.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??gj()),document.body.insertAdjacentElement("beforeend",e[1]??gj()),Kg++,()=>{Kg===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Kg--}},[])}function gj(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Xg="focusScope.autoFocusOnMount",Qg="focusScope.autoFocusOnUnmount",yj={bubbles:!1,cancelable:!0},IU="FocusScope",wp=_.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...s}=e,[c,f]=_.useState(null),d=Cr(i),m=Cr(l),p=_.useRef(null),y=Ve(t,w=>f(w)),x=_.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;_.useEffect(()=>{if(r){let w=function(A){if(x.paused||!c)return;const M=A.target;c.contains(M)?p.current=M:xi(p.current,{select:!0})},S=function(A){if(x.paused||!c)return;const M=A.relatedTarget;M!==null&&(c.contains(M)||xi(p.current,{select:!0}))},E=function(A){if(document.activeElement===document.body)for(const j of A)j.removedNodes.length>0&&xi(c)};document.addEventListener("focusin",w),document.addEventListener("focusout",S);const T=new MutationObserver(E);return c&&T.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",S),T.disconnect()}}},[r,c,x.paused]),_.useEffect(()=>{if(c){xj.add(x);const w=document.activeElement;if(!c.contains(w)){const E=new CustomEvent(Xg,yj);c.addEventListener(Xg,d),c.dispatchEvent(E),E.defaultPrevented||(zU(FU(Uk(c)),{select:!0}),document.activeElement===w&&xi(c))}return()=>{c.removeEventListener(Xg,d),setTimeout(()=>{const E=new CustomEvent(Qg,yj);c.addEventListener(Qg,m),c.dispatchEvent(E),E.defaultPrevented||xi(w??document.body,{select:!0}),c.removeEventListener(Qg,m),xj.remove(x)},0)}}},[c,d,m,x]);const O=_.useCallback(w=>{if(!n&&!r||x.paused)return;const S=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,E=document.activeElement;if(S&&E){const T=w.currentTarget,[A,M]=BU(T);A&&M?!w.shiftKey&&E===M?(w.preventDefault(),n&&xi(A,{select:!0})):w.shiftKey&&E===A&&(w.preventDefault(),n&&xi(M,{select:!0})):E===T&&w.preventDefault()}},[n,r,x.paused]);return v.jsx(Me.div,{tabIndex:-1,...s,ref:y,onKeyDown:O})});wp.displayName=IU;function zU(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(xi(r,{select:t}),document.activeElement!==n)return}function BU(e){const t=Uk(e),n=bj(t,e),r=bj(t.reverse(),e);return[n,r]}function Uk(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function bj(e,t){for(const n of e)if(!qU(n,{upTo:t}))return n}function qU(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function UU(e){return e instanceof HTMLInputElement&&"select"in e}function xi(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&UU(e)&&t&&e.select()}}var xj=HU();function HU(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=wj(e,t),e.unshift(t)},remove(t){var n;e=wj(e,t),(n=e[0])==null||n.resume()}}}function wj(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function FU(e){return e.filter(t=>t.tagName!=="A")}var GU=J1[" useId ".trim().toString()]||(()=>{}),VU=0;function ur(e){const[t,n]=_.useState(GU());return It(()=>{n(r=>r??String(VU++))},[e]),e||(t?`radix-${t}`:"")}const YU=["top","right","bottom","left"],Ti=Math.min,Fn=Math.max,ih=Math.round,Cd=Math.floor,Kr=e=>({x:e,y:e}),WU={left:"right",right:"left",bottom:"top",top:"bottom"},KU={start:"end",end:"start"};function hw(e,t,n){return Fn(e,Ti(t,n))}function Da(e,t){return typeof e=="function"?e(t):e}function ka(e){return e.split("-")[0]}function Ss(e){return e.split("-")[1]}function uS(e){return e==="x"?"y":"x"}function cS(e){return e==="y"?"height":"width"}const XU=new Set(["top","bottom"]);function Yr(e){return XU.has(ka(e))?"y":"x"}function fS(e){return uS(Yr(e))}function QU(e,t,n){n===void 0&&(n=!1);const r=Ss(e),i=fS(e),l=cS(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(s=oh(s)),[s,oh(s)]}function ZU(e){const t=oh(e);return[pw(e),t,pw(t)]}function pw(e){return e.replace(/start|end/g,t=>KU[t])}const Sj=["left","right"],Oj=["right","left"],JU=["top","bottom"],eH=["bottom","top"];function tH(e,t,n){switch(e){case"top":case"bottom":return n?t?Oj:Sj:t?Sj:Oj;case"left":case"right":return t?JU:eH;default:return[]}}function nH(e,t,n,r){const i=Ss(e);let l=tH(ka(e),n==="start",r);return i&&(l=l.map(s=>s+"-"+i),t&&(l=l.concat(l.map(pw)))),l}function oh(e){return e.replace(/left|right|bottom|top/g,t=>WU[t])}function rH(e){return{top:0,right:0,bottom:0,left:0,...e}}function Hk(e){return typeof e!="number"?rH(e):{top:e,right:e,bottom:e,left:e}}function lh(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function _j(e,t,n){let{reference:r,floating:i}=e;const l=Yr(t),s=fS(t),c=cS(s),f=ka(t),d=l==="y",m=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,y=r[c]/2-i[c]/2;let x;switch(f){case"top":x={x:m,y:r.y-i.height};break;case"bottom":x={x:m,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:p};break;case"left":x={x:r.x-i.width,y:p};break;default:x={x:r.x,y:r.y}}switch(Ss(t)){case"start":x[s]-=y*(n&&d?-1:1);break;case"end":x[s]+=y*(n&&d?-1:1);break}return x}const aH=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:s}=n,c=l.filter(Boolean),f=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:p}=_j(d,r,f),y=r,x={},O=0;for(let w=0;w<c.length;w++){const{name:S,fn:E}=c[w],{x:T,y:A,data:M,reset:j}=await E({x:m,y:p,initialPlacement:r,placement:y,strategy:i,middlewareData:x,rects:d,platform:s,elements:{reference:e,floating:t}});m=T??m,p=A??p,x={...x,[S]:{...x[S],...M}},j&&O<=50&&(O++,typeof j=="object"&&(j.placement&&(y=j.placement),j.rects&&(d=j.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):j.rects),{x:m,y:p}=_j(d,y,f)),w=-1)}return{x:m,y:p,placement:y,strategy:i,middlewareData:x}};async function nc(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:l,rects:s,elements:c,strategy:f}=e,{boundary:d="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:y=!1,padding:x=0}=Da(t,e),O=Hk(x),S=c[y?p==="floating"?"reference":"floating":p],E=lh(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(S)))==null||n?S:S.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(c.floating)),boundary:d,rootBoundary:m,strategy:f})),T=p==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,A=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c.floating)),M=await(l.isElement==null?void 0:l.isElement(A))?await(l.getScale==null?void 0:l.getScale(A))||{x:1,y:1}:{x:1,y:1},j=lh(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:T,offsetParent:A,strategy:f}):T);return{top:(E.top-j.top+O.top)/M.y,bottom:(j.bottom-E.bottom+O.bottom)/M.y,left:(E.left-j.left+O.left)/M.x,right:(j.right-E.right+O.right)/M.x}}const iH=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:l,platform:s,elements:c,middlewareData:f}=t,{element:d,padding:m=0}=Da(e,t)||{};if(d==null)return{};const p=Hk(m),y={x:n,y:r},x=fS(i),O=cS(x),w=await s.getDimensions(d),S=x==="y",E=S?"top":"left",T=S?"bottom":"right",A=S?"clientHeight":"clientWidth",M=l.reference[O]+l.reference[x]-y[x]-l.floating[O],j=y[x]-l.reference[x],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let R=N?N[A]:0;(!R||!await(s.isElement==null?void 0:s.isElement(N)))&&(R=c.floating[A]||l.floating[O]);const k=M/2-j/2,I=R/2-w[O]/2-1,V=Ti(p[E],I),z=Ti(p[T],I),B=V,G=R-w[O]-z,K=R/2-w[O]/2+k,X=hw(B,K,G),D=!f.arrow&&Ss(i)!=null&&K!==X&&l.reference[O]/2-(K<B?V:z)-w[O]/2<0,U=D?K<B?K-B:K-G:0;return{[x]:y[x]+U,data:{[x]:X,centerOffset:K-X-U,...D&&{alignmentOffset:U}},reset:D}}}),oH=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:l,rects:s,initialPlacement:c,platform:f,elements:d}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:w=!0,...S}=Da(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const E=ka(i),T=Yr(c),A=ka(c)===c,M=await(f.isRTL==null?void 0:f.isRTL(d.floating)),j=y||(A||!w?[oh(c)]:ZU(c)),N=O!=="none";!y&&N&&j.push(...nH(c,w,O,M));const R=[c,...j],k=await nc(t,S),I=[];let V=((r=l.flip)==null?void 0:r.overflows)||[];if(m&&I.push(k[E]),p){const K=QU(i,s,M);I.push(k[K[0]],k[K[1]])}if(V=[...V,{placement:i,overflows:I}],!I.every(K=>K<=0)){var z,B;const K=(((z=l.flip)==null?void 0:z.index)||0)+1,X=R[K];if(X&&(!(p==="alignment"?T!==Yr(X):!1)||V.every(Y=>Yr(Y.placement)===T?Y.overflows[0]>0:!0)))return{data:{index:K,overflows:V},reset:{placement:X}};let D=(B=V.filter(U=>U.overflows[0]<=0).sort((U,Y)=>U.overflows[1]-Y.overflows[1])[0])==null?void 0:B.placement;if(!D)switch(x){case"bestFit":{var G;const U=(G=V.filter(Y=>{if(N){const W=Yr(Y.placement);return W===T||W==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(W=>W>0).reduce((W,oe)=>W+oe,0)]).sort((Y,W)=>Y[1]-W[1])[0])==null?void 0:G[0];U&&(D=U);break}case"initialPlacement":D=c;break}if(i!==D)return{reset:{placement:D}}}return{}}}};function Ej(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Aj(e){return YU.some(t=>e[t]>=0)}const lH=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Da(e,t);switch(r){case"referenceHidden":{const l=await nc(t,{...i,elementContext:"reference"}),s=Ej(l,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Aj(s)}}}case"escaped":{const l=await nc(t,{...i,altBoundary:!0}),s=Ej(l,n.floating);return{data:{escapedOffsets:s,escaped:Aj(s)}}}default:return{}}}}},Fk=new Set(["left","top"]);async function sH(e,t){const{placement:n,platform:r,elements:i}=e,l=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=ka(n),c=Ss(n),f=Yr(n)==="y",d=Fk.has(s)?-1:1,m=l&&f?-1:1,p=Da(t,e);let{mainAxis:y,crossAxis:x,alignmentAxis:O}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof O=="number"&&(x=c==="end"?O*-1:O),f?{x:x*m,y:y*d}:{x:y*d,y:x*m}}const uH=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:l,placement:s,middlewareData:c}=t,f=await sH(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+f.x,y:l+f.y,data:{...f,placement:s}}}}},cH=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:l=!0,crossAxis:s=!1,limiter:c={fn:S=>{let{x:E,y:T}=S;return{x:E,y:T}}},...f}=Da(e,t),d={x:n,y:r},m=await nc(t,f),p=Yr(ka(i)),y=uS(p);let x=d[y],O=d[p];if(l){const S=y==="y"?"top":"left",E=y==="y"?"bottom":"right",T=x+m[S],A=x-m[E];x=hw(T,x,A)}if(s){const S=p==="y"?"top":"left",E=p==="y"?"bottom":"right",T=O+m[S],A=O-m[E];O=hw(T,O,A)}const w=c.fn({...t,[y]:x,[p]:O});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[y]:l,[p]:s}}}}}},fH=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:l,middlewareData:s}=t,{offset:c=0,mainAxis:f=!0,crossAxis:d=!0}=Da(e,t),m={x:n,y:r},p=Yr(i),y=uS(p);let x=m[y],O=m[p];const w=Da(c,t),S=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(f){const A=y==="y"?"height":"width",M=l.reference[y]-l.floating[A]+S.mainAxis,j=l.reference[y]+l.reference[A]-S.mainAxis;x<M?x=M:x>j&&(x=j)}if(d){var E,T;const A=y==="y"?"width":"height",M=Fk.has(ka(i)),j=l.reference[p]-l.floating[A]+(M&&((E=s.offset)==null?void 0:E[p])||0)+(M?0:S.crossAxis),N=l.reference[p]+l.reference[A]+(M?0:((T=s.offset)==null?void 0:T[p])||0)-(M?S.crossAxis:0);O<j?O=j:O>N&&(O=N)}return{[y]:x,[p]:O}}}},dH=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:l,platform:s,elements:c}=t,{apply:f=()=>{},...d}=Da(e,t),m=await nc(t,d),p=ka(i),y=Ss(i),x=Yr(i)==="y",{width:O,height:w}=l.floating;let S,E;p==="top"||p==="bottom"?(S=p,E=y===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(E=p,S=y==="end"?"top":"bottom");const T=w-m.top-m.bottom,A=O-m.left-m.right,M=Ti(w-m[S],T),j=Ti(O-m[E],A),N=!t.middlewareData.shift;let R=M,k=j;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=A),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=T),N&&!y){const V=Fn(m.left,0),z=Fn(m.right,0),B=Fn(m.top,0),G=Fn(m.bottom,0);x?k=O-2*(V!==0||z!==0?V+z:Fn(m.left,m.right)):R=w-2*(B!==0||G!==0?B+G:Fn(m.top,m.bottom))}await f({...t,availableWidth:k,availableHeight:R});const I=await s.getDimensions(c.floating);return O!==I.width||w!==I.height?{reset:{rects:!0}}:{}}}};function Sp(){return typeof window<"u"}function Os(e){return Gk(e)?(e.nodeName||"").toLowerCase():"#document"}function Vn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ra(e){var t;return(t=(Gk(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Gk(e){return Sp()?e instanceof Node||e instanceof Vn(e).Node:!1}function Mr(e){return Sp()?e instanceof Element||e instanceof Vn(e).Element:!1}function Jr(e){return Sp()?e instanceof HTMLElement||e instanceof Vn(e).HTMLElement:!1}function Tj(e){return!Sp()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Vn(e).ShadowRoot}const hH=new Set(["inline","contents"]);function Xc(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Nr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!hH.has(i)}const pH=new Set(["table","td","th"]);function mH(e){return pH.has(Os(e))}const vH=[":popover-open",":modal"];function Op(e){return vH.some(t=>{try{return e.matches(t)}catch{return!1}})}const gH=["transform","translate","scale","rotate","perspective"],yH=["transform","translate","scale","rotate","perspective","filter"],bH=["paint","layout","strict","content"];function dS(e){const t=hS(),n=Mr(e)?Nr(e):e;return gH.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||yH.some(r=>(n.willChange||"").includes(r))||bH.some(r=>(n.contain||"").includes(r))}function xH(e){let t=ji(e);for(;Jr(t)&&!Yl(t);){if(dS(t))return t;if(Op(t))return null;t=ji(t)}return null}function hS(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const wH=new Set(["html","body","#document"]);function Yl(e){return wH.has(Os(e))}function Nr(e){return Vn(e).getComputedStyle(e)}function _p(e){return Mr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ji(e){if(Os(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Tj(e)&&e.host||ra(e);return Tj(t)?t.host:t}function Vk(e){const t=ji(e);return Yl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jr(t)&&Xc(t)?t:Vk(t)}function rc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Vk(e),l=i===((r=e.ownerDocument)==null?void 0:r.body),s=Vn(i);if(l){const c=mw(s);return t.concat(s,s.visualViewport||[],Xc(i)?i:[],c&&n?rc(c):[])}return t.concat(i,rc(i,[],n))}function mw(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Yk(e){const t=Nr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Jr(e),l=i?e.offsetWidth:n,s=i?e.offsetHeight:r,c=ih(n)!==l||ih(r)!==s;return c&&(n=l,r=s),{width:n,height:r,$:c}}function pS(e){return Mr(e)?e:e.contextElement}function zl(e){const t=pS(e);if(!Jr(t))return Kr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:l}=Yk(t);let s=(l?ih(n.width):n.width)/r,c=(l?ih(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const SH=Kr(0);function Wk(e){const t=Vn(e);return!hS()||!t.visualViewport?SH:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function OH(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Vn(e)?!1:t}function bo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),l=pS(e);let s=Kr(1);t&&(r?Mr(r)&&(s=zl(r)):s=zl(e));const c=OH(l,n,r)?Wk(l):Kr(0);let f=(i.left+c.x)/s.x,d=(i.top+c.y)/s.y,m=i.width/s.x,p=i.height/s.y;if(l){const y=Vn(l),x=r&&Mr(r)?Vn(r):r;let O=y,w=mw(O);for(;w&&r&&x!==O;){const S=zl(w),E=w.getBoundingClientRect(),T=Nr(w),A=E.left+(w.clientLeft+parseFloat(T.paddingLeft))*S.x,M=E.top+(w.clientTop+parseFloat(T.paddingTop))*S.y;f*=S.x,d*=S.y,m*=S.x,p*=S.y,f+=A,d+=M,O=Vn(w),w=mw(O)}}return lh({width:m,height:p,x:f,y:d})}function Ep(e,t){const n=_p(e).scrollLeft;return t?t.left+n:bo(ra(e)).left+n}function Kk(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ep(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function _H(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const l=i==="fixed",s=ra(r),c=t?Op(t.floating):!1;if(r===s||c&&l)return n;let f={scrollLeft:0,scrollTop:0},d=Kr(1);const m=Kr(0),p=Jr(r);if((p||!p&&!l)&&((Os(r)!=="body"||Xc(s))&&(f=_p(r)),Jr(r))){const x=bo(r);d=zl(r),m.x=x.x+r.clientLeft,m.y=x.y+r.clientTop}const y=s&&!p&&!l?Kk(s,f):Kr(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-f.scrollLeft*d.x+m.x+y.x,y:n.y*d.y-f.scrollTop*d.y+m.y+y.y}}function EH(e){return Array.from(e.getClientRects())}function AH(e){const t=ra(e),n=_p(e),r=e.ownerDocument.body,i=Fn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=Fn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ep(e);const c=-n.scrollTop;return Nr(r).direction==="rtl"&&(s+=Fn(t.clientWidth,r.clientWidth)-i),{width:i,height:l,x:s,y:c}}const jj=25;function TH(e,t){const n=Vn(e),r=ra(e),i=n.visualViewport;let l=r.clientWidth,s=r.clientHeight,c=0,f=0;if(i){l=i.width,s=i.height;const m=hS();(!m||m&&t==="fixed")&&(c=i.offsetLeft,f=i.offsetTop)}const d=Ep(r);if(d<=0){const m=r.ownerDocument,p=m.body,y=getComputedStyle(p),x=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,O=Math.abs(r.clientWidth-p.clientWidth-x);O<=jj&&(l-=O)}else d<=jj&&(l+=d);return{width:l,height:s,x:c,y:f}}const jH=new Set(["absolute","fixed"]);function CH(e,t){const n=bo(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,l=Jr(e)?zl(e):Kr(1),s=e.clientWidth*l.x,c=e.clientHeight*l.y,f=i*l.x,d=r*l.y;return{width:s,height:c,x:f,y:d}}function Cj(e,t,n){let r;if(t==="viewport")r=TH(e,n);else if(t==="document")r=AH(ra(e));else if(Mr(t))r=CH(t,n);else{const i=Wk(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return lh(r)}function Xk(e,t){const n=ji(e);return n===t||!Mr(n)||Yl(n)?!1:Nr(n).position==="fixed"||Xk(n,t)}function MH(e,t){const n=t.get(e);if(n)return n;let r=rc(e,[],!1).filter(c=>Mr(c)&&Os(c)!=="body"),i=null;const l=Nr(e).position==="fixed";let s=l?ji(e):e;for(;Mr(s)&&!Yl(s);){const c=Nr(s),f=dS(s);!f&&c.position==="fixed"&&(i=null),(l?!f&&!i:!f&&c.position==="static"&&!!i&&jH.has(i.position)||Xc(s)&&!f&&Xk(e,s))?r=r.filter(m=>m!==s):i=c,s=ji(s)}return t.set(e,r),r}function NH(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Op(t)?[]:MH(t,this._c):[].concat(n),r],c=s[0],f=s.reduce((d,m)=>{const p=Cj(t,m,i);return d.top=Fn(p.top,d.top),d.right=Ti(p.right,d.right),d.bottom=Ti(p.bottom,d.bottom),d.left=Fn(p.left,d.left),d},Cj(t,c,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function RH(e){const{width:t,height:n}=Yk(e);return{width:t,height:n}}function PH(e,t,n){const r=Jr(t),i=ra(t),l=n==="fixed",s=bo(e,!0,l,t);let c={scrollLeft:0,scrollTop:0};const f=Kr(0);function d(){f.x=Ep(i)}if(r||!r&&!l)if((Os(t)!=="body"||Xc(i))&&(c=_p(t)),r){const x=bo(t,!0,l,t);f.x=x.x+t.clientLeft,f.y=x.y+t.clientTop}else i&&d();l&&!r&&i&&d();const m=i&&!r&&!l?Kk(i,c):Kr(0),p=s.left+c.scrollLeft-f.x-m.x,y=s.top+c.scrollTop-f.y-m.y;return{x:p,y,width:s.width,height:s.height}}function Zg(e){return Nr(e).position==="static"}function Mj(e,t){if(!Jr(e)||Nr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ra(e)===n&&(n=n.ownerDocument.body),n}function Qk(e,t){const n=Vn(e);if(Op(e))return n;if(!Jr(e)){let i=ji(e);for(;i&&!Yl(i);){if(Mr(i)&&!Zg(i))return i;i=ji(i)}return n}let r=Mj(e,t);for(;r&&mH(r)&&Zg(r);)r=Mj(r,t);return r&&Yl(r)&&Zg(r)&&!dS(r)?n:r||xH(e)||n}const DH=async function(e){const t=this.getOffsetParent||Qk,n=this.getDimensions,r=await n(e.floating);return{reference:PH(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function kH(e){return Nr(e).direction==="rtl"}const $H={convertOffsetParentRelativeRectToViewportRelativeRect:_H,getDocumentElement:ra,getClippingRect:NH,getOffsetParent:Qk,getElementRects:DH,getClientRects:EH,getDimensions:RH,getScale:zl,isElement:Mr,isRTL:kH};function Zk(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function LH(e,t){let n=null,r;const i=ra(e);function l(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function s(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),l();const d=e.getBoundingClientRect(),{left:m,top:p,width:y,height:x}=d;if(c||t(),!y||!x)return;const O=Cd(p),w=Cd(i.clientWidth-(m+y)),S=Cd(i.clientHeight-(p+x)),E=Cd(m),A={rootMargin:-O+"px "+-w+"px "+-S+"px "+-E+"px",threshold:Fn(0,Ti(1,f))||1};let M=!0;function j(N){const R=N[0].intersectionRatio;if(R!==f){if(!M)return s();R?s(!1,R):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!Zk(d,e.getBoundingClientRect())&&s(),M=!1}try{n=new IntersectionObserver(j,{...A,root:i.ownerDocument})}catch{n=new IntersectionObserver(j,A)}n.observe(e)}return s(!0),l}function IH(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,d=pS(e),m=i||l?[...d?rc(d):[],...rc(t)]:[];m.forEach(E=>{i&&E.addEventListener("scroll",n,{passive:!0}),l&&E.addEventListener("resize",n)});const p=d&&c?LH(d,n):null;let y=-1,x=null;s&&(x=new ResizeObserver(E=>{let[T]=E;T&&T.target===d&&x&&(x.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var A;(A=x)==null||A.observe(t)})),n()}),d&&!f&&x.observe(d),x.observe(t));let O,w=f?bo(e):null;f&&S();function S(){const E=bo(e);w&&!Zk(w,E)&&n(),w=E,O=requestAnimationFrame(S)}return n(),()=>{var E;m.forEach(T=>{i&&T.removeEventListener("scroll",n),l&&T.removeEventListener("resize",n)}),p==null||p(),(E=x)==null||E.disconnect(),x=null,f&&cancelAnimationFrame(O)}}const zH=uH,BH=cH,qH=oH,UH=dH,HH=lH,Nj=iH,FH=fH,GH=(e,t,n)=>{const r=new Map,i={platform:$H,...n},l={...i.platform,_c:r};return aH(e,t,{...i,platform:l})};var VH=typeof document<"u",YH=function(){},Zd=VH?_.useLayoutEffect:YH;function sh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!sh(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const l=i[r];if(!(l==="_owner"&&e.$$typeof)&&!sh(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function Jk(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rj(e,t){const n=Jk(e);return Math.round(t*n)/n}function Jg(e){const t=_.useRef(e);return Zd(()=>{t.current=e}),t}function WH(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:s}={},transform:c=!0,whileElementsMounted:f,open:d}=e,[m,p]=_.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,x]=_.useState(r);sh(y,r)||x(r);const[O,w]=_.useState(null),[S,E]=_.useState(null),T=_.useCallback(Y=>{Y!==N.current&&(N.current=Y,w(Y))},[]),A=_.useCallback(Y=>{Y!==R.current&&(R.current=Y,E(Y))},[]),M=l||O,j=s||S,N=_.useRef(null),R=_.useRef(null),k=_.useRef(m),I=f!=null,V=Jg(f),z=Jg(i),B=Jg(d),G=_.useCallback(()=>{if(!N.current||!R.current)return;const Y={placement:t,strategy:n,middleware:y};z.current&&(Y.platform=z.current),GH(N.current,R.current,Y).then(W=>{const oe={...W,isPositioned:B.current!==!1};K.current&&!sh(k.current,oe)&&(k.current=oe,Vc.flushSync(()=>{p(oe)}))})},[y,t,n,z,B]);Zd(()=>{d===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,p(Y=>({...Y,isPositioned:!1})))},[d]);const K=_.useRef(!1);Zd(()=>(K.current=!0,()=>{K.current=!1}),[]),Zd(()=>{if(M&&(N.current=M),j&&(R.current=j),M&&j){if(V.current)return V.current(M,j,G);G()}},[M,j,G,V,I]);const X=_.useMemo(()=>({reference:N,floating:R,setReference:T,setFloating:A}),[T,A]),D=_.useMemo(()=>({reference:M,floating:j}),[M,j]),U=_.useMemo(()=>{const Y={position:n,left:0,top:0};if(!D.floating)return Y;const W=Rj(D.floating,m.x),oe=Rj(D.floating,m.y);return c?{...Y,transform:"translate("+W+"px, "+oe+"px)",...Jk(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:oe}},[n,c,D.floating,m.x,m.y]);return _.useMemo(()=>({...m,update:G,refs:X,elements:D,floatingStyles:U}),[m,G,X,D,U])}const KH=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Nj({element:r.current,padding:i}).fn(n):{}:r?Nj({element:r,padding:i}).fn(n):{}}}},XH=(e,t)=>({...zH(e),options:[e,t]}),QH=(e,t)=>({...BH(e),options:[e,t]}),ZH=(e,t)=>({...FH(e),options:[e,t]}),JH=(e,t)=>({...qH(e),options:[e,t]}),e9=(e,t)=>({...UH(e),options:[e,t]}),t9=(e,t)=>({...HH(e),options:[e,t]}),n9=(e,t)=>({...KH(e),options:[e,t]});var r9="Arrow",e$=_.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...l}=e;return v.jsx(Me.svg,{...l,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});e$.displayName=r9;var a9=e$;function i9(e){const[t,n]=_.useState(void 0);return It(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const l=i[0];let s,c;if("borderBoxSize"in l){const f=l.borderBoxSize,d=Array.isArray(f)?f[0]:f;s=d.inlineSize,c=d.blockSize}else s=e.offsetWidth,c=e.offsetHeight;n({width:s,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var mS="Popper",[t$,_s]=Rr(mS),[o9,n$]=t$(mS),r$=e=>{const{__scopePopper:t,children:n}=e,[r,i]=_.useState(null);return v.jsx(o9,{scope:t,anchor:r,onAnchorChange:i,children:n})};r$.displayName=mS;var a$="PopperAnchor",i$=_.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,l=n$(a$,n),s=_.useRef(null),c=Ve(t,s),f=_.useRef(null);return _.useEffect(()=>{const d=f.current;f.current=(r==null?void 0:r.current)||s.current,d!==f.current&&l.onAnchorChange(f.current)}),r?null:v.jsx(Me.div,{...i,ref:c})});i$.displayName=a$;var vS="PopperContent",[l9,s9]=t$(vS),o$=_.forwardRef((e,t)=>{var fe,pe,ae,me,ye,re;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:l="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:d=[],collisionPadding:m=0,sticky:p="partial",hideWhenDetached:y=!1,updatePositionStrategy:x="optimized",onPlaced:O,...w}=e,S=n$(vS,n),[E,T]=_.useState(null),A=Ve(t,Ne=>T(Ne)),[M,j]=_.useState(null),N=i9(M),R=(N==null?void 0:N.width)??0,k=(N==null?void 0:N.height)??0,I=r+(l!=="center"?"-"+l:""),V=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},z=Array.isArray(d)?d:[d],B=z.length>0,G={padding:V,boundary:z.filter(c9),altBoundary:B},{refs:K,floatingStyles:X,placement:D,isPositioned:U,middlewareData:Y}=WH({strategy:"fixed",placement:I,whileElementsMounted:(...Ne)=>IH(...Ne,{animationFrame:x==="always"}),elements:{reference:S.anchor},middleware:[XH({mainAxis:i+k,alignmentAxis:s}),f&&QH({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?ZH():void 0,...G}),f&&JH({...G}),e9({...G,apply:({elements:Ne,rects:Oe,availableWidth:Ke,availableHeight:He})=>{const{width:nt,height:ln}=Oe.reference,ft=Ne.floating.style;ft.setProperty("--radix-popper-available-width",`${Ke}px`),ft.setProperty("--radix-popper-available-height",`${He}px`),ft.setProperty("--radix-popper-anchor-width",`${nt}px`),ft.setProperty("--radix-popper-anchor-height",`${ln}px`)}}),M&&n9({element:M,padding:c}),f9({arrowWidth:R,arrowHeight:k}),y&&t9({strategy:"referenceHidden",...G})]}),[W,oe]=u$(D),$=Cr(O);It(()=>{U&&($==null||$())},[U,$]);const F=(fe=Y.arrow)==null?void 0:fe.x,Z=(pe=Y.arrow)==null?void 0:pe.y,se=((ae=Y.arrow)==null?void 0:ae.centerOffset)!==0,[de,ge]=_.useState();return It(()=>{E&&ge(window.getComputedStyle(E).zIndex)},[E]),v.jsx("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:U?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[(me=Y.transformOrigin)==null?void 0:me.x,(ye=Y.transformOrigin)==null?void 0:ye.y].join(" "),...((re=Y.hide)==null?void 0:re.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(l9,{scope:n,placedSide:W,onArrowChange:j,arrowX:F,arrowY:Z,shouldHideArrow:se,children:v.jsx(Me.div,{"data-side":W,"data-align":oe,...w,ref:A,style:{...w.style,animation:U?void 0:"none"}})})})});o$.displayName=vS;var l$="PopperArrow",u9={top:"bottom",right:"left",bottom:"top",left:"right"},s$=_.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,l=s9(l$,r),s=u9[l.placedSide];return v.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:v.jsx(a9,{...i,ref:n,style:{...i.style,display:"block"}})})});s$.displayName=l$;function c9(e){return e!==null}var f9=e=>({name:"transformOrigin",options:e,fn(t){var S,E,T;const{placement:n,rects:r,middlewareData:i}=t,s=((S=i.arrow)==null?void 0:S.centerOffset)!==0,c=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[d,m]=u$(n),p={start:"0%",center:"50%",end:"100%"}[m],y=(((E=i.arrow)==null?void 0:E.x)??0)+c/2,x=(((T=i.arrow)==null?void 0:T.y)??0)+f/2;let O="",w="";return d==="bottom"?(O=s?p:`${y}px`,w=`${-f}px`):d==="top"?(O=s?p:`${y}px`,w=`${r.floating.height+f}px`):d==="right"?(O=`${-f}px`,w=s?p:`${x}px`):d==="left"&&(O=`${r.floating.width+f}px`,w=s?p:`${x}px`),{data:{x:O,y:w}}}});function u$(e){const[t,n="center"]=e.split("-");return[t,n]}var gS=r$,yS=i$,bS=o$,xS=s$,d9="Portal",Qc=_.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[i,l]=_.useState(!1);It(()=>l(!0),[]);const s=n||i&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return s?gk.createPortal(v.jsx(Me.div,{...r,ref:t}),s):null});Qc.displayName=d9;function h9(e,t){return _.useReducer((n,r)=>t[n][r]??n,e)}var mr=e=>{const{present:t,children:n}=e,r=p9(t),i=typeof n=="function"?n({present:r.isPresent}):_.Children.only(n),l=Ve(r.ref,m9(i));return typeof n=="function"||r.isPresent?_.cloneElement(i,{ref:l}):null};mr.displayName="Presence";function p9(e){const[t,n]=_.useState(),r=_.useRef(null),i=_.useRef(e),l=_.useRef("none"),s=e?"mounted":"unmounted",[c,f]=h9(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return _.useEffect(()=>{const d=Md(r.current);l.current=c==="mounted"?d:"none"},[c]),It(()=>{const d=r.current,m=i.current;if(m!==e){const y=l.current,x=Md(d);e?f("MOUNT"):x==="none"||(d==null?void 0:d.display)==="none"?f("UNMOUNT"):f(m&&y!==x?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,f]),It(()=>{if(t){let d;const m=t.ownerDocument.defaultView??window,p=x=>{const w=Md(r.current).includes(CSS.escape(x.animationName));if(x.target===t&&w&&(f("ANIMATION_END"),!i.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",d=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},y=x=>{x.target===t&&(l.current=Md(r.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{m.clearTimeout(d),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:_.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function Md(e){return(e==null?void 0:e.animationName)||"none"}function m9(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ey="rovingFocusGroup.onEntryFocus",v9={bubbles:!1,cancelable:!0},Zc="RovingFocusGroup",[vw,c$,g9]=lS(Zc),[y9,Ap]=Rr(Zc,[g9]),[b9,x9]=y9(Zc),f$=_.forwardRef((e,t)=>v.jsx(vw.Provider,{scope:e.__scopeRovingFocusGroup,children:v.jsx(vw.Slot,{scope:e.__scopeRovingFocusGroup,children:v.jsx(w9,{...e,ref:t})})}));f$.displayName=Zc;var w9=_.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:l,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:f,onEntryFocus:d,preventScrollOnEntryFocus:m=!1,...p}=e,y=_.useRef(null),x=Ve(t,y),O=xp(l),[w,S]=Ai({prop:s,defaultProp:c??null,onChange:f,caller:Zc}),[E,T]=_.useState(!1),A=Cr(d),M=c$(n),j=_.useRef(!1),[N,R]=_.useState(0);return _.useEffect(()=>{const k=y.current;if(k)return k.addEventListener(ey,A),()=>k.removeEventListener(ey,A)},[A]),v.jsx(b9,{scope:n,orientation:r,dir:O,loop:i,currentTabStopId:w,onItemFocus:_.useCallback(k=>S(k),[S]),onItemShiftTab:_.useCallback(()=>T(!0),[]),onFocusableItemAdd:_.useCallback(()=>R(k=>k+1),[]),onFocusableItemRemove:_.useCallback(()=>R(k=>k-1),[]),children:v.jsx(Me.div,{tabIndex:E||N===0?-1:0,"data-orientation":r,...p,ref:x,style:{outline:"none",...e.style},onMouseDown:be(e.onMouseDown,()=>{j.current=!0}),onFocus:be(e.onFocus,k=>{const I=!j.current;if(k.target===k.currentTarget&&I&&!E){const V=new CustomEvent(ey,v9);if(k.currentTarget.dispatchEvent(V),!V.defaultPrevented){const z=M().filter(D=>D.focusable),B=z.find(D=>D.active),G=z.find(D=>D.id===w),X=[B,G,...z].filter(Boolean).map(D=>D.ref.current);p$(X,m)}}j.current=!1}),onBlur:be(e.onBlur,()=>T(!1))})})}),d$="RovingFocusGroupItem",h$=_.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:l,children:s,...c}=e,f=ur(),d=l||f,m=x9(d$,n),p=m.currentTabStopId===d,y=c$(n),{onFocusableItemAdd:x,onFocusableItemRemove:O,currentTabStopId:w}=m;return _.useEffect(()=>{if(r)return x(),()=>O()},[r,x,O]),v.jsx(vw.ItemSlot,{scope:n,id:d,focusable:r,active:i,children:v.jsx(Me.span,{tabIndex:p?0:-1,"data-orientation":m.orientation,...c,ref:t,onMouseDown:be(e.onMouseDown,S=>{r?m.onItemFocus(d):S.preventDefault()}),onFocus:be(e.onFocus,()=>m.onItemFocus(d)),onKeyDown:be(e.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){m.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const E=_9(S,m.orientation,m.dir);if(E!==void 0){if(S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;S.preventDefault();let A=y().filter(M=>M.focusable).map(M=>M.ref.current);if(E==="last")A.reverse();else if(E==="prev"||E==="next"){E==="prev"&&A.reverse();const M=A.indexOf(S.currentTarget);A=m.loop?E9(A,M+1):A.slice(M+1)}setTimeout(()=>p$(A))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:w!=null}):s})})});h$.displayName=d$;var S9={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function O9(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function _9(e,t,n){const r=O9(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return S9[r]}function p$(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function E9(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var m$=f$,v$=h$,A9=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},_l=new WeakMap,Nd=new WeakMap,Rd={},ty=0,g$=function(e){return e&&(e.host||g$(e.parentNode))},T9=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=g$(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},j9=function(e,t,n,r){var i=T9(t,Array.isArray(e)?e:[e]);Rd[n]||(Rd[n]=new WeakMap);var l=Rd[n],s=[],c=new Set,f=new Set(i),d=function(p){!p||c.has(p)||(c.add(p),d(p.parentNode))};i.forEach(d);var m=function(p){!p||f.has(p)||Array.prototype.forEach.call(p.children,function(y){if(c.has(y))m(y);else try{var x=y.getAttribute(r),O=x!==null&&x!=="false",w=(_l.get(y)||0)+1,S=(l.get(y)||0)+1;_l.set(y,w),l.set(y,S),s.push(y),w===1&&O&&Nd.set(y,!0),S===1&&y.setAttribute(n,"true"),O||y.setAttribute(r,"true")}catch(E){console.error("aria-hidden: cannot operate on ",y,E)}})};return m(t),c.clear(),ty++,function(){s.forEach(function(p){var y=_l.get(p)-1,x=l.get(p)-1;_l.set(p,y),l.set(p,x),y||(Nd.has(p)||p.removeAttribute(r),Nd.delete(p)),x||p.removeAttribute(n)}),ty--,ty||(_l=new WeakMap,_l=new WeakMap,Nd=new WeakMap,Rd={})}},wS=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=A9(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),j9(r,i,n,"aria-hidden")):function(){return null}},Vr=function(){return Vr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},Vr.apply(this,arguments)};function y$(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function C9(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,l;r<i;r++)(l||!(r in t))&&(l||(l=Array.prototype.slice.call(t,0,r)),l[r]=t[r]);return e.concat(l||Array.prototype.slice.call(t))}var Jd="right-scroll-bar-position",eh="width-before-scroll-bar",M9="with-scroll-bars-hidden",N9="--removed-body-scroll-bar-size";function ny(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function R9(e,t){var n=_.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var P9=typeof window<"u"?_.useLayoutEffect:_.useEffect,Pj=new WeakMap;function D9(e,t){var n=R9(null,function(r){return e.forEach(function(i){return ny(i,r)})});return P9(function(){var r=Pj.get(n);if(r){var i=new Set(r),l=new Set(e),s=n.current;i.forEach(function(c){l.has(c)||ny(c,null)}),l.forEach(function(c){i.has(c)||ny(c,s)})}Pj.set(n,e)},[e]),n}function k9(e){return e}function $9(e,t){t===void 0&&(t=k9);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(l){var s=t(l,r);return n.push(s),function(){n=n.filter(function(c){return c!==s})}},assignSyncMedium:function(l){for(r=!0;n.length;){var s=n;n=[],s.forEach(l)}n={push:function(c){return l(c)},filter:function(){return n}}},assignMedium:function(l){r=!0;var s=[];if(n.length){var c=n;n=[],c.forEach(l),s=n}var f=function(){var m=s;s=[],m.forEach(l)},d=function(){return Promise.resolve().then(f)};d(),n={push:function(m){s.push(m),d()},filter:function(m){return s=s.filter(m),n}}}};return i}function L9(e){e===void 0&&(e={});var t=$9(null);return t.options=Vr({async:!0,ssr:!1},e),t}var b$=function(e){var t=e.sideCar,n=y$(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return _.createElement(r,Vr({},n))};b$.isSideCarExport=!0;function I9(e,t){return e.useMedium(t),b$}var x$=L9(),ry=function(){},Tp=_.forwardRef(function(e,t){var n=_.useRef(null),r=_.useState({onScrollCapture:ry,onWheelCapture:ry,onTouchMoveCapture:ry}),i=r[0],l=r[1],s=e.forwardProps,c=e.children,f=e.className,d=e.removeScrollBar,m=e.enabled,p=e.shards,y=e.sideCar,x=e.noRelative,O=e.noIsolation,w=e.inert,S=e.allowPinchZoom,E=e.as,T=E===void 0?"div":E,A=e.gapMode,M=y$(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=y,N=D9([n,t]),R=Vr(Vr({},M),i);return _.createElement(_.Fragment,null,m&&_.createElement(j,{sideCar:x$,removeScrollBar:d,shards:p,noRelative:x,noIsolation:O,inert:w,setCallbacks:l,allowPinchZoom:!!S,lockRef:n,gapMode:A}),s?_.cloneElement(_.Children.only(c),Vr(Vr({},R),{ref:N})):_.createElement(T,Vr({},R,{className:f,ref:N}),c))});Tp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Tp.classNames={fullWidth:eh,zeroRight:Jd};var z9=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function B9(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=z9();return t&&e.setAttribute("nonce",t),e}function q9(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function U9(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var H9=function(){var e=0,t=null;return{add:function(n){e==0&&(t=B9())&&(q9(t,n),U9(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},F9=function(){var e=H9();return function(t,n){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},w$=function(){var e=F9(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},G9={left:0,top:0,right:0,gap:0},ay=function(e){return parseInt(e||"",10)||0},V9=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[ay(n),ay(r),ay(i)]},Y9=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return G9;var t=V9(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},W9=w$(),Bl="data-scroll-locked",K9=function(e,t,n,r){var i=e.left,l=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),`
249
- .`.concat(M9,` {
250
- overflow: hidden `).concat(r,`;
251
- padding-right: `).concat(c,"px ").concat(r,`;
252
- }
253
- body[`).concat(Bl,`] {
254
- overflow: hidden `).concat(r,`;
255
- overscroll-behavior: contain;
256
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
257
- padding-left: `.concat(i,`px;
258
- padding-top: `).concat(l,`px;
259
- padding-right: `).concat(s,`px;
260
- margin-left:0;
261
- margin-top:0;
262
- margin-right: `).concat(c,"px ").concat(r,`;
263
- `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
264
- }
265
-
266
- .`).concat(Jd,` {
267
- right: `).concat(c,"px ").concat(r,`;
268
- }
269
-
270
- .`).concat(eh,` {
271
- margin-right: `).concat(c,"px ").concat(r,`;
272
- }
273
-
274
- .`).concat(Jd," .").concat(Jd,` {
275
- right: 0 `).concat(r,`;
276
- }
277
-
278
- .`).concat(eh," .").concat(eh,` {
279
- margin-right: 0 `).concat(r,`;
280
- }
281
-
282
- body[`).concat(Bl,`] {
283
- `).concat(N9,": ").concat(c,`px;
284
- }
285
- `)},Dj=function(){var e=parseInt(document.body.getAttribute(Bl)||"0",10);return isFinite(e)?e:0},X9=function(){_.useEffect(function(){return document.body.setAttribute(Bl,(Dj()+1).toString()),function(){var e=Dj()-1;e<=0?document.body.removeAttribute(Bl):document.body.setAttribute(Bl,e.toString())}},[])},Q9=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;X9();var l=_.useMemo(function(){return Y9(i)},[i]);return _.createElement(W9,{styles:K9(l,!t,i,n?"":"!important")})},gw=!1;if(typeof window<"u")try{var Pd=Object.defineProperty({},"passive",{get:function(){return gw=!0,!0}});window.addEventListener("test",Pd,Pd),window.removeEventListener("test",Pd,Pd)}catch{gw=!1}var El=gw?{passive:!1}:!1,Z9=function(e){return e.tagName==="TEXTAREA"},S$=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Z9(e)&&n[t]==="visible")},J9=function(e){return S$(e,"overflowY")},e7=function(e){return S$(e,"overflowX")},kj=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=O$(e,r);if(i){var l=_$(e,r),s=l[1],c=l[2];if(s>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},t7=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},n7=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},O$=function(e,t){return e==="v"?J9(t):e7(t)},_$=function(e,t){return e==="v"?t7(t):n7(t)},r7=function(e,t){return e==="h"&&t==="rtl"?-1:1},a7=function(e,t,n,r,i){var l=r7(e,window.getComputedStyle(t).direction),s=l*r,c=n.target,f=t.contains(c),d=!1,m=s>0,p=0,y=0;do{if(!c)break;var x=_$(e,c),O=x[0],w=x[1],S=x[2],E=w-S-l*O;(O||E)&&O$(e,c)&&(p+=E,y+=O);var T=c.parentNode;c=T&&T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?T.host:T}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(m&&Math.abs(p)<1||!m&&Math.abs(y)<1)&&(d=!0),d},Dd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$j=function(e){return[e.deltaX,e.deltaY]},Lj=function(e){return e&&"current"in e?e.current:e},i7=function(e,t){return e[0]===t[0]&&e[1]===t[1]},o7=function(e){return`
286
- .block-interactivity-`.concat(e,` {pointer-events: none;}
287
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
288
- `)},l7=0,Al=[];function s7(e){var t=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),i=_.useState(l7++)[0],l=_.useState(w$)[0],s=_.useRef(e);_.useEffect(function(){s.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var w=C9([e.lockRef.current],(e.shards||[]).map(Lj),!0).filter(Boolean);return w.forEach(function(S){return S.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),w.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=_.useCallback(function(w,S){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!s.current.allowPinchZoom;var E=Dd(w),T=n.current,A="deltaX"in w?w.deltaX:T[0]-E[0],M="deltaY"in w?w.deltaY:T[1]-E[1],j,N=w.target,R=Math.abs(A)>Math.abs(M)?"h":"v";if("touches"in w&&R==="h"&&N.type==="range")return!1;var k=kj(R,N);if(!k)return!0;if(k?j=R:(j=R==="v"?"h":"v",k=kj(R,N)),!k)return!1;if(!r.current&&"changedTouches"in w&&(A||M)&&(r.current=j),!j)return!0;var I=r.current||j;return a7(I,S,w,I==="h"?A:M)},[]),f=_.useCallback(function(w){var S=w;if(!(!Al.length||Al[Al.length-1]!==l)){var E="deltaY"in S?$j(S):Dd(S),T=t.current.filter(function(j){return j.name===S.type&&(j.target===S.target||S.target===j.shadowParent)&&i7(j.delta,E)})[0];if(T&&T.should){S.cancelable&&S.preventDefault();return}if(!T){var A=(s.current.shards||[]).map(Lj).filter(Boolean).filter(function(j){return j.contains(S.target)}),M=A.length>0?c(S,A[0]):!s.current.noIsolation;M&&S.cancelable&&S.preventDefault()}}},[]),d=_.useCallback(function(w,S,E,T){var A={name:w,delta:S,target:E,should:T,shadowParent:u7(E)};t.current.push(A),setTimeout(function(){t.current=t.current.filter(function(M){return M!==A})},1)},[]),m=_.useCallback(function(w){n.current=Dd(w),r.current=void 0},[]),p=_.useCallback(function(w){d(w.type,$j(w),w.target,c(w,e.lockRef.current))},[]),y=_.useCallback(function(w){d(w.type,Dd(w),w.target,c(w,e.lockRef.current))},[]);_.useEffect(function(){return Al.push(l),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:y}),document.addEventListener("wheel",f,El),document.addEventListener("touchmove",f,El),document.addEventListener("touchstart",m,El),function(){Al=Al.filter(function(w){return w!==l}),document.removeEventListener("wheel",f,El),document.removeEventListener("touchmove",f,El),document.removeEventListener("touchstart",m,El)}},[]);var x=e.removeScrollBar,O=e.inert;return _.createElement(_.Fragment,null,O?_.createElement(l,{styles:o7(i)}):null,x?_.createElement(Q9,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function u7(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const c7=I9(x$,s7);var jp=_.forwardRef(function(e,t){return _.createElement(Tp,Vr({},e,{ref:t,sideCar:c7}))});jp.classNames=Tp.classNames;var yw=["Enter"," "],f7=["ArrowDown","PageUp","Home"],E$=["ArrowUp","PageDown","End"],d7=[...f7,...E$],h7={ltr:[...yw,"ArrowRight"],rtl:[...yw,"ArrowLeft"]},p7={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Jc="Menu",[ac,m7,v7]=lS(Jc),[Mo,A$]=Rr(Jc,[v7,_s,Ap]),Cp=_s(),T$=Ap(),[g7,No]=Mo(Jc),[y7,ef]=Mo(Jc),j$=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:l,modal:s=!0}=e,c=Cp(t),[f,d]=_.useState(null),m=_.useRef(!1),p=Cr(l),y=xp(i);return _.useEffect(()=>{const x=()=>{m.current=!0,document.addEventListener("pointerdown",O,{capture:!0,once:!0}),document.addEventListener("pointermove",O,{capture:!0,once:!0})},O=()=>m.current=!1;return document.addEventListener("keydown",x,{capture:!0}),()=>{document.removeEventListener("keydown",x,{capture:!0}),document.removeEventListener("pointerdown",O,{capture:!0}),document.removeEventListener("pointermove",O,{capture:!0})}},[]),v.jsx(gS,{...c,children:v.jsx(g7,{scope:t,open:n,onOpenChange:p,content:f,onContentChange:d,children:v.jsx(y7,{scope:t,onClose:_.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:m,dir:y,modal:s,children:r})})})};j$.displayName=Jc;var b7="MenuAnchor",SS=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Cp(n);return v.jsx(yS,{...i,...r,ref:t})});SS.displayName=b7;var OS="MenuPortal",[x7,C$]=Mo(OS,{forceMount:void 0}),M$=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,l=No(OS,t);return v.jsx(x7,{scope:t,forceMount:n,children:v.jsx(mr,{present:n||l.open,children:v.jsx(Qc,{asChild:!0,container:i,children:r})})})};M$.displayName=OS;var cr="MenuContent",[w7,_S]=Mo(cr),N$=_.forwardRef((e,t)=>{const n=C$(cr,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,l=No(cr,e.__scopeMenu),s=ef(cr,e.__scopeMenu);return v.jsx(ac.Provider,{scope:e.__scopeMenu,children:v.jsx(mr,{present:r||l.open,children:v.jsx(ac.Slot,{scope:e.__scopeMenu,children:s.modal?v.jsx(S7,{...i,ref:t}):v.jsx(O7,{...i,ref:t})})})})}),S7=_.forwardRef((e,t)=>{const n=No(cr,e.__scopeMenu),r=_.useRef(null),i=Ve(t,r);return _.useEffect(()=>{const l=r.current;if(l)return wS(l)},[]),v.jsx(ES,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:be(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),O7=_.forwardRef((e,t)=>{const n=No(cr,e.__scopeMenu);return v.jsx(ES,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),_7=Vl("MenuContent.ScrollLock"),ES=_.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:y,onDismiss:x,disableOutsideScroll:O,...w}=e,S=No(cr,n),E=ef(cr,n),T=Cp(n),A=T$(n),M=m7(n),[j,N]=_.useState(null),R=_.useRef(null),k=Ve(t,R,S.onContentChange),I=_.useRef(0),V=_.useRef(""),z=_.useRef(0),B=_.useRef(null),G=_.useRef("right"),K=_.useRef(0),X=O?jp:_.Fragment,D=O?{as:_7,allowPinchZoom:!0}:void 0,U=W=>{var fe,pe;const oe=V.current+W,$=M().filter(ae=>!ae.disabled),F=document.activeElement,Z=(fe=$.find(ae=>ae.ref.current===F))==null?void 0:fe.textValue,se=$.map(ae=>ae.textValue),de=$7(se,oe,Z),ge=(pe=$.find(ae=>ae.textValue===de))==null?void 0:pe.ref.current;(function ae(me){V.current=me,window.clearTimeout(I.current),me!==""&&(I.current=window.setTimeout(()=>ae(""),1e3))})(oe),ge&&setTimeout(()=>ge.focus())};_.useEffect(()=>()=>window.clearTimeout(I.current),[]),sS();const Y=_.useCallback(W=>{var $,F;return G.current===(($=B.current)==null?void 0:$.side)&&I7(W,(F=B.current)==null?void 0:F.area)},[]);return v.jsx(w7,{scope:n,searchRef:V,onItemEnter:_.useCallback(W=>{Y(W)&&W.preventDefault()},[Y]),onItemLeave:_.useCallback(W=>{var oe;Y(W)||((oe=R.current)==null||oe.focus(),N(null))},[Y]),onTriggerLeave:_.useCallback(W=>{Y(W)&&W.preventDefault()},[Y]),pointerGraceTimerRef:z,onPointerGraceIntentChange:_.useCallback(W=>{B.current=W},[]),children:v.jsx(X,{...D,children:v.jsx(wp,{asChild:!0,trapped:i,onMountAutoFocus:be(l,W=>{var oe;W.preventDefault(),(oe=R.current)==null||oe.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:v.jsx(Kc,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:y,onDismiss:x,children:v.jsx(m$,{asChild:!0,...A,dir:E.dir,orientation:"vertical",loop:r,currentTabStopId:j,onCurrentTabStopIdChange:N,onEntryFocus:be(f,W=>{E.isUsingKeyboardRef.current||W.preventDefault()}),preventScrollOnEntryFocus:!0,children:v.jsx(bS,{role:"menu","aria-orientation":"vertical","data-state":Y$(S.open),"data-radix-menu-content":"",dir:E.dir,...T,...w,ref:k,style:{outline:"none",...w.style},onKeyDown:be(w.onKeyDown,W=>{const $=W.target.closest("[data-radix-menu-content]")===W.currentTarget,F=W.ctrlKey||W.altKey||W.metaKey,Z=W.key.length===1;$&&(W.key==="Tab"&&W.preventDefault(),!F&&Z&&U(W.key));const se=R.current;if(W.target!==se||!d7.includes(W.key))return;W.preventDefault();const ge=M().filter(fe=>!fe.disabled).map(fe=>fe.ref.current);E$.includes(W.key)&&ge.reverse(),D7(ge)}),onBlur:be(e.onBlur,W=>{W.currentTarget.contains(W.target)||(window.clearTimeout(I.current),V.current="")}),onPointerMove:be(e.onPointerMove,ic(W=>{const oe=W.target,$=K.current!==W.clientX;if(W.currentTarget.contains(oe)&&$){const F=W.clientX>K.current?"right":"left";G.current=F,K.current=W.clientX}}))})})})})})})});N$.displayName=cr;var E7="MenuGroup",AS=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return v.jsx(Me.div,{role:"group",...r,ref:t})});AS.displayName=E7;var A7="MenuLabel",R$=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return v.jsx(Me.div,{...r,ref:t})});R$.displayName=A7;var uh="MenuItem",Ij="menu.itemSelect",Mp=_.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,l=_.useRef(null),s=ef(uh,e.__scopeMenu),c=_S(uh,e.__scopeMenu),f=Ve(t,l),d=_.useRef(!1),m=()=>{const p=l.current;if(!n&&p){const y=new CustomEvent(Ij,{bubbles:!0,cancelable:!0});p.addEventListener(Ij,x=>r==null?void 0:r(x),{once:!0}),zk(p,y),y.defaultPrevented?d.current=!1:s.onClose()}};return v.jsx(P$,{...i,ref:f,disabled:n,onClick:be(e.onClick,m),onPointerDown:p=>{var y;(y=e.onPointerDown)==null||y.call(e,p),d.current=!0},onPointerUp:be(e.onPointerUp,p=>{var y;d.current||(y=p.currentTarget)==null||y.click()}),onKeyDown:be(e.onKeyDown,p=>{const y=c.searchRef.current!=="";n||y&&p.key===" "||yw.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});Mp.displayName=uh;var P$=_.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...l}=e,s=_S(uh,n),c=T$(n),f=_.useRef(null),d=Ve(t,f),[m,p]=_.useState(!1),[y,x]=_.useState("");return _.useEffect(()=>{const O=f.current;O&&x((O.textContent??"").trim())},[l.children]),v.jsx(ac.ItemSlot,{scope:n,disabled:r,textValue:i??y,children:v.jsx(v$,{asChild:!0,...c,focusable:!r,children:v.jsx(Me.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...l,ref:d,onPointerMove:be(e.onPointerMove,ic(O=>{r?s.onItemLeave(O):(s.onItemEnter(O),O.defaultPrevented||O.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:be(e.onPointerLeave,ic(O=>s.onItemLeave(O))),onFocus:be(e.onFocus,()=>p(!0)),onBlur:be(e.onBlur,()=>p(!1))})})})}),T7="MenuCheckboxItem",D$=_.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return v.jsx(z$,{scope:e.__scopeMenu,checked:n,children:v.jsx(Mp,{role:"menuitemcheckbox","aria-checked":ch(n)?"mixed":n,...i,ref:t,"data-state":jS(n),onSelect:be(i.onSelect,()=>r==null?void 0:r(ch(n)?!0:!n),{checkForDefaultPrevented:!1})})})});D$.displayName=T7;var k$="MenuRadioGroup",[j7,C7]=Mo(k$,{value:void 0,onValueChange:()=>{}}),$$=_.forwardRef((e,t)=>{const{value:n,onValueChange:r,...i}=e,l=Cr(r);return v.jsx(j7,{scope:e.__scopeMenu,value:n,onValueChange:l,children:v.jsx(AS,{...i,ref:t})})});$$.displayName=k$;var L$="MenuRadioItem",I$=_.forwardRef((e,t)=>{const{value:n,...r}=e,i=C7(L$,e.__scopeMenu),l=n===i.value;return v.jsx(z$,{scope:e.__scopeMenu,checked:l,children:v.jsx(Mp,{role:"menuitemradio","aria-checked":l,...r,ref:t,"data-state":jS(l),onSelect:be(r.onSelect,()=>{var s;return(s=i.onValueChange)==null?void 0:s.call(i,n)},{checkForDefaultPrevented:!1})})})});I$.displayName=L$;var TS="MenuItemIndicator",[z$,M7]=Mo(TS,{checked:!1}),B$=_.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,l=M7(TS,n);return v.jsx(mr,{present:r||ch(l.checked)||l.checked===!0,children:v.jsx(Me.span,{...i,ref:t,"data-state":jS(l.checked)})})});B$.displayName=TS;var N7="MenuSeparator",q$=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return v.jsx(Me.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});q$.displayName=N7;var R7="MenuArrow",U$=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Cp(n);return v.jsx(xS,{...i,...r,ref:t})});U$.displayName=R7;var P7="MenuSub",[Bde,H$]=Mo(P7),Fu="MenuSubTrigger",F$=_.forwardRef((e,t)=>{const n=No(Fu,e.__scopeMenu),r=ef(Fu,e.__scopeMenu),i=H$(Fu,e.__scopeMenu),l=_S(Fu,e.__scopeMenu),s=_.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:f}=l,d={__scopeMenu:e.__scopeMenu},m=_.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return _.useEffect(()=>m,[m]),_.useEffect(()=>{const p=c.current;return()=>{window.clearTimeout(p),f(null)}},[c,f]),v.jsx(SS,{asChild:!0,...d,children:v.jsx(P$,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":Y$(n.open),...e,ref:Wc(t,i.onTriggerChange),onClick:p=>{var y;(y=e.onClick)==null||y.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:be(e.onPointerMove,ic(p=>{l.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(l.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:be(e.onPointerLeave,ic(p=>{var x,O;m();const y=(x=n.content)==null?void 0:x.getBoundingClientRect();if(y){const w=(O=n.content)==null?void 0:O.dataset.side,S=w==="right",E=S?-5:5,T=y[S?"left":"right"],A=y[S?"right":"left"];l.onPointerGraceIntentChange({area:[{x:p.clientX+E,y:p.clientY},{x:T,y:y.top},{x:A,y:y.top},{x:A,y:y.bottom},{x:T,y:y.bottom}],side:w}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(p),p.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:be(e.onKeyDown,p=>{var x;const y=l.searchRef.current!=="";e.disabled||y&&p.key===" "||h7[r.dir].includes(p.key)&&(n.onOpenChange(!0),(x=n.content)==null||x.focus(),p.preventDefault())})})})});F$.displayName=Fu;var G$="MenuSubContent",V$=_.forwardRef((e,t)=>{const n=C$(cr,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,l=No(cr,e.__scopeMenu),s=ef(cr,e.__scopeMenu),c=H$(G$,e.__scopeMenu),f=_.useRef(null),d=Ve(t,f);return v.jsx(ac.Provider,{scope:e.__scopeMenu,children:v.jsx(mr,{present:r||l.open,children:v.jsx(ac.Slot,{scope:e.__scopeMenu,children:v.jsx(ES,{id:c.contentId,"aria-labelledby":c.triggerId,...i,ref:d,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{var p;s.isUsingKeyboardRef.current&&((p=f.current)==null||p.focus()),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:be(e.onFocusOutside,m=>{m.target!==c.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:be(e.onEscapeKeyDown,m=>{s.onClose(),m.preventDefault()}),onKeyDown:be(e.onKeyDown,m=>{var x;const p=m.currentTarget.contains(m.target),y=p7[s.dir].includes(m.key);p&&y&&(l.onOpenChange(!1),(x=c.trigger)==null||x.focus(),m.preventDefault())})})})})})});V$.displayName=G$;function Y$(e){return e?"open":"closed"}function ch(e){return e==="indeterminate"}function jS(e){return ch(e)?"indeterminate":e?"checked":"unchecked"}function D7(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function k7(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function $7(e,t,n){const i=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let s=k7(e,Math.max(l,0));i.length===1&&(s=s.filter(d=>d!==n));const f=s.find(d=>d.toLowerCase().startsWith(i.toLowerCase()));return f!==n?f:void 0}function L7(e,t){const{x:n,y:r}=e;let i=!1;for(let l=0,s=t.length-1;l<t.length;s=l++){const c=t[l],f=t[s],d=c.x,m=c.y,p=f.x,y=f.y;m>r!=y>r&&n<(p-d)*(r-m)/(y-m)+d&&(i=!i)}return i}function I7(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return L7(n,t)}function ic(e){return t=>t.pointerType==="mouse"?e(t):void 0}var z7=j$,B7=SS,q7=M$,U7=N$,H7=AS,F7=R$,G7=Mp,V7=D$,Y7=$$,W7=I$,K7=B$,X7=q$,Q7=U$,Z7=F$,J7=V$,Np="DropdownMenu",[eF]=Rr(Np,[A$]),yn=A$(),[tF,W$]=eF(Np),K$=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:l,onOpenChange:s,modal:c=!0}=e,f=yn(t),d=_.useRef(null),[m,p]=Ai({prop:i,defaultProp:l??!1,onChange:s,caller:Np});return v.jsx(tF,{scope:t,triggerId:ur(),triggerRef:d,contentId:ur(),open:m,onOpenChange:p,onOpenToggle:_.useCallback(()=>p(y=>!y),[p]),modal:c,children:v.jsx(z7,{...f,open:m,onOpenChange:p,dir:r,modal:c,children:n})})};K$.displayName=Np;var X$="DropdownMenuTrigger",Q$=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,l=W$(X$,n),s=yn(n);return v.jsx(B7,{asChild:!0,...s,children:v.jsx(Me.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:Wc(t,l.triggerRef),onPointerDown:be(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(l.onOpenToggle(),l.open||c.preventDefault())}),onKeyDown:be(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&l.onOpenToggle(),c.key==="ArrowDown"&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});Q$.displayName=X$;var nF="DropdownMenuPortal",Z$=e=>{const{__scopeDropdownMenu:t,...n}=e,r=yn(t);return v.jsx(q7,{...r,...n})};Z$.displayName=nF;var J$="DropdownMenuContent",eL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=W$(J$,n),l=yn(n),s=_.useRef(!1);return v.jsx(U7,{id:i.contentId,"aria-labelledby":i.triggerId,...l,...r,ref:t,onCloseAutoFocus:be(e.onCloseAutoFocus,c=>{var f;s.current||(f=i.triggerRef.current)==null||f.focus(),s.current=!1,c.preventDefault()}),onInteractOutside:be(e.onInteractOutside,c=>{const f=c.detail.originalEvent,d=f.button===0&&f.ctrlKey===!0,m=f.button===2||d;(!i.modal||m)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eL.displayName=J$;var rF="DropdownMenuGroup",tL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=yn(n);return v.jsx(H7,{...i,...r,ref:t})});tL.displayName=rF;var aF="DropdownMenuLabel",nL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=yn(n);return v.jsx(F7,{...i,...r,ref:t})});nL.displayName=aF;var iF="DropdownMenuItem",rL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=yn(n);return v.jsx(G7,{...i,...r,ref:t})});rL.displayName=iF;var oF="DropdownMenuCheckboxItem",lF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=yn(n);return v.jsx(V7,{...i,...r,ref:t})});lF.displayName=oF;var sF="DropdownMenuRadioGroup",uF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=yn(n);return v.jsx(Y7,{...i,...r,ref:t})});uF.displayName=sF;var cF="DropdownMenuRadioItem",fF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=yn(n);return v.jsx(W7,{...i,...r,ref:t})});fF.displayName=cF;var dF="DropdownMenuItemIndicator",hF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=yn(n);return v.jsx(K7,{...i,...r,ref:t})});hF.displayName=dF;var pF="DropdownMenuSeparator",aL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=yn(n);return v.jsx(X7,{...i,...r,ref:t})});aL.displayName=pF;var mF="DropdownMenuArrow",vF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=yn(n);return v.jsx(Q7,{...i,...r,ref:t})});vF.displayName=mF;var gF="DropdownMenuSubTrigger",yF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=yn(n);return v.jsx(Z7,{...i,...r,ref:t})});yF.displayName=gF;var bF="DropdownMenuSubContent",xF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=yn(n);return v.jsx(J7,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});xF.displayName=bF;var wF=K$,SF=Q$,OF=Z$,_F=eL,EF=tL,AF=nL,TF=rL,jF=aL;function CF({...e}){return v.jsx(wF,{"data-slot":"dropdown-menu",...e})}function MF({...e}){return v.jsx(SF,{"data-slot":"dropdown-menu-trigger",...e})}function NF({className:e,sideOffset:t=4,...n}){return v.jsx(OF,{children:v.jsx(_F,{className:he("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-[--radix-dropdown-menu-content-available-height] min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",e),"data-slot":"dropdown-menu-content",sideOffset:t,...n})})}function zj({...e}){return v.jsx(EF,{"data-slot":"dropdown-menu-group",...e})}function Nu({className:e,inset:t,variant:n="default",...r}){return v.jsx(TF,{className:he("data-[variant=destructive]:*:[svg]:!text-destructive relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[disabled]:opacity-50 data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",e),"data-inset":t,"data-slot":"dropdown-menu-item","data-variant":n,...r})}function RF({className:e,inset:t,...n}){return v.jsx(AF,{className:he("px-2 py-1.5 font-medium text-sm data-[inset]:pl-8",e),"data-inset":t,"data-slot":"dropdown-menu-label",...n})}function iy({className:e,...t}){return v.jsx(jF,{className:he("-mx-1 my-1 h-px bg-border",e),"data-slot":"dropdown-menu-separator",...t})}const Bj=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,qj=Ue,Rp=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return qj(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:l}=t,s=Object.keys(i).map(d=>{const m=n==null?void 0:n[d],p=l==null?void 0:l[d];if(m===null)return null;const y=Bj(m)||Bj(p);return i[d][y]}),c=n&&Object.entries(n).reduce((d,m)=>{let[p,y]=m;return y===void 0||(d[p]=y),d},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,m)=>{let{class:p,className:y,...x}=m;return Object.entries(x).every(O=>{let[w,S]=O;return Array.isArray(S)?S.includes({...l,...c}[w]):{...l,...c}[w]===S})?[...d,p,y]:d},[]);return qj(e,s,f,n==null?void 0:n.class,n==null?void 0:n.className)},CS=Rp("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-none transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Dt({className:e,variant:t,size:n,asChild:r=!1,...i}){const l=r?jo:"button";return v.jsx(l,{className:he(CS({variant:t,size:n,className:e})),"data-slot":"button",...i})}const Pp=_.forwardRef(({className:e,type:t,...n},r)=>v.jsx("input",{className:he("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,type:t,...n}));Pp.displayName="Input";var PF="Separator",Uj="horizontal",DF=["horizontal","vertical"],iL=_.forwardRef((e,t)=>{const{decorative:n,orientation:r=Uj,...i}=e,l=kF(r)?r:Uj,c=n?{role:"none"}:{"aria-orientation":l==="vertical"?l:void 0,role:"separator"};return v.jsx(Co.div,{"data-orientation":l,...c,...i,ref:t})});iL.displayName=PF;function kF(e){return DF.includes(e)}var $F=iL;function ql({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return v.jsx($F,{className:he("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",e),"data-slot":"separator",decorative:n,orientation:t,...r})}var Dp="Dialog",[oL,lL]=Rr(Dp),[LF,Pr]=oL(Dp),sL=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:l,modal:s=!0}=e,c=_.useRef(null),f=_.useRef(null),[d,m]=Ai({prop:r,defaultProp:i??!1,onChange:l,caller:Dp});return v.jsx(LF,{scope:t,triggerRef:c,contentRef:f,contentId:ur(),titleId:ur(),descriptionId:ur(),open:d,onOpenChange:m,onOpenToggle:_.useCallback(()=>m(p=>!p),[m]),modal:s,children:n})};sL.displayName=Dp;var uL="DialogTrigger",cL=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Pr(uL,n),l=Ve(t,i.triggerRef);return v.jsx(Me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":RS(i.open),...r,ref:l,onClick:be(e.onClick,i.onOpenToggle)})});cL.displayName=uL;var MS="DialogPortal",[IF,fL]=oL(MS,{forceMount:void 0}),dL=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,l=Pr(MS,t);return v.jsx(IF,{scope:t,forceMount:n,children:_.Children.map(r,s=>v.jsx(mr,{present:n||l.open,children:v.jsx(Qc,{asChild:!0,container:i,children:s})}))})};dL.displayName=MS;var fh="DialogOverlay",hL=_.forwardRef((e,t)=>{const n=fL(fh,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,l=Pr(fh,e.__scopeDialog);return l.modal?v.jsx(mr,{present:r||l.open,children:v.jsx(BF,{...i,ref:t})}):null});hL.displayName=fh;var zF=Vl("DialogOverlay.RemoveScroll"),BF=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Pr(fh,n);return v.jsx(jp,{as:zF,allowPinchZoom:!0,shards:[i.contentRef],children:v.jsx(Me.div,{"data-state":RS(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),xo="DialogContent",pL=_.forwardRef((e,t)=>{const n=fL(xo,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,l=Pr(xo,e.__scopeDialog);return v.jsx(mr,{present:r||l.open,children:l.modal?v.jsx(qF,{...i,ref:t}):v.jsx(UF,{...i,ref:t})})});pL.displayName=xo;var qF=_.forwardRef((e,t)=>{const n=Pr(xo,e.__scopeDialog),r=_.useRef(null),i=Ve(t,n.contentRef,r);return _.useEffect(()=>{const l=r.current;if(l)return wS(l)},[]),v.jsx(mL,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:be(e.onCloseAutoFocus,l=>{var s;l.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:be(e.onPointerDownOutside,l=>{const s=l.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0;(s.button===2||c)&&l.preventDefault()}),onFocusOutside:be(e.onFocusOutside,l=>l.preventDefault())})}),UF=_.forwardRef((e,t)=>{const n=Pr(xo,e.__scopeDialog),r=_.useRef(!1),i=_.useRef(!1);return v.jsx(mL,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var s,c;(s=e.onCloseAutoFocus)==null||s.call(e,l),l.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),l.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:l=>{var f,d;(f=e.onInteractOutside)==null||f.call(e,l),l.defaultPrevented||(r.current=!0,l.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const s=l.target;((d=n.triggerRef.current)==null?void 0:d.contains(s))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&i.current&&l.preventDefault()}})}),mL=_.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:l,...s}=e,c=Pr(xo,n),f=_.useRef(null),d=Ve(t,f);return sS(),v.jsxs(v.Fragment,{children:[v.jsx(wp,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:l,children:v.jsx(Kc,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":RS(c.open),...s,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(FF,{titleId:c.titleId}),v.jsx(VF,{contentRef:f,descriptionId:c.descriptionId})]})]})}),NS="DialogTitle",vL=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Pr(NS,n);return v.jsx(Me.h2,{id:i.titleId,...r,ref:t})});vL.displayName=NS;var gL="DialogDescription",yL=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Pr(gL,n);return v.jsx(Me.p,{id:i.descriptionId,...r,ref:t})});yL.displayName=gL;var bL="DialogClose",xL=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Pr(bL,n);return v.jsx(Me.button,{type:"button",...r,ref:t,onClick:be(e.onClick,()=>i.onOpenChange(!1))})});xL.displayName=bL;function RS(e){return e?"open":"closed"}var wL="DialogTitleWarning",[HF,SL]=bU(wL,{contentName:xo,titleName:NS,docsSlug:"dialog"}),FF=({titleId:e})=>{const t=SL(wL),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
289
-
290
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
291
-
292
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return _.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},GF="DialogDescriptionWarning",VF=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${SL(GF).contentName}}.`;return _.useEffect(()=>{var l;const i=(l=e.current)==null?void 0:l.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},PS=sL,YF=cL,DS=dL,kS=hL,$S=pL,LS=vL,IS=yL,kp=xL;function WF({...e}){return v.jsx(PS,{"data-slot":"sheet",...e})}function KF({...e}){return v.jsx(DS,{"data-slot":"sheet-portal",...e})}function XF({className:e,...t}){return v.jsx(kS,{className:he("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",e),"data-slot":"sheet-overlay",...t})}function QF({className:e,children:t,side:n="right",...r}){return v.jsxs(KF,{children:[v.jsx(XF,{}),v.jsxs($S,{className:he("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),"data-slot":"sheet-content",...r,children:[t,v.jsxs(kp,{className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[v.jsx(Ll,{className:"size-4"}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function ZF({className:e,...t}){return v.jsx("div",{className:he("flex flex-col gap-1.5 p-4",e),"data-slot":"sheet-header",...t})}function JF({className:e,...t}){return v.jsx(LS,{className:he("font-semibold text-foreground",e),"data-slot":"sheet-title",...t})}function eG({className:e,...t}){return v.jsx(IS,{className:he("text-muted-foreground text-sm",e),"data-slot":"sheet-description",...t})}function Tt({className:e,...t}){return v.jsx("div",{className:he("animate-pulse rounded-md bg-accent",e),"data-slot":"skeleton",...t})}var OL=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),tG="VisuallyHidden",_L=_.forwardRef((e,t)=>v.jsx(Me.span,{...e,ref:t,style:{...OL,...e.style}}));_L.displayName=tG;var nG=_L,[$p]=Rr("Tooltip",[_s]),Lp=_s(),EL="TooltipProvider",rG=700,bw="tooltip.open",[aG,zS]=$p(EL),AL=e=>{const{__scopeTooltip:t,delayDuration:n=rG,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:l}=e,s=_.useRef(!0),c=_.useRef(!1),f=_.useRef(0);return _.useEffect(()=>{const d=f.current;return()=>window.clearTimeout(d)},[]),v.jsx(aG,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:_.useCallback(()=>{window.clearTimeout(f.current),s.current=!1},[]),onClose:_.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:_.useCallback(d=>{c.current=d},[]),disableHoverableContent:i,children:l})};AL.displayName=EL;var oc="Tooltip",[iG,tf]=$p(oc),TL=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:l,disableHoverableContent:s,delayDuration:c}=e,f=zS(oc,e.__scopeTooltip),d=Lp(t),[m,p]=_.useState(null),y=ur(),x=_.useRef(0),O=s??f.disableHoverableContent,w=c??f.delayDuration,S=_.useRef(!1),[E,T]=Ai({prop:r,defaultProp:i??!1,onChange:R=>{R?(f.onOpen(),document.dispatchEvent(new CustomEvent(bw))):f.onClose(),l==null||l(R)},caller:oc}),A=_.useMemo(()=>E?S.current?"delayed-open":"instant-open":"closed",[E]),M=_.useCallback(()=>{window.clearTimeout(x.current),x.current=0,S.current=!1,T(!0)},[T]),j=_.useCallback(()=>{window.clearTimeout(x.current),x.current=0,T(!1)},[T]),N=_.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{S.current=!0,T(!0),x.current=0},w)},[w,T]);return _.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),v.jsx(gS,{...d,children:v.jsx(iG,{scope:t,contentId:y,open:E,stateAttribute:A,trigger:m,onTriggerChange:p,onTriggerEnter:_.useCallback(()=>{f.isOpenDelayedRef.current?N():M()},[f.isOpenDelayedRef,N,M]),onTriggerLeave:_.useCallback(()=>{O?j():(window.clearTimeout(x.current),x.current=0)},[j,O]),onOpen:M,onClose:j,disableHoverableContent:O,children:n})})};TL.displayName=oc;var xw="TooltipTrigger",jL=_.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=tf(xw,n),l=zS(xw,n),s=Lp(n),c=_.useRef(null),f=Ve(t,c,i.onTriggerChange),d=_.useRef(!1),m=_.useRef(!1),p=_.useCallback(()=>d.current=!1,[]);return _.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),v.jsx(yS,{asChild:!0,...s,children:v.jsx(Me.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:f,onPointerMove:be(e.onPointerMove,y=>{y.pointerType!=="touch"&&!m.current&&!l.isPointerInTransitRef.current&&(i.onTriggerEnter(),m.current=!0)}),onPointerLeave:be(e.onPointerLeave,()=>{i.onTriggerLeave(),m.current=!1}),onPointerDown:be(e.onPointerDown,()=>{i.open&&i.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:be(e.onFocus,()=>{d.current||i.onOpen()}),onBlur:be(e.onBlur,i.onClose),onClick:be(e.onClick,i.onClose)})})});jL.displayName=xw;var BS="TooltipPortal",[oG,lG]=$p(BS,{forceMount:void 0}),CL=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,l=tf(BS,t);return v.jsx(oG,{scope:t,forceMount:n,children:v.jsx(mr,{present:n||l.open,children:v.jsx(Qc,{asChild:!0,container:i,children:r})})})};CL.displayName=BS;var Wl="TooltipContent",ML=_.forwardRef((e,t)=>{const n=lG(Wl,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...l}=e,s=tf(Wl,e.__scopeTooltip);return v.jsx(mr,{present:r||s.open,children:s.disableHoverableContent?v.jsx(NL,{side:i,...l,ref:t}):v.jsx(sG,{side:i,...l,ref:t})})}),sG=_.forwardRef((e,t)=>{const n=tf(Wl,e.__scopeTooltip),r=zS(Wl,e.__scopeTooltip),i=_.useRef(null),l=Ve(t,i),[s,c]=_.useState(null),{trigger:f,onClose:d}=n,m=i.current,{onPointerInTransitChange:p}=r,y=_.useCallback(()=>{c(null),p(!1)},[p]),x=_.useCallback((O,w)=>{const S=O.currentTarget,E={x:O.clientX,y:O.clientY},T=dG(E,S.getBoundingClientRect()),A=hG(E,T),M=pG(w.getBoundingClientRect()),j=vG([...A,...M]);c(j),p(!0)},[p]);return _.useEffect(()=>()=>y(),[y]),_.useEffect(()=>{if(f&&m){const O=S=>x(S,m),w=S=>x(S,f);return f.addEventListener("pointerleave",O),m.addEventListener("pointerleave",w),()=>{f.removeEventListener("pointerleave",O),m.removeEventListener("pointerleave",w)}}},[f,m,x,y]),_.useEffect(()=>{if(s){const O=w=>{const S=w.target,E={x:w.clientX,y:w.clientY},T=(f==null?void 0:f.contains(S))||(m==null?void 0:m.contains(S)),A=!mG(E,s);T?y():A&&(y(),d())};return document.addEventListener("pointermove",O),()=>document.removeEventListener("pointermove",O)}},[f,m,s,d,y]),v.jsx(NL,{...e,ref:l})}),[uG,cG]=$p(oc,{isInside:!1}),fG=Ik("TooltipContent"),NL=_.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:s,...c}=e,f=tf(Wl,n),d=Lp(n),{onClose:m}=f;return _.useEffect(()=>(document.addEventListener(bw,m),()=>document.removeEventListener(bw,m)),[m]),_.useEffect(()=>{if(f.trigger){const p=y=>{const x=y.target;x!=null&&x.contains(f.trigger)&&m()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[f.trigger,m]),v.jsx(Kc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:m,children:v.jsxs(bS,{"data-state":f.stateAttribute,...d,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[v.jsx(fG,{children:r}),v.jsx(uG,{scope:n,isInside:!0,children:v.jsx(nG,{id:f.contentId,role:"tooltip",children:i||r})})]})})});ML.displayName=Wl;var RL="TooltipArrow",PL=_.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Lp(n);return cG(RL,n).isInside?null:v.jsx(xS,{...i,...r,ref:t})});PL.displayName=RL;function dG(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(n,r,i,l)){case l:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function hG(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function pG(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function mG(e,t){const{x:n,y:r}=e;let i=!1;for(let l=0,s=t.length-1;l<t.length;s=l++){const c=t[l],f=t[s],d=c.x,m=c.y,p=f.x,y=f.y;m>r!=y>r&&n<(p-d)*(r-m)/(y-m)+d&&(i=!i)}return i}function vG(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),gG(t)}function gG(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const l=t[t.length-1],s=t[t.length-2];if((l.x-s.x)*(i.y-s.y)>=(l.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const l=n[n.length-1],s=n[n.length-2];if((l.x-s.x)*(i.y-s.y)>=(l.y-s.y)*(i.x-s.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var yG=AL,bG=TL,xG=jL,wG=CL,SG=ML,OG=PL;function DL({delayDuration:e=0,...t}){return v.jsx(yG,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function kL({...e}){return v.jsx(DL,{children:v.jsx(bG,{"data-slot":"tooltip",...e})})}function $L({...e}){return v.jsx(xG,{"data-slot":"tooltip-trigger",...e})}function LL({className:e,sideOffset:t=0,children:n,...r}){return v.jsx(wG,{children:v.jsxs(SG,{className:he("fade-in-0 zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-[--radix-tooltip-content-transform-origin] animate-in text-balance rounded-md bg-foreground px-3 py-1.5 text-background text-xs data-[state=closed]:animate-out",e),"data-slot":"tooltip-content",sideOffset:t,...r,children:[n,v.jsx(OG,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}const oy=768;function _G(){const[e,t]=_.useState(void 0);return _.useEffect(()=>{const n=window.matchMedia(`(max-width: ${oy-1}px)`),r=()=>{t(window.innerWidth<oy)};return n.addEventListener("change",r),t(window.innerWidth<oy),()=>n.removeEventListener("change",r)},[]),!!e}const EG="sidebar_state",AG=3600*24*7,TG="16rem",jG="18rem",CG="3rem",MG="b",IL=_.createContext(null);function Es(){const e=_.useContext(IL);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const zL=_.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:l,...s},c)=>{const f=_G(),[d,m]=_.useState(!1),[p,y]=_.useState(e),x=t??p,O=_.useCallback(T=>{const A=typeof T=="function"?T(x):T;n?n(A):y(A),document.cookie=`${EG}=${A}; path=/; max-age=${AG}`},[n,x]),w=_.useCallback(()=>f?m(T=>!T):O(T=>!T),[f,O,m]);_.useEffect(()=>{const T=A=>{A.key===MG&&(A.metaKey||A.ctrlKey)&&(A.preventDefault(),w())};return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)},[w]);const S=x?"expanded":"collapsed",E=_.useMemo(()=>({state:S,open:x,setOpen:O,isMobile:f,openMobile:d,setOpenMobile:m,toggleSidebar:w}),[S,x,O,f,d,m,w]);return v.jsx(IL.Provider,{value:E,children:v.jsx(DL,{delayDuration:0,children:v.jsx("div",{className:he("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:c,style:{"--sidebar-width":TG,"--sidebar-width-icon":CG,...i},...s,children:l})})})});zL.displayName="SidebarProvider";const th=_.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:i,...l},s)=>{const{isMobile:c,state:f,openMobile:d,setOpenMobile:m}=Es();return n==="none"?v.jsx("div",{className:he("flex h-full w-[calc(var(--sidebar-width)-var(--sidebar-width-icon)+1px)]! flex-col bg-sidebar text-sidebar-foreground",r),ref:s,...l,children:i}):c?v.jsx(WF,{onOpenChange:m,open:d,...l,children:v.jsxs(QF,{className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden","data-mobile":"true","data-sidebar":"sidebar",side:e,style:{"--sidebar-width":jG},children:[v.jsxs(ZF,{className:"sr-only",children:[v.jsx(JF,{children:"Sidebar"}),v.jsx(eG,{children:"Displays the mobile sidebar."})]}),v.jsx("div",{className:"flex h-full w-full flex-col",children:i})]})}):v.jsxs("div",{className:"group peer hidden text-sidebar-foreground md:block","data-collapsible":f==="collapsed"?n:"","data-side":e,"data-state":f,"data-variant":t,ref:s,children:[v.jsx("div",{className:he("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),v.jsx("div",{className:he("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...l,children:v.jsx("div",{className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow","data-sidebar":"sidebar",children:i})})]})});th.displayName="Sidebar";const BL=_.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:i}=Es();return v.jsxs(Dt,{className:he("h-7 w-7",e),"data-sidebar":"trigger",onClick:l=>{t==null||t(l),i()},ref:r,size:"icon",variant:"ghost",...n,children:[v.jsx(d6,{}),v.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});BL.displayName="SidebarTrigger";const NG=_.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=Es();return v.jsx("button",{"aria-label":"Toggle Sidebar",className:he("-translate-x-1/2 group-data-[side=left]:-right-4 absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:hover:bg-sidebar group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),"data-sidebar":"rail",onClick:r,ref:n,tabIndex:-1,title:"Toggle Sidebar",...t})});NG.displayName="SidebarRail";const qL=_.forwardRef(({className:e,...t},n)=>v.jsx("main",{className:he("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),ref:n,...t}));qL.displayName="SidebarInset";const UL=_.forwardRef(({className:e,...t},n)=>v.jsx(Pp,{className:he("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),"data-sidebar":"input",ref:n,...t}));UL.displayName="SidebarInput";const ww=_.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:he("flex flex-col gap-2 p-2",e),"data-sidebar":"header",ref:n,...t}));ww.displayName="SidebarHeader";const HL=_.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:he("flex flex-col gap-2 p-2",e),"data-sidebar":"footer",ref:n,...t}));HL.displayName="SidebarFooter";const RG=_.forwardRef(({className:e,...t},n)=>v.jsx(ql,{className:he("mx-2 w-auto bg-sidebar-border",e),"data-sidebar":"separator",ref:n,...t}));RG.displayName="SidebarSeparator";const Sw=_.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:he("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),"data-sidebar":"content",ref:n,...t}));Sw.displayName="SidebarContent";const Ow=_.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:he("relative flex w-full min-w-0 flex-col p-2",e),"data-sidebar":"group",ref:n,...t}));Ow.displayName="SidebarGroup";const PG=_.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const i=t?jo:"div";return v.jsx(i,{className:he("flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),"data-sidebar":"group-label",ref:r,...n})});PG.displayName="SidebarGroupLabel";const DG=_.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const i=t?jo:"button";return v.jsx(i,{className:he("absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:-inset-2 after:absolute after:md:hidden","group-data-[collapsible=icon]:hidden",e),"data-sidebar":"group-action",ref:r,...n})});DG.displayName="SidebarGroupAction";const _w=_.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:he("w-full text-sm",e),"data-sidebar":"group-content",ref:n,...t}));_w.displayName="SidebarGroupContent";const dh=_.forwardRef(({className:e,...t},n)=>v.jsx("ul",{className:he("flex w-full min-w-0 flex-col gap-1",e),"data-sidebar":"menu",ref:n,...t}));dh.displayName="SidebarMenu";const hh=_.forwardRef(({className:e,...t},n)=>v.jsx("li",{className:he("group/menu-item relative",e),"data-sidebar":"menu-item",ref:n,...t}));hh.displayName="SidebarMenuItem";const kG=Rp("peer/menu-button group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"group-data-[collapsible=icon]:!p-0 h-12 text-sm"}},defaultVariants:{variant:"default",size:"default"}}),ph=_.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:i,className:l,...s},c)=>{const f=e?jo:"button",{isMobile:d,state:m}=Es(),p=v.jsx(f,{className:he(kG({variant:n,size:r}),l),"data-active":t,"data-sidebar":"menu-button","data-size":r,ref:c,...s});return i?(typeof i=="string"&&(i={children:i}),v.jsxs(kL,{children:[v.jsx($L,{asChild:!0,children:p}),v.jsx(LL,{align:"center",hidden:m!=="collapsed"||d,side:"right",...i})]})):p});ph.displayName="SidebarMenuButton";const $G=_.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},i)=>{const l=t?jo:"button";return v.jsx(l,{className:he("absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:-inset-2 after:absolute after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),"data-sidebar":"menu-action",ref:i,...r})});$G.displayName="SidebarMenuAction";const LG=_.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:he("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 font-medium text-sidebar-foreground text-xs tabular-nums","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),"data-sidebar":"menu-badge",ref:n,...t}));LG.displayName="SidebarMenuBadge";const IG=_.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const i=_.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return v.jsxs("div",{className:he("flex h-8 items-center gap-2 rounded-md px-2",e),"data-sidebar":"menu-skeleton",ref:r,...n,children:[t&&v.jsx(Tt,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),v.jsx(Tt,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":i}})]})});IG.displayName="SidebarMenuSkeleton";const zG=_.forwardRef(({className:e,...t},n)=>v.jsx("ul",{className:he("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-sidebar-border border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),"data-sidebar":"menu-sub",ref:n,...t}));zG.displayName="SidebarMenuSub";const BG=_.forwardRef(({...e},t)=>v.jsx("li",{ref:t,...e}));BG.displayName="SidebarMenuSubItem";const qG=_.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...i},l)=>{const s=e?jo:"a";return v.jsx(s,{className:he("-translate-x-px flex h-7 min-w-0 items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),"data-active":n,"data-sidebar":"menu-sub-button","data-size":t,ref:l,...i})});qG.displayName="SidebarMenuSubButton";function UG({user:e}){const{isMobile:t}=Es(),[n,r]=_.useState(null),[i,l]=_.useState(0);_.useEffect(()=>{(async()=>{try{const m=sessionStorage.getItem("wraps-auth-token");if(!m){console.log("No auth token found yet, will retry..."),i<5&&setTimeout(()=>{l(y=>y+1)},200);return}console.log("Fetching user info from /api/user");const p=await fetch(`/api/user?token=${m}`);if(console.log("User API response status:",p.status),p.ok){const y=await p.json();console.log("User info received:",y),r(y)}else{const y=await p.text();console.error("Failed to fetch user info:",p.status,y)}}catch(m){console.error("Error fetching user info:",m)}})().catch(m=>{console.error("Failed to fetch user info:",m)})},[i]);const s=()=>{window.confirm("Are you sure you want to close the console?")&&window.close()},c=(n==null?void 0:n.accountAlias)||(n==null?void 0:n.accountId)||"Loading...",f=(n==null?void 0:n.region)||"...";return v.jsx(dh,{children:v.jsx(hh,{children:v.jsxs(CF,{children:[v.jsx(MF,{asChild:!0,children:v.jsxs(ph,{className:"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground md:h-8 md:p-0",size:"lg",children:[v.jsxs(dj,{className:"h-8 w-8 rounded-lg",children:[v.jsx(hj,{alt:c,src:e.avatar}),v.jsx(pj,{className:"rounded-lg bg-orange-500 text-white",children:"AWS"})]}),v.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[v.jsx("span",{className:"truncate font-medium",children:c}),v.jsx("span",{className:"truncate text-xs",children:f})]}),v.jsx(r6,{className:"ml-auto size-4"})]})}),v.jsxs(NF,{align:"end",className:"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg",side:t?"bottom":"right",sideOffset:4,children:[v.jsx(RF,{className:"p-0 font-normal",children:v.jsxs("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:[v.jsxs(dj,{className:"h-8 w-8 rounded-lg",children:[v.jsx(hj,{alt:c,src:e.avatar}),v.jsx(pj,{className:"rounded-lg bg-orange-500 text-white",children:"AWS"})]}),v.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[v.jsx("span",{className:"truncate font-medium",children:c}),v.jsx("span",{className:"truncate text-xs",children:f}),(n==null?void 0:n.accountId)&&n.accountId!==n.accountAlias&&v.jsx("span",{className:"truncate font-mono text-[10px] text-muted-foreground",children:n.accountId})]})]})}),v.jsx(iy,{}),v.jsx(zj,{children:v.jsxs(Nu,{onClick:()=>window.open("https://wraps.dev/pricing","_blank"),children:[v.jsx(m6,{}),"Upgrade Plan"]})}),v.jsx(iy,{}),v.jsxs(zj,{children:[v.jsxs(Nu,{onClick:()=>window.open("https://wraps.dev/account","_blank"),children:[v.jsx(e6,{}),"Account"]}),v.jsxs(Nu,{onClick:()=>window.open("https://wraps.dev/billing","_blank"),children:[v.jsx(o6,{}),"Billing"]}),v.jsxs(Nu,{onClick:()=>window.open("https://wraps.dev/changelog","_blank"),children:[v.jsx(t6,{}),"Product Updates"]})]}),v.jsx(iy,{}),v.jsxs(Nu,{onClick:s,children:[v.jsx(Ll,{}),"Close Console"]})]})]})})})}const Tl={user:{name:"Wraps Console",email:"admin@wraps.dev",avatar:"/avatars/wraps.jpg"},navMain:[{title:"Dashboard",url:"/",icon:tc,isActive:!0,isDashboard:!0},{title:"Email",url:"#",icon:mo,isActive:!1,subItems:[{title:"Emails",icon:mo,url:"/email"},{title:"Metrics",icon:n6,url:"/email/metrics"},{title:"Settings",icon:p6,url:"/email/settings"}]}]};function HG({...e}){const t=Ba(),n=gp(),{setOpen:r,state:i}=Es(),l=_.useCallback(()=>t.pathname==="/"?Tl.navMain[0]:t.pathname.startsWith("/email")?Tl.navMain[1]:Tl.navMain[0],[t.pathname]),[s,c]=_.useState(l());return _.useEffect(()=>{c(l())},[t.pathname,l]),v.jsxs(th,{className:"overflow-hidden *:data-[sidebar=sidebar]:flex-row",collapsible:"icon",...e,children:[v.jsxs(th,{className:"w-[calc(var(--sidebar-width-icon)+1px)]! border-r",collapsible:"none",children:[v.jsx(ww,{children:v.jsx(dh,{children:v.jsx(hh,{children:v.jsx(ph,{asChild:!0,className:"md:h-8 md:p-0",onClick:()=>{c(Tl.navMain[0]),r(!1)},size:"lg",children:v.jsxs(rh,{to:"/",children:[v.jsx("div",{className:"flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground",children:v.jsx(tc,{className:"size-4"})}),v.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[v.jsx("span",{className:"truncate font-semibold",children:"Wraps"}),v.jsx("span",{className:"truncate text-xs",children:"Console"})]})]})})})})}),v.jsx(Sw,{children:v.jsx(Ow,{children:v.jsx(_w,{className:"px-1.5 md:px-0",children:v.jsx(dh,{children:Tl.navMain.filter(f=>!f.isDashboard).map(f=>v.jsx(hh,{children:v.jsxs(ph,{className:"px-2.5 md:px-2",isActive:(s==null?void 0:s.title)===f.title,onClick:()=>{c(f),r(!0),f.subItems&&f.subItems.length>0&&n(f.subItems[0].url)},tooltip:{children:f.title,hidden:!1},children:[v.jsx(f.icon,{}),v.jsx("span",{children:f.title})]})},f.title))})})})}),v.jsx(HL,{children:v.jsx(UG,{user:Tl.user})})]}),i==="expanded"&&v.jsx(th,{className:"hidden flex-1 md:flex",collapsible:"none",children:s&&!s.isDashboard&&s.subItems?v.jsxs(v.Fragment,{children:[v.jsxs(ww,{className:"gap-3.5 border-b p-4",children:[v.jsx("div",{className:"flex w-full items-center justify-between",children:v.jsxs("div",{className:"flex items-center gap-2 font-medium text-base text-foreground",children:[v.jsx(s.icon,{className:"size-4"}),s.title]})}),v.jsx(UL,{placeholder:"Search..."})]}),v.jsx(Sw,{children:v.jsx(Ow,{className:"px-0",children:v.jsx(_w,{children:s.subItems.map(f=>v.jsxs(rh,{className:"flex items-center gap-3 border-b p-4 text-sm leading-tight transition-colors last:border-b-0 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",to:f.url,children:[v.jsx(f.icon,{className:"size-4 shrink-0"}),v.jsx("span",{className:"font-medium",children:f.title})]},f.title))})})})]}):v.jsx("div",{className:"flex h-full items-center justify-center p-8 text-center",children:v.jsxs("div",{className:"text-muted-foreground",children:[v.jsx(tc,{className:"mx-auto mb-4 size-12 opacity-50"}),v.jsx("p",{className:"text-sm",children:"Select a product to view options"})]})})})]})}const FG=Rp("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-full border px-2 py-0.5 font-medium text-xs transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function vn({className:e,variant:t,asChild:n=!1,...r}){const i=n?jo:"span";return v.jsx(i,{className:he(FG({variant:t}),e),"data-slot":"badge",...r})}const GG={sent:mo,delivered:bk,bounced:Ll,complained:Ll,opened:mo,clicked:mo,failed:Ll},VG={sent:"text-blue-500",delivered:"text-green-500",bounced:"text-red-500",complained:"text-red-500",opened:"text-purple-500",clicked:"text-indigo-500",failed:"text-red-500"},YG={delivered:"default",sent:"secondary",bounced:"destructive",complained:"destructive",failed:"destructive",opened:"default",clicked:"default"};function WG(){const{id:e}=r8(),t=gp(),[n,r]=_.useState(null),[i,l]=_.useState(!0),[s,c]=_.useState(null);_.useEffect(()=>{async function m(){var p,y,x;try{l(!0),c(null);const O=sessionStorage.getItem("wraps-auth-token");if(!O)throw new Error("Authentication token not found");const w=encodeURIComponent(e||"");console.log("Fetching email with ID:",e),console.log("Encoded ID:",w),console.log("Full URL:",`/api/emails/${w}?token=${O.substring(0,8)}...`);const S=await fetch(`/api/emails/${w}?token=${O}`);if(!S.ok){let A="Failed to fetch email details";try{A=(await S.json()).error||A}catch{A=`${S.status}: ${S.statusText}`}throw new Error(A)}const E=S.headers.get("content-type");if(!(E&&E.includes("application/json"))){const A=await S.text();throw console.error("Non-JSON response:",A),new Error("Server returned non-JSON response")}const T=await S.json();console.log("Email data received:",{id:T.id,hasHtmlBody:!!T.htmlBody,hasTextBody:!!T.textBody,htmlBodyLength:((p=T.htmlBody)==null?void 0:p.length)||0,textBodyLength:((y=T.textBody)==null?void 0:y.length)||0,events:((x=T.events)==null?void 0:x.length)||0}),r(T)}catch(O){const w=O instanceof Error?O.message:"Unknown error";c(w),console.error("Error fetching email details:",O)}finally{l(!1)}}e&&m()},[e]);const f=m=>new Date(m).toLocaleString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),d=m=>new Date(m).toLocaleString("en-US",{weekday:"short",month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit",hour12:!0});return i?v.jsx("div",{className:"flex h-[600px] items-center justify-center",children:v.jsx("div",{className:"text-muted-foreground",children:"Loading email details..."})}):s?v.jsxs("div",{className:"space-y-4",children:[v.jsxs(Dt,{onClick:()=>t("/email"),size:"sm",variant:"ghost",children:[v.jsx(Gg,{className:"mr-2 h-4 w-4"}),"Back to emails"]}),v.jsx("div",{className:"rounded-md border border-destructive bg-destructive/10 p-4 text-destructive text-sm",children:s})]}):n?v.jsxs("div",{className:"space-y-6",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs(Dt,{onClick:()=>t("/email"),size:"sm",variant:"ghost",children:[v.jsx(Gg,{className:"mr-2 h-4 w-4"}),"Back to emails"]}),v.jsx(vn,{variant:YG[n.status],children:n.status.charAt(0).toUpperCase()+n.status.slice(1)})]}),v.jsxs(kt,{children:[v.jsx($t,{children:v.jsx("div",{className:"flex items-start justify-between",children:v.jsxs("div",{className:"space-y-1.5",children:[v.jsx(an,{className:"text-2xl",children:n.subject}),v.jsx(hr,{className:"font-mono text-xs",children:n.messageId})]})})}),v.jsx(Ut,{className:"space-y-4",children:v.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[v.jsxs("div",{className:"space-y-1",children:[v.jsx("div",{className:"text-muted-foreground text-sm",children:"FROM"}),v.jsx("div",{className:"font-mono text-sm",children:n.from})]}),v.jsxs("div",{className:"space-y-1",children:[v.jsx("div",{className:"text-muted-foreground text-sm",children:"TO"}),v.jsx("div",{className:"font-mono text-sm",children:n.to.length>0?n.to.join(", "):"(no recipients)"})]}),n.replyTo&&v.jsxs("div",{className:"space-y-1",children:[v.jsx("div",{className:"text-muted-foreground text-sm",children:"REPLY-TO"}),v.jsx("div",{className:"font-mono text-sm",children:n.replyTo})]}),v.jsxs("div",{className:"space-y-1",children:[v.jsx("div",{className:"text-muted-foreground text-sm",children:"ID"}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("code",{className:"rounded bg-muted px-2 py-1 font-mono text-xs",children:n.id}),v.jsxs(Dt,{className:"h-6 w-6",onClick:()=>navigator.clipboard.writeText(n.id),size:"icon",variant:"ghost",children:[v.jsx("span",{className:"sr-only",children:"Copy ID"}),"📋"]})]})]})]})})]}),v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsx(an,{children:"Email Events"}),v.jsx(hr,{children:"Lifecycle of this email from send to delivery"})]}),v.jsx(Ut,{children:v.jsx("div",{className:"space-y-4",children:n.events.length===0?v.jsx("div",{className:"text-muted-foreground text-sm",children:"No events recorded yet"}):n.events.map((m,p)=>{const y=GG[m.type]||cw,x=p===n.events.length-1;return v.jsx("div",{children:v.jsxs("div",{className:"flex gap-4",children:[v.jsxs("div",{className:"flex flex-col items-center",children:[v.jsx("div",{className:`rounded-full border-2 border-background bg-muted p-2 ${VG[m.type]}`,children:v.jsx(y,{className:"h-4 w-4"})}),!x&&v.jsx("div",{className:"my-1 w-px flex-1 bg-border"})]}),v.jsxs("div",{className:"flex-1 pb-6",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("div",{className:"font-medium capitalize",children:m.type}),v.jsx("div",{className:"text-muted-foreground text-sm",children:f(m.timestamp)})]}),v.jsx("div",{className:"text-muted-foreground text-sm",children:d(m.timestamp)}),m.metadata&&Object.keys(m.metadata).length>0&&v.jsx("div",{className:"mt-2 rounded-md border bg-muted/50 p-2 font-mono text-xs",children:v.jsx("pre",{className:"overflow-x-auto",children:JSON.stringify(m.metadata,null,2)})})]})]})},`${m.type}-${m.timestamp}`)})})})]})]}):v.jsxs("div",{className:"space-y-4",children:[v.jsxs(Dt,{onClick:()=>t("/email"),size:"sm",variant:"ghost",children:[v.jsx(Gg,{className:"mr-2 h-4 w-4"}),"Back to emails"]}),v.jsx("div",{className:"rounded-md border p-4 text-muted-foreground text-sm",children:"Email not found"})]})}function Hj(e,[t,n]){return Math.min(n,Math.max(t,e))}function KG(e){const t=_.useRef({value:e,previous:e});return _.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var XG=[" ","Enter","ArrowUp","ArrowDown"],QG=[" ","Enter"],wo="Select",[Ip,zp,ZG]=lS(wo),[As]=Rr(wo,[ZG,_s]),Bp=_s(),[JG,Mi]=As(wo),[eV,tV]=As(wo),FL=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:l,value:s,defaultValue:c,onValueChange:f,dir:d,name:m,autoComplete:p,disabled:y,required:x,form:O}=e,w=Bp(t),[S,E]=_.useState(null),[T,A]=_.useState(null),[M,j]=_.useState(!1),N=xp(d),[R,k]=Ai({prop:r,defaultProp:i??!1,onChange:l,caller:wo}),[I,V]=Ai({prop:s,defaultProp:c,onChange:f,caller:wo}),z=_.useRef(null),B=S?O||!!S.closest("form"):!0,[G,K]=_.useState(new Set),X=Array.from(G).map(D=>D.props.value).join(";");return v.jsx(gS,{...w,children:v.jsxs(JG,{required:x,scope:t,trigger:S,onTriggerChange:E,valueNode:T,onValueNodeChange:A,valueNodeHasChildren:M,onValueNodeHasChildrenChange:j,contentId:ur(),value:I,onValueChange:V,open:R,onOpenChange:k,dir:N,triggerPointerDownPosRef:z,disabled:y,children:[v.jsx(Ip.Provider,{scope:t,children:v.jsx(eV,{scope:e.__scopeSelect,onNativeOptionAdd:_.useCallback(D=>{K(U=>new Set(U).add(D))},[]),onNativeOptionRemove:_.useCallback(D=>{K(U=>{const Y=new Set(U);return Y.delete(D),Y})},[]),children:n})}),B?v.jsxs(dI,{"aria-hidden":!0,required:x,tabIndex:-1,name:m,autoComplete:p,value:I,onChange:D=>V(D.target.value),disabled:y,form:O,children:[I===void 0?v.jsx("option",{value:""}):null,Array.from(G)]},X):null]})})};FL.displayName=wo;var GL="SelectTrigger",VL=_.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,l=Bp(n),s=Mi(GL,n),c=s.disabled||r,f=Ve(t,s.onTriggerChange),d=zp(n),m=_.useRef("touch"),[p,y,x]=pI(w=>{const S=d().filter(A=>!A.disabled),E=S.find(A=>A.value===s.value),T=mI(S,w,E);T!==void 0&&s.onValueChange(T.value)}),O=w=>{c||(s.onOpenChange(!0),x()),w&&(s.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return v.jsx(yS,{asChild:!0,...l,children:v.jsx(Me.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":hI(s.value)?"":void 0,...i,ref:f,onClick:be(i.onClick,w=>{w.currentTarget.focus(),m.current!=="mouse"&&O(w)}),onPointerDown:be(i.onPointerDown,w=>{m.current=w.pointerType;const S=w.target;S.hasPointerCapture(w.pointerId)&&S.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(O(w),w.preventDefault())}),onKeyDown:be(i.onKeyDown,w=>{const S=p.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&y(w.key),!(S&&w.key===" ")&&XG.includes(w.key)&&(O(),w.preventDefault())})})})});VL.displayName=GL;var YL="SelectValue",WL=_.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:l,placeholder:s="",...c}=e,f=Mi(YL,n),{onValueNodeHasChildrenChange:d}=f,m=l!==void 0,p=Ve(t,f.onValueNodeChange);return It(()=>{d(m)},[d,m]),v.jsx(Me.span,{...c,ref:p,style:{pointerEvents:"none"},children:hI(f.value)?v.jsx(v.Fragment,{children:s}):l})});WL.displayName=YL;var nV="SelectIcon",KL=_.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return v.jsx(Me.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});KL.displayName=nV;var rV="SelectPortal",XL=e=>v.jsx(Qc,{asChild:!0,...e});XL.displayName=rV;var So="SelectContent",QL=_.forwardRef((e,t)=>{const n=Mi(So,e.__scopeSelect),[r,i]=_.useState();if(It(()=>{i(new DocumentFragment)},[]),!n.open){const l=r;return l?Vc.createPortal(v.jsx(ZL,{scope:e.__scopeSelect,children:v.jsx(Ip.Slot,{scope:e.__scopeSelect,children:v.jsx("div",{children:e.children})})}),l):null}return v.jsx(JL,{...e,ref:t})});QL.displayName=So;var Or=10,[ZL,Ni]=As(So),aV="SelectContentImpl",iV=Vl("SelectContent.RemoveScroll"),JL=_.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:l,onPointerDownOutside:s,side:c,sideOffset:f,align:d,alignOffset:m,arrowPadding:p,collisionBoundary:y,collisionPadding:x,sticky:O,hideWhenDetached:w,avoidCollisions:S,...E}=e,T=Mi(So,n),[A,M]=_.useState(null),[j,N]=_.useState(null),R=Ve(t,fe=>M(fe)),[k,I]=_.useState(null),[V,z]=_.useState(null),B=zp(n),[G,K]=_.useState(!1),X=_.useRef(!1);_.useEffect(()=>{if(A)return wS(A)},[A]),sS();const D=_.useCallback(fe=>{const[pe,...ae]=B().map(re=>re.ref.current),[me]=ae.slice(-1),ye=document.activeElement;for(const re of fe)if(re===ye||(re==null||re.scrollIntoView({block:"nearest"}),re===pe&&j&&(j.scrollTop=0),re===me&&j&&(j.scrollTop=j.scrollHeight),re==null||re.focus(),document.activeElement!==ye))return},[B,j]),U=_.useCallback(()=>D([k,A]),[D,k,A]);_.useEffect(()=>{G&&U()},[G,U]);const{onOpenChange:Y,triggerPointerDownPosRef:W}=T;_.useEffect(()=>{if(A){let fe={x:0,y:0};const pe=me=>{var ye,re;fe={x:Math.abs(Math.round(me.pageX)-(((ye=W.current)==null?void 0:ye.x)??0)),y:Math.abs(Math.round(me.pageY)-(((re=W.current)==null?void 0:re.y)??0))}},ae=me=>{fe.x<=10&&fe.y<=10?me.preventDefault():A.contains(me.target)||Y(!1),document.removeEventListener("pointermove",pe),W.current=null};return W.current!==null&&(document.addEventListener("pointermove",pe),document.addEventListener("pointerup",ae,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",pe),document.removeEventListener("pointerup",ae,{capture:!0})}}},[A,Y,W]),_.useEffect(()=>{const fe=()=>Y(!1);return window.addEventListener("blur",fe),window.addEventListener("resize",fe),()=>{window.removeEventListener("blur",fe),window.removeEventListener("resize",fe)}},[Y]);const[oe,$]=pI(fe=>{const pe=B().filter(ye=>!ye.disabled),ae=pe.find(ye=>ye.ref.current===document.activeElement),me=mI(pe,fe,ae);me&&setTimeout(()=>me.ref.current.focus())}),F=_.useCallback((fe,pe,ae)=>{const me=!X.current&&!ae;(T.value!==void 0&&T.value===pe||me)&&(I(fe),me&&(X.current=!0))},[T.value]),Z=_.useCallback(()=>A==null?void 0:A.focus(),[A]),se=_.useCallback((fe,pe,ae)=>{const me=!X.current&&!ae;(T.value!==void 0&&T.value===pe||me)&&z(fe)},[T.value]),de=r==="popper"?Ew:eI,ge=de===Ew?{side:c,sideOffset:f,align:d,alignOffset:m,arrowPadding:p,collisionBoundary:y,collisionPadding:x,sticky:O,hideWhenDetached:w,avoidCollisions:S}:{};return v.jsx(ZL,{scope:n,content:A,viewport:j,onViewportChange:N,itemRefCallback:F,selectedItem:k,onItemLeave:Z,itemTextRefCallback:se,focusSelectedItem:U,selectedItemText:V,position:r,isPositioned:G,searchRef:oe,children:v.jsx(jp,{as:iV,allowPinchZoom:!0,children:v.jsx(wp,{asChild:!0,trapped:T.open,onMountAutoFocus:fe=>{fe.preventDefault()},onUnmountAutoFocus:be(i,fe=>{var pe;(pe=T.trigger)==null||pe.focus({preventScroll:!0}),fe.preventDefault()}),children:v.jsx(Kc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:fe=>fe.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:v.jsx(de,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:fe=>fe.preventDefault(),...E,...ge,onPlaced:()=>K(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:be(E.onKeyDown,fe=>{const pe=fe.ctrlKey||fe.altKey||fe.metaKey;if(fe.key==="Tab"&&fe.preventDefault(),!pe&&fe.key.length===1&&$(fe.key),["ArrowUp","ArrowDown","Home","End"].includes(fe.key)){let me=B().filter(ye=>!ye.disabled).map(ye=>ye.ref.current);if(["ArrowUp","End"].includes(fe.key)&&(me=me.slice().reverse()),["ArrowUp","ArrowDown"].includes(fe.key)){const ye=fe.target,re=me.indexOf(ye);me=me.slice(re+1)}setTimeout(()=>D(me)),fe.preventDefault()}})})})})})})});JL.displayName=aV;var oV="SelectItemAlignedPosition",eI=_.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,l=Mi(So,n),s=Ni(So,n),[c,f]=_.useState(null),[d,m]=_.useState(null),p=Ve(t,R=>m(R)),y=zp(n),x=_.useRef(!1),O=_.useRef(!0),{viewport:w,selectedItem:S,selectedItemText:E,focusSelectedItem:T}=s,A=_.useCallback(()=>{if(l.trigger&&l.valueNode&&c&&d&&w&&S&&E){const R=l.trigger.getBoundingClientRect(),k=d.getBoundingClientRect(),I=l.valueNode.getBoundingClientRect(),V=E.getBoundingClientRect();if(l.dir!=="rtl"){const ye=V.left-k.left,re=I.left-ye,Ne=R.left-re,Oe=R.width+Ne,Ke=Math.max(Oe,k.width),He=window.innerWidth-Or,nt=Hj(re,[Or,Math.max(Or,He-Ke)]);c.style.minWidth=Oe+"px",c.style.left=nt+"px"}else{const ye=k.right-V.right,re=window.innerWidth-I.right-ye,Ne=window.innerWidth-R.right-re,Oe=R.width+Ne,Ke=Math.max(Oe,k.width),He=window.innerWidth-Or,nt=Hj(re,[Or,Math.max(Or,He-Ke)]);c.style.minWidth=Oe+"px",c.style.right=nt+"px"}const z=y(),B=window.innerHeight-Or*2,G=w.scrollHeight,K=window.getComputedStyle(d),X=parseInt(K.borderTopWidth,10),D=parseInt(K.paddingTop,10),U=parseInt(K.borderBottomWidth,10),Y=parseInt(K.paddingBottom,10),W=X+D+G+Y+U,oe=Math.min(S.offsetHeight*5,W),$=window.getComputedStyle(w),F=parseInt($.paddingTop,10),Z=parseInt($.paddingBottom,10),se=R.top+R.height/2-Or,de=B-se,ge=S.offsetHeight/2,fe=S.offsetTop+ge,pe=X+D+fe,ae=W-pe;if(pe<=se){const ye=z.length>0&&S===z[z.length-1].ref.current;c.style.bottom="0px";const re=d.clientHeight-w.offsetTop-w.offsetHeight,Ne=Math.max(de,ge+(ye?Z:0)+re+U),Oe=pe+Ne;c.style.height=Oe+"px"}else{const ye=z.length>0&&S===z[0].ref.current;c.style.top="0px";const Ne=Math.max(se,X+w.offsetTop+(ye?F:0)+ge)+ae;c.style.height=Ne+"px",w.scrollTop=pe-se+w.offsetTop}c.style.margin=`${Or}px 0`,c.style.minHeight=oe+"px",c.style.maxHeight=B+"px",r==null||r(),requestAnimationFrame(()=>x.current=!0)}},[y,l.trigger,l.valueNode,c,d,w,S,E,l.dir,r]);It(()=>A(),[A]);const[M,j]=_.useState();It(()=>{d&&j(window.getComputedStyle(d).zIndex)},[d]);const N=_.useCallback(R=>{R&&O.current===!0&&(A(),T==null||T(),O.current=!1)},[A,T]);return v.jsx(sV,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:x,onScrollButtonChange:N,children:v.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:M},children:v.jsx(Me.div,{...i,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});eI.displayName=oV;var lV="SelectPopperPosition",Ew=_.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=Or,...l}=e,s=Bp(n);return v.jsx(bS,{...s,...l,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ew.displayName=lV;var[sV,qS]=As(So,{}),Aw="SelectViewport",tI=_.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,l=Ni(Aw,n),s=qS(Aw,n),c=Ve(t,l.onViewportChange),f=_.useRef(0);return v.jsxs(v.Fragment,{children:[v.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),v.jsx(Ip.Slot,{scope:n,children:v.jsx(Me.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:be(i.onScroll,d=>{const m=d.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:y}=s;if(y!=null&&y.current&&p){const x=Math.abs(f.current-m.scrollTop);if(x>0){const O=window.innerHeight-Or*2,w=parseFloat(p.style.minHeight),S=parseFloat(p.style.height),E=Math.max(w,S);if(E<O){const T=E+x,A=Math.min(O,T),M=T-A;p.style.height=A+"px",p.style.bottom==="0px"&&(m.scrollTop=M>0?M:0,p.style.justifyContent="flex-end")}}}f.current=m.scrollTop})})})]})});tI.displayName=Aw;var nI="SelectGroup",[uV,cV]=As(nI),fV=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=ur();return v.jsx(uV,{scope:n,id:i,children:v.jsx(Me.div,{role:"group","aria-labelledby":i,...r,ref:t})})});fV.displayName=nI;var rI="SelectLabel",dV=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=cV(rI,n);return v.jsx(Me.div,{id:i.id,...r,ref:t})});dV.displayName=rI;var mh="SelectItem",[hV,aI]=As(mh),iI=_.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:l,...s}=e,c=Mi(mh,n),f=Ni(mh,n),d=c.value===r,[m,p]=_.useState(l??""),[y,x]=_.useState(!1),O=Ve(t,T=>{var A;return(A=f.itemRefCallback)==null?void 0:A.call(f,T,r,i)}),w=ur(),S=_.useRef("touch"),E=()=>{i||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return v.jsx(hV,{scope:n,value:r,disabled:i,textId:w,isSelected:d,onItemTextChange:_.useCallback(T=>{p(A=>A||((T==null?void 0:T.textContent)??"").trim())},[]),children:v.jsx(Ip.ItemSlot,{scope:n,value:r,disabled:i,textValue:m,children:v.jsx(Me.div,{role:"option","aria-labelledby":w,"data-highlighted":y?"":void 0,"aria-selected":d&&y,"data-state":d?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...s,ref:O,onFocus:be(s.onFocus,()=>x(!0)),onBlur:be(s.onBlur,()=>x(!1)),onClick:be(s.onClick,()=>{S.current!=="mouse"&&E()}),onPointerUp:be(s.onPointerUp,()=>{S.current==="mouse"&&E()}),onPointerDown:be(s.onPointerDown,T=>{S.current=T.pointerType}),onPointerMove:be(s.onPointerMove,T=>{var A;S.current=T.pointerType,i?(A=f.onItemLeave)==null||A.call(f):S.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:be(s.onPointerLeave,T=>{var A;T.currentTarget===document.activeElement&&((A=f.onItemLeave)==null||A.call(f))}),onKeyDown:be(s.onKeyDown,T=>{var M;((M=f.searchRef)==null?void 0:M.current)!==""&&T.key===" "||(QG.includes(T.key)&&E(),T.key===" "&&T.preventDefault())})})})})});iI.displayName=mh;var Gu="SelectItemText",oI=_.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...l}=e,s=Mi(Gu,n),c=Ni(Gu,n),f=aI(Gu,n),d=tV(Gu,n),[m,p]=_.useState(null),y=Ve(t,E=>p(E),f.onItemTextChange,E=>{var T;return(T=c.itemTextRefCallback)==null?void 0:T.call(c,E,f.value,f.disabled)}),x=m==null?void 0:m.textContent,O=_.useMemo(()=>v.jsx("option",{value:f.value,disabled:f.disabled,children:x},f.value),[f.disabled,f.value,x]),{onNativeOptionAdd:w,onNativeOptionRemove:S}=d;return It(()=>(w(O),()=>S(O)),[w,S,O]),v.jsxs(v.Fragment,{children:[v.jsx(Me.span,{id:f.textId,...l,ref:y}),f.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Vc.createPortal(l.children,s.valueNode):null]})});oI.displayName=Gu;var lI="SelectItemIndicator",sI=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return aI(lI,n).isSelected?v.jsx(Me.span,{"aria-hidden":!0,...r,ref:t}):null});sI.displayName=lI;var Tw="SelectScrollUpButton",uI=_.forwardRef((e,t)=>{const n=Ni(Tw,e.__scopeSelect),r=qS(Tw,e.__scopeSelect),[i,l]=_.useState(!1),s=Ve(t,r.onScrollButtonChange);return It(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=f.scrollTop>0;l(d)};const f=n.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),i?v.jsx(fI,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop-f.offsetHeight)}}):null});uI.displayName=Tw;var jw="SelectScrollDownButton",cI=_.forwardRef((e,t)=>{const n=Ni(jw,e.__scopeSelect),r=qS(jw,e.__scopeSelect),[i,l]=_.useState(!1),s=Ve(t,r.onScrollButtonChange);return It(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=f.scrollHeight-f.clientHeight,m=Math.ceil(f.scrollTop)<d;l(m)};const f=n.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),i?v.jsx(fI,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop+f.offsetHeight)}}):null});cI.displayName=jw;var fI=_.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,l=Ni("SelectScrollButton",n),s=_.useRef(null),c=zp(n),f=_.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return _.useEffect(()=>()=>f(),[f]),It(()=>{var m;const d=c().find(p=>p.ref.current===document.activeElement);(m=d==null?void 0:d.ref.current)==null||m.scrollIntoView({block:"nearest"})},[c]),v.jsx(Me.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:be(i.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:be(i.onPointerMove,()=>{var d;(d=l.onItemLeave)==null||d.call(l),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:be(i.onPointerLeave,()=>{f()})})}),pV="SelectSeparator",mV=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return v.jsx(Me.div,{"aria-hidden":!0,...r,ref:t})});mV.displayName=pV;var Cw="SelectArrow",vV=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Bp(n),l=Mi(Cw,n),s=Ni(Cw,n);return l.open&&s.position==="popper"?v.jsx(xS,{...i,...r,ref:t}):null});vV.displayName=Cw;var gV="SelectBubbleInput",dI=_.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=_.useRef(null),l=Ve(r,i),s=KG(t);return _.useEffect(()=>{const c=i.current;if(!c)return;const f=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(f,"value").set;if(s!==t&&m){const p=new Event("change",{bubbles:!0});m.call(c,t),c.dispatchEvent(p)}},[s,t]),v.jsx(Me.select,{...n,style:{...OL,...n.style},ref:l,defaultValue:t})});dI.displayName=gV;function hI(e){return e===""||e===void 0}function pI(e){const t=Cr(e),n=_.useRef(""),r=_.useRef(0),i=_.useCallback(s=>{const c=n.current+s;t(c),(function f(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>f(""),1e3))})(c)},[t]),l=_.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return _.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,l]}function mI(e,t,n){const i=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let s=yV(e,Math.max(l,0));i.length===1&&(s=s.filter(d=>d!==n));const f=s.find(d=>d.textValue.toLowerCase().startsWith(i.toLowerCase()));return f!==n?f:void 0}function yV(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var bV=FL,xV=VL,wV=WL,SV=KL,OV=XL,_V=QL,EV=tI,AV=iI,TV=oI,jV=sI,CV=uI,MV=cI;function Mw({...e}){return v.jsx(bV,{"data-slot":"select",...e})}function Nw({...e}){return v.jsx(wV,{"data-slot":"select-value",...e})}function Rw({className:e,size:t="default",children:n,...r}){return v.jsxs(xV,{className:he("flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[size=default]:h-9 data-[size=sm]:h-8 data-[placeholder]:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",e),"data-size":t,"data-slot":"select-trigger",...r,children:[n,v.jsx(SV,{asChild:!0,children:v.jsx(xs,{className:"size-4 opacity-50"})})]})}function Pw({className:e,children:t,position:n="popper",align:r="center",...i}){return v.jsx(OV,{children:v.jsxs(_V,{align:r,className:he("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",n==="popper"&&"data-[side=left]:-translate-x-1 data-[side=top]:-translate-y-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1",e),"data-slot":"select-content",position:n,...i,children:[v.jsx(NV,{}),v.jsx(EV,{className:he("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),v.jsx(RV,{})]})})}function Kt({className:e,children:t,...n}){return v.jsxs(AV,{className:he("relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),"data-slot":"select-item",...n,children:[v.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:v.jsx(jV,{children:v.jsx(bk,{className:"size-4"})})}),v.jsx(TV,{children:t})]})}function NV({className:e,...t}){return v.jsx(CV,{className:he("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-up-button",...t,children:v.jsx(Yc,{className:"size-4"})})}function RV({className:e,...t}){return v.jsx(MV,{className:he("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-down-button",...t,children:v.jsx(xs,{className:"size-4"})})}function PV({className:e,...t}){return v.jsx("div",{className:"relative w-full overflow-x-auto","data-slot":"table-container",children:v.jsx("table",{className:he("w-full caption-bottom text-sm",e),"data-slot":"table",...t})})}function DV({className:e,...t}){return v.jsx("thead",{className:he("[&_tr]:border-b",e),"data-slot":"table-header",...t})}function kV({className:e,...t}){return v.jsx("tbody",{className:he("[&_tr:last-child]:border-0",e),"data-slot":"table-body",...t})}function kd({className:e,...t}){return v.jsx("tr",{className:he("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),"data-slot":"table-row",...t})}function Ru({className:e,...t}){return v.jsx("th",{className:he("h-10 whitespace-nowrap px-2 text-left align-middle font-medium text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),"data-slot":"table-head",...t})}function io({className:e,...t}){return v.jsx("td",{className:he("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),"data-slot":"table-cell",...t})}var qp="Tabs",[$V]=Rr(qp,[Ap]),vI=Ap(),[LV,US]=$V(qp),gI=_.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:l,orientation:s="horizontal",dir:c,activationMode:f="automatic",...d}=e,m=xp(c),[p,y]=Ai({prop:r,onChange:i,defaultProp:l??"",caller:qp});return v.jsx(LV,{scope:n,baseId:ur(),value:p,onValueChange:y,orientation:s,dir:m,activationMode:f,children:v.jsx(Me.div,{dir:m,"data-orientation":s,...d,ref:t})})});gI.displayName=qp;var yI="TabsList",bI=_.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,l=US(yI,n),s=vI(n);return v.jsx(m$,{asChild:!0,...s,orientation:l.orientation,dir:l.dir,loop:r,children:v.jsx(Me.div,{role:"tablist","aria-orientation":l.orientation,...i,ref:t})})});bI.displayName=yI;var xI="TabsTrigger",wI=_.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...l}=e,s=US(xI,n),c=vI(n),f=_I(s.baseId,r),d=EI(s.baseId,r),m=r===s.value;return v.jsx(v$,{asChild:!0,...c,focusable:!i,active:m,children:v.jsx(Me.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":d,"data-state":m?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:f,...l,ref:t,onMouseDown:be(e.onMouseDown,p=>{!i&&p.button===0&&p.ctrlKey===!1?s.onValueChange(r):p.preventDefault()}),onKeyDown:be(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&s.onValueChange(r)}),onFocus:be(e.onFocus,()=>{const p=s.activationMode!=="manual";!m&&!i&&p&&s.onValueChange(r)})})})});wI.displayName=xI;var SI="TabsContent",OI=_.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:l,...s}=e,c=US(SI,n),f=_I(c.baseId,r),d=EI(c.baseId,r),m=r===c.value,p=_.useRef(m);return _.useEffect(()=>{const y=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(y)},[]),v.jsx(mr,{present:i||m,children:({present:y})=>v.jsx(Me.div,{"data-state":m?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":f,hidden:!y,id:d,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:y&&l})})});OI.displayName=SI;function _I(e,t){return`${e}-trigger-${t}`}function EI(e,t){return`${e}-content-${t}`}var IV=gI,zV=bI,BV=wI,qV=OI;function UV({className:e,...t}){return v.jsx(IV,{className:he("flex flex-col gap-2",e),"data-slot":"tabs",...t})}function HV({className:e,...t}){return v.jsx(zV,{className:he("inline-flex h-9 w-fit items-center justify-center rounded-lg bg-muted p-[3px] text-muted-foreground",e),"data-slot":"tabs-list",...t})}function Fj({className:e,...t}){return v.jsx(BV,{className:he("inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-transparent px-2 py-1 font-medium text-foreground text-sm transition-[color,box-shadow] focus-visible:border-ring focus-visible:outline-1 focus-visible:outline-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:shadow-sm dark:text-muted-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),"data-slot":"tabs-trigger",...t})}function Gj({className:e,...t}){return v.jsx(qV,{className:he("flex-1 outline-none",e),"data-slot":"tabs-content",...t})}const ly={clicked:{variant:"default",description:"Recipient clicked a link in the email",className:"bg-purple-100 text-purple-800 hover:bg-purple-200 border-purple-200"},opened:{variant:"default",description:"Recipient opened the email",className:"bg-blue-100 text-blue-800 hover:bg-blue-200 border-blue-200"},delivered:{variant:"default",description:"Email was successfully delivered to recipient's mailbox",className:"bg-green-100 text-green-800 hover:bg-green-200 border-green-200"},sent:{variant:"secondary",description:"Email was sent but delivery not yet confirmed",className:"bg-gray-100 text-gray-800 hover:bg-gray-200 border-gray-200"},bounced:{variant:"destructive",description:"Email bounced - recipient's mailbox may not exist or be full",className:"bg-orange-100 text-orange-800 hover:bg-orange-200 border-orange-200"},complained:{variant:"destructive",description:"Recipient marked this email as spam",className:"bg-red-100 text-red-800 hover:bg-red-200 border-red-200"},failed:{variant:"destructive",description:"Email failed to send due to an error",className:"bg-red-100 text-red-800 hover:bg-red-200 border-red-200"}};function FV(){const e=gp(),[t,n]=_.useState(""),[r,i]=_.useState("15"),[l,s]=_.useState("all"),[c,f]=_.useState("sending"),[d,m]=_.useState([]),[p,y]=_.useState(!0),[x,O]=_.useState(null);_.useEffect(()=>{async function E(){try{y(!0),O(null);let T=sessionStorage.getItem("wraps-auth-token");if(T||(T=new URLSearchParams(window.location.search).get("token"),T&&sessionStorage.setItem("wraps-auth-token",T)),!T)throw new Error("Authentication token not found. Please use the URL provided by 'wraps console' command.");const A=Number.parseInt(r,10),M=Date.now()-A*24*60*60*1e3,j=Date.now(),N=await fetch(`/api/emails?startTime=${M}&endTime=${j}&limit=100&token=${T}`);if(!N.ok){let k="Failed to fetch email logs";try{k=(await N.json()).error||k}catch{k=`${N.status}: ${N.statusText}`}throw new Error(k)}const R=await N.json();m(R.logs.map(k=>({id:k.messageId,to:k.to,from:k.from,subject:k.subject,status:k.status,timestamp:k.sentAt,messageId:k.messageId})))}catch(T){const A=T instanceof Error?T.message:"Unknown error";O(A),console.error("Error fetching email logs:",T)}finally{y(!1)}}E()},[r]);const w=d.filter(E=>{if(t){const T=t.toLowerCase(),A=E.to.some(j=>j.toLowerCase().includes(T)),M=E.subject.toLowerCase().includes(T);if(!(A||M))return!1}return!(l!=="all"&&E.status!==l)}),S=E=>{const T=new Date(E),M=Math.floor((new Date().getTime()-T.getTime())/(1e3*60*60*24));return M===0?"Today":M===1?"Yesterday":M<7?`${M} days ago`:T.toLocaleDateString()};return v.jsx(v.Fragment,{children:v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsx(an,{children:"Emails"}),v.jsx(hr,{children:"View and manage your email sending history"})]}),v.jsx(Ut,{children:v.jsxs(UV,{onValueChange:f,value:c,children:[v.jsxs(HV,{children:[v.jsx(Fj,{value:"sending",children:"Sending"}),v.jsx(Fj,{value:"receiving",children:"Receiving"})]}),v.jsxs(Gj,{className:"space-y-4",value:"sending",children:[x&&v.jsx("div",{className:"rounded-md border border-destructive bg-destructive/10 p-4 text-destructive text-sm",children:x}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsxs("div",{className:"relative flex-1",children:[v.jsx(h6,{className:"absolute top-2.5 left-2.5 h-4 w-4 text-muted-foreground"}),v.jsx(Pp,{className:"pl-8",onChange:E=>n(E.target.value),placeholder:"Search...",value:t})]}),v.jsxs(Mw,{onValueChange:i,value:r,children:[v.jsx(Rw,{className:"w-[180px]",children:v.jsx(Nw,{})}),v.jsxs(Pw,{children:[v.jsx(Kt,{value:"1",children:"Last 24 hours"}),v.jsx(Kt,{value:"7",children:"Last 7 days"}),v.jsx(Kt,{value:"15",children:"Last 15 days"}),v.jsx(Kt,{value:"30",children:"Last 30 days"}),v.jsx(Kt,{value:"90",children:"Last 90 days"})]})]}),v.jsxs(Mw,{onValueChange:s,value:l,children:[v.jsx(Rw,{className:"w-[180px]",children:v.jsx(Nw,{})}),v.jsxs(Pw,{children:[v.jsx(Kt,{value:"all",children:"All Statuses"}),v.jsx(Kt,{value:"clicked",children:"Clicked"}),v.jsx(Kt,{value:"opened",children:"Opened"}),v.jsx(Kt,{value:"delivered",children:"Delivered"}),v.jsx(Kt,{value:"sent",children:"Sent"}),v.jsx(Kt,{value:"bounced",children:"Bounced"}),v.jsx(Kt,{value:"complained",children:"Complained"}),v.jsx(Kt,{value:"failed",children:"Failed"})]})]}),v.jsxs(Dt,{size:"icon",variant:"outline",children:[v.jsx("span",{className:"sr-only",children:"Download"}),"↓"]})]}),v.jsx("div",{className:"rounded-md border",children:v.jsxs(PV,{children:[v.jsx(DV,{children:v.jsxs(kd,{children:[v.jsx(Ru,{children:"To"}),v.jsx(Ru,{children:"Status"}),v.jsx(Ru,{children:"Subject"}),v.jsx(Ru,{children:"Sent"}),v.jsx(Ru,{className:"w-[50px]"})]})}),v.jsx(kV,{children:p?v.jsx(kd,{children:v.jsx(io,{className:"h-24 text-center text-muted-foreground",colSpan:5,children:"Loading email logs..."})}):w.length===0?v.jsx(kd,{children:v.jsx(io,{className:"h-24 text-center text-muted-foreground",colSpan:5,children:"No emails found"})}):w.map(E=>{var T,A,M;return v.jsxs(kd,{className:"cursor-pointer hover:bg-muted/50",onClick:()=>e(`/email/${E.id}`),children:[v.jsx(io,{className:"font-mono text-sm",children:E.to.length>0?v.jsxs(v.Fragment,{children:[E.to[0],E.to.length>1&&v.jsxs("span",{className:"ml-1 text-muted-foreground text-xs",children:["+",E.to.length-1," more"]})]}):v.jsx("span",{className:"text-muted-foreground",children:"(no recipients)"})}),v.jsx(io,{children:v.jsxs(kL,{children:[v.jsx($L,{asChild:!0,children:v.jsx(vn,{className:(T=ly[E.status])==null?void 0:T.className,variant:((A=ly[E.status])==null?void 0:A.variant)??"default",children:E.status.charAt(0).toUpperCase()+E.status.slice(1)})}),v.jsx(LL,{children:v.jsx("p",{children:((M=ly[E.status])==null?void 0:M.description)??"Unknown status"})})]})}),v.jsx(io,{className:"max-w-[400px] truncate",children:E.subject}),v.jsx(io,{className:"text-muted-foreground",children:S(E.timestamp)}),v.jsx(io,{children:v.jsxs(Dt,{onClick:j=>{j.stopPropagation()},size:"icon",variant:"ghost",children:[v.jsx("span",{className:"sr-only",children:"More options"}),"⋯"]})})]},E.id)})})]})}),w.length>0&&!p&&v.jsx("div",{className:"flex items-center justify-between text-muted-foreground text-sm",children:v.jsxs("div",{children:["Showing ",w.length," of ",d.length," emails"]})})]}),v.jsx(Gj,{value:"receiving",children:v.jsx("div",{className:"flex h-[400px] items-center justify-center text-muted-foreground",children:"Receiving emails coming soon"})})]})})]})})}const AI=6048e5,GV=864e5,Vj=Symbol.for("constructDateFrom");function Ci(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Vj in e?e[Vj](t):e instanceof Date?new e.constructor(t):new Date(t)}function Dr(e,t){return Ci(t||e,e)}let VV={};function Up(){return VV}function lc(e,t){var c,f,d,m;const n=Up(),r=(t==null?void 0:t.weekStartsOn)??((f=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:f.weekStartsOn)??n.weekStartsOn??((m=(d=n.locale)==null?void 0:d.options)==null?void 0:m.weekStartsOn)??0,i=Dr(e,t==null?void 0:t.in),l=i.getDay(),s=(l<r?7:0)+l-r;return i.setDate(i.getDate()-s),i.setHours(0,0,0,0),i}function vh(e,t){return lc(e,{...t,weekStartsOn:1})}function TI(e,t){const n=Dr(e,t==null?void 0:t.in),r=n.getFullYear(),i=Ci(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const l=vh(i),s=Ci(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const c=vh(s);return n.getTime()>=l.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function Yj(e){const t=Dr(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function YV(e,...t){const n=Ci.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Wj(e,t){const n=Dr(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function WV(e,t,n){const[r,i]=YV(n==null?void 0:n.in,e,t),l=Wj(r),s=Wj(i),c=+l-Yj(l),f=+s-Yj(s);return Math.round((c-f)/GV)}function KV(e,t){const n=TI(e,t),r=Ci(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),vh(r)}function XV(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function QV(e){return!(!XV(e)&&typeof e!="number"||isNaN(+Dr(e)))}function ZV(e,t){const n=Dr(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const JV={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},eY=(e,t,n)=>{let r;const i=JV[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function sy(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const tY={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},nY={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},rY={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},aY={date:sy({formats:tY,defaultWidth:"full"}),time:sy({formats:nY,defaultWidth:"full"}),dateTime:sy({formats:rY,defaultWidth:"full"})},iY={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},oY=(e,t,n,r)=>iY[e];function Pu(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):s;i=e.formattingValues[c]||e.formattingValues[s]}else{const s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}const l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}const lY={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},sY={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},uY={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},cY={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},fY={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},dY={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},hY=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},pY={ordinalNumber:hY,era:Pu({values:lY,defaultWidth:"wide"}),quarter:Pu({values:sY,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Pu({values:uY,defaultWidth:"wide"}),day:Pu({values:cY,defaultWidth:"wide"}),dayPeriod:Pu({values:fY,defaultWidth:"wide",formattingValues:dY,defaultFormattingWidth:"wide"})};function Du(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],l=t.match(i);if(!l)return null;const s=l[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(c)?vY(c,p=>p.test(s)):mY(c,p=>p.test(s));let d;d=e.valueCallback?e.valueCallback(f):f,d=n.valueCallback?n.valueCallback(d):d;const m=t.slice(s.length);return{value:d,rest:m}}}function mY(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function vY(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function gY(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],l=t.match(e.parsePattern);if(!l)return null;let s=e.valueCallback?e.valueCallback(l[0]):l[0];s=n.valueCallback?n.valueCallback(s):s;const c=t.slice(i.length);return{value:s,rest:c}}}const yY=/^(\d+)(th|st|nd|rd)?/i,bY=/\d+/i,xY={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},wY={any:[/^b/i,/^(a|c)/i]},SY={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},OY={any:[/1/i,/2/i,/3/i,/4/i]},_Y={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},EY={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},AY={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},TY={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},jY={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},CY={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},MY={ordinalNumber:gY({matchPattern:yY,parsePattern:bY,valueCallback:e=>parseInt(e,10)}),era:Du({matchPatterns:xY,defaultMatchWidth:"wide",parsePatterns:wY,defaultParseWidth:"any"}),quarter:Du({matchPatterns:SY,defaultMatchWidth:"wide",parsePatterns:OY,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Du({matchPatterns:_Y,defaultMatchWidth:"wide",parsePatterns:EY,defaultParseWidth:"any"}),day:Du({matchPatterns:AY,defaultMatchWidth:"wide",parsePatterns:TY,defaultParseWidth:"any"}),dayPeriod:Du({matchPatterns:jY,defaultMatchWidth:"any",parsePatterns:CY,defaultParseWidth:"any"})},NY={code:"en-US",formatDistance:eY,formatLong:aY,formatRelative:oY,localize:pY,match:MY,options:{weekStartsOn:0,firstWeekContainsDate:1}};function RY(e,t){const n=Dr(e,t==null?void 0:t.in);return WV(n,ZV(n))+1}function PY(e,t){const n=Dr(e,t==null?void 0:t.in),r=+vh(n)-+KV(n);return Math.round(r/AI)+1}function jI(e,t){var m,p,y,x;const n=Dr(e,t==null?void 0:t.in),r=n.getFullYear(),i=Up(),l=(t==null?void 0:t.firstWeekContainsDate)??((p=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??i.firstWeekContainsDate??((x=(y=i.locale)==null?void 0:y.options)==null?void 0:x.firstWeekContainsDate)??1,s=Ci((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,l),s.setHours(0,0,0,0);const c=lc(s,t),f=Ci((t==null?void 0:t.in)||e,0);f.setFullYear(r,0,l),f.setHours(0,0,0,0);const d=lc(f,t);return+n>=+c?r+1:+n>=+d?r:r-1}function DY(e,t){var c,f,d,m;const n=Up(),r=(t==null?void 0:t.firstWeekContainsDate)??((f=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((m=(d=n.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)??1,i=jI(e,t),l=Ci((t==null?void 0:t.in)||e,0);return l.setFullYear(i,0,r),l.setHours(0,0,0,0),lc(l,t)}function kY(e,t){const n=Dr(e,t==null?void 0:t.in),r=+lc(n,t)-+DY(n,t);return Math.round(r/AI)+1}function tt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const bi={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return tt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):tt(n+1,2)},d(e,t){return tt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return tt(e.getHours()%12||12,t.length)},H(e,t){return tt(e.getHours(),t.length)},m(e,t){return tt(e.getMinutes(),t.length)},s(e,t){return tt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return tt(i,t.length)}},jl={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Kj={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return bi.y(e,t)},Y:function(e,t,n,r){const i=jI(e,r),l=i>0?i:1-i;if(t==="YY"){const s=l%100;return tt(s,2)}return t==="Yo"?n.ordinalNumber(l,{unit:"year"}):tt(l,t.length)},R:function(e,t){const n=TI(e);return tt(n,t.length)},u:function(e,t){const n=e.getFullYear();return tt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return tt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return tt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return bi.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return tt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=kY(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):tt(i,t.length)},I:function(e,t,n){const r=PY(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):tt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):bi.d(e,t)},D:function(e,t,n){const r=RY(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):tt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),l=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return tt(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),l=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return tt(l,t.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return tt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=jl.noon:r===0?i=jl.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=jl.evening:r>=12?i=jl.afternoon:r>=4?i=jl.morning:i=jl.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return bi.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):bi.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):tt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):tt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):bi.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):bi.s(e,t)},S:function(e,t){return bi.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Qj(r);case"XXXX":case"XX":return lo(r);case"XXXXX":case"XXX":default:return lo(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Qj(r);case"xxxx":case"xx":return lo(r);case"xxxxx":case"xxx":default:return lo(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Xj(r,":");case"OOOO":default:return"GMT"+lo(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Xj(r,":");case"zzzz":default:return"GMT"+lo(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return tt(r,t.length)},T:function(e,t,n){return tt(+e,t.length)}};function Xj(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),l=r%60;return l===0?n+String(i):n+String(i)+t+tt(l,2)}function Qj(e,t){return e%60===0?(e>0?"-":"+")+tt(Math.abs(e)/60,2):lo(e,t)}function lo(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=tt(Math.trunc(r/60),2),l=tt(r%60,2);return n+i+t+l}const Zj=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},CI=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},$Y=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Zj(e,t);let l;switch(r){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;case"PPPP":default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",Zj(r,t)).replace("{{time}}",CI(i,t))},LY={p:CI,P:$Y},IY=/^D+$/,zY=/^Y+$/,BY=["D","DD","YY","YYYY"];function qY(e){return IY.test(e)}function UY(e){return zY.test(e)}function HY(e,t,n){const r=FY(e,t,n);if(console.warn(r),BY.includes(e))throw new RangeError(r)}function FY(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const GY=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,VY=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,YY=/^'([^]*?)'?$/,WY=/''/g,KY=/[a-zA-Z]/;function Jj(e,t,n){var m,p,y,x;const r=Up(),i=r.locale??NY,l=r.firstWeekContainsDate??((p=(m=r.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,s=r.weekStartsOn??((x=(y=r.locale)==null?void 0:y.options)==null?void 0:x.weekStartsOn)??0,c=Dr(e,n==null?void 0:n.in);if(!QV(c))throw new RangeError("Invalid time value");let f=t.match(VY).map(O=>{const w=O[0];if(w==="p"||w==="P"){const S=LY[w];return S(O,i.formatLong)}return O}).join("").match(GY).map(O=>{if(O==="''")return{isToken:!1,value:"'"};const w=O[0];if(w==="'")return{isToken:!1,value:XY(O)};if(Kj[w])return{isToken:!0,value:O};if(w.match(KY))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:O}});i.localize.preprocessor&&(f=i.localize.preprocessor(c,f));const d={firstWeekContainsDate:l,weekStartsOn:s,locale:i};return f.map(O=>{if(!O.isToken)return O.value;const w=O.value;(UY(w)||qY(w))&&HY(w,t,String(e));const S=Kj[w[0]];return S(c,w,i.localize,d)}).join("")}function XY(e){const t=e.match(YY);return t?t[1].replace(WY,"'"):e}var uy,eC;function Rn(){if(eC)return uy;eC=1;var e=Array.isArray;return uy=e,uy}var cy,tC;function MI(){if(tC)return cy;tC=1;var e=typeof Td=="object"&&Td&&Td.Object===Object&&Td;return cy=e,cy}var fy,nC;function aa(){if(nC)return fy;nC=1;var e=MI(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return fy=n,fy}var dy,rC;function nf(){if(rC)return dy;rC=1;var e=aa(),t=e.Symbol;return dy=t,dy}var hy,aC;function QY(){if(aC)return hy;aC=1;var e=nf(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function l(s){var c=n.call(s,i),f=s[i];try{s[i]=void 0;var d=!0}catch{}var m=r.call(s);return d&&(c?s[i]=f:delete s[i]),m}return hy=l,hy}var py,iC;function ZY(){if(iC)return py;iC=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return py=n,py}var my,oC;function qa(){if(oC)return my;oC=1;var e=nf(),t=QY(),n=ZY(),r="[object Null]",i="[object Undefined]",l=e?e.toStringTag:void 0;function s(c){return c==null?c===void 0?i:r:l&&l in Object(c)?t(c):n(c)}return my=s,my}var vy,lC;function Ua(){if(lC)return vy;lC=1;function e(t){return t!=null&&typeof t=="object"}return vy=e,vy}var gy,sC;function Ts(){if(sC)return gy;sC=1;var e=qa(),t=Ua(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return gy=r,gy}var yy,uC;function HS(){if(uC)return yy;uC=1;var e=Rn(),t=Ts(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(l,s){if(e(l))return!1;var c=typeof l;return c=="number"||c=="symbol"||c=="boolean"||l==null||t(l)?!0:r.test(l)||!n.test(l)||s!=null&&l in Object(s)}return yy=i,yy}var by,cC;function Ri(){if(cC)return by;cC=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return by=e,by}var xy,fC;function FS(){if(fC)return xy;fC=1;var e=qa(),t=Ri(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",l="[object Proxy]";function s(c){if(!t(c))return!1;var f=e(c);return f==r||f==i||f==n||f==l}return xy=s,xy}var wy,dC;function JY(){if(dC)return wy;dC=1;var e=aa(),t=e["__core-js_shared__"];return wy=t,wy}var Sy,hC;function eW(){if(hC)return Sy;hC=1;var e=JY(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return Sy=n,Sy}var Oy,pC;function NI(){if(pC)return Oy;pC=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return Oy=n,Oy}var _y,mC;function tW(){if(mC)return _y;mC=1;var e=FS(),t=eW(),n=Ri(),r=NI(),i=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,f=s.toString,d=c.hasOwnProperty,m=RegExp("^"+f.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(y){if(!n(y)||t(y))return!1;var x=e(y)?m:l;return x.test(r(y))}return _y=p,_y}var Ey,vC;function nW(){if(vC)return Ey;vC=1;function e(t,n){return t==null?void 0:t[n]}return Ey=e,Ey}var Ay,gC;function Ro(){if(gC)return Ay;gC=1;var e=tW(),t=nW();function n(r,i){var l=t(r,i);return e(l)?l:void 0}return Ay=n,Ay}var Ty,yC;function Hp(){if(yC)return Ty;yC=1;var e=Ro(),t=e(Object,"create");return Ty=t,Ty}var jy,bC;function rW(){if(bC)return jy;bC=1;var e=Hp();function t(){this.__data__=e?e(null):{},this.size=0}return jy=t,jy}var Cy,xC;function aW(){if(xC)return Cy;xC=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Cy=e,Cy}var My,wC;function iW(){if(wC)return My;wC=1;var e=Hp(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(l){var s=this.__data__;if(e){var c=s[l];return c===t?void 0:c}return r.call(s,l)?s[l]:void 0}return My=i,My}var Ny,SC;function oW(){if(SC)return Ny;SC=1;var e=Hp(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var l=this.__data__;return e?l[i]!==void 0:n.call(l,i)}return Ny=r,Ny}var Ry,OC;function lW(){if(OC)return Ry;OC=1;var e=Hp(),t="__lodash_hash_undefined__";function n(r,i){var l=this.__data__;return this.size+=this.has(r)?0:1,l[r]=e&&i===void 0?t:i,this}return Ry=n,Ry}var Py,_C;function sW(){if(_C)return Py;_C=1;var e=rW(),t=aW(),n=iW(),r=oW(),i=lW();function l(s){var c=-1,f=s==null?0:s.length;for(this.clear();++c<f;){var d=s[c];this.set(d[0],d[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=r,l.prototype.set=i,Py=l,Py}var Dy,EC;function uW(){if(EC)return Dy;EC=1;function e(){this.__data__=[],this.size=0}return Dy=e,Dy}var ky,AC;function GS(){if(AC)return ky;AC=1;function e(t,n){return t===n||t!==t&&n!==n}return ky=e,ky}var $y,TC;function Fp(){if(TC)return $y;TC=1;var e=GS();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return $y=t,$y}var Ly,jC;function cW(){if(jC)return Ly;jC=1;var e=Fp(),t=Array.prototype,n=t.splice;function r(i){var l=this.__data__,s=e(l,i);if(s<0)return!1;var c=l.length-1;return s==c?l.pop():n.call(l,s,1),--this.size,!0}return Ly=r,Ly}var Iy,CC;function fW(){if(CC)return Iy;CC=1;var e=Fp();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return Iy=t,Iy}var zy,MC;function dW(){if(MC)return zy;MC=1;var e=Fp();function t(n){return e(this.__data__,n)>-1}return zy=t,zy}var By,NC;function hW(){if(NC)return By;NC=1;var e=Fp();function t(n,r){var i=this.__data__,l=e(i,n);return l<0?(++this.size,i.push([n,r])):i[l][1]=r,this}return By=t,By}var qy,RC;function Gp(){if(RC)return qy;RC=1;var e=uW(),t=cW(),n=fW(),r=dW(),i=hW();function l(s){var c=-1,f=s==null?0:s.length;for(this.clear();++c<f;){var d=s[c];this.set(d[0],d[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=r,l.prototype.set=i,qy=l,qy}var Uy,PC;function VS(){if(PC)return Uy;PC=1;var e=Ro(),t=aa(),n=e(t,"Map");return Uy=n,Uy}var Hy,DC;function pW(){if(DC)return Hy;DC=1;var e=sW(),t=Gp(),n=VS();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Hy=r,Hy}var Fy,kC;function mW(){if(kC)return Fy;kC=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Fy=e,Fy}var Gy,$C;function Vp(){if($C)return Gy;$C=1;var e=mW();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return Gy=t,Gy}var Vy,LC;function vW(){if(LC)return Vy;LC=1;var e=Vp();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Vy=t,Vy}var Yy,IC;function gW(){if(IC)return Yy;IC=1;var e=Vp();function t(n){return e(this,n).get(n)}return Yy=t,Yy}var Wy,zC;function yW(){if(zC)return Wy;zC=1;var e=Vp();function t(n){return e(this,n).has(n)}return Wy=t,Wy}var Ky,BC;function bW(){if(BC)return Ky;BC=1;var e=Vp();function t(n,r){var i=e(this,n),l=i.size;return i.set(n,r),this.size+=i.size==l?0:1,this}return Ky=t,Ky}var Xy,qC;function YS(){if(qC)return Xy;qC=1;var e=pW(),t=vW(),n=gW(),r=yW(),i=bW();function l(s){var c=-1,f=s==null?0:s.length;for(this.clear();++c<f;){var d=s[c];this.set(d[0],d[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=r,l.prototype.set=i,Xy=l,Xy}var Qy,UC;function RI(){if(UC)return Qy;UC=1;var e=YS(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var l=function(){var s=arguments,c=i?i.apply(this,s):s[0],f=l.cache;if(f.has(c))return f.get(c);var d=r.apply(this,s);return l.cache=f.set(c,d)||f,d};return l.cache=new(n.Cache||e),l}return n.Cache=e,Qy=n,Qy}var Zy,HC;function xW(){if(HC)return Zy;HC=1;var e=RI(),t=500;function n(r){var i=e(r,function(s){return l.size===t&&l.clear(),s}),l=i.cache;return i}return Zy=n,Zy}var Jy,FC;function wW(){if(FC)return Jy;FC=1;var e=xW(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var l=[];return i.charCodeAt(0)===46&&l.push(""),i.replace(t,function(s,c,f,d){l.push(f?d.replace(n,"$1"):c||s)}),l});return Jy=r,Jy}var eb,GC;function WS(){if(GC)return eb;GC=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,l=Array(i);++r<i;)l[r]=n(t[r],r,t);return l}return eb=e,eb}var tb,VC;function SW(){if(VC)return tb;VC=1;var e=nf(),t=WS(),n=Rn(),r=Ts(),i=e?e.prototype:void 0,l=i?i.toString:void 0;function s(c){if(typeof c=="string")return c;if(n(c))return t(c,s)+"";if(r(c))return l?l.call(c):"";var f=c+"";return f=="0"&&1/c==-1/0?"-0":f}return tb=s,tb}var nb,YC;function PI(){if(YC)return nb;YC=1;var e=SW();function t(n){return n==null?"":e(n)}return nb=t,nb}var rb,WC;function DI(){if(WC)return rb;WC=1;var e=Rn(),t=HS(),n=wW(),r=PI();function i(l,s){return e(l)?l:t(l,s)?[l]:n(r(l))}return rb=i,rb}var ab,KC;function Yp(){if(KC)return ab;KC=1;var e=Ts();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return ab=t,ab}var ib,XC;function KS(){if(XC)return ib;XC=1;var e=DI(),t=Yp();function n(r,i){i=e(i,r);for(var l=0,s=i.length;r!=null&&l<s;)r=r[t(i[l++])];return l&&l==s?r:void 0}return ib=n,ib}var ob,QC;function kI(){if(QC)return ob;QC=1;var e=KS();function t(n,r,i){var l=n==null?void 0:e(n,r);return l===void 0?i:l}return ob=t,ob}var OW=kI();const fr=lt(OW);var lb,ZC;function _W(){if(ZC)return lb;ZC=1;function e(t){return t==null}return lb=e,lb}var EW=_W();const Le=lt(EW);var sb,JC;function AW(){if(JC)return sb;JC=1;var e=qa(),t=Rn(),n=Ua(),r="[object String]";function i(l){return typeof l=="string"||!t(l)&&n(l)&&e(l)==r}return sb=i,sb}var TW=AW();const Oo=lt(TW);var jW=FS();const De=lt(jW);var CW=Ri();const js=lt(CW);var ub={exports:{}},Qe={};/**
293
- * @license React
294
- * react-is.production.min.js
295
- *
296
- * Copyright (c) Facebook, Inc. and its affiliates.
297
- *
298
- * This source code is licensed under the MIT license found in the
299
- * LICENSE file in the root directory of this source tree.
300
- */var eM;function MW(){if(eM)return Qe;eM=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),O;O=Symbol.for("react.module.reference");function w(S){if(typeof S=="object"&&S!==null){var E=S.$$typeof;switch(E){case e:switch(S=S.type,S){case n:case i:case r:case d:case m:return S;default:switch(S=S&&S.$$typeof,S){case c:case s:case f:case y:case p:case l:return S;default:return E}}case t:return E}}}return Qe.ContextConsumer=s,Qe.ContextProvider=l,Qe.Element=e,Qe.ForwardRef=f,Qe.Fragment=n,Qe.Lazy=y,Qe.Memo=p,Qe.Portal=t,Qe.Profiler=i,Qe.StrictMode=r,Qe.Suspense=d,Qe.SuspenseList=m,Qe.isAsyncMode=function(){return!1},Qe.isConcurrentMode=function(){return!1},Qe.isContextConsumer=function(S){return w(S)===s},Qe.isContextProvider=function(S){return w(S)===l},Qe.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},Qe.isForwardRef=function(S){return w(S)===f},Qe.isFragment=function(S){return w(S)===n},Qe.isLazy=function(S){return w(S)===y},Qe.isMemo=function(S){return w(S)===p},Qe.isPortal=function(S){return w(S)===t},Qe.isProfiler=function(S){return w(S)===i},Qe.isStrictMode=function(S){return w(S)===r},Qe.isSuspense=function(S){return w(S)===d},Qe.isSuspenseList=function(S){return w(S)===m},Qe.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===i||S===r||S===d||S===m||S===x||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===p||S.$$typeof===l||S.$$typeof===s||S.$$typeof===f||S.$$typeof===O||S.getModuleId!==void 0)},Qe.typeOf=w,Qe}var tM;function NW(){return tM||(tM=1,ub.exports=MW()),ub.exports}var RW=NW(),cb,nM;function $I(){if(nM)return cb;nM=1;var e=qa(),t=Ua(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return cb=r,cb}var fb,rM;function PW(){if(rM)return fb;rM=1;var e=$I();function t(n){return e(n)&&n!=+n}return fb=t,fb}var DW=PW();const rf=lt(DW);var kW=$I();const $W=lt(kW);var jr=function(t){return t===0?0:t>0?1:-1},co=function(t){return Oo(t)&&t.indexOf("%")===t.length-1},ve=function(t){return $W(t)&&!rf(t)},LW=function(t){return Le(t)},Ht=function(t){return ve(t)||Oo(t)},IW=0,af=function(t){var n=++IW;return"".concat(t||"").concat(n)},_o=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ve(t)&&!Oo(t))return r;var l;if(co(t)){var s=t.indexOf("%");l=n*parseFloat(t.slice(0,s))/100}else l=+t;return rf(l)&&(l=r),i&&l>n&&(l=n),l},Si=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},zW=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},Ar=function(t,n){return ve(t)&&ve(n)?function(r){return t+r*(n-t)}:function(){return n}};function gh(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):fr(r,t))===n})}var BW=function(t,n){return ve(t)&&ve(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 Ul(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 Dw(e){"@babel/helpers - typeof";return Dw=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},Dw(e)}var qW=["viewBox","children"],UW=["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"],aM=["points","pathLength"],db={svg:qW,polygon:aM,polyline:aM},XS=["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"],yh=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(_.isValidElement(t)&&(r=t.props),!js(r))return null;var i={};return Object.keys(r).forEach(function(l){XS.includes(l)&&(i[l]=n||function(s){return r[l](r,s)})}),i},HW=function(t,n,r){return function(i){return t(n,r,i),null}},bh=function(t,n,r){if(!js(t)||Dw(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(l){var s=t[l];XS.includes(l)&&typeof s=="function"&&(i||(i={}),i[l]=HW(s,n,r))}),i},FW=["children"],GW=["children"];function iM(e,t){if(e==null)return{};var n=VW(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function VW(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 kw(e){"@babel/helpers - typeof";return kw=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},kw(e)}var oM={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"},Ma=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},lM=null,hb=null,QS=function e(t){if(t===lM&&Array.isArray(hb))return hb;var n=[];return _.Children.forEach(t,function(r){Le(r)||(RW.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),hb=n,lM=t,n};function dr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Ma(i)}):r=[Ma(t)],QS(e).forEach(function(i){var l=fr(i,"type.displayName")||fr(i,"type.name");r.indexOf(l)!==-1&&n.push(i)}),n}function Hn(e,t){var n=dr(e,t);return n&&n[0]}var sM=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!ve(r)||r<=0||!ve(i)||i<=0)},YW=["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"],WW=function(t){return t&&t.type&&Oo(t.type)&&YW.indexOf(t.type)>=0},KW=function(t){return t&&kw(t)==="object"&&"clipDot"in t},XW=function(t,n,r,i){var l,s=(l=db==null?void 0:db[i])!==null&&l!==void 0?l:[];return n.startsWith("data-")||!De(t)&&(i&&s.includes(n)||UW.includes(n))||r&&XS.includes(n)},qe=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(_.isValidElement(t)&&(i=t.props),!js(i))return null;var l={};return Object.keys(i).forEach(function(s){var c;XW((c=i)===null||c===void 0?void 0:c[s],s,n,r)&&(l[s]=i[s])}),l},$w=function e(t,n){if(t===n)return!0;var r=_.Children.count(t);if(r!==_.Children.count(n))return!1;if(r===0)return!0;if(r===1)return uM(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var l=t[i],s=n[i];if(Array.isArray(l)||Array.isArray(s)){if(!e(l,s))return!1}else if(!uM(l,s))return!1}return!0},uM=function(t,n){if(Le(t)&&Le(n))return!0;if(!Le(t)&&!Le(n)){var r=t.props||{},i=r.children,l=iM(r,FW),s=n.props||{},c=s.children,f=iM(s,GW);return i&&c?Ul(l,f)&&$w(i,c):!i&&!c?Ul(l,f):!1}return!1},cM=function(t,n){var r=[],i={};return QS(t).forEach(function(l,s){if(WW(l))r.push(l);else if(l){var c=Ma(l.type),f=n[c]||{},d=f.handler,m=f.once;if(d&&(!m||!i[c])){var p=d(l,c,s);r.push(p),i[c]=!0}}}),r},QW=function(t){var n=t&&t.type;return n&&oM[n]?oM[n]:null},ZW=function(t,n){return QS(n).indexOf(t)},JW=["children","width","height","viewBox","className","style","title","desc"];function Lw(){return Lw=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},Lw.apply(this,arguments)}function eK(e,t){if(e==null)return{};var n=tK(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tK(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 Iw(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,l=e.className,s=e.style,c=e.title,f=e.desc,d=eK(e,JW),m=i||{width:n,height:r,x:0,y:0},p=Ue("recharts-surface",l);return L.createElement("svg",Lw({},qe(d,!0,"svg"),{className:p,width:n,height:r,style:s,viewBox:"".concat(m.x," ").concat(m.y," ").concat(m.width," ").concat(m.height)}),L.createElement("title",null,c),L.createElement("desc",null,f),t)}var nK=["children","className"];function zw(){return zw=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},zw.apply(this,arguments)}function rK(e,t){if(e==null)return{};var n=aK(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function aK(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 jt=L.forwardRef(function(e,t){var n=e.children,r=e.className,i=rK(e,nK),l=Ue("recharts-layer",r);return L.createElement("g",zw({className:l},qe(i,!0),{ref:t}),n)}),Na=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),l=2;l<r;l++)i[l-2]=arguments[l]},pb,fM;function iK(){if(fM)return pb;fM=1;function e(t,n,r){var i=-1,l=t.length;n<0&&(n=-n>l?0:l+n),r=r>l?l:r,r<0&&(r+=l),l=n>r?0:r-n>>>0,n>>>=0;for(var s=Array(l);++i<l;)s[i]=t[i+n];return s}return pb=e,pb}var mb,dM;function oK(){if(dM)return mb;dM=1;var e=iK();function t(n,r,i){var l=n.length;return i=i===void 0?l:i,!r&&i>=l?n:e(n,r,i)}return mb=t,mb}var vb,hM;function LI(){if(hM)return vb;hM=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,l="\\ufe0e\\ufe0f",s="\\u200d",c=RegExp("["+s+e+i+l+"]");function f(d){return c.test(d)}return vb=f,vb}var gb,pM;function lK(){if(pM)return gb;pM=1;function e(t){return t.split("")}return gb=e,gb}var yb,mM;function sK(){if(mM)return yb;mM=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,l="\\ufe0e\\ufe0f",s="["+e+"]",c="["+i+"]",f="\\ud83c[\\udffb-\\udfff]",d="(?:"+c+"|"+f+")",m="[^"+e+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",O=d+"?",w="["+l+"]?",S="(?:"+x+"(?:"+[m,p,y].join("|")+")"+w+O+")*",E=w+O+S,T="(?:"+[m+c+"?",c,p,y,s].join("|")+")",A=RegExp(f+"(?="+f+")|"+T+E,"g");function M(j){return j.match(A)||[]}return yb=M,yb}var bb,vM;function uK(){if(vM)return bb;vM=1;var e=lK(),t=LI(),n=sK();function r(i){return t(i)?n(i):e(i)}return bb=r,bb}var xb,gM;function cK(){if(gM)return xb;gM=1;var e=oK(),t=LI(),n=uK(),r=PI();function i(l){return function(s){s=r(s);var c=t(s)?n(s):void 0,f=c?c[0]:s.charAt(0),d=c?e(c,1).join(""):s.slice(1);return f[l]()+d}}return xb=i,xb}var wb,yM;function fK(){if(yM)return wb;yM=1;var e=cK(),t=e("toUpperCase");return wb=t,wb}var dK=fK();const Wp=lt(dK);function ct(e){return function(){return e}}const II=Math.cos,xh=Math.sin,kr=Math.sqrt,wh=Math.PI,Kp=2*wh,Bw=Math.PI,qw=2*Bw,so=1e-6,hK=qw-so;function zI(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function pK(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return zI;const n=10**t;return function(r){this._+=r[0];for(let i=1,l=r.length;i<l;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class mK{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?zI:pK(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,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,l,s){this._append`C${+t},${+n},${+r},${+i},${this._x1=+l},${this._y1=+s}`}arcTo(t,n,r,i,l){if(t=+t,n=+n,r=+r,i=+i,l=+l,l<0)throw new Error(`negative radius: ${l}`);let s=this._x1,c=this._y1,f=r-t,d=i-n,m=s-t,p=c-n,y=m*m+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(y>so)if(!(Math.abs(p*f-d*m)>so)||!l)this._append`L${this._x1=t},${this._y1=n}`;else{let x=r-s,O=i-c,w=f*f+d*d,S=x*x+O*O,E=Math.sqrt(w),T=Math.sqrt(y),A=l*Math.tan((Bw-Math.acos((w+y-S)/(2*E*T)))/2),M=A/T,j=A/E;Math.abs(M-1)>so&&this._append`L${t+M*m},${n+M*p}`,this._append`A${l},${l},0,0,${+(p*x>m*O)},${this._x1=t+j*f},${this._y1=n+j*d}`}}arc(t,n,r,i,l,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let c=r*Math.cos(i),f=r*Math.sin(i),d=t+c,m=n+f,p=1^s,y=s?i-l:l-i;this._x1===null?this._append`M${d},${m}`:(Math.abs(this._x1-d)>so||Math.abs(this._y1-m)>so)&&this._append`L${d},${m}`,r&&(y<0&&(y=y%qw+qw),y>hK?this._append`A${r},${r},0,1,${p},${t-c},${n-f}A${r},${r},0,1,${p},${this._x1=d},${this._y1=m}`:y>so&&this._append`A${r},${r},0,${+(y>=Bw)},${p},${this._x1=t+r*Math.cos(l)},${this._y1=n+r*Math.sin(l)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function ZS(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 mK(t)}function JS(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function BI(e){this._context=e}BI.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 Xp(e){return new BI(e)}function qI(e){return e[0]}function UI(e){return e[1]}function HI(e,t){var n=ct(!0),r=null,i=Xp,l=null,s=ZS(c);e=typeof e=="function"?e:e===void 0?qI:ct(e),t=typeof t=="function"?t:t===void 0?UI:ct(t);function c(f){var d,m=(f=JS(f)).length,p,y=!1,x;for(r==null&&(l=i(x=s())),d=0;d<=m;++d)!(d<m&&n(p=f[d],d,f))===y&&((y=!y)?l.lineStart():l.lineEnd()),y&&l.point(+e(p,d,f),+t(p,d,f));if(x)return l=null,x+""||null}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:ct(+f),c):e},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:ct(+f),c):t},c.defined=function(f){return arguments.length?(n=typeof f=="function"?f:ct(!!f),c):n},c.curve=function(f){return arguments.length?(i=f,r!=null&&(l=i(r)),c):i},c.context=function(f){return arguments.length?(f==null?r=l=null:l=i(r=f),c):r},c}function $d(e,t,n){var r=null,i=ct(!0),l=null,s=Xp,c=null,f=ZS(d);e=typeof e=="function"?e:e===void 0?qI:ct(+e),t=typeof t=="function"?t:ct(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?UI:ct(+n);function d(p){var y,x,O,w=(p=JS(p)).length,S,E=!1,T,A=new Array(w),M=new Array(w);for(l==null&&(c=s(T=f())),y=0;y<=w;++y){if(!(y<w&&i(S=p[y],y,p))===E)if(E=!E)x=y,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),O=y-1;O>=x;--O)c.point(A[O],M[O]);c.lineEnd(),c.areaEnd()}E&&(A[y]=+e(S,y,p),M[y]=+t(S,y,p),c.point(r?+r(S,y,p):A[y],n?+n(S,y,p):M[y]))}if(T)return c=null,T+""||null}function m(){return HI().defined(i).curve(s).context(l)}return d.x=function(p){return arguments.length?(e=typeof p=="function"?p:ct(+p),r=null,d):e},d.x0=function(p){return arguments.length?(e=typeof p=="function"?p:ct(+p),d):e},d.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:ct(+p),d):r},d.y=function(p){return arguments.length?(t=typeof p=="function"?p:ct(+p),n=null,d):t},d.y0=function(p){return arguments.length?(t=typeof p=="function"?p:ct(+p),d):t},d.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:ct(+p),d):n},d.lineX0=d.lineY0=function(){return m().x(e).y(t)},d.lineY1=function(){return m().x(e).y(n)},d.lineX1=function(){return m().x(r).y(t)},d.defined=function(p){return arguments.length?(i=typeof p=="function"?p:ct(!!p),d):i},d.curve=function(p){return arguments.length?(s=p,l!=null&&(c=s(l)),d):s},d.context=function(p){return arguments.length?(p==null?l=c=null:c=s(l=p),d):l},d}class FI{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 vK(e){return new FI(e,!0)}function gK(e){return new FI(e,!1)}const eO={draw(e,t){const n=kr(t/wh);e.moveTo(n,0),e.arc(0,0,n,0,Kp)}},yK={draw(e,t){const n=kr(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},GI=kr(1/3),bK=GI*2,xK={draw(e,t){const n=kr(t/bK),r=n*GI;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},wK={draw(e,t){const n=kr(t),r=-n/2;e.rect(r,r,n,n)}},SK=.8908130915292852,VI=xh(wh/10)/xh(7*wh/10),OK=xh(Kp/10)*VI,_K=-II(Kp/10)*VI,EK={draw(e,t){const n=kr(t*SK),r=OK*n,i=_K*n;e.moveTo(0,-n),e.lineTo(r,i);for(let l=1;l<5;++l){const s=Kp*l/5,c=II(s),f=xh(s);e.lineTo(f*n,-c*n),e.lineTo(c*r-f*i,f*r+c*i)}e.closePath()}},Sb=kr(3),AK={draw(e,t){const n=-kr(t/(Sb*3));e.moveTo(0,n*2),e.lineTo(-Sb*n,-n),e.lineTo(Sb*n,-n),e.closePath()}},ir=-.5,or=kr(3)/2,Uw=1/kr(12),TK=(Uw/2+1)*3,jK={draw(e,t){const n=kr(t/TK),r=n/2,i=n*Uw,l=r,s=n*Uw+n,c=-l,f=s;e.moveTo(r,i),e.lineTo(l,s),e.lineTo(c,f),e.lineTo(ir*r-or*i,or*r+ir*i),e.lineTo(ir*l-or*s,or*l+ir*s),e.lineTo(ir*c-or*f,or*c+ir*f),e.lineTo(ir*r+or*i,ir*i-or*r),e.lineTo(ir*l+or*s,ir*s-or*l),e.lineTo(ir*c+or*f,ir*f-or*c),e.closePath()}};function CK(e,t){let n=null,r=ZS(i);e=typeof e=="function"?e:ct(e||eO),t=typeof t=="function"?t:ct(t===void 0?64:+t);function i(){let l;if(n||(n=l=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),l)return n=null,l+""||null}return i.type=function(l){return arguments.length?(e=typeof l=="function"?l:ct(l),i):e},i.size=function(l){return arguments.length?(t=typeof l=="function"?l:ct(+l),i):t},i.context=function(l){return arguments.length?(n=l??null,i):n},i}function Sh(){}function Oh(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 YI(e){this._context=e}YI.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:Oh(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:Oh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function MK(e){return new YI(e)}function WI(e){this._context=e}WI.prototype={areaStart:Sh,areaEnd:Sh,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:Oh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function NK(e){return new WI(e)}function KI(e){this._context=e}KI.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:Oh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function RK(e){return new KI(e)}function XI(e){this._context=e}XI.prototype={areaStart:Sh,areaEnd:Sh,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 PK(e){return new XI(e)}function bM(e){return e<0?-1:1}function xM(e,t,n){var r=e._x1-e._x0,i=t-e._x1,l=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),c=(l*i+s*r)/(r+i);return(bM(l)+bM(s))*Math.min(Math.abs(l),Math.abs(s),.5*Math.abs(c))||0}function wM(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Ob(e,t,n){var r=e._x0,i=e._y0,l=e._x1,s=e._y1,c=(l-r)/3;e._context.bezierCurveTo(r+c,i+c*t,l-c,s-c*n,l,s)}function _h(e){this._context=e}_h.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ob(this,this._t0,wM(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,Ob(this,wM(this,n=xM(this,e,t)),n);break;default:Ob(this,this._t0,n=xM(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function QI(e){this._context=new ZI(e)}(QI.prototype=Object.create(_h.prototype)).point=function(e,t){_h.prototype.point.call(this,t,e)};function ZI(e){this._context=e}ZI.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,i,l){this._context.bezierCurveTo(t,e,r,n,l,i)}};function DK(e){return new _h(e)}function kK(e){return new QI(e)}function JI(e){this._context=e}JI.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=SM(e),i=SM(t),l=0,s=1;s<n;++l,++s)this._context.bezierCurveTo(r[0][l],i[0][l],r[1][l],i[1][l],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 SM(e){var t,n=e.length-1,r,i=new Array(n),l=new Array(n),s=new Array(n);for(i[0]=0,l[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,l[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,l[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/l[t-1],l[t]-=r,s[t]-=r*s[t-1];for(i[n-1]=s[n-1]/l[n-1],t=n-2;t>=0;--t)i[t]=(s[t]-i[t+1])/l[t];for(l[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)l[t]=2*e[t+1]-i[t+1];return[i,l]}function $K(e){return new JI(e)}function Qp(e,t){this._context=e,this._t=t}Qp.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 LK(e){return new Qp(e,.5)}function IK(e){return new Qp(e,0)}function zK(e){return new Qp(e,1)}function Kl(e,t){if((s=e.length)>1)for(var n=1,r,i,l=e[t[0]],s,c=l.length;n<s;++n)for(i=l,l=e[t[n]],r=0;r<c;++r)l[r][1]+=l[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Hw(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function BK(e,t){return e[t]}function qK(e){const t=[];return t.key=e,t}function UK(){var e=ct([]),t=Hw,n=Kl,r=BK;function i(l){var s=Array.from(e.apply(this,arguments),qK),c,f=s.length,d=-1,m;for(const p of l)for(c=0,++d;c<f;++c)(s[c][d]=[0,+r(p,s[c].key,d,l)]).data=p;for(c=0,m=JS(t(s));c<f;++c)s[m[c]].index=c;return n(s,m),s}return i.keys=function(l){return arguments.length?(e=typeof l=="function"?l:ct(Array.from(l)),i):e},i.value=function(l){return arguments.length?(r=typeof l=="function"?l:ct(+l),i):r},i.order=function(l){return arguments.length?(t=l==null?Hw:typeof l=="function"?l:ct(Array.from(l)),i):t},i.offset=function(l){return arguments.length?(n=l??Kl,i):n},i}function HK(e,t){if((r=e.length)>0){for(var n,r,i=0,l=e[0].length,s;i<l;++i){for(s=n=0;n<r;++n)s+=e[n][i][1]||0;if(s)for(n=0;n<r;++n)e[n][i][1]/=s}Kl(e,t)}}function FK(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,l=r.length;n<l;++n){for(var s=0,c=0;s<i;++s)c+=e[s][n][1]||0;r[n][1]+=r[n][0]=-c/2}Kl(e,t)}}function GK(e,t){if(!(!((s=e.length)>0)||!((l=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,l,s;r<l;++r){for(var c=0,f=0,d=0;c<s;++c){for(var m=e[t[c]],p=m[r][1]||0,y=m[r-1][1]||0,x=(p-y)/2,O=0;O<c;++O){var w=e[t[O]],S=w[r][1]||0,E=w[r-1][1]||0;x+=S-E}f+=p,d+=x*p}i[r-1][1]+=i[r-1][0]=n,f&&(n-=d/f)}i[r-1][1]+=i[r-1][0]=n,Kl(e,t)}}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)}var VK=["type","size","sizeType"];function Fw(){return Fw=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},Fw.apply(this,arguments)}function OM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _M(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OM(Object(n),!0).forEach(function(r){YK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YK(e,t,n){return t=WK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WK(e){var t=KK(e,"string");return sc(t)=="symbol"?t:t+""}function KK(e,t){if(sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XK(e,t){if(e==null)return{};var n=QK(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function QK(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 e3={symbolCircle:eO,symbolCross:yK,symbolDiamond:xK,symbolSquare:wK,symbolStar:EK,symbolTriangle:AK,symbolWye:jK},ZK=Math.PI/180,JK=function(t){var n="symbol".concat(Wp(t));return e3[n]||eO},eX=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 i=18*ZK;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),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}},tX=function(t,n){e3["symbol".concat(Wp(t))]=n},tO=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,l=i===void 0?64:i,s=t.sizeType,c=s===void 0?"area":s,f=XK(t,VK),d=_M(_M({},f),{},{type:r,size:l,sizeType:c}),m=function(){var S=JK(r),E=CK().type(S).size(eX(l,c,r));return E()},p=d.className,y=d.cx,x=d.cy,O=qe(d,!0);return y===+y&&x===+x&&l===+l?L.createElement("path",Fw({},O,{className:Ue("recharts-symbols",p),transform:"translate(".concat(y,", ").concat(x,")"),d:m()})):null};tO.registerSymbol=tX;function Xl(e){"@babel/helpers - typeof";return Xl=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},Xl(e)}function Gw(){return Gw=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},Gw.apply(this,arguments)}function EM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EM(Object(n),!0).forEach(function(r){uc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aX(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,n3(r.key),r)}}function iX(e,t,n){return t&&aX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oX(e,t,n){return t=Eh(t),lX(e,t3()?Reflect.construct(t,n||[],Eh(e).constructor):t.apply(e,n))}function lX(e,t){if(t&&(Xl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sX(e)}function sX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t3=function(){return!!e})()}function Eh(e){return Eh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Eh(e)}function uX(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&&Vw(e,t)}function Vw(e,t){return Vw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Vw(e,t)}function uc(e,t,n){return t=n3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n3(e){var t=cX(e,"string");return Xl(t)=="symbol"?t:t+""}function cX(e,t){if(Xl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var lr=32,nO=(function(e){function t(){return rX(this,t),oX(this,t,arguments)}return uX(t,e),iX(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,l=lr/2,s=lr/6,c=lr/3,f=r.inactive?i:r.color;if(r.type==="plainline")return L.createElement("line",{strokeWidth:4,fill:"none",stroke:f,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:l,x2:lr,y2:l,className:"recharts-legend-icon"});if(r.type==="line")return L.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(l,"h").concat(c,`
301
- A`).concat(s,",").concat(s,",0,1,1,").concat(2*c,",").concat(l,`
302
- H`).concat(lr,"M").concat(2*c,",").concat(l,`
303
- A`).concat(s,",").concat(s,",0,1,1,").concat(c,",").concat(l),className:"recharts-legend-icon"});if(r.type==="rect")return L.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(lr/8,"h").concat(lr,"v").concat(lr*3/4,"h").concat(-lr,"z"),className:"recharts-legend-icon"});if(L.isValidElement(r.legendIcon)){var d=nX({},r);return delete d.legendIcon,L.cloneElement(r.legendIcon,d)}return L.createElement(tO,{fill:f,cx:l,cy:l,size:lr,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,l=i.payload,s=i.iconSize,c=i.layout,f=i.formatter,d=i.inactiveColor,m={x:0,y:0,width:lr,height:lr},p={display:c==="horizontal"?"inline-block":"block",marginRight:10},y={display:"inline-block",verticalAlign:"middle",marginRight:4};return l.map(function(x,O){var w=x.formatter||f,S=Ue(uc(uc({"recharts-legend-item":!0},"legend-item-".concat(O),!0),"inactive",x.inactive));if(x.type==="none")return null;var E=De(x.value)?null:x.value;Na(!De(x.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 T=x.inactive?d:x.color;return L.createElement("li",Gw({className:S,style:p,key:"legend-item-".concat(O)},bh(r.props,x,O)),L.createElement(Iw,{width:s,height:s,viewBox:m,style:y},r.renderIcon(x)),L.createElement("span",{className:"recharts-legend-item-text",style:{color:T}},w?w(E,x,O):E))})}},{key:"render",value:function(){var r=this.props,i=r.payload,l=r.layout,s=r.align;if(!i||!i.length)return null;var c={padding:0,margin:0,textAlign:l==="horizontal"?s:"left"};return L.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}])})(_.PureComponent);uc(nO,"displayName","Legend");uc(nO,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var _b,AM;function fX(){if(AM)return _b;AM=1;var e=Gp();function t(){this.__data__=new e,this.size=0}return _b=t,_b}var Eb,TM;function dX(){if(TM)return Eb;TM=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return Eb=e,Eb}var Ab,jM;function hX(){if(jM)return Ab;jM=1;function e(t){return this.__data__.get(t)}return Ab=e,Ab}var Tb,CM;function pX(){if(CM)return Tb;CM=1;function e(t){return this.__data__.has(t)}return Tb=e,Tb}var jb,MM;function mX(){if(MM)return jb;MM=1;var e=Gp(),t=VS(),n=YS(),r=200;function i(l,s){var c=this.__data__;if(c instanceof e){var f=c.__data__;if(!t||f.length<r-1)return f.push([l,s]),this.size=++c.size,this;c=this.__data__=new n(f)}return c.set(l,s),this.size=c.size,this}return jb=i,jb}var Cb,NM;function r3(){if(NM)return Cb;NM=1;var e=Gp(),t=fX(),n=dX(),r=hX(),i=pX(),l=mX();function s(c){var f=this.__data__=new e(c);this.size=f.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=i,s.prototype.set=l,Cb=s,Cb}var Mb,RM;function vX(){if(RM)return Mb;RM=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Mb=t,Mb}var Nb,PM;function gX(){if(PM)return Nb;PM=1;function e(t){return this.__data__.has(t)}return Nb=e,Nb}var Rb,DM;function a3(){if(DM)return Rb;DM=1;var e=YS(),t=vX(),n=gX();function r(i){var l=-1,s=i==null?0:i.length;for(this.__data__=new e;++l<s;)this.add(i[l])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Rb=r,Rb}var Pb,kM;function i3(){if(kM)return Pb;kM=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return Pb=e,Pb}var Db,$M;function o3(){if($M)return Db;$M=1;function e(t,n){return t.has(n)}return Db=e,Db}var kb,LM;function l3(){if(LM)return kb;LM=1;var e=a3(),t=i3(),n=o3(),r=1,i=2;function l(s,c,f,d,m,p){var y=f&r,x=s.length,O=c.length;if(x!=O&&!(y&&O>x))return!1;var w=p.get(s),S=p.get(c);if(w&&S)return w==c&&S==s;var E=-1,T=!0,A=f&i?new e:void 0;for(p.set(s,c),p.set(c,s);++E<x;){var M=s[E],j=c[E];if(d)var N=y?d(j,M,E,c,s,p):d(M,j,E,s,c,p);if(N!==void 0){if(N)continue;T=!1;break}if(A){if(!t(c,function(R,k){if(!n(A,k)&&(M===R||m(M,R,f,d,p)))return A.push(k)})){T=!1;break}}else if(!(M===j||m(M,j,f,d,p))){T=!1;break}}return p.delete(s),p.delete(c),T}return kb=l,kb}var $b,IM;function yX(){if(IM)return $b;IM=1;var e=aa(),t=e.Uint8Array;return $b=t,$b}var Lb,zM;function bX(){if(zM)return Lb;zM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,l){r[++n]=[l,i]}),r}return Lb=e,Lb}var Ib,BM;function rO(){if(BM)return Ib;BM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return Ib=e,Ib}var zb,qM;function xX(){if(qM)return zb;qM=1;var e=nf(),t=yX(),n=GS(),r=l3(),i=bX(),l=rO(),s=1,c=2,f="[object Boolean]",d="[object Date]",m="[object Error]",p="[object Map]",y="[object Number]",x="[object RegExp]",O="[object Set]",w="[object String]",S="[object Symbol]",E="[object ArrayBuffer]",T="[object DataView]",A=e?e.prototype:void 0,M=A?A.valueOf:void 0;function j(N,R,k,I,V,z,B){switch(k){case T:if(N.byteLength!=R.byteLength||N.byteOffset!=R.byteOffset)return!1;N=N.buffer,R=R.buffer;case E:return!(N.byteLength!=R.byteLength||!z(new t(N),new t(R)));case f:case d:case y:return n(+N,+R);case m:return N.name==R.name&&N.message==R.message;case x:case w:return N==R+"";case p:var G=i;case O:var K=I&s;if(G||(G=l),N.size!=R.size&&!K)return!1;var X=B.get(N);if(X)return X==R;I|=c,B.set(N,R);var D=r(G(N),G(R),I,V,z,B);return B.delete(N),D;case S:if(M)return M.call(N)==M.call(R)}return!1}return zb=j,zb}var Bb,UM;function s3(){if(UM)return Bb;UM=1;function e(t,n){for(var r=-1,i=n.length,l=t.length;++r<i;)t[l+r]=n[r];return t}return Bb=e,Bb}var qb,HM;function wX(){if(HM)return qb;HM=1;var e=s3(),t=Rn();function n(r,i,l){var s=i(r);return t(r)?s:e(s,l(r))}return qb=n,qb}var Ub,FM;function SX(){if(FM)return Ub;FM=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,l=0,s=[];++r<i;){var c=t[r];n(c,r,t)&&(s[l++]=c)}return s}return Ub=e,Ub}var Hb,GM;function OX(){if(GM)return Hb;GM=1;function e(){return[]}return Hb=e,Hb}var Fb,VM;function _X(){if(VM)return Fb;VM=1;var e=SX(),t=OX(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,l=i?function(s){return s==null?[]:(s=Object(s),e(i(s),function(c){return r.call(s,c)}))}:t;return Fb=l,Fb}var Gb,YM;function EX(){if(YM)return Gb;YM=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return Gb=e,Gb}var Vb,WM;function AX(){if(WM)return Vb;WM=1;var e=qa(),t=Ua(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return Vb=r,Vb}var Yb,KM;function aO(){if(KM)return Yb;KM=1;var e=AX(),t=Ua(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,l=e((function(){return arguments})())?e:function(s){return t(s)&&r.call(s,"callee")&&!i.call(s,"callee")};return Yb=l,Yb}var Vu={exports:{}},Wb,XM;function TX(){if(XM)return Wb;XM=1;function e(){return!1}return Wb=e,Wb}Vu.exports;var QM;function u3(){return QM||(QM=1,(function(e,t){var n=aa(),r=TX(),i=t&&!t.nodeType&&t,l=i&&!0&&e&&!e.nodeType&&e,s=l&&l.exports===i,c=s?n.Buffer:void 0,f=c?c.isBuffer:void 0,d=f||r;e.exports=d})(Vu,Vu.exports)),Vu.exports}var Kb,ZM;function iO(){if(ZM)return Kb;ZM=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var l=typeof r;return i=i??e,!!i&&(l=="number"||l!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return Kb=n,Kb}var Xb,JM;function oO(){if(JM)return Xb;JM=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Xb=t,Xb}var Qb,e2;function jX(){if(e2)return Qb;e2=1;var e=qa(),t=oO(),n=Ua(),r="[object Arguments]",i="[object Array]",l="[object Boolean]",s="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",m="[object Number]",p="[object Object]",y="[object RegExp]",x="[object Set]",O="[object String]",w="[object WeakMap]",S="[object ArrayBuffer]",E="[object DataView]",T="[object Float32Array]",A="[object Float64Array]",M="[object Int8Array]",j="[object Int16Array]",N="[object Int32Array]",R="[object Uint8Array]",k="[object Uint8ClampedArray]",I="[object Uint16Array]",V="[object Uint32Array]",z={};z[T]=z[A]=z[M]=z[j]=z[N]=z[R]=z[k]=z[I]=z[V]=!0,z[r]=z[i]=z[S]=z[l]=z[E]=z[s]=z[c]=z[f]=z[d]=z[m]=z[p]=z[y]=z[x]=z[O]=z[w]=!1;function B(G){return n(G)&&t(G.length)&&!!z[e(G)]}return Qb=B,Qb}var Zb,t2;function c3(){if(t2)return Zb;t2=1;function e(t){return function(n){return t(n)}}return Zb=e,Zb}var Yu={exports:{}};Yu.exports;var n2;function CX(){return n2||(n2=1,(function(e,t){var n=MI(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,l=i&&i.exports===r,s=l&&n.process,c=(function(){try{var f=i&&i.require&&i.require("util").types;return f||s&&s.binding&&s.binding("util")}catch{}})();e.exports=c})(Yu,Yu.exports)),Yu.exports}var Jb,r2;function f3(){if(r2)return Jb;r2=1;var e=jX(),t=c3(),n=CX(),r=n&&n.isTypedArray,i=r?t(r):e;return Jb=i,Jb}var e0,a2;function MX(){if(a2)return e0;a2=1;var e=EX(),t=aO(),n=Rn(),r=u3(),i=iO(),l=f3(),s=Object.prototype,c=s.hasOwnProperty;function f(d,m){var p=n(d),y=!p&&t(d),x=!p&&!y&&r(d),O=!p&&!y&&!x&&l(d),w=p||y||x||O,S=w?e(d.length,String):[],E=S.length;for(var T in d)(m||c.call(d,T))&&!(w&&(T=="length"||x&&(T=="offset"||T=="parent")||O&&(T=="buffer"||T=="byteLength"||T=="byteOffset")||i(T,E)))&&S.push(T);return S}return e0=f,e0}var t0,i2;function NX(){if(i2)return t0;i2=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return t0=t,t0}var n0,o2;function d3(){if(o2)return n0;o2=1;function e(t,n){return function(r){return t(n(r))}}return n0=e,n0}var r0,l2;function RX(){if(l2)return r0;l2=1;var e=d3(),t=e(Object.keys,Object);return r0=t,r0}var a0,s2;function PX(){if(s2)return a0;s2=1;var e=NX(),t=RX(),n=Object.prototype,r=n.hasOwnProperty;function i(l){if(!e(l))return t(l);var s=[];for(var c in Object(l))r.call(l,c)&&c!="constructor"&&s.push(c);return s}return a0=i,a0}var i0,u2;function of(){if(u2)return i0;u2=1;var e=FS(),t=oO();function n(r){return r!=null&&t(r.length)&&!e(r)}return i0=n,i0}var o0,c2;function Zp(){if(c2)return o0;c2=1;var e=MX(),t=PX(),n=of();function r(i){return n(i)?e(i):t(i)}return o0=r,o0}var l0,f2;function DX(){if(f2)return l0;f2=1;var e=wX(),t=_X(),n=Zp();function r(i){return e(i,n,t)}return l0=r,l0}var s0,d2;function kX(){if(d2)return s0;d2=1;var e=DX(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(l,s,c,f,d,m){var p=c&t,y=e(l),x=y.length,O=e(s),w=O.length;if(x!=w&&!p)return!1;for(var S=x;S--;){var E=y[S];if(!(p?E in s:r.call(s,E)))return!1}var T=m.get(l),A=m.get(s);if(T&&A)return T==s&&A==l;var M=!0;m.set(l,s),m.set(s,l);for(var j=p;++S<x;){E=y[S];var N=l[E],R=s[E];if(f)var k=p?f(R,N,E,s,l,m):f(N,R,E,l,s,m);if(!(k===void 0?N===R||d(N,R,c,f,m):k)){M=!1;break}j||(j=E=="constructor")}if(M&&!j){var I=l.constructor,V=s.constructor;I!=V&&"constructor"in l&&"constructor"in s&&!(typeof I=="function"&&I instanceof I&&typeof V=="function"&&V instanceof V)&&(M=!1)}return m.delete(l),m.delete(s),M}return s0=i,s0}var u0,h2;function $X(){if(h2)return u0;h2=1;var e=Ro(),t=aa(),n=e(t,"DataView");return u0=n,u0}var c0,p2;function LX(){if(p2)return c0;p2=1;var e=Ro(),t=aa(),n=e(t,"Promise");return c0=n,c0}var f0,m2;function h3(){if(m2)return f0;m2=1;var e=Ro(),t=aa(),n=e(t,"Set");return f0=n,f0}var d0,v2;function IX(){if(v2)return d0;v2=1;var e=Ro(),t=aa(),n=e(t,"WeakMap");return d0=n,d0}var h0,g2;function zX(){if(g2)return h0;g2=1;var e=$X(),t=VS(),n=LX(),r=h3(),i=IX(),l=qa(),s=NI(),c="[object Map]",f="[object Object]",d="[object Promise]",m="[object Set]",p="[object WeakMap]",y="[object DataView]",x=s(e),O=s(t),w=s(n),S=s(r),E=s(i),T=l;return(e&&T(new e(new ArrayBuffer(1)))!=y||t&&T(new t)!=c||n&&T(n.resolve())!=d||r&&T(new r)!=m||i&&T(new i)!=p)&&(T=function(A){var M=l(A),j=M==f?A.constructor:void 0,N=j?s(j):"";if(N)switch(N){case x:return y;case O:return c;case w:return d;case S:return m;case E:return p}return M}),h0=T,h0}var p0,y2;function BX(){if(y2)return p0;y2=1;var e=r3(),t=l3(),n=xX(),r=kX(),i=zX(),l=Rn(),s=u3(),c=f3(),f=1,d="[object Arguments]",m="[object Array]",p="[object Object]",y=Object.prototype,x=y.hasOwnProperty;function O(w,S,E,T,A,M){var j=l(w),N=l(S),R=j?m:i(w),k=N?m:i(S);R=R==d?p:R,k=k==d?p:k;var I=R==p,V=k==p,z=R==k;if(z&&s(w)){if(!s(S))return!1;j=!0,I=!1}if(z&&!I)return M||(M=new e),j||c(w)?t(w,S,E,T,A,M):n(w,S,R,E,T,A,M);if(!(E&f)){var B=I&&x.call(w,"__wrapped__"),G=V&&x.call(S,"__wrapped__");if(B||G){var K=B?w.value():w,X=G?S.value():S;return M||(M=new e),A(K,X,E,T,M)}}return z?(M||(M=new e),r(w,S,E,T,A,M)):!1}return p0=O,p0}var m0,b2;function lO(){if(b2)return m0;b2=1;var e=BX(),t=Ua();function n(r,i,l,s,c){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,l,s,n,c)}return m0=n,m0}var v0,x2;function qX(){if(x2)return v0;x2=1;var e=r3(),t=lO(),n=1,r=2;function i(l,s,c,f){var d=c.length,m=d,p=!f;if(l==null)return!m;for(l=Object(l);d--;){var y=c[d];if(p&&y[2]?y[1]!==l[y[0]]:!(y[0]in l))return!1}for(;++d<m;){y=c[d];var x=y[0],O=l[x],w=y[1];if(p&&y[2]){if(O===void 0&&!(x in l))return!1}else{var S=new e;if(f)var E=f(O,w,x,l,s,S);if(!(E===void 0?t(w,O,n|r,f,S):E))return!1}}return!0}return v0=i,v0}var g0,w2;function p3(){if(w2)return g0;w2=1;var e=Ri();function t(n){return n===n&&!e(n)}return g0=t,g0}var y0,S2;function UX(){if(S2)return y0;S2=1;var e=p3(),t=Zp();function n(r){for(var i=t(r),l=i.length;l--;){var s=i[l],c=r[s];i[l]=[s,c,e(c)]}return i}return y0=n,y0}var b0,O2;function m3(){if(O2)return b0;O2=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return b0=e,b0}var x0,_2;function HX(){if(_2)return x0;_2=1;var e=qX(),t=UX(),n=m3();function r(i){var l=t(i);return l.length==1&&l[0][2]?n(l[0][0],l[0][1]):function(s){return s===i||e(s,i,l)}}return x0=r,x0}var w0,E2;function FX(){if(E2)return w0;E2=1;function e(t,n){return t!=null&&n in Object(t)}return w0=e,w0}var S0,A2;function GX(){if(A2)return S0;A2=1;var e=DI(),t=aO(),n=Rn(),r=iO(),i=oO(),l=Yp();function s(c,f,d){f=e(f,c);for(var m=-1,p=f.length,y=!1;++m<p;){var x=l(f[m]);if(!(y=c!=null&&d(c,x)))break;c=c[x]}return y||++m!=p?y:(p=c==null?0:c.length,!!p&&i(p)&&r(x,p)&&(n(c)||t(c)))}return S0=s,S0}var O0,T2;function VX(){if(T2)return O0;T2=1;var e=FX(),t=GX();function n(r,i){return r!=null&&t(r,i,e)}return O0=n,O0}var _0,j2;function YX(){if(j2)return _0;j2=1;var e=lO(),t=kI(),n=VX(),r=HS(),i=p3(),l=m3(),s=Yp(),c=1,f=2;function d(m,p){return r(m)&&i(p)?l(s(m),p):function(y){var x=t(y,m);return x===void 0&&x===p?n(y,m):e(p,x,c|f)}}return _0=d,_0}var E0,C2;function Cs(){if(C2)return E0;C2=1;function e(t){return t}return E0=e,E0}var A0,M2;function WX(){if(M2)return A0;M2=1;function e(t){return function(n){return n==null?void 0:n[t]}}return A0=e,A0}var T0,N2;function KX(){if(N2)return T0;N2=1;var e=KS();function t(n){return function(r){return e(r,n)}}return T0=t,T0}var j0,R2;function XX(){if(R2)return j0;R2=1;var e=WX(),t=KX(),n=HS(),r=Yp();function i(l){return n(l)?e(r(l)):t(l)}return j0=i,j0}var C0,P2;function Pi(){if(P2)return C0;P2=1;var e=HX(),t=YX(),n=Cs(),r=Rn(),i=XX();function l(s){return typeof s=="function"?s:s==null?n:typeof s=="object"?r(s)?t(s[0],s[1]):e(s):i(s)}return C0=l,C0}var M0,D2;function v3(){if(D2)return M0;D2=1;function e(t,n,r,i){for(var l=t.length,s=r+(i?1:-1);i?s--:++s<l;)if(n(t[s],s,t))return s;return-1}return M0=e,M0}var N0,k2;function QX(){if(k2)return N0;k2=1;function e(t){return t!==t}return N0=e,N0}var R0,$2;function ZX(){if($2)return R0;$2=1;function e(t,n,r){for(var i=r-1,l=t.length;++i<l;)if(t[i]===n)return i;return-1}return R0=e,R0}var P0,L2;function JX(){if(L2)return P0;L2=1;var e=v3(),t=QX(),n=ZX();function r(i,l,s){return l===l?n(i,l,s):e(i,t,s)}return P0=r,P0}var D0,I2;function eQ(){if(I2)return D0;I2=1;var e=JX();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return D0=t,D0}var k0,z2;function tQ(){if(z2)return k0;z2=1;function e(t,n,r){for(var i=-1,l=t==null?0:t.length;++i<l;)if(r(n,t[i]))return!0;return!1}return k0=e,k0}var $0,B2;function nQ(){if(B2)return $0;B2=1;function e(){}return $0=e,$0}var L0,q2;function rQ(){if(q2)return L0;q2=1;var e=h3(),t=nQ(),n=rO(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(l){return new e(l)}:t;return L0=i,L0}var I0,U2;function aQ(){if(U2)return I0;U2=1;var e=a3(),t=eQ(),n=tQ(),r=o3(),i=rQ(),l=rO(),s=200;function c(f,d,m){var p=-1,y=t,x=f.length,O=!0,w=[],S=w;if(m)O=!1,y=n;else if(x>=s){var E=d?null:i(f);if(E)return l(E);O=!1,y=r,S=new e}else S=d?[]:w;e:for(;++p<x;){var T=f[p],A=d?d(T):T;if(T=m||T!==0?T:0,O&&A===A){for(var M=S.length;M--;)if(S[M]===A)continue e;d&&S.push(A),w.push(T)}else y(S,A,m)||(S!==w&&S.push(A),w.push(T))}return w}return I0=c,I0}var z0,H2;function iQ(){if(H2)return z0;H2=1;var e=Pi(),t=aQ();function n(r,i){return r&&r.length?t(r,e(i,2)):[]}return z0=n,z0}var oQ=iQ();const F2=lt(oQ);function g3(e,t,n){return t===!0?F2(e,n):De(t)?F2(e,t):e}function Ql(e){"@babel/helpers - typeof";return Ql=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},Ql(e)}var lQ=["ref"];function G2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ea(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G2(Object(n),!0).forEach(function(r){Jp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V2(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,b3(r.key),r)}}function uQ(e,t,n){return t&&V2(e.prototype,t),n&&V2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function cQ(e,t,n){return t=Ah(t),fQ(e,y3()?Reflect.construct(t,n||[],Ah(e).constructor):t.apply(e,n))}function fQ(e,t){if(t&&(Ql(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dQ(e)}function dQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(y3=function(){return!!e})()}function Ah(e){return Ah=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ah(e)}function hQ(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&&Yw(e,t)}function Yw(e,t){return Yw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Yw(e,t)}function Jp(e,t,n){return t=b3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b3(e){var t=pQ(e,"string");return Ql(t)=="symbol"?t:t+""}function pQ(e,t){if(Ql(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ql(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function mQ(e,t){if(e==null)return{};var n=vQ(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vQ(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 gQ(e){return e.value}function yQ(e,t){if(L.isValidElement(e))return L.cloneElement(e,t);if(typeof e=="function")return L.createElement(e,t);t.ref;var n=mQ(t,lQ);return L.createElement(nO,n)}var Y2=1,vo=(function(e){function t(){var n;sQ(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=cQ(this,t,[].concat(i)),Jp(n,"lastBoundingBox",{width:-1,height:-1}),n}return hQ(t,e),uQ(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,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Y2||Math.abs(i.height-this.lastBoundingBox.height)>Y2)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(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?Ea({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,l=i.layout,s=i.align,c=i.verticalAlign,f=i.margin,d=i.chartWidth,m=i.chartHeight,p,y;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(s==="center"&&l==="vertical"){var x=this.getBBoxSnapshot();p={left:((d||0)-x.width)/2}}else p=s==="right"?{right:f&&f.right||0}:{left:f&&f.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(c==="middle"){var O=this.getBBoxSnapshot();y={top:((m||0)-O.height)/2}}else y=c==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return Ea(Ea({},p),y)}},{key:"render",value:function(){var r=this,i=this.props,l=i.content,s=i.width,c=i.height,f=i.wrapperStyle,d=i.payloadUniqBy,m=i.payload,p=Ea(Ea({position:"absolute",width:s||"auto",height:c||"auto"},this.getDefaultPosition(f)),f);return L.createElement("div",{className:"recharts-legend-wrapper",style:p,ref:function(x){r.wrapperNode=x}},yQ(l,Ea(Ea({},this.props),{},{payload:g3(m,d,gQ)})))}}],[{key:"getWithHeight",value:function(r,i){var l=Ea(Ea({},this.defaultProps),r.props),s=l.layout;return s==="vertical"&&ve(r.props.height)?{height:r.props.height}:s==="horizontal"?{width:r.props.width||i}:null}}])})(_.PureComponent);Jp(vo,"displayName","Legend");Jp(vo,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var B0,W2;function bQ(){if(W2)return B0;W2=1;var e=nf(),t=aO(),n=Rn(),r=e?e.isConcatSpreadable:void 0;function i(l){return n(l)||t(l)||!!(r&&l&&l[r])}return B0=i,B0}var q0,K2;function x3(){if(K2)return q0;K2=1;var e=s3(),t=bQ();function n(r,i,l,s,c){var f=-1,d=r.length;for(l||(l=t),c||(c=[]);++f<d;){var m=r[f];i>0&&l(m)?i>1?n(m,i-1,l,s,c):e(c,m):s||(c[c.length]=m)}return c}return q0=n,q0}var U0,X2;function xQ(){if(X2)return U0;X2=1;function e(t){return function(n,r,i){for(var l=-1,s=Object(n),c=i(n),f=c.length;f--;){var d=c[t?f:++l];if(r(s[d],d,s)===!1)break}return n}}return U0=e,U0}var H0,Q2;function wQ(){if(Q2)return H0;Q2=1;var e=xQ(),t=e();return H0=t,H0}var F0,Z2;function w3(){if(Z2)return F0;Z2=1;var e=wQ(),t=Zp();function n(r,i){return r&&e(r,i,t)}return F0=n,F0}var G0,J2;function SQ(){if(J2)return G0;J2=1;var e=of();function t(n,r){return function(i,l){if(i==null)return i;if(!e(i))return n(i,l);for(var s=i.length,c=r?s:-1,f=Object(i);(r?c--:++c<s)&&l(f[c],c,f)!==!1;);return i}}return G0=t,G0}var V0,eN;function sO(){if(eN)return V0;eN=1;var e=w3(),t=SQ(),n=t(e);return V0=n,V0}var Y0,tN;function S3(){if(tN)return Y0;tN=1;var e=sO(),t=of();function n(r,i){var l=-1,s=t(r)?Array(r.length):[];return e(r,function(c,f,d){s[++l]=i(c,f,d)}),s}return Y0=n,Y0}var W0,nN;function OQ(){if(nN)return W0;nN=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return W0=e,W0}var K0,rN;function _Q(){if(rN)return K0;rN=1;var e=Ts();function t(n,r){if(n!==r){var i=n!==void 0,l=n===null,s=n===n,c=e(n),f=r!==void 0,d=r===null,m=r===r,p=e(r);if(!d&&!p&&!c&&n>r||c&&f&&m&&!d&&!p||l&&f&&m||!i&&m||!s)return 1;if(!l&&!c&&!p&&n<r||p&&i&&s&&!l&&!c||d&&i&&s||!f&&s||!m)return-1}return 0}return K0=t,K0}var X0,aN;function EQ(){if(aN)return X0;aN=1;var e=_Q();function t(n,r,i){for(var l=-1,s=n.criteria,c=r.criteria,f=s.length,d=i.length;++l<f;){var m=e(s[l],c[l]);if(m){if(l>=d)return m;var p=i[l];return m*(p=="desc"?-1:1)}}return n.index-r.index}return X0=t,X0}var Q0,iN;function AQ(){if(iN)return Q0;iN=1;var e=WS(),t=KS(),n=Pi(),r=S3(),i=OQ(),l=c3(),s=EQ(),c=Cs(),f=Rn();function d(m,p,y){p.length?p=e(p,function(w){return f(w)?function(S){return t(S,w.length===1?w[0]:w)}:w}):p=[c];var x=-1;p=e(p,l(n));var O=r(m,function(w,S,E){var T=e(p,function(A){return A(w)});return{criteria:T,index:++x,value:w}});return i(O,function(w,S){return s(w,S,y)})}return Q0=d,Q0}var Z0,oN;function TQ(){if(oN)return Z0;oN=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Z0=e,Z0}var J0,lN;function jQ(){if(lN)return J0;lN=1;var e=TQ(),t=Math.max;function n(r,i,l){return i=t(i===void 0?r.length-1:i,0),function(){for(var s=arguments,c=-1,f=t(s.length-i,0),d=Array(f);++c<f;)d[c]=s[i+c];c=-1;for(var m=Array(i+1);++c<i;)m[c]=s[c];return m[i]=l(d),e(r,this,m)}}return J0=n,J0}var ex,sN;function CQ(){if(sN)return ex;sN=1;function e(t){return function(){return t}}return ex=e,ex}var tx,uN;function O3(){if(uN)return tx;uN=1;var e=Ro(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return tx=t,tx}var nx,cN;function MQ(){if(cN)return nx;cN=1;var e=CQ(),t=O3(),n=Cs(),r=t?function(i,l){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(l),writable:!0})}:n;return nx=r,nx}var rx,fN;function NQ(){if(fN)return rx;fN=1;var e=800,t=16,n=Date.now;function r(i){var l=0,s=0;return function(){var c=n(),f=t-(c-s);if(s=c,f>0){if(++l>=e)return arguments[0]}else l=0;return i.apply(void 0,arguments)}}return rx=r,rx}var ax,dN;function RQ(){if(dN)return ax;dN=1;var e=MQ(),t=NQ(),n=t(e);return ax=n,ax}var ix,hN;function PQ(){if(hN)return ix;hN=1;var e=Cs(),t=jQ(),n=RQ();function r(i,l){return n(t(i,l,e),i+"")}return ix=r,ix}var ox,pN;function em(){if(pN)return ox;pN=1;var e=GS(),t=of(),n=iO(),r=Ri();function i(l,s,c){if(!r(c))return!1;var f=typeof s;return(f=="number"?t(c)&&n(s,c.length):f=="string"&&s in c)?e(c[s],l):!1}return ox=i,ox}var lx,mN;function DQ(){if(mN)return lx;mN=1;var e=x3(),t=AQ(),n=PQ(),r=em(),i=n(function(l,s){if(l==null)return[];var c=s.length;return c>1&&r(l,s[0],s[1])?s=[]:c>2&&r(s[0],s[1],s[2])&&(s=[s[0]]),t(l,e(s,1),[])});return lx=i,lx}var kQ=DQ();const uO=lt(kQ);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 Ww(){return Ww=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},Ww.apply(this,arguments)}function $Q(e,t){return BQ(e)||zQ(e,t)||IQ(e,t)||LQ()}function LQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
304
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IQ(e,t){if(e){if(typeof e=="string")return vN(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 vN(e,t)}}function vN(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 zQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function BQ(e){if(Array.isArray(e))return e}function gN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gN(Object(n),!0).forEach(function(r){qQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qQ(e,t,n){return t=UQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UQ(e){var t=HQ(e,"string");return cc(t)=="symbol"?t:t+""}function HQ(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)}function FQ(e){return Array.isArray(e)&&Ht(e[0])&&Ht(e[1])?e.join(" ~ "):e}var GQ=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,l=i===void 0?{}:i,s=t.itemStyle,c=s===void 0?{}:s,f=t.labelStyle,d=f===void 0?{}:f,m=t.payload,p=t.formatter,y=t.itemSorter,x=t.wrapperClassName,O=t.labelClassName,w=t.label,S=t.labelFormatter,E=t.accessibilityLayer,T=E===void 0?!1:E,A=function(){if(m&&m.length){var B={padding:0,margin:0},G=(y?uO(m,y):m).map(function(K,X){if(K.type==="none")return null;var D=sx({display:"block",paddingTop:4,paddingBottom:4,color:K.color||"#000"},c),U=K.formatter||p||FQ,Y=K.value,W=K.name,oe=Y,$=W;if(U&&oe!=null&&$!=null){var F=U(Y,W,K,X,m);if(Array.isArray(F)){var Z=$Q(F,2);oe=Z[0],$=Z[1]}else oe=F}return L.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(X),style:D},Ht($)?L.createElement("span",{className:"recharts-tooltip-item-name"},$):null,Ht($)?L.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,L.createElement("span",{className:"recharts-tooltip-item-value"},oe),L.createElement("span",{className:"recharts-tooltip-item-unit"},K.unit||""))});return L.createElement("ul",{className:"recharts-tooltip-item-list",style:B},G)}return null},M=sx({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},l),j=sx({margin:0},d),N=!Le(w),R=N?w:"",k=Ue("recharts-default-tooltip",x),I=Ue("recharts-tooltip-label",O);N&&S&&m!==void 0&&m!==null&&(R=S(w,m));var V=T?{role:"status","aria-live":"assertive"}:{};return L.createElement("div",Ww({className:k,style:M},V),L.createElement("p",{className:I,style:j},L.isValidElement(R)?R:"".concat(R)),A())};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 Ld(e,t,n){return t=VQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VQ(e){var t=YQ(e,"string");return fc(t)=="symbol"?t:t+""}function YQ(e,t){if(fc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ku="recharts-tooltip-wrapper",WQ={visibility:"hidden"};function KQ(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Ue(ku,Ld(Ld(Ld(Ld({},"".concat(ku,"-right"),ve(n)&&t&&ve(t.x)&&n>=t.x),"".concat(ku,"-left"),ve(n)&&t&&ve(t.x)&&n<t.x),"".concat(ku,"-bottom"),ve(r)&&t&&ve(t.y)&&r>=t.y),"".concat(ku,"-top"),ve(r)&&t&&ve(t.y)&&r<t.y))}function yN(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,l=e.position,s=e.reverseDirection,c=e.tooltipDimension,f=e.viewBox,d=e.viewBoxDimension;if(l&&ve(l[r]))return l[r];var m=n[r]-c-i,p=n[r]+i;if(t[r])return s[r]?m:p;if(s[r]){var y=m,x=f[r];return y<x?Math.max(p,f[r]):Math.max(m,f[r])}var O=p+c,w=f[r]+d;return O>w?Math.max(m,f[r]):Math.max(p,f[r])}function XQ(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 QQ(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,l=e.reverseDirection,s=e.tooltipBox,c=e.useTranslate3d,f=e.viewBox,d,m,p;return s.height>0&&s.width>0&&n?(m=yN({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:l,tooltipDimension:s.width,viewBox:f,viewBoxDimension:f.width}),p=yN({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:l,tooltipDimension:s.height,viewBox:f,viewBoxDimension:f.height}),d=XQ({translateX:m,translateY:p,useTranslate3d:c})):d=WQ,{cssProperties:d,cssClasses:KQ({translateX:m,translateY:p,coordinate:n})}}function Zl(e){"@babel/helpers - typeof";return Zl=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},Zl(e)}function bN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bN(Object(n),!0).forEach(function(r){Xw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JQ(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,E3(r.key),r)}}function eZ(e,t,n){return t&&JQ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tZ(e,t,n){return t=Th(t),nZ(e,_3()?Reflect.construct(t,n||[],Th(e).constructor):t.apply(e,n))}function nZ(e,t){if(t&&(Zl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rZ(e)}function rZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_3=function(){return!!e})()}function Th(e){return Th=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Th(e)}function aZ(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&&Kw(e,t)}function Kw(e,t){return Kw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Kw(e,t)}function Xw(e,t,n){return t=E3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E3(e){var t=iZ(e,"string");return Zl(t)=="symbol"?t:t+""}function iZ(e,t){if(Zl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wN=1,oZ=(function(e){function t(){var n;ZQ(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=tZ(this,t,[].concat(i)),Xw(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Xw(n,"handleKeyDown",function(s){if(s.key==="Escape"){var c,f,d,m;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(c=(f=n.props.coordinate)===null||f===void 0?void 0:f.x)!==null&&c!==void 0?c:0,y:(d=(m=n.props.coordinate)===null||m===void 0?void 0:m.y)!==null&&d!==void 0?d:0}})}}),n}return aZ(t,e),eZ(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>wN||Math.abs(r.height-this.state.lastBoundingBox.height)>wN)&&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,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,l=i.active,s=i.allowEscapeViewBox,c=i.animationDuration,f=i.animationEasing,d=i.children,m=i.coordinate,p=i.hasPayload,y=i.isAnimationActive,x=i.offset,O=i.position,w=i.reverseDirection,S=i.useTranslate3d,E=i.viewBox,T=i.wrapperStyle,A=QQ({allowEscapeViewBox:s,coordinate:m,offsetTopLeft:x,position:O,reverseDirection:w,tooltipBox:this.state.lastBoundingBox,useTranslate3d:S,viewBox:E}),M=A.cssClasses,j=A.cssProperties,N=xN(xN({transition:y&&l?"transform ".concat(c,"ms ").concat(f):void 0},j),{},{pointerEvents:"none",visibility:!this.state.dismissed&&l&&p?"visible":"hidden",position:"absolute",top:0,left:0},T);return L.createElement("div",{tabIndex:-1,className:M,style:N,ref:function(k){r.wrapperNode=k}},d)}}])})(_.PureComponent),lZ=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ms={isSsr:lZ()};function Jl(e){"@babel/helpers - typeof";return Jl=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},Jl(e)}function SN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?SN(Object(n),!0).forEach(function(r){cO(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 sZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uZ(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,T3(r.key),r)}}function cZ(e,t,n){return t&&uZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fZ(e,t,n){return t=jh(t),dZ(e,A3()?Reflect.construct(t,n||[],jh(e).constructor):t.apply(e,n))}function dZ(e,t){if(t&&(Jl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hZ(e)}function hZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(A3=function(){return!!e})()}function jh(e){return jh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jh(e)}function pZ(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&&Qw(e,t)}function Qw(e,t){return Qw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Qw(e,t)}function cO(e,t,n){return t=T3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T3(e){var t=mZ(e,"string");return Jl(t)=="symbol"?t:t+""}function mZ(e,t){if(Jl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function vZ(e){return e.dataKey}function gZ(e,t){return L.isValidElement(e)?L.cloneElement(e,t):typeof e=="function"?L.createElement(e,t):L.createElement(GQ,t)}var Fr=(function(e){function t(){return sZ(this,t),fZ(this,t,arguments)}return pZ(t,e),cZ(t,[{key:"render",value:function(){var r=this,i=this.props,l=i.active,s=i.allowEscapeViewBox,c=i.animationDuration,f=i.animationEasing,d=i.content,m=i.coordinate,p=i.filterNull,y=i.isAnimationActive,x=i.offset,O=i.payload,w=i.payloadUniqBy,S=i.position,E=i.reverseDirection,T=i.useTranslate3d,A=i.viewBox,M=i.wrapperStyle,j=O??[];p&&j.length&&(j=g3(O.filter(function(R){return R.value!=null&&(R.hide!==!0||r.props.includeHidden)}),w,vZ));var N=j.length>0;return L.createElement(oZ,{allowEscapeViewBox:s,animationDuration:c,animationEasing:f,isAnimationActive:y,active:l,coordinate:m,hasPayload:N,offset:x,position:S,reverseDirection:E,useTranslate3d:T,viewBox:A,wrapperStyle:M},gZ(d,ON(ON({},this.props),{},{payload:j})))}}])})(_.PureComponent);cO(Fr,"displayName","Tooltip");cO(Fr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ms.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 ux,_N;function yZ(){if(_N)return ux;_N=1;var e=aa(),t=function(){return e.Date.now()};return ux=t,ux}var cx,EN;function bZ(){if(EN)return cx;EN=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return cx=t,cx}var fx,AN;function xZ(){if(AN)return fx;AN=1;var e=bZ(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return fx=n,fx}var dx,TN;function j3(){if(TN)return dx;TN=1;var e=xZ(),t=Ri(),n=Ts(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;function f(d){if(typeof d=="number")return d;if(n(d))return r;if(t(d)){var m=typeof d.valueOf=="function"?d.valueOf():d;d=t(m)?m+"":m}if(typeof d!="string")return d===0?d:+d;d=e(d);var p=l.test(d);return p||s.test(d)?c(d.slice(2),p?2:8):i.test(d)?r:+d}return dx=f,dx}var hx,jN;function wZ(){if(jN)return hx;jN=1;var e=Ri(),t=yZ(),n=j3(),r="Expected a function",i=Math.max,l=Math.min;function s(c,f,d){var m,p,y,x,O,w,S=0,E=!1,T=!1,A=!0;if(typeof c!="function")throw new TypeError(r);f=n(f)||0,e(d)&&(E=!!d.leading,T="maxWait"in d,y=T?i(n(d.maxWait)||0,f):y,A="trailing"in d?!!d.trailing:A);function M(G){var K=m,X=p;return m=p=void 0,S=G,x=c.apply(X,K),x}function j(G){return S=G,O=setTimeout(k,f),E?M(G):x}function N(G){var K=G-w,X=G-S,D=f-K;return T?l(D,y-X):D}function R(G){var K=G-w,X=G-S;return w===void 0||K>=f||K<0||T&&X>=y}function k(){var G=t();if(R(G))return I(G);O=setTimeout(k,N(G))}function I(G){return O=void 0,A&&m?M(G):(m=p=void 0,x)}function V(){O!==void 0&&clearTimeout(O),S=0,m=w=p=O=void 0}function z(){return O===void 0?x:I(t())}function B(){var G=t(),K=R(G);if(m=arguments,p=this,w=G,K){if(O===void 0)return j(w);if(T)return clearTimeout(O),O=setTimeout(k,f),M(w)}return O===void 0&&(O=setTimeout(k,f)),x}return B.cancel=V,B.flush=z,B}return hx=s,hx}var px,CN;function SZ(){if(CN)return px;CN=1;var e=wZ(),t=Ri(),n="Expected a function";function r(i,l,s){var c=!0,f=!0;if(typeof i!="function")throw new TypeError(n);return t(s)&&(c="leading"in s?!!s.leading:c,f="trailing"in s?!!s.trailing:f),e(i,l,{leading:c,maxWait:l,trailing:f})}return px=r,px}var OZ=SZ();const C3=lt(OZ);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 MN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Id(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MN(Object(n),!0).forEach(function(r){_Z(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _Z(e,t,n){return t=EZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EZ(e){var t=AZ(e,"string");return dc(t)=="symbol"?t:t+""}function AZ(e,t){if(dc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TZ(e,t){return NZ(e)||MZ(e,t)||CZ(e,t)||jZ()}function jZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
305
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CZ(e,t){if(e){if(typeof e=="string")return NN(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 NN(e,t)}}function NN(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 MZ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function NZ(e){if(Array.isArray(e))return e}var RZ=_.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,l=e.width,s=l===void 0?"100%":l,c=e.height,f=c===void 0?"100%":c,d=e.minWidth,m=d===void 0?0:d,p=e.minHeight,y=e.maxHeight,x=e.children,O=e.debounce,w=O===void 0?0:O,S=e.id,E=e.className,T=e.onResize,A=e.style,M=A===void 0?{}:A,j=_.useRef(null),N=_.useRef();N.current=T,_.useImperativeHandle(t,function(){return Object.defineProperty(j.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),j.current},configurable:!0})});var R=_.useState({containerWidth:i.width,containerHeight:i.height}),k=TZ(R,2),I=k[0],V=k[1],z=_.useCallback(function(G,K){V(function(X){var D=Math.round(G),U=Math.round(K);return X.containerWidth===D&&X.containerHeight===U?X:{containerWidth:D,containerHeight:U}})},[]);_.useEffect(function(){var G=function(W){var oe,$=W[0].contentRect,F=$.width,Z=$.height;z(F,Z),(oe=N.current)===null||oe===void 0||oe.call(N,F,Z)};w>0&&(G=C3(G,w,{trailing:!0,leading:!1}));var K=new ResizeObserver(G),X=j.current.getBoundingClientRect(),D=X.width,U=X.height;return z(D,U),K.observe(j.current),function(){K.disconnect()}},[z,w]);var B=_.useMemo(function(){var G=I.containerWidth,K=I.containerHeight;if(G<0||K<0)return null;Na(co(s)||co(f),`The width(%s) and height(%s) are both fixed numbers,
306
- maybe you don't need to use a ResponsiveContainer.`,s,f),Na(!n||n>0,"The aspect(%s) must be greater than zero.",n);var X=co(s)?G:s,D=co(f)?K:f;n&&n>0&&(X?D=X/n:D&&(X=D*n),y&&D>y&&(D=y)),Na(X>0||D>0,`The width(%s) and height(%s) of chart should be greater than 0,
307
- please check the style of container, or the props width(%s) and height(%s),
308
- or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
309
- height and width.`,X,D,s,f,m,p,n);var U=!Array.isArray(x)&&Ma(x.type).endsWith("Chart");return L.Children.map(x,function(Y){return L.isValidElement(Y)?_.cloneElement(Y,Id({width:X,height:D},U?{style:Id({height:"100%",width:"100%",maxHeight:D,maxWidth:X},Y.props.style)}:{})):Y})},[n,x,f,y,p,m,I,s]);return L.createElement("div",{id:S?"".concat(S):void 0,className:Ue("recharts-responsive-container",E),style:Id(Id({},M),{},{width:s,height:f,minWidth:m,minHeight:p,maxHeight:y}),ref:j},B)}),M3=function(t){return null};M3.displayName="Cell";function hc(e){"@babel/helpers - typeof";return hc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hc(e)}function RN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zw(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){PZ(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 PZ(e,t,n){return t=DZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DZ(e){var t=kZ(e,"string");return hc(t)=="symbol"?t:t+""}function kZ(e,t){if(hc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cl={widthCache:{},cacheCount:0},$Z=2e3,LZ={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},PN="recharts_measurement_span";function IZ(e){var t=Zw({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Ku=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ms.isSsr)return{width:0,height:0};var r=IZ(n),i=JSON.stringify({text:t,copyStyle:r});if(Cl.widthCache[i])return Cl.widthCache[i];try{var l=document.getElementById(PN);l||(l=document.createElement("span"),l.setAttribute("id",PN),l.setAttribute("aria-hidden","true"),document.body.appendChild(l));var s=Zw(Zw({},LZ),r);Object.assign(l.style,s),l.textContent="".concat(t);var c=l.getBoundingClientRect(),f={width:c.width,height:c.height};return Cl.widthCache[i]=f,++Cl.cacheCount>$Z&&(Cl.cacheCount=0,Cl.widthCache={}),f}catch{return{width:0,height:0}}},zZ=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Ch(e,t){return HZ(e)||UZ(e,t)||qZ(e,t)||BZ()}function BZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
310
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qZ(e,t){if(e){if(typeof e=="string")return DN(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 DN(e,t)}}function DN(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 UZ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function HZ(e){if(Array.isArray(e))return e}function FZ(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,VZ(r.key),r)}}function GZ(e,t,n){return t&&kN(e.prototype,t),n&&kN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function VZ(e){var t=YZ(e,"string");return pc(t)=="symbol"?t:t+""}function YZ(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 $N=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,LN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,WZ=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,KZ=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,N3={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},XZ=Object.keys(N3),Dl="NaN";function QZ(e,t){return e*N3[t]}var zd=(function(){function e(t,n){FZ(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!WZ.test(n)&&(this.num=NaN,this.unit=""),XZ.includes(n)&&(this.num=QZ(t,n),this.unit="px")}return GZ(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,i=(r=KZ.exec(n))!==null&&r!==void 0?r:[],l=Ch(i,3),s=l[1],c=l[2];return new e(parseFloat(s),c??"")}}])})();function R3(e){if(e.includes(Dl))return Dl;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=$N.exec(t))!==null&&n!==void 0?n:[],i=Ch(r,4),l=i[1],s=i[2],c=i[3],f=zd.parse(l??""),d=zd.parse(c??""),m=s==="*"?f.multiply(d):f.divide(d);if(m.isNaN())return Dl;t=t.replace($N,m.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var p,y=(p=LN.exec(t))!==null&&p!==void 0?p:[],x=Ch(y,4),O=x[1],w=x[2],S=x[3],E=zd.parse(O??""),T=zd.parse(S??""),A=w==="+"?E.add(T):E.subtract(T);if(A.isNaN())return Dl;t=t.replace(LN,A.toString())}return t}var IN=/\(([^()]*)\)/;function ZZ(e){for(var t=e;t.includes("(");){var n=IN.exec(t),r=Ch(n,2),i=r[1];t=t.replace(IN,R3(i))}return t}function JZ(e){var t=e.replace(/\s+/g,"");return t=ZZ(t),t=R3(t),t}function eJ(e){try{return JZ(e)}catch{return Dl}}function mx(e){var t=eJ(e.slice(5,-1));return t===Dl?"":t}var tJ=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],nJ=["dx","dy","angle","className","breakAll"];function Jw(){return Jw=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},Jw.apply(this,arguments)}function zN(e,t){if(e==null)return{};var n=rJ(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rJ(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 BN(e,t){return lJ(e)||oJ(e,t)||iJ(e,t)||aJ()}function aJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
311
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iJ(e,t){if(e){if(typeof e=="string")return qN(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 qN(e,t)}}function qN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function lJ(e){if(Array.isArray(e))return e}var P3=/[ \f\n\r\t\v\u2028\u2029]+/,D3=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var l=[];Le(n)||(r?l=n.toString().split(""):l=n.toString().split(P3));var s=l.map(function(f){return{word:f,width:Ku(f,i).width}}),c=r?0:Ku(" ",i).width;return{wordsWithComputedWidth:s,spaceWidth:c}}catch{return null}},sJ=function(t,n,r,i,l){var s=t.maxLines,c=t.children,f=t.style,d=t.breakAll,m=ve(s),p=c,y=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return X.reduce(function(D,U){var Y=U.word,W=U.width,oe=D[D.length-1];if(oe&&(i==null||l||oe.width+W+r<Number(i)))oe.words.push(Y),oe.width+=W+r;else{var $={words:[Y],width:W};D.push($)}return D},[])},x=y(n),O=function(X){return X.reduce(function(D,U){return D.width>U.width?D:U})};if(!m)return x;for(var w="…",S=function(X){var D=p.slice(0,X),U=D3({breakAll:d,style:f,children:D+w}).wordsWithComputedWidth,Y=y(U),W=Y.length>s||O(Y).width>Number(i);return[W,Y]},E=0,T=p.length-1,A=0,M;E<=T&&A<=p.length-1;){var j=Math.floor((E+T)/2),N=j-1,R=S(N),k=BN(R,2),I=k[0],V=k[1],z=S(j),B=BN(z,1),G=B[0];if(!I&&!G&&(E=j+1),I&&G&&(T=j-1),!I&&G){M=V;break}A++}return M||x},UN=function(t){var n=Le(t)?[]:t.toString().split(P3);return[{words:n}]},uJ=function(t){var n=t.width,r=t.scaleToFit,i=t.children,l=t.style,s=t.breakAll,c=t.maxLines;if((n||r)&&!Ms.isSsr){var f,d,m=D3({breakAll:s,children:i,style:l});if(m){var p=m.wordsWithComputedWidth,y=m.spaceWidth;f=p,d=y}else return UN(i);return sJ({breakAll:s,children:i,maxLines:c,style:l},f,d,n,r)}return UN(i)},HN="#808080",Mh=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,l=i===void 0?0:i,s=t.lineHeight,c=s===void 0?"1em":s,f=t.capHeight,d=f===void 0?"0.71em":f,m=t.scaleToFit,p=m===void 0?!1:m,y=t.textAnchor,x=y===void 0?"start":y,O=t.verticalAnchor,w=O===void 0?"end":O,S=t.fill,E=S===void 0?HN:S,T=zN(t,tJ),A=_.useMemo(function(){return uJ({breakAll:T.breakAll,children:T.children,maxLines:T.maxLines,scaleToFit:p,style:T.style,width:T.width})},[T.breakAll,T.children,T.maxLines,p,T.style,T.width]),M=T.dx,j=T.dy,N=T.angle,R=T.className,k=T.breakAll,I=zN(T,nJ);if(!Ht(r)||!Ht(l))return null;var V=r+(ve(M)?M:0),z=l+(ve(j)?j:0),B;switch(w){case"start":B=mx("calc(".concat(d,")"));break;case"middle":B=mx("calc(".concat((A.length-1)/2," * -").concat(c," + (").concat(d," / 2))"));break;default:B=mx("calc(".concat(A.length-1," * -").concat(c,")"));break}var G=[];if(p){var K=A[0].width,X=T.width;G.push("scale(".concat((ve(X)?X/K:1)/K,")"))}return N&&G.push("rotate(".concat(N,", ").concat(V,", ").concat(z,")")),G.length&&(I.transform=G.join(" ")),L.createElement("text",Jw({},qe(I,!0),{x:V,y:z,className:Ue("recharts-text",R),textAnchor:x,fill:E.includes("url")?HN:E}),A.map(function(D,U){var Y=D.words.join(k?"":" ");return L.createElement("tspan",{x:V,dy:U===0?B:c,key:"".concat(Y,"-").concat(U)},Y)}))};function _i(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function cJ(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function fO(e){let t,n,r;e.length!==2?(t=_i,n=(c,f)=>_i(e(c),f),r=(c,f)=>e(c)-f):(t=e===_i||e===cJ?e:fJ,n=e,r=e);function i(c,f,d=0,m=c.length){if(d<m){if(t(f,f)!==0)return m;do{const p=d+m>>>1;n(c[p],f)<0?d=p+1:m=p}while(d<m)}return d}function l(c,f,d=0,m=c.length){if(d<m){if(t(f,f)!==0)return m;do{const p=d+m>>>1;n(c[p],f)<=0?d=p+1:m=p}while(d<m)}return d}function s(c,f,d=0,m=c.length){const p=i(c,f,d,m-1);return p>d&&r(c[p-1],f)>-r(c[p],f)?p-1:p}return{left:i,center:s,right:l}}function fJ(){return 0}function k3(e){return e===null?NaN:+e}function*dJ(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const hJ=fO(_i),lf=hJ.right;fO(k3).center;class FN extends Map{constructor(t,n=vJ){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(GN(this,t))}has(t){return super.has(GN(this,t))}set(t,n){return super.set(pJ(this,t),n)}delete(t){return super.delete(mJ(this,t))}}function GN({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function pJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function mJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function vJ(e){return e!==null&&typeof e=="object"?e.valueOf():e}function gJ(e=_i){if(e===_i)return $3;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 $3(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const yJ=Math.sqrt(50),bJ=Math.sqrt(10),xJ=Math.sqrt(2);function Nh(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),l=r/Math.pow(10,i),s=l>=yJ?10:l>=bJ?5:l>=xJ?2:1;let c,f,d;return i<0?(d=Math.pow(10,-i)/s,c=Math.round(e*d),f=Math.round(t*d),c/d<e&&++c,f/d>t&&--f,d=-d):(d=Math.pow(10,i)*s,c=Math.round(e/d),f=Math.round(t/d),c*d<e&&++c,f*d>t&&--f),f<c&&.5<=n&&n<2?Nh(e,t,n*2):[c,f,d]}function e1(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,l,s]=r?Nh(t,e,n):Nh(e,t,n);if(!(l>=i))return[];const c=l-i+1,f=new Array(c);if(r)if(s<0)for(let d=0;d<c;++d)f[d]=(l-d)/-s;else for(let d=0;d<c;++d)f[d]=(l-d)*s;else if(s<0)for(let d=0;d<c;++d)f[d]=(i+d)/-s;else for(let d=0;d<c;++d)f[d]=(i+d)*s;return f}function t1(e,t,n){return t=+t,e=+e,n=+n,Nh(e,t,n)[2]}function n1(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?t1(t,e,n):t1(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function VN(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 L3(e,t,n=0,r=1/0,i){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(i=i===void 0?$3:gJ(i);r>n;){if(r-n>600){const f=r-n+1,d=t-n+1,m=Math.log(f),p=.5*Math.exp(2*m/3),y=.5*Math.sqrt(m*p*(f-p)/f)*(d-f/2<0?-1:1),x=Math.max(n,Math.floor(t-d*p/f+y)),O=Math.min(r,Math.floor(t+(f-d)*p/f+y));L3(e,t,x,O,i)}const l=e[t];let s=n,c=r;for($u(e,n,t),i(e[r],l)>0&&$u(e,n,r);s<c;){for($u(e,s,c),++s,--c;i(e[s],l)<0;)++s;for(;i(e[c],l)>0;)--c}i(e[n],l)===0?$u(e,n,c):(++c,$u(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function $u(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function wJ(e,t,n){if(e=Float64Array.from(dJ(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return YN(e);if(t>=1)return VN(e);var r,i=(r-1)*t,l=Math.floor(i),s=VN(L3(e,l).subarray(0,l+1)),c=YN(e.subarray(l+1));return s+(c-s)*(i-l)}}function SJ(e,t,n=k3){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,i=(r-1)*t,l=Math.floor(i),s=+n(e[l],l,e),c=+n(e[l+1],l+1,e);return s+(c-s)*(i-l)}}function OJ(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,l=new Array(i);++r<i;)l[r]=e+r*n;return l}function vr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Ha(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 r1=Symbol("implicit");function dO(){var e=new FN,t=[],n=[],r=r1;function i(l){let s=e.get(l);if(s===void 0){if(r!==r1)return r;e.set(l,s=t.push(l)-1)}return n[s%n.length]}return i.domain=function(l){if(!arguments.length)return t.slice();t=[],e=new FN;for(const s of l)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(l){return arguments.length?(n=Array.from(l),i):n.slice()},i.unknown=function(l){return arguments.length?(r=l,i):r},i.copy=function(){return dO(t,n).unknown(r)},vr.apply(i,arguments),i}function mc(){var e=dO().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,l,s,c=!1,f=0,d=0,m=.5;delete e.unknown;function p(){var y=t().length,x=i<r,O=x?i:r,w=x?r:i;l=(w-O)/Math.max(1,y-f+d*2),c&&(l=Math.floor(l)),O+=(w-O-l*(y-f))*m,s=l*(1-f),c&&(O=Math.round(O),s=Math.round(s));var S=OJ(y).map(function(E){return O+l*E});return n(x?S.reverse():S)}return e.domain=function(y){return arguments.length?(t(y),p()):t()},e.range=function(y){return arguments.length?([r,i]=y,r=+r,i=+i,p()):[r,i]},e.rangeRound=function(y){return[r,i]=y,r=+r,i=+i,c=!0,p()},e.bandwidth=function(){return s},e.step=function(){return l},e.round=function(y){return arguments.length?(c=!!y,p()):c},e.padding=function(y){return arguments.length?(f=Math.min(1,d=+y),p()):f},e.paddingInner=function(y){return arguments.length?(f=Math.min(1,y),p()):f},e.paddingOuter=function(y){return arguments.length?(d=+y,p()):d},e.align=function(y){return arguments.length?(m=Math.max(0,Math.min(1,y)),p()):m},e.copy=function(){return mc(t(),[r,i]).round(c).paddingInner(f).paddingOuter(d).align(m)},vr.apply(p(),arguments)}function I3(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return I3(t())},e}function Xu(){return I3(mc.apply(null,arguments).paddingInner(1))}function hO(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function z3(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function sf(){}var vc=.7,Rh=1/vc,Hl="\\s*([+-]?\\d+)\\s*",gc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_J=/^#([0-9a-f]{3,8})$/,EJ=new RegExp(`^rgb\\(${Hl},${Hl},${Hl}\\)$`),AJ=new RegExp(`^rgb\\(${Xr},${Xr},${Xr}\\)$`),TJ=new RegExp(`^rgba\\(${Hl},${Hl},${Hl},${gc}\\)$`),jJ=new RegExp(`^rgba\\(${Xr},${Xr},${Xr},${gc}\\)$`),CJ=new RegExp(`^hsl\\(${gc},${Xr},${Xr}\\)$`),MJ=new RegExp(`^hsla\\(${gc},${Xr},${Xr},${gc}\\)$`),WN={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};hO(sf,yc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:KN,formatHex:KN,formatHex8:NJ,formatHsl:RJ,formatRgb:XN,toString:XN});function KN(){return this.rgb().formatHex()}function NJ(){return this.rgb().formatHex8()}function RJ(){return B3(this).formatHsl()}function XN(){return this.rgb().formatRgb()}function yc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=_J.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?QN(t):n===3?new Nn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Bd(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Bd(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=EJ.exec(e))?new Nn(t[1],t[2],t[3],1):(t=AJ.exec(e))?new Nn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=TJ.exec(e))?Bd(t[1],t[2],t[3],t[4]):(t=jJ.exec(e))?Bd(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=CJ.exec(e))?eR(t[1],t[2]/100,t[3]/100,1):(t=MJ.exec(e))?eR(t[1],t[2]/100,t[3]/100,t[4]):WN.hasOwnProperty(e)?QN(WN[e]):e==="transparent"?new Nn(NaN,NaN,NaN,0):null}function QN(e){return new Nn(e>>16&255,e>>8&255,e&255,1)}function Bd(e,t,n,r){return r<=0&&(e=t=n=NaN),new Nn(e,t,n,r)}function PJ(e){return e instanceof sf||(e=yc(e)),e?(e=e.rgb(),new Nn(e.r,e.g,e.b,e.opacity)):new Nn}function a1(e,t,n,r){return arguments.length===1?PJ(e):new Nn(e,t,n,r??1)}function Nn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}hO(Nn,a1,z3(sf,{brighter(e){return e=e==null?Rh:Math.pow(Rh,e),new Nn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?vc:Math.pow(vc,e),new Nn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Nn(go(this.r),go(this.g),go(this.b),Ph(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:ZN,formatHex:ZN,formatHex8:DJ,formatRgb:JN,toString:JN}));function ZN(){return`#${fo(this.r)}${fo(this.g)}${fo(this.b)}`}function DJ(){return`#${fo(this.r)}${fo(this.g)}${fo(this.b)}${fo((isNaN(this.opacity)?1:this.opacity)*255)}`}function JN(){const e=Ph(this.opacity);return`${e===1?"rgb(":"rgba("}${go(this.r)}, ${go(this.g)}, ${go(this.b)}${e===1?")":`, ${e})`}`}function Ph(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function go(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function fo(e){return e=go(e),(e<16?"0":"")+e.toString(16)}function eR(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Tr(e,t,n,r)}function B3(e){if(e instanceof Tr)return new Tr(e.h,e.s,e.l,e.opacity);if(e instanceof sf||(e=yc(e)),!e)return new Tr;if(e instanceof Tr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),l=Math.max(t,n,r),s=NaN,c=l-i,f=(l+i)/2;return c?(t===l?s=(n-r)/c+(n<r)*6:n===l?s=(r-t)/c+2:s=(t-n)/c+4,c/=f<.5?l+i:2-l-i,s*=60):c=f>0&&f<1?0:s,new Tr(s,c,f,e.opacity)}function kJ(e,t,n,r){return arguments.length===1?B3(e):new Tr(e,t,n,r??1)}function Tr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}hO(Tr,kJ,z3(sf,{brighter(e){return e=e==null?Rh:Math.pow(Rh,e),new Tr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?vc:Math.pow(vc,e),new Tr(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,i=2*n-r;return new Nn(vx(e>=240?e-240:e+120,i,r),vx(e,i,r),vx(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Tr(tR(this.h),qd(this.s),qd(this.l),Ph(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=Ph(this.opacity);return`${e===1?"hsl(":"hsla("}${tR(this.h)}, ${qd(this.s)*100}%, ${qd(this.l)*100}%${e===1?")":`, ${e})`}`}}));function tR(e){return e=(e||0)%360,e<0?e+360:e}function qd(e){return Math.max(0,Math.min(1,e||0))}function vx(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 pO=e=>()=>e;function $J(e,t){return function(n){return e+n*t}}function LJ(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 IJ(e){return(e=+e)==1?q3:function(t,n){return n-t?LJ(t,n,e):pO(isNaN(t)?n:t)}}function q3(e,t){var n=t-e;return n?$J(e,n):pO(isNaN(e)?t:e)}const nR=(function e(t){var n=IJ(t);function r(i,l){var s=n((i=a1(i)).r,(l=a1(l)).r),c=n(i.g,l.g),f=n(i.b,l.b),d=q3(i.opacity,l.opacity);return function(m){return i.r=s(m),i.g=c(m),i.b=f(m),i.opacity=d(m),i+""}}return r.gamma=e,r})(1);function zJ(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(l){for(i=0;i<n;++i)r[i]=e[i]*(1-l)+t[i]*l;return r}}function BJ(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function qJ(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),l=new Array(n),s;for(s=0;s<r;++s)i[s]=Ns(e[s],t[s]);for(;s<n;++s)l[s]=t[s];return function(c){for(s=0;s<r;++s)l[s]=i[s](c);return l}}function UJ(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Dh(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function HJ(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Ns(e[i],t[i]):r[i]=t[i];return function(l){for(i in n)r[i]=n[i](l);return r}}var i1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gx=new RegExp(i1.source,"g");function FJ(e){return function(){return e}}function GJ(e){return function(t){return e(t)+""}}function VJ(e,t){var n=i1.lastIndex=gx.lastIndex=0,r,i,l,s=-1,c=[],f=[];for(e=e+"",t=t+"";(r=i1.exec(e))&&(i=gx.exec(t));)(l=i.index)>n&&(l=t.slice(n,l),c[s]?c[s]+=l:c[++s]=l),(r=r[0])===(i=i[0])?c[s]?c[s]+=i:c[++s]=i:(c[++s]=null,f.push({i:s,x:Dh(r,i)})),n=gx.lastIndex;return n<t.length&&(l=t.slice(n),c[s]?c[s]+=l:c[++s]=l),c.length<2?f[0]?GJ(f[0].x):FJ(t):(t=f.length,function(d){for(var m=0,p;m<t;++m)c[(p=f[m]).i]=p.x(d);return c.join("")})}function Ns(e,t){var n=typeof t,r;return t==null||n==="boolean"?pO(t):(n==="number"?Dh:n==="string"?(r=yc(t))?(t=r,nR):VJ:t instanceof yc?nR:t instanceof Date?UJ:BJ(t)?zJ:Array.isArray(t)?qJ:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?HJ:Dh)(e,t)}function mO(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function YJ(e,t){t===void 0&&(t=e,e=Ns);for(var n=0,r=t.length-1,i=t[0],l=new Array(r<0?0:r);n<r;)l[n]=e(i,i=t[++n]);return function(s){var c=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return l[c](s-c)}}function WJ(e){return function(){return e}}function kh(e){return+e}var rR=[0,1];function gn(e){return e}function o1(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:WJ(isNaN(t)?NaN:.5)}function KJ(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function XJ(e,t,n){var r=e[0],i=e[1],l=t[0],s=t[1];return i<r?(r=o1(i,r),l=n(s,l)):(r=o1(r,i),l=n(l,s)),function(c){return l(r(c))}}function QJ(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),l=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=o1(e[s],e[s+1]),l[s]=n(t[s],t[s+1]);return function(c){var f=lf(e,c,1,r)-1;return l[f](i[f](c))}}function uf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function tm(){var e=rR,t=rR,n=Ns,r,i,l,s=gn,c,f,d;function m(){var y=Math.min(e.length,t.length);return s!==gn&&(s=KJ(e[0],e[y-1])),c=y>2?QJ:XJ,f=d=null,p}function p(y){return y==null||isNaN(y=+y)?l:(f||(f=c(e.map(r),t,n)))(r(s(y)))}return p.invert=function(y){return s(i((d||(d=c(t,e.map(r),Dh)))(y)))},p.domain=function(y){return arguments.length?(e=Array.from(y,kh),m()):e.slice()},p.range=function(y){return arguments.length?(t=Array.from(y),m()):t.slice()},p.rangeRound=function(y){return t=Array.from(y),n=mO,m()},p.clamp=function(y){return arguments.length?(s=y?!0:gn,m()):s!==gn},p.interpolate=function(y){return arguments.length?(n=y,m()):n},p.unknown=function(y){return arguments.length?(l=y,p):l},function(y,x){return r=y,i=x,m()}}function vO(){return tm()(gn,gn)}function ZJ(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function $h(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function es(e){return e=$h(Math.abs(e)),e?e[1]:NaN}function JJ(e,t){return function(n,r){for(var i=n.length,l=[],s=0,c=e[0],f=0;i>0&&c>0&&(f+c+1>r&&(c=Math.max(1,r-f)),l.push(n.substring(i-=c,i+c)),!((f+=c+1)>r));)c=e[s=(s+1)%e.length];return l.reverse().join(t)}}function eee(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var tee=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bc(e){if(!(t=tee.exec(e)))throw new Error("invalid format: "+e);var t;return new gO({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}bc.prototype=gO.prototype;function gO(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+""}gO.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 nee(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var U3;function ree(e,t){var n=$h(e,t);if(!n)return e+"";var r=n[0],i=n[1],l=i-(U3=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return l===s?r:l>s?r+new Array(l-s+1).join("0"):l>0?r.slice(0,l)+"."+r.slice(l):"0."+new Array(1-l).join("0")+$h(e,Math.max(0,t+l-1))[0]}function aR(e,t){var n=$h(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const iR={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:ZJ,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)=>aR(e*100,t),r:aR,s:ree,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function oR(e){return e}var lR=Array.prototype.map,sR=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function aee(e){var t=e.grouping===void 0||e.thousands===void 0?oR:JJ(lR.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",l=e.numerals===void 0?oR:eee(lR.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function d(p){p=bc(p);var y=p.fill,x=p.align,O=p.sign,w=p.symbol,S=p.zero,E=p.width,T=p.comma,A=p.precision,M=p.trim,j=p.type;j==="n"?(T=!0,j="g"):iR[j]||(A===void 0&&(A=12),M=!0,j="g"),(S||y==="0"&&x==="=")&&(S=!0,y="0",x="=");var N=w==="$"?n:w==="#"&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",R=w==="$"?r:/[%p]/.test(j)?s:"",k=iR[j],I=/[defgprs%]/.test(j);A=A===void 0?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,A)):Math.max(0,Math.min(20,A));function V(z){var B=N,G=R,K,X,D;if(j==="c")G=k(z)+G,z="";else{z=+z;var U=z<0||1/z<0;if(z=isNaN(z)?f:k(Math.abs(z),A),M&&(z=nee(z)),U&&+z==0&&O!=="+"&&(U=!1),B=(U?O==="("?O:c:O==="-"||O==="("?"":O)+B,G=(j==="s"?sR[8+U3/3]:"")+G+(U&&O==="("?")":""),I){for(K=-1,X=z.length;++K<X;)if(D=z.charCodeAt(K),48>D||D>57){G=(D===46?i+z.slice(K+1):z.slice(K))+G,z=z.slice(0,K);break}}}T&&!S&&(z=t(z,1/0));var Y=B.length+z.length+G.length,W=Y<E?new Array(E-Y+1).join(y):"";switch(T&&S&&(z=t(W+z,W.length?E-G.length:1/0),W=""),x){case"<":z=B+z+G+W;break;case"=":z=B+W+z+G;break;case"^":z=W.slice(0,Y=W.length>>1)+B+z+G+W.slice(Y);break;default:z=W+B+z+G;break}return l(z)}return V.toString=function(){return p+""},V}function m(p,y){var x=d((p=bc(p),p.type="f",p)),O=Math.max(-8,Math.min(8,Math.floor(es(y)/3)))*3,w=Math.pow(10,-O),S=sR[8+O/3];return function(E){return x(w*E)+S}}return{format:d,formatPrefix:m}}var Ud,yO,H3;iee({thousands:",",grouping:[3],currency:["$",""]});function iee(e){return Ud=aee(e),yO=Ud.format,H3=Ud.formatPrefix,Ud}function oee(e){return Math.max(0,-es(Math.abs(e)))}function lee(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(es(t)/3)))*3-es(Math.abs(e)))}function see(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,es(t)-es(e))+1}function F3(e,t,n,r){var i=n1(e,t,n),l;switch(r=bc(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(l=lee(i,s))&&(r.precision=l),H3(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(l=see(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=l-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(l=oee(i))&&(r.precision=l-(r.type==="%")*2);break}}return yO(r)}function Di(e){var t=e.domain;return e.ticks=function(n){var r=t();return e1(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return F3(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,l=r.length-1,s=r[i],c=r[l],f,d,m=10;for(c<s&&(d=s,s=c,c=d,d=i,i=l,l=d);m-- >0;){if(d=t1(s,c,n),d===f)return r[i]=s,r[l]=c,t(r);if(d>0)s=Math.floor(s/d)*d,c=Math.ceil(c/d)*d;else if(d<0)s=Math.ceil(s*d)/d,c=Math.floor(c*d)/d;else break;f=d}return e},e}function Lh(){var e=vO();return e.copy=function(){return uf(e,Lh())},vr.apply(e,arguments),Di(e)}function G3(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,kh),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return G3(e).unknown(t)},e=arguments.length?Array.from(e,kh):[0,1],Di(n)}function V3(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],l=e[r],s;return l<i&&(s=n,n=r,r=s,s=i,i=l,l=s),e[n]=t.floor(i),e[r]=t.ceil(l),e}function uR(e){return Math.log(e)}function cR(e){return Math.exp(e)}function uee(e){return-Math.log(-e)}function cee(e){return-Math.exp(-e)}function fee(e){return isFinite(e)?+("1e"+e):e<0?0:e}function dee(e){return e===10?fee:e===Math.E?Math.exp:t=>Math.pow(e,t)}function hee(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 fR(e){return(t,n)=>-e(-t,n)}function bO(e){const t=e(uR,cR),n=t.domain;let r=10,i,l;function s(){return i=hee(r),l=dee(r),n()[0]<0?(i=fR(i),l=fR(l),e(uee,cee)):e(uR,cR),t}return t.base=function(c){return arguments.length?(r=+c,s()):r},t.domain=function(c){return arguments.length?(n(c),s()):n()},t.ticks=c=>{const f=n();let d=f[0],m=f[f.length-1];const p=m<d;p&&([d,m]=[m,d]);let y=i(d),x=i(m),O,w;const S=c==null?10:+c;let E=[];if(!(r%1)&&x-y<S){if(y=Math.floor(y),x=Math.ceil(x),d>0){for(;y<=x;++y)for(O=1;O<r;++O)if(w=y<0?O/l(-y):O*l(y),!(w<d)){if(w>m)break;E.push(w)}}else for(;y<=x;++y)for(O=r-1;O>=1;--O)if(w=y>0?O/l(-y):O*l(y),!(w<d)){if(w>m)break;E.push(w)}E.length*2<S&&(E=e1(d,m,S))}else E=e1(y,x,Math.min(x-y,S)).map(l);return p?E.reverse():E},t.tickFormat=(c,f)=>{if(c==null&&(c=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=bc(f)).precision==null&&(f.trim=!0),f=yO(f)),c===1/0)return f;const d=Math.max(1,r*c/t.ticks().length);return m=>{let p=m/l(Math.round(i(m)));return p*r<r-.5&&(p*=r),p<=d?f(m):""}},t.nice=()=>n(V3(n(),{floor:c=>l(Math.floor(i(c))),ceil:c=>l(Math.ceil(i(c)))})),t}function Y3(){const e=bO(tm()).domain([1,10]);return e.copy=()=>uf(e,Y3()).base(e.base()),vr.apply(e,arguments),e}function dR(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function hR(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function xO(e){var t=1,n=e(dR(t),hR(t));return n.constant=function(r){return arguments.length?e(dR(t=+r),hR(t)):t},Di(n)}function W3(){var e=xO(tm());return e.copy=function(){return uf(e,W3()).constant(e.constant())},vr.apply(e,arguments)}function pR(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function pee(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function mee(e){return e<0?-e*e:e*e}function wO(e){var t=e(gn,gn),n=1;function r(){return n===1?e(gn,gn):n===.5?e(pee,mee):e(pR(n),pR(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Di(t)}function SO(){var e=wO(tm());return e.copy=function(){return uf(e,SO()).exponent(e.exponent())},vr.apply(e,arguments),e}function vee(){return SO.apply(null,arguments).exponent(.5)}function mR(e){return Math.sign(e)*e*e}function gee(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function K3(){var e=vO(),t=[0,1],n=!1,r;function i(l){var s=gee(e(l));return isNaN(s)?r:n?Math.round(s):s}return i.invert=function(l){return e.invert(mR(l))},i.domain=function(l){return arguments.length?(e.domain(l),i):e.domain()},i.range=function(l){return arguments.length?(e.range((t=Array.from(l,kh)).map(mR)),i):t.slice()},i.rangeRound=function(l){return i.range(l).round(!0)},i.round=function(l){return arguments.length?(n=!!l,i):n},i.clamp=function(l){return arguments.length?(e.clamp(l),i):e.clamp()},i.unknown=function(l){return arguments.length?(r=l,i):r},i.copy=function(){return K3(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},vr.apply(i,arguments),Di(i)}function X3(){var e=[],t=[],n=[],r;function i(){var s=0,c=Math.max(1,t.length);for(n=new Array(c-1);++s<c;)n[s-1]=SJ(e,s/c);return l}function l(s){return s==null||isNaN(s=+s)?r:t[lf(n,s)]}return l.invertExtent=function(s){var c=t.indexOf(s);return c<0?[NaN,NaN]:[c>0?n[c-1]:e[0],c<n.length?n[c]:e[e.length-1]]},l.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let c of s)c!=null&&!isNaN(c=+c)&&e.push(c);return e.sort(_i),i()},l.range=function(s){return arguments.length?(t=Array.from(s),i()):t.slice()},l.unknown=function(s){return arguments.length?(r=s,l):r},l.quantiles=function(){return n.slice()},l.copy=function(){return X3().domain(e).range(t).unknown(r)},vr.apply(l,arguments)}function Q3(){var e=0,t=1,n=1,r=[.5],i=[0,1],l;function s(f){return f!=null&&f<=f?i[lf(r,f,0,n)]:l}function c(){var f=-1;for(r=new Array(n);++f<n;)r[f]=((f+1)*t-(f-n)*e)/(n+1);return s}return s.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,c()):[e,t]},s.range=function(f){return arguments.length?(n=(i=Array.from(f)).length-1,c()):i.slice()},s.invertExtent=function(f){var d=i.indexOf(f);return d<0?[NaN,NaN]:d<1?[e,r[0]]:d>=n?[r[n-1],t]:[r[d-1],r[d]]},s.unknown=function(f){return arguments.length&&(l=f),s},s.thresholds=function(){return r.slice()},s.copy=function(){return Q3().domain([e,t]).range(i).unknown(l)},vr.apply(Di(s),arguments)}function Z3(){var e=[.5],t=[0,1],n,r=1;function i(l){return l!=null&&l<=l?t[lf(e,l,0,r)]:n}return i.domain=function(l){return arguments.length?(e=Array.from(l),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(l){return arguments.length?(t=Array.from(l),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(l){var s=t.indexOf(l);return[e[s-1],e[s]]},i.unknown=function(l){return arguments.length?(n=l,i):n},i.copy=function(){return Z3().domain(e).range(t).unknown(n)},vr.apply(i,arguments)}const yx=new Date,bx=new Date;function Ft(e,t,n,r){function i(l){return e(l=arguments.length===0?new Date:new Date(+l)),l}return i.floor=l=>(e(l=new Date(+l)),l),i.ceil=l=>(e(l=new Date(l-1)),t(l,1),e(l),l),i.round=l=>{const s=i(l),c=i.ceil(l);return l-s<c-l?s:c},i.offset=(l,s)=>(t(l=new Date(+l),s==null?1:Math.floor(s)),l),i.range=(l,s,c)=>{const f=[];if(l=i.ceil(l),c=c==null?1:Math.floor(c),!(l<s)||!(c>0))return f;let d;do f.push(d=new Date(+l)),t(l,c),e(l);while(d<l&&l<s);return f},i.filter=l=>Ft(s=>{if(s>=s)for(;e(s),!l(s);)s.setTime(s-1)},(s,c)=>{if(s>=s)if(c<0)for(;++c<=0;)for(;t(s,-1),!l(s););else for(;--c>=0;)for(;t(s,1),!l(s););}),n&&(i.count=(l,s)=>(yx.setTime(+l),bx.setTime(+s),e(yx),e(bx),Math.floor(n(yx,bx))),i.every=l=>(l=Math.floor(l),!isFinite(l)||!(l>0)?null:l>1?i.filter(r?s=>r(s)%l===0:s=>i.count(0,s)%l===0):i)),i}const Ih=Ft(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ih.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ft(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Ih);Ih.range;const Aa=1e3,sr=Aa*60,Ta=sr*60,$a=Ta*24,OO=$a*7,vR=$a*30,xx=$a*365,ho=Ft(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Aa)},(e,t)=>(t-e)/Aa,e=>e.getUTCSeconds());ho.range;const _O=Ft(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Aa)},(e,t)=>{e.setTime(+e+t*sr)},(e,t)=>(t-e)/sr,e=>e.getMinutes());_O.range;const EO=Ft(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*sr)},(e,t)=>(t-e)/sr,e=>e.getUTCMinutes());EO.range;const AO=Ft(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Aa-e.getMinutes()*sr)},(e,t)=>{e.setTime(+e+t*Ta)},(e,t)=>(t-e)/Ta,e=>e.getHours());AO.range;const TO=Ft(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ta)},(e,t)=>(t-e)/Ta,e=>e.getUTCHours());TO.range;const cf=Ft(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*sr)/$a,e=>e.getDate()-1);cf.range;const nm=Ft(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/$a,e=>e.getUTCDate()-1);nm.range;const J3=Ft(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/$a,e=>Math.floor(e/$a));J3.range;function Po(e){return Ft(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())*sr)/OO)}const rm=Po(0),zh=Po(1),yee=Po(2),bee=Po(3),ts=Po(4),xee=Po(5),wee=Po(6);rm.range;zh.range;yee.range;bee.range;ts.range;xee.range;wee.range;function Do(e){return Ft(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)/OO)}const am=Do(0),Bh=Do(1),See=Do(2),Oee=Do(3),ns=Do(4),_ee=Do(5),Eee=Do(6);am.range;Bh.range;See.range;Oee.range;ns.range;_ee.range;Eee.range;const jO=Ft(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());jO.range;const CO=Ft(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());CO.range;const La=Ft(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());La.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ft(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)});La.range;const Ia=Ft(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());Ia.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ft(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)});Ia.range;function e4(e,t,n,r,i,l){const s=[[ho,1,Aa],[ho,5,5*Aa],[ho,15,15*Aa],[ho,30,30*Aa],[l,1,sr],[l,5,5*sr],[l,15,15*sr],[l,30,30*sr],[i,1,Ta],[i,3,3*Ta],[i,6,6*Ta],[i,12,12*Ta],[r,1,$a],[r,2,2*$a],[n,1,OO],[t,1,vR],[t,3,3*vR],[e,1,xx]];function c(d,m,p){const y=m<d;y&&([d,m]=[m,d]);const x=p&&typeof p.range=="function"?p:f(d,m,p),O=x?x.range(d,+m+1):[];return y?O.reverse():O}function f(d,m,p){const y=Math.abs(m-d)/p,x=fO(([,,S])=>S).right(s,y);if(x===s.length)return e.every(n1(d/xx,m/xx,p));if(x===0)return Ih.every(Math.max(n1(d,m,p),1));const[O,w]=s[y/s[x-1][2]<s[x][2]/y?x-1:x];return O.every(w)}return[c,f]}const[Aee,Tee]=e4(Ia,CO,am,J3,TO,EO),[jee,Cee]=e4(La,jO,rm,cf,AO,_O);function wx(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 Sx(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 Lu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Mee(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,l=e.days,s=e.shortDays,c=e.months,f=e.shortMonths,d=Iu(i),m=zu(i),p=Iu(l),y=zu(l),x=Iu(s),O=zu(s),w=Iu(c),S=zu(c),E=Iu(f),T=zu(f),A={a:U,A:Y,b:W,B:oe,c:null,d:SR,e:SR,f:Jee,g:ute,G:fte,H:Xee,I:Qee,j:Zee,L:t4,m:ete,M:tte,p:$,q:F,Q:ER,s:AR,S:nte,u:rte,U:ate,V:ite,w:ote,W:lte,x:null,X:null,y:ste,Y:cte,Z:dte,"%":_R},M={a:Z,A:se,b:de,B:ge,c:null,d:OR,e:OR,f:vte,g:Ate,G:jte,H:hte,I:pte,j:mte,L:r4,m:gte,M:yte,p:fe,q:pe,Q:ER,s:AR,S:bte,u:xte,U:wte,V:Ste,w:Ote,W:_te,x:null,X:null,y:Ete,Y:Tte,Z:Cte,"%":_R},j={a:V,A:z,b:B,B:G,c:K,d:xR,e:xR,f:Vee,g:bR,G:yR,H:wR,I:wR,j:Uee,L:Gee,m:qee,M:Hee,p:I,q:Bee,Q:Wee,s:Kee,S:Fee,u:kee,U:$ee,V:Lee,w:Dee,W:Iee,x:X,X:D,y:bR,Y:yR,Z:zee,"%":Yee};A.x=N(n,A),A.X=N(r,A),A.c=N(t,A),M.x=N(n,M),M.X=N(r,M),M.c=N(t,M);function N(ae,me){return function(ye){var re=[],Ne=-1,Oe=0,Ke=ae.length,He,nt,ln;for(ye instanceof Date||(ye=new Date(+ye));++Ne<Ke;)ae.charCodeAt(Ne)===37&&(re.push(ae.slice(Oe,Ne)),(nt=gR[He=ae.charAt(++Ne)])!=null?He=ae.charAt(++Ne):nt=He==="e"?" ":"0",(ln=me[He])&&(He=ln(ye,nt)),re.push(He),Oe=Ne+1);return re.push(ae.slice(Oe,Ne)),re.join("")}}function R(ae,me){return function(ye){var re=Lu(1900,void 0,1),Ne=k(re,ae,ye+="",0),Oe,Ke;if(Ne!=ye.length)return null;if("Q"in re)return new Date(re.Q);if("s"in re)return new Date(re.s*1e3+("L"in re?re.L:0));if(me&&!("Z"in re)&&(re.Z=0),"p"in re&&(re.H=re.H%12+re.p*12),re.m===void 0&&(re.m="q"in re?re.q:0),"V"in re){if(re.V<1||re.V>53)return null;"w"in re||(re.w=1),"Z"in re?(Oe=Sx(Lu(re.y,0,1)),Ke=Oe.getUTCDay(),Oe=Ke>4||Ke===0?Bh.ceil(Oe):Bh(Oe),Oe=nm.offset(Oe,(re.V-1)*7),re.y=Oe.getUTCFullYear(),re.m=Oe.getUTCMonth(),re.d=Oe.getUTCDate()+(re.w+6)%7):(Oe=wx(Lu(re.y,0,1)),Ke=Oe.getDay(),Oe=Ke>4||Ke===0?zh.ceil(Oe):zh(Oe),Oe=cf.offset(Oe,(re.V-1)*7),re.y=Oe.getFullYear(),re.m=Oe.getMonth(),re.d=Oe.getDate()+(re.w+6)%7)}else("W"in re||"U"in re)&&("w"in re||(re.w="u"in re?re.u%7:"W"in re?1:0),Ke="Z"in re?Sx(Lu(re.y,0,1)).getUTCDay():wx(Lu(re.y,0,1)).getDay(),re.m=0,re.d="W"in re?(re.w+6)%7+re.W*7-(Ke+5)%7:re.w+re.U*7-(Ke+6)%7);return"Z"in re?(re.H+=re.Z/100|0,re.M+=re.Z%100,Sx(re)):wx(re)}}function k(ae,me,ye,re){for(var Ne=0,Oe=me.length,Ke=ye.length,He,nt;Ne<Oe;){if(re>=Ke)return-1;if(He=me.charCodeAt(Ne++),He===37){if(He=me.charAt(Ne++),nt=j[He in gR?me.charAt(Ne++):He],!nt||(re=nt(ae,ye,re))<0)return-1}else if(He!=ye.charCodeAt(re++))return-1}return re}function I(ae,me,ye){var re=d.exec(me.slice(ye));return re?(ae.p=m.get(re[0].toLowerCase()),ye+re[0].length):-1}function V(ae,me,ye){var re=x.exec(me.slice(ye));return re?(ae.w=O.get(re[0].toLowerCase()),ye+re[0].length):-1}function z(ae,me,ye){var re=p.exec(me.slice(ye));return re?(ae.w=y.get(re[0].toLowerCase()),ye+re[0].length):-1}function B(ae,me,ye){var re=E.exec(me.slice(ye));return re?(ae.m=T.get(re[0].toLowerCase()),ye+re[0].length):-1}function G(ae,me,ye){var re=w.exec(me.slice(ye));return re?(ae.m=S.get(re[0].toLowerCase()),ye+re[0].length):-1}function K(ae,me,ye){return k(ae,t,me,ye)}function X(ae,me,ye){return k(ae,n,me,ye)}function D(ae,me,ye){return k(ae,r,me,ye)}function U(ae){return s[ae.getDay()]}function Y(ae){return l[ae.getDay()]}function W(ae){return f[ae.getMonth()]}function oe(ae){return c[ae.getMonth()]}function $(ae){return i[+(ae.getHours()>=12)]}function F(ae){return 1+~~(ae.getMonth()/3)}function Z(ae){return s[ae.getUTCDay()]}function se(ae){return l[ae.getUTCDay()]}function de(ae){return f[ae.getUTCMonth()]}function ge(ae){return c[ae.getUTCMonth()]}function fe(ae){return i[+(ae.getUTCHours()>=12)]}function pe(ae){return 1+~~(ae.getUTCMonth()/3)}return{format:function(ae){var me=N(ae+="",A);return me.toString=function(){return ae},me},parse:function(ae){var me=R(ae+="",!1);return me.toString=function(){return ae},me},utcFormat:function(ae){var me=N(ae+="",M);return me.toString=function(){return ae},me},utcParse:function(ae){var me=R(ae+="",!0);return me.toString=function(){return ae},me}}}var gR={"-":"",_:" ",0:"0"},Qt=/^\s*\d+/,Nee=/^%/,Ree=/[\\^$*+?|[\]().{}]/g;function Ye(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",l=i.length;return r+(l<n?new Array(n-l+1).join(t)+i:i)}function Pee(e){return e.replace(Ree,"\\$&")}function Iu(e){return new RegExp("^(?:"+e.map(Pee).join("|")+")","i")}function zu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Dee(e,t,n){var r=Qt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function kee(e,t,n){var r=Qt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function $ee(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Lee(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Iee(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function yR(e,t,n){var r=Qt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function bR(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function zee(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 Bee(e,t,n){var r=Qt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function qee(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function xR(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Uee(e,t,n){var r=Qt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function wR(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Hee(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Fee(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Gee(e,t,n){var r=Qt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Vee(e,t,n){var r=Qt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Yee(e,t,n){var r=Nee.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Wee(e,t,n){var r=Qt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Kee(e,t,n){var r=Qt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function SR(e,t){return Ye(e.getDate(),t,2)}function Xee(e,t){return Ye(e.getHours(),t,2)}function Qee(e,t){return Ye(e.getHours()%12||12,t,2)}function Zee(e,t){return Ye(1+cf.count(La(e),e),t,3)}function t4(e,t){return Ye(e.getMilliseconds(),t,3)}function Jee(e,t){return t4(e,t)+"000"}function ete(e,t){return Ye(e.getMonth()+1,t,2)}function tte(e,t){return Ye(e.getMinutes(),t,2)}function nte(e,t){return Ye(e.getSeconds(),t,2)}function rte(e){var t=e.getDay();return t===0?7:t}function ate(e,t){return Ye(rm.count(La(e)-1,e),t,2)}function n4(e){var t=e.getDay();return t>=4||t===0?ts(e):ts.ceil(e)}function ite(e,t){return e=n4(e),Ye(ts.count(La(e),e)+(La(e).getDay()===4),t,2)}function ote(e){return e.getDay()}function lte(e,t){return Ye(zh.count(La(e)-1,e),t,2)}function ste(e,t){return Ye(e.getFullYear()%100,t,2)}function ute(e,t){return e=n4(e),Ye(e.getFullYear()%100,t,2)}function cte(e,t){return Ye(e.getFullYear()%1e4,t,4)}function fte(e,t){var n=e.getDay();return e=n>=4||n===0?ts(e):ts.ceil(e),Ye(e.getFullYear()%1e4,t,4)}function dte(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ye(t/60|0,"0",2)+Ye(t%60,"0",2)}function OR(e,t){return Ye(e.getUTCDate(),t,2)}function hte(e,t){return Ye(e.getUTCHours(),t,2)}function pte(e,t){return Ye(e.getUTCHours()%12||12,t,2)}function mte(e,t){return Ye(1+nm.count(Ia(e),e),t,3)}function r4(e,t){return Ye(e.getUTCMilliseconds(),t,3)}function vte(e,t){return r4(e,t)+"000"}function gte(e,t){return Ye(e.getUTCMonth()+1,t,2)}function yte(e,t){return Ye(e.getUTCMinutes(),t,2)}function bte(e,t){return Ye(e.getUTCSeconds(),t,2)}function xte(e){var t=e.getUTCDay();return t===0?7:t}function wte(e,t){return Ye(am.count(Ia(e)-1,e),t,2)}function a4(e){var t=e.getUTCDay();return t>=4||t===0?ns(e):ns.ceil(e)}function Ste(e,t){return e=a4(e),Ye(ns.count(Ia(e),e)+(Ia(e).getUTCDay()===4),t,2)}function Ote(e){return e.getUTCDay()}function _te(e,t){return Ye(Bh.count(Ia(e)-1,e),t,2)}function Ete(e,t){return Ye(e.getUTCFullYear()%100,t,2)}function Ate(e,t){return e=a4(e),Ye(e.getUTCFullYear()%100,t,2)}function Tte(e,t){return Ye(e.getUTCFullYear()%1e4,t,4)}function jte(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ns(e):ns.ceil(e),Ye(e.getUTCFullYear()%1e4,t,4)}function Cte(){return"+0000"}function _R(){return"%"}function ER(e){return+e}function AR(e){return Math.floor(+e/1e3)}var Ml,i4,o4;Mte({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 Mte(e){return Ml=Mee(e),i4=Ml.format,Ml.parse,o4=Ml.utcFormat,Ml.utcParse,Ml}function Nte(e){return new Date(e)}function Rte(e){return e instanceof Date?+e:+new Date(+e)}function MO(e,t,n,r,i,l,s,c,f,d){var m=vO(),p=m.invert,y=m.domain,x=d(".%L"),O=d(":%S"),w=d("%I:%M"),S=d("%I %p"),E=d("%a %d"),T=d("%b %d"),A=d("%B"),M=d("%Y");function j(N){return(f(N)<N?x:c(N)<N?O:s(N)<N?w:l(N)<N?S:r(N)<N?i(N)<N?E:T:n(N)<N?A:M)(N)}return m.invert=function(N){return new Date(p(N))},m.domain=function(N){return arguments.length?y(Array.from(N,Rte)):y().map(Nte)},m.ticks=function(N){var R=y();return e(R[0],R[R.length-1],N??10)},m.tickFormat=function(N,R){return R==null?j:d(R)},m.nice=function(N){var R=y();return(!N||typeof N.range!="function")&&(N=t(R[0],R[R.length-1],N??10)),N?y(V3(R,N)):m},m.copy=function(){return uf(m,MO(e,t,n,r,i,l,s,c,f,d))},m}function Pte(){return vr.apply(MO(jee,Cee,La,jO,rm,cf,AO,_O,ho,i4).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Dte(){return vr.apply(MO(Aee,Tee,Ia,CO,am,nm,TO,EO,ho,o4).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function im(){var e=0,t=1,n,r,i,l,s=gn,c=!1,f;function d(p){return p==null||isNaN(p=+p)?f:s(i===0?.5:(p=(l(p)-n)*i,c?Math.max(0,Math.min(1,p)):p))}d.domain=function(p){return arguments.length?([e,t]=p,n=l(e=+e),r=l(t=+t),i=n===r?0:1/(r-n),d):[e,t]},d.clamp=function(p){return arguments.length?(c=!!p,d):c},d.interpolator=function(p){return arguments.length?(s=p,d):s};function m(p){return function(y){var x,O;return arguments.length?([x,O]=y,s=p(x,O),d):[s(0),s(1)]}}return d.range=m(Ns),d.rangeRound=m(mO),d.unknown=function(p){return arguments.length?(f=p,d):f},function(p){return l=p,n=p(e),r=p(t),i=n===r?0:1/(r-n),d}}function ki(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function l4(){var e=Di(im()(gn));return e.copy=function(){return ki(e,l4())},Ha.apply(e,arguments)}function s4(){var e=bO(im()).domain([1,10]);return e.copy=function(){return ki(e,s4()).base(e.base())},Ha.apply(e,arguments)}function u4(){var e=xO(im());return e.copy=function(){return ki(e,u4()).constant(e.constant())},Ha.apply(e,arguments)}function NO(){var e=wO(im());return e.copy=function(){return ki(e,NO()).exponent(e.exponent())},Ha.apply(e,arguments)}function kte(){return NO.apply(null,arguments).exponent(.5)}function c4(){var e=[],t=gn;function n(r){if(r!=null&&!isNaN(r=+r))return t((lf(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(_i),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,l)=>wJ(e,l/r))},n.copy=function(){return c4(t).domain(e)},Ha.apply(n,arguments)}function om(){var e=0,t=.5,n=1,r=1,i,l,s,c,f,d=gn,m,p=!1,y;function x(w){return isNaN(w=+w)?y:(w=.5+((w=+m(w))-l)*(r*w<r*l?c:f),d(p?Math.max(0,Math.min(1,w)):w))}x.domain=function(w){return arguments.length?([e,t,n]=w,i=m(e=+e),l=m(t=+t),s=m(n=+n),c=i===l?0:.5/(l-i),f=l===s?0:.5/(s-l),r=l<i?-1:1,x):[e,t,n]},x.clamp=function(w){return arguments.length?(p=!!w,x):p},x.interpolator=function(w){return arguments.length?(d=w,x):d};function O(w){return function(S){var E,T,A;return arguments.length?([E,T,A]=S,d=YJ(w,[E,T,A]),x):[d(0),d(.5),d(1)]}}return x.range=O(Ns),x.rangeRound=O(mO),x.unknown=function(w){return arguments.length?(y=w,x):y},function(w){return m=w,i=w(e),l=w(t),s=w(n),c=i===l?0:.5/(l-i),f=l===s?0:.5/(s-l),r=l<i?-1:1,x}}function f4(){var e=Di(om()(gn));return e.copy=function(){return ki(e,f4())},Ha.apply(e,arguments)}function d4(){var e=bO(om()).domain([.1,1,10]);return e.copy=function(){return ki(e,d4()).base(e.base())},Ha.apply(e,arguments)}function h4(){var e=xO(om());return e.copy=function(){return ki(e,h4()).constant(e.constant())},Ha.apply(e,arguments)}function RO(){var e=wO(om());return e.copy=function(){return ki(e,RO()).exponent(e.exponent())},Ha.apply(e,arguments)}function $te(){return RO.apply(null,arguments).exponent(.5)}const TR=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:mc,scaleDiverging:f4,scaleDivergingLog:d4,scaleDivergingPow:RO,scaleDivergingSqrt:$te,scaleDivergingSymlog:h4,scaleIdentity:G3,scaleImplicit:r1,scaleLinear:Lh,scaleLog:Y3,scaleOrdinal:dO,scalePoint:Xu,scalePow:SO,scaleQuantile:X3,scaleQuantize:Q3,scaleRadial:K3,scaleSequential:l4,scaleSequentialLog:s4,scaleSequentialPow:NO,scaleSequentialQuantile:c4,scaleSequentialSqrt:kte,scaleSequentialSymlog:u4,scaleSqrt:vee,scaleSymlog:W3,scaleThreshold:Z3,scaleTime:Pte,scaleUtc:Dte,tickFormat:F3},Symbol.toStringTag,{value:"Module"}));var Ox,jR;function p4(){if(jR)return Ox;jR=1;var e=Ts();function t(n,r,i){for(var l=-1,s=n.length;++l<s;){var c=n[l],f=r(c);if(f!=null&&(d===void 0?f===f&&!e(f):i(f,d)))var d=f,m=c}return m}return Ox=t,Ox}var _x,CR;function Lte(){if(CR)return _x;CR=1;function e(t,n){return t>n}return _x=e,_x}var Ex,MR;function Ite(){if(MR)return Ex;MR=1;var e=p4(),t=Lte(),n=Cs();function r(i){return i&&i.length?e(i,n,t):void 0}return Ex=r,Ex}var zte=Ite();const lm=lt(zte);var Ax,NR;function Bte(){if(NR)return Ax;NR=1;function e(t,n){return t<n}return Ax=e,Ax}var Tx,RR;function qte(){if(RR)return Tx;RR=1;var e=p4(),t=Bte(),n=Cs();function r(i){return i&&i.length?e(i,n,t):void 0}return Tx=r,Tx}var Ute=qte();const sm=lt(Ute);var jx,PR;function Hte(){if(PR)return jx;PR=1;var e=WS(),t=Pi(),n=S3(),r=Rn();function i(l,s){var c=r(l)?e:n;return c(l,t(s,3))}return jx=i,jx}var Cx,DR;function Fte(){if(DR)return Cx;DR=1;var e=x3(),t=Hte();function n(r,i){return e(t(r,i),1)}return Cx=n,Cx}var Gte=Fte();const Vte=lt(Gte);var Mx,kR;function Yte(){if(kR)return Mx;kR=1;var e=lO();function t(n,r){return e(n,r)}return Mx=t,Mx}var Wte=Yte();const um=lt(Wte);var Rs=1e9,Kte={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},DO,yt=!0,pr="[DecimalError] ",yo=pr+"Invalid argument: ",PO=pr+"Exponent out of range: ",Ps=Math.floor,uo=Math.pow,Xte=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Gn,Xt=1e7,mt=7,m4=9007199254740991,qh=Ps(m4/mt),xe={};xe.absoluteValue=xe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};xe.comparedTo=xe.cmp=function(e){var t,n,r,i,l=this;if(e=new l.constructor(e),l.s!==e.s)return l.s||-e.s;if(l.e!==e.e)return l.e>e.e^l.s<0?1:-1;for(r=l.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(l.d[t]!==e.d[t])return l.d[t]>e.d[t]^l.s<0?1:-1;return r===i?0:r>i^l.s<0?1:-1};xe.decimalPlaces=xe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*mt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};xe.dividedBy=xe.div=function(e){return Ra(this,new this.constructor(e))};xe.dividedToIntegerBy=xe.idiv=function(e){var t=this,n=t.constructor;return ut(Ra(t,new n(e),0,1),n.precision)};xe.equals=xe.eq=function(e){return!this.cmp(e)};xe.exponent=function(){return Lt(this)};xe.greaterThan=xe.gt=function(e){return this.cmp(e)>0};xe.greaterThanOrEqualTo=xe.gte=function(e){return this.cmp(e)>=0};xe.isInteger=xe.isint=function(){return this.e>this.d.length-2};xe.isNegative=xe.isneg=function(){return this.s<0};xe.isPositive=xe.ispos=function(){return this.s>0};xe.isZero=function(){return this.s===0};xe.lessThan=xe.lt=function(e){return this.cmp(e)<0};xe.lessThanOrEqualTo=xe.lte=function(e){return this.cmp(e)<1};xe.logarithm=xe.log=function(e){var t,n=this,r=n.constructor,i=r.precision,l=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Gn))throw Error(pr+"NaN");if(n.s<1)throw Error(pr+(n.s?"NaN":"-Infinity"));return n.eq(Gn)?new r(0):(yt=!1,t=Ra(xc(n,l),xc(e,l),l),yt=!0,ut(t,i))};xe.minus=xe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?y4(t,e):v4(t,(e.s=-e.s,e))};xe.modulo=xe.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(pr+"NaN");return n.s?(yt=!1,t=Ra(n,e,0,1).times(e),yt=!0,n.minus(t)):ut(new r(n),i)};xe.naturalExponential=xe.exp=function(){return g4(this)};xe.naturalLogarithm=xe.ln=function(){return xc(this)};xe.negated=xe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};xe.plus=xe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?v4(t,e):y4(t,(e.s=-e.s,e))};xe.precision=xe.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(yo+e);if(t=Lt(i)+1,r=i.d.length-1,n=r*mt+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};xe.squareRoot=xe.sqrt=function(){var e,t,n,r,i,l,s,c=this,f=c.constructor;if(c.s<1){if(!c.s)return new f(0);throw Error(pr+"NaN")}for(e=Lt(c),yt=!1,i=Math.sqrt(+c),i==0||i==1/0?(t=Wr(c.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ps((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new f(t)):r=new f(i.toString()),n=f.precision,i=s=n+3;;)if(l=r,r=l.plus(Ra(c,l,s+2)).times(.5),Wr(l.d).slice(0,s)===(t=Wr(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(ut(l,n+1,0),l.times(l).eq(c)){r=l;break}}else if(t!="9999")break;s+=4}return yt=!0,ut(r,n)};xe.times=xe.mul=function(e){var t,n,r,i,l,s,c,f,d,m=this,p=m.constructor,y=m.d,x=(e=new p(e)).d;if(!m.s||!e.s)return new p(0);for(e.s*=m.s,n=m.e+e.e,f=y.length,d=x.length,f<d&&(l=y,y=x,x=l,s=f,f=d,d=s),l=[],s=f+d,r=s;r--;)l.push(0);for(r=d;--r>=0;){for(t=0,i=f+r;i>r;)c=l[i]+x[r]*y[i-r-1]+t,l[i--]=c%Xt|0,t=c/Xt|0;l[i]=(l[i]+t)%Xt|0}for(;!l[--s];)l.pop();return t?++n:l.shift(),e.d=l,e.e=n,yt?ut(e,p.precision):e};xe.toDecimalPlaces=xe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(ea(e,0,Rs),t===void 0?t=r.rounding:ea(t,0,8),ut(n,e+Lt(n)+1,t))};xe.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Eo(r,!0):(ea(e,0,Rs),t===void 0?t=i.rounding:ea(t,0,8),r=ut(new i(r),e+1,t),n=Eo(r,!0,e+1)),n};xe.toFixed=function(e,t){var n,r,i=this,l=i.constructor;return e===void 0?Eo(i):(ea(e,0,Rs),t===void 0?t=l.rounding:ea(t,0,8),r=ut(new l(i),e+Lt(i)+1,t),n=Eo(r.abs(),!1,e+Lt(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};xe.toInteger=xe.toint=function(){var e=this,t=e.constructor;return ut(new t(e),Lt(e)+1,t.rounding)};xe.toNumber=function(){return+this};xe.toPower=xe.pow=function(e){var t,n,r,i,l,s,c=this,f=c.constructor,d=12,m=+(e=new f(e));if(!e.s)return new f(Gn);if(c=new f(c),!c.s){if(e.s<1)throw Error(pr+"Infinity");return c}if(c.eq(Gn))return c;if(r=f.precision,e.eq(Gn))return ut(c,r);if(t=e.e,n=e.d.length-1,s=t>=n,l=c.s,s){if((n=m<0?-m:m)<=m4){for(i=new f(Gn),t=Math.ceil(r/mt+4),yt=!1;n%2&&(i=i.times(c),LR(i.d,t)),n=Ps(n/2),n!==0;)c=c.times(c),LR(c.d,t);return yt=!0,e.s<0?new f(Gn).div(i):ut(i,r)}}else if(l<0)throw Error(pr+"NaN");return l=l<0&&e.d[Math.max(t,n)]&1?-1:1,c.s=1,yt=!1,i=e.times(xc(c,r+d)),yt=!0,i=g4(i),i.s=l,i};xe.toPrecision=function(e,t){var n,r,i=this,l=i.constructor;return e===void 0?(n=Lt(i),r=Eo(i,n<=l.toExpNeg||n>=l.toExpPos)):(ea(e,1,Rs),t===void 0?t=l.rounding:ea(t,0,8),i=ut(new l(i),e,t),n=Lt(i),r=Eo(i,e<=n||n<=l.toExpNeg,e)),r};xe.toSignificantDigits=xe.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(ea(e,1,Rs),t===void 0?t=r.rounding:ea(t,0,8)),ut(new r(n),e,t)};xe.toString=xe.valueOf=xe.val=xe.toJSON=xe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Lt(e),n=e.constructor;return Eo(e,t<=n.toExpNeg||t>=n.toExpPos)};function v4(e,t){var n,r,i,l,s,c,f,d,m=e.constructor,p=m.precision;if(!e.s||!t.s)return t.s||(t=new m(e)),yt?ut(t,p):t;if(f=e.d,d=t.d,s=e.e,i=t.e,f=f.slice(),l=s-i,l){for(l<0?(r=f,l=-l,c=d.length):(r=d,i=s,c=f.length),s=Math.ceil(p/mt),c=s>c?s+1:c+1,l>c&&(l=c,r.length=1),r.reverse();l--;)r.push(0);r.reverse()}for(c=f.length,l=d.length,c-l<0&&(l=c,r=d,d=f,f=r),n=0;l;)n=(f[--l]=f[l]+d[l]+n)/Xt|0,f[l]%=Xt;for(n&&(f.unshift(n),++i),c=f.length;f[--c]==0;)f.pop();return t.d=f,t.e=i,yt?ut(t,p):t}function ea(e,t,n){if(e!==~~e||e<t||e>n)throw Error(yo+e)}function Wr(e){var t,n,r,i=e.length-1,l="",s=e[0];if(i>0){for(l+=s,t=1;t<i;t++)r=e[t]+"",n=mt-r.length,n&&(l+=wi(n)),l+=r;s=e[t],r=s+"",n=mt-r.length,n&&(l+=wi(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return l+s}var Ra=(function(){function e(r,i){var l,s=0,c=r.length;for(r=r.slice();c--;)l=r[c]*i+s,r[c]=l%Xt|0,s=l/Xt|0;return s&&r.unshift(s),r}function t(r,i,l,s){var c,f;if(l!=s)f=l>s?1:-1;else for(c=f=0;c<l;c++)if(r[c]!=i[c]){f=r[c]>i[c]?1:-1;break}return f}function n(r,i,l){for(var s=0;l--;)r[l]-=s,s=r[l]<i[l]?1:0,r[l]=s*Xt+r[l]-i[l];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,l,s){var c,f,d,m,p,y,x,O,w,S,E,T,A,M,j,N,R,k,I=r.constructor,V=r.s==i.s?1:-1,z=r.d,B=i.d;if(!r.s)return new I(r);if(!i.s)throw Error(pr+"Division by zero");for(f=r.e-i.e,R=B.length,j=z.length,x=new I(V),O=x.d=[],d=0;B[d]==(z[d]||0);)++d;if(B[d]>(z[d]||0)&&--f,l==null?T=l=I.precision:s?T=l+(Lt(r)-Lt(i))+1:T=l,T<0)return new I(0);if(T=T/mt+2|0,d=0,R==1)for(m=0,B=B[0],T++;(d<j||m)&&T--;d++)A=m*Xt+(z[d]||0),O[d]=A/B|0,m=A%B|0;else{for(m=Xt/(B[0]+1)|0,m>1&&(B=e(B,m),z=e(z,m),R=B.length,j=z.length),M=R,w=z.slice(0,R),S=w.length;S<R;)w[S++]=0;k=B.slice(),k.unshift(0),N=B[0],B[1]>=Xt/2&&++N;do m=0,c=t(B,w,R,S),c<0?(E=w[0],R!=S&&(E=E*Xt+(w[1]||0)),m=E/N|0,m>1?(m>=Xt&&(m=Xt-1),p=e(B,m),y=p.length,S=w.length,c=t(p,w,y,S),c==1&&(m--,n(p,R<y?k:B,y))):(m==0&&(c=m=1),p=B.slice()),y=p.length,y<S&&p.unshift(0),n(w,p,S),c==-1&&(S=w.length,c=t(B,w,R,S),c<1&&(m++,n(w,R<S?k:B,S))),S=w.length):c===0&&(m++,w=[0]),O[d++]=m,c&&w[0]?w[S++]=z[M]||0:(w=[z[M]],S=1);while((M++<j||w[0]!==void 0)&&T--)}return O[0]||O.shift(),x.e=f,ut(x,s?l+Lt(x)+1:l)}})();function g4(e,t){var n,r,i,l,s,c,f=0,d=0,m=e.constructor,p=m.precision;if(Lt(e)>16)throw Error(PO+Lt(e));if(!e.s)return new m(Gn);for(yt=!1,c=p,s=new m(.03125);e.abs().gte(.1);)e=e.times(s),d+=5;for(r=Math.log(uo(2,d))/Math.LN10*2+5|0,c+=r,n=i=l=new m(Gn),m.precision=c;;){if(i=ut(i.times(e),c),n=n.times(++f),s=l.plus(Ra(i,n,c)),Wr(s.d).slice(0,c)===Wr(l.d).slice(0,c)){for(;d--;)l=ut(l.times(l),c);return m.precision=p,t==null?(yt=!0,ut(l,p)):l}l=s}}function Lt(e){for(var t=e.e*mt,n=e.d[0];n>=10;n/=10)t++;return t}function Nx(e,t,n){if(t>e.LN10.sd())throw yt=!0,n&&(e.precision=n),Error(pr+"LN10 precision limit exceeded");return ut(new e(e.LN10),t)}function wi(e){for(var t="";e--;)t+="0";return t}function xc(e,t){var n,r,i,l,s,c,f,d,m,p=1,y=10,x=e,O=x.d,w=x.constructor,S=w.precision;if(x.s<1)throw Error(pr+(x.s?"NaN":"-Infinity"));if(x.eq(Gn))return new w(0);if(t==null?(yt=!1,d=S):d=t,x.eq(10))return t==null&&(yt=!0),Nx(w,d);if(d+=y,w.precision=d,n=Wr(O),r=n.charAt(0),l=Lt(x),Math.abs(l)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)x=x.times(e),n=Wr(x.d),r=n.charAt(0),p++;l=Lt(x),r>1?(x=new w("0."+n),l++):x=new w(r+"."+n.slice(1))}else return f=Nx(w,d+2,S).times(l+""),x=xc(new w(r+"."+n.slice(1)),d-y).plus(f),w.precision=S,t==null?(yt=!0,ut(x,S)):x;for(c=s=x=Ra(x.minus(Gn),x.plus(Gn),d),m=ut(x.times(x),d),i=3;;){if(s=ut(s.times(m),d),f=c.plus(Ra(s,new w(i),d)),Wr(f.d).slice(0,d)===Wr(c.d).slice(0,d))return c=c.times(2),l!==0&&(c=c.plus(Nx(w,d+2,S).times(l+""))),c=Ra(c,new w(p),d),w.precision=S,t==null?(yt=!0,ut(c,S)):c;c=f,i+=2}}function $R(e,t){var n,r,i;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(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=Ps(n/mt),e.d=[],r=(n+1)%mt,n<0&&(r+=mt),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=mt;r<i;)e.d.push(+t.slice(r,r+=mt));t=t.slice(r),r=mt-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),yt&&(e.e>qh||e.e<-qh))throw Error(PO+n)}else e.s=0,e.e=0,e.d=[0];return e}function ut(e,t,n){var r,i,l,s,c,f,d,m,p=e.d;for(s=1,l=p[0];l>=10;l/=10)s++;if(r=t-s,r<0)r+=mt,i=t,d=p[m=0];else{if(m=Math.ceil((r+1)/mt),l=p.length,m>=l)return e;for(d=l=p[m],s=1;l>=10;l/=10)s++;r%=mt,i=r-mt+s}if(n!==void 0&&(l=uo(10,s-i-1),c=d/l%10|0,f=t<0||p[m+1]!==void 0||d%l,f=n<4?(c||f)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||f||n==6&&(r>0?i>0?d/uo(10,s-i):0:p[m-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return f?(l=Lt(e),p.length=1,t=t-l-1,p[0]=uo(10,(mt-t%mt)%mt),e.e=Ps(-t/mt)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=m,l=1,m--):(p.length=m+1,l=uo(10,mt-r),p[m]=i>0?(d/uo(10,s-i)%uo(10,i)|0)*l:0),f)for(;;)if(m==0){(p[0]+=l)==Xt&&(p[0]=1,++e.e);break}else{if(p[m]+=l,p[m]!=Xt)break;p[m--]=0,l=1}for(r=p.length;p[--r]===0;)p.pop();if(yt&&(e.e>qh||e.e<-qh))throw Error(PO+Lt(e));return e}function y4(e,t){var n,r,i,l,s,c,f,d,m,p,y=e.constructor,x=y.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new y(e),yt?ut(t,x):t;if(f=e.d,p=t.d,r=t.e,d=e.e,f=f.slice(),s=d-r,s){for(m=s<0,m?(n=f,s=-s,c=p.length):(n=p,r=d,c=f.length),i=Math.max(Math.ceil(x/mt),c)+2,s>i&&(s=i,n.length=1),n.reverse(),i=s;i--;)n.push(0);n.reverse()}else{for(i=f.length,c=p.length,m=i<c,m&&(c=i),i=0;i<c;i++)if(f[i]!=p[i]){m=f[i]<p[i];break}s=0}for(m&&(n=f,f=p,p=n,t.s=-t.s),c=f.length,i=p.length-c;i>0;--i)f[c++]=0;for(i=p.length;i>s;){if(f[--i]<p[i]){for(l=i;l&&f[--l]===0;)f[l]=Xt-1;--f[l],f[i]+=Xt}f[i]-=p[i]}for(;f[--c]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,yt?ut(t,x):t):new y(0)}function Eo(e,t,n){var r,i=Lt(e),l=Wr(e.d),s=l.length;return t?(n&&(r=n-s)>0?l=l.charAt(0)+"."+l.slice(1)+wi(r):s>1&&(l=l.charAt(0)+"."+l.slice(1)),l=l+(i<0?"e":"e+")+i):i<0?(l="0."+wi(-i-1)+l,n&&(r=n-s)>0&&(l+=wi(r))):i>=s?(l+=wi(i+1-s),n&&(r=n-i-1)>0&&(l=l+"."+wi(r))):((r=i+1)<s&&(l=l.slice(0,r)+"."+l.slice(r)),n&&(r=n-s)>0&&(i+1===s&&(l+="."),l+=wi(r))),e.s<0?"-"+l:l}function LR(e,t){if(e.length>t)return e.length=t,!0}function b4(e){var t,n,r;function i(l){var s=this;if(!(s instanceof i))return new i(l);if(s.constructor=i,l instanceof i){s.s=l.s,s.e=l.e,s.d=(l=l.d)?l.slice():l;return}if(typeof l=="number"){if(l*0!==0)throw Error(yo+l);if(l>0)s.s=1;else if(l<0)l=-l,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(l===~~l&&l<1e7){s.e=0,s.d=[l];return}return $R(s,l.toString())}else if(typeof l!="string")throw Error(yo+l);if(l.charCodeAt(0)===45?(l=l.slice(1),s.s=-1):s.s=1,Xte.test(l))$R(s,l);else throw Error(yo+l)}if(i.prototype=xe,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=b4,i.config=i.set=Qte,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 i.config(e),i}function Qte(e){if(!e||typeof e!="object")throw Error(pr+"Object expected");var t,n,r,i=["precision",1,Rs,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(Ps(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(yo+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(yo+n+": "+r);return this}var DO=b4(Kte);Gn=new DO(1);const ot=DO;function Zte(e){return nne(e)||tne(e)||ene(e)||Jte()}function Jte(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
312
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ene(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 tne(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function nne(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 rne=function(t){return t},x4={},w4=function(t){return t===x4},IR=function(t){return function n(){return arguments.length===0||arguments.length===1&&w4(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},ane=function e(t,n){return t===1?n:IR(function(){for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];var s=i.filter(function(c){return c!==x4}).length;return s>=t?n.apply(void 0,i):e(t-s,IR(function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var m=i.map(function(p){return w4(p)?f.shift():p});return n.apply(void 0,Zte(m).concat(f))}))})},cm=function(t){return ane(t.length,t)},s1=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},ine=cm(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),one=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return rne;var i=n.reverse(),l=i[0],s=i.slice(1);return function(){return s.reduce(function(c,f){return f(c)},l.apply(void 0,arguments))}},u1=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},S4=function(t){var n=null,r=null;return function(){for(var i=arguments.length,l=new Array(i),s=0;s<i;s++)l[s]=arguments[s];return n&&l.every(function(c,f){return c===n[f]})||(n=l,r=t.apply(void 0,l)),r}};function lne(e){var t;return e===0?t=1:t=Math.floor(new ot(e).abs().log(10).toNumber())+1,t}function sne(e,t,n){for(var r=new ot(e),i=0,l=[];r.lt(t)&&i<1e5;)l.push(r.toNumber()),r=r.add(n),i++;return l}var une=cm(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),cne=cm(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),fne=cm(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const fm={rangeStep:sne,getDigitCount:lne,interpolateNumber:une,uninterpolateNumber:cne,uninterpolateTruncation:fne};function c1(e){return pne(e)||hne(e)||O4(e)||dne()}function dne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
313
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hne(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function pne(e){if(Array.isArray(e))return f1(e)}function wc(e,t){return gne(e)||vne(e,t)||O4(e,t)||mne()}function mne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
314
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O4(e,t){if(e){if(typeof e=="string")return f1(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 f1(e,t)}}function f1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vne(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,l=void 0;try{for(var s=e[Symbol.iterator](),c;!(r=(c=s.next()).done)&&(n.push(c.value),!(t&&n.length===t));r=!0);}catch(f){i=!0,l=f}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw l}}return n}}function gne(e){if(Array.isArray(e))return e}function _4(e){var t=wc(e,2),n=t[0],r=t[1],i=n,l=r;return n>r&&(i=r,l=n),[i,l]}function E4(e,t,n){if(e.lte(0))return new ot(0);var r=fm.getDigitCount(e.toNumber()),i=new ot(10).pow(r),l=e.div(i),s=r!==1?.05:.1,c=new ot(Math.ceil(l.div(s).toNumber())).add(n).mul(s),f=c.mul(i);return t?f:new ot(Math.ceil(f))}function yne(e,t,n){var r=1,i=new ot(e);if(!i.isint()&&n){var l=Math.abs(e);l<1?(r=new ot(10).pow(fm.getDigitCount(e)-1),i=new ot(Math.floor(i.div(r).toNumber())).mul(r)):l>1&&(i=new ot(Math.floor(e)))}else e===0?i=new ot(Math.floor((t-1)/2)):n||(i=new ot(Math.floor(e)));var s=Math.floor((t-1)/2),c=one(ine(function(f){return i.add(new ot(f-s).mul(r)).toNumber()}),s1);return c(0,t)}function A4(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new ot(0),tickMin:new ot(0),tickMax:new ot(0)};var l=E4(new ot(t).sub(e).div(n-1),r,i),s;e<=0&&t>=0?s=new ot(0):(s=new ot(e).add(t).div(2),s=s.sub(new ot(s).mod(l)));var c=Math.ceil(s.sub(e).div(l).toNumber()),f=Math.ceil(new ot(t).sub(s).div(l).toNumber()),d=c+f+1;return d>n?A4(e,t,n,r,i+1):(d<n&&(f=t>0?f+(n-d):f,c=t>0?c:c+(n-d)),{step:l,tickMin:s.sub(new ot(c).mul(l)),tickMax:s.add(new ot(f).mul(l))})}function bne(e){var t=wc(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Math.max(i,2),c=_4([n,r]),f=wc(c,2),d=f[0],m=f[1];if(d===-1/0||m===1/0){var p=m===1/0?[d].concat(c1(s1(0,i-1).map(function(){return 1/0}))):[].concat(c1(s1(0,i-1).map(function(){return-1/0})),[m]);return n>r?u1(p):p}if(d===m)return yne(d,i,l);var y=A4(d,m,s,l),x=y.step,O=y.tickMin,w=y.tickMax,S=fm.rangeStep(O,w.add(new ot(.1).mul(x)),x);return n>r?u1(S):S}function xne(e,t){var n=wc(e,2),r=n[0],i=n[1],l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=_4([r,i]),c=wc(s,2),f=c[0],d=c[1];if(f===-1/0||d===1/0)return[r,i];if(f===d)return[f];var m=Math.max(t,2),p=E4(new ot(d).sub(f).div(m-1),l,0),y=[].concat(c1(fm.rangeStep(new ot(f),new ot(d).sub(new ot(.99).mul(p)),p)),[d]);return r>i?u1(y):y}var wne=S4(bne),Sne=S4(xne),One="Invariant failed";function Ao(e,t){throw new Error(One)}var _ne=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function rs(e){"@babel/helpers - typeof";return rs=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},rs(e)}function Uh(){return Uh=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},Uh.apply(this,arguments)}function Ene(e,t){return Cne(e)||jne(e,t)||Tne(e,t)||Ane()}function Ane(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
315
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tne(e,t){if(e){if(typeof e=="string")return zR(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 zR(e,t)}}function zR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jne(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function Cne(e){if(Array.isArray(e))return e}function Mne(e,t){if(e==null)return{};var n=Nne(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nne(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 Rne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pne(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,C4(r.key),r)}}function Dne(e,t,n){return t&&Pne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kne(e,t,n){return t=Hh(t),$ne(e,T4()?Reflect.construct(t,n||[],Hh(e).constructor):t.apply(e,n))}function $ne(e,t){if(t&&(rs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lne(e)}function Lne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(T4=function(){return!!e})()}function Hh(e){return Hh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hh(e)}function Ine(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,i){return r.__proto__=i,r},d1(e,t)}function j4(e,t,n){return t=C4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C4(e){var t=zne(e,"string");return rs(t)=="symbol"?t:t+""}function zne(e,t){if(rs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ff=(function(e){function t(){return Rne(this,t),kne(this,t,arguments)}return Ine(t,e),Dne(t,[{key:"render",value:function(){var r=this.props,i=r.offset,l=r.layout,s=r.width,c=r.dataKey,f=r.data,d=r.dataPointFormatter,m=r.xAxis,p=r.yAxis,y=Mne(r,_ne),x=qe(y,!1);this.props.direction==="x"&&m.type!=="number"&&Ao();var O=f.map(function(w){var S=d(w,c),E=S.x,T=S.y,A=S.value,M=S.errorVal;if(!M)return null;var j=[],N,R;if(Array.isArray(M)){var k=Ene(M,2);N=k[0],R=k[1]}else N=R=M;if(l==="vertical"){var I=m.scale,V=T+i,z=V+s,B=V-s,G=I(A-N),K=I(A+R);j.push({x1:K,y1:z,x2:K,y2:B}),j.push({x1:G,y1:V,x2:K,y2:V}),j.push({x1:G,y1:z,x2:G,y2:B})}else if(l==="horizontal"){var X=p.scale,D=E+i,U=D-s,Y=D+s,W=X(A-N),oe=X(A+R);j.push({x1:U,y1:oe,x2:Y,y2:oe}),j.push({x1:D,y1:W,x2:D,y2:oe}),j.push({x1:U,y1:W,x2:Y,y2:W})}return L.createElement(jt,Uh({className:"recharts-errorBar",key:"bar-".concat(j.map(function($){return"".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))},x),j.map(function($){return L.createElement("line",Uh({},$,{key:"line-".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))}))});return L.createElement(jt,{className:"recharts-errorBars"},O)}}])})(L.Component);j4(ff,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});j4(ff,"displayName","ErrorBar");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 BR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function oo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BR(Object(n),!0).forEach(function(r){Bne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bne(e,t,n){return t=qne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qne(e){var t=Une(e,"string");return Sc(t)=="symbol"?t:t+""}function Une(e,t){if(Sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var M4=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,l=t.legendContent,s=Hn(n,vo);if(!s)return null;var c=vo.defaultProps,f=c!==void 0?oo(oo({},c),s.props):{},d;return s.props&&s.props.payload?d=s.props&&s.props.payload:l==="children"?d=(r||[]).reduce(function(m,p){var y=p.item,x=p.props,O=x.sectors||x.data||[];return m.concat(O.map(function(w){return{type:s.props.iconType||y.props.legendType,value:w.name,color:w.fill,payload:w}}))},[]):d=(r||[]).map(function(m){var p=m.item,y=p.type.defaultProps,x=y!==void 0?oo(oo({},y),p.props):{},O=x.dataKey,w=x.name,S=x.legendType,E=x.hide;return{inactive:E,dataKey:O,type:f.iconType||S||"square",color:kO(p),value:w||O,payload:x}}),oo(oo(oo({},f),vo.getWithHeight(s,i)),{},{payload:d,item:s})};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 qR(e){return Vne(e)||Gne(e)||Fne(e)||Hne()}function Hne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
316
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fne(e,t){if(e){if(typeof e=="string")return h1(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 h1(e,t)}}function Gne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vne(e){if(Array.isArray(e))return h1(e)}function h1(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 UR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UR(Object(n),!0).forEach(function(r){Fl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fl(e,t,n){return t=Yne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yne(e){var t=Wne(e,"string");return Oc(t)=="symbol"?t:t+""}function Wne(e,t){if(Oc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Oc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yn(e,t,n){return Le(e)||Le(t)?n:Ht(t)?fr(e,t,n):De(t)?t(e):n}function Qu(e,t,n,r){var i=Vte(e,function(c){return Yn(c,t)});if(n==="number"){var l=i.filter(function(c){return ve(c)||parseFloat(c)});return l.length?[sm(l),lm(l)]:[1/0,-1/0]}var s=r?i.filter(function(c){return!Le(c)}):i;return s.map(function(c){return Ht(c)||c instanceof Date?c:""})}var Kne=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,l=arguments.length>3?arguments[3]:void 0,s=-1,c=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(c<=1)return 0;if(l&&l.axisType==="angleAxis"&&Math.abs(Math.abs(l.range[1]-l.range[0])-360)<=1e-6)for(var f=l.range,d=0;d<c;d++){var m=d>0?i[d-1].coordinate:i[c-1].coordinate,p=i[d].coordinate,y=d>=c-1?i[0].coordinate:i[d+1].coordinate,x=void 0;if(jr(p-m)!==jr(y-p)){var O=[];if(jr(y-p)===jr(f[1]-f[0])){x=y;var w=p+f[1]-f[0];O[0]=Math.min(w,(w+m)/2),O[1]=Math.max(w,(w+m)/2)}else{x=m;var S=y+f[1]-f[0];O[0]=Math.min(p,(S+p)/2),O[1]=Math.max(p,(S+p)/2)}var E=[Math.min(p,(x+p)/2),Math.max(p,(x+p)/2)];if(t>E[0]&&t<=E[1]||t>=O[0]&&t<=O[1]){s=i[d].index;break}}else{var T=Math.min(m,y),A=Math.max(m,y);if(t>(T+p)/2&&t<=(A+p)/2){s=i[d].index;break}}}else for(var M=0;M<c;M++)if(M===0&&t<=(r[M].coordinate+r[M+1].coordinate)/2||M>0&&M<c-1&&t>(r[M].coordinate+r[M-1].coordinate)/2&&t<=(r[M].coordinate+r[M+1].coordinate)/2||M===c-1&&t>(r[M].coordinate+r[M-1].coordinate)/2){s=r[M].index;break}return s},kO=function(t){var n,r=t,i=r.type.displayName,l=(n=t.type)!==null&&n!==void 0&&n.defaultProps?_t(_t({},t.type.defaultProps),t.props):t.props,s=l.stroke,c=l.fill,f;switch(i){case"Line":f=s;break;case"Area":case"Radar":f=s&&s!=="none"?s:c;break;default:f=c;break}return f},Xne=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,l=i===void 0?{}:i;if(!l)return{};for(var s={},c=Object.keys(l),f=0,d=c.length;f<d;f++)for(var m=l[c[f]].stackGroups,p=Object.keys(m),y=0,x=p.length;y<x;y++){var O=m[p[y]],w=O.items,S=O.cateAxisId,E=w.filter(function(R){return Ma(R.type).indexOf("Bar")>=0});if(E&&E.length){var T=E[0].type.defaultProps,A=T!==void 0?_t(_t({},T),E[0].props):E[0].props,M=A.barSize,j=A[S];s[j]||(s[j]=[]);var N=Le(M)?n:M;s[j].push({item:E[0],stackList:E.slice(1),barSize:Le(N)?void 0:_o(N,r,0)})}}return s},Qne=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,l=t.sizeList,s=l===void 0?[]:l,c=t.maxBarSize,f=s.length;if(f<1)return null;var d=_o(n,i,0,!0),m,p=[];if(s[0].barSize===+s[0].barSize){var y=!1,x=i/f,O=s.reduce(function(M,j){return M+j.barSize||0},0);O+=(f-1)*d,O>=i&&(O-=(f-1)*d,d=0),O>=i&&x>0&&(y=!0,x*=.9,O=f*x);var w=(i-O)/2>>0,S={offset:w-d,size:0};m=s.reduce(function(M,j){var N={item:j.item,position:{offset:S.offset+S.size+d,size:y?x:j.barSize}},R=[].concat(qR(M),[N]);return S=R[R.length-1].position,j.stackList&&j.stackList.length&&j.stackList.forEach(function(k){R.push({item:k,position:S})}),R},p)}else{var E=_o(r,i,0,!0);i-2*E-(f-1)*d<=0&&(d=0);var T=(i-2*E-(f-1)*d)/f;T>1&&(T>>=0);var A=c===+c?Math.min(T,c):T;m=s.reduce(function(M,j,N){var R=[].concat(qR(M),[{item:j.item,position:{offset:E+(T+d)*N+(T-A)/2,size:A}}]);return j.stackList&&j.stackList.length&&j.stackList.forEach(function(k){R.push({item:k,position:R[R.length-1].position})}),R},p)}return m},Zne=function(t,n,r,i){var l=r.children,s=r.width,c=r.margin,f=s-(c.left||0)-(c.right||0),d=M4({children:l,legendWidth:f});if(d){var m=i||{},p=m.width,y=m.height,x=d.align,O=d.verticalAlign,w=d.layout;if((w==="vertical"||w==="horizontal"&&O==="middle")&&x!=="center"&&ve(t[x]))return _t(_t({},t),{},Fl({},x,t[x]+(p||0)));if((w==="horizontal"||w==="vertical"&&x==="center")&&O!=="middle"&&ve(t[O]))return _t(_t({},t),{},Fl({},O,t[O]+(y||0)))}return t},Jne=function(t,n,r){return Le(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},N4=function(t,n,r,i,l){var s=n.props.children,c=dr(s,ff).filter(function(d){return Jne(i,l,d.props.direction)});if(c&&c.length){var f=c.map(function(d){return d.props.dataKey});return t.reduce(function(d,m){var p=Yn(m,r);if(Le(p))return d;var y=Array.isArray(p)?[sm(p),lm(p)]:[p,p],x=f.reduce(function(O,w){var S=Yn(m,w,0),E=y[0]-Math.abs(Array.isArray(S)?S[0]:S),T=y[1]+Math.abs(Array.isArray(S)?S[1]:S);return[Math.min(E,O[0]),Math.max(T,O[1])]},[1/0,-1/0]);return[Math.min(x[0],d[0]),Math.max(x[1],d[1])]},[1/0,-1/0])}return null},ere=function(t,n,r,i,l){var s=n.map(function(c){return N4(t,c,r,l,i)}).filter(function(c){return!Le(c)});return s&&s.length?s.reduce(function(c,f){return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]):null},R4=function(t,n,r,i,l){var s=n.map(function(f){var d=f.props.dataKey;return r==="number"&&d&&N4(t,f,d,i)||Qu(t,d,r,l)});if(r==="number")return s.reduce(function(f,d){return[Math.min(f[0],d[0]),Math.max(f[1],d[1])]},[1/0,-1/0]);var c={};return s.reduce(function(f,d){for(var m=0,p=d.length;m<p;m++)c[d[m]]||(c[d[m]]=!0,f.push(d[m]));return f},[])},P4=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},D4=function(t,n,r,i){if(i)return t.map(function(f){return f.coordinate});var l,s,c=t.map(function(f){return f.coordinate===n&&(l=!0),f.coordinate===r&&(s=!0),f.coordinate});return l||c.push(n),s||c.push(r),c},ja=function(t,n,r){if(!t)return null;var i=t.scale,l=t.duplicateDomain,s=t.type,c=t.range,f=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,d=(n||r)&&s==="category"&&i.bandwidth?i.bandwidth()/f:0;if(d=t.axisType==="angleAxis"&&(c==null?void 0:c.length)>=2?jr(c[0]-c[1])*2*d:d,n&&(t.ticks||t.niceTicks)){var m=(t.ticks||t.niceTicks).map(function(p){var y=l?l.indexOf(p):p;return{coordinate:i(y)+d,value:p,offset:d}});return m.filter(function(p){return!rf(p.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(p,y){return{coordinate:i(p)+d,value:p,index:y,offset:d}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(p){return{coordinate:i(p)+d,value:p,offset:d}}):i.domain().map(function(p,y){return{coordinate:i(p)+d,value:l?l[p]:p,index:y,offset:d}})},Rx=new WeakMap,Hd=function(t,n){if(typeof n!="function")return t;Rx.has(t)||Rx.set(t,new WeakMap);var r=Rx.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},tre=function(t,n,r){var i=t.scale,l=t.type,s=t.layout,c=t.axisType;if(i==="auto")return s==="radial"&&c==="radiusAxis"?{scale:mc(),realScaleType:"band"}:s==="radial"&&c==="angleAxis"?{scale:Lh(),realScaleType:"linear"}:l==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Xu(),realScaleType:"point"}:l==="category"?{scale:mc(),realScaleType:"band"}:{scale:Lh(),realScaleType:"linear"};if(Oo(i)){var f="scale".concat(Wp(i));return{scale:(TR[f]||Xu)(),realScaleType:TR[f]?f:"point"}}return De(i)?{scale:i}:{scale:Xu(),realScaleType:"point"}},HR=1e-4,nre=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),l=Math.min(i[0],i[1])-HR,s=Math.max(i[0],i[1])+HR,c=t(n[0]),f=t(n[r-1]);(c<l||c>s||f<l||f>s)&&t.domain([n[0],n[r-1]])}},rre=function(t,n){if(!t)return null;for(var r=0,i=t.length;r<i;r++)if(t[r].item===n)return t[r].position;return null},are=function(t,n){if(!n||n.length!==2||!ve(n[0])||!ve(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),l=[t[0],t[1]];return(!ve(t[0])||t[0]<r)&&(l[0]=r),(!ve(t[1])||t[1]>i)&&(l[1]=i),l[0]>i&&(l[0]=i),l[1]<r&&(l[1]=r),l},ire=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var l=0,s=0,c=0;c<n;++c){var f=rf(t[c][r][1])?t[c][r][0]:t[c][r][1];f>=0?(t[c][r][0]=l,t[c][r][1]=l+f,l=t[c][r][1]):(t[c][r][0]=s,t[c][r][1]=s+f,s=t[c][r][1])}},ore=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var l=0,s=0;s<n;++s){var c=rf(t[s][r][1])?t[s][r][0]:t[s][r][1];c>=0?(t[s][r][0]=l,t[s][r][1]=l+c,l=t[s][r][1]):(t[s][r][0]=0,t[s][r][1]=0)}},lre={sign:ire,expand:HK,none:Kl,silhouette:FK,wiggle:GK,positive:ore},sre=function(t,n,r){var i=n.map(function(c){return c.props.dataKey}),l=lre[r],s=UK().keys(i).value(function(c,f){return+Yn(c,f,0)}).order(Hw).offset(l);return s(t)},ure=function(t,n,r,i,l,s){if(!t)return null;var c=s?n.reverse():n,f={},d=c.reduce(function(p,y){var x,O=(x=y.type)!==null&&x!==void 0&&x.defaultProps?_t(_t({},y.type.defaultProps),y.props):y.props,w=O.stackId,S=O.hide;if(S)return p;var E=O[r],T=p[E]||{hasStack:!1,stackGroups:{}};if(Ht(w)){var A=T.stackGroups[w]||{numericAxisId:r,cateAxisId:i,items:[]};A.items.push(y),T.hasStack=!0,T.stackGroups[w]=A}else T.stackGroups[af("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[y]};return _t(_t({},p),{},Fl({},E,T))},f),m={};return Object.keys(d).reduce(function(p,y){var x=d[y];if(x.hasStack){var O={};x.stackGroups=Object.keys(x.stackGroups).reduce(function(w,S){var E=x.stackGroups[S];return _t(_t({},w),{},Fl({},S,{numericAxisId:r,cateAxisId:i,items:E.items,stackedData:sre(t,E.items,l)}))},O)}return _t(_t({},p),{},Fl({},y,x))},m)},cre=function(t,n){var r=n.realScaleType,i=n.type,l=n.tickCount,s=n.originalDomain,c=n.allowDecimals,f=r||n.scale;if(f!=="auto"&&f!=="linear")return null;if(l&&i==="number"&&s&&(s[0]==="auto"||s[1]==="auto")){var d=t.domain();if(!d.length)return null;var m=wne(d,l,c);return t.domain([sm(m),lm(m)]),{niceTicks:m}}if(l&&i==="number"){var p=t.domain(),y=Sne(p,l,c);return{niceTicks:y}}return null};function FR(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,l=e.index,s=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Le(i[t.dataKey])){var c=gh(n,"value",i[t.dataKey]);if(c)return c.coordinate+r/2}return n[l]?n[l].coordinate+r/2:null}var f=Yn(i,Le(s)?t.dataKey:s);return Le(f)?null:t.scale(f)}var GR=function(t){var n=t.axis,r=t.ticks,i=t.offset,l=t.bandSize,s=t.entry,c=t.index;if(n.type==="category")return r[c]?r[c].coordinate+i:null;var f=Yn(s,n.dataKey,n.domain[c]);return Le(f)?null:n.scale(f)-l/2+i},fre=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),l=Math.max(r[0],r[1]);return i<=0&&l>=0?0:l<0?l:i}return r[0]},dre=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?_t(_t({},t.type.defaultProps),t.props):t.props,l=i.stackId;if(Ht(l)){var s=n[l];if(s){var c=s.items.indexOf(t);return c>=0?s.stackedData[c]:null}}return null},hre=function(t){return t.reduce(function(n,r){return[sm(r.concat([n[0]]).filter(ve)),lm(r.concat([n[1]]).filter(ve))]},[1/0,-1/0])},k4=function(t,n,r){return Object.keys(t).reduce(function(i,l){var s=t[l],c=s.stackedData,f=c.reduce(function(d,m){var p=hre(m.slice(n,r+1));return[Math.min(d[0],p[0]),Math.max(d[1],p[1])]},[1/0,-1/0]);return[Math.min(f[0],i[0]),Math.max(f[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},VR=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,YR=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,p1=function(t,n,r){if(De(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(ve(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(VR.test(t[0])){var l=+VR.exec(t[0])[1];i[0]=n[0]-l}else De(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(ve(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(YR.test(t[1])){var s=+YR.exec(t[1])[1];i[1]=n[1]+s}else De(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Fh=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var l=uO(n,function(p){return p.coordinate}),s=1/0,c=1,f=l.length;c<f;c++){var d=l[c],m=l[c-1];s=Math.min((d.coordinate||0)-(m.coordinate||0),s)}return s===1/0?0:s}return r?void 0:0},WR=function(t,n,r){return!t||!t.length||um(t,fr(r,"type.defaultProps.domain"))?n:t},$4=function(t,n){var r=t.type.defaultProps?_t(_t({},t.type.defaultProps),t.props):t.props,i=r.dataKey,l=r.name,s=r.unit,c=r.formatter,f=r.tooltipType,d=r.chartType,m=r.hide;return _t(_t({},qe(t,!1)),{},{dataKey:i,unit:s,formatter:c,name:l||i,color:kO(t),value:Yn(n,i),type:f,payload:n,chartType:d,hide:m})};function _c(e){"@babel/helpers - typeof";return _c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_c(e)}function KR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function XR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KR(Object(n),!0).forEach(function(r){pre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pre(e,t,n){return t=mre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mre(e){var t=vre(e,"string");return _c(t)=="symbol"?t:t+""}function vre(e,t){if(_c(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gh=Math.PI/180,gre=function(t){return t*180/Math.PI},on=function(t,n,r,i){return{x:t+Math.cos(-Gh*i)*r,y:n+Math.sin(-Gh*i)*r}},yre=function(t,n){var r=t.x,i=t.y,l=n.x,s=n.y;return Math.sqrt(Math.pow(r-l,2)+Math.pow(i-s,2))},bre=function(t,n){var r=t.x,i=t.y,l=n.cx,s=n.cy,c=yre({x:r,y:i},{x:l,y:s});if(c<=0)return{radius:c};var f=(r-l)/c,d=Math.acos(f);return i>s&&(d=2*Math.PI-d),{radius:c,angle:gre(d),angleInRadian:d}},xre=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),l=Math.floor(r/360),s=Math.min(i,l);return{startAngle:n-s*360,endAngle:r-s*360}},wre=function(t,n){var r=n.startAngle,i=n.endAngle,l=Math.floor(r/360),s=Math.floor(i/360),c=Math.min(l,s);return t+c*360},QR=function(t,n){var r=t.x,i=t.y,l=bre({x:r,y:i},n),s=l.radius,c=l.angle,f=n.innerRadius,d=n.outerRadius;if(s<f||s>d)return!1;if(s===0)return!0;var m=xre(n),p=m.startAngle,y=m.endAngle,x=c,O;if(p<=y){for(;x>y;)x-=360;for(;x<p;)x+=360;O=x>=p&&x<=y}else{for(;x>p;)x-=360;for(;x<y;)x+=360;O=x>=y&&x<=p}return O?XR(XR({},n),{},{radius:s,angle:wre(x,n)}):null};function Ec(e){"@babel/helpers - typeof";return Ec=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ec(e)}var Sre=["offset"];function Ore(e){return Tre(e)||Are(e)||Ere(e)||_re()}function _re(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
317
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ere(e,t){if(e){if(typeof e=="string")return m1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m1(e,t)}}function Are(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Tre(e){if(Array.isArray(e))return m1(e)}function m1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jre(e,t){if(e==null)return{};var n=Cre(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cre(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 ZR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function qt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZR(Object(n),!0).forEach(function(r){Mre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mre(e,t,n){return t=Nre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nre(e){var t=Rre(e,"string");return Ec(t)=="symbol"?t:t+""}function Rre(e,t){if(Ec(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ec(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ac(){return Ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ac.apply(this,arguments)}var Pre=function(t){var n=t.value,r=t.formatter,i=Le(t.children)?n:t.children;return De(r)?r(i):i},Dre=function(t,n){var r=jr(n-t),i=Math.min(Math.abs(n-t),360);return r*i},kre=function(t,n,r){var i=t.position,l=t.viewBox,s=t.offset,c=t.className,f=l,d=f.cx,m=f.cy,p=f.innerRadius,y=f.outerRadius,x=f.startAngle,O=f.endAngle,w=f.clockWise,S=(p+y)/2,E=Dre(x,O),T=E>=0?1:-1,A,M;i==="insideStart"?(A=x+T*s,M=w):i==="insideEnd"?(A=O-T*s,M=!w):i==="end"&&(A=O+T*s,M=w),M=E<=0?M:!M;var j=on(d,m,S,A),N=on(d,m,S,A+(M?1:-1)*359),R="M".concat(j.x,",").concat(j.y,`
318
- A`).concat(S,",").concat(S,",0,1,").concat(M?0:1,`,
319
- `).concat(N.x,",").concat(N.y),k=Le(t.id)?af("recharts-radial-line-"):t.id;return L.createElement("text",Ac({},r,{dominantBaseline:"central",className:Ue("recharts-radial-bar-label",c)}),L.createElement("defs",null,L.createElement("path",{id:k,d:R})),L.createElement("textPath",{xlinkHref:"#".concat(k)},n))},$re=function(t){var n=t.viewBox,r=t.offset,i=t.position,l=n,s=l.cx,c=l.cy,f=l.innerRadius,d=l.outerRadius,m=l.startAngle,p=l.endAngle,y=(m+p)/2;if(i==="outside"){var x=on(s,c,d+r,y),O=x.x,w=x.y;return{x:O,y:w,textAnchor:O>=s?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:s,y:c,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:s,y:c,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:s,y:c,textAnchor:"middle",verticalAnchor:"end"};var S=(f+d)/2,E=on(s,c,S,y),T=E.x,A=E.y;return{x:T,y:A,textAnchor:"middle",verticalAnchor:"middle"}},Lre=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,l=t.position,s=n,c=s.x,f=s.y,d=s.width,m=s.height,p=m>=0?1:-1,y=p*i,x=p>0?"end":"start",O=p>0?"start":"end",w=d>=0?1:-1,S=w*i,E=w>0?"end":"start",T=w>0?"start":"end";if(l==="top"){var A={x:c+d/2,y:f-p*i,textAnchor:"middle",verticalAnchor:x};return qt(qt({},A),r?{height:Math.max(f-r.y,0),width:d}:{})}if(l==="bottom"){var M={x:c+d/2,y:f+m+y,textAnchor:"middle",verticalAnchor:O};return qt(qt({},M),r?{height:Math.max(r.y+r.height-(f+m),0),width:d}:{})}if(l==="left"){var j={x:c-S,y:f+m/2,textAnchor:E,verticalAnchor:"middle"};return qt(qt({},j),r?{width:Math.max(j.x-r.x,0),height:m}:{})}if(l==="right"){var N={x:c+d+S,y:f+m/2,textAnchor:T,verticalAnchor:"middle"};return qt(qt({},N),r?{width:Math.max(r.x+r.width-N.x,0),height:m}:{})}var R=r?{width:d,height:m}:{};return l==="insideLeft"?qt({x:c+S,y:f+m/2,textAnchor:T,verticalAnchor:"middle"},R):l==="insideRight"?qt({x:c+d-S,y:f+m/2,textAnchor:E,verticalAnchor:"middle"},R):l==="insideTop"?qt({x:c+d/2,y:f+y,textAnchor:"middle",verticalAnchor:O},R):l==="insideBottom"?qt({x:c+d/2,y:f+m-y,textAnchor:"middle",verticalAnchor:x},R):l==="insideTopLeft"?qt({x:c+S,y:f+y,textAnchor:T,verticalAnchor:O},R):l==="insideTopRight"?qt({x:c+d-S,y:f+y,textAnchor:E,verticalAnchor:O},R):l==="insideBottomLeft"?qt({x:c+S,y:f+m-y,textAnchor:T,verticalAnchor:x},R):l==="insideBottomRight"?qt({x:c+d-S,y:f+m-y,textAnchor:E,verticalAnchor:x},R):js(l)&&(ve(l.x)||co(l.x))&&(ve(l.y)||co(l.y))?qt({x:c+_o(l.x,d),y:f+_o(l.y,m),textAnchor:"end",verticalAnchor:"end"},R):qt({x:c+d/2,y:f+m/2,textAnchor:"middle",verticalAnchor:"middle"},R)},Ire=function(t){return"cx"in t&&ve(t.cx)};function dn(e){var t=e.offset,n=t===void 0?5:t,r=jre(e,Sre),i=qt({offset:n},r),l=i.viewBox,s=i.position,c=i.value,f=i.children,d=i.content,m=i.className,p=m===void 0?"":m,y=i.textBreakAll;if(!l||Le(c)&&Le(f)&&!_.isValidElement(d)&&!De(d))return null;if(_.isValidElement(d))return _.cloneElement(d,i);var x;if(De(d)){if(x=_.createElement(d,i),_.isValidElement(x))return x}else x=Pre(i);var O=Ire(l),w=qe(i,!0);if(O&&(s==="insideStart"||s==="insideEnd"||s==="end"))return kre(i,x,w);var S=O?$re(i):Lre(i);return L.createElement(Mh,Ac({className:Ue("recharts-label",p)},w,S,{breakAll:y}),x)}dn.displayName="Label";var L4=function(t){var n=t.cx,r=t.cy,i=t.angle,l=t.startAngle,s=t.endAngle,c=t.r,f=t.radius,d=t.innerRadius,m=t.outerRadius,p=t.x,y=t.y,x=t.top,O=t.left,w=t.width,S=t.height,E=t.clockWise,T=t.labelViewBox;if(T)return T;if(ve(w)&&ve(S)){if(ve(p)&&ve(y))return{x:p,y,width:w,height:S};if(ve(x)&&ve(O))return{x,y:O,width:w,height:S}}return ve(p)&&ve(y)?{x:p,y,width:0,height:0}:ve(n)&&ve(r)?{cx:n,cy:r,startAngle:l||i||0,endAngle:s||i||0,innerRadius:d||0,outerRadius:m||f||c||0,clockWise:E}:t.viewBox?t.viewBox:{}},zre=function(t,n){return t?t===!0?L.createElement(dn,{key:"label-implicit",viewBox:n}):Ht(t)?L.createElement(dn,{key:"label-implicit",viewBox:n,value:t}):_.isValidElement(t)?t.type===dn?_.cloneElement(t,{key:"label-implicit",viewBox:n}):L.createElement(dn,{key:"label-implicit",content:t,viewBox:n}):De(t)?L.createElement(dn,{key:"label-implicit",content:t,viewBox:n}):js(t)?L.createElement(dn,Ac({viewBox:n},t,{key:"label-implicit"})):null:null},Bre=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 i=t.children,l=L4(t),s=dr(i,dn).map(function(f,d){return _.cloneElement(f,{viewBox:n||l,key:"label-".concat(d)})});if(!r)return s;var c=zre(t.label,n||l);return[c].concat(Ore(s))};dn.parseViewBox=L4;dn.renderCallByParent=Bre;var Px,JR;function qre(){if(JR)return Px;JR=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return Px=e,Px}var Ure=qre();const Hre=lt(Ure);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 Fre=["valueAccessor"],Gre=["data","dataKey","clockWise","id","textBreakAll"];function Vre(e){return Xre(e)||Kre(e)||Wre(e)||Yre()}function Yre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
320
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wre(e,t){if(e){if(typeof e=="string")return v1(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 v1(e,t)}}function Kre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Xre(e){if(Array.isArray(e))return v1(e)}function v1(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 Vh(){return Vh=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},Vh.apply(this,arguments)}function eP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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){Qre(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 Qre(e,t,n){return t=Zre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zre(e){var t=Jre(e,"string");return Tc(t)=="symbol"?t:t+""}function Jre(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(t==="string"?String:Number)(e)}function nP(e,t){if(e==null)return{};var n=eae(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eae(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 tae=function(t){return Array.isArray(t.value)?Hre(t.value):t.value};function Ei(e){var t=e.valueAccessor,n=t===void 0?tae:t,r=nP(e,Fre),i=r.data,l=r.dataKey,s=r.clockWise,c=r.id,f=r.textBreakAll,d=nP(r,Gre);return!i||!i.length?null:L.createElement(jt,{className:"recharts-label-list"},i.map(function(m,p){var y=Le(l)?n(m,p):Yn(m&&m.payload,l),x=Le(c)?{}:{id:"".concat(c,"-").concat(p)};return L.createElement(dn,Vh({},qe(m,!0),d,x,{parentViewBox:m.parentViewBox,value:y,textBreakAll:f,viewBox:dn.parseViewBox(Le(s)?m:tP(tP({},m),{},{clockWise:s})),key:"label-".concat(p),index:p}))}))}Ei.displayName="LabelList";function nae(e,t){return e?e===!0?L.createElement(Ei,{key:"labelList-implicit",data:t}):L.isValidElement(e)||De(e)?L.createElement(Ei,{key:"labelList-implicit",data:t,content:e}):js(e)?L.createElement(Ei,Vh({data:t},e,{key:"labelList-implicit"})):null:null}function rae(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,i=dr(r,Ei).map(function(s,c){return _.cloneElement(s,{data:t,key:"labelList-".concat(c)})});if(!n)return i;var l=nae(e.label,t);return[l].concat(Vre(i))}Ei.renderCallByParent=rae;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 g1(){return g1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g1.apply(this,arguments)}function rP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function aP(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){aae(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 aae(e,t,n){return t=iae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iae(e){var t=oae(e,"string");return jc(t)=="symbol"?t:t+""}function oae(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 lae=function(t,n){var r=jr(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},Fd=function(t){var n=t.cx,r=t.cy,i=t.radius,l=t.angle,s=t.sign,c=t.isExternal,f=t.cornerRadius,d=t.cornerIsExternal,m=f*(c?1:-1)+i,p=Math.asin(f/m)/Gh,y=d?l:l+s*p,x=on(n,r,m,y),O=on(n,r,i,y),w=d?l-s*p:l,S=on(n,r,m*Math.cos(p*Gh),w);return{center:x,circleTangency:O,lineTangency:S,theta:p}},I4=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,l=t.outerRadius,s=t.startAngle,c=t.endAngle,f=lae(s,c),d=s+f,m=on(n,r,l,s),p=on(n,r,l,d),y="M ".concat(m.x,",").concat(m.y,`
321
- A `).concat(l,",").concat(l,`,0,
322
- `).concat(+(Math.abs(f)>180),",").concat(+(s>d),`,
323
- `).concat(p.x,",").concat(p.y,`
324
- `);if(i>0){var x=on(n,r,i,s),O=on(n,r,i,d);y+="L ".concat(O.x,",").concat(O.y,`
325
- A `).concat(i,",").concat(i,`,0,
326
- `).concat(+(Math.abs(f)>180),",").concat(+(s<=d),`,
327
- `).concat(x.x,",").concat(x.y," Z")}else y+="L ".concat(n,",").concat(r," Z");return y},sae=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,l=t.outerRadius,s=t.cornerRadius,c=t.forceCornerRadius,f=t.cornerIsExternal,d=t.startAngle,m=t.endAngle,p=jr(m-d),y=Fd({cx:n,cy:r,radius:l,angle:d,sign:p,cornerRadius:s,cornerIsExternal:f}),x=y.circleTangency,O=y.lineTangency,w=y.theta,S=Fd({cx:n,cy:r,radius:l,angle:m,sign:-p,cornerRadius:s,cornerIsExternal:f}),E=S.circleTangency,T=S.lineTangency,A=S.theta,M=f?Math.abs(d-m):Math.abs(d-m)-w-A;if(M<0)return c?"M ".concat(O.x,",").concat(O.y,`
328
- a`).concat(s,",").concat(s,",0,0,1,").concat(s*2,`,0
329
- a`).concat(s,",").concat(s,",0,0,1,").concat(-s*2,`,0
330
- `):I4({cx:n,cy:r,innerRadius:i,outerRadius:l,startAngle:d,endAngle:m});var j="M ".concat(O.x,",").concat(O.y,`
331
- A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(x.x,",").concat(x.y,`
332
- A`).concat(l,",").concat(l,",0,").concat(+(M>180),",").concat(+(p<0),",").concat(E.x,",").concat(E.y,`
333
- A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(T.x,",").concat(T.y,`
334
- `);if(i>0){var N=Fd({cx:n,cy:r,radius:i,angle:d,sign:p,isExternal:!0,cornerRadius:s,cornerIsExternal:f}),R=N.circleTangency,k=N.lineTangency,I=N.theta,V=Fd({cx:n,cy:r,radius:i,angle:m,sign:-p,isExternal:!0,cornerRadius:s,cornerIsExternal:f}),z=V.circleTangency,B=V.lineTangency,G=V.theta,K=f?Math.abs(d-m):Math.abs(d-m)-I-G;if(K<0&&s===0)return"".concat(j,"L").concat(n,",").concat(r,"Z");j+="L".concat(B.x,",").concat(B.y,`
335
- A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(z.x,",").concat(z.y,`
336
- A`).concat(i,",").concat(i,",0,").concat(+(K>180),",").concat(+(p>0),",").concat(R.x,",").concat(R.y,`
337
- A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(k.x,",").concat(k.y,"Z")}else j+="L".concat(n,",").concat(r,"Z");return j},uae={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},z4=function(t){var n=aP(aP({},uae),t),r=n.cx,i=n.cy,l=n.innerRadius,s=n.outerRadius,c=n.cornerRadius,f=n.forceCornerRadius,d=n.cornerIsExternal,m=n.startAngle,p=n.endAngle,y=n.className;if(s<l||m===p)return null;var x=Ue("recharts-sector",y),O=s-l,w=_o(c,O,0,!0),S;return w>0&&Math.abs(m-p)<360?S=sae({cx:r,cy:i,innerRadius:l,outerRadius:s,cornerRadius:Math.min(w,O/2),forceCornerRadius:f,cornerIsExternal:d,startAngle:m,endAngle:p}):S=I4({cx:r,cy:i,innerRadius:l,outerRadius:s,startAngle:m,endAngle:p}),L.createElement("path",g1({},qe(n,!0),{className:x,d:S,role:"img"}))};function Cc(e){"@babel/helpers - typeof";return Cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cc(e)}function y1(){return y1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y1.apply(this,arguments)}function iP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function oP(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){cae(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 cae(e,t,n){return t=fae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fae(e){var t=dae(e,"string");return Cc(t)=="symbol"?t:t+""}function dae(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 lP={curveBasisClosed:NK,curveBasisOpen:RK,curveBasis:MK,curveBumpX:vK,curveBumpY:gK,curveLinearClosed:PK,curveLinear:Xp,curveMonotoneX:DK,curveMonotoneY:kK,curveNatural:$K,curveStep:LK,curveStepAfter:zK,curveStepBefore:IK},Gd=function(t){return t.x===+t.x&&t.y===+t.y},Bu=function(t){return t.x},qu=function(t){return t.y},hae=function(t,n){if(De(t))return t;var r="curve".concat(Wp(t));return(r==="curveMonotone"||r==="curveBump")&&n?lP["".concat(r).concat(n==="vertical"?"Y":"X")]:lP[r]||Xp},pae=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,l=i===void 0?[]:i,s=t.baseLine,c=t.layout,f=t.connectNulls,d=f===void 0?!1:f,m=hae(r,c),p=d?l.filter(function(w){return Gd(w)}):l,y;if(Array.isArray(s)){var x=d?s.filter(function(w){return Gd(w)}):s,O=p.map(function(w,S){return oP(oP({},w),{},{base:x[S]})});return c==="vertical"?y=$d().y(qu).x1(Bu).x0(function(w){return w.base.x}):y=$d().x(Bu).y1(qu).y0(function(w){return w.base.y}),y.defined(Gd).curve(m),y(O)}return c==="vertical"&&ve(s)?y=$d().y(qu).x1(Bu).x0(s):ve(s)?y=$d().x(Bu).y1(qu).y0(s):y=HI().x(Bu).y(qu),y.defined(Gd).curve(m),y(p)},b1=function(t){var n=t.className,r=t.points,i=t.path,l=t.pathRef;if((!r||!r.length)&&!i)return null;var s=r&&r.length?pae(t):i;return _.createElement("path",y1({},qe(t,!1),yh(t),{className:Ue("recharts-curve",n),d:s,ref:l}))},Dx={exports:{}},kx,sP;function mae(){if(sP)return kx;sP=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return kx=e,kx}var $x,uP;function vae(){if(uP)return $x;uP=1;var e=mae();function t(){}function n(){}return n.resetWarningCache=t,$x=function(){function r(s,c,f,d,m,p){if(p!==e){var y=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 y.name="Invariant Violation",y}}r.isRequired=r;function i(){return r}var l={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return l.PropTypes=l,l},$x}var cP;function gae(){return cP||(cP=1,Dx.exports=vae()()),Dx.exports}var yae=gae();const Ze=lt(yae);var bae=Object.getOwnPropertyNames,xae=Object.getOwnPropertySymbols,wae=Object.prototype.hasOwnProperty;function fP(e,t){return function(r,i,l){return e(r,i,l)&&t(r,i,l)}}function Vd(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);var l=i.cache,s=l.get(n),c=l.get(r);if(s&&c)return s===r&&c===n;l.set(n,r),l.set(r,n);var f=e(n,r,i);return l.delete(n),l.delete(r),f}}function Sae(e){return e!=null?e[Symbol.toStringTag]:void 0}function dP(e){return bae(e).concat(xae(e))}var Oae=Object.hasOwn||(function(e,t){return wae.call(e,t)});function ko(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var _ae="__v",Eae="__o",Aae="_owner",hP=Object.getOwnPropertyDescriptor,pP=Object.keys;function Tae(e,t,n){var 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 jae(e,t){return ko(e.getTime(),t.getTime())}function Cae(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Mae(e,t){return e===t}function mP(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),l=e.entries(),s,c,f=0;(s=l.next())&&!s.done;){for(var d=t.entries(),m=!1,p=0;(c=d.next())&&!c.done;){if(i[p]){p++;continue}var y=s.value,x=c.value;if(n.equals(y[0],x[0],f,p,e,t,n)&&n.equals(y[1],x[1],y[0],x[0],e,t,n)){m=i[p]=!0;break}p++}if(!m)return!1;f++}return!0}var Nae=ko;function Rae(e,t,n){var r=pP(e),i=r.length;if(pP(t).length!==i)return!1;for(;i-- >0;)if(!B4(e,t,n,r[i]))return!1;return!0}function Uu(e,t,n){var r=dP(e),i=r.length;if(dP(t).length!==i)return!1;for(var l,s,c;i-- >0;)if(l=r[i],!B4(e,t,n,l)||(s=hP(e,l),c=hP(t,l),(s||c)&&(!s||!c||s.configurable!==c.configurable||s.enumerable!==c.enumerable||s.writable!==c.writable)))return!1;return!0}function Pae(e,t){return ko(e.valueOf(),t.valueOf())}function Dae(e,t){return e.source===t.source&&e.flags===t.flags}function vP(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),l=e.values(),s,c;(s=l.next())&&!s.done;){for(var f=t.values(),d=!1,m=0;(c=f.next())&&!c.done;){if(!i[m]&&n.equals(s.value,c.value,s.value,c.value,e,t,n)){d=i[m]=!0;break}m++}if(!d)return!1}return!0}function kae(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function $ae(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 B4(e,t,n,r){return(r===Aae||r===Eae||r===_ae)&&(e.$$typeof||t.$$typeof)?!0:Oae(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var Lae="[object Arguments]",Iae="[object Boolean]",zae="[object Date]",Bae="[object Error]",qae="[object Map]",Uae="[object Number]",Hae="[object Object]",Fae="[object RegExp]",Gae="[object Set]",Vae="[object String]",Yae="[object URL]",Wae=Array.isArray,gP=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,yP=Object.assign,Kae=Object.prototype.toString.call.bind(Object.prototype.toString);function Xae(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,i=e.areFunctionsEqual,l=e.areMapsEqual,s=e.areNumbersEqual,c=e.areObjectsEqual,f=e.arePrimitiveWrappersEqual,d=e.areRegExpsEqual,m=e.areSetsEqual,p=e.areTypedArraysEqual,y=e.areUrlsEqual,x=e.unknownTagComparators;return function(w,S,E){if(w===S)return!0;if(w==null||S==null)return!1;var T=typeof w;if(T!==typeof S)return!1;if(T!=="object")return T==="number"?s(w,S,E):T==="function"?i(w,S,E):!1;var A=w.constructor;if(A!==S.constructor)return!1;if(A===Object)return c(w,S,E);if(Wae(w))return t(w,S,E);if(gP!=null&&gP(w))return p(w,S,E);if(A===Date)return n(w,S,E);if(A===RegExp)return d(w,S,E);if(A===Map)return l(w,S,E);if(A===Set)return m(w,S,E);var M=Kae(w);if(M===zae)return n(w,S,E);if(M===Fae)return d(w,S,E);if(M===qae)return l(w,S,E);if(M===Gae)return m(w,S,E);if(M===Hae)return typeof w.then!="function"&&typeof S.then!="function"&&c(w,S,E);if(M===Yae)return y(w,S,E);if(M===Bae)return r(w,S,E);if(M===Lae)return c(w,S,E);if(M===Iae||M===Uae||M===Vae)return f(w,S,E);if(x){var j=x[M];if(!j){var N=Sae(w);N&&(j=x[N])}if(j)return j(w,S,E)}return!1}}function Qae(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?Uu:Tae,areDatesEqual:jae,areErrorsEqual:Cae,areFunctionsEqual:Mae,areMapsEqual:r?fP(mP,Uu):mP,areNumbersEqual:Nae,areObjectsEqual:r?Uu:Rae,arePrimitiveWrappersEqual:Pae,areRegExpsEqual:Dae,areSetsEqual:r?fP(vP,Uu):vP,areTypedArraysEqual:r?Uu:kae,areUrlsEqual:$ae,unknownTagComparators:void 0};if(n&&(i=yP({},i,n(i))),t){var l=Vd(i.areArraysEqual),s=Vd(i.areMapsEqual),c=Vd(i.areObjectsEqual),f=Vd(i.areSetsEqual);i=yP({},i,{areArraysEqual:l,areMapsEqual:s,areObjectsEqual:c,areSetsEqual:f})}return i}function Zae(e){return function(t,n,r,i,l,s,c){return e(t,n,c)}}function Jae(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,l=e.strict;if(r)return function(f,d){var m=r(),p=m.cache,y=p===void 0?t?new WeakMap:void 0:p,x=m.meta;return n(f,d,{cache:y,equals:i,meta:x,strict:l})};if(t)return function(f,d){return n(f,d,{cache:new WeakMap,equals:i,meta:void 0,strict:l})};var s={cache:void 0,equals:i,meta:void 0,strict:l};return function(f,d){return n(f,d,s)}}var eie=$i();$i({strict:!0});$i({circular:!0});$i({circular:!0,strict:!0});$i({createInternalComparator:function(){return ko}});$i({strict:!0,createInternalComparator:function(){return ko}});$i({circular:!0,createInternalComparator:function(){return ko}});$i({circular:!0,createInternalComparator:function(){return ko},strict:!0});function $i(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,l=e.strict,s=l===void 0?!1:l,c=Qae(e),f=Xae(c),d=r?r(f):Zae(f);return Jae({circular:n,comparator:f,createState:i,equals:d,strict:s})}function tie(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function bP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(l){n<0&&(n=l),l-n>t?(e(l),n=-1):tie(i)};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 nie(e){return oie(e)||iie(e)||aie(e)||rie()}function rie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
338
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aie(e,t){if(e){if(typeof e=="string")return xP(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 xP(e,t)}}function xP(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 iie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oie(e){if(Array.isArray(e))return e}function lie(){var e={},t=function(){return null},n=!1,r=function i(l){if(!n){if(Array.isArray(l)){if(!l.length)return;var s=l,c=nie(s),f=c[0],d=c.slice(1);if(typeof f=="number"){bP(i.bind(null,d),f);return}i(f),bP(i.bind(null,d));return}x1(l)==="object"&&(e=l,t(e)),typeof l=="function"&&l()}};return{stop:function(){n=!0},start:function(l){n=!1,r(l)},subscribe:function(l){return t=l,function(){t=function(){return null}}}}}function Mc(e){"@babel/helpers - typeof";return Mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mc(e)}function wP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function SP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wP(Object(n),!0).forEach(function(r){q4(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function q4(e,t,n){return t=sie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sie(e){var t=uie(e,"string");return Mc(t)==="symbol"?t:String(t)}function uie(e,t){if(Mc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cie=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(l){return i.includes(l)})})},fie=function(t){return t},die=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Zu=function(t,n){return Object.keys(n).reduce(function(r,i){return SP(SP({},r),{},q4({},i,t(i,n[i])))},{})},OP=function(t,n,r){return t.map(function(i){return"".concat(die(i)," ").concat(n,"ms ").concat(r)}).join(",")};function hie(e,t){return vie(e)||mie(e,t)||U4(e,t)||pie()}function pie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
339
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function vie(e){if(Array.isArray(e))return e}function gie(e){return xie(e)||bie(e)||U4(e)||yie()}function yie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
340
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U4(e,t){if(e){if(typeof e=="string")return w1(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 w1(e,t)}}function bie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xie(e){if(Array.isArray(e))return w1(e)}function w1(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 Yh=1e-4,H4=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},F4=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},_P=function(t,n){return function(r){var i=H4(t,n);return F4(i,r)}},wie=function(t,n){return function(r){var i=H4(t,n),l=[].concat(gie(i.map(function(s,c){return s*c}).slice(1)),[0]);return F4(l,r)}},EP=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],l=n[1],s=n[2],c=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,l=0,s=1,c=1;break;case"ease":i=.25,l=.1,s=.25,c=1;break;case"ease-in":i=.42,l=0,s=1,c=1;break;case"ease-out":i=.42,l=0,s=.58,c=1;break;case"ease-in-out":i=0,l=0,s=.58,c=1;break;default:{var f=n[0].split("(");if(f[0]==="cubic-bezier"&&f[1].split(")")[0].split(",").length===4){var d=f[1].split(")")[0].split(",").map(function(S){return parseFloat(S)}),m=hie(d,4);i=m[0],l=m[1],s=m[2],c=m[3]}}}var p=_P(i,s),y=_P(l,c),x=wie(i,s),O=function(E){return E>1?1:E<0?0:E},w=function(E){for(var T=E>1?1:E,A=T,M=0;M<8;++M){var j=p(A)-T,N=x(A);if(Math.abs(j-T)<Yh||N<Yh)return y(A);A=O(A-j/N)}return y(A)};return w.isStepper=!1,w},Sie=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,l=i===void 0?8:i,s=t.dt,c=s===void 0?17:s,f=function(m,p,y){var x=-(m-p)*r,O=y*l,w=y+(x-O)*c/1e3,S=y*c/1e3+m;return Math.abs(S-p)<Yh&&Math.abs(w)<Yh?[p,0]:[S,w]};return f.isStepper=!0,f.dt=c,f},Oie=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return EP(i);case"spring":return Sie();default:if(i.split("(")[0]==="cubic-bezier")return EP(i)}return typeof i=="function"?i:null};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 AP(e){return Aie(e)||Eie(e)||G4(e)||_ie()}function _ie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
341
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Aie(e){if(Array.isArray(e))return O1(e)}function TP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TP(Object(n),!0).forEach(function(r){S1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function S1(e,t,n){return t=Tie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tie(e){var t=jie(e,"string");return Nc(t)==="symbol"?t:String(t)}function jie(e,t){if(Nc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cie(e,t){return Rie(e)||Nie(e,t)||G4(e,t)||Mie()}function Mie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
342
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G4(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 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 Nie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function Rie(e){if(Array.isArray(e))return e}var Wh=function(t,n,r){return t+(n-t)*r},_1=function(t){var n=t.from,r=t.to;return n!==r},Pie=function e(t,n,r){var i=Zu(function(l,s){if(_1(s)){var c=t(s.from,s.to,s.velocity),f=Cie(c,2),d=f[0],m=f[1];return rn(rn({},s),{},{from:d,velocity:m})}return s},n);return r<1?Zu(function(l,s){return _1(s)?rn(rn({},s),{},{velocity:Wh(s.velocity,i[l].velocity,r),from:Wh(s.from,i[l].from,r)}):s},n):e(t,i,r-1)};const Die=(function(e,t,n,r,i){var l=cie(e,t),s=l.reduce(function(S,E){return rn(rn({},S),{},S1({},E,[e[E],t[E]]))},{}),c=l.reduce(function(S,E){return rn(rn({},S),{},S1({},E,{from:e[E],velocity:0,to:t[E]}))},{}),f=-1,d,m,p=function(){return null},y=function(){return Zu(function(E,T){return T.from},c)},x=function(){return!Object.values(c).filter(_1).length},O=function(E){d||(d=E);var T=E-d,A=T/n.dt;c=Pie(n,c,A),i(rn(rn(rn({},e),t),y())),d=E,x()||(f=requestAnimationFrame(p))},w=function(E){m||(m=E);var T=(E-m)/r,A=Zu(function(j,N){return Wh.apply(void 0,AP(N).concat([n(T)]))},s);if(i(rn(rn(rn({},e),t),A)),T<1)f=requestAnimationFrame(p);else{var M=Zu(function(j,N){return Wh.apply(void 0,AP(N).concat([n(1)]))},s);i(rn(rn(rn({},e),t),M))}};return p=n.isStepper?O:w,function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(f)}}});function as(e){"@babel/helpers - typeof";return as=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},as(e)}var kie=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function $ie(e,t){if(e==null)return{};var n=Lie(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Lie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,l;for(l=0;l<r.length;l++)i=r[l],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Lx(e){return qie(e)||Bie(e)||zie(e)||Iie()}function Iie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
343
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zie(e,t){if(e){if(typeof e=="string")return E1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E1(e,t)}}function Bie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qie(e){if(Array.isArray(e))return E1(e)}function E1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jP(Object(n),!0).forEach(function(r){Wu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wu(e,t,n){return t=V4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hie(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,V4(r.key),r)}}function Fie(e,t,n){return t&&Hie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function V4(e){var t=Gie(e,"string");return as(t)==="symbol"?t:String(t)}function Gie(e,t){if(as(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(as(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A1(e,t)}function A1(e,t){return A1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},A1(e,t)}function Yie(e){var t=Wie();return function(){var r=Kh(e),i;if(t){var l=Kh(this).constructor;i=Reflect.construct(r,arguments,l)}else i=r.apply(this,arguments);return T1(this,i)}}function T1(e,t){if(t&&(as(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return j1(e)}function j1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wie(){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 Kh(e){return Kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kh(e)}var za=(function(e){Vie(n,e);var t=Yie(n);function n(r,i){var l;Uie(this,n),l=t.call(this,r,i);var s=l.props,c=s.isActive,f=s.attributeName,d=s.from,m=s.to,p=s.steps,y=s.children,x=s.duration;if(l.handleStyleChange=l.handleStyleChange.bind(j1(l)),l.changeStyle=l.changeStyle.bind(j1(l)),!c||x<=0)return l.state={style:{}},typeof y=="function"&&(l.state={style:m}),T1(l);if(p&&p.length)l.state={style:p[0].style};else if(d){if(typeof y=="function")return l.state={style:d},T1(l);l.state={style:f?Wu({},f,d):d}}else l.state={style:{}};return l}return Fie(n,[{key:"componentDidMount",value:function(){var i=this.props,l=i.isActive,s=i.canBegin;this.mounted=!0,!(!l||!s)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var l=this.props,s=l.isActive,c=l.canBegin,f=l.attributeName,d=l.shouldReAnimate,m=l.to,p=l.from,y=this.state.style;if(c){if(!s){var x={style:f?Wu({},f,m):m};this.state&&y&&(f&&y[f]!==m||!f&&y!==m)&&this.setState(x);return}if(!(eie(i.to,m)&&i.canBegin&&i.isActive)){var O=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var w=O||d?p:i.to;if(this.state&&y){var S={style:f?Wu({},f,w):w};(f&&y[f]!==w||!f&&y!==w)&&this.setState(S)}this.runAnimation(Sr(Sr({},this.props),{},{from:w,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var l=this,s=i.from,c=i.to,f=i.duration,d=i.easing,m=i.begin,p=i.onAnimationEnd,y=i.onAnimationStart,x=Die(s,c,Oie(d),f,this.changeStyle),O=function(){l.stopJSAnimation=x()};this.manager.start([y,m,O,f,p])}},{key:"runStepAnimation",value:function(i){var l=this,s=i.steps,c=i.begin,f=i.onAnimationStart,d=s[0],m=d.style,p=d.duration,y=p===void 0?0:p,x=function(w,S,E){if(E===0)return w;var T=S.duration,A=S.easing,M=A===void 0?"ease":A,j=S.style,N=S.properties,R=S.onAnimationEnd,k=E>0?s[E-1]:S,I=N||Object.keys(j);if(typeof M=="function"||M==="spring")return[].concat(Lx(w),[l.runJSAnimation.bind(l,{from:k.style,to:j,duration:T,easing:M}),T]);var V=OP(I,T,M),z=Sr(Sr(Sr({},k.style),j),{},{transition:V});return[].concat(Lx(w),[z,T,R]).filter(fie)};return this.manager.start([f].concat(Lx(s.reduce(x,[m,Math.max(y,c)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=lie());var l=i.begin,s=i.duration,c=i.attributeName,f=i.to,d=i.easing,m=i.onAnimationStart,p=i.onAnimationEnd,y=i.steps,x=i.children,O=this.manager;if(this.unSubscribe=O.subscribe(this.handleStyleChange),typeof d=="function"||typeof x=="function"||d==="spring"){this.runJSAnimation(i);return}if(y.length>1){this.runStepAnimation(i);return}var w=c?Wu({},c,f):f,S=OP(Object.keys(w),s,d);O.start([m,l,Sr(Sr({},w),{},{transition:S}),s,p])}},{key:"render",value:function(){var i=this.props,l=i.children;i.begin;var s=i.duration;i.attributeName,i.easing;var c=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var f=$ie(i,kie),d=_.Children.count(l),m=this.state.style;if(typeof l=="function")return l(m);if(!c||d===0||s<=0)return l;var p=function(x){var O=x.props,w=O.style,S=w===void 0?{}:w,E=O.className,T=_.cloneElement(x,Sr(Sr({},f),{},{style:Sr(Sr({},S),m),className:E}));return T};return d===1?p(_.Children.only(l)):L.createElement("div",null,_.Children.map(l,function(y){return p(y)}))}}]),n})(_.PureComponent);za.displayName="Animate";za.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};za.propTypes={from:Ze.oneOfType([Ze.object,Ze.string]),to:Ze.oneOfType([Ze.object,Ze.string]),attributeName:Ze.string,duration:Ze.number,begin:Ze.number,easing:Ze.oneOfType([Ze.string,Ze.func]),steps:Ze.arrayOf(Ze.shape({duration:Ze.number.isRequired,style:Ze.object.isRequired,easing:Ze.oneOfType([Ze.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Ze.func]),properties:Ze.arrayOf("string"),onAnimationEnd:Ze.func})),children:Ze.oneOfType([Ze.node,Ze.func]),isActive:Ze.bool,canBegin:Ze.bool,onAnimationEnd:Ze.func,shouldReAnimate:Ze.bool,onAnimationStart:Ze.func,onAnimationReStart:Ze.func};function Rc(e){"@babel/helpers - typeof";return Rc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rc(e)}function Xh(){return Xh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xh.apply(this,arguments)}function Kie(e,t){return Jie(e)||Zie(e,t)||Qie(e,t)||Xie()}function Xie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
344
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qie(e,t){if(e){if(typeof e=="string")return CP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CP(e,t)}}function CP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function Jie(e){if(Array.isArray(e))return e}function MP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function NP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MP(Object(n),!0).forEach(function(r){eoe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eoe(e,t,n){return t=toe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function toe(e){var t=noe(e,"string");return Rc(t)=="symbol"?t:t+""}function noe(e,t){if(Rc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var RP=function(t,n,r,i,l){var s=Math.min(Math.abs(r)/2,Math.abs(i)/2),c=i>=0?1:-1,f=r>=0?1:-1,d=i>=0&&r>=0||i<0&&r<0?1:0,m;if(s>0&&l instanceof Array){for(var p=[0,0,0,0],y=0,x=4;y<x;y++)p[y]=l[y]>s?s:l[y];m="M".concat(t,",").concat(n+c*p[0]),p[0]>0&&(m+="A ".concat(p[0],",").concat(p[0],",0,0,").concat(d,",").concat(t+f*p[0],",").concat(n)),m+="L ".concat(t+r-f*p[1],",").concat(n),p[1]>0&&(m+="A ".concat(p[1],",").concat(p[1],",0,0,").concat(d,`,
345
- `).concat(t+r,",").concat(n+c*p[1])),m+="L ".concat(t+r,",").concat(n+i-c*p[2]),p[2]>0&&(m+="A ".concat(p[2],",").concat(p[2],",0,0,").concat(d,`,
346
- `).concat(t+r-f*p[2],",").concat(n+i)),m+="L ".concat(t+f*p[3],",").concat(n+i),p[3]>0&&(m+="A ".concat(p[3],",").concat(p[3],",0,0,").concat(d,`,
347
- `).concat(t,",").concat(n+i-c*p[3])),m+="Z"}else if(s>0&&l===+l&&l>0){var O=Math.min(s,l);m="M ".concat(t,",").concat(n+c*O,`
348
- A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t+f*O,",").concat(n,`
349
- L `).concat(t+r-f*O,",").concat(n,`
350
- A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t+r,",").concat(n+c*O,`
351
- L `).concat(t+r,",").concat(n+i-c*O,`
352
- A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t+r-f*O,",").concat(n+i,`
353
- L `).concat(t+f*O,",").concat(n+i,`
354
- A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t,",").concat(n+i-c*O," Z")}else m="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return m},roe=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,l=n.x,s=n.y,c=n.width,f=n.height;if(Math.abs(c)>0&&Math.abs(f)>0){var d=Math.min(l,l+c),m=Math.max(l,l+c),p=Math.min(s,s+f),y=Math.max(s,s+f);return r>=d&&r<=m&&i>=p&&i<=y}return!1},aoe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},$O=function(t){var n=NP(NP({},aoe),t),r=_.useRef(),i=_.useState(-1),l=Kie(i,2),s=l[0],c=l[1];_.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var M=r.current.getTotalLength();M&&c(M)}catch{}},[]);var f=n.x,d=n.y,m=n.width,p=n.height,y=n.radius,x=n.className,O=n.animationEasing,w=n.animationDuration,S=n.animationBegin,E=n.isAnimationActive,T=n.isUpdateAnimationActive;if(f!==+f||d!==+d||m!==+m||p!==+p||m===0||p===0)return null;var A=Ue("recharts-rectangle",x);return T?L.createElement(za,{canBegin:s>0,from:{width:m,height:p,x:f,y:d},to:{width:m,height:p,x:f,y:d},duration:w,animationEasing:O,isActive:T},function(M){var j=M.width,N=M.height,R=M.x,k=M.y;return L.createElement(za,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:w,isActive:E,easing:O},L.createElement("path",Xh({},qe(n,!0),{className:A,d:RP(R,k,j,N,y),ref:r})))}):L.createElement("path",Xh({},qe(n,!0),{className:A,d:RP(f,d,m,p,y)}))};function C1(){return C1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C1.apply(this,arguments)}var LO=function(t){var n=t.cx,r=t.cy,i=t.r,l=t.className,s=Ue("recharts-dot",l);return n===+n&&r===+r&&i===+i?_.createElement("circle",C1({},qe(t,!1),yh(t),{className:s,cx:n,cy:r,r:i})):null};function Pc(e){"@babel/helpers - typeof";return Pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pc(e)}var ioe=["x","y","top","left","width","height","className"];function M1(){return M1=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},M1.apply(this,arguments)}function PP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ooe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PP(Object(n),!0).forEach(function(r){loe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function loe(e,t,n){return t=soe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function soe(e){var t=uoe(e,"string");return Pc(t)=="symbol"?t:t+""}function uoe(e,t){if(Pc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function coe(e,t){if(e==null)return{};var n=foe(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function foe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var doe=function(t,n,r,i,l,s){return"M".concat(t,",").concat(l,"v").concat(i,"M").concat(s,",").concat(n,"h").concat(r)},hoe=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,l=i===void 0?0:i,s=t.top,c=s===void 0?0:s,f=t.left,d=f===void 0?0:f,m=t.width,p=m===void 0?0:m,y=t.height,x=y===void 0?0:y,O=t.className,w=coe(t,ioe),S=ooe({x:r,y:l,top:c,left:d,width:p,height:x},w);return!ve(r)||!ve(l)||!ve(p)||!ve(x)||!ve(c)||!ve(d)?null:L.createElement("path",M1({},qe(S,!0),{className:Ue("recharts-cross",O),d:doe(r,l,p,x,c,d)}))},Ix,DP;function poe(){if(DP)return Ix;DP=1;var e=d3(),t=e(Object.getPrototypeOf,Object);return Ix=t,Ix}var zx,kP;function moe(){if(kP)return zx;kP=1;var e=qa(),t=poe(),n=Ua(),r="[object Object]",i=Function.prototype,l=Object.prototype,s=i.toString,c=l.hasOwnProperty,f=s.call(Object);function d(m){if(!n(m)||e(m)!=r)return!1;var p=t(m);if(p===null)return!0;var y=c.call(p,"constructor")&&p.constructor;return typeof y=="function"&&y instanceof y&&s.call(y)==f}return zx=d,zx}var voe=moe();const goe=lt(voe);var Bx,$P;function yoe(){if($P)return Bx;$P=1;var e=qa(),t=Ua(),n="[object Boolean]";function r(i){return i===!0||i===!1||t(i)&&e(i)==n}return Bx=r,Bx}var boe=yoe();const xoe=lt(boe);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 Qh(){return Qh=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},Qh.apply(this,arguments)}function woe(e,t){return Eoe(e)||_oe(e,t)||Ooe(e,t)||Soe()}function Soe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
355
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ooe(e,t){if(e){if(typeof e=="string")return LP(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 LP(e,t)}}function LP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _oe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function Eoe(e){if(Array.isArray(e))return e}function IP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IP(Object(n),!0).forEach(function(r){Aoe(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 Aoe(e,t,n){return t=Toe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Toe(e){var t=joe(e,"string");return Dc(t)=="symbol"?t:t+""}function joe(e,t){if(Dc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Dc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var BP=function(t,n,r,i,l){var s=r-i,c;return c="M ".concat(t,",").concat(n),c+="L ".concat(t+r,",").concat(n),c+="L ".concat(t+r-s/2,",").concat(n+l),c+="L ".concat(t+r-s/2-i,",").concat(n+l),c+="L ".concat(t,",").concat(n," Z"),c},Coe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Moe=function(t){var n=zP(zP({},Coe),t),r=_.useRef(),i=_.useState(-1),l=woe(i,2),s=l[0],c=l[1];_.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var A=r.current.getTotalLength();A&&c(A)}catch{}},[]);var f=n.x,d=n.y,m=n.upperWidth,p=n.lowerWidth,y=n.height,x=n.className,O=n.animationEasing,w=n.animationDuration,S=n.animationBegin,E=n.isUpdateAnimationActive;if(f!==+f||d!==+d||m!==+m||p!==+p||y!==+y||m===0&&p===0||y===0)return null;var T=Ue("recharts-trapezoid",x);return E?L.createElement(za,{canBegin:s>0,from:{upperWidth:0,lowerWidth:0,height:y,x:f,y:d},to:{upperWidth:m,lowerWidth:p,height:y,x:f,y:d},duration:w,animationEasing:O,isActive:E},function(A){var M=A.upperWidth,j=A.lowerWidth,N=A.height,R=A.x,k=A.y;return L.createElement(za,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:w,easing:O},L.createElement("path",Qh({},qe(n,!0),{className:T,d:BP(R,k,M,j,N),ref:r})))}):L.createElement("g",null,L.createElement("path",Qh({},qe(n,!0),{className:T,d:BP(f,d,m,p,y)})))},Noe=["option","shapeType","propTransformer","activeClassName","isActive"];function kc(e){"@babel/helpers - typeof";return kc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kc(e)}function Roe(e,t){if(e==null)return{};var n=Poe(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Poe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function qP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qP(Object(n),!0).forEach(function(r){Doe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Doe(e,t,n){return t=koe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function koe(e){var t=$oe(e,"string");return kc(t)=="symbol"?t:t+""}function $oe(e,t){if(kc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(kc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Loe(e,t){return Zh(Zh({},t),e)}function Ioe(e,t){return e==="symbols"}function UP(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return L.createElement($O,n);case"trapezoid":return L.createElement(Moe,n);case"sector":return L.createElement(z4,n);case"symbols":if(Ioe(t))return L.createElement(tO,n);break;default:return null}}function zoe(e){return _.isValidElement(e)?e.props:e}function Boe(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?Loe:r,l=e.activeClassName,s=l===void 0?"recharts-active-shape":l,c=e.isActive,f=Roe(e,Noe),d;if(_.isValidElement(t))d=_.cloneElement(t,Zh(Zh({},f),zoe(t)));else if(De(t))d=t(f);else if(goe(t)&&!xoe(t)){var m=i(t,f);d=L.createElement(UP,{shapeType:n,elementProps:m})}else{var p=f;d=L.createElement(UP,{shapeType:n,elementProps:p})}return c?L.createElement(jt,{className:s},d):d}function dm(e,t){return t!=null&&"trapezoids"in e.props}function hm(e,t){return t!=null&&"sectors"in e.props}function $c(e,t){return t!=null&&"points"in e.props}function qoe(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,l=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&l}function Uoe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Hoe(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function Foe(e,t){var n;return dm(e,t)?n=qoe:hm(e,t)?n=Uoe:$c(e,t)&&(n=Hoe),n}function Goe(e,t){var n;return dm(e,t)?n="trapezoids":hm(e,t)?n="sectors":$c(e,t)&&(n="points"),n}function Voe(e,t){if(dm(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(hm(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 $c(e,t)?t.payload:{}}function Yoe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=Goe(n,t),l=Voe(n,t),s=r.filter(function(f,d){var m=um(l,f),p=n.props[i].filter(function(O){var w=Foe(n,t);return w(O,t)}),y=n.props[i].indexOf(p[p.length-1]),x=d===y;return m&&x}),c=r.indexOf(s[s.length-1]);return c}var qx,HP;function Woe(){if(HP)return qx;HP=1;var e=Math.ceil,t=Math.max;function n(r,i,l,s){for(var c=-1,f=t(e((i-r)/(l||1)),0),d=Array(f);f--;)d[s?f:++c]=r,r+=l;return d}return qx=n,qx}var Ux,FP;function Y4(){if(FP)return Ux;FP=1;var e=j3(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var l=i<0?-1:1;return l*n}return i===i?i:0}return Ux=r,Ux}var Hx,GP;function Koe(){if(GP)return Hx;GP=1;var e=Woe(),t=em(),n=Y4();function r(i){return function(l,s,c){return c&&typeof c!="number"&&t(l,s,c)&&(s=c=void 0),l=n(l),s===void 0?(s=l,l=0):s=n(s),c=c===void 0?l<s?1:-1:n(c),e(l,s,c,i)}}return Hx=r,Hx}var Fx,VP;function Xoe(){if(VP)return Fx;VP=1;var e=Koe(),t=e();return Fx=t,Fx}var Qoe=Xoe();const Jh=lt(Qoe);function Lc(e){"@babel/helpers - typeof";return Lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lc(e)}function YP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function WP(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){W4(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 W4(e,t,n){return t=Zoe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zoe(e){var t=Joe(e,"string");return Lc(t)=="symbol"?t:t+""}function Joe(e,t){if(Lc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ele=["Webkit","Moz","O","ms"],tle=function(t,n){var r=t.replace(/(\w)/,function(l){return l.toUpperCase()}),i=ele.reduce(function(l,s){return WP(WP({},l),{},W4({},s+r,n))},{});return i[t]=n,i};function is(e){"@babel/helpers - typeof";return is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},is(e)}function ep(){return ep=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},ep.apply(this,arguments)}function KP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KP(Object(n),!0).forEach(function(r){Un(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,X4(r.key),r)}}function rle(e,t,n){return t&&XP(e.prototype,t),n&&XP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ale(e,t,n){return t=tp(t),ile(e,K4()?Reflect.construct(t,n||[],tp(e).constructor):t.apply(e,n))}function ile(e,t){if(t&&(is(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ole(e)}function ole(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(K4=function(){return!!e})()}function tp(e){return tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},tp(e)}function lle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&N1(e,t)}function N1(e,t){return N1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},N1(e,t)}function Un(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=sle(e,"string");return is(t)=="symbol"?t:t+""}function sle(e,t){if(is(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(is(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ule=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,l=t.x,s=t.width,c=t.travellerWidth;if(!n||!n.length)return{};var f=n.length,d=Xu().domain(Jh(0,f)).range([l,l+s-c]),m=d.domain().map(function(p){return d(p)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:d(r),endX:d(i),scale:d,scaleValues:m}},QP=function(t){return t.changedTouches&&!!t.changedTouches.length},os=(function(e){function t(n){var r;return nle(this,t),r=ale(this,t,[n]),Un(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),Un(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),Un(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,l=i.endIndex,s=i.onDragEnd,c=i.startIndex;s==null||s({endIndex:l,startIndex:c})}),r.detachDragEndListener()}),Un(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Un(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Un(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Un(r,"handleSlideDragStart",function(i){var l=QP(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:l.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return lle(t,e),rle(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,l=r.endX,s=this.state.scaleValues,c=this.props,f=c.gap,d=c.data,m=d.length-1,p=Math.min(i,l),y=Math.max(i,l),x=t.getIndexInRange(s,p),O=t.getIndexInRange(s,y);return{startIndex:x-x%f,endIndex:O===m?m:O-O%f}}},{key:"getTextOfTick",value:function(r){var i=this.props,l=i.data,s=i.tickFormatter,c=i.dataKey,f=Yn(l[r],c,r);return De(s)?s(f,r):f}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var i=this.state,l=i.slideMoveStartX,s=i.startX,c=i.endX,f=this.props,d=f.x,m=f.width,p=f.travellerWidth,y=f.startIndex,x=f.endIndex,O=f.onChange,w=r.pageX-l;w>0?w=Math.min(w,d+m-p-c,d+m-p-s):w<0&&(w=Math.max(w,d-s,d-c));var S=this.getIndex({startX:s+w,endX:c+w});(S.startIndex!==y||S.endIndex!==x)&&O&&O(S),this.setState({startX:s+w,endX:c+w,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var l=QP(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:l.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,l=i.brushMoveStartX,s=i.movingTravellerId,c=i.endX,f=i.startX,d=this.state[s],m=this.props,p=m.x,y=m.width,x=m.travellerWidth,O=m.onChange,w=m.gap,S=m.data,E={startX:this.state.startX,endX:this.state.endX},T=r.pageX-l;T>0?T=Math.min(T,p+y-x-d):T<0&&(T=Math.max(T,p-d)),E[s]=d+T;var A=this.getIndex(E),M=A.startIndex,j=A.endIndex,N=function(){var k=S.length-1;return s==="startX"&&(c>f?M%w===0:j%w===0)||c<f&&j===k||s==="endX"&&(c>f?j%w===0:M%w===0)||c>f&&j===k};this.setState(Un(Un({},s,d+T),"brushMoveStartX",r.pageX),function(){O&&N()&&O(A)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var l=this,s=this.state,c=s.scaleValues,f=s.startX,d=s.endX,m=this.state[i],p=c.indexOf(m);if(p!==-1){var y=p+r;if(!(y===-1||y>=c.length)){var x=c[y];i==="startX"&&x>=d||i==="endX"&&x<=f||this.setState(Un({},i,x),function(){l.props.onChange(l.getIndex({startX:l.state.startX,endX:l.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,l=r.y,s=r.width,c=r.height,f=r.fill,d=r.stroke;return L.createElement("rect",{stroke:d,fill:f,x:i,y:l,width:s,height:c})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,l=r.y,s=r.width,c=r.height,f=r.data,d=r.children,m=r.padding,p=_.Children.only(d);return p?L.cloneElement(p,{x:i,y:l,width:s,height:c,margin:m,compact:!0,data:f}):null}},{key:"renderTravellerLayer",value:function(r,i){var l,s,c=this,f=this.props,d=f.y,m=f.travellerWidth,p=f.height,y=f.traveller,x=f.ariaLabel,O=f.data,w=f.startIndex,S=f.endIndex,E=Math.max(r,this.props.x),T=Gx(Gx({},qe(this.props,!1)),{},{x:E,y:d,width:m,height:p}),A=x||"Min value: ".concat((l=O[w])===null||l===void 0?void 0:l.name,", Max value: ").concat((s=O[S])===null||s===void 0?void 0:s.name);return L.createElement(jt,{tabIndex:0,role:"slider","aria-label":A,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(j){["ArrowLeft","ArrowRight"].includes(j.key)&&(j.preventDefault(),j.stopPropagation(),c.handleTravellerMoveKeyboard(j.key==="ArrowRight"?1:-1,i))},onFocus:function(){c.setState({isTravellerFocused:!0})},onBlur:function(){c.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(y,T))}},{key:"renderSlide",value:function(r,i){var l=this.props,s=l.y,c=l.height,f=l.stroke,d=l.travellerWidth,m=Math.min(r,i)+d,p=Math.max(Math.abs(i-r)-d,0);return L.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:f,fillOpacity:.2,x:m,y:s,width:p,height:c})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,l=r.endIndex,s=r.y,c=r.height,f=r.travellerWidth,d=r.stroke,m=this.state,p=m.startX,y=m.endX,x=5,O={pointerEvents:"none",fill:d};return L.createElement(jt,{className:"recharts-brush-texts"},L.createElement(Mh,ep({textAnchor:"end",verticalAnchor:"middle",x:Math.min(p,y)-x,y:s+c/2},O),this.getTextOfTick(i)),L.createElement(Mh,ep({textAnchor:"start",verticalAnchor:"middle",x:Math.max(p,y)+f+x,y:s+c/2},O),this.getTextOfTick(l)))}},{key:"render",value:function(){var r=this.props,i=r.data,l=r.className,s=r.children,c=r.x,f=r.y,d=r.width,m=r.height,p=r.alwaysShowText,y=this.state,x=y.startX,O=y.endX,w=y.isTextActive,S=y.isSlideMoving,E=y.isTravellerMoving,T=y.isTravellerFocused;if(!i||!i.length||!ve(c)||!ve(f)||!ve(d)||!ve(m)||d<=0||m<=0)return null;var A=Ue("recharts-brush",l),M=L.Children.count(s)===1,j=tle("userSelect","none");return L.createElement(jt,{className:A,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:j},this.renderBackground(),M&&this.renderPanorama(),this.renderSlide(x,O),this.renderTravellerLayer(x,"startX"),this.renderTravellerLayer(O,"endX"),(w||S||E||T||p)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,l=r.y,s=r.width,c=r.height,f=r.stroke,d=Math.floor(l+c/2)-1;return L.createElement(L.Fragment,null,L.createElement("rect",{x:i,y:l,width:s,height:c,fill:f,stroke:"none"}),L.createElement("line",{x1:i+1,y1:d,x2:i+s-1,y2:d,fill:"none",stroke:"#fff"}),L.createElement("line",{x1:i+1,y1:d+2,x2:i+s-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var l;return L.isValidElement(r)?l=L.cloneElement(r,i):De(r)?l=r(i):l=t.renderDefaultTraveller(i),l}},{key:"getDerivedStateFromProps",value:function(r,i){var l=r.data,s=r.width,c=r.x,f=r.travellerWidth,d=r.updateId,m=r.startIndex,p=r.endIndex;if(l!==i.prevData||d!==i.prevUpdateId)return Gx({prevData:l,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:s},l&&l.length?ule({data:l,width:s,x:c,travellerWidth:f,startIndex:m,endIndex:p}):{scale:null,scaleValues:null});if(i.scale&&(s!==i.prevWidth||c!==i.prevX||f!==i.prevTravellerWidth)){i.scale.range([c,c+s-f]);var y=i.scale.domain().map(function(x){return i.scale(x)});return{prevData:l,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:s,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:y}}return null}},{key:"getIndexInRange",value:function(r,i){for(var l=r.length,s=0,c=l-1;c-s>1;){var f=Math.floor((s+c)/2);r[f]>i?c=f:s=f}return i>=r[c]?c:s}}])})(_.PureComponent);Un(os,"displayName","Brush");Un(os,"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 Vx,ZP;function cle(){if(ZP)return Vx;ZP=1;var e=sO();function t(n,r){var i;return e(n,function(l,s,c){return i=r(l,s,c),!i}),!!i}return Vx=t,Vx}var Yx,JP;function fle(){if(JP)return Yx;JP=1;var e=i3(),t=Pi(),n=cle(),r=Rn(),i=em();function l(s,c,f){var d=r(s)?e:n;return f&&i(s,c,f)&&(c=void 0),d(s,t(c,3))}return Yx=l,Yx}var dle=fle();const hle=lt(dle);var Qr=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},Wx,eD;function ple(){if(eD)return Wx;eD=1;var e=O3();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return Wx=t,Wx}var Kx,tD;function mle(){if(tD)return Kx;tD=1;var e=ple(),t=w3(),n=Pi();function r(i,l){var s={};return l=n(l,3),t(i,function(c,f,d){e(s,f,l(c,f,d))}),s}return Kx=r,Kx}var vle=mle();const gle=lt(vle);var Xx,nD;function yle(){if(nD)return Xx;nD=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(!n(t[r],r,t))return!1;return!0}return Xx=e,Xx}var Qx,rD;function ble(){if(rD)return Qx;rD=1;var e=sO();function t(n,r){var i=!0;return e(n,function(l,s,c){return i=!!r(l,s,c),i}),i}return Qx=t,Qx}var Zx,aD;function xle(){if(aD)return Zx;aD=1;var e=yle(),t=ble(),n=Pi(),r=Rn(),i=em();function l(s,c,f){var d=r(s)?e:t;return f&&i(s,c,f)&&(c=void 0),d(s,n(c,3))}return Zx=l,Zx}var wle=xle();const Q4=lt(wle);var Sle=["x","y"];function Ic(e){"@babel/helpers - typeof";return Ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ic(e)}function R1(){return R1=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},R1.apply(this,arguments)}function iD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iD(Object(n),!0).forEach(function(r){Ole(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ole(e,t,n){return t=_le(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _le(e){var t=Ele(e,"string");return Ic(t)=="symbol"?t:t+""}function Ele(e,t){if(Ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ale(e,t){if(e==null)return{};var n=Tle(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tle(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 jle(e,t){var n=e.x,r=e.y,i=Ale(e,Sle),l="".concat(n),s=parseInt(l,10),c="".concat(r),f=parseInt(c,10),d="".concat(t.height||i.height),m=parseInt(d,10),p="".concat(t.width||i.width),y=parseInt(p,10);return Hu(Hu(Hu(Hu(Hu({},t),i),s?{x:s}:{}),f?{y:f}:{}),{},{height:m,width:y,name:t.name,radius:t.radius})}function oD(e){return L.createElement(Boe,R1({shapeType:"rectangle",propTransformer:jle,activeClassName:"recharts-active-bar"},e))}var Cle=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var l=ve(r)||LW(r);return l?t(r,i):(l||Ao(),n)}},Mle=["value","background"],Z4;function ls(e){"@babel/helpers - typeof";return ls=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},ls(e)}function Nle(e,t){if(e==null)return{};var n=Rle(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rle(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 np(){return np=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},np.apply(this,arguments)}function lD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?lD(Object(n),!0).forEach(function(r){Oi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ple(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sD(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,ez(r.key),r)}}function Dle(e,t,n){return t&&sD(e.prototype,t),n&&sD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function kle(e,t,n){return t=rp(t),$le(e,J4()?Reflect.construct(t,n||[],rp(e).constructor):t.apply(e,n))}function $le(e,t){if(t&&(ls(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lle(e)}function Lle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(J4=function(){return!!e})()}function rp(e){return rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rp(e)}function Ile(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P1(e,t)}function P1(e,t){return P1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},P1(e,t)}function Oi(e,t,n){return t=ez(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ez(e){var t=zle(e,"string");return ls(t)=="symbol"?t:t+""}function zle(e,t){if(ls(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ls(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var df=(function(e){function t(){var n;Ple(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=kle(this,t,[].concat(i)),Oi(n,"state",{isAnimationFinished:!1}),Oi(n,"id",af("recharts-bar-")),Oi(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),s&&s()}),Oi(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),s&&s()}),n}return Ile(t,e),Dle(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,l=this.props,s=l.shape,c=l.dataKey,f=l.activeIndex,d=l.activeBar,m=qe(this.props,!1);return r&&r.map(function(p,y){var x=y===f,O=x?d:s,w=Pt(Pt(Pt({},m),p),{},{isActive:x,option:O,index:y,dataKey:c,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return L.createElement(jt,np({className:"recharts-bar-rectangle"},bh(i.props,p,y),{key:"rectangle-".concat(p==null?void 0:p.x,"-").concat(p==null?void 0:p.y,"-").concat(p==null?void 0:p.value,"-").concat(y)}),L.createElement(oD,w))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,l=i.data,s=i.layout,c=i.isAnimationActive,f=i.animationBegin,d=i.animationDuration,m=i.animationEasing,p=i.animationId,y=this.state.prevData;return L.createElement(za,{begin:f,duration:d,isActive:c,easing:m,from:{t:0},to:{t:1},key:"bar-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var O=x.t,w=l.map(function(S,E){var T=y&&y[E];if(T){var A=Ar(T.x,S.x),M=Ar(T.y,S.y),j=Ar(T.width,S.width),N=Ar(T.height,S.height);return Pt(Pt({},S),{},{x:A(O),y:M(O),width:j(O),height:N(O)})}if(s==="horizontal"){var R=Ar(0,S.height),k=R(O);return Pt(Pt({},S),{},{y:S.y+S.height-k,height:k})}var I=Ar(0,S.width),V=I(O);return Pt(Pt({},S),{},{width:V})});return L.createElement(jt,null,r.renderRectanglesStatically(w))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,l=r.isAnimationActive,s=this.state.prevData;return l&&i&&i.length&&(!s||!um(s,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,l=i.data,s=i.dataKey,c=i.activeIndex,f=qe(this.props.background,!1);return l.map(function(d,m){d.value;var p=d.background,y=Nle(d,Mle);if(!p)return null;var x=Pt(Pt(Pt(Pt(Pt({},y),{},{fill:"#eee"},p),f),bh(r.props,d,m)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:s,index:m,className:"recharts-bar-background-rectangle"});return L.createElement(oD,np({key:"background-bar-".concat(m),option:r.props.background,isActive:m===c},x))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var l=this.props,s=l.data,c=l.xAxis,f=l.yAxis,d=l.layout,m=l.children,p=dr(m,ff);if(!p)return null;var y=d==="vertical"?s[0].height/2:s[0].width/2,x=function(S,E){var T=Array.isArray(S.value)?S.value[1]:S.value;return{x:S.x,y:S.y,value:T,errorVal:Yn(S,E)}},O={clipPath:r?"url(#clipPath-".concat(i,")"):null};return L.createElement(jt,O,p.map(function(w){return L.cloneElement(w,{key:"error-bar-".concat(i,"-").concat(w.props.dataKey),data:s,xAxis:c,yAxis:f,layout:d,offset:y,dataPointFormatter:x})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,l=r.data,s=r.className,c=r.xAxis,f=r.yAxis,d=r.left,m=r.top,p=r.width,y=r.height,x=r.isAnimationActive,O=r.background,w=r.id;if(i||!l||!l.length)return null;var S=this.state.isAnimationFinished,E=Ue("recharts-bar",s),T=c&&c.allowDataOverflow,A=f&&f.allowDataOverflow,M=T||A,j=Le(w)?this.id:w;return L.createElement(jt,{className:E},T||A?L.createElement("defs",null,L.createElement("clipPath",{id:"clipPath-".concat(j)},L.createElement("rect",{x:T?d:d-p/2,y:A?m:m-y/2,width:T?p:p*2,height:A?y:y*2}))):null,L.createElement(jt,{className:"recharts-bar-rectangles",clipPath:M?"url(#clipPath-".concat(j,")"):null},O?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(M,j),(!x||S)&&Ei.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:i.curData}:r.data!==i.curData?{curData:r.data}:null}}])})(_.PureComponent);Z4=df;Oi(df,"displayName","Bar");Oi(df,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ms.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Oi(df,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,l=e.xAxis,s=e.yAxis,c=e.xAxisTicks,f=e.yAxisTicks,d=e.stackedData,m=e.dataStartIndex,p=e.displayedData,y=e.offset,x=rre(r,n);if(!x)return null;var O=t.layout,w=n.type.defaultProps,S=w!==void 0?Pt(Pt({},w),n.props):n.props,E=S.dataKey,T=S.children,A=S.minPointSize,M=O==="horizontal"?s:l,j=d?M.scale.domain():null,N=fre({numericAxis:M}),R=dr(T,M3),k=p.map(function(I,V){var z,B,G,K,X,D;d?z=are(d[m+V],j):(z=Yn(I,E),Array.isArray(z)||(z=[N,z]));var U=Cle(A,Z4.defaultProps.minPointSize)(z[1],V);if(O==="horizontal"){var Y,W=[s.scale(z[0]),s.scale(z[1])],oe=W[0],$=W[1];B=GR({axis:l,ticks:c,bandSize:i,offset:x.offset,entry:I,index:V}),G=(Y=$??oe)!==null&&Y!==void 0?Y:void 0,K=x.size;var F=oe-$;if(X=Number.isNaN(F)?0:F,D={x:B,y:s.y,width:K,height:s.height},Math.abs(U)>0&&Math.abs(X)<Math.abs(U)){var Z=jr(X||U)*(Math.abs(U)-Math.abs(X));G-=Z,X+=Z}}else{var se=[l.scale(z[0]),l.scale(z[1])],de=se[0],ge=se[1];if(B=de,G=GR({axis:s,ticks:f,bandSize:i,offset:x.offset,entry:I,index:V}),K=ge-de,X=x.size,D={x:l.x,y:G,width:l.width,height:X},Math.abs(U)>0&&Math.abs(K)<Math.abs(U)){var fe=jr(K||U)*(Math.abs(U)-Math.abs(K));K+=fe}}return Pt(Pt(Pt({},I),{},{x:B,y:G,width:K,height:X,value:d?z:z[1],payload:I,background:D},R&&R[V]&&R[V].props),{},{tooltipPayload:[$4(n,I)],tooltipPosition:{x:B+K/2,y:G+X/2}})});return Pt({data:k,layout:O},y)});function zc(e){"@babel/helpers - typeof";return zc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zc(e)}function Ble(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uD(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,tz(r.key),r)}}function qle(e,t,n){return t&&uD(e.prototype,t),n&&uD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function cD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cD(Object(n),!0).forEach(function(r){pm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pm(e,t,n){return t=tz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tz(e){var t=Ule(e,"string");return zc(t)=="symbol"?t:t+""}function Ule(e,t){if(zc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hle=function(t,n,r,i,l){var s=t.width,c=t.height,f=t.layout,d=t.children,m=Object.keys(n),p={left:r.left,leftMirror:r.left,right:s-r.right,rightMirror:s-r.right,top:r.top,topMirror:r.top,bottom:c-r.bottom,bottomMirror:c-r.bottom},y=!!Hn(d,df);return m.reduce(function(x,O){var w=n[O],S=w.orientation,E=w.domain,T=w.padding,A=T===void 0?{}:T,M=w.mirror,j=w.reversed,N="".concat(S).concat(M?"Mirror":""),R,k,I,V,z;if(w.type==="number"&&(w.padding==="gap"||w.padding==="no-gap")){var B=E[1]-E[0],G=1/0,K=w.categoricalDomain.sort(BW);if(K.forEach(function(se,de){de>0&&(G=Math.min((se||0)-(K[de-1]||0),G))}),Number.isFinite(G)){var X=G/B,D=w.layout==="vertical"?r.height:r.width;if(w.padding==="gap"&&(R=X*D/2),w.padding==="no-gap"){var U=_o(t.barCategoryGap,X*D),Y=X*D/2;R=Y-U-(Y-U)/D*U}}}i==="xAxis"?k=[r.left+(A.left||0)+(R||0),r.left+r.width-(A.right||0)-(R||0)]:i==="yAxis"?k=f==="horizontal"?[r.top+r.height-(A.bottom||0),r.top+(A.top||0)]:[r.top+(A.top||0)+(R||0),r.top+r.height-(A.bottom||0)-(R||0)]:k=w.range,j&&(k=[k[1],k[0]]);var W=tre(w,l,y),oe=W.scale,$=W.realScaleType;oe.domain(E).range(k),nre(oe);var F=cre(oe,_r(_r({},w),{},{realScaleType:$}));i==="xAxis"?(z=S==="top"&&!M||S==="bottom"&&M,I=r.left,V=p[N]-z*w.height):i==="yAxis"&&(z=S==="left"&&!M||S==="right"&&M,I=p[N]-z*w.width,V=r.top);var Z=_r(_r(_r({},w),F),{},{realScaleType:$,x:I,y:V,scale:oe,width:i==="xAxis"?r.width:w.width,height:i==="yAxis"?r.height:w.height});return Z.bandSize=Fh(Z,F),!w.hide&&i==="xAxis"?p[N]+=(z?-1:1)*Z.height:w.hide||(p[N]+=(z?-1:1)*Z.width),_r(_r({},x),{},pm({},O,Z))},{})},nz=function(t,n){var r=t.x,i=t.y,l=n.x,s=n.y;return{x:Math.min(r,l),y:Math.min(i,s),width:Math.abs(l-r),height:Math.abs(s-i)}},Fle=function(t){var n=t.x1,r=t.y1,i=t.x2,l=t.y2;return nz({x:n,y:r},{x:i,y:l})},rz=(function(){function e(t){Ble(this,e),this.scale=t}return qle(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]:{},i=r.bandAware,l=r.position;if(n!==void 0){if(l)switch(l){case"start":return this.scale(n);case"middle":{var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+s}case"end":{var c=this.bandwidth?this.bandwidth():0;return this.scale(n)+c}default:return this.scale(n)}if(i){var f=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+f}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],l=r[r.length-1];return i<=l?n>=i&&n<=l:n>=l&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])})();pm(rz,"EPS",1e-4);var IO=function(t){var n=Object.keys(t).reduce(function(r,i){return _r(_r({},r),{},pm({},i,rz.create(t[i])))},{});return _r(_r({},n),{},{apply:function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=l.bandAware,c=l.position;return gle(i,function(f,d){return n[d].apply(f,{bandAware:s,position:c})})},isInRange:function(i){return Q4(i,function(l,s){return n[s].isInRange(l)})}})};function Gle(e){return(e%180+180)%180}var Vle=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=Gle(i),s=l*Math.PI/180,c=Math.atan(r/n),f=s>c&&s<Math.PI-c?r/Math.sin(s):n/Math.cos(s);return Math.abs(f)},Jx,fD;function Yle(){if(fD)return Jx;fD=1;var e=Pi(),t=of(),n=Zp();function r(i){return function(l,s,c){var f=Object(l);if(!t(l)){var d=e(s,3);l=n(l),s=function(p){return d(f[p],p,f)}}var m=i(l,s,c);return m>-1?f[d?l[m]:m]:void 0}}return Jx=r,Jx}var ew,dD;function Wle(){if(dD)return ew;dD=1;var e=Y4();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return ew=t,ew}var tw,hD;function Kle(){if(hD)return tw;hD=1;var e=v3(),t=Pi(),n=Wle(),r=Math.max;function i(l,s,c){var f=l==null?0:l.length;if(!f)return-1;var d=c==null?0:n(c);return d<0&&(d=r(f+d,0)),e(l,t(s,3),d)}return tw=i,tw}var nw,pD;function Xle(){if(pD)return nw;pD=1;var e=Yle(),t=Kle(),n=e(t);return nw=n,nw}var Qle=Xle();const Zle=lt(Qle);var Jle=RI();const ese=lt(Jle);var tse=ese(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("")}),zO=_.createContext(void 0),BO=_.createContext(void 0),az=_.createContext(void 0),iz=_.createContext({}),oz=_.createContext(void 0),lz=_.createContext(0),sz=_.createContext(0),mD=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,l=n.offset,s=t.clipPathId,c=t.children,f=t.width,d=t.height,m=tse(l);return L.createElement(zO.Provider,{value:r},L.createElement(BO.Provider,{value:i},L.createElement(iz.Provider,{value:l},L.createElement(az.Provider,{value:m},L.createElement(oz.Provider,{value:s},L.createElement(lz.Provider,{value:d},L.createElement(sz.Provider,{value:f},c)))))))},nse=function(){return _.useContext(oz)},uz=function(t){var n=_.useContext(zO);n==null&&Ao();var r=n[t];return r==null&&Ao(),r},rse=function(){var t=_.useContext(zO);return Si(t)},ase=function(){var t=_.useContext(BO),n=Zle(t,function(r){return Q4(r.domain,Number.isFinite)});return n||Si(t)},cz=function(t){var n=_.useContext(BO);n==null&&Ao();var r=n[t];return r==null&&Ao(),r},ise=function(){var t=_.useContext(az);return t},ose=function(){return _.useContext(iz)},qO=function(){return _.useContext(sz)},UO=function(){return _.useContext(lz)};function ss(e){"@babel/helpers - typeof";return ss=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},ss(e)}function lse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dz(r.key),r)}}function use(e,t,n){return t&&sse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cse(e,t,n){return t=ap(t),fse(e,fz()?Reflect.construct(t,n||[],ap(e).constructor):t.apply(e,n))}function fse(e,t){if(t&&(ss(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dse(e)}function dse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fz=function(){return!!e})()}function ap(e){return ap=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ap(e)}function hse(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,i){return r.__proto__=i,r},D1(e,t)}function vD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vD(Object(n),!0).forEach(function(r){HO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HO(e,t,n){return t=dz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dz(e){var t=pse(e,"string");return ss(t)=="symbol"?t:t+""}function pse(e,t){if(ss(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ss(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function mse(e,t){return bse(e)||yse(e,t)||gse(e,t)||vse()}function vse(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
356
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gse(e,t){if(e){if(typeof e=="string")return yD(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 yD(e,t)}}function yD(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 yse(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function bse(e){if(Array.isArray(e))return 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)}var xse=function(t,n){var r;return L.isValidElement(t)?r=L.cloneElement(t,n):De(t)?r=t(n):r=L.createElement("line",k1({},n,{className:"recharts-reference-line-line"})),r},wse=function(t,n,r,i,l,s,c,f,d){var m=l.x,p=l.y,y=l.width,x=l.height;if(r){var O=d.y,w=t.y.apply(O,{position:s});if(Qr(d,"discard")&&!t.y.isInRange(w))return null;var S=[{x:m+y,y:w},{x:m,y:w}];return f==="left"?S.reverse():S}if(n){var E=d.x,T=t.x.apply(E,{position:s});if(Qr(d,"discard")&&!t.x.isInRange(T))return null;var A=[{x:T,y:p+x},{x:T,y:p}];return c==="top"?A.reverse():A}if(i){var M=d.segment,j=M.map(function(N){return t.apply(N,{position:s})});return Qr(d,"discard")&&hle(j,function(N){return!t.isInRange(N)})?null:j}return null};function Sse(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,l=e.yAxisId,s=e.shape,c=e.className,f=e.alwaysShow,d=nse(),m=uz(i),p=cz(l),y=ise();if(!d||!y)return null;Na(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var x=IO({x:m.scale,y:p.scale}),O=Ht(t),w=Ht(n),S=r&&r.length===2,E=wse(x,O,w,S,y,e.position,m.orientation,p.orientation,e);if(!E)return null;var T=mse(E,2),A=T[0],M=A.x,j=A.y,N=T[1],R=N.x,k=N.y,I=Qr(e,"hidden")?"url(#".concat(d,")"):void 0,V=gD(gD({clipPath:I},qe(e,!0)),{},{x1:M,y1:j,x2:R,y2:k});return L.createElement(jt,{className:Ue("recharts-reference-line",c)},xse(s,V),dn.renderCallByParent(e,Fle({x1:M,y1:j,x2:R,y2:k})))}var FO=(function(e){function t(){return lse(this,t),cse(this,t,arguments)}return hse(t,e),use(t,[{key:"render",value:function(){return L.createElement(Sse,this.props)}}])})(L.Component);HO(FO,"displayName","ReferenceLine");HO(FO,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function $1(){return $1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$1.apply(this,arguments)}function us(e){"@babel/helpers - typeof";return us=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},us(e)}function bD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bD(Object(n),!0).forEach(function(r){mm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ose(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pz(r.key),r)}}function Ese(e,t,n){return t&&_se(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ase(e,t,n){return t=ip(t),Tse(e,hz()?Reflect.construct(t,n||[],ip(e).constructor):t.apply(e,n))}function Tse(e,t){if(t&&(us(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return 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 hz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hz=function(){return!!e})()}function ip(e){return ip=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ip(e)}function Cse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L1(e,t)}function L1(e,t){return L1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},L1(e,t)}function mm(e,t,n){return t=pz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pz(e){var t=Mse(e,"string");return us(t)=="symbol"?t:t+""}function Mse(e,t){if(us(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(us(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Nse=function(t){var n=t.x,r=t.y,i=t.xAxis,l=t.yAxis,s=IO({x:i.scale,y:l.scale}),c=s.apply({x:n,y:r},{bandAware:!0});return Qr(t,"discard")&&!s.isInRange(c)?null:c},vm=(function(e){function t(){return Ose(this,t),Ase(this,t,arguments)}return Cse(t,e),Ese(t,[{key:"render",value:function(){var r=this.props,i=r.x,l=r.y,s=r.r,c=r.alwaysShow,f=r.clipPathId,d=Ht(i),m=Ht(l);if(Na(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!d||!m)return null;var p=Nse(this.props);if(!p)return null;var y=p.x,x=p.y,O=this.props,w=O.shape,S=O.className,E=Qr(this.props,"hidden")?"url(#".concat(f,")"):void 0,T=xD(xD({clipPath:E},qe(this.props,!0)),{},{cx:y,cy:x});return L.createElement(jt,{className:Ue("recharts-reference-dot",S)},t.renderDot(w,T),dn.renderCallByParent(this.props,{x:y-s,y:x-s,width:2*s,height:2*s}))}}])})(L.Component);mm(vm,"displayName","ReferenceDot");mm(vm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});mm(vm,"renderDot",function(e,t){var n;return L.isValidElement(e)?n=L.cloneElement(e,t):De(e)?n=e(t):n=L.createElement(LO,$1({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function I1(){return I1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I1.apply(this,arguments)}function cs(e){"@babel/helpers - typeof";return cs=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},cs(e)}function wD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function SD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wD(Object(n),!0).forEach(function(r){gm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vz(r.key),r)}}function Dse(e,t,n){return t&&Pse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kse(e,t,n){return t=op(t),$se(e,mz()?Reflect.construct(t,n||[],op(e).constructor):t.apply(e,n))}function $se(e,t){if(t&&(cs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lse(e)}function Lse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mz=function(){return!!e})()}function op(e){return op=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},op(e)}function Ise(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,i){return r.__proto__=i,r},z1(e,t)}function gm(e,t,n){return t=vz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vz(e){var t=zse(e,"string");return cs(t)=="symbol"?t:t+""}function zse(e,t){if(cs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Bse=function(t,n,r,i,l){var s=l.x1,c=l.x2,f=l.y1,d=l.y2,m=l.xAxis,p=l.yAxis;if(!m||!p)return null;var y=IO({x:m.scale,y:p.scale}),x={x:t?y.x.apply(s,{position:"start"}):y.x.rangeMin,y:r?y.y.apply(f,{position:"start"}):y.y.rangeMin},O={x:n?y.x.apply(c,{position:"end"}):y.x.rangeMax,y:i?y.y.apply(d,{position:"end"}):y.y.rangeMax};return Qr(l,"discard")&&(!y.isInRange(x)||!y.isInRange(O))?null:nz(x,O)},ym=(function(e){function t(){return Rse(this,t),kse(this,t,arguments)}return Ise(t,e),Dse(t,[{key:"render",value:function(){var r=this.props,i=r.x1,l=r.x2,s=r.y1,c=r.y2,f=r.className,d=r.alwaysShow,m=r.clipPathId;Na(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Ht(i),y=Ht(l),x=Ht(s),O=Ht(c),w=this.props.shape;if(!p&&!y&&!x&&!O&&!w)return null;var S=Bse(p,y,x,O,this.props);if(!S&&!w)return null;var E=Qr(this.props,"hidden")?"url(#".concat(m,")"):void 0;return L.createElement(jt,{className:Ue("recharts-reference-area",f)},t.renderRect(w,SD(SD({clipPath:E},qe(this.props,!0)),S)),dn.renderCallByParent(this.props,S))}}])})(L.Component);gm(ym,"displayName","ReferenceArea");gm(ym,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});gm(ym,"renderRect",function(e,t){var n;return L.isValidElement(e)?n=L.cloneElement(e,t):De(e)?n=e(t):n=L.createElement($O,I1({},t,{className:"recharts-reference-area-rect"})),n});function gz(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)r.push(e[i]);return r}function qse(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Vle(r,n)}function Use(e,t,n){var r=n==="width",i=e.x,l=e.y,s=e.width,c=e.height;return t===1?{start:r?i:l,end:r?i+s:l+c}:{start:r?i+s:l+c,end:r?i:l}}function lp(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var l=n();return e*(t-e*l/2-r)>=0&&e*(t+e*l/2-i)<=0}function Hse(e,t){return gz(e,t+1)}function Fse(e,t,n,r,i){for(var l=(r||[]).slice(),s=t.start,c=t.end,f=0,d=1,m=s,p=function(){var O=r==null?void 0:r[f];if(O===void 0)return{v:gz(r,d)};var w=f,S,E=function(){return S===void 0&&(S=n(O,w)),S},T=O.coordinate,A=f===0||lp(e,T,E,m,c);A||(f=0,m=s,d+=1),A&&(m=T+e*(E()/2+i),f+=d)},y;d<=l.length;)if(y=p(),y)return y.v;return[]}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 OD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OD(Object(n),!0).forEach(function(r){Gse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gse(e,t,n){return t=Vse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vse(e){var t=Yse(e,"string");return Bc(t)=="symbol"?t:t+""}function Yse(e,t){if(Bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wse(e,t,n,r,i){for(var l=(r||[]).slice(),s=l.length,c=t.start,f=t.end,d=function(y){var x=l[y],O,w=function(){return O===void 0&&(O=n(x,y)),O};if(y===s-1){var S=e*(x.coordinate+e*w()/2-f);l[y]=x=fn(fn({},x),{},{tickCoord:S>0?x.coordinate-S*e:x.coordinate})}else l[y]=x=fn(fn({},x),{},{tickCoord:x.coordinate});var E=lp(e,x.tickCoord,w,c,f);E&&(f=x.tickCoord-e*(w()/2+i),l[y]=fn(fn({},x),{},{isShow:!0}))},m=s-1;m>=0;m--)d(m);return l}function Kse(e,t,n,r,i,l){var s=(r||[]).slice(),c=s.length,f=t.start,d=t.end;if(l){var m=r[c-1],p=n(m,c-1),y=e*(m.coordinate+e*p/2-d);s[c-1]=m=fn(fn({},m),{},{tickCoord:y>0?m.coordinate-y*e:m.coordinate});var x=lp(e,m.tickCoord,function(){return p},f,d);x&&(d=m.tickCoord-e*(p/2+i),s[c-1]=fn(fn({},m),{},{isShow:!0}))}for(var O=l?c-1:c,w=function(T){var A=s[T],M,j=function(){return M===void 0&&(M=n(A,T)),M};if(T===0){var N=e*(A.coordinate-e*j()/2-f);s[T]=A=fn(fn({},A),{},{tickCoord:N<0?A.coordinate-N*e:A.coordinate})}else s[T]=A=fn(fn({},A),{},{tickCoord:A.coordinate});var R=lp(e,A.tickCoord,j,f,d);R&&(f=A.tickCoord+e*(j()/2+i),s[T]=fn(fn({},A),{},{isShow:!0}))},S=0;S<O;S++)w(S);return s}function GO(e,t,n){var r=e.tick,i=e.ticks,l=e.viewBox,s=e.minTickGap,c=e.orientation,f=e.interval,d=e.tickFormatter,m=e.unit,p=e.angle;if(!i||!i.length||!r)return[];if(ve(f)||Ms.isSsr)return Hse(i,typeof f=="number"&&ve(f)?f:0);var y=[],x=c==="top"||c==="bottom"?"width":"height",O=m&&x==="width"?Ku(m,{fontSize:t,letterSpacing:n}):{width:0,height:0},w=function(A,M){var j=De(d)?d(A.value,M):A.value;return x==="width"?qse(Ku(j,{fontSize:t,letterSpacing:n}),O,p):Ku(j,{fontSize:t,letterSpacing:n})[x]},S=i.length>=2?jr(i[1].coordinate-i[0].coordinate):1,E=Use(l,S,x);return f==="equidistantPreserveStart"?Fse(S,E,w,i,s):(f==="preserveStart"||f==="preserveStartEnd"?y=Kse(S,E,w,i,s,f==="preserveStartEnd"):y=Wse(S,E,w,i,s),y.filter(function(T){return T.isShow}))}var Xse=["viewBox"],Qse=["viewBox"],Zse=["ticks"];function fs(e){"@babel/helpers - typeof";return fs=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},fs(e)}function kl(){return kl=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},kl.apply(this,arguments)}function _D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Bt(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){VO(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 rw(e,t){if(e==null)return{};var n=Jse(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Jse(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 eue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ED(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,bz(r.key),r)}}function tue(e,t,n){return t&&ED(e.prototype,t),n&&ED(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nue(e,t,n){return t=sp(t),rue(e,yz()?Reflect.construct(t,n||[],sp(e).constructor):t.apply(e,n))}function rue(e,t){if(t&&(fs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aue(e)}function aue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yz=function(){return!!e})()}function sp(e){return sp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sp(e)}function iue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B1(e,t)}function B1(e,t){return B1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},B1(e,t)}function VO(e,t,n){return t=bz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bz(e){var t=oue(e,"string");return fs(t)=="symbol"?t:t+""}function oue(e,t){if(fs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ds=(function(e){function t(n){var r;return eue(this,t),r=nue(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return iue(t,e),tue(t,[{key:"shouldComponentUpdate",value:function(r,i){var l=r.viewBox,s=rw(r,Xse),c=this.props,f=c.viewBox,d=rw(c,Qse);return!Ul(l,f)||!Ul(s,d)||!Ul(i,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var i=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var i=this.props,l=i.x,s=i.y,c=i.width,f=i.height,d=i.orientation,m=i.tickSize,p=i.mirror,y=i.tickMargin,x,O,w,S,E,T,A=p?-1:1,M=r.tickSize||m,j=ve(r.tickCoord)?r.tickCoord:r.coordinate;switch(d){case"top":x=O=r.coordinate,S=s+ +!p*f,w=S-A*M,T=w-A*y,E=j;break;case"left":w=S=r.coordinate,O=l+ +!p*c,x=O-A*M,E=x-A*y,T=j;break;case"right":w=S=r.coordinate,O=l+ +p*c,x=O+A*M,E=x+A*y,T=j;break;default:x=O=r.coordinate,S=s+ +p*f,w=S+A*M,T=w+A*y,E=j;break}return{line:{x1:x,y1:w,x2:O,y2:S},tick:{x:E,y:T}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,l=r.mirror,s;switch(i){case"left":s=l?"start":"end";break;case"right":s=l?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,l=r.mirror,s="end";switch(i){case"left":case"right":s="middle";break;case"top":s=l?"start":"end";break;default:s=l?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,l=r.y,s=r.width,c=r.height,f=r.orientation,d=r.mirror,m=r.axisLine,p=Bt(Bt(Bt({},qe(this.props,!1)),qe(m,!1)),{},{fill:"none"});if(f==="top"||f==="bottom"){var y=+(f==="top"&&!d||f==="bottom"&&d);p=Bt(Bt({},p),{},{x1:i,y1:l+y*c,x2:i+s,y2:l+y*c})}else{var x=+(f==="left"&&!d||f==="right"&&d);p=Bt(Bt({},p),{},{x1:i+x*s,y1:l,x2:i+x*s,y2:l+c})}return L.createElement("line",kl({},p,{className:Ue("recharts-cartesian-axis-line",fr(m,"className"))}))}},{key:"renderTicks",value:function(r,i,l){var s=this,c=this.props,f=c.tickLine,d=c.stroke,m=c.tick,p=c.tickFormatter,y=c.unit,x=GO(Bt(Bt({},this.props),{},{ticks:r}),i,l),O=this.getTickTextAnchor(),w=this.getTickVerticalAnchor(),S=qe(this.props,!1),E=qe(m,!1),T=Bt(Bt({},S),{},{fill:"none"},qe(f,!1)),A=x.map(function(M,j){var N=s.getTickLineCoord(M),R=N.line,k=N.tick,I=Bt(Bt(Bt(Bt({textAnchor:O,verticalAnchor:w},S),{},{stroke:"none",fill:d},E),k),{},{index:j,payload:M,visibleTicksCount:x.length,tickFormatter:p});return L.createElement(jt,kl({className:"recharts-cartesian-axis-tick",key:"tick-".concat(M.value,"-").concat(M.coordinate,"-").concat(M.tickCoord)},bh(s.props,M,j)),f&&L.createElement("line",kl({},T,R,{className:Ue("recharts-cartesian-axis-tick-line",fr(f,"className"))})),m&&t.renderTickItem(m,I,"".concat(De(p)?p(M.value,j):M.value).concat(y||"")))});return L.createElement("g",{className:"recharts-cartesian-axis-ticks"},A)}},{key:"render",value:function(){var r=this,i=this.props,l=i.axisLine,s=i.width,c=i.height,f=i.ticksGenerator,d=i.className,m=i.hide;if(m)return null;var p=this.props,y=p.ticks,x=rw(p,Zse),O=y;return De(f)&&(O=y&&y.length>0?f(this.props):f(x)),s<=0||c<=0||!O||!O.length?null:L.createElement(jt,{className:Ue("recharts-cartesian-axis",d),ref:function(S){r.layerReference=S}},l&&this.renderAxisLine(),this.renderTicks(O,this.state.fontSize,this.state.letterSpacing),dn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,l){var s,c=Ue(i.className,"recharts-cartesian-axis-tick-value");return L.isValidElement(r)?s=L.cloneElement(r,Bt(Bt({},i),{},{className:c})):De(r)?s=r(Bt(Bt({},i),{},{className:c})):s=L.createElement(Mh,kl({},i,{className:"recharts-cartesian-axis-tick-value"}),l),s}}])})(_.Component);VO(Ds,"displayName","CartesianAxis");VO(Ds,"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 lue=["x1","y1","x2","y2","key"],sue=["offset"];function To(e){"@babel/helpers - typeof";return To=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},To(e)}function AD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AD(Object(n),!0).forEach(function(r){uue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uue(e,t,n){return t=cue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cue(e){var t=fue(e,"string");return To(t)=="symbol"?t:t+""}function fue(e,t){if(To(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(To(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function po(){return po=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},po.apply(this,arguments)}function TD(e,t){if(e==null)return{};var n=due(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function due(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 hue=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,l=t.y,s=t.width,c=t.height,f=t.ry;return L.createElement("rect",{x:i,y:l,ry:f,width:s,height:c,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function xz(e,t){var n;if(L.isValidElement(e))n=L.cloneElement(e,t);else if(De(e))n=e(t);else{var r=t.x1,i=t.y1,l=t.x2,s=t.y2,c=t.key,f=TD(t,lue),d=qe(f,!1);d.offset;var m=TD(d,sue);n=L.createElement("line",po({},m,{x1:r,y1:i,x2:l,y2:s,fill:"none",key:c}))}return n}function pue(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,l=e.horizontalPoints;if(!i||!l||!l.length)return null;var s=l.map(function(c,f){var d=hn(hn({},e),{},{x1:t,y1:c,x2:t+n,y2:c,key:"line-".concat(f),index:f});return xz(i,d)});return L.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function mue(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,l=e.verticalPoints;if(!i||!l||!l.length)return null;var s=l.map(function(c,f){var d=hn(hn({},e),{},{x1:c,y1:t,x2:c,y2:t+n,key:"line-".concat(f),index:f});return xz(i,d)});return L.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function vue(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,l=e.width,s=e.height,c=e.horizontalPoints,f=e.horizontal,d=f===void 0?!0:f;if(!d||!t||!t.length)return null;var m=c.map(function(y){return Math.round(y+i-i)}).sort(function(y,x){return y-x});i!==m[0]&&m.unshift(0);var p=m.map(function(y,x){var O=!m[x+1],w=O?i+s-y:m[x+1]-y;if(w<=0)return null;var S=x%t.length;return L.createElement("rect",{key:"react-".concat(x),y,x:r,height:w,width:l,stroke:"none",fill:t[S],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return L.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}function gue(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,l=e.x,s=e.y,c=e.width,f=e.height,d=e.verticalPoints;if(!n||!r||!r.length)return null;var m=d.map(function(y){return Math.round(y+l-l)}).sort(function(y,x){return y-x});l!==m[0]&&m.unshift(0);var p=m.map(function(y,x){var O=!m[x+1],w=O?l+c-y:m[x+1]-y;if(w<=0)return null;var S=x%r.length;return L.createElement("rect",{key:"react-".concat(x),x:y,y:s,width:w,height:f,stroke:"none",fill:r[S],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return L.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var yue=function(t,n){var r=t.xAxis,i=t.width,l=t.height,s=t.offset;return D4(GO(hn(hn(hn({},Ds.defaultProps),r),{},{ticks:ja(r,!0),viewBox:{x:0,y:0,width:i,height:l}})),s.left,s.left+s.width,n)},bue=function(t,n){var r=t.yAxis,i=t.width,l=t.height,s=t.offset;return D4(GO(hn(hn(hn({},Ds.defaultProps),r),{},{ticks:ja(r,!0),viewBox:{x:0,y:0,width:i,height:l}})),s.top,s.top+s.height,n)},Nl={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function wz(e){var t,n,r,i,l,s,c=qO(),f=UO(),d=ose(),m=hn(hn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Nl.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Nl.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Nl.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Nl.horizontalFill,vertical:(l=e.vertical)!==null&&l!==void 0?l:Nl.vertical,verticalFill:(s=e.verticalFill)!==null&&s!==void 0?s:Nl.verticalFill,x:ve(e.x)?e.x:d.left,y:ve(e.y)?e.y:d.top,width:ve(e.width)?e.width:d.width,height:ve(e.height)?e.height:d.height}),p=m.x,y=m.y,x=m.width,O=m.height,w=m.syncWithTicks,S=m.horizontalValues,E=m.verticalValues,T=rse(),A=ase();if(!ve(x)||x<=0||!ve(O)||O<=0||!ve(p)||p!==+p||!ve(y)||y!==+y)return null;var M=m.verticalCoordinatesGenerator||yue,j=m.horizontalCoordinatesGenerator||bue,N=m.horizontalPoints,R=m.verticalPoints;if((!N||!N.length)&&De(j)){var k=S&&S.length,I=j({yAxis:A?hn(hn({},A),{},{ticks:k?S:A.ticks}):void 0,width:c,height:f,offset:d},k?!0:w);Na(Array.isArray(I),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(To(I),"]")),Array.isArray(I)&&(N=I)}if((!R||!R.length)&&De(M)){var V=E&&E.length,z=M({xAxis:T?hn(hn({},T),{},{ticks:V?E:T.ticks}):void 0,width:c,height:f,offset:d},V?!0:w);Na(Array.isArray(z),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(To(z),"]")),Array.isArray(z)&&(R=z)}return L.createElement("g",{className:"recharts-cartesian-grid"},L.createElement(hue,{fill:m.fill,fillOpacity:m.fillOpacity,x:m.x,y:m.y,width:m.width,height:m.height,ry:m.ry}),L.createElement(pue,po({},m,{offset:d,horizontalPoints:N,xAxis:T,yAxis:A})),L.createElement(mue,po({},m,{offset:d,verticalPoints:R,xAxis:T,yAxis:A})),L.createElement(vue,po({},m,{horizontalPoints:N})),L.createElement(gue,po({},m,{verticalPoints:R})))}wz.displayName="CartesianGrid";var xue=["type","layout","connectNulls","ref"],wue=["key"];function ds(e){"@babel/helpers - typeof";return ds=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},ds(e)}function jD(e,t){if(e==null)return{};var n=Sue(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sue(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 Ju(){return Ju=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},Ju.apply(this,arguments)}function CD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function qn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CD(Object(n),!0).forEach(function(r){Er(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rl(e){return Aue(e)||Eue(e)||_ue(e)||Oue()}function Oue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
357
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _ue(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 Eue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Aue(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 Tue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Oz(r.key),r)}}function jue(e,t,n){return t&&MD(e.prototype,t),n&&MD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cue(e,t,n){return t=up(t),Mue(e,Sz()?Reflect.construct(t,n||[],up(e).constructor):t.apply(e,n))}function Mue(e,t){if(t&&(ds(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 Sz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Sz=function(){return!!e})()}function up(e){return up=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},up(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&&U1(e,t)}function U1(e,t){return U1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},U1(e,t)}function Er(e,t,n){return t=Oz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oz(e){var t=Pue(e,"string");return ds(t)=="symbol"?t:t+""}function Pue(e,t){if(ds(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ds(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Gr=(function(e){function t(){var n;Tue(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=Cue(this,t,[].concat(i)),Er(n,"state",{isAnimationFinished:!0,totalLength:0}),Er(n,"generateSimpleStrokeDasharray",function(s,c){return"".concat(c,"px ").concat(s-c,"px")}),Er(n,"getStrokeDasharray",function(s,c,f){var d=f.reduce(function(E,T){return E+T});if(!d)return n.generateSimpleStrokeDasharray(c,s);for(var m=Math.floor(s/d),p=s%d,y=c-s,x=[],O=0,w=0;O<f.length;w+=f[O],++O)if(w+f[O]>p){x=[].concat(Rl(f.slice(0,O)),[p-w]);break}var S=x.length%2===0?[0,y]:[y];return[].concat(Rl(t.repeat(f,m)),Rl(x),S).map(function(E){return"".concat(E,"px")}).join(", ")}),Er(n,"id",af("recharts-line-")),Er(n,"pathRef",function(s){n.mainCurve=s}),Er(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Er(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return Rue(t,e),jue(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,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var l=this.props,s=l.points,c=l.xAxis,f=l.yAxis,d=l.layout,m=l.children,p=dr(m,ff);if(!p)return null;var y=function(w,S){return{x:w.x,y:w.y,value:w.value,errorVal:Yn(w.payload,S)}},x={clipPath:r?"url(#clipPath-".concat(i,")"):null};return L.createElement(jt,x,p.map(function(O){return L.cloneElement(O,{key:"bar-".concat(O.props.dataKey),data:s,xAxis:c,yAxis:f,layout:d,dataPointFormatter:y})}))}},{key:"renderDots",value:function(r,i,l){var s=this.props.isAnimationActive;if(s&&!this.state.isAnimationFinished)return null;var c=this.props,f=c.dot,d=c.points,m=c.dataKey,p=qe(this.props,!1),y=qe(f,!0),x=d.map(function(w,S){var E=qn(qn(qn({key:"dot-".concat(S),r:3},p),y),{},{index:S,cx:w.x,cy:w.y,value:w.value,dataKey:m,payload:w.payload,points:d});return t.renderDotItem(f,E)}),O={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(l,")"):null};return L.createElement(jt,Ju({className:"recharts-line-dots",key:"dots"},O),x)}},{key:"renderCurveStatically",value:function(r,i,l,s){var c=this.props,f=c.type,d=c.layout,m=c.connectNulls;c.ref;var p=jD(c,xue),y=qn(qn(qn({},qe(p,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(l,")"):null,points:r},s),{},{type:f,layout:d,connectNulls:m});return L.createElement(b1,Ju({},y,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var l=this,s=this.props,c=s.points,f=s.strokeDasharray,d=s.isAnimationActive,m=s.animationBegin,p=s.animationDuration,y=s.animationEasing,x=s.animationId,O=s.animateNewValues,w=s.width,S=s.height,E=this.state,T=E.prevPoints,A=E.totalLength;return L.createElement(za,{begin:m,duration:p,isActive:d,easing:y,from:{t:0},to:{t:1},key:"line-".concat(x),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(M){var j=M.t;if(T){var N=T.length/c.length,R=c.map(function(B,G){var K=Math.floor(G*N);if(T[K]){var X=T[K],D=Ar(X.x,B.x),U=Ar(X.y,B.y);return qn(qn({},B),{},{x:D(j),y:U(j)})}if(O){var Y=Ar(w*2,B.x),W=Ar(S/2,B.y);return qn(qn({},B),{},{x:Y(j),y:W(j)})}return qn(qn({},B),{},{x:B.x,y:B.y})});return l.renderCurveStatically(R,r,i)}var k=Ar(0,A),I=k(j),V;if(f){var z="".concat(f).split(/[,\s]+/gim).map(function(B){return parseFloat(B)});V=l.getStrokeDasharray(I,A,z)}else V=l.generateSimpleStrokeDasharray(A,I);return l.renderCurveStatically(c,r,i,{strokeDasharray:V})})}},{key:"renderCurve",value:function(r,i){var l=this.props,s=l.points,c=l.isAnimationActive,f=this.state,d=f.prevPoints,m=f.totalLength;return c&&s&&s.length&&(!d&&m>0||!um(d,s))?this.renderCurveWithAnimation(r,i):this.renderCurveStatically(s,r,i)}},{key:"render",value:function(){var r,i=this.props,l=i.hide,s=i.dot,c=i.points,f=i.className,d=i.xAxis,m=i.yAxis,p=i.top,y=i.left,x=i.width,O=i.height,w=i.isAnimationActive,S=i.id;if(l||!c||!c.length)return null;var E=this.state.isAnimationFinished,T=c.length===1,A=Ue("recharts-line",f),M=d&&d.allowDataOverflow,j=m&&m.allowDataOverflow,N=M||j,R=Le(S)?this.id:S,k=(r=qe(s,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},I=k.r,V=I===void 0?3:I,z=k.strokeWidth,B=z===void 0?2:z,G=KW(s)?s:{},K=G.clipDot,X=K===void 0?!0:K,D=V*2+B;return L.createElement(jt,{className:A},M||j?L.createElement("defs",null,L.createElement("clipPath",{id:"clipPath-".concat(R)},L.createElement("rect",{x:M?y:y-x/2,y:j?p:p-O/2,width:M?x:x*2,height:j?O:O*2})),!X&&L.createElement("clipPath",{id:"clipPath-dots-".concat(R)},L.createElement("rect",{x:y-D/2,y:p-D/2,width:x+D,height:O+D}))):null,!T&&this.renderCurve(N,R),this.renderErrorBar(N,R),(T||s)&&this.renderDots(N,X,R),(!w||E)&&Ei.renderCallByParent(this.props,c))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,i){for(var l=r.length%2!==0?[].concat(Rl(r),[0]):r,s=[],c=0;c<i;++c)s=[].concat(Rl(s),Rl(l));return s}},{key:"renderDotItem",value:function(r,i){var l;if(L.isValidElement(r))l=L.cloneElement(r,i);else if(De(r))l=r(i);else{var s=i.key,c=jD(i,wue),f=Ue("recharts-line-dot",typeof r!="boolean"?r.className:"");l=L.createElement(LO,Ju({key:s},c,{className:f}))}return l}}])})(_.PureComponent);Er(Gr,"displayName","Line");Er(Gr,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ms.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Er(Gr,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,l=e.yAxisTicks,s=e.dataKey,c=e.bandSize,f=e.displayedData,d=e.offset,m=t.layout,p=f.map(function(y,x){var O=Yn(y,s);return m==="horizontal"?{x:FR({axis:n,ticks:i,bandSize:c,entry:y,index:x}),y:Le(O)?null:r.scale(O),value:O,payload:y}:{x:Le(O)?null:n.scale(O),y:FR({axis:r,ticks:l,bandSize:c,entry:y,index:x}),value:O,payload:y}});return qn({points:p,layout:m},d)});function hs(e){"@babel/helpers - typeof";return hs=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},hs(e)}function Due(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kue(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,Az(r.key),r)}}function $ue(e,t,n){return t&&kue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lue(e,t,n){return t=cp(t),Iue(e,_z()?Reflect.construct(t,n||[],cp(e).constructor):t.apply(e,n))}function Iue(e,t){if(t&&(hs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zue(e)}function zue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _z(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_z=function(){return!!e})()}function cp(e){return cp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cp(e)}function Bue(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,i){return r.__proto__=i,r},H1(e,t)}function Ez(e,t,n){return t=Az(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Az(e){var t=que(e,"string");return hs(t)=="symbol"?t:t+""}function que(e,t){if(hs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}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 Uue(e){var t=e.xAxisId,n=qO(),r=UO(),i=uz(t);return i==null?null:_.createElement(Ds,F1({},i,{className:Ue("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(s){return ja(s,!0)}}))}var bm=(function(e){function t(){return Due(this,t),Lue(this,t,arguments)}return Bue(t,e),$ue(t,[{key:"render",value:function(){return _.createElement(Uue,this.props)}}])})(_.Component);Ez(bm,"displayName","XAxis");Ez(bm,"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 ps(e){"@babel/helpers - typeof";return ps=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},ps(e)}function Hue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Cz(r.key),r)}}function Gue(e,t,n){return t&&Fue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vue(e,t,n){return t=fp(t),Yue(e,Tz()?Reflect.construct(t,n||[],fp(e).constructor):t.apply(e,n))}function Yue(e,t){if(t&&(ps(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wue(e)}function Wue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tz=function(){return!!e})()}function fp(e){return fp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fp(e)}function Kue(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,i){return r.__proto__=i,r},G1(e,t)}function jz(e,t,n){return t=Cz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cz(e){var t=Xue(e,"string");return ps(t)=="symbol"?t:t+""}function Xue(e,t){if(ps(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ps(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(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)}var Que=function(t){var n=t.yAxisId,r=qO(),i=UO(),l=cz(n);return l==null?null:_.createElement(Ds,V1({},l,{className:Ue("recharts-".concat(l.axisType," ").concat(l.axisType),l.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(c){return ja(c,!0)}}))},xm=(function(e){function t(){return Hue(this,t),Vue(this,t,arguments)}return Kue(t,e),Gue(t,[{key:"render",value:function(){return _.createElement(Que,this.props)}}])})(_.Component);jz(xm,"displayName","YAxis");jz(xm,"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 ND(e){return tce(e)||ece(e)||Jue(e)||Zue()}function Zue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
358
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jue(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 ece(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tce(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}var W1=function(t,n,r,i,l){var s=dr(t,FO),c=dr(t,vm),f=[].concat(ND(s),ND(c)),d=dr(t,ym),m="".concat(i,"Id"),p=i[0],y=n;if(f.length&&(y=f.reduce(function(w,S){if(S.props[m]===r&&Qr(S.props,"extendDomain")&&ve(S.props[p])){var E=S.props[p];return[Math.min(w[0],E),Math.max(w[1],E)]}return w},y)),d.length){var x="".concat(p,"1"),O="".concat(p,"2");y=d.reduce(function(w,S){if(S.props[m]===r&&Qr(S.props,"extendDomain")&&ve(S.props[x])&&ve(S.props[O])){var E=S.props[x],T=S.props[O];return[Math.min(w[0],E,T),Math.max(w[1],E,T)]}return w},y)}return l&&l.length&&(y=l.reduce(function(w,S){return ve(S)?[Math.min(w[0],S),Math.max(w[1],S)]:w},y)),y},aw={exports:{}},RD;function nce(){return RD||(RD=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(f,d,m){this.fn=f,this.context=d,this.once=m||!1}function l(f,d,m,p,y){if(typeof m!="function")throw new TypeError("The listener must be a function");var x=new i(m,p||f,y),O=n?n+d:d;return f._events[O]?f._events[O].fn?f._events[O]=[f._events[O],x]:f._events[O].push(x):(f._events[O]=x,f._eventsCount++),f}function s(f,d){--f._eventsCount===0?f._events=new r:delete f._events[d]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var d=[],m,p;if(this._eventsCount===0)return d;for(p in m=this._events)t.call(m,p)&&d.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(m)):d},c.prototype.listeners=function(d){var m=n?n+d:d,p=this._events[m];if(!p)return[];if(p.fn)return[p.fn];for(var y=0,x=p.length,O=new Array(x);y<x;y++)O[y]=p[y].fn;return O},c.prototype.listenerCount=function(d){var m=n?n+d:d,p=this._events[m];return p?p.fn?1:p.length:0},c.prototype.emit=function(d,m,p,y,x,O){var w=n?n+d:d;if(!this._events[w])return!1;var S=this._events[w],E=arguments.length,T,A;if(S.fn){switch(S.once&&this.removeListener(d,S.fn,void 0,!0),E){case 1:return S.fn.call(S.context),!0;case 2:return S.fn.call(S.context,m),!0;case 3:return S.fn.call(S.context,m,p),!0;case 4:return S.fn.call(S.context,m,p,y),!0;case 5:return S.fn.call(S.context,m,p,y,x),!0;case 6:return S.fn.call(S.context,m,p,y,x,O),!0}for(A=1,T=new Array(E-1);A<E;A++)T[A-1]=arguments[A];S.fn.apply(S.context,T)}else{var M=S.length,j;for(A=0;A<M;A++)switch(S[A].once&&this.removeListener(d,S[A].fn,void 0,!0),E){case 1:S[A].fn.call(S[A].context);break;case 2:S[A].fn.call(S[A].context,m);break;case 3:S[A].fn.call(S[A].context,m,p);break;case 4:S[A].fn.call(S[A].context,m,p,y);break;default:if(!T)for(j=1,T=new Array(E-1);j<E;j++)T[j-1]=arguments[j];S[A].fn.apply(S[A].context,T)}}return!0},c.prototype.on=function(d,m,p){return l(this,d,m,p,!1)},c.prototype.once=function(d,m,p){return l(this,d,m,p,!0)},c.prototype.removeListener=function(d,m,p,y){var x=n?n+d:d;if(!this._events[x])return this;if(!m)return s(this,x),this;var O=this._events[x];if(O.fn)O.fn===m&&(!y||O.once)&&(!p||O.context===p)&&s(this,x);else{for(var w=0,S=[],E=O.length;w<E;w++)(O[w].fn!==m||y&&!O[w].once||p&&O[w].context!==p)&&S.push(O[w]);S.length?this._events[x]=S.length===1?S[0]:S:s(this,x)}return this},c.prototype.removeAllListeners=function(d){var m;return d?(m=n?n+d:d,this._events[m]&&s(this,m)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c})(aw)),aw.exports}var rce=nce();const ace=lt(rce);var iw=new ace,ow="recharts.syncMouseEvents";function qc(e){"@babel/helpers - typeof";return qc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qc(e)}function ice(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oce(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,Mz(r.key),r)}}function lce(e,t,n){return t&&oce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lw(e,t,n){return t=Mz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mz(e){var t=sce(e,"string");return qc(t)=="symbol"?t:t+""}function sce(e,t){if(qc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var uce=(function(){function e(){ice(this,e),lw(this,"activeIndex",0),lw(this,"coordinateList",[]),lw(this,"layout","horizontal")}return lce(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,l=i===void 0?null:i,s=n.container,c=s===void 0?null:s,f=n.layout,d=f===void 0?null:f,m=n.offset,p=m===void 0?null:m,y=n.mouseHandlerCallback,x=y===void 0?null:y;this.coordinateList=(r=l??this.coordinateList)!==null&&r!==void 0?r:[],this.container=c??this.container,this.layout=d??this.layout,this.offset=p??this.offset,this.mouseHandlerCallback=x??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 i=this.container.getBoundingClientRect(),l=i.x,s=i.y,c=i.height,f=this.coordinateList[this.activeIndex].coordinate,d=((n=window)===null||n===void 0?void 0:n.scrollX)||0,m=((r=window)===null||r===void 0?void 0:r.scrollY)||0,p=l+f+d,y=s+this.offset.top+c/2+m;this.mouseHandlerCallback({pageX:p,pageY:y})}}}])})();function cce(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],i=e==null?void 0:e[1];if(r&&i&&ve(r)&&ve(i))return!0}return!1}function fce(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function Nz(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,l=e.endAngle,s=on(t,n,r,i),c=on(t,n,r,l);return{points:[s,c],cx:t,cy:n,radius:r,startAngle:i,endAngle:l}}function dce(e,t,n){var r,i,l,s;if(e==="horizontal")r=t.x,l=r,i=n.top,s=n.top+n.height;else if(e==="vertical")i=t.y,s=i,r=n.left,l=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var c=t.cx,f=t.cy,d=t.innerRadius,m=t.outerRadius,p=t.angle,y=on(c,f,d,p),x=on(c,f,m,p);r=y.x,i=y.y,l=x.x,s=x.y}else return Nz(t);return[{x:r,y:i},{x:l,y:s}]}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 PD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PD(Object(n),!0).forEach(function(r){hce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hce(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 Uc(t)=="symbol"?t:t+""}function mce(e,t){if(Uc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vce(e){var t,n,r=e.element,i=e.tooltipEventType,l=e.isActive,s=e.activeCoordinate,c=e.activePayload,f=e.offset,d=e.activeTooltipIndex,m=e.tooltipAxisBandSize,p=e.layout,y=e.chartName,x=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!x||!l||!s||y!=="ScatterChart"&&i!=="axis")return null;var O,w=b1;if(y==="ScatterChart")O=s,w=hoe;else if(y==="BarChart")O=fce(p,s,f,m),w=$O;else if(p==="radial"){var S=Nz(s),E=S.cx,T=S.cy,A=S.radius,M=S.startAngle,j=S.endAngle;O={cx:E,cy:T,startAngle:M,endAngle:j,innerRadius:A,outerRadius:A},w=z4}else O={points:dce(p,s,f)},w=b1;var N=Yd(Yd(Yd(Yd({stroke:"#ccc",pointerEvents:"none"},f),O),qe(x,!1)),{},{payload:c,payloadIndex:d,className:Ue("recharts-tooltip-cursor",x.className)});return _.isValidElement(x)?_.cloneElement(x,N):_.createElement(w,N)}var gce=["item"],yce=["children","className","width","height","style","compact","title","desc"];function ms(e){"@babel/helpers - typeof";return ms=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},ms(e)}function $l(){return $l=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},$l.apply(this,arguments)}function DD(e,t){return wce(e)||xce(e,t)||Pz(e,t)||bce()}function bce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
359
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xce(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function wce(e){if(Array.isArray(e))return e}function kD(e,t){if(e==null)return{};var n=Sce(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sce(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 Oce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Dz(r.key),r)}}function Ece(e,t,n){return t&&_ce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ace(e,t,n){return t=dp(t),Tce(e,Rz()?Reflect.construct(t,n||[],dp(e).constructor):t.apply(e,n))}function Tce(e,t){if(t&&(ms(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jce(e)}function jce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rz=function(){return!!e})()}function dp(e){return dp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dp(e)}function Cce(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,i){return r.__proto__=i,r},K1(e,t)}function vs(e){return Rce(e)||Nce(e)||Pz(e)||Mce()}function Mce(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
360
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pz(e,t){if(e){if(typeof e=="string")return X1(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 X1(e,t)}}function Nce(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Rce(e){if(Array.isArray(e))return X1(e)}function X1(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 $D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function le(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){Ae(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 Ae(e,t,n){return t=Dz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dz(e){var t=Pce(e,"string");return ms(t)=="symbol"?t:t+""}function Pce(e,t){if(ms(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ms(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Dce={xAxis:["bottom","top"],yAxis:["left","right"]},kce={width:"100%",height:"100%"},kz={x:0,y:0};function Wd(e){return e}var $ce=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Lce=function(t,n,r,i){var l=n.find(function(m){return m&&m.index===r});if(l){if(t==="horizontal")return{x:l.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:l.coordinate};if(t==="centric"){var s=l.coordinate,c=i.radius;return le(le(le({},i),on(i.cx,i.cy,c,s)),{},{angle:s,radius:c})}var f=l.coordinate,d=i.angle;return le(le(le({},i),on(i.cx,i.cy,f,d)),{},{angle:d,radius:f})}return kz},wm=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,l=n.dataEndIndex,s=(r??[]).reduce(function(c,f){var d=f.props.data;return d&&d.length?[].concat(vs(c),vs(d)):c},[]);return s.length>0?s:t&&t.length&&ve(i)&&ve(l)?t.slice(i,l+1):[]};function $z(e){return e==="number"?[0,"auto"]:void 0}var Q1=function(t,n,r,i){var l=t.graphicalItems,s=t.tooltipAxis,c=wm(n,t);return r<0||!l||!l.length||r>=c.length?null:l.reduce(function(f,d){var m,p=(m=d.props.data)!==null&&m!==void 0?m:n;p&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(p=p.slice(t.dataStartIndex,t.dataEndIndex+1));var y;if(s.dataKey&&!s.allowDuplicatedCategory){var x=p===void 0?c:p;y=gh(x,s.dataKey,i)}else y=p&&p[r]||c[r];return y?[].concat(vs(f),[$4(d,y)]):f},[])},LD=function(t,n,r,i){var l=i||{x:t.chartX,y:t.chartY},s=$ce(l,r),c=t.orderedTooltipTicks,f=t.tooltipAxis,d=t.tooltipTicks,m=Kne(s,c,d,f);if(m>=0&&d){var p=d[m]&&d[m].value,y=Q1(t,n,m,p),x=Lce(r,c,m,l);return{activeTooltipIndex:m,activeLabel:p,activePayload:y,activeCoordinate:x}}return null},Ice=function(t,n){var r=n.axes,i=n.graphicalItems,l=n.axisType,s=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.layout,p=t.children,y=t.stackOffset,x=P4(m,l);return r.reduce(function(O,w){var S,E=w.type.defaultProps!==void 0?le(le({},w.type.defaultProps),w.props):w.props,T=E.type,A=E.dataKey,M=E.allowDataOverflow,j=E.allowDuplicatedCategory,N=E.scale,R=E.ticks,k=E.includeHidden,I=E[s];if(O[I])return O;var V=wm(t.data,{graphicalItems:i.filter(function(F){var Z,se=s in F.props?F.props[s]:(Z=F.type.defaultProps)===null||Z===void 0?void 0:Z[s];return se===I}),dataStartIndex:f,dataEndIndex:d}),z=V.length,B,G,K;cce(E.domain,M,T)&&(B=p1(E.domain,null,M),x&&(T==="number"||N!=="auto")&&(K=Qu(V,A,"category")));var X=$z(T);if(!B||B.length===0){var D,U=(D=E.domain)!==null&&D!==void 0?D:X;if(A){if(B=Qu(V,A,T),T==="category"&&x){var Y=zW(B);j&&Y?(G=B,B=Jh(0,z)):j||(B=WR(U,B,w).reduce(function(F,Z){return F.indexOf(Z)>=0?F:[].concat(vs(F),[Z])},[]))}else if(T==="category")j?B=B.filter(function(F){return F!==""&&!Le(F)}):B=WR(U,B,w).reduce(function(F,Z){return F.indexOf(Z)>=0||Z===""||Le(Z)?F:[].concat(vs(F),[Z])},[]);else if(T==="number"){var W=ere(V,i.filter(function(F){var Z,se,de=s in F.props?F.props[s]:(Z=F.type.defaultProps)===null||Z===void 0?void 0:Z[s],ge="hide"in F.props?F.props.hide:(se=F.type.defaultProps)===null||se===void 0?void 0:se.hide;return de===I&&(k||!ge)}),A,l,m);W&&(B=W)}x&&(T==="number"||N!=="auto")&&(K=Qu(V,A,"category"))}else x?B=Jh(0,z):c&&c[I]&&c[I].hasStack&&T==="number"?B=y==="expand"?[0,1]:k4(c[I].stackGroups,f,d):B=R4(V,i.filter(function(F){var Z=s in F.props?F.props[s]:F.type.defaultProps[s],se="hide"in F.props?F.props.hide:F.type.defaultProps.hide;return Z===I&&(k||!se)}),T,m,!0);if(T==="number")B=W1(p,B,I,l,R),U&&(B=p1(U,B,M));else if(T==="category"&&U){var oe=U,$=B.every(function(F){return oe.indexOf(F)>=0});$&&(B=oe)}}return le(le({},O),{},Ae({},I,le(le({},E),{},{axisType:l,domain:B,categoricalDomain:K,duplicateDomain:G,originalDomain:(S=E.domain)!==null&&S!==void 0?S:X,isCategorical:x,layout:m})))},{})},zce=function(t,n){var r=n.graphicalItems,i=n.Axis,l=n.axisType,s=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.layout,p=t.children,y=wm(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:d}),x=y.length,O=P4(m,l),w=-1;return r.reduce(function(S,E){var T=E.type.defaultProps!==void 0?le(le({},E.type.defaultProps),E.props):E.props,A=T[s],M=$z("number");if(!S[A]){w++;var j;return O?j=Jh(0,x):c&&c[A]&&c[A].hasStack?(j=k4(c[A].stackGroups,f,d),j=W1(p,j,A,l)):(j=p1(M,R4(y,r.filter(function(N){var R,k,I=s in N.props?N.props[s]:(R=N.type.defaultProps)===null||R===void 0?void 0:R[s],V="hide"in N.props?N.props.hide:(k=N.type.defaultProps)===null||k===void 0?void 0:k.hide;return I===A&&!V}),"number",m),i.defaultProps.allowDataOverflow),j=W1(p,j,A,l)),le(le({},S),{},Ae({},A,le(le({axisType:l},i.defaultProps),{},{hide:!0,orientation:fr(Dce,"".concat(l,".").concat(w%2),null),domain:j,originalDomain:M,isCategorical:O,layout:m})))}return S},{})},Bce=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,l=n.AxisComp,s=n.graphicalItems,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.children,p="".concat(i,"Id"),y=dr(m,l),x={};return y&&y.length?x=Ice(t,{axes:y,graphicalItems:s,axisType:i,axisIdKey:p,stackGroups:c,dataStartIndex:f,dataEndIndex:d}):s&&s.length&&(x=zce(t,{Axis:l,graphicalItems:s,axisType:i,axisIdKey:p,stackGroups:c,dataStartIndex:f,dataEndIndex:d})),x},qce=function(t){var n=Si(t),r=ja(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:uO(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Fh(n,r)}},ID=function(t){var n=t.children,r=t.defaultShowTooltip,i=Hn(n,os),l=0,s=0;return t.data&&t.data.length!==0&&(s=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(l=i.props.startIndex),i.props.endIndex>=0&&(s=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:l,dataEndIndex:s,activeTooltipIndex:-1,isTooltipActive:!!r}},Uce=function(t){return!t||!t.length?!1:t.some(function(n){var r=Ma(n&&n.type);return r&&r.indexOf("Bar")>=0})},zD=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"}},Hce=function(t,n){var r=t.props,i=t.graphicalItems,l=t.xAxisMap,s=l===void 0?{}:l,c=t.yAxisMap,f=c===void 0?{}:c,d=r.width,m=r.height,p=r.children,y=r.margin||{},x=Hn(p,os),O=Hn(p,vo),w=Object.keys(f).reduce(function(j,N){var R=f[N],k=R.orientation;return!R.mirror&&!R.hide?le(le({},j),{},Ae({},k,j[k]+R.width)):j},{left:y.left||0,right:y.right||0}),S=Object.keys(s).reduce(function(j,N){var R=s[N],k=R.orientation;return!R.mirror&&!R.hide?le(le({},j),{},Ae({},k,fr(j,"".concat(k))+R.height)):j},{top:y.top||0,bottom:y.bottom||0}),E=le(le({},S),w),T=E.bottom;x&&(E.bottom+=x.props.height||os.defaultProps.height),O&&n&&(E=Zne(E,i,r,n));var A=d-E.left-E.right,M=m-E.top-E.bottom;return le(le({brushBottom:T},E),{},{width:Math.max(A,0),height:Math.max(M,0)})},Fce=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},Gce=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,l=i===void 0?"axis":i,s=t.validateTooltipEventTypes,c=s===void 0?["axis"]:s,f=t.axisComponents,d=t.legendContent,m=t.formatAxisMap,p=t.defaultProps,y=function(E,T){var A=T.graphicalItems,M=T.stackGroups,j=T.offset,N=T.updateId,R=T.dataStartIndex,k=T.dataEndIndex,I=E.barSize,V=E.layout,z=E.barGap,B=E.barCategoryGap,G=E.maxBarSize,K=zD(V),X=K.numericAxisName,D=K.cateAxisName,U=Uce(A),Y=[];return A.forEach(function(W,oe){var $=wm(E.data,{graphicalItems:[W],dataStartIndex:R,dataEndIndex:k}),F=W.type.defaultProps!==void 0?le(le({},W.type.defaultProps),W.props):W.props,Z=F.dataKey,se=F.maxBarSize,de=F["".concat(X,"Id")],ge=F["".concat(D,"Id")],fe={},pe=f.reduce(function(Pn,bt){var Wn=T["".concat(bt.axisType,"Map")],Gt=F["".concat(bt.axisType,"Id")];Wn&&Wn[Gt]||bt.axisType==="zAxis"||Ao();var $o=Wn[Gt];return le(le({},Pn),{},Ae(Ae({},bt.axisType,$o),"".concat(bt.axisType,"Ticks"),ja($o)))},fe),ae=pe[D],me=pe["".concat(D,"Ticks")],ye=M&&M[de]&&M[de].hasStack&&dre(W,M[de].stackGroups),re=Ma(W.type).indexOf("Bar")>=0,Ne=Fh(ae,me),Oe=[],Ke=U&&Xne({barSize:I,stackGroups:M,totalSize:Fce(pe,D)});if(re){var He,nt,ln=Le(se)?G:se,ft=(He=(nt=Fh(ae,me,!0))!==null&&nt!==void 0?nt:ln)!==null&&He!==void 0?He:0;Oe=Qne({barGap:z,barCategoryGap:B,bandSize:ft!==Ne?ft:Ne,sizeList:Ke[ge],maxBarSize:ln}),ft!==Ne&&(Oe=Oe.map(function(Pn){return le(le({},Pn),{},{position:le(le({},Pn.position),{},{offset:Pn.position.offset-ft/2})})}))}var $r=W&&W.type&&W.type.getComposedData;$r&&Y.push({props:le(le({},$r(le(le({},pe),{},{displayedData:$,props:E,dataKey:Z,item:W,bandSize:Ne,barPosition:Oe,offset:j,stackedData:ye,layout:V,dataStartIndex:R,dataEndIndex:k}))),{},Ae(Ae(Ae({key:W.key||"item-".concat(oe)},X,pe[X]),D,pe[D]),"animationId",N)),childIndex:ZW(W,E.children),item:W})}),Y},x=function(E,T){var A=E.props,M=E.dataStartIndex,j=E.dataEndIndex,N=E.updateId;if(!sM({props:A}))return null;var R=A.children,k=A.layout,I=A.stackOffset,V=A.data,z=A.reverseStackOrder,B=zD(k),G=B.numericAxisName,K=B.cateAxisName,X=dr(R,r),D=ure(V,X,"".concat(G,"Id"),"".concat(K,"Id"),I,z),U=f.reduce(function(F,Z){var se="".concat(Z.axisType,"Map");return le(le({},F),{},Ae({},se,Bce(A,le(le({},Z),{},{graphicalItems:X,stackGroups:Z.axisType===G&&D,dataStartIndex:M,dataEndIndex:j}))))},{}),Y=Hce(le(le({},U),{},{props:A,graphicalItems:X}),T==null?void 0:T.legendBBox);Object.keys(U).forEach(function(F){U[F]=m(A,U[F],Y,F.replace("Map",""),n)});var W=U["".concat(K,"Map")],oe=qce(W),$=y(A,le(le({},U),{},{dataStartIndex:M,dataEndIndex:j,updateId:N,graphicalItems:X,stackGroups:D,offset:Y}));return le(le({formattedGraphicalItems:$,graphicalItems:X,offset:Y,stackGroups:D},oe),U)},O=(function(S){function E(T){var A,M,j;return Oce(this,E),j=Ace(this,E,[T]),Ae(j,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ae(j,"accessibilityManager",new uce),Ae(j,"handleLegendBBoxUpdate",function(N){if(N){var R=j.state,k=R.dataStartIndex,I=R.dataEndIndex,V=R.updateId;j.setState(le({legendBBox:N},x({props:j.props,dataStartIndex:k,dataEndIndex:I,updateId:V},le(le({},j.state),{},{legendBBox:N}))))}}),Ae(j,"handleReceiveSyncEvent",function(N,R,k){if(j.props.syncId===N){if(k===j.eventEmitterSymbol&&typeof j.props.syncMethod!="function")return;j.applySyncEvent(R)}}),Ae(j,"handleBrushChange",function(N){var R=N.startIndex,k=N.endIndex;if(R!==j.state.dataStartIndex||k!==j.state.dataEndIndex){var I=j.state.updateId;j.setState(function(){return le({dataStartIndex:R,dataEndIndex:k},x({props:j.props,dataStartIndex:R,dataEndIndex:k,updateId:I},j.state))}),j.triggerSyncEvent({dataStartIndex:R,dataEndIndex:k})}}),Ae(j,"handleMouseEnter",function(N){var R=j.getMouseInfo(N);if(R){var k=le(le({},R),{},{isTooltipActive:!0});j.setState(k),j.triggerSyncEvent(k);var I=j.props.onMouseEnter;De(I)&&I(k,N)}}),Ae(j,"triggeredAfterMouseMove",function(N){var R=j.getMouseInfo(N),k=R?le(le({},R),{},{isTooltipActive:!0}):{isTooltipActive:!1};j.setState(k),j.triggerSyncEvent(k);var I=j.props.onMouseMove;De(I)&&I(k,N)}),Ae(j,"handleItemMouseEnter",function(N){j.setState(function(){return{isTooltipActive:!0,activeItem:N,activePayload:N.tooltipPayload,activeCoordinate:N.tooltipPosition||{x:N.cx,y:N.cy}}})}),Ae(j,"handleItemMouseLeave",function(){j.setState(function(){return{isTooltipActive:!1}})}),Ae(j,"handleMouseMove",function(N){N.persist(),j.throttleTriggeredAfterMouseMove(N)}),Ae(j,"handleMouseLeave",function(N){j.throttleTriggeredAfterMouseMove.cancel();var R={isTooltipActive:!1};j.setState(R),j.triggerSyncEvent(R);var k=j.props.onMouseLeave;De(k)&&k(R,N)}),Ae(j,"handleOuterEvent",function(N){var R=QW(N),k=fr(j.props,"".concat(R));if(R&&De(k)){var I,V;/.*touch.*/i.test(R)?V=j.getMouseInfo(N.changedTouches[0]):V=j.getMouseInfo(N),k((I=V)!==null&&I!==void 0?I:{},N)}}),Ae(j,"handleClick",function(N){var R=j.getMouseInfo(N);if(R){var k=le(le({},R),{},{isTooltipActive:!0});j.setState(k),j.triggerSyncEvent(k);var I=j.props.onClick;De(I)&&I(k,N)}}),Ae(j,"handleMouseDown",function(N){var R=j.props.onMouseDown;if(De(R)){var k=j.getMouseInfo(N);R(k,N)}}),Ae(j,"handleMouseUp",function(N){var R=j.props.onMouseUp;if(De(R)){var k=j.getMouseInfo(N);R(k,N)}}),Ae(j,"handleTouchMove",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&j.throttleTriggeredAfterMouseMove(N.changedTouches[0])}),Ae(j,"handleTouchStart",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&j.handleMouseDown(N.changedTouches[0])}),Ae(j,"handleTouchEnd",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&j.handleMouseUp(N.changedTouches[0])}),Ae(j,"handleDoubleClick",function(N){var R=j.props.onDoubleClick;if(De(R)){var k=j.getMouseInfo(N);R(k,N)}}),Ae(j,"handleContextMenu",function(N){var R=j.props.onContextMenu;if(De(R)){var k=j.getMouseInfo(N);R(k,N)}}),Ae(j,"triggerSyncEvent",function(N){j.props.syncId!==void 0&&iw.emit(ow,j.props.syncId,N,j.eventEmitterSymbol)}),Ae(j,"applySyncEvent",function(N){var R=j.props,k=R.layout,I=R.syncMethod,V=j.state.updateId,z=N.dataStartIndex,B=N.dataEndIndex;if(N.dataStartIndex!==void 0||N.dataEndIndex!==void 0)j.setState(le({dataStartIndex:z,dataEndIndex:B},x({props:j.props,dataStartIndex:z,dataEndIndex:B,updateId:V},j.state)));else if(N.activeTooltipIndex!==void 0){var G=N.chartX,K=N.chartY,X=N.activeTooltipIndex,D=j.state,U=D.offset,Y=D.tooltipTicks;if(!U)return;if(typeof I=="function")X=I(Y,N);else if(I==="value"){X=-1;for(var W=0;W<Y.length;W++)if(Y[W].value===N.activeLabel){X=W;break}}var oe=le(le({},U),{},{x:U.left,y:U.top}),$=Math.min(G,oe.x+oe.width),F=Math.min(K,oe.y+oe.height),Z=Y[X]&&Y[X].value,se=Q1(j.state,j.props.data,X),de=Y[X]?{x:k==="horizontal"?Y[X].coordinate:$,y:k==="horizontal"?F:Y[X].coordinate}:kz;j.setState(le(le({},N),{},{activeLabel:Z,activeCoordinate:de,activePayload:se,activeTooltipIndex:X}))}else j.setState(N)}),Ae(j,"renderCursor",function(N){var R,k=j.state,I=k.isTooltipActive,V=k.activeCoordinate,z=k.activePayload,B=k.offset,G=k.activeTooltipIndex,K=k.tooltipAxisBandSize,X=j.getTooltipEventType(),D=(R=N.props.active)!==null&&R!==void 0?R:I,U=j.props.layout,Y=N.key||"_recharts-cursor";return L.createElement(vce,{key:Y,activeCoordinate:V,activePayload:z,activeTooltipIndex:G,chartName:n,element:N,isActive:D,layout:U,offset:B,tooltipAxisBandSize:K,tooltipEventType:X})}),Ae(j,"renderPolarAxis",function(N,R,k){var I=fr(N,"type.axisType"),V=fr(j.state,"".concat(I,"Map")),z=N.type.defaultProps,B=z!==void 0?le(le({},z),N.props):N.props,G=V&&V[B["".concat(I,"Id")]];return _.cloneElement(N,le(le({},G),{},{className:Ue(I,G.className),key:N.key||"".concat(R,"-").concat(k),ticks:ja(G,!0)}))}),Ae(j,"renderPolarGrid",function(N){var R=N.props,k=R.radialLines,I=R.polarAngles,V=R.polarRadius,z=j.state,B=z.radiusAxisMap,G=z.angleAxisMap,K=Si(B),X=Si(G),D=X.cx,U=X.cy,Y=X.innerRadius,W=X.outerRadius;return _.cloneElement(N,{polarAngles:Array.isArray(I)?I:ja(X,!0).map(function(oe){return oe.coordinate}),polarRadius:Array.isArray(V)?V:ja(K,!0).map(function(oe){return oe.coordinate}),cx:D,cy:U,innerRadius:Y,outerRadius:W,key:N.key||"polar-grid",radialLines:k})}),Ae(j,"renderLegend",function(){var N=j.state.formattedGraphicalItems,R=j.props,k=R.children,I=R.width,V=R.height,z=j.props.margin||{},B=I-(z.left||0)-(z.right||0),G=M4({children:k,formattedGraphicalItems:N,legendWidth:B,legendContent:d});if(!G)return null;var K=G.item,X=kD(G,gce);return _.cloneElement(K,le(le({},X),{},{chartWidth:I,chartHeight:V,margin:z,onBBoxUpdate:j.handleLegendBBoxUpdate}))}),Ae(j,"renderTooltip",function(){var N,R=j.props,k=R.children,I=R.accessibilityLayer,V=Hn(k,Fr);if(!V)return null;var z=j.state,B=z.isTooltipActive,G=z.activeCoordinate,K=z.activePayload,X=z.activeLabel,D=z.offset,U=(N=V.props.active)!==null&&N!==void 0?N:B;return _.cloneElement(V,{viewBox:le(le({},D),{},{x:D.left,y:D.top}),active:U,label:X,payload:U?K:[],coordinate:G,accessibilityLayer:I})}),Ae(j,"renderBrush",function(N){var R=j.props,k=R.margin,I=R.data,V=j.state,z=V.offset,B=V.dataStartIndex,G=V.dataEndIndex,K=V.updateId;return _.cloneElement(N,{key:N.key||"_recharts-brush",onChange:Hd(j.handleBrushChange,N.props.onChange),data:I,x:ve(N.props.x)?N.props.x:z.left,y:ve(N.props.y)?N.props.y:z.top+z.height+z.brushBottom-(k.bottom||0),width:ve(N.props.width)?N.props.width:z.width,startIndex:B,endIndex:G,updateId:"brush-".concat(K)})}),Ae(j,"renderReferenceElement",function(N,R,k){if(!N)return null;var I=j,V=I.clipPathId,z=j.state,B=z.xAxisMap,G=z.yAxisMap,K=z.offset,X=N.type.defaultProps||{},D=N.props,U=D.xAxisId,Y=U===void 0?X.xAxisId:U,W=D.yAxisId,oe=W===void 0?X.yAxisId:W;return _.cloneElement(N,{key:N.key||"".concat(R,"-").concat(k),xAxis:B[Y],yAxis:G[oe],viewBox:{x:K.left,y:K.top,width:K.width,height:K.height},clipPathId:V})}),Ae(j,"renderActivePoints",function(N){var R=N.item,k=N.activePoint,I=N.basePoint,V=N.childIndex,z=N.isRange,B=[],G=R.props.key,K=R.item.type.defaultProps!==void 0?le(le({},R.item.type.defaultProps),R.item.props):R.item.props,X=K.activeDot,D=K.dataKey,U=le(le({index:V,dataKey:D,cx:k.x,cy:k.y,r:4,fill:kO(R.item),strokeWidth:2,stroke:"#fff",payload:k.payload,value:k.value},qe(X,!1)),yh(X));return B.push(E.renderActiveDot(X,U,"".concat(G,"-activePoint-").concat(V))),I?B.push(E.renderActiveDot(X,le(le({},U),{},{cx:I.x,cy:I.y}),"".concat(G,"-basePoint-").concat(V))):z&&B.push(null),B}),Ae(j,"renderGraphicChild",function(N,R,k){var I=j.filterFormatItem(N,R,k);if(!I)return null;var V=j.getTooltipEventType(),z=j.state,B=z.isTooltipActive,G=z.tooltipAxis,K=z.activeTooltipIndex,X=z.activeLabel,D=j.props.children,U=Hn(D,Fr),Y=I.props,W=Y.points,oe=Y.isRange,$=Y.baseLine,F=I.item.type.defaultProps!==void 0?le(le({},I.item.type.defaultProps),I.item.props):I.item.props,Z=F.activeDot,se=F.hide,de=F.activeBar,ge=F.activeShape,fe=!!(!se&&B&&U&&(Z||de||ge)),pe={};V!=="axis"&&U&&U.props.trigger==="click"?pe={onClick:Hd(j.handleItemMouseEnter,N.props.onClick)}:V!=="axis"&&(pe={onMouseLeave:Hd(j.handleItemMouseLeave,N.props.onMouseLeave),onMouseEnter:Hd(j.handleItemMouseEnter,N.props.onMouseEnter)});var ae=_.cloneElement(N,le(le({},I.props),pe));function me(bt){return typeof G.dataKey=="function"?G.dataKey(bt.payload):null}if(fe)if(K>=0){var ye,re;if(G.dataKey&&!G.allowDuplicatedCategory){var Ne=typeof G.dataKey=="function"?me:"payload.".concat(G.dataKey.toString());ye=gh(W,Ne,X),re=oe&&$&&gh($,Ne,X)}else ye=W==null?void 0:W[K],re=oe&&$&&$[K];if(ge||de){var Oe=N.props.activeIndex!==void 0?N.props.activeIndex:K;return[_.cloneElement(N,le(le(le({},I.props),pe),{},{activeIndex:Oe})),null,null]}if(!Le(ye))return[ae].concat(vs(j.renderActivePoints({item:I,activePoint:ye,basePoint:re,childIndex:K,isRange:oe})))}else{var Ke,He=(Ke=j.getItemByXY(j.state.activeCoordinate))!==null&&Ke!==void 0?Ke:{graphicalItem:ae},nt=He.graphicalItem,ln=nt.item,ft=ln===void 0?N:ln,$r=nt.childIndex,Pn=le(le(le({},I.props),pe),{},{activeIndex:$r});return[_.cloneElement(ft,Pn),null,null]}return oe?[ae,null,null]:[ae,null]}),Ae(j,"renderCustomized",function(N,R,k){return _.cloneElement(N,le(le({key:"recharts-customized-".concat(k)},j.props),j.state))}),Ae(j,"renderMap",{CartesianGrid:{handler:Wd,once:!0},ReferenceArea:{handler:j.renderReferenceElement},ReferenceLine:{handler:Wd},ReferenceDot:{handler:j.renderReferenceElement},XAxis:{handler:Wd},YAxis:{handler:Wd},Brush:{handler:j.renderBrush,once:!0},Bar:{handler:j.renderGraphicChild},Line:{handler:j.renderGraphicChild},Area:{handler:j.renderGraphicChild},Radar:{handler:j.renderGraphicChild},RadialBar:{handler:j.renderGraphicChild},Scatter:{handler:j.renderGraphicChild},Pie:{handler:j.renderGraphicChild},Funnel:{handler:j.renderGraphicChild},Tooltip:{handler:j.renderCursor,once:!0},PolarGrid:{handler:j.renderPolarGrid,once:!0},PolarAngleAxis:{handler:j.renderPolarAxis},PolarRadiusAxis:{handler:j.renderPolarAxis},Customized:{handler:j.renderCustomized}}),j.clipPathId="".concat((A=T.id)!==null&&A!==void 0?A:af("recharts"),"-clip"),j.throttleTriggeredAfterMouseMove=C3(j.triggeredAfterMouseMove,(M=T.throttleDelay)!==null&&M!==void 0?M:1e3/60),j.state={},j}return Cce(E,S),Ece(E,[{key:"componentDidMount",value:function(){var A,M;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(M=this.props.margin.top)!==null&&M!==void 0?M:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var A=this.props,M=A.children,j=A.data,N=A.height,R=A.layout,k=Hn(M,Fr);if(k){var I=k.props.defaultIndex;if(!(typeof I!="number"||I<0||I>this.state.tooltipTicks.length-1)){var V=this.state.tooltipTicks[I]&&this.state.tooltipTicks[I].value,z=Q1(this.state,j,I,V),B=this.state.tooltipTicks[I].coordinate,G=(this.state.offset.top+N)/2,K=R==="horizontal",X=K?{x:B,y:G}:{y:B,x:G},D=this.state.formattedGraphicalItems.find(function(Y){var W=Y.item;return W.type.name==="Scatter"});D&&(X=le(le({},X),D.props.points[I].tooltipPosition),z=D.props.points[I].tooltipPayload);var U={activeTooltipIndex:I,isTooltipActive:!0,activeLabel:V,activePayload:z,activeCoordinate:X};this.setState(U),this.renderCursor(k),this.accessibilityManager.setIndex(I)}}}},{key:"getSnapshotBeforeUpdate",value:function(A,M){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==M.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==A.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==A.margin){var j,N;this.accessibilityManager.setDetails({offset:{left:(j=this.props.margin.left)!==null&&j!==void 0?j:0,top:(N=this.props.margin.top)!==null&&N!==void 0?N:0}})}return null}},{key:"componentDidUpdate",value:function(A){$w([Hn(A.children,Fr)],[Hn(this.props.children,Fr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var A=Hn(this.props.children,Fr);if(A&&typeof A.props.shared=="boolean"){var M=A.props.shared?"axis":"item";return c.indexOf(M)>=0?M:l}return l}},{key:"getMouseInfo",value:function(A){if(!this.container)return null;var M=this.container,j=M.getBoundingClientRect(),N=zZ(j),R={chartX:Math.round(A.pageX-N.left),chartY:Math.round(A.pageY-N.top)},k=j.width/M.offsetWidth||1,I=this.inRange(R.chartX,R.chartY,k);if(!I)return null;var V=this.state,z=V.xAxisMap,B=V.yAxisMap,G=this.getTooltipEventType(),K=LD(this.state,this.props.data,this.props.layout,I);if(G!=="axis"&&z&&B){var X=Si(z).scale,D=Si(B).scale,U=X&&X.invert?X.invert(R.chartX):null,Y=D&&D.invert?D.invert(R.chartY):null;return le(le({},R),{},{xValue:U,yValue:Y},K)}return K?le(le({},R),K):null}},{key:"inRange",value:function(A,M){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,N=this.props.layout,R=A/j,k=M/j;if(N==="horizontal"||N==="vertical"){var I=this.state.offset,V=R>=I.left&&R<=I.left+I.width&&k>=I.top&&k<=I.top+I.height;return V?{x:R,y:k}:null}var z=this.state,B=z.angleAxisMap,G=z.radiusAxisMap;if(B&&G){var K=Si(B);return QR({x:R,y:k},K)}return null}},{key:"parseEventsOfWrapper",value:function(){var A=this.props.children,M=this.getTooltipEventType(),j=Hn(A,Fr),N={};j&&M==="axis"&&(j.props.trigger==="click"?N={onClick:this.handleClick}:N={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 R=yh(this.props,this.handleOuterEvent);return le(le({},R),N)}},{key:"addListener",value:function(){iw.on(ow,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){iw.removeListener(ow,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(A,M,j){for(var N=this.state.formattedGraphicalItems,R=0,k=N.length;R<k;R++){var I=N[R];if(I.item===A||I.props.key===A.key||M===Ma(I.item.type)&&j===I.childIndex)return I}return null}},{key:"renderClipPath",value:function(){var A=this.clipPathId,M=this.state.offset,j=M.left,N=M.top,R=M.height,k=M.width;return L.createElement("defs",null,L.createElement("clipPath",{id:A},L.createElement("rect",{x:j,y:N,height:R,width:k})))}},{key:"getXScales",value:function(){var A=this.state.xAxisMap;return A?Object.entries(A).reduce(function(M,j){var N=DD(j,2),R=N[0],k=N[1];return le(le({},M),{},Ae({},R,k.scale))},{}):null}},{key:"getYScales",value:function(){var A=this.state.yAxisMap;return A?Object.entries(A).reduce(function(M,j){var N=DD(j,2),R=N[0],k=N[1];return le(le({},M),{},Ae({},R,k.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(A){var M;return(M=this.state.xAxisMap)===null||M===void 0||(M=M[A])===null||M===void 0?void 0:M.scale}},{key:"getYScaleByAxisId",value:function(A){var M;return(M=this.state.yAxisMap)===null||M===void 0||(M=M[A])===null||M===void 0?void 0:M.scale}},{key:"getItemByXY",value:function(A){var M=this.state,j=M.formattedGraphicalItems,N=M.activeItem;if(j&&j.length)for(var R=0,k=j.length;R<k;R++){var I=j[R],V=I.props,z=I.item,B=z.type.defaultProps!==void 0?le(le({},z.type.defaultProps),z.props):z.props,G=Ma(z.type);if(G==="Bar"){var K=(V.data||[]).find(function(Y){return roe(A,Y)});if(K)return{graphicalItem:I,payload:K}}else if(G==="RadialBar"){var X=(V.data||[]).find(function(Y){return QR(A,Y)});if(X)return{graphicalItem:I,payload:X}}else if(dm(I,N)||hm(I,N)||$c(I,N)){var D=Yoe({graphicalItem:I,activeTooltipItem:N,itemData:B.data}),U=B.activeIndex===void 0?D:B.activeIndex;return{graphicalItem:le(le({},I),{},{childIndex:U}),payload:$c(I,N)?B.data[D]:I.props.data[D]}}}return null}},{key:"render",value:function(){var A=this;if(!sM(this))return null;var M=this.props,j=M.children,N=M.className,R=M.width,k=M.height,I=M.style,V=M.compact,z=M.title,B=M.desc,G=kD(M,yce),K=qe(G,!1);if(V)return L.createElement(mD,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},L.createElement(Iw,$l({},K,{width:R,height:k,title:z,desc:B}),this.renderClipPath(),cM(j,this.renderMap)));if(this.props.accessibilityLayer){var X,D;K.tabIndex=(X=this.props.tabIndex)!==null&&X!==void 0?X:0,K.role=(D=this.props.role)!==null&&D!==void 0?D:"application",K.onKeyDown=function(Y){A.accessibilityManager.keyboardEvent(Y)},K.onFocus=function(){A.accessibilityManager.focus()}}var U=this.parseEventsOfWrapper();return L.createElement(mD,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},L.createElement("div",$l({className:Ue("recharts-wrapper",N),style:le({position:"relative",cursor:"default",width:R,height:k},I)},U,{ref:function(W){A.container=W}}),L.createElement(Iw,$l({},K,{width:R,height:k,title:z,desc:B,style:kce}),this.renderClipPath(),cM(j,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(_.Component);Ae(O,"displayName",n),Ae(O,"defaultProps",le({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),Ae(O,"getDerivedStateFromProps",function(S,E){var T=S.dataKey,A=S.data,M=S.children,j=S.width,N=S.height,R=S.layout,k=S.stackOffset,I=S.margin,V=E.dataStartIndex,z=E.dataEndIndex;if(E.updateId===void 0){var B=ID(S);return le(le(le({},B),{},{updateId:0},x(le(le({props:S},B),{},{updateId:0}),E)),{},{prevDataKey:T,prevData:A,prevWidth:j,prevHeight:N,prevLayout:R,prevStackOffset:k,prevMargin:I,prevChildren:M})}if(T!==E.prevDataKey||A!==E.prevData||j!==E.prevWidth||N!==E.prevHeight||R!==E.prevLayout||k!==E.prevStackOffset||!Ul(I,E.prevMargin)){var G=ID(S),K={chartX:E.chartX,chartY:E.chartY,isTooltipActive:E.isTooltipActive},X=le(le({},LD(E,A,R)),{},{updateId:E.updateId+1}),D=le(le(le({},G),K),X);return le(le(le({},D),x(le({props:S},D),E)),{},{prevDataKey:T,prevData:A,prevWidth:j,prevHeight:N,prevLayout:R,prevStackOffset:k,prevMargin:I,prevChildren:M})}if(!$w(M,E.prevChildren)){var U,Y,W,oe,$=Hn(M,os),F=$&&(U=(Y=$.props)===null||Y===void 0?void 0:Y.startIndex)!==null&&U!==void 0?U:V,Z=$&&(W=(oe=$.props)===null||oe===void 0?void 0:oe.endIndex)!==null&&W!==void 0?W:z,se=F!==V||Z!==z,de=!Le(A),ge=de&&!se?E.updateId:E.updateId+1;return le(le({updateId:ge},x(le(le({props:S},E),{},{updateId:ge,dataStartIndex:F,dataEndIndex:Z}),E)),{},{prevChildren:M,dataStartIndex:F,dataEndIndex:Z})}return null}),Ae(O,"renderActiveDot",function(S,E,T){var A;return _.isValidElement(S)?A=_.cloneElement(S,E):De(S)?A=S(E):A=L.createElement(LO,E),L.createElement(jt,{className:"recharts-active-dot",key:T},A)});var w=_.forwardRef(function(E,T){return L.createElement(O,$l({},E,{ref:T}))});return w.displayName=O.displayName,w},Vce=Gce({chartName:"LineChart",GraphicalChild:Gr,axisComponents:[{axisType:"xAxis",AxisComp:bm},{axisType:"yAxis",AxisComp:xm}],formatAxisMap:Hle});function Yce({data:e}){const t=Wce(e);return t.length===0?v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsx(an,{children:"Email Metrics"}),v.jsx(hr,{children:"Performance over the last 24 hours"})]}),v.jsx(Ut,{children:v.jsx("div",{className:"flex h-[400px] items-center justify-center text-muted-foreground",children:"No metrics data available yet"})})]}):v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsx(an,{children:"Email Metrics"}),v.jsx(hr,{children:"Performance over the last 24 hours"})]}),v.jsx(Ut,{children:v.jsx(RZ,{height:400,width:"100%",children:v.jsxs(Vce,{data:t,children:[v.jsx(wz,{className:"stroke-muted",strokeDasharray:"3 3"}),v.jsx(bm,{className:"text-xs",dataKey:"timestamp",tickFormatter:n=>Jj(new Date(n),"HH:mm")}),v.jsx(xm,{className:"text-xs"}),v.jsx(Fr,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))"},labelFormatter:n=>Jj(new Date(n),"MMM d, HH:mm")}),v.jsx(vo,{}),v.jsx(Gr,{dataKey:"sends",name:"Sends",stroke:"hsl(var(--primary))",strokeWidth:2,type:"monotone"}),v.jsx(Gr,{dataKey:"deliveries",name:"Deliveries",stroke:"#82ca9d",strokeWidth:2,type:"monotone"}),v.jsx(Gr,{dataKey:"opens",name:"Opens",stroke:"#8884d8",strokeWidth:2,type:"monotone"}),v.jsx(Gr,{dataKey:"clicks",name:"Clicks",stroke:"#ffc658",strokeWidth:2,type:"monotone"}),v.jsx(Gr,{dataKey:"bounces",name:"Bounces",stroke:"#ff7300",strokeWidth:2,type:"monotone"}),v.jsx(Gr,{dataKey:"complaints",name:"Complaints",stroke:"hsl(var(--destructive))",strokeWidth:2,type:"monotone"})]})})})]})}function Wce(e){const t=new Map;[...e.sends,...e.bounces,...e.complaints,...e.deliveries,...e.opens,...e.clicks].forEach(n=>{t.has(n.timestamp)||t.set(n.timestamp,{timestamp:n.timestamp,sends:0,bounces:0,complaints:0,deliveries:0,opens:0,clicks:0})});for(const n of e.sends)t.get(n.timestamp).sends=n.value;for(const n of e.bounces)t.get(n.timestamp).bounces=n.value;for(const n of e.complaints)t.get(n.timestamp).complaints=n.value;for(const n of e.deliveries)t.get(n.timestamp).deliveries=n.value;for(const n of e.opens)t.get(n.timestamp).opens=n.value;for(const n of e.clicks)t.get(n.timestamp).clicks=n.value;return Array.from(t.values()).sort((n,r)=>n.timestamp-r.timestamp)}var YO="Progress",WO=100,[Kce]=jk(YO),[Xce,Qce]=Kce(YO),Lz=_.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:i,getValueLabel:l=Zce,...s}=e;(i||i===0)&&!BD(i)&&console.error(Jce(`${i}`,"Progress"));const c=BD(i)?i:WO;r!==null&&!qD(r,c)&&console.error(efe(`${r}`,"Progress"));const f=qD(r,c)?r:null,d=hp(f)?l(f,c):void 0;return v.jsx(Xce,{scope:n,value:f,max:c,children:v.jsx(Co.div,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":hp(f)?f:void 0,"aria-valuetext":d,role:"progressbar","data-state":Bz(f,c),"data-value":f??void 0,"data-max":c,...s,ref:t})})});Lz.displayName=YO;var Iz="ProgressIndicator",zz=_.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,i=Qce(Iz,n);return v.jsx(Co.div,{"data-state":Bz(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});zz.displayName=Iz;function Zce(e,t){return`${Math.round(e/t*100)}%`}function Bz(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function hp(e){return typeof e=="number"}function BD(e){return hp(e)&&!isNaN(e)&&e>0}function qD(e,t){return hp(e)&&!isNaN(e)&&e<=t&&e>=0}function Jce(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${WO}\`.`}function efe(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
361
- - a positive number
362
- - less than the value passed to \`max\` (or ${WO} if no \`max\` prop is set)
363
- - \`null\` or \`undefined\` if the progress is indeterminate.
364
-
365
- Defaulting to \`null\`.`}var tfe=Lz,nfe=zz;function rfe({className:e,value:t,...n}){return v.jsx(tfe,{className:he("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),"data-slot":"progress",...n,children:v.jsx(nfe,{className:"h-full w-full flex-1 bg-primary transition-all","data-slot":"progress-indicator",style:{transform:`translateX(-${100-(t||0)}%)`}})})}function afe({quota:e}){const t=e.sentLast24Hours/e.max24HourSend*100,n=t>90?"destructive":t>70?"warning":"default";return v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsxs(an,{className:"flex items-center justify-between",children:["SES Quota",v.jsxs(vn,{variant:n==="destructive"?"destructive":"secondary",children:[t.toFixed(1),"% used"]})]}),v.jsx(hr,{children:"24-hour sending limits"})]}),v.jsxs(Ut,{className:"space-y-4",children:[v.jsxs("div",{children:[v.jsxs("div",{className:"mb-2 flex justify-between text-sm",children:[v.jsx("span",{className:"text-muted-foreground",children:"Emails sent"}),v.jsxs("span",{className:"font-medium",children:[e.sentLast24Hours.toLocaleString()," /"," ",e.max24HourSend.toLocaleString()]})]}),v.jsx(rfe,{className:"h-2",value:t})]}),v.jsxs("div",{className:"flex items-center justify-between border-t pt-2",children:[v.jsx("span",{className:"text-muted-foreground text-sm",children:"Max send rate"}),v.jsxs("span",{className:"font-medium text-sm",children:[e.maxSendRate," emails/sec"]})]})]})]})}function ife(){const[e,t]=_.useState("1"),[n,r]=_.useState(null),[i,l]=_.useState(!0),[s,c]=_.useState(null);if(_.useEffect(()=>{async function T(){try{l(!0),c(null);let A=sessionStorage.getItem("wraps-auth-token");if(A||(A=new URLSearchParams(window.location.search).get("token"),A&&sessionStorage.setItem("wraps-auth-token",A)),!A)throw new Error("Authentication token not found. Please use the URL provided by 'wraps console' command.");const M=Number.parseInt(e,10),j=Date.now()-M*24*60*60*1e3,N=Date.now(),R=await fetch(`/api/metrics?startTime=${j}&endTime=${N}&token=${A}`);if(!R.ok){let I="Failed to fetch email metrics";try{I=(await R.json()).error||I}catch{I=`${R.status}: ${R.statusText}`}throw new Error(I)}const k=await R.json();r(k)}catch(A){const M=A instanceof Error?A.message:"Unknown error";c(M),console.error("Error fetching email metrics:",A)}finally{l(!1)}}T()},[e]),s)return v.jsxs(v.Fragment,{children:[v.jsxs("div",{children:[v.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Metrics"}),v.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your email campaigns"})]}),v.jsx("div",{className:"mt-4 rounded-md border border-destructive bg-destructive/10 p-4 text-destructive text-sm",children:s})]});if(i||!n)return v.jsxs(v.Fragment,{children:[v.jsxs("div",{children:[v.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Metrics"}),v.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your email campaigns"})]}),v.jsx("div",{className:"mt-4 flex h-[400px] items-center justify-center text-muted-foreground",children:"Loading metrics..."})]});const f=n.metrics.sends.reduce((T,A)=>T+A.value,0)||0,d=n.metrics.deliveries.reduce((T,A)=>T+A.value,0)||0,m=n.metrics.bounces.reduce((T,A)=>T+A.value,0)||0,p=n.metrics.complaints.reduce((T,A)=>T+A.value,0)||0,y=n.metrics.opens.reduce((T,A)=>T+A.value,0)||0,x=n.metrics.clicks.reduce((T,A)=>T+A.value,0)||0,O=f>0?d/f*100:0,w=d>0?y/d*100:0,S=y>0?x/y*100:0,E=[{title:"Emails Sent",value:f.toLocaleString(),description:`${e==="1"?"Last 24 hours":`Last ${e} days`}`,icon:mo},{title:"Delivery Rate",value:`${O.toFixed(1)}%`,description:`${d.toLocaleString()} delivered`,icon:v6},{title:"Open Rate",value:`${w.toFixed(1)}%`,description:`${y.toLocaleString()} opened`,icon:tc},{title:"Click Rate",value:`${S.toFixed(1)}%`,description:`${x.toLocaleString()} clicked`,icon:y6}];return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Metrics"}),v.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your email campaigns"})]}),v.jsxs(Mw,{onValueChange:t,value:e,children:[v.jsx(Rw,{className:"w-[180px]",children:v.jsx(Nw,{})}),v.jsxs(Pw,{children:[v.jsx(Kt,{value:"1",children:"Last 24 hours"}),v.jsx(Kt,{value:"7",children:"Last 7 days"}),v.jsx(Kt,{value:"15",children:"Last 15 days"}),v.jsx(Kt,{value:"30",children:"Last 30 days"}),v.jsx(Kt,{value:"90",children:"Last 90 days"})]})]})]}),v.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:E.map(T=>v.jsxs(kt,{children:[v.jsxs($t,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[v.jsx(an,{className:"font-medium text-sm",children:T.title}),v.jsx(T.icon,{className:"h-4 w-4 text-muted-foreground"})]}),v.jsxs(Ut,{children:[v.jsx("div",{className:"font-bold text-2xl",children:T.value}),v.jsx("p",{className:"text-muted-foreground text-xs",children:T.description})]})]},T.title))}),v.jsx(afe,{quota:n.quota}),v.jsx(Yce,{data:n.metrics}),v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsx(an,{children:"Metrics Summary"}),v.jsx(hr,{children:"Detailed breakdown of your email performance"})]}),v.jsxs(Ut,{className:"space-y-4",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-sm",children:"Total Emails Sent"}),v.jsx(vn,{variant:"outline",children:f.toLocaleString()})]}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-sm",children:"Successfully Delivered"}),v.jsx(vn,{variant:"default",children:d.toLocaleString()})]}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-sm",children:"Opened"}),v.jsx(vn,{variant:"default",children:y.toLocaleString()})]}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-sm",children:"Clicked"}),v.jsx(vn,{variant:"default",children:x.toLocaleString()})]}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-sm",children:"Bounced"}),v.jsx(vn,{variant:"destructive",children:m.toLocaleString()})]}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-sm",children:"Complaints"}),v.jsx(vn,{variant:"destructive",children:p.toLocaleString()})]})]})]})]})}function ofe(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const lfe=e=>{switch(e){case"success":return cfe;case"info":return dfe;case"warning":return ffe;case"error":return hfe;default:return null}},sfe=Array(12).fill(0),ufe=({visible:e,className:t})=>L.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},L.createElement("div",{className:"sonner-spinner"},sfe.map((n,r)=>L.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),cfe=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),ffe=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),dfe=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),hfe=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),pfe=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},L.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),L.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),mfe=()=>{const[e,t]=L.useState(document.hidden);return L.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Z1=1;class vfe{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...i}=t,l=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Z1++,s=this.toasts.find(f=>f.id===l),c=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(l)&&this.dismissedToasts.delete(l),s?this.toasts=this.toasts.map(f=>f.id===l?(this.publish({...f,...t,id:l,title:r}),{...f,...t,id:l,dismissible:c,title:r}):f):this.addToast({title:r,...i,dismissible:c,id:l}),l},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const i=Promise.resolve(t instanceof Function?t():t);let l=r!==void 0,s;const c=i.then(async d=>{if(s=["resolve",d],L.isValidElement(d))l=!1,this.create({id:r,type:"default",message:d});else if(yfe(d)&&!d.ok){l=!1;const p=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,y=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,O=typeof p=="object"&&!L.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:y,...O})}else if(d instanceof Error){l=!1;const p=typeof n.error=="function"?await n.error(d):n.error,y=typeof n.description=="function"?await n.description(d):n.description,O=typeof p=="object"&&!L.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:y,...O})}else if(n.success!==void 0){l=!1;const p=typeof n.success=="function"?await n.success(d):n.success,y=typeof n.description=="function"?await n.description(d):n.description,O=typeof p=="object"&&!L.isValidElement(p)?p:{message:p};this.create({id:r,type:"success",description:y,...O})}}).catch(async d=>{if(s=["reject",d],n.error!==void 0){l=!1;const m=typeof n.error=="function"?await n.error(d):n.error,p=typeof n.description=="function"?await n.description(d):n.description,x=typeof m=="object"&&!L.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:p,...x})}}).finally(()=>{l&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),f=()=>new Promise((d,m)=>c.then(()=>s[0]==="reject"?m(s[1]):d(s[1])).catch(m));return typeof r!="string"&&typeof r!="number"?{unwrap:f}:Object.assign(r,{unwrap:f})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||Z1++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Cn=new vfe,gfe=(e,t)=>{const n=(t==null?void 0:t.id)||Z1++;return Cn.addToast({title:e,...t,id:n}),n},yfe=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",bfe=gfe,xfe=()=>Cn.toasts,wfe=()=>Cn.getActiveToasts(),Mn=Object.assign(bfe,{success:Cn.success,info:Cn.info,warning:Cn.warning,error:Cn.error,custom:Cn.custom,message:Cn.message,promise:Cn.promise,dismiss:Cn.dismiss,loading:Cn.loading},{getHistory:xfe,getToasts:wfe});ofe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Kd(e){return e.label!==void 0}const Sfe=3,Ofe="24px",_fe="16px",UD=4e3,Efe=356,Afe=14,Tfe=45,jfe=200;function Hr(...e){return e.filter(Boolean).join(" ")}function Cfe(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Mfe=e=>{var t,n,r,i,l,s,c,f,d;const{invert:m,toast:p,unstyled:y,interacting:x,setHeights:O,visibleToasts:w,heights:S,index:E,toasts:T,expanded:A,removeToast:M,defaultRichColors:j,closeButton:N,style:R,cancelButtonStyle:k,actionButtonStyle:I,className:V="",descriptionClassName:z="",duration:B,position:G,gap:K,expandByDefault:X,classNames:D,icons:U,closeButtonAriaLabel:Y="Close toast"}=e,[W,oe]=L.useState(null),[$,F]=L.useState(null),[Z,se]=L.useState(!1),[de,ge]=L.useState(!1),[fe,pe]=L.useState(!1),[ae,me]=L.useState(!1),[ye,re]=L.useState(!1),[Ne,Oe]=L.useState(0),[Ke,He]=L.useState(0),nt=L.useRef(p.duration||B||UD),ln=L.useRef(null),ft=L.useRef(null),$r=E===0,Pn=E+1<=w,bt=p.type,Wn=p.dismissible!==!1,Gt=p.className||"",$o=p.descriptionClassName||"",Li=L.useMemo(()=>S.findIndex(Te=>Te.toastId===p.id)||0,[S,p.id]),hf=L.useMemo(()=>{var Te;return(Te=p.closeButton)!=null?Te:N},[p.closeButton,N]),Ii=L.useMemo(()=>p.duration||B||UD,[p.duration,B]),ks=L.useRef(0),ia=L.useRef(0),pf=L.useRef(0),Ga=L.useRef(null),[zi,pn]=G.split("-"),gr=L.useMemo(()=>S.reduce((Te,vt,Vt)=>Vt>=Li?Te:Te+vt.height,0),[S,Li]),sn=mfe(),Am=p.invert||m,$s=bt==="loading";ia.current=L.useMemo(()=>Li*K+gr,[Li,gr]),L.useEffect(()=>{nt.current=Ii},[Ii]),L.useEffect(()=>{se(!0)},[]),L.useEffect(()=>{const Te=ft.current;if(Te){const vt=Te.getBoundingClientRect().height;return He(vt),O(Vt=>[{toastId:p.id,height:vt,position:p.position},...Vt]),()=>O(Vt=>Vt.filter(un=>un.toastId!==p.id))}},[O,p.id]),L.useLayoutEffect(()=>{if(!Z)return;const Te=ft.current,vt=Te.style.height;Te.style.height="auto";const Vt=Te.getBoundingClientRect().height;Te.style.height=vt,He(Vt),O(un=>un.find(xt=>xt.toastId===p.id)?un.map(xt=>xt.toastId===p.id?{...xt,height:Vt}:xt):[{toastId:p.id,height:Vt,position:p.position},...un])},[Z,p.title,p.description,O,p.id,p.jsx,p.action,p.cancel]);const Lr=L.useCallback(()=>{ge(!0),Oe(ia.current),O(Te=>Te.filter(vt=>vt.toastId!==p.id)),setTimeout(()=>{M(p)},jfe)},[p,M,O,ia]);L.useEffect(()=>{if(p.promise&&bt==="loading"||p.duration===1/0||p.type==="loading")return;let Te;return A||x||sn?(()=>{if(pf.current<ks.current){const un=new Date().getTime()-ks.current;nt.current=nt.current-un}pf.current=new Date().getTime()})():(()=>{nt.current!==1/0&&(ks.current=new Date().getTime(),Te=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),Lr()},nt.current))})(),()=>clearTimeout(Te)},[A,x,p,bt,sn,Lr]),L.useEffect(()=>{p.delete&&(Lr(),p.onDismiss==null||p.onDismiss.call(p,p))},[Lr,p.delete]);function Lo(){var Te;if(U!=null&&U.loading){var vt;return L.createElement("div",{className:Hr(D==null?void 0:D.loader,p==null||(vt=p.classNames)==null?void 0:vt.loader,"sonner-loader"),"data-visible":bt==="loading"},U.loading)}return L.createElement(ufe,{className:Hr(D==null?void 0:D.loader,p==null||(Te=p.classNames)==null?void 0:Te.loader),visible:bt==="loading"})}const Io=p.icon||(U==null?void 0:U[bt])||lfe(bt);var Bi,Ir;return L.createElement("li",{tabIndex:0,ref:ft,className:Hr(V,Gt,D==null?void 0:D.toast,p==null||(t=p.classNames)==null?void 0:t.toast,D==null?void 0:D.default,D==null?void 0:D[bt],p==null||(n=p.classNames)==null?void 0:n[bt]),"data-sonner-toast":"","data-rich-colors":(Bi=p.richColors)!=null?Bi:j,"data-styled":!(p.jsx||p.unstyled||y),"data-mounted":Z,"data-promise":!!p.promise,"data-swiped":ye,"data-removed":de,"data-visible":Pn,"data-y-position":zi,"data-x-position":pn,"data-index":E,"data-front":$r,"data-swiping":fe,"data-dismissible":Wn,"data-type":bt,"data-invert":Am,"data-swipe-out":ae,"data-swipe-direction":$,"data-expanded":!!(A||X&&Z),"data-testid":p.testId,style:{"--index":E,"--toasts-before":E,"--z-index":T.length-E,"--offset":`${de?Ne:ia.current}px`,"--initial-height":X?"auto":`${Ke}px`,...R,...p.style},onDragEnd:()=>{pe(!1),oe(null),Ga.current=null},onPointerDown:Te=>{Te.button!==2&&($s||!Wn||(ln.current=new Date,Oe(ia.current),Te.target.setPointerCapture(Te.pointerId),Te.target.tagName!=="BUTTON"&&(pe(!0),Ga.current={x:Te.clientX,y:Te.clientY})))},onPointerUp:()=>{var Te,vt,Vt;if(ae||!Wn)return;Ga.current=null;const un=Number(((Te=ft.current)==null?void 0:Te.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Va=Number(((vt=ft.current)==null?void 0:vt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),xt=new Date().getTime()-((Vt=ln.current)==null?void 0:Vt.getTime()),bn=W==="x"?un:Va,qi=Math.abs(bn)/xt;if(Math.abs(bn)>=Tfe||qi>.11){Oe(ia.current),p.onDismiss==null||p.onDismiss.call(p,p),F(W==="x"?un>0?"right":"left":Va>0?"down":"up"),Lr(),me(!0);return}else{var xn,wn;(xn=ft.current)==null||xn.style.setProperty("--swipe-amount-x","0px"),(wn=ft.current)==null||wn.style.setProperty("--swipe-amount-y","0px")}re(!1),pe(!1),oe(null)},onPointerMove:Te=>{var vt,Vt,un;if(!Ga.current||!Wn||((vt=window.getSelection())==null?void 0:vt.toString().length)>0)return;const xt=Te.clientY-Ga.current.y,bn=Te.clientX-Ga.current.x;var qi;const xn=(qi=e.swipeDirections)!=null?qi:Cfe(G);!W&&(Math.abs(bn)>1||Math.abs(xt)>1)&&oe(Math.abs(bn)>Math.abs(xt)?"x":"y");let wn={x:0,y:0};const zo=yr=>1/(1.5+Math.abs(yr)/20);if(W==="y"){if(xn.includes("top")||xn.includes("bottom"))if(xn.includes("top")&&xt<0||xn.includes("bottom")&&xt>0)wn.y=xt;else{const yr=xt*zo(xt);wn.y=Math.abs(yr)<Math.abs(xt)?yr:xt}}else if(W==="x"&&(xn.includes("left")||xn.includes("right")))if(xn.includes("left")&&bn<0||xn.includes("right")&&bn>0)wn.x=bn;else{const yr=bn*zo(bn);wn.x=Math.abs(yr)<Math.abs(bn)?yr:bn}(Math.abs(wn.x)>0||Math.abs(wn.y)>0)&&re(!0),(Vt=ft.current)==null||Vt.style.setProperty("--swipe-amount-x",`${wn.x}px`),(un=ft.current)==null||un.style.setProperty("--swipe-amount-y",`${wn.y}px`)}},hf&&!p.jsx&&bt!=="loading"?L.createElement("button",{"aria-label":Y,"data-disabled":$s,"data-close-button":!0,onClick:$s||!Wn?()=>{}:()=>{Lr(),p.onDismiss==null||p.onDismiss.call(p,p)},className:Hr(D==null?void 0:D.closeButton,p==null||(r=p.classNames)==null?void 0:r.closeButton)},(Ir=U==null?void 0:U.close)!=null?Ir:pfe):null,(bt||p.icon||p.promise)&&p.icon!==null&&((U==null?void 0:U[bt])!==null||p.icon)?L.createElement("div",{"data-icon":"",className:Hr(D==null?void 0:D.icon,p==null||(i=p.classNames)==null?void 0:i.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||Lo():null,p.type!=="loading"?Io:null):null,L.createElement("div",{"data-content":"",className:Hr(D==null?void 0:D.content,p==null||(l=p.classNames)==null?void 0:l.content)},L.createElement("div",{"data-title":"",className:Hr(D==null?void 0:D.title,p==null||(s=p.classNames)==null?void 0:s.title)},p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title),p.description?L.createElement("div",{"data-description":"",className:Hr(z,$o,D==null?void 0:D.description,p==null||(c=p.classNames)==null?void 0:c.description)},typeof p.description=="function"?p.description():p.description):null),L.isValidElement(p.cancel)?p.cancel:p.cancel&&Kd(p.cancel)?L.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||k,onClick:Te=>{Kd(p.cancel)&&Wn&&(p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,Te),Lr())},className:Hr(D==null?void 0:D.cancelButton,p==null||(f=p.classNames)==null?void 0:f.cancelButton)},p.cancel.label):null,L.isValidElement(p.action)?p.action:p.action&&Kd(p.action)?L.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||I,onClick:Te=>{Kd(p.action)&&(p.action.onClick==null||p.action.onClick.call(p.action,Te),!Te.defaultPrevented&&Lr())},className:Hr(D==null?void 0:D.actionButton,p==null||(d=p.classNames)==null?void 0:d.actionButton)},p.action.label):null)};function HD(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Nfe(e,t){const n={};return[e,t].forEach((r,i)=>{const l=i===1,s=l?"--mobile-offset":"--offset",c=l?_fe:Ofe;function f(d){["top","right","bottom","left"].forEach(m=>{n[`${s}-${m}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?f(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${s}-${d}`]=c:n[`${s}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):f(c)}),n}const Rfe=L.forwardRef(function(t,n){const{id:r,invert:i,position:l="bottom-right",hotkey:s=["altKey","KeyT"],expand:c,closeButton:f,className:d,offset:m,mobileOffset:p,theme:y="light",richColors:x,duration:O,style:w,visibleToasts:S=Sfe,toastOptions:E,dir:T=HD(),gap:A=Afe,icons:M,containerAriaLabel:j="Notifications"}=t,[N,R]=L.useState([]),k=L.useMemo(()=>r?N.filter(Z=>Z.toasterId===r):N.filter(Z=>!Z.toasterId),[N,r]),I=L.useMemo(()=>Array.from(new Set([l].concat(k.filter(Z=>Z.position).map(Z=>Z.position)))),[k,l]),[V,z]=L.useState([]),[B,G]=L.useState(!1),[K,X]=L.useState(!1),[D,U]=L.useState(y!=="system"?y:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Y=L.useRef(null),W=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),oe=L.useRef(null),$=L.useRef(!1),F=L.useCallback(Z=>{R(se=>{var de;return(de=se.find(ge=>ge.id===Z.id))!=null&&de.delete||Cn.dismiss(Z.id),se.filter(({id:ge})=>ge!==Z.id)})},[]);return L.useEffect(()=>Cn.subscribe(Z=>{if(Z.dismiss){requestAnimationFrame(()=>{R(se=>se.map(de=>de.id===Z.id?{...de,delete:!0}:de))});return}setTimeout(()=>{gk.flushSync(()=>{R(se=>{const de=se.findIndex(ge=>ge.id===Z.id);return de!==-1?[...se.slice(0,de),{...se[de],...Z},...se.slice(de+1)]:[Z,...se]})})})}),[N]),L.useEffect(()=>{if(y!=="system"){U(y);return}if(y==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?U("dark"):U("light")),typeof window>"u")return;const Z=window.matchMedia("(prefers-color-scheme: dark)");try{Z.addEventListener("change",({matches:se})=>{U(se?"dark":"light")})}catch{Z.addListener(({matches:de})=>{try{U(de?"dark":"light")}catch(ge){console.error(ge)}})}},[y]),L.useEffect(()=>{N.length<=1&&G(!1)},[N]),L.useEffect(()=>{const Z=se=>{var de;if(s.every(pe=>se[pe]||se.code===pe)){var fe;G(!0),(fe=Y.current)==null||fe.focus()}se.code==="Escape"&&(document.activeElement===Y.current||(de=Y.current)!=null&&de.contains(document.activeElement))&&G(!1)};return document.addEventListener("keydown",Z),()=>document.removeEventListener("keydown",Z)},[s]),L.useEffect(()=>{if(Y.current)return()=>{oe.current&&(oe.current.focus({preventScroll:!0}),oe.current=null,$.current=!1)}},[Y.current]),L.createElement("section",{ref:n,"aria-label":`${j} ${W}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},I.map((Z,se)=>{var de;const[ge,fe]=Z.split("-");return k.length?L.createElement("ol",{key:Z,dir:T==="auto"?HD():T,tabIndex:-1,ref:Y,className:d,"data-sonner-toaster":!0,"data-sonner-theme":D,"data-y-position":ge,"data-x-position":fe,style:{"--front-toast-height":`${((de=V[0])==null?void 0:de.height)||0}px`,"--width":`${Efe}px`,"--gap":`${A}px`,...w,...Nfe(m,p)},onBlur:pe=>{$.current&&!pe.currentTarget.contains(pe.relatedTarget)&&($.current=!1,oe.current&&(oe.current.focus({preventScroll:!0}),oe.current=null))},onFocus:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||$.current||($.current=!0,oe.current=pe.relatedTarget)},onMouseEnter:()=>G(!0),onMouseMove:()=>G(!0),onMouseLeave:()=>{K||G(!1)},onDragEnd:()=>G(!1),onPointerDown:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||X(!0)},onPointerUp:()=>X(!1)},k.filter(pe=>!pe.position&&se===0||pe.position===Z).map((pe,ae)=>{var me,ye;return L.createElement(Mfe,{key:pe.id,icons:M,index:ae,toast:pe,defaultRichColors:x,duration:(me=E==null?void 0:E.duration)!=null?me:O,className:E==null?void 0:E.className,descriptionClassName:E==null?void 0:E.descriptionClassName,invert:i,visibleToasts:S,closeButton:(ye=E==null?void 0:E.closeButton)!=null?ye:f,interacting:K,position:Z,style:E==null?void 0:E.style,unstyled:E==null?void 0:E.unstyled,classNames:E==null?void 0:E.classNames,cancelButtonStyle:E==null?void 0:E.cancelButtonStyle,actionButtonStyle:E==null?void 0:E.actionButtonStyle,closeButtonAriaLabel:E==null?void 0:E.closeButtonAriaLabel,removeToast:F,toasts:k.filter(re=>re.position==pe.position),heights:V.filter(re=>re.position==pe.position),setHeights:z,expandByDefault:c,gap:A,expanded:B,swipeDirections:t.swipeDirections})})):null}))}),Pfe=Rp("relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[1rem_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current"}},defaultVariants:{variant:"default"}});function Dfe({className:e,variant:t,...n}){return v.jsx("div",{className:he(Pfe({variant:t}),e),"data-slot":"alert",role:"alert",...n})}function kfe({className:e,...t}){return v.jsx("div",{className:he("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",e),"data-slot":"alert-title",...t})}function $fe({className:e,...t}){return v.jsx("div",{className:he("col-start-2 grid justify-items-start gap-1 text-muted-foreground text-sm [&_p]:leading-relaxed",e),"data-slot":"alert-description",...t})}var qz="AlertDialog",[Lfe]=Rr(qz,[lL]),Fa=lL(),Uz=e=>{const{__scopeAlertDialog:t,...n}=e,r=Fa(t);return v.jsx(PS,{...r,...n,modal:!0})};Uz.displayName=qz;var Ife="AlertDialogTrigger",zfe=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Fa(n);return v.jsx(YF,{...i,...r,ref:t})});zfe.displayName=Ife;var Bfe="AlertDialogPortal",Hz=e=>{const{__scopeAlertDialog:t,...n}=e,r=Fa(t);return v.jsx(DS,{...r,...n})};Hz.displayName=Bfe;var qfe="AlertDialogOverlay",Fz=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Fa(n);return v.jsx(kS,{...i,...r,ref:t})});Fz.displayName=qfe;var Gl="AlertDialogContent",[Ufe,Hfe]=Lfe(Gl),Ffe=Ik("AlertDialogContent"),Gz=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...i}=e,l=Fa(n),s=_.useRef(null),c=Ve(t,s),f=_.useRef(null);return v.jsx(HF,{contentName:Gl,titleName:Vz,docsSlug:"alert-dialog",children:v.jsx(Ufe,{scope:n,cancelRef:f,children:v.jsxs($S,{role:"alertdialog",...l,...i,ref:c,onOpenAutoFocus:be(i.onOpenAutoFocus,d=>{var m;d.preventDefault(),(m=f.current)==null||m.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault(),children:[v.jsx(Ffe,{children:r}),v.jsx(Vfe,{contentRef:s})]})})})});Gz.displayName=Gl;var Vz="AlertDialogTitle",Yz=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Fa(n);return v.jsx(LS,{...i,...r,ref:t})});Yz.displayName=Vz;var Wz="AlertDialogDescription",Kz=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Fa(n);return v.jsx(IS,{...i,...r,ref:t})});Kz.displayName=Wz;var Gfe="AlertDialogAction",Xz=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Fa(n);return v.jsx(kp,{...i,...r,ref:t})});Xz.displayName=Gfe;var Qz="AlertDialogCancel",Zz=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=Hfe(Qz,n),l=Fa(n),s=Ve(t,i);return v.jsx(kp,{...l,...r,ref:s})});Zz.displayName=Qz;var Vfe=({contentRef:e})=>{const t=`\`${Gl}\` requires a description for the component to be accessible for screen reader users.
366
-
367
- You can add a description to the \`${Gl}\` by passing a \`${Wz}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
368
-
369
- Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Gl}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
370
-
371
- For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return _.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},Yfe=Uz,Wfe=Hz,Kfe=Fz,Xfe=Gz,Qfe=Xz,Zfe=Zz,Jfe=Yz,ede=Kz;function FD({...e}){return v.jsx(Yfe,{"data-slot":"alert-dialog",...e})}function tde({...e}){return v.jsx(Wfe,{"data-slot":"alert-dialog-portal",...e})}function nde({className:e,...t}){return v.jsx(Kfe,{className:he("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",e),"data-slot":"alert-dialog-overlay",...t})}function GD({className:e,...t}){return v.jsxs(tde,{children:[v.jsx(nde,{}),v.jsx(Xfe,{className:he("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg",e),"data-slot":"alert-dialog-content",...t})]})}function VD({className:e,...t}){return v.jsx("div",{className:he("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"alert-dialog-header",...t})}function YD({className:e,...t}){return v.jsx("div",{className:he("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),"data-slot":"alert-dialog-footer",...t})}function WD({className:e,...t}){return v.jsx(Jfe,{className:he("font-semibold text-lg",e),"data-slot":"alert-dialog-title",...t})}function KD({className:e,...t}){return v.jsx(ede,{className:he("text-muted-foreground text-sm",e),"data-slot":"alert-dialog-description",...t})}function XD({className:e,...t}){return v.jsx(Qfe,{className:he(CS(),e),...t})}function QD({className:e,...t}){return v.jsx(Zfe,{className:he(CS({variant:"outline"}),e),...t})}var Sm="Collapsible",[rde]=Rr(Sm),[ade,KO]=rde(Sm),Jz=_.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:l,onOpenChange:s,...c}=e,[f,d]=Ai({prop:r,defaultProp:i??!1,onChange:s,caller:Sm});return v.jsx(ade,{scope:n,disabled:l,contentId:ur(),open:f,onOpenToggle:_.useCallback(()=>d(m=>!m),[d]),children:v.jsx(Me.div,{"data-state":QO(f),"data-disabled":l?"":void 0,...c,ref:t})})});Jz.displayName=Sm;var e5="CollapsibleTrigger",t5=_.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=KO(e5,n);return v.jsx(Me.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":QO(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:be(e.onClick,i.onOpenToggle)})});t5.displayName=e5;var XO="CollapsibleContent",n5=_.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=KO(XO,e.__scopeCollapsible);return v.jsx(mr,{present:n||i.open,children:({present:l})=>v.jsx(ide,{...r,ref:t,present:l})})});n5.displayName=XO;var ide=_.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...l}=e,s=KO(XO,n),[c,f]=_.useState(r),d=_.useRef(null),m=Ve(t,d),p=_.useRef(0),y=p.current,x=_.useRef(0),O=x.current,w=s.open||c,S=_.useRef(w),E=_.useRef(void 0);return _.useEffect(()=>{const T=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(T)},[]),It(()=>{const T=d.current;if(T){E.current=E.current||{transitionDuration:T.style.transitionDuration,animationName:T.style.animationName},T.style.transitionDuration="0s",T.style.animationName="none";const A=T.getBoundingClientRect();p.current=A.height,x.current=A.width,S.current||(T.style.transitionDuration=E.current.transitionDuration,T.style.animationName=E.current.animationName),f(r)}},[s.open,r]),v.jsx(Me.div,{"data-state":QO(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!w,...l,ref:m,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":O?`${O}px`:void 0,...e.style},children:w&&i})});function QO(e){return e?"open":"closed"}var ode=Jz;const Om=ode,_m=t5,Em=n5;function lde({...e}){return v.jsx(PS,{"data-slot":"dialog",...e})}function sde({...e}){return v.jsx(DS,{"data-slot":"dialog-portal",...e})}function ude({className:e,...t}){return v.jsx(kS,{className:he("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",e),"data-slot":"dialog-overlay",...t})}function cde({className:e,children:t,showCloseButton:n=!0,...r}){return v.jsxs(sde,{"data-slot":"dialog-portal",children:[v.jsx(ude,{}),v.jsxs($S,{className:he("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg",e),"data-slot":"dialog-content",...r,children:[t,n&&v.jsxs(kp,{className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0","data-slot":"dialog-close",children:[v.jsx(Ll,{}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function fde({className:e,...t}){return v.jsx("div",{className:he("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"dialog-header",...t})}function dde({className:e,...t}){return v.jsx("div",{className:he("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),"data-slot":"dialog-footer",...t})}function hde({className:e,...t}){return v.jsx(LS,{className:he("font-semibold text-lg leading-none",e),"data-slot":"dialog-title",...t})}function pde({className:e,...t}){return v.jsx(IS,{className:he("text-muted-foreground text-sm",e),"data-slot":"dialog-description",...t})}var mde="Label",r5=_.forwardRef((e,t)=>v.jsx(Co.label,{...e,ref:t,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));r5.displayName=mde;var vde=r5;function gde({className:e,...t}){return v.jsx(vde,{className:he("flex select-none items-center gap-2 font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50",e),"data-slot":"label",...t})}async function yde(){const e=sessionStorage.getItem("wraps-auth-token");if(!e)throw new Error("Authentication token not found");const t=await fetch(`/api/settings?token=${e}`);if(!t.ok)throw new Error(`Failed to fetch settings: ${t.statusText}`);return await t.json()}const a5="wraps-dns-verification",bde=1e3*60*60;function i5(){try{const e=localStorage.getItem(a5);return e?JSON.parse(e):{}}catch{return{}}}function pp(e){try{localStorage.setItem(a5,JSON.stringify(e))}catch(t){console.error("Failed to save DNS verification cache:",t)}}function o5(e){return e?Date.now()-e.lastChecked<bde:!1}async function ZD(e,t){var i;console.log("[DNS Verify] verifyTrackingDomain called",{domain:e,expectedTarget:t});const n=i5(),r=`${e}->${t}`;if((i=n.trackingDomain)!=null&&i[r]&&o5(n.trackingDomain[r]))return console.log("[DNS Verify] Returning cached result"),n.trackingDomain[r];try{const s=`/api/settings/verify-tracking-domain?token=${sessionStorage.getItem("wraps-auth-token")}&domain=${encodeURIComponent(e)}&expectedTarget=${encodeURIComponent(t)}`;console.log("[DNS Verify] Fetching:",s);const c=await fetch(s);if(console.log("[DNS Verify] Response status:",c.status),!c.ok)throw new Error(`HTTP ${c.status}: ${c.statusText}`);const f=await c.json();console.log("[DNS Verify] Response data:",f);const d={verified:f.verified,lastChecked:Date.now(),error:f.error};return n.trackingDomain||(n.trackingDomain={}),n.trackingDomain[r]=d,pp(n),d}catch(l){console.error("Tracking domain verification request failed:",l);const s={verified:!1,lastChecked:Date.now(),error:l instanceof Error?l.message:"Failed to verify"};return n.trackingDomain||(n.trackingDomain={}),n.trackingDomain[r]=s,pp(n),s}}async function JD(e){var r;console.log("[DNS Verify] verifyDmarc called",{domain:e});const t=i5(),n=`_dmarc.${e}`;if((r=t.dmarc)!=null&&r[n]&&o5(t.dmarc[n]))return console.log("[DNS Verify] Returning cached DMARC result"),t.dmarc[n];try{const l=`/api/settings/verify-dmarc?token=${sessionStorage.getItem("wraps-auth-token")}&domain=${encodeURIComponent(e)}`;console.log("[DNS Verify] Fetching:",l);const s=await fetch(l);if(console.log("[DNS Verify] Response status:",s.status),!s.ok)throw new Error(`HTTP ${s.status}: ${s.statusText}`);const c=await s.json();console.log("[DNS Verify] Response data:",c);const f={verified:c.verified,lastChecked:Date.now(),error:c.error};return t.dmarc||(t.dmarc={}),t.dmarc[n]=f,pp(t),f}catch(i){console.error("DMARC verification request failed:",i);const l={verified:!1,lastChecked:Date.now(),error:i instanceof Error?i.message:"Failed to verify"};return t.dmarc||(t.dmarc={}),t.dmarc[n]=l,pp(t),l}}function ZO({status:e}){const t={SUCCESS:{icon:bp,label:"Verified",variant:"default",className:"bg-green-500/10 text-green-700 dark:text-green-400 border-green-500/20"},PENDING:{icon:cw,label:"Pending",variant:"secondary",className:"bg-yellow-500/10 text-yellow-700 dark:text-yellow-400 border-yellow-500/20"},FAILED:{icon:a6,label:"Failed",variant:"destructive",className:"bg-red-500/10 text-red-700 dark:text-red-400 border-red-500/20"},TEMPORARY_FAILURE:{icon:xk,label:"Temporary Failure",variant:"secondary",className:"bg-orange-500/10 text-orange-700 dark:text-orange-400 border-orange-500/20"},NOT_STARTED:{icon:cw,label:"Not Started",variant:"outline",className:"bg-gray-500/10 text-gray-700 dark:text-gray-400 border-gray-500/20"}},{icon:n,label:r,className:i}=t[e];return v.jsxs(vn,{className:i,variant:"outline",children:[v.jsx(n,{className:"mr-1 h-3 w-3"}),r]})}function gs({text:e}){const t=async()=>{await navigator.clipboard.writeText(e),Mn.success("Copied to clipboard",{description:"DNS record value copied successfully"})};return v.jsx(Dt,{onClick:t,size:"sm",variant:"ghost",children:v.jsx(i6,{className:"h-3 w-3"})})}function xde({identity:e}){const t=e==null?void 0:e.dkimAttributes,n=(t==null?void 0:t.status)==="SUCCESS",[r,i]=_.useState(!n);return t?v.jsxs("div",{className:"space-y-4",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx("p",{className:"font-medium",children:"DKIM Authentication"}),v.jsxs("p",{className:"text-muted-foreground text-sm",children:[t.signingEnabled?"Enabled":"Disabled",t.signingKeyLength&&` · ${t.signingKeyLength}`]})]}),v.jsx(ZO,{status:t.status})]}),t.tokens&&t.tokens.length>0&&v.jsxs(Om,{onOpenChange:i,open:r,children:[v.jsx(_m,{asChild:!0,children:v.jsxs(Dt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[v.jsx("p",{className:"font-medium text-sm",children:"DNS Records (CNAME)"}),r?v.jsx(Yc,{className:"h-4 w-4"}):v.jsx(xs,{className:"h-4 w-4"})]})}),v.jsx(Em,{className:"mt-2 space-y-2",children:t.tokens.map(l=>v.jsxs("div",{className:"rounded-md border bg-muted/50 p-3",children:[v.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[v.jsxs("p",{className:"font-mono text-xs",children:[l,"._domainkey.",e.identityName]}),v.jsx(gs,{text:`${l}._domainkey.${e.identityName}`})]}),v.jsxs("p",{className:"font-mono text-muted-foreground text-xs",children:["CNAME → ",l,".dkim.amazonses.com"]})]},l))})]})]}):v.jsx("div",{className:"space-y-4",children:v.jsx("div",{className:"flex items-center justify-between",children:v.jsxs("div",{children:[v.jsx("p",{className:"font-medium",children:"DKIM Authentication"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:"Not configured"})]})})})}function wde({identity:e}){const t=e==null?void 0:e.mailFromAttributes,n=(t==null?void 0:t.mailFromDomainStatus)==="SUCCESS",[r,i]=_.useState(!n);return v.jsx("div",{className:"space-y-4",children:t!=null&&t.mailFromDomain?v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx("p",{className:"font-medium",children:"Mail-From Domain"}),v.jsxs("p",{className:"text-muted-foreground text-sm",children:[t.mailFromDomain,t.behaviorOnMxFailure&&` · ${t.behaviorOnMxFailure==="USE_DEFAULT_VALUE"?"Fallback enabled":"Reject on failure"}`]})]}),t.mailFromDomainStatus&&v.jsx(ZO,{status:t.mailFromDomainStatus})]}),v.jsxs(Om,{onOpenChange:i,open:r,children:[v.jsx(_m,{asChild:!0,children:v.jsxs(Dt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[v.jsx("p",{className:"font-medium text-sm",children:"DNS Record (MX)"}),r?v.jsx(Yc,{className:"h-4 w-4"}):v.jsx(xs,{className:"h-4 w-4"})]})}),v.jsx(Em,{className:"mt-2",children:v.jsx("div",{className:"rounded-md border bg-muted/50 p-3",children:v.jsxs("div",{className:"space-y-1",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("p",{className:"font-mono text-xs",children:["MX ",t.mailFromDomain]}),v.jsx(gs,{text:`10 feedback-smtp.${e==null?void 0:e.identityName.split(".")[0]}.amazonses.com`})]}),v.jsxs("p",{className:"font-mono text-muted-foreground text-xs",children:["Priority 10 → feedback-smtp.",e==null?void 0:e.identityName.split(".")[0],".amazonses.com"]})]})})})]})]}):v.jsx("div",{className:"flex items-center justify-between",children:v.jsxs("div",{children:[v.jsx("p",{className:"font-medium",children:"Mail-From Domain"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:"Using default amazonses.com domain"})]})})})}function Sde({identity:e}){const[t,n]=_.useState(null),[r,i]=_.useState(!1),[l,s]=_.useState(!(t!=null&&t.verified));_.useEffect(()=>{e!=null&&e.identityName&&JD(e.identityName).then(n)},[e==null?void 0:e.identityName]),_.useEffect(()=>{t&&s(!t.verified)},[t]);const c=async()=>{if(e!=null&&e.identityName){i(!0);try{const f=await JD(e.identityName);n(f),f.verified?Mn.success("DMARC record verified",{description:"DNS TXT record found and configured correctly"}):(console.error("DMARC verification failed:",f.error),Mn.error("Verification failed",{description:f.error||"DMARC record not found"}))}catch(f){console.error("DMARC verification error:",f),Mn.error("Verification error",{description:f instanceof Error?f.message:"Unknown error"})}finally{i(!1)}}};return v.jsxs("div",{className:"space-y-4",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx("p",{className:"font-medium",children:"DMARC Policy"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:t!=null&&t.verified?"Configured":"Recommended for better deliverability"})]}),v.jsxs("div",{className:"flex items-center gap-2",children:[(t==null?void 0:t.verified)&&v.jsxs(vn,{className:"border-green-500/20 bg-green-500/10 text-green-700 dark:text-green-400",variant:"outline",children:[v.jsx(bp,{className:"mr-1 h-3 w-3"}),"Verified by Wraps"]}),v.jsx(Dt,{className:"h-8 w-8 p-0",disabled:r,onClick:c,size:"sm",variant:"ghost",children:v.jsx(wk,{className:`h-4 w-4 ${r?"animate-spin":""}`})})]})]}),v.jsxs(Om,{onOpenChange:s,open:l,children:[v.jsx(_m,{asChild:!0,children:v.jsxs(Dt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[v.jsx("p",{className:"font-medium text-sm",children:"DNS Record (TXT)"}),l?v.jsx(Yc,{className:"h-4 w-4"}):v.jsx(xs,{className:"h-4 w-4"})]})}),v.jsx(Em,{className:"mt-2",children:v.jsxs("div",{className:"rounded-md border bg-muted/50 p-3",children:[v.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[v.jsxs("p",{className:"font-mono text-xs",children:["_dmarc.",(e==null?void 0:e.identityName)||"yourdomain.com"]}),v.jsx(gs,{text:`_dmarc.${(e==null?void 0:e.identityName)||"yourdomain.com"}`})]}),v.jsxs("div",{className:"flex items-start justify-between gap-2",children:[v.jsxs("p",{className:"font-mono text-muted-foreground text-xs",children:["v=DMARC1; p=quarantine; rua=mailto:dmarc@",(e==null?void 0:e.identityName)||"yourdomain.com"]}),v.jsx(gs,{text:`v=DMARC1; p=quarantine; rua=mailto:dmarc@${(e==null?void 0:e.identityName)||"yourdomain.com"}`})]})]})})]})]})}function Ode({configSet:e,region:t,onRefresh:n}){const r=e==null?void 0:e.trackingOptions,[i,l]=_.useState(null),[s,c]=_.useState(!1),[f,d]=_.useState(!1),[m,p]=_.useState(""),[y,x]=_.useState(!1),[O,w]=_.useState(!(i!=null&&i.verified));_.useEffect(()=>{if(r!=null&&r.customRedirectDomain&&t){const A=`r.${t}.awstrack.me`;ZD(r.customRedirectDomain,A).then(l)}},[r==null?void 0:r.customRedirectDomain,t]),_.useEffect(()=>{i&&w(!i.verified)},[i]);const S=async()=>{if(r!=null&&r.customRedirectDomain&&t){c(!0);try{const A=`r.${t}.awstrack.me`,M=await ZD(r.customRedirectDomain,A);l(M),M.verified?Mn.success("Tracking domain verified",{description:"DNS records are configured correctly"}):(console.error("Tracking domain verification failed:",M.error),Mn.error("Verification failed",{description:M.error||"DNS records not found"}))}catch(A){console.error("Tracking domain verification error:",A),Mn.error("Verification error",{description:A instanceof Error?A.message:"Unknown error"})}finally{c(!1)}}},E=()=>{p((r==null?void 0:r.customRedirectDomain)||""),d(!0)},T=async()=>{if(!m.trim()){Mn.error("Invalid domain",{description:"Please enter a valid domain name"});return}x(!0);try{const A=sessionStorage.getItem("wraps-auth-token"),M=await fetch(`/api/settings/config-set/tracking-domain?token=${A}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:m})});if(!M.ok){const j=await M.json();throw new Error(j.error||`Failed to update: ${M.statusText}`)}d(!1),Mn.success("Tracking domain updated",{description:"Don't forget to configure the DNS records"}),n&&await n()}catch(A){console.error("Failed to update tracking domain:",A),Mn.error("Failed to update tracking domain",{description:A instanceof Error?A.message:"Unknown error"})}finally{x(!1)}};return v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsx(an,{children:"Tracking Domain"}),v.jsx(hr,{children:"Custom domain for open and click tracking links"})]}),v.jsx(Ut,{className:"space-y-4",children:r!=null&&r.customRedirectDomain?v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex-1",children:[v.jsx("p",{className:"font-medium",children:r.customRedirectDomain}),v.jsx("p",{className:"text-muted-foreground text-sm",children:"Custom Tracking Domain"})]}),v.jsxs("div",{className:"flex items-center gap-2",children:[(i==null?void 0:i.verified)&&v.jsxs(vn,{className:"border-green-500/20 bg-green-500/10 text-green-700 dark:text-green-400",variant:"outline",children:[v.jsx(bp,{className:"mr-1 h-3 w-3"}),"Verified by Wraps"]}),v.jsx(vn,{variant:"outline",children:r.httpsPolicy==="REQUIRE"?"HTTPS Only":"HTTPS Optional"}),v.jsx(Dt,{className:"h-8 w-8 p-0",disabled:s,onClick:S,size:"sm",variant:"ghost",children:v.jsx(wk,{className:`h-4 w-4 ${s?"animate-spin":""}`})}),v.jsx(Dt,{className:"h-8 w-8 p-0",onClick:E,size:"sm",variant:"ghost",children:v.jsx(ij,{className:"h-4 w-4"})})]})]}),v.jsxs(Om,{onOpenChange:w,open:O,children:[v.jsx(_m,{asChild:!0,children:v.jsxs(Dt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[v.jsx("p",{className:"font-medium text-sm",children:"Required DNS Record (CNAME)"}),O?v.jsx(Yc,{className:"h-4 w-4"}):v.jsx(xs,{className:"h-4 w-4"})]})}),v.jsx(Em,{className:"mt-2",children:v.jsxs("div",{className:"rounded-md border bg-muted/50 p-3",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("p",{className:"font-mono text-xs",children:r.customRedirectDomain}),v.jsx(gs,{text:r.customRedirectDomain})]}),v.jsxs("div",{className:"mt-1 flex items-start justify-between gap-2",children:[v.jsxs("p",{className:"font-mono text-muted-foreground text-xs",children:["CNAME → r.",(e==null?void 0:e.name)||"region",".awstrack.me"]}),v.jsx(gs,{text:`r.${(e==null?void 0:e.name)||"region"}.awstrack.me`})]})]})})]})]}):v.jsxs("div",{className:"space-y-4",children:[v.jsx("p",{className:"text-muted-foreground text-sm",children:"No custom tracking domain configured. Using default awstrack.me domain."}),v.jsxs(Dt,{onClick:E,size:"sm",variant:"outline",children:[v.jsx(ij,{className:"mr-2 h-4 w-4"}),"Configure Tracking Domain"]})]})}),v.jsx(lde,{onOpenChange:d,open:f,children:v.jsxs(cde,{children:[v.jsxs(fde,{children:[v.jsx(hde,{children:"Update Tracking Domain"}),v.jsx(pde,{children:"Enter the custom domain you want to use for email tracking links. You'll need to configure DNS records after saving."})]}),v.jsx("div",{className:"space-y-4 py-4",children:v.jsxs("div",{className:"space-y-2",children:[v.jsx(gde,{htmlFor:"domain",children:"Tracking Domain"}),v.jsx(Pp,{disabled:y,id:"domain",onChange:A=>p(A.target.value),placeholder:"track.example.com",value:m}),v.jsx("p",{className:"text-muted-foreground text-xs",children:"Example: track.yourdomain.com or email.yourdomain.com"})]})}),v.jsxs(dde,{children:[v.jsx(Dt,{disabled:y,onClick:()=>d(!1),variant:"outline",children:"Cancel"}),v.jsx(Dt,{disabled:y,onClick:T,children:y?"Updating...":"Update Domain"})]})]})})]})}function _de({configSet:e,onRefresh:t}){var m,p;const[n,r]=_.useState(!1),[i,l]=_.useState(!1),[s,c]=_.useState(!1);if(!e)return v.jsx(kt,{children:v.jsxs($t,{children:[v.jsx(an,{children:"Configuration Set"}),v.jsx(hr,{children:"No configuration set found"})]})});const f=async()=>{var y;c(!0);try{const x=sessionStorage.getItem("wraps-auth-token"),O=!((y=e.sendingOptions)!=null&&y.sendingEnabled),w=await fetch(`/api/settings/config-set/sending?token=${x}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:O})});if(!w.ok)throw new Error(`Failed to update: ${w.statusText}`);r(!1),Mn.success(O?"Email sending enabled":"Email sending disabled"),t&&await t()}catch(x){console.error("Failed to toggle sending:",x),Mn.error("Failed to update setting",{description:x instanceof Error?x.message:"Unknown error"})}finally{c(!1)}},d=async()=>{var y;c(!0);try{const x=sessionStorage.getItem("wraps-auth-token"),O=!((y=e.reputationOptions)!=null&&y.reputationMetricsEnabled),w=await fetch(`/api/settings/config-set/reputation?token=${x}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:O})});if(!w.ok)throw new Error(`Failed to update: ${w.statusText}`);l(!1),Mn.success(O?"Reputation metrics enabled":"Reputation metrics disabled"),t&&await t()}catch(x){console.error("Failed to toggle reputation:",x),Mn.error("Failed to update setting",{description:x instanceof Error?x.message:"Unknown error"})}finally{c(!1)}};return v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsx(an,{children:"Configuration Set"}),v.jsx(hr,{children:"Email sending and tracking configuration"})]}),v.jsxs(Ut,{className:"space-y-6",children:[v.jsxs("div",{children:[v.jsx("p",{className:"font-medium",children:e.name}),v.jsx("p",{className:"text-muted-foreground text-sm",children:"Configuration Set Name"})]}),v.jsx(ql,{}),e.sendingOptions&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex-1 space-y-0.5",children:[v.jsx("p",{className:"font-medium text-sm",children:"Email Sending"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:e.sendingOptions.sendingEnabled?"Emails can be sent":"Email sending is disabled"})]}),v.jsx(Dt,{onClick:()=>r(!0),size:"sm",variant:e.sendingOptions.sendingEnabled?"destructive":"default",children:e.sendingOptions.sendingEnabled?"Disable":"Enable"})]}),v.jsx(FD,{onOpenChange:r,open:n,children:v.jsxs(GD,{children:[v.jsxs(VD,{children:[v.jsx(WD,{children:e.sendingOptions.sendingEnabled?"Disable email sending?":"Enable email sending?"}),v.jsx(KD,{children:e.sendingOptions.sendingEnabled?"All outgoing emails will be blocked until you re-enable sending. Emails in the queue will not be sent.":"This will allow emails to be sent through this configuration set. Make sure your domain is verified before enabling."})]}),v.jsxs(YD,{children:[v.jsx(QD,{disabled:s,children:"Cancel"}),v.jsx(XD,{disabled:s,onClick:f,children:s?"Updating...":e.sendingOptions.sendingEnabled?"Disable sending":"Enable sending"})]})]})})]}),e.reputationOptions&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex-1 space-y-0.5",children:[v.jsx("p",{className:"font-medium text-sm",children:"Reputation Metrics"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:e.reputationOptions.reputationMetricsEnabled?"Tracking bounce and complaint rates":"Reputation tracking disabled"})]}),v.jsx(Dt,{onClick:()=>l(!0),size:"sm",variant:"outline",children:e.reputationOptions.reputationMetricsEnabled?"Disable":"Enable"})]}),v.jsx(FD,{onOpenChange:l,open:i,children:v.jsxs(GD,{children:[v.jsxs(VD,{children:[v.jsx(WD,{children:e.reputationOptions.reputationMetricsEnabled?"Disable reputation metrics?":"Enable reputation metrics?"}),v.jsx(KD,{children:e.reputationOptions.reputationMetricsEnabled?"You will stop collecting bounce and complaint rate data. Historical data will be preserved but no new metrics will be tracked.":"This will start tracking bounce and complaint rates for your sending domain. This helps monitor your email reputation and deliverability."})]}),v.jsxs(YD,{children:[v.jsx(QD,{disabled:s,children:"Cancel"}),v.jsx(XD,{disabled:s,onClick:d,children:s?"Updating...":e.reputationOptions.reputationMetricsEnabled?"Disable metrics":"Enable metrics"})]})]})})]}),((m=e.deliveryOptions)==null?void 0:m.tlsPolicy)&&v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"space-y-0.5",children:[v.jsx("p",{className:"font-medium text-sm",children:"TLS Encryption"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:e.deliveryOptions.tlsPolicy==="REQUIRE"?"Required for all connections":"Optional (opportunistic)"})]}),v.jsx(vn,{variant:"outline",children:e.deliveryOptions.tlsPolicy==="REQUIRE"?"Required":"Optional"})]}),e.suppressionOptions&&v.jsxs("div",{className:"space-y-2",children:[v.jsxs("div",{className:"space-y-0.5",children:[v.jsx("p",{className:"font-medium text-sm",children:"Suppression List"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:"Automatically suppress emails to addresses that bounced or complained"})]}),e.suppressionOptions.suppressedReasons&&e.suppressionOptions.suppressedReasons.length>0?v.jsx("div",{className:"flex gap-2",children:e.suppressionOptions.suppressedReasons.map(y=>v.jsx(vn,{variant:"secondary",children:y},y))}):v.jsx("p",{className:"text-muted-foreground text-sm",children:"Not configured"})]}),((p=e.deliveryOptions)==null?void 0:p.sendingPoolName)&&v.jsxs("div",{children:[v.jsx("p",{className:"font-medium text-sm",children:"IP Pool"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:e.deliveryOptions.sendingPoolName})]})]})]})}function Ede(){var c,f;const[e,t]=_.useState(null),[n,r]=_.useState(!0),[i,l]=_.useState(null),s=_.useCallback(async()=>{try{r(!0);const d=await yde();t(d),l(null)}catch(d){console.error("Failed to fetch email settings:",d),l(d instanceof Error?d.message:"Failed to load settings")}finally{r(!1)}},[]);return _.useEffect(()=>{s()},[s]),n?v.jsxs(v.Fragment,{children:[v.jsxs("div",{children:[v.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Settings"}),v.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your email settings and preferences"})]}),v.jsxs("div",{className:"mt-6 grid gap-6 md:grid-cols-2",children:[v.jsxs(kt,{className:"md:row-span-2",children:[v.jsxs($t,{children:[v.jsx(Tt,{className:"h-6 w-48"}),v.jsx(Tt,{className:"mt-2 h-4 w-64"})]}),v.jsxs(Ut,{className:"space-y-6",children:[v.jsxs("div",{className:"space-y-2",children:[v.jsx(Tt,{className:"h-4 w-32"}),v.jsx(Tt,{className:"h-4 w-24"})]}),v.jsx(Tt,{className:"h-px w-full"}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(Tt,{className:"h-4 w-40"}),v.jsx(Tt,{className:"h-4 w-28"})]}),v.jsx(Tt,{className:"h-px w-full"}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(Tt,{className:"h-4 w-36"}),v.jsx(Tt,{className:"h-4 w-32"})]}),v.jsx(Tt,{className:"h-px w-full"}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(Tt,{className:"h-4 w-32"}),v.jsx(Tt,{className:"h-4 w-44"})]})]})]}),v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsx(Tt,{className:"h-6 w-48"}),v.jsx(Tt,{className:"mt-2 h-4 w-64"})]}),v.jsx(Ut,{children:v.jsx(Tt,{className:"h-20 w-full"})})]}),v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsx(Tt,{className:"h-6 w-48"}),v.jsx(Tt,{className:"mt-2 h-4 w-64"})]}),v.jsx(Ut,{children:v.jsx(Tt,{className:"h-20 w-full"})})]})]})]}):i?v.jsxs(v.Fragment,{children:[v.jsxs("div",{children:[v.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Settings"}),v.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your email settings and preferences"})]}),v.jsxs(Dfe,{className:"mt-6",variant:"destructive",children:[v.jsx(xk,{className:"h-4 w-4"}),v.jsx(kfe,{children:"Error Loading Settings"}),v.jsx($fe,{children:i})]})]}):v.jsxs(v.Fragment,{children:[v.jsxs("div",{children:[v.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Settings"}),v.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your email settings and preferences"})]}),v.jsxs("div",{className:"mt-6 grid gap-6 md:grid-cols-2",children:[v.jsxs(kt,{className:"md:row-span-2",children:[v.jsxs($t,{children:[v.jsx(an,{children:"Sending Domain"}),v.jsx(hr,{children:"Email domain configuration and authentication"})]}),v.jsxs(Ut,{className:"space-y-6",children:[v.jsx("div",{className:"space-y-4",children:v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex-1",children:[v.jsx("p",{className:"font-medium",children:(c=e==null?void 0:e.identity)==null?void 0:c.identityName}),v.jsx("p",{className:"text-muted-foreground text-sm",children:"Domain Identity"})]}),v.jsx(ZO,{status:((f=e==null?void 0:e.identity)==null?void 0:f.verificationStatus)||"NOT_STARTED"})]})}),v.jsx(ql,{}),v.jsx(xde,{identity:e==null?void 0:e.identity}),v.jsx(ql,{}),v.jsx(wde,{identity:e==null?void 0:e.identity}),v.jsx(ql,{}),v.jsx(Sde,{identity:e==null?void 0:e.identity})]})]}),v.jsx(_de,{configSet:e==null?void 0:e.configurationSet,onRefresh:s}),v.jsx(Ode,{configSet:e==null?void 0:e.configurationSet,onRefresh:s,region:e==null?void 0:e.region})]})]})}const Ade={theme:"system",setTheme:()=>null},Tde=_.createContext(Ade);function jde({children:e,defaultTheme:t="system",storageKey:n="vite-ui-theme",...r}){const[i,l]=_.useState(()=>localStorage.getItem(n)||t);_.useEffect(()=>{const c=window.document.documentElement;if(c.classList.remove("light","dark"),i==="system"){const f=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";c.classList.add(f),c.style.colorScheme=f;return}c.classList.add(i),c.style.colorScheme=i},[i]);const s={theme:i,setTheme:c=>{localStorage.setItem(n,c),l(c)}};return v.jsx(Tde.Provider,{...r,value:s,children:e})}function Cde({...e}){return v.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function Mde({className:e,...t}){return v.jsx("ol",{className:he("flex flex-wrap items-center gap-1.5 break-words text-muted-foreground text-sm sm:gap-2.5",e),"data-slot":"breadcrumb-list",...t})}function Nde({className:e,...t}){return v.jsx("li",{className:he("inline-flex items-center gap-1.5",e),"data-slot":"breadcrumb-item",...t})}function Rde({className:e,...t}){return v.jsx("span",{"aria-current":"page","aria-disabled":"true",className:he("font-normal text-foreground",e),"data-slot":"breadcrumb-page",role:"link",...t})}var Pde=(e,t,n,r,i,l,s,c)=>{let f=document.documentElement,d=["light","dark"];function m(x){(Array.isArray(e)?e:[e]).forEach(O=>{let w=O==="class",S=w&&l?i.map(E=>l[E]||E):i;w?(f.classList.remove(...S),f.classList.add(l&&l[x]?l[x]:x)):f.setAttribute(O,x)}),p(x)}function p(x){c&&d.includes(x)&&(f.style.colorScheme=x)}function y(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)m(r);else try{let x=localStorage.getItem(t)||n,O=s&&x==="system"?y():x;m(O)}catch{}},Dde=_.createContext(void 0),kde={setTheme:e=>{},themes:[]},$de=()=>{var e;return(e=_.useContext(Dde))!=null?e:kde};_.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:l,value:s,themes:c,nonce:f,scriptProps:d})=>{let m=JSON.stringify([n,t,l,e,c,s,r,i]).slice(1,-1);return _.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?f:"",dangerouslySetInnerHTML:{__html:`(${Pde.toString()})(${m})`}})});const Lde=({...e})=>{const{theme:t="system"}=$de();return v.jsx(Rfe,{className:"toaster group",icons:{success:v.jsx(bp,{className:"size-4"}),info:v.jsx(l6,{className:"size-4"}),warning:v.jsx(g6,{className:"size-4"}),error:v.jsx(f6,{className:"size-4"}),loading:v.jsx(u6,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},theme:t,...e})};function Ide(){const e=Ba();_.useEffect(()=>{let n=sessionStorage.getItem("wraps-auth-token");n||(n=new URLSearchParams(window.location.search).get("token"),n&&sessionStorage.setItem("wraps-auth-token",n))},[]),_.useEffect(()=>{document.cookie="sidebar_state=; path=/; max-age=0"},[]);const t=()=>{if(e.pathname.startsWith("/email/")&&e.pathname!=="/email/metrics"&&e.pathname!=="/email/settings")return"Email Details";switch(e.pathname){case"/":return"Dashboard";case"/email":return"Emails";case"/email/metrics":return"Email Metrics";case"/email/settings":return"Email Settings";default:return"Dashboard"}};return v.jsxs(zL,{defaultOpen:!1,children:[v.jsx(HG,{}),v.jsxs(qL,{children:[v.jsxs("header",{className:"sticky top-0 flex shrink-0 items-center gap-2 border-b bg-background p-4",children:[v.jsx(BL,{className:"-ml-1"}),v.jsx(ql,{className:"mr-2 data-[orientation=vertical]:h-4",orientation:"vertical"}),v.jsx(Cde,{children:v.jsx(Mde,{children:v.jsx(Nde,{children:v.jsx(Rde,{children:t()})})})})]}),v.jsx("div",{className:"flex flex-1 flex-col gap-6 p-6",children:v.jsxs(y8,{children:[v.jsx(Pl,{element:v.jsx(Z6,{}),path:"/"}),v.jsx(Pl,{element:v.jsx(FV,{}),path:"/email"}),v.jsx(Pl,{element:v.jsx(WG,{}),path:"/email/:id"}),v.jsx(Pl,{element:v.jsx(ife,{}),path:"/email/metrics"}),v.jsx(Pl,{element:v.jsx(Ede,{}),path:"/email/settings"})]})})]})]})}function zde(){return v.jsx(jde,{defaultTheme:"system",storageKey:"console-ui-theme",children:v.jsxs(q8,{children:[v.jsx(Ide,{}),v.jsx(Lde,{})]})})}Tq.createRoot(document.getElementById("root")).render(v.jsx(_.StrictMode,{children:v.jsx(zde,{})}));