@wraps.dev/cli 1.6.1 → 1.7.0
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.
- package/LICENSE +673 -0
- package/dist/cli.js +7357 -3727
- package/dist/cli.js.map +1 -1
- package/dist/console/assets/index-C7IsSMSN.js +376 -0
- package/dist/console/assets/{index-DrwR3LQV.css → index-CstGSlKt.css} +1 -1
- package/dist/console/index.html +2 -2
- package/dist/lambda/event-processor/.bundled +1 -1
- package/dist/lambda/sms-event-processor/.bundled +1 -1
- package/package.json +17 -18
- package/dist/console/assets/index-BUM0aT88.js +0 -376
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
function a6(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 s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{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 s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var Hd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ny={exports:{}},Fu={};/**
|
|
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 xT;function i6(){if(xT)return Fu;xT=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,s){var l=null;if(s!==void 0&&(l=""+s),i.key!==void 0&&(l=""+i.key),"key"in i){s={};for(var c in i)c!=="key"&&(s[c]=i[c])}else s=i;return i=s.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:s}}return Fu.Fragment=t,Fu.jsx=n,Fu.jsxs=n,Fu}var wT;function o6(){return wT||(wT=1,ny.exports=i6()),ny.exports}var p=o6(),ry={exports:{}},Ne={};/**
|
|
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 ST;function s6(){if(ST)return Ne;ST=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"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),g=Symbol.iterator;function x($){return $===null||typeof $!="object"?null:($=g&&$[g]||$["@@iterator"],typeof $=="function"?$:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,w={};function j($,F,X){this.props=$,this.context=F,this.refs=w,this.updater=X||_}j.prototype.isReactComponent={},j.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")},j.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function E(){}E.prototype=j.prototype;function A($,F,X){this.props=$,this.context=F,this.refs=w,this.updater=X||_}var M=A.prototype=new E;M.constructor=A,S(M,j.prototype),M.isPureReactComponent=!0;var T=Array.isArray;function N(){}var R={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function I($,F,X){var ae=X.ref;return{$$typeof:e,type:$,key:F,ref:ae!==void 0?ae:null,props:X}}function Y($,F){return I($.type,F,$.props)}function z($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function H($){var F={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(X){return F[X]})}var V=/\/+/g;function Q($,F){return typeof $=="object"&&$!==null&&$.key!=null?H(""+$.key):F.toString(36)}function K($){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 k($,F,X,ae,de){var ge=typeof $;(ge==="undefined"||ge==="boolean")&&($=null);var ce=!1;if($===null)ce=!0;else switch(ge){case"bigint":case"string":case"number":ce=!0;break;case"object":switch($.$$typeof){case e:case t:ce=!0;break;case v:return ce=$._init,k(ce($._payload),F,X,ae,de)}}if(ce)return de=de($),ce=ae===""?"."+Q($,0):ae,T(de)?(X="",ce!=null&&(X=ce.replace(V,"$&/")+"/"),k(de,F,X,"",function(me){return me})):de!=null&&(z(de)&&(de=Y(de,X+(de.key==null||$&&$.key===de.key?"":(""+de.key).replace(V,"$&/")+"/")+ce)),F.push(de)),1;ce=0;var he=ae===""?".":ae+":";if(T($))for(var ie=0;ie<$.length;ie++)ae=$[ie],ge=he+Q(ae,ie),ce+=k(ae,F,X,ge,de);else if(ie=x($),typeof ie=="function")for($=ie.call($),ie=0;!(ae=$.next()).done;)ae=ae.value,ge=he+Q(ae,ie++),ce+=k(ae,F,X,ge,de);else if(ge==="object"){if(typeof $.then=="function")return k(K($),F,X,ae,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 ce}function q($,F,X){if($==null)return $;var ae=[],de=0;return k($,ae,"","",function(ge){return F.call(X,ge,de++)}),ae}function B($){if($._status===-1){var F=$._result;F=F(),F.then(function(X){($._status===0||$._status===-1)&&($._status=1,$._result=X)},function(X){($._status===0||$._status===-1)&&($._status=2,$._result=X)}),$._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($)},se={map:q,forEach:function($,F,X){q($,function(){F.apply(this,arguments)},X)},count:function($){var F=0;return q($,function(){F++}),F},toArray:function($){return q($,function(F){return F})||[]},only:function($){if(!z($))throw Error("React.Children.only expected to receive a single React element child.");return $}};return Ne.Activity=m,Ne.Children=se,Ne.Component=j,Ne.Fragment=n,Ne.Profiler=i,Ne.PureComponent=A,Ne.StrictMode=r,Ne.Suspense=f,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,Ne.__COMPILER_RUNTIME={__proto__:null,c:function($){return R.H.useMemoCache($)}},Ne.cache=function($){return function(){return $.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function($,F,X){if($==null)throw Error("The argument must be a React element, but you passed "+$+".");var ae=S({},$.props),de=$.key;if(F!=null)for(ge in F.key!==void 0&&(de=""+F.key),F)!D.call(F,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&F.ref===void 0||(ae[ge]=F[ge]);var ge=arguments.length-2;if(ge===1)ae.children=X;else if(1<ge){for(var ce=Array(ge),he=0;he<ge;he++)ce[he]=arguments[he+2];ae.children=ce}return I($.type,de,ae)},Ne.createContext=function($){return $={$$typeof:l,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null},$.Provider=$,$.Consumer={$$typeof:s,_context:$},$},Ne.createElement=function($,F,X){var ae,de={},ge=null;if(F!=null)for(ae in F.key!==void 0&&(ge=""+F.key),F)D.call(F,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(de[ae]=F[ae]);var ce=arguments.length-2;if(ce===1)de.children=X;else if(1<ce){for(var he=Array(ce),ie=0;ie<ce;ie++)he[ie]=arguments[ie+2];de.children=he}if($&&$.defaultProps)for(ae in ce=$.defaultProps,ce)de[ae]===void 0&&(de[ae]=ce[ae]);return I($,ge,de)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function($){return{$$typeof:c,render:$}},Ne.isValidElement=z,Ne.lazy=function($){return{$$typeof:v,_payload:{_status:-1,_result:$},_init:B}},Ne.memo=function($,F){return{$$typeof:d,type:$,compare:F===void 0?null:F}},Ne.startTransition=function($){var F=R.T,X={};R.T=X;try{var ae=$(),de=R.S;de!==null&&de(X,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(N,W)}catch(ge){W(ge)}finally{F!==null&&X.types!==null&&(F.types=X.types),R.T=F}},Ne.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},Ne.use=function($){return R.H.use($)},Ne.useActionState=function($,F,X){return R.H.useActionState($,F,X)},Ne.useCallback=function($,F){return R.H.useCallback($,F)},Ne.useContext=function($){return R.H.useContext($)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function($,F){return R.H.useDeferredValue($,F)},Ne.useEffect=function($,F){return R.H.useEffect($,F)},Ne.useEffectEvent=function($){return R.H.useEffectEvent($)},Ne.useId=function(){return R.H.useId()},Ne.useImperativeHandle=function($,F,X){return R.H.useImperativeHandle($,F,X)},Ne.useInsertionEffect=function($,F){return R.H.useInsertionEffect($,F)},Ne.useLayoutEffect=function($,F){return R.H.useLayoutEffect($,F)},Ne.useMemo=function($,F){return R.H.useMemo($,F)},Ne.useOptimistic=function($,F){return R.H.useOptimistic($,F)},Ne.useReducer=function($,F,X){return R.H.useReducer($,F,X)},Ne.useRef=function($){return R.H.useRef($)},Ne.useState=function($){return R.H.useState($)},Ne.useSyncExternalStore=function($,F,X){return R.H.useSyncExternalStore($,F,X)},Ne.useTransition=function(){return R.H.useTransition()},Ne.version="19.2.3",Ne}var OT;function $m(){return OT||(OT=1,ry.exports=s6()),ry.exports}var O=$m();const L=gt(O),OS=a6({__proto__:null,default:L},[O]);var ay={exports:{}},Gu={},iy={exports:{}},oy={};/**
|
|
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 _T;function l6(){return _T||(_T=1,(function(e){function t(k,q){var B=k.length;k.push(q);e:for(;0<B;){var W=B-1>>>1,se=k[W];if(0<i(se,q))k[W]=q,k[B]=se,B=W;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var q=k[0],B=k.pop();if(B!==q){k[0]=B;e:for(var W=0,se=k.length,$=se>>>1;W<$;){var F=2*(W+1)-1,X=k[F],ae=F+1,de=k[ae];if(0>i(X,B))ae<se&&0>i(de,X)?(k[W]=de,k[ae]=B,W=ae):(k[W]=X,k[F]=B,W=F);else if(ae<se&&0>i(de,B))k[W]=de,k[ae]=B,W=ae;else break e}}return q}function i(k,q){var B=k.sortIndex-q.sortIndex;return B!==0?B:k.id-q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var f=[],d=[],v=1,m=null,g=3,x=!1,_=!1,S=!1,w=!1,j=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function M(k){for(var q=n(d);q!==null;){if(q.callback===null)r(d);else if(q.startTime<=k)r(d),q.sortIndex=q.expirationTime,t(f,q);else break;q=n(d)}}function T(k){if(S=!1,M(k),!_)if(n(f)!==null)_=!0,N||(N=!0,H());else{var q=n(d);q!==null&&K(T,q.startTime-k)}}var N=!1,R=-1,D=5,I=-1;function Y(){return w?!0:!(e.unstable_now()-I<D)}function z(){if(w=!1,N){var k=e.unstable_now();I=k;var q=!0;try{e:{_=!1,S&&(S=!1,E(R),R=-1),x=!0;var B=g;try{t:{for(M(k),m=n(f);m!==null&&!(m.expirationTime>k&&Y());){var W=m.callback;if(typeof W=="function"){m.callback=null,g=m.priorityLevel;var se=W(m.expirationTime<=k);if(k=e.unstable_now(),typeof se=="function"){m.callback=se,M(k),q=!0;break t}m===n(f)&&r(f),M(k)}else r(f);m=n(f)}if(m!==null)q=!0;else{var $=n(d);$!==null&&K(T,$.startTime-k),q=!1}}break e}finally{m=null,g=B,x=!1}q=void 0}}finally{q?H():N=!1}}}var H;if(typeof A=="function")H=function(){A(z)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,Q=V.port2;V.port1.onmessage=z,H=function(){Q.postMessage(null)}}else H=function(){j(z,0)};function K(k,q){R=j(function(){k(e.unstable_now())},q)}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(k){k.callback=null},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(k){switch(g){case 1:case 2:case 3:var q=3;break;default:q=g}var B=g;g=q;try{return k()}finally{g=B}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(k,q){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var B=g;g=k;try{return q()}finally{g=B}},e.unstable_scheduleCallback=function(k,q,B){var W=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?W+B:W):B=W,k){case 1:var se=-1;break;case 2:se=250;break;case 5:se=1073741823;break;case 4:se=1e4;break;default:se=5e3}return se=B+se,k={id:v++,callback:q,priorityLevel:k,startTime:B,expirationTime:se,sortIndex:-1},B>W?(k.sortIndex=B,t(d,k),n(f)===null&&k===n(d)&&(S?(E(R),R=-1):S=!0,K(T,B-W))):(k.sortIndex=se,t(f,k),_||x||(_=!0,N||(N=!0,H()))),k},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(k){var q=g;return function(){var B=g;g=q;try{return k.apply(this,arguments)}finally{g=B}}}})(oy)),oy}var jT;function u6(){return jT||(jT=1,iy.exports=l6()),iy.exports}var sy={exports:{}},mn={};/**
|
|
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 ET;function c6(){if(ET)return mn;ET=1;var e=$m();function t(f){var d="https://react.dev/errors/"+f;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)d+="&args[]="+encodeURIComponent(arguments[v])}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 s(f,d,v){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:m==null?null:""+m,children:f,containerInfo:d,implementation:v}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,d){if(f==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return mn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,mn.createPortal=function(f,d){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return s(f,d,null,v)},mn.flushSync=function(f){var d=l.T,v=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=d,r.p=v,r.d.f()}},mn.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))},mn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},mn.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var v=d.as,m=c(v,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,x=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;v==="style"?r.d.S(f,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:m,integrity:g,fetchPriority:x}):v==="script"&&r.d.X(f,{crossOrigin:m,integrity:g,fetchPriority:x,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},mn.preinitModule=function(f,d){if(typeof f=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var v=c(d.as,d.crossOrigin);r.d.M(f,{crossOrigin:v,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)},mn.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var v=d.as,m=c(v,d.crossOrigin);r.d.L(f,v,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},mn.preloadModule=function(f,d){if(typeof f=="string")if(d){var v=c(d.as,d.crossOrigin);r.d.m(f,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:v,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(f)},mn.requestFormReset=function(f){r.d.r(f)},mn.unstable_batchedUpdates=function(f,d){return f(d)},mn.useFormState=function(f,d,v){return l.H.useFormState(f,d,v)},mn.useFormStatus=function(){return l.H.useHostTransitionStatus()},mn.version="19.2.3",mn}var AT;function Ek(){if(AT)return sy.exports;AT=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(),sy.exports=c6(),sy.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 TT;function f6(){if(TT)return Gu;TT=1;var e=u6(),t=$m(),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 s(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 l(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(s(a)!==a)throw Error(r(188))}function d(a){var o=a.alternate;if(!o){if(o=s(a),o===null)throw Error(r(188));return o!==a?null:a}for(var u=a,h=o;;){var y=u.return;if(y===null)break;var b=y.alternate;if(b===null){if(h=y.return,h!==null){u=h;continue}break}if(y.child===b.child){for(b=y.child;b;){if(b===u)return f(y),a;if(b===h)return f(y),o;b=b.sibling}throw Error(r(188))}if(u.return!==h.return)u=y,h=b;else{for(var C=!1,P=y.child;P;){if(P===u){C=!0,u=y,h=b;break}if(P===h){C=!0,h=y,u=b;break}P=P.sibling}if(!C){for(P=b.child;P;){if(P===u){C=!0,u=b,h=y;break}if(P===h){C=!0,h=b,u=y;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 v(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a;for(a=a.child;a!==null;){if(o=v(a),o!==null)return o;a=a.sibling}return null}var m=Object.assign,g=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),A=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),Y=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function H(a){return a===null||typeof a!="object"?null:(a=z&&a[z]||a["@@iterator"],typeof a=="function"?a:null)}var V=Symbol.for("react.client.reference");function Q(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===V?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case S:return"Fragment";case j:return"Profiler";case w:return"StrictMode";case T:return"Suspense";case N:return"SuspenseList";case I:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case _:return"Portal";case A:return a.displayName||"Context";case E: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:Q(a.type)||"Memo";case D:o=a._payload,a=a._init;try{return Q(a(o))}catch{}}return null}var K=Array.isArray,k=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},W=[],se=-1;function $(a){return{current:a}}function F(a){0>se||(a.current=W[se],W[se]=null,se--)}function X(a,o){se++,W[se]=a.current,a.current=o}var ae=$(null),de=$(null),ge=$(null),ce=$(null);function he(a,o){switch(X(ge,o),X(de,a),X(ae,null),o.nodeType){case 9:case 11:a=(a=o.documentElement)&&(a=a.namespaceURI)?HA(a):0;break;default:if(a=o.tagName,o=o.namespaceURI)o=HA(o),a=FA(o,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}F(ae),X(ae,a)}function ie(){F(ae),F(de),F(ge)}function me(a){a.memoizedState!==null&&X(ce,a);var o=ae.current,u=FA(o,a.type);o!==u&&(X(de,a),X(ae,u))}function ve(a){de.current===a&&(F(ae),F(de)),ce.current===a&&(F(ce),Bu._currentValue=B)}var ne,De;function je(a){if(ne===void 0)try{throw Error()}catch(u){var o=u.stack.trim().match(/\n( *(at )?)/);ne=o&&o[1]||"",De=-1<u.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+ne+a+De}var rt=!1;function Xe(a,o){if(!a||rt)return"";rt=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(o){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(re){var te=re}Reflect.construct(a,[],fe)}else{try{fe.call()}catch(re){te=re}a.call(fe.prototype)}}else{try{throw Error()}catch(re){te=re}(fe=a())&&typeof fe.catch=="function"&&fe.catch(function(){})}}catch(re){if(re&&te&&typeof re.stack=="string")return[re.stack,te.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=h.DetermineComponentFrameRoot(),C=b[0],P=b[1];if(C&&P){var U=C.split(`
|
|
44
|
+
`),ee=P.split(`
|
|
45
|
+
`);for(y=h=0;h<U.length&&!U[h].includes("DetermineComponentFrameRoot");)h++;for(;y<ee.length&&!ee[y].includes("DetermineComponentFrameRoot");)y++;if(h===U.length||y===ee.length)for(h=U.length-1,y=ee.length-1;1<=h&&0<=y&&U[h]!==ee[y];)y--;for(;1<=h&&0<=y;h--,y--)if(U[h]!==ee[y]){if(h!==1||y!==1)do if(h--,y--,0>y||U[h]!==ee[y]){var oe=`
|
|
46
|
+
`+U[h].replace(" at new "," at ");return a.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",a.displayName)),oe}while(1<=h&&0<=y);break}}}finally{rt=!1,Error.prepareStackTrace=u}return(u=a?a.displayName||a.name:"")?je(u):""}function ft(a,o){switch(a.tag){case 26:case 27:case 5:return je(a.type);case 16:return je("Lazy");case 13:return a.child!==o&&o!==null?je("Suspense Fallback"):je("Suspense");case 19:return je("SuspenseList");case 0:case 15:return Xe(a.type,!1);case 11:return Xe(a.type.render,!1);case 1:return Xe(a.type,!0);case 31:return je("Activity");default:return""}}function fn(a){try{var o="",u=null;do o+=ft(a,u),u=a,a=a.return;while(a);return o}catch(h){return`
|
|
47
|
+
Error generating stack: `+h.message+`
|
|
48
|
+
`+h.stack}}var St=Object.prototype.hasOwnProperty,Hr=e.unstable_scheduleCallback,Ln=e.unstable_cancelCallback,Nt=e.unstable_shouldYield,er=e.unstable_requestPaint,Qt=e.unstable_now,Yo=e.unstable_getCurrentPriorityLevel,Yi=e.unstable_ImmediatePriority,Cf=e.unstable_UserBlockingPriority,Wi=e.unstable_NormalPriority,Jl=e.unstable_LowPriority,pa=e.unstable_IdlePriority,Nf=e.log,ei=e.unstable_setDisableYieldValue,Ki=null,bn=null;function Or(a){if(typeof Nf=="function"&&ei(a),bn&&typeof bn.setStrictMode=="function")try{bn.setStrictMode(Ki,a)}catch{}}var dn=Math.clz32?Math.clz32:Fr,Gp=Math.log,eu=Math.LN2;function Fr(a){return a>>>=0,a===0?32:31-(Gp(a)/eu|0)|0}var Wo=256,Ko=262144,Xi=4194304;function Gr(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 Ce(a,o,u){var h=a.pendingLanes;if(h===0)return 0;var y=0,b=a.suspendedLanes,C=a.pingedLanes;a=a.warmLanes;var P=h&134217727;return P!==0?(h=P&~b,h!==0?y=Gr(h):(C&=P,C!==0?y=Gr(C):u||(u=P&~a,u!==0&&(y=Gr(u))))):(P=h&~b,P!==0?y=Gr(P):C!==0?y=Gr(C):u||(u=h&~a,u!==0&&(y=Gr(u)))),y===0?0:o!==0&&o!==y&&(o&b)===0&&(b=y&-y,u=o&-o,b>=u||b===32&&(u&4194048)!==0)?o:y}function Et(a,o){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&o)===0}function Zt(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 hn(){var a=Xi;return Xi<<=1,(Xi&62914560)===0&&(Xi=4194304),a}function ti(a){for(var o=[],u=0;31>u;u++)o.push(a);return o}function Mt(a,o){a.pendingLanes|=o,o!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function On(a,o,u,h,y,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,U=a.expirationTimes,ee=a.hiddenUpdates;for(u=C&~u;0<u;){var oe=31-dn(u),fe=1<<oe;P[oe]=0,U[oe]=-1;var te=ee[oe];if(te!==null)for(ee[oe]=null,oe=0;oe<te.length;oe++){var re=te[oe];re!==null&&(re.lane&=-536870913)}u&=~fe}h!==0&&Qi(a,h,0),b!==0&&y===0&&a.tag!==0&&(a.suspendedLanes|=b&~(C&~o))}function Qi(a,o,u){a.pendingLanes|=o,a.suspendedLanes&=~o;var h=31-dn(o);a.entangledLanes|=o,a.entanglements[h]=a.entanglements[h]|1073741824|u&261930}function _n(a,o){var u=a.entangledLanes|=o;for(a=a.entanglements;u;){var h=31-dn(u),y=1<<h;y&o|a[h]&o&&(a[h]|=o),u&=~y}}function jn(a,o){var u=o&-o;return u=(u&42)!==0?1:Xo(u),(u&(a.suspendedLanes|o))!==0?0:u}function Xo(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 _r(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function Vp(){var a=q.p;return a!==0?a:(a=window.event,a===void 0?32:hT(a.type))}function C_(a,o){var u=q.p;try{return q.p=a,o()}finally{q.p=u}}var ni=Math.random().toString(36).slice(2),rn="__reactFiber$"+ni,En="__reactProps$"+ni,Qo="__reactContainer$"+ni,Yp="__reactEvents$"+ni,Yz="__reactListeners$"+ni,Wz="__reactHandles$"+ni,N_="__reactResources$"+ni,tu="__reactMarker$"+ni;function Wp(a){delete a[rn],delete a[En],delete a[Yp],delete a[Yz],delete a[Wz]}function Zo(a){var o=a[rn];if(o)return o;for(var u=a.parentNode;u;){if(o=u[Qo]||u[rn]){if(u=o.alternate,o.child!==null||u!==null&&u.child!==null)for(a=QA(a);a!==null;){if(u=a[rn])return u;a=QA(a)}return o}a=u,u=a.parentNode}return null}function Jo(a){if(a=a[rn]||a[Qo]){var o=a.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return a}return null}function nu(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a.stateNode;throw Error(r(33))}function es(a){var o=a[N_];return o||(o=a[N_]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Jt(a){a[tu]=!0}var M_=new Set,R_={};function Zi(a,o){ts(a,o),ts(a+"Capture",o)}function ts(a,o){for(R_[a]=o,a=0;a<o.length;a++)M_.add(o[a])}var Kz=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),D_={},P_={};function Xz(a){return St.call(P_,a)?!0:St.call(D_,a)?!1:Kz.test(a)?P_[a]=!0:(D_[a]=!0,!1)}function Mf(a,o,u){if(Xz(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 Rf(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 va(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 tr(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function k_(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Qz(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 y=h.get,b=h.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return y.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 Kp(a){if(!a._valueTracker){var o=k_(a)?"checked":"value";a._valueTracker=Qz(a,o,""+a[o])}}function $_(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var u=o.getValue(),h="";return a&&(h=k_(a)?a.checked?"true":"false":a.value),a=h,a!==u?(o.setValue(a),!0):!1}function Df(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 Zz=/[\n"\\]/g;function nr(a){return a.replace(Zz,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Xp(a,o,u,h,y,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=""+tr(o)):a.value!==""+tr(o)&&(a.value=""+tr(o)):C!=="submit"&&C!=="reset"||a.removeAttribute("value"),o!=null?Qp(a,C,tr(o)):u!=null?Qp(a,C,tr(u)):h!=null&&a.removeAttribute("value"),y==null&&b!=null&&(a.defaultChecked=!!b),y!=null&&(a.checked=y&&typeof y!="function"&&typeof y!="symbol"),P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"?a.name=""+tr(P):a.removeAttribute("name")}function L_(a,o,u,h,y,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)){Kp(a);return}u=u!=null?""+tr(u):"",o=o!=null?""+tr(o):u,P||o===a.value||(a.value=o),a.defaultValue=o}h=h??y,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),Kp(a)}function Qp(a,o,u){o==="number"&&Df(a.ownerDocument)===a||a.defaultValue===""+u||(a.defaultValue=""+u)}function ns(a,o,u,h){if(a=a.options,o){o={};for(var y=0;y<u.length;y++)o["$"+u[y]]=!0;for(u=0;u<a.length;u++)y=o.hasOwnProperty("$"+a[u].value),a[u].selected!==y&&(a[u].selected=y),y&&h&&(a[u].defaultSelected=!0)}else{for(u=""+tr(u),o=null,y=0;y<a.length;y++){if(a[y].value===u){a[y].selected=!0,h&&(a[y].defaultSelected=!0);return}o!==null||a[y].disabled||(o=a[y])}o!==null&&(o.selected=!0)}}function I_(a,o,u){if(o!=null&&(o=""+tr(o),o!==a.value&&(a.value=o),u==null)){a.defaultValue!==o&&(a.defaultValue=o);return}a.defaultValue=u!=null?""+tr(u):""}function z_(a,o,u,h){if(o==null){if(h!=null){if(u!=null)throw Error(r(92));if(K(h)){if(1<h.length)throw Error(r(93));h=h[0]}u=h}u==null&&(u=""),o=u}u=tr(o),a.defaultValue=u,h=a.textContent,h===u&&h!==""&&h!==null&&(a.value=h),Kp(a)}function rs(a,o){if(o){var u=a.firstChild;if(u&&u===a.lastChild&&u.nodeType===3){u.nodeValue=o;return}}a.textContent=o}var Jz=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 B_(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||Jz.has(o)?o==="float"?a.cssFloat=u:a[o]=(""+u).trim():a[o]=u+"px"}function q_(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 y in o)h=o[y],o.hasOwnProperty(y)&&u[y]!==h&&B_(a,y,h)}else for(var b in o)o.hasOwnProperty(b)&&B_(a,b,o[b])}function Zp(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 eB=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"]]),tB=/^[\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 Pf(a){return tB.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function ga(){}var Jp=null;function ev(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var as=null,is=null;function U_(a){var o=Jo(a);if(o&&(a=o.stateNode)){var u=a[En]||null;e:switch(a=o.stateNode,o.type){case"input":if(Xp(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="'+nr(""+o)+'"][type="radio"]'),o=0;o<u.length;o++){var h=u[o];if(h!==a&&h.form===a.form){var y=h[En]||null;if(!y)throw Error(r(90));Xp(h,y.value,y.defaultValue,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name)}}for(o=0;o<u.length;o++)h=u[o],h.form===a.form&&$_(h)}break e;case"textarea":I_(a,u.value,u.defaultValue);break e;case"select":o=u.value,o!=null&&ns(a,!!u.multiple,o,!1)}}}var tv=!1;function H_(a,o,u){if(tv)return a(o,u);tv=!0;try{var h=a(o);return h}finally{if(tv=!1,(as!==null||is!==null)&&(wd(),as&&(o=as,a=is,is=as=null,U_(o),a)))for(o=0;o<a.length;o++)U_(a[o])}}function ru(a,o){var u=a.stateNode;if(u===null)return null;var h=u[En]||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 ya=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nv=!1;if(ya)try{var au={};Object.defineProperty(au,"passive",{get:function(){nv=!0}}),window.addEventListener("test",au,au),window.removeEventListener("test",au,au)}catch{nv=!1}var ri=null,rv=null,kf=null;function F_(){if(kf)return kf;var a,o=rv,u=o.length,h,y="value"in ri?ri.value:ri.textContent,b=y.length;for(a=0;a<u&&o[a]===y[a];a++);var C=u-a;for(h=1;h<=C&&o[u-h]===y[b-h];h++);return kf=y.slice(a,1<h?1-h:void 0)}function $f(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 Lf(){return!0}function G_(){return!1}function An(a){function o(u,h,y,b,C){this._reactName=u,this._targetInst=y,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)?Lf:G_,this.isPropagationStopped=G_,this}return m(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Lf)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Lf)},persist:function(){},isPersistent:Lf}),o}var Ji={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},If=An(Ji),iu=m({},Ji,{view:0,detail:0}),nB=An(iu),av,iv,ou,zf=m({},iu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sv,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!==ou&&(ou&&a.type==="mousemove"?(av=a.screenX-ou.screenX,iv=a.screenY-ou.screenY):iv=av=0,ou=a),av)},movementY:function(a){return"movementY"in a?a.movementY:iv}}),V_=An(zf),rB=m({},zf,{dataTransfer:0}),aB=An(rB),iB=m({},iu,{relatedTarget:0}),ov=An(iB),oB=m({},Ji,{animationName:0,elapsedTime:0,pseudoElement:0}),sB=An(oB),lB=m({},Ji,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),uB=An(lB),cB=m({},Ji,{data:0}),Y_=An(cB),fB={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dB={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"},hB={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mB(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=hB[a])?!!o[a]:!1}function sv(){return mB}var pB=m({},iu,{key:function(a){if(a.key){var o=fB[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=$f(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?dB[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sv,charCode:function(a){return a.type==="keypress"?$f(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?$f(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),vB=An(pB),gB=m({},zf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),W_=An(gB),yB=m({},iu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sv}),bB=An(yB),xB=m({},Ji,{propertyName:0,elapsedTime:0,pseudoElement:0}),wB=An(xB),SB=m({},zf,{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}),OB=An(SB),_B=m({},Ji,{newState:0,oldState:0}),jB=An(_B),EB=[9,13,27,32],lv=ya&&"CompositionEvent"in window,su=null;ya&&"documentMode"in document&&(su=document.documentMode);var AB=ya&&"TextEvent"in window&&!su,K_=ya&&(!lv||su&&8<su&&11>=su),X_=" ",Q_=!1;function Z_(a,o){switch(a){case"keyup":return EB.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function J_(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var os=!1;function TB(a,o){switch(a){case"compositionend":return J_(o);case"keypress":return o.which!==32?null:(Q_=!0,X_);case"textInput":return a=o.data,a===X_&&Q_?null:a;default:return null}}function CB(a,o){if(os)return a==="compositionend"||!lv&&Z_(a,o)?(a=F_(),kf=rv=ri=null,os=!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 K_&&o.locale!=="ko"?null:o.data;default:return null}}var NB={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 ej(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!NB[a.type]:o==="textarea"}function tj(a,o,u,h){as?is?is.push(h):is=[h]:as=h,o=Td(o,"onChange"),0<o.length&&(u=new If("onChange","change",null,u,h),a.push({event:u,listeners:o}))}var lu=null,uu=null;function MB(a){LA(a,0)}function Bf(a){var o=nu(a);if($_(o))return a}function nj(a,o){if(a==="change")return o}var rj=!1;if(ya){var uv;if(ya){var cv="oninput"in document;if(!cv){var aj=document.createElement("div");aj.setAttribute("oninput","return;"),cv=typeof aj.oninput=="function"}uv=cv}else uv=!1;rj=uv&&(!document.documentMode||9<document.documentMode)}function ij(){lu&&(lu.detachEvent("onpropertychange",oj),uu=lu=null)}function oj(a){if(a.propertyName==="value"&&Bf(uu)){var o=[];tj(o,uu,a,ev(a)),H_(MB,o)}}function RB(a,o,u){a==="focusin"?(ij(),lu=o,uu=u,lu.attachEvent("onpropertychange",oj)):a==="focusout"&&ij()}function DB(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Bf(uu)}function PB(a,o){if(a==="click")return Bf(o)}function kB(a,o){if(a==="input"||a==="change")return Bf(o)}function $B(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var In=typeof Object.is=="function"?Object.is:$B;function cu(a,o){if(In(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 y=u[h];if(!St.call(o,y)||!In(a[y],o[y]))return!1}return!0}function sj(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function lj(a,o){var u=sj(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=sj(u)}}function uj(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?uj(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function cj(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var o=Df(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=Df(a.document)}return o}function fv(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 LB=ya&&"documentMode"in document&&11>=document.documentMode,ss=null,dv=null,fu=null,hv=!1;function fj(a,o,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;hv||ss==null||ss!==Df(h)||(h=ss,"selectionStart"in h&&fv(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}),fu&&cu(fu,h)||(fu=h,h=Td(dv,"onSelect"),0<h.length&&(o=new If("onSelect","select",null,o,u),a.push({event:o,listeners:h}),o.target=ss)))}function eo(a,o){var u={};return u[a.toLowerCase()]=o.toLowerCase(),u["Webkit"+a]="webkit"+o,u["Moz"+a]="moz"+o,u}var ls={animationend:eo("Animation","AnimationEnd"),animationiteration:eo("Animation","AnimationIteration"),animationstart:eo("Animation","AnimationStart"),transitionrun:eo("Transition","TransitionRun"),transitionstart:eo("Transition","TransitionStart"),transitioncancel:eo("Transition","TransitionCancel"),transitionend:eo("Transition","TransitionEnd")},mv={},dj={};ya&&(dj=document.createElement("div").style,"AnimationEvent"in window||(delete ls.animationend.animation,delete ls.animationiteration.animation,delete ls.animationstart.animation),"TransitionEvent"in window||delete ls.transitionend.transition);function to(a){if(mv[a])return mv[a];if(!ls[a])return a;var o=ls[a],u;for(u in o)if(o.hasOwnProperty(u)&&u in dj)return mv[a]=o[u];return a}var hj=to("animationend"),mj=to("animationiteration"),pj=to("animationstart"),IB=to("transitionrun"),zB=to("transitionstart"),BB=to("transitioncancel"),vj=to("transitionend"),gj=new Map,pv="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(" ");pv.push("scrollEnd");function jr(a,o){gj.set(a,o),Zi(o,[a])}var qf=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)},rr=[],us=0,vv=0;function Uf(){for(var a=us,o=vv=us=0;o<a;){var u=rr[o];rr[o++]=null;var h=rr[o];rr[o++]=null;var y=rr[o];rr[o++]=null;var b=rr[o];if(rr[o++]=null,h!==null&&y!==null){var C=h.pending;C===null?y.next=y:(y.next=C.next,C.next=y),h.pending=y}b!==0&&yj(u,y,b)}}function Hf(a,o,u,h){rr[us++]=a,rr[us++]=o,rr[us++]=u,rr[us++]=h,vv|=h,a.lanes|=h,a=a.alternate,a!==null&&(a.lanes|=h)}function gv(a,o,u,h){return Hf(a,o,u,h),Ff(a)}function no(a,o){return Hf(a,null,null,o),Ff(a)}function yj(a,o,u){a.lanes|=u;var h=a.alternate;h!==null&&(h.lanes|=u);for(var y=!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||(y=!0)),a=b,b=b.return;return a.tag===3?(b=a.stateNode,y&&o!==null&&(y=31-dn(u),a=b.hiddenUpdates,h=a[y],h===null?a[y]=[o]:h.push(o),o.lane=u|536870912),b):null}function Ff(a){if(50<Du)throw Du=0,Eg=null,Error(r(185));for(var o=a.return;o!==null;)a=o,o=a.return;return a.tag===3?a.stateNode:null}var cs={};function qB(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 zn(a,o,u,h){return new qB(a,o,u,h)}function yv(a){return a=a.prototype,!(!a||!a.isReactComponent)}function ba(a,o){var u=a.alternate;return u===null?(u=zn(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 bj(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 Gf(a,o,u,h,y,b){var C=0;if(h=a,typeof a=="function")yv(a)&&(C=1);else if(typeof a=="string")C=Vq(a,u,ae.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case I:return a=zn(31,u,o,y),a.elementType=I,a.lanes=b,a;case S:return ro(u.children,y,b,o);case w:C=8,y|=24;break;case j:return a=zn(12,u,o,y|2),a.elementType=j,a.lanes=b,a;case T:return a=zn(13,u,o,y),a.elementType=T,a.lanes=b,a;case N:return a=zn(19,u,o,y),a.elementType=N,a.lanes=b,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case A:C=10;break e;case E:C=9;break e;case M:C=11;break e;case R:C=14;break e;case D:C=16,h=null;break e}C=29,u=Error(r(130,a===null?"null":typeof a,"")),h=null}return o=zn(C,u,o,y),o.elementType=a,o.type=h,o.lanes=b,o}function ro(a,o,u,h){return a=zn(7,a,h,o),a.lanes=u,a}function bv(a,o,u){return a=zn(6,a,null,o),a.lanes=u,a}function xj(a){var o=zn(18,null,null,0);return o.stateNode=a,o}function xv(a,o,u){return o=zn(4,a.children!==null?a.children:[],a.key,o),o.lanes=u,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}var wj=new WeakMap;function ar(a,o){if(typeof a=="object"&&a!==null){var u=wj.get(a);return u!==void 0?u:(o={value:a,source:o,stack:fn(o)},wj.set(a,o),o)}return{value:a,source:o,stack:fn(o)}}var fs=[],ds=0,Vf=null,du=0,ir=[],or=0,ai=null,Vr=1,Yr="";function xa(a,o){fs[ds++]=du,fs[ds++]=Vf,Vf=a,du=o}function Sj(a,o,u){ir[or++]=Vr,ir[or++]=Yr,ir[or++]=ai,ai=a;var h=Vr;a=Yr;var y=32-dn(h)-1;h&=~(1<<y),u+=1;var b=32-dn(o)+y;if(30<b){var C=y-y%5;b=(h&(1<<C)-1).toString(32),h>>=C,y-=C,Vr=1<<32-dn(o)+y|u<<y|h,Yr=b+a}else Vr=1<<b|u<<y|h,Yr=a}function wv(a){a.return!==null&&(xa(a,1),Sj(a,1,0))}function Sv(a){for(;a===Vf;)Vf=fs[--ds],fs[ds]=null,du=fs[--ds],fs[ds]=null;for(;a===ai;)ai=ir[--or],ir[or]=null,Yr=ir[--or],ir[or]=null,Vr=ir[--or],ir[or]=null}function Oj(a,o){ir[or++]=Vr,ir[or++]=Yr,ir[or++]=ai,Vr=o.id,Yr=o.overflow,ai=a}var an=null,Ot=null,Fe=!1,ii=null,sr=!1,Ov=Error(r(519));function oi(a){var o=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw hu(ar(o,a)),Ov}function _j(a){var o=a.stateNode,u=a.type,h=a.memoizedProps;switch(o[rn]=a,o[En]=h,u){case"dialog":Ie("cancel",o),Ie("close",o);break;case"iframe":case"object":case"embed":Ie("load",o);break;case"video":case"audio":for(u=0;u<ku.length;u++)Ie(ku[u],o);break;case"source":Ie("error",o);break;case"img":case"image":case"link":Ie("error",o),Ie("load",o);break;case"details":Ie("toggle",o);break;case"input":Ie("invalid",o),L_(o,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0);break;case"select":Ie("invalid",o);break;case"textarea":Ie("invalid",o),z_(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||qA(o.textContent,u)?(h.popover!=null&&(Ie("beforetoggle",o),Ie("toggle",o)),h.onScroll!=null&&Ie("scroll",o),h.onScrollEnd!=null&&Ie("scrollend",o),h.onClick!=null&&(o.onclick=ga),o=!0):o=!1,o||oi(a,!0)}function jj(a){for(an=a.return;an;)switch(an.tag){case 5:case 31:case 13:sr=!1;return;case 27:case 3:sr=!0;return;default:an=an.return}}function hs(a){if(a!==an)return!1;if(!Fe)return jj(a),Fe=!0,!1;var o=a.tag,u;if((u=o!==3&&o!==27)&&((u=o===5)&&(u=a.type,u=!(u!=="form"&&u!=="button")||qg(a.type,a.memoizedProps)),u=!u),u&&Ot&&oi(a),jj(a),o===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));Ot=XA(a)}else if(o===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));Ot=XA(a)}else o===27?(o=Ot,xi(a.type)?(a=Vg,Vg=null,Ot=a):Ot=o):Ot=an?ur(a.stateNode.nextSibling):null;return!0}function ao(){Ot=an=null,Fe=!1}function _v(){var a=ii;return a!==null&&(Mn===null?Mn=a:Mn.push.apply(Mn,a),ii=null),a}function hu(a){ii===null?ii=[a]:ii.push(a)}var jv=$(null),io=null,wa=null;function si(a,o,u){X(jv,o._currentValue),o._currentValue=u}function Sa(a){a._currentValue=jv.current,F(jv)}function Ev(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 Av(a,o,u,h){var y=a.child;for(y!==null&&(y.return=a);y!==null;){var b=y.dependencies;if(b!==null){var C=y.child;b=b.firstContext;e:for(;b!==null;){var P=b;b=y;for(var U=0;U<o.length;U++)if(P.context===o[U]){b.lanes|=u,P=b.alternate,P!==null&&(P.lanes|=u),Ev(b.return,u,a),h||(C=null);break e}b=P.next}}else if(y.tag===18){if(C=y.return,C===null)throw Error(r(341));C.lanes|=u,b=C.alternate,b!==null&&(b.lanes|=u),Ev(C,u,a),C=null}else C=y.child;if(C!==null)C.return=y;else for(C=y;C!==null;){if(C===a){C=null;break}if(y=C.sibling,y!==null){y.return=C.return,C=y;break}C=C.return}y=C}}function ms(a,o,u,h){a=null;for(var y=o,b=!1;y!==null;){if(!b){if((y.flags&524288)!==0)b=!0;else if((y.flags&262144)!==0)break}if(y.tag===10){var C=y.alternate;if(C===null)throw Error(r(387));if(C=C.memoizedProps,C!==null){var P=y.type;In(y.pendingProps.value,C.value)||(a!==null?a.push(P):a=[P])}}else if(y===ce.current){if(C=y.alternate,C===null)throw Error(r(387));C.memoizedState.memoizedState!==y.memoizedState.memoizedState&&(a!==null?a.push(Bu):a=[Bu])}y=y.return}a!==null&&Av(o,a,u,h),o.flags|=262144}function Yf(a){for(a=a.firstContext;a!==null;){if(!In(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function oo(a){io=a,wa=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function on(a){return Ej(io,a)}function Wf(a,o){return io===null&&oo(a),Ej(a,o)}function Ej(a,o){var u=o._currentValue;if(o={context:o,memoizedValue:u,next:null},wa===null){if(a===null)throw Error(r(308));wa=o,a.dependencies={lanes:0,firstContext:o},a.flags|=524288}else wa=wa.next=o;return u}var UB=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()})}},HB=e.unstable_scheduleCallback,FB=e.unstable_NormalPriority,It={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Tv(){return{controller:new UB,data:new Map,refCount:0}}function mu(a){a.refCount--,a.refCount===0&&HB(FB,function(){a.controller.abort()})}var pu=null,Cv=0,ps=0,vs=null;function GB(a,o){if(pu===null){var u=pu=[];Cv=0,ps=Rg(),vs={status:"pending",value:void 0,then:function(h){u.push(h)}}}return Cv++,o.then(Aj,Aj),o}function Aj(){if(--Cv===0&&pu!==null){vs!==null&&(vs.status="fulfilled");var a=pu;pu=null,ps=0,vs=null;for(var o=0;o<a.length;o++)(0,a[o])()}}function VB(a,o){var u=[],h={status:"pending",value:null,reason:null,then:function(y){u.push(y)}};return a.then(function(){h.status="fulfilled",h.value=o;for(var y=0;y<u.length;y++)(0,u[y])(o)},function(y){for(h.status="rejected",h.reason=y,y=0;y<u.length;y++)(0,u[y])(void 0)}),h}var Tj=k.S;k.S=function(a,o){fA=Qt(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&GB(a,o),Tj!==null&&Tj(a,o)};var so=$(null);function Nv(){var a=so.current;return a!==null?a:yt.pooledCache}function Kf(a,o){o===null?X(so,so.current):X(so,o.pool)}function Cj(){var a=Nv();return a===null?null:{parent:It._currentValue,pool:a}}var gs=Error(r(460)),Mv=Error(r(474)),Xf=Error(r(542)),Qf={then:function(){}};function Nj(a){return a=a.status,a==="fulfilled"||a==="rejected"}function Mj(a,o,u){switch(u=a[u],u===void 0?a.push(o):u!==o&&(o.then(ga,ga),o=u),o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,Dj(a),a;default:if(typeof o.status=="string")o.then(ga,ga);else{if(a=yt,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=o,a.status="pending",a.then(function(h){if(o.status==="pending"){var y=o;y.status="fulfilled",y.value=h}},function(h){if(o.status==="pending"){var y=o;y.status="rejected",y.reason=h}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,Dj(a),a}throw uo=o,gs}}function lo(a){try{var o=a._init;return o(a._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(uo=u,gs):u}}var uo=null;function Rj(){if(uo===null)throw Error(r(459));var a=uo;return uo=null,a}function Dj(a){if(a===gs||a===Xf)throw Error(r(483))}var ys=null,vu=0;function Zf(a){var o=vu;return vu+=1,ys===null&&(ys=[]),Mj(ys,a,o)}function gu(a,o){o=o.props.ref,a.ref=o!==void 0?o:null}function Jf(a,o){throw o.$$typeof===g?Error(r(525)):(a=Object.prototype.toString.call(o),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a)))}function Pj(a){function o(Z,G){if(a){var J=Z.deletions;J===null?(Z.deletions=[G],Z.flags|=16):J.push(G)}}function u(Z,G){if(!a)return null;for(;G!==null;)o(Z,G),G=G.sibling;return null}function h(Z){for(var G=new Map;Z!==null;)Z.key!==null?G.set(Z.key,Z):G.set(Z.index,Z),Z=Z.sibling;return G}function y(Z,G){return Z=ba(Z,G),Z.index=0,Z.sibling=null,Z}function b(Z,G,J){return Z.index=J,a?(J=Z.alternate,J!==null?(J=J.index,J<G?(Z.flags|=67108866,G):J):(Z.flags|=67108866,G)):(Z.flags|=1048576,G)}function C(Z){return a&&Z.alternate===null&&(Z.flags|=67108866),Z}function P(Z,G,J,ue){return G===null||G.tag!==6?(G=bv(J,Z.mode,ue),G.return=Z,G):(G=y(G,J),G.return=Z,G)}function U(Z,G,J,ue){var Ee=J.type;return Ee===S?oe(Z,G,J.props.children,ue,J.key):G!==null&&(G.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===D&&lo(Ee)===G.type)?(G=y(G,J.props),gu(G,J),G.return=Z,G):(G=Gf(J.type,J.key,J.props,null,Z.mode,ue),gu(G,J),G.return=Z,G)}function ee(Z,G,J,ue){return G===null||G.tag!==4||G.stateNode.containerInfo!==J.containerInfo||G.stateNode.implementation!==J.implementation?(G=xv(J,Z.mode,ue),G.return=Z,G):(G=y(G,J.children||[]),G.return=Z,G)}function oe(Z,G,J,ue,Ee){return G===null||G.tag!==7?(G=ro(J,Z.mode,ue,Ee),G.return=Z,G):(G=y(G,J),G.return=Z,G)}function fe(Z,G,J){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return G=bv(""+G,Z.mode,J),G.return=Z,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case x:return J=Gf(G.type,G.key,G.props,null,Z.mode,J),gu(J,G),J.return=Z,J;case _:return G=xv(G,Z.mode,J),G.return=Z,G;case D:return G=lo(G),fe(Z,G,J)}if(K(G)||H(G))return G=ro(G,Z.mode,J,null),G.return=Z,G;if(typeof G.then=="function")return fe(Z,Zf(G),J);if(G.$$typeof===A)return fe(Z,Wf(Z,G),J);Jf(Z,G)}return null}function te(Z,G,J,ue){var Ee=G!==null?G.key:null;if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return Ee!==null?null:P(Z,G,""+J,ue);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case x:return J.key===Ee?U(Z,G,J,ue):null;case _:return J.key===Ee?ee(Z,G,J,ue):null;case D:return J=lo(J),te(Z,G,J,ue)}if(K(J)||H(J))return Ee!==null?null:oe(Z,G,J,ue,null);if(typeof J.then=="function")return te(Z,G,Zf(J),ue);if(J.$$typeof===A)return te(Z,G,Wf(Z,J),ue);Jf(Z,J)}return null}function re(Z,G,J,ue,Ee){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return Z=Z.get(J)||null,P(G,Z,""+ue,Ee);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case x:return Z=Z.get(ue.key===null?J:ue.key)||null,U(G,Z,ue,Ee);case _:return Z=Z.get(ue.key===null?J:ue.key)||null,ee(G,Z,ue,Ee);case D:return ue=lo(ue),re(Z,G,J,ue,Ee)}if(K(ue)||H(ue))return Z=Z.get(J)||null,oe(G,Z,ue,Ee,null);if(typeof ue.then=="function")return re(Z,G,J,Zf(ue),Ee);if(ue.$$typeof===A)return re(Z,G,J,Wf(G,ue),Ee);Jf(G,ue)}return null}function we(Z,G,J,ue){for(var Ee=null,Qe=null,_e=G,Pe=G=0,He=null;_e!==null&&Pe<J.length;Pe++){_e.index>Pe?(He=_e,_e=null):He=_e.sibling;var Ze=te(Z,_e,J[Pe],ue);if(Ze===null){_e===null&&(_e=He);break}a&&_e&&Ze.alternate===null&&o(Z,_e),G=b(Ze,G,Pe),Qe===null?Ee=Ze:Qe.sibling=Ze,Qe=Ze,_e=He}if(Pe===J.length)return u(Z,_e),Fe&&xa(Z,Pe),Ee;if(_e===null){for(;Pe<J.length;Pe++)_e=fe(Z,J[Pe],ue),_e!==null&&(G=b(_e,G,Pe),Qe===null?Ee=_e:Qe.sibling=_e,Qe=_e);return Fe&&xa(Z,Pe),Ee}for(_e=h(_e);Pe<J.length;Pe++)He=re(_e,Z,Pe,J[Pe],ue),He!==null&&(a&&He.alternate!==null&&_e.delete(He.key===null?Pe:He.key),G=b(He,G,Pe),Qe===null?Ee=He:Qe.sibling=He,Qe=He);return a&&_e.forEach(function(ji){return o(Z,ji)}),Fe&&xa(Z,Pe),Ee}function Ae(Z,G,J,ue){if(J==null)throw Error(r(151));for(var Ee=null,Qe=null,_e=G,Pe=G=0,He=null,Ze=J.next();_e!==null&&!Ze.done;Pe++,Ze=J.next()){_e.index>Pe?(He=_e,_e=null):He=_e.sibling;var ji=te(Z,_e,Ze.value,ue);if(ji===null){_e===null&&(_e=He);break}a&&_e&&ji.alternate===null&&o(Z,_e),G=b(ji,G,Pe),Qe===null?Ee=ji:Qe.sibling=ji,Qe=ji,_e=He}if(Ze.done)return u(Z,_e),Fe&&xa(Z,Pe),Ee;if(_e===null){for(;!Ze.done;Pe++,Ze=J.next())Ze=fe(Z,Ze.value,ue),Ze!==null&&(G=b(Ze,G,Pe),Qe===null?Ee=Ze:Qe.sibling=Ze,Qe=Ze);return Fe&&xa(Z,Pe),Ee}for(_e=h(_e);!Ze.done;Pe++,Ze=J.next())Ze=re(_e,Z,Pe,Ze.value,ue),Ze!==null&&(a&&Ze.alternate!==null&&_e.delete(Ze.key===null?Pe:Ze.key),G=b(Ze,G,Pe),Qe===null?Ee=Ze:Qe.sibling=Ze,Qe=Ze);return a&&_e.forEach(function(r6){return o(Z,r6)}),Fe&&xa(Z,Pe),Ee}function mt(Z,G,J,ue){if(typeof J=="object"&&J!==null&&J.type===S&&J.key===null&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case x:e:{for(var Ee=J.key;G!==null;){if(G.key===Ee){if(Ee=J.type,Ee===S){if(G.tag===7){u(Z,G.sibling),ue=y(G,J.props.children),ue.return=Z,Z=ue;break e}}else if(G.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===D&&lo(Ee)===G.type){u(Z,G.sibling),ue=y(G,J.props),gu(ue,J),ue.return=Z,Z=ue;break e}u(Z,G);break}else o(Z,G);G=G.sibling}J.type===S?(ue=ro(J.props.children,Z.mode,ue,J.key),ue.return=Z,Z=ue):(ue=Gf(J.type,J.key,J.props,null,Z.mode,ue),gu(ue,J),ue.return=Z,Z=ue)}return C(Z);case _:e:{for(Ee=J.key;G!==null;){if(G.key===Ee)if(G.tag===4&&G.stateNode.containerInfo===J.containerInfo&&G.stateNode.implementation===J.implementation){u(Z,G.sibling),ue=y(G,J.children||[]),ue.return=Z,Z=ue;break e}else{u(Z,G);break}else o(Z,G);G=G.sibling}ue=xv(J,Z.mode,ue),ue.return=Z,Z=ue}return C(Z);case D:return J=lo(J),mt(Z,G,J,ue)}if(K(J))return we(Z,G,J,ue);if(H(J)){if(Ee=H(J),typeof Ee!="function")throw Error(r(150));return J=Ee.call(J),Ae(Z,G,J,ue)}if(typeof J.then=="function")return mt(Z,G,Zf(J),ue);if(J.$$typeof===A)return mt(Z,G,Wf(Z,J),ue);Jf(Z,J)}return typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint"?(J=""+J,G!==null&&G.tag===6?(u(Z,G.sibling),ue=y(G,J),ue.return=Z,Z=ue):(u(Z,G),ue=bv(J,Z.mode,ue),ue.return=Z,Z=ue),C(Z)):u(Z,G)}return function(Z,G,J,ue){try{vu=0;var Ee=mt(Z,G,J,ue);return ys=null,Ee}catch(_e){if(_e===gs||_e===Xf)throw _e;var Qe=zn(29,_e,null,Z.mode);return Qe.lanes=ue,Qe.return=Z,Qe}finally{}}}var co=Pj(!0),kj=Pj(!1),li=!1;function Rv(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Dv(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 ui(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function ci(a,o,u){var h=a.updateQueue;if(h===null)return null;if(h=h.shared,(at&2)!==0){var y=h.pending;return y===null?o.next=o:(o.next=y.next,y.next=o),h.pending=o,o=Ff(a),yj(a,null,u),o}return Hf(a,h,o,u),Ff(a)}function yu(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,_n(a,u)}}function Pv(a,o){var u=a.updateQueue,h=a.alternate;if(h!==null&&(h=h.updateQueue,u===h)){var y=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?y=b=C:b=b.next=C,u=u.next}while(u!==null);b===null?y=b=o:b=b.next=o}else y=b=o;u={baseState:h.baseState,firstBaseUpdate:y,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 kv=!1;function bu(){if(kv){var a=vs;if(a!==null)throw a}}function xu(a,o,u,h){kv=!1;var y=a.updateQueue;li=!1;var b=y.firstBaseUpdate,C=y.lastBaseUpdate,P=y.shared.pending;if(P!==null){y.shared.pending=null;var U=P,ee=U.next;U.next=null,C===null?b=ee:C.next=ee,C=U;var oe=a.alternate;oe!==null&&(oe=oe.updateQueue,P=oe.lastBaseUpdate,P!==C&&(P===null?oe.firstBaseUpdate=ee:P.next=ee,oe.lastBaseUpdate=U))}if(b!==null){var fe=y.baseState;C=0,oe=ee=U=null,P=b;do{var te=P.lane&-536870913,re=te!==P.lane;if(re?(Ue&te)===te:(h&te)===te){te!==0&&te===ps&&(kv=!0),oe!==null&&(oe=oe.next={lane:0,tag:P.tag,payload:P.payload,callback:null,next:null});e:{var we=a,Ae=P;te=o;var mt=u;switch(Ae.tag){case 1:if(we=Ae.payload,typeof we=="function"){fe=we.call(mt,fe,te);break e}fe=we;break e;case 3:we.flags=we.flags&-65537|128;case 0:if(we=Ae.payload,te=typeof we=="function"?we.call(mt,fe,te):we,te==null)break e;fe=m({},fe,te);break e;case 2:li=!0}}te=P.callback,te!==null&&(a.flags|=64,re&&(a.flags|=8192),re=y.callbacks,re===null?y.callbacks=[te]:re.push(te))}else re={lane:te,tag:P.tag,payload:P.payload,callback:P.callback,next:null},oe===null?(ee=oe=re,U=fe):oe=oe.next=re,C|=te;if(P=P.next,P===null){if(P=y.shared.pending,P===null)break;re=P,P=re.next,re.next=null,y.lastBaseUpdate=re,y.shared.pending=null}}while(!0);oe===null&&(U=fe),y.baseState=U,y.firstBaseUpdate=ee,y.lastBaseUpdate=oe,b===null&&(y.shared.lanes=0),pi|=C,a.lanes=C,a.memoizedState=fe}}function $j(a,o){if(typeof a!="function")throw Error(r(191,a));a.call(o)}function Lj(a,o){var u=a.callbacks;if(u!==null)for(a.callbacks=null,a=0;a<u.length;a++)$j(u[a],o)}var bs=$(null),ed=$(0);function Ij(a,o){a=Ma,X(ed,a),X(bs,o),Ma=a|o.baseLanes}function $v(){X(ed,Ma),X(bs,bs.current)}function Lv(){Ma=ed.current,F(bs),F(ed)}var Bn=$(null),lr=null;function fi(a){var o=a.alternate;X(kt,kt.current&1),X(Bn,a),lr===null&&(o===null||bs.current!==null||o.memoizedState!==null)&&(lr=a)}function Iv(a){X(kt,kt.current),X(Bn,a),lr===null&&(lr=a)}function zj(a){a.tag===22?(X(kt,kt.current),X(Bn,a),lr===null&&(lr=a)):di()}function di(){X(kt,kt.current),X(Bn,Bn.current)}function qn(a){F(Bn),lr===a&&(lr=null),F(kt)}var kt=$(0);function td(a){for(var o=a;o!==null;){if(o.tag===13){var u=o.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||Fg(u)||Gg(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 Oa=0,Me=null,dt=null,zt=null,nd=!1,xs=!1,fo=!1,rd=0,wu=0,ws=null,YB=0;function Rt(){throw Error(r(321))}function zv(a,o){if(o===null)return!1;for(var u=0;u<o.length&&u<a.length;u++)if(!In(a[u],o[u]))return!1;return!0}function Bv(a,o,u,h,y,b){return Oa=b,Me=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,k.H=a===null||a.memoizedState===null?SE:tg,fo=!1,b=u(h,y),fo=!1,xs&&(b=qj(o,u,h,y)),Bj(a),b}function Bj(a){k.H=_u;var o=dt!==null&&dt.next!==null;if(Oa=0,zt=dt=Me=null,nd=!1,wu=0,ws=null,o)throw Error(r(300));a===null||Bt||(a=a.dependencies,a!==null&&Yf(a)&&(Bt=!0))}function qj(a,o,u,h){Me=a;var y=0;do{if(xs&&(ws=null),wu=0,xs=!1,25<=y)throw Error(r(301));if(y+=1,zt=dt=null,a.updateQueue!=null){var b=a.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}k.H=OE,b=o(u,h)}while(xs);return b}function WB(){var a=k.H,o=a.useState()[0];return o=typeof o.then=="function"?Su(o):o,a=a.useState()[0],(dt!==null?dt.memoizedState:null)!==a&&(Me.flags|=1024),o}function qv(){var a=rd!==0;return rd=0,a}function Uv(a,o,u){o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~u}function Hv(a){if(nd){for(a=a.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}nd=!1}Oa=0,zt=dt=Me=null,xs=!1,wu=rd=0,ws=null}function xn(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zt===null?Me.memoizedState=zt=a:zt=zt.next=a,zt}function $t(){if(dt===null){var a=Me.alternate;a=a!==null?a.memoizedState:null}else a=dt.next;var o=zt===null?Me.memoizedState:zt.next;if(o!==null)zt=o,dt=a;else{if(a===null)throw Me.alternate===null?Error(r(467)):Error(r(310));dt=a,a={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},zt===null?Me.memoizedState=zt=a:zt=zt.next=a}return zt}function ad(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Su(a){var o=wu;return wu+=1,ws===null&&(ws=[]),a=Mj(ws,a,o),o=Me,(zt===null?o.memoizedState:zt.next)===null&&(o=o.alternate,k.H=o===null||o.memoizedState===null?SE:tg),a}function id(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Su(a);if(a.$$typeof===A)return on(a)}throw Error(r(438,String(a)))}function Fv(a){var o=null,u=Me.updateQueue;if(u!==null&&(o=u.memoCache),o==null){var h=Me.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(o={data:h.data.map(function(y){return y.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),u===null&&(u=ad(),Me.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]=Y;return o.index++,u}function _a(a,o){return typeof o=="function"?o(a):o}function od(a){var o=$t();return Gv(o,dt,a)}function Gv(a,o,u){var h=a.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=u;var y=a.baseQueue,b=h.pending;if(b!==null){if(y!==null){var C=y.next;y.next=b.next,b.next=C}o.baseQueue=y=b,h.pending=null}if(b=a.baseState,y===null)a.memoizedState=b;else{o=y.next;var P=C=null,U=null,ee=o,oe=!1;do{var fe=ee.lane&-536870913;if(fe!==ee.lane?(Ue&fe)===fe:(Oa&fe)===fe){var te=ee.revertLane;if(te===0)U!==null&&(U=U.next={lane:0,revertLane:0,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),fe===ps&&(oe=!0);else if((Oa&te)===te){ee=ee.next,te===ps&&(oe=!0);continue}else fe={lane:0,revertLane:ee.revertLane,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},U===null?(P=U=fe,C=b):U=U.next=fe,Me.lanes|=te,pi|=te;fe=ee.action,fo&&u(b,fe),b=ee.hasEagerState?ee.eagerState:u(b,fe)}else te={lane:fe,revertLane:ee.revertLane,gesture:ee.gesture,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},U===null?(P=U=te,C=b):U=U.next=te,Me.lanes|=fe,pi|=fe;ee=ee.next}while(ee!==null&&ee!==o);if(U===null?C=b:U.next=P,!In(b,a.memoizedState)&&(Bt=!0,oe&&(u=vs,u!==null)))throw u;a.memoizedState=b,a.baseState=C,a.baseQueue=U,h.lastRenderedState=b}return y===null&&(h.lanes=0),[a.memoizedState,h.dispatch]}function Vv(a){var o=$t(),u=o.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=a;var h=u.dispatch,y=u.pending,b=o.memoizedState;if(y!==null){u.pending=null;var C=y=y.next;do b=a(b,C.action),C=C.next;while(C!==y);In(b,o.memoizedState)||(Bt=!0),o.memoizedState=b,o.baseQueue===null&&(o.baseState=b),u.lastRenderedState=b}return[b,h]}function Uj(a,o,u){var h=Me,y=$t(),b=Fe;if(b){if(u===void 0)throw Error(r(407));u=u()}else u=o();var C=!In((dt||y).memoizedState,u);if(C&&(y.memoizedState=u,Bt=!0),y=y.queue,Kv(Gj.bind(null,h,y,a),[a]),y.getSnapshot!==o||C||zt!==null&&zt.memoizedState.tag&1){if(h.flags|=2048,Ss(9,{destroy:void 0},Fj.bind(null,h,y,u,o),null),yt===null)throw Error(r(349));b||(Oa&127)!==0||Hj(h,o,u)}return u}function Hj(a,o,u){a.flags|=16384,a={getSnapshot:o,value:u},o=Me.updateQueue,o===null?(o=ad(),Me.updateQueue=o,o.stores=[a]):(u=o.stores,u===null?o.stores=[a]:u.push(a))}function Fj(a,o,u,h){o.value=u,o.getSnapshot=h,Vj(o)&&Yj(a)}function Gj(a,o,u){return u(function(){Vj(o)&&Yj(a)})}function Vj(a){var o=a.getSnapshot;a=a.value;try{var u=o();return!In(a,u)}catch{return!0}}function Yj(a){var o=no(a,2);o!==null&&Rn(o,a,2)}function Yv(a){var o=xn();if(typeof a=="function"){var u=a;if(a=u(),fo){Or(!0);try{u()}finally{Or(!1)}}}return o.memoizedState=o.baseState=a,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:a},o}function Wj(a,o,u,h){return a.baseState=u,Gv(a,dt,typeof h=="function"?h:_a)}function KB(a,o,u,h,y){if(ud(a))throw Error(r(485));if(a=o.action,a!==null){var b={payload:y,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){b.listeners.push(C)}};k.T!==null?u(!0):b.isTransition=!1,h(b),u=o.pending,u===null?(b.next=o.pending=b,Kj(o,b)):(b.next=u.next,o.pending=u.next=b)}}function Kj(a,o){var u=o.action,h=o.payload,y=a.state;if(o.isTransition){var b=k.T,C={};k.T=C;try{var P=u(y,h),U=k.S;U!==null&&U(C,P),Xj(a,o,P)}catch(ee){Wv(a,o,ee)}finally{b!==null&&C.types!==null&&(b.types=C.types),k.T=b}}else try{b=u(y,h),Xj(a,o,b)}catch(ee){Wv(a,o,ee)}}function Xj(a,o,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(h){Qj(a,o,h)},function(h){return Wv(a,o,h)}):Qj(a,o,u)}function Qj(a,o,u){o.status="fulfilled",o.value=u,Zj(o),a.state=u,o=a.pending,o!==null&&(u=o.next,u===o?a.pending=null:(u=u.next,o.next=u,Kj(a,u)))}function Wv(a,o,u){var h=a.pending;if(a.pending=null,h!==null){h=h.next;do o.status="rejected",o.reason=u,Zj(o),o=o.next;while(o!==h)}a.action=null}function Zj(a){a=a.listeners;for(var o=0;o<a.length;o++)(0,a[o])()}function Jj(a,o){return o}function eE(a,o){if(Fe){var u=yt.formState;if(u!==null){e:{var h=Me;if(Fe){if(Ot){t:{for(var y=Ot,b=sr;y.nodeType!==8;){if(!b){y=null;break t}if(y=ur(y.nextSibling),y===null){y=null;break t}}b=y.data,y=b==="F!"||b==="F"?y:null}if(y){Ot=ur(y.nextSibling),h=y.data==="F!";break e}}oi(h)}h=!1}h&&(o=u[0])}}return u=xn(),u.memoizedState=u.baseState=o,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jj,lastRenderedState:o},u.queue=h,u=bE.bind(null,Me,h),h.dispatch=u,h=Yv(!1),b=eg.bind(null,Me,!1,h.queue),h=xn(),y={state:o,dispatch:null,action:a,pending:null},h.queue=y,u=KB.bind(null,Me,y,b,u),y.dispatch=u,h.memoizedState=a,[o,u,!1]}function tE(a){var o=$t();return nE(o,dt,a)}function nE(a,o,u){if(o=Gv(a,o,Jj)[0],a=od(_a)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var h=Su(o)}catch(C){throw C===gs?Xf:C}else h=o;o=$t();var y=o.queue,b=y.dispatch;return u!==o.memoizedState&&(Me.flags|=2048,Ss(9,{destroy:void 0},XB.bind(null,y,u),null)),[h,b,a]}function XB(a,o){a.action=o}function rE(a){var o=$t(),u=dt;if(u!==null)return nE(o,u,a);$t(),o=o.memoizedState,u=$t();var h=u.queue.dispatch;return u.memoizedState=a,[o,h,!1]}function Ss(a,o,u,h){return a={tag:a,create:u,deps:h,inst:o,next:null},o=Me.updateQueue,o===null&&(o=ad(),Me.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 aE(){return $t().memoizedState}function sd(a,o,u,h){var y=xn();Me.flags|=a,y.memoizedState=Ss(1|o,{destroy:void 0},u,h===void 0?null:h)}function ld(a,o,u,h){var y=$t();h=h===void 0?null:h;var b=y.memoizedState.inst;dt!==null&&h!==null&&zv(h,dt.memoizedState.deps)?y.memoizedState=Ss(o,b,u,h):(Me.flags|=a,y.memoizedState=Ss(1|o,b,u,h))}function iE(a,o){sd(8390656,8,a,o)}function Kv(a,o){ld(2048,8,a,o)}function QB(a){Me.flags|=4;var o=Me.updateQueue;if(o===null)o=ad(),Me.updateQueue=o,o.events=[a];else{var u=o.events;u===null?o.events=[a]:u.push(a)}}function oE(a){var o=$t().memoizedState;return QB({ref:o,nextImpl:a}),function(){if((at&2)!==0)throw Error(r(440));return o.impl.apply(void 0,arguments)}}function sE(a,o){return ld(4,2,a,o)}function lE(a,o){return ld(4,4,a,o)}function uE(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 cE(a,o,u){u=u!=null?u.concat([a]):null,ld(4,4,uE.bind(null,o,a),u)}function Xv(){}function fE(a,o){var u=$t();o=o===void 0?null:o;var h=u.memoizedState;return o!==null&&zv(o,h[1])?h[0]:(u.memoizedState=[a,o],a)}function dE(a,o){var u=$t();o=o===void 0?null:o;var h=u.memoizedState;if(o!==null&&zv(o,h[1]))return h[0];if(h=a(),fo){Or(!0);try{a()}finally{Or(!1)}}return u.memoizedState=[h,o],h}function Qv(a,o,u){return u===void 0||(Oa&1073741824)!==0&&(Ue&261930)===0?a.memoizedState=o:(a.memoizedState=u,a=hA(),Me.lanes|=a,pi|=a,u)}function hE(a,o,u,h){return In(u,o)?u:bs.current!==null?(a=Qv(a,u,h),In(a,o)||(Bt=!0),a):(Oa&42)===0||(Oa&1073741824)!==0&&(Ue&261930)===0?(Bt=!0,a.memoizedState=u):(a=hA(),Me.lanes|=a,pi|=a,o)}function mE(a,o,u,h,y){var b=q.p;q.p=b!==0&&8>b?b:8;var C=k.T,P={};k.T=P,eg(a,!1,o,u);try{var U=y(),ee=k.S;if(ee!==null&&ee(P,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var oe=VB(U,h);Ou(a,o,oe,Fn(a))}else Ou(a,o,h,Fn(a))}catch(fe){Ou(a,o,{then:function(){},status:"rejected",reason:fe},Fn())}finally{q.p=b,C!==null&&P.types!==null&&(C.types=P.types),k.T=C}}function ZB(){}function Zv(a,o,u,h){if(a.tag!==5)throw Error(r(476));var y=pE(a).queue;mE(a,y,o,B,u===null?ZB:function(){return vE(a),u(h)})}function pE(a){var o=a.memoizedState;if(o!==null)return o;o={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:B},next:null};var u={};return o.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:u},next:null},a.memoizedState=o,a=a.alternate,a!==null&&(a.memoizedState=o),o}function vE(a){var o=pE(a);o.next===null&&(o=a.alternate.memoizedState),Ou(a,o.next.queue,{},Fn())}function Jv(){return on(Bu)}function gE(){return $t().memoizedState}function yE(){return $t().memoizedState}function JB(a){for(var o=a.return;o!==null;){switch(o.tag){case 24:case 3:var u=Fn();a=ui(u);var h=ci(o,a,u);h!==null&&(Rn(h,o,u),yu(h,o,u)),o={cache:Tv()},a.payload=o;return}o=o.return}}function eq(a,o,u){var h=Fn();u={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},ud(a)?xE(o,u):(u=gv(a,o,u,h),u!==null&&(Rn(u,a,h),wE(u,o,h)))}function bE(a,o,u){var h=Fn();Ou(a,o,u,h)}function Ou(a,o,u,h){var y={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(ud(a))xE(o,y);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(y.hasEagerState=!0,y.eagerState=P,In(P,C))return Hf(a,o,y,0),yt===null&&Uf(),!1}catch{}finally{}if(u=gv(a,o,y,h),u!==null)return Rn(u,a,h),wE(u,o,h),!0}return!1}function eg(a,o,u,h){if(h={lane:2,revertLane:Rg(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},ud(a)){if(o)throw Error(r(479))}else o=gv(a,u,h,2),o!==null&&Rn(o,a,2)}function ud(a){var o=a.alternate;return a===Me||o!==null&&o===Me}function xE(a,o){xs=nd=!0;var u=a.pending;u===null?o.next=o:(o.next=u.next,u.next=o),a.pending=o}function wE(a,o,u){if((u&4194048)!==0){var h=o.lanes;h&=a.pendingLanes,u|=h,o.lanes=u,_n(a,u)}}var _u={readContext:on,use:id,useCallback:Rt,useContext:Rt,useEffect:Rt,useImperativeHandle:Rt,useLayoutEffect:Rt,useInsertionEffect:Rt,useMemo:Rt,useReducer:Rt,useRef:Rt,useState:Rt,useDebugValue:Rt,useDeferredValue:Rt,useTransition:Rt,useSyncExternalStore:Rt,useId:Rt,useHostTransitionStatus:Rt,useFormState:Rt,useActionState:Rt,useOptimistic:Rt,useMemoCache:Rt,useCacheRefresh:Rt};_u.useEffectEvent=Rt;var SE={readContext:on,use:id,useCallback:function(a,o){return xn().memoizedState=[a,o===void 0?null:o],a},useContext:on,useEffect:iE,useImperativeHandle:function(a,o,u){u=u!=null?u.concat([a]):null,sd(4194308,4,uE.bind(null,o,a),u)},useLayoutEffect:function(a,o){return sd(4194308,4,a,o)},useInsertionEffect:function(a,o){sd(4,2,a,o)},useMemo:function(a,o){var u=xn();o=o===void 0?null:o;var h=a();if(fo){Or(!0);try{a()}finally{Or(!1)}}return u.memoizedState=[h,o],h},useReducer:function(a,o,u){var h=xn();if(u!==void 0){var y=u(o);if(fo){Or(!0);try{u(o)}finally{Or(!1)}}}else y=o;return h.memoizedState=h.baseState=y,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:y},h.queue=a,a=a.dispatch=eq.bind(null,Me,a),[h.memoizedState,a]},useRef:function(a){var o=xn();return a={current:a},o.memoizedState=a},useState:function(a){a=Yv(a);var o=a.queue,u=bE.bind(null,Me,o);return o.dispatch=u,[a.memoizedState,u]},useDebugValue:Xv,useDeferredValue:function(a,o){var u=xn();return Qv(u,a,o)},useTransition:function(){var a=Yv(!1);return a=mE.bind(null,Me,a.queue,!0,!1),xn().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,o,u){var h=Me,y=xn();if(Fe){if(u===void 0)throw Error(r(407));u=u()}else{if(u=o(),yt===null)throw Error(r(349));(Ue&127)!==0||Hj(h,o,u)}y.memoizedState=u;var b={value:u,getSnapshot:o};return y.queue=b,iE(Gj.bind(null,h,b,a),[a]),h.flags|=2048,Ss(9,{destroy:void 0},Fj.bind(null,h,b,u,o),null),u},useId:function(){var a=xn(),o=yt.identifierPrefix;if(Fe){var u=Yr,h=Vr;u=(h&~(1<<32-dn(h)-1)).toString(32)+u,o="_"+o+"R_"+u,u=rd++,0<u&&(o+="H"+u.toString(32)),o+="_"}else u=YB++,o="_"+o+"r_"+u.toString(32)+"_";return a.memoizedState=o},useHostTransitionStatus:Jv,useFormState:eE,useActionState:eE,useOptimistic:function(a){var o=xn();o.memoizedState=o.baseState=a;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=u,o=eg.bind(null,Me,!0,u),u.dispatch=o,[a,o]},useMemoCache:Fv,useCacheRefresh:function(){return xn().memoizedState=JB.bind(null,Me)},useEffectEvent:function(a){var o=xn(),u={impl:a};return o.memoizedState=u,function(){if((at&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},tg={readContext:on,use:id,useCallback:fE,useContext:on,useEffect:Kv,useImperativeHandle:cE,useInsertionEffect:sE,useLayoutEffect:lE,useMemo:dE,useReducer:od,useRef:aE,useState:function(){return od(_a)},useDebugValue:Xv,useDeferredValue:function(a,o){var u=$t();return hE(u,dt.memoizedState,a,o)},useTransition:function(){var a=od(_a)[0],o=$t().memoizedState;return[typeof a=="boolean"?a:Su(a),o]},useSyncExternalStore:Uj,useId:gE,useHostTransitionStatus:Jv,useFormState:tE,useActionState:tE,useOptimistic:function(a,o){var u=$t();return Wj(u,dt,a,o)},useMemoCache:Fv,useCacheRefresh:yE};tg.useEffectEvent=oE;var OE={readContext:on,use:id,useCallback:fE,useContext:on,useEffect:Kv,useImperativeHandle:cE,useInsertionEffect:sE,useLayoutEffect:lE,useMemo:dE,useReducer:Vv,useRef:aE,useState:function(){return Vv(_a)},useDebugValue:Xv,useDeferredValue:function(a,o){var u=$t();return dt===null?Qv(u,a,o):hE(u,dt.memoizedState,a,o)},useTransition:function(){var a=Vv(_a)[0],o=$t().memoizedState;return[typeof a=="boolean"?a:Su(a),o]},useSyncExternalStore:Uj,useId:gE,useHostTransitionStatus:Jv,useFormState:rE,useActionState:rE,useOptimistic:function(a,o){var u=$t();return dt!==null?Wj(u,dt,a,o):(u.baseState=a,[a,u.queue.dispatch])},useMemoCache:Fv,useCacheRefresh:yE};OE.useEffectEvent=oE;function ng(a,o,u,h){o=a.memoizedState,u=u(h,o),u=u==null?o:m({},o,u),a.memoizedState=u,a.lanes===0&&(a.updateQueue.baseState=u)}var rg={enqueueSetState:function(a,o,u){a=a._reactInternals;var h=Fn(),y=ui(h);y.payload=o,u!=null&&(y.callback=u),o=ci(a,y,h),o!==null&&(Rn(o,a,h),yu(o,a,h))},enqueueReplaceState:function(a,o,u){a=a._reactInternals;var h=Fn(),y=ui(h);y.tag=1,y.payload=o,u!=null&&(y.callback=u),o=ci(a,y,h),o!==null&&(Rn(o,a,h),yu(o,a,h))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var u=Fn(),h=ui(u);h.tag=2,o!=null&&(h.callback=o),o=ci(a,h,u),o!==null&&(Rn(o,a,u),yu(o,a,u))}};function _E(a,o,u,h,y,b,C){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(h,b,C):o.prototype&&o.prototype.isPureReactComponent?!cu(u,h)||!cu(y,b):!0}function jE(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&&rg.enqueueReplaceState(o,o.state,null)}function ho(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=m({},u));for(var y in a)u[y]===void 0&&(u[y]=a[y])}return u}function EE(a){qf(a)}function AE(a){console.error(a)}function TE(a){qf(a)}function cd(a,o){try{var u=a.onUncaughtError;u(o.value,{componentStack:o.stack})}catch(h){setTimeout(function(){throw h})}}function CE(a,o,u){try{var h=a.onCaughtError;h(u.value,{componentStack:u.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(y){setTimeout(function(){throw y})}}function ag(a,o,u){return u=ui(u),u.tag=3,u.payload={element:null},u.callback=function(){cd(a,o)},u}function NE(a){return a=ui(a),a.tag=3,a}function ME(a,o,u,h){var y=u.type.getDerivedStateFromError;if(typeof y=="function"){var b=h.value;a.payload=function(){return y(b)},a.callback=function(){CE(o,u,h)}}var C=u.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(a.callback=function(){CE(o,u,h),typeof y!="function"&&(vi===null?vi=new Set([this]):vi.add(this));var P=h.stack;this.componentDidCatch(h.value,{componentStack:P!==null?P:""})})}function tq(a,o,u,h,y){if(u.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(o=u.alternate,o!==null&&ms(o,u,y,!0),u=Bn.current,u!==null){switch(u.tag){case 31:case 13:return lr===null?Sd():u.alternate===null&&Dt===0&&(Dt=3),u.flags&=-257,u.flags|=65536,u.lanes=y,h===Qf?u.flags|=16384:(o=u.updateQueue,o===null?u.updateQueue=new Set([h]):o.add(h),Cg(a,h,y)),!1;case 22:return u.flags|=65536,h===Qf?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,y)),!1}throw Error(r(435,u.tag))}return Cg(a,h,y),Sd(),!1}if(Fe)return o=Bn.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=y,h!==Ov&&(a=Error(r(422),{cause:h}),hu(ar(a,u)))):(h!==Ov&&(o=Error(r(423),{cause:h}),hu(ar(o,u))),a=a.current.alternate,a.flags|=65536,y&=-y,a.lanes|=y,h=ar(h,u),y=ag(a.stateNode,h,y),Pv(a,y),Dt!==4&&(Dt=2)),!1;var b=Error(r(520),{cause:h});if(b=ar(b,u),Ru===null?Ru=[b]:Ru.push(b),Dt!==4&&(Dt=2),o===null)return!0;h=ar(h,u),u=o;do{switch(u.tag){case 3:return u.flags|=65536,a=y&-y,u.lanes|=a,a=ag(u.stateNode,h,a),Pv(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"&&(vi===null||!vi.has(b))))return u.flags|=65536,y&=-y,u.lanes|=y,y=NE(y),ME(y,a,u,h),Pv(u,y),!1}u=u.return}while(u!==null);return!1}var ig=Error(r(461)),Bt=!1;function sn(a,o,u,h){o.child=a===null?kj(o,null,u,h):co(o,a.child,u,h)}function RE(a,o,u,h,y){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 oo(o),h=Bv(a,o,u,C,b,y),P=qv(),a!==null&&!Bt?(Uv(a,o,y),ja(a,o,y)):(Fe&&P&&wv(o),o.flags|=1,sn(a,o,h,y),o.child)}function DE(a,o,u,h,y){if(a===null){var b=u.type;return typeof b=="function"&&!yv(b)&&b.defaultProps===void 0&&u.compare===null?(o.tag=15,o.type=b,PE(a,o,b,h,y)):(a=Gf(u.type,null,h,o,o.mode,y),a.ref=o.ref,a.return=o,o.child=a)}if(b=a.child,!hg(a,y)){var C=b.memoizedProps;if(u=u.compare,u=u!==null?u:cu,u(C,h)&&a.ref===o.ref)return ja(a,o,y)}return o.flags|=1,a=ba(b,h),a.ref=o.ref,a.return=o,o.child=a}function PE(a,o,u,h,y){if(a!==null){var b=a.memoizedProps;if(cu(b,h)&&a.ref===o.ref)if(Bt=!1,o.pendingProps=h=b,hg(a,y))(a.flags&131072)!==0&&(Bt=!0);else return o.lanes=a.lanes,ja(a,o,y)}return og(a,o,u,h,y)}function kE(a,o,u,h){var y=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,y=0;h!==null;)y=y|h.lanes|h.childLanes,h=h.sibling;h=y&~b}else h=0,o.child=null;return $E(a,o,b,u,h)}if((u&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},a!==null&&Kf(o,b!==null?b.cachePool:null),b!==null?Ij(o,b):$v(),zj(o);else return h=o.lanes=536870912,$E(a,o,b!==null?b.baseLanes|u:u,u,h)}else b!==null?(Kf(o,b.cachePool),Ij(o,b),di(),o.memoizedState=null):(a!==null&&Kf(o,null),$v(),di());return sn(a,o,y,u),o.child}function ju(a,o){return a!==null&&a.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function $E(a,o,u,h,y){var b=Nv();return b=b===null?null:{parent:It._currentValue,pool:b},o.memoizedState={baseLanes:u,cachePool:b},a!==null&&Kf(o,null),$v(),zj(o),a!==null&&ms(a,o,h,!0),o.childLanes=y,null}function fd(a,o){return o=hd({mode:o.mode,children:o.children},a.mode),o.ref=a.ref,a.child=o,o.return=a,o}function LE(a,o,u){return co(o,a.child,null,u),a=fd(o,o.pendingProps),a.flags|=2,qn(o),o.memoizedState=null,a}function nq(a,o,u){var h=o.pendingProps,y=(o.flags&128)!==0;if(o.flags&=-129,a===null){if(Fe){if(h.mode==="hidden")return a=fd(o,h),o.lanes=536870912,ju(null,a);if(Iv(o),(a=Ot)?(a=KA(a,sr),a=a!==null&&a.data==="&"?a:null,a!==null&&(o.memoizedState={dehydrated:a,treeContext:ai!==null?{id:Vr,overflow:Yr}:null,retryLane:536870912,hydrationErrors:null},u=xj(a),u.return=o,o.child=u,an=o,Ot=null)):a=null,a===null)throw oi(o);return o.lanes=536870912,null}return fd(o,h)}var b=a.memoizedState;if(b!==null){var C=b.dehydrated;if(Iv(o),y)if(o.flags&256)o.flags&=-257,o=LE(a,o,u);else if(o.memoizedState!==null)o.child=a.child,o.flags|=128,o=null;else throw Error(r(558));else if(Bt||ms(a,o,u,!1),y=(u&a.childLanes)!==0,Bt||y){if(h=yt,h!==null&&(C=jn(h,u),C!==0&&C!==b.retryLane))throw b.retryLane=C,no(a,C),Rn(h,a,C),ig;Sd(),o=LE(a,o,u)}else a=b.treeContext,Ot=ur(C.nextSibling),an=o,Fe=!0,ii=null,sr=!1,a!==null&&Oj(o,a),o=fd(o,h),o.flags|=4096;return o}return a=ba(a.child,{mode:h.mode,children:h.children}),a.ref=o.ref,o.child=a,a.return=o,a}function dd(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 og(a,o,u,h,y){return oo(o),u=Bv(a,o,u,h,void 0,y),h=qv(),a!==null&&!Bt?(Uv(a,o,y),ja(a,o,y)):(Fe&&h&&wv(o),o.flags|=1,sn(a,o,u,y),o.child)}function IE(a,o,u,h,y,b){return oo(o),o.updateQueue=null,u=qj(o,h,u,y),Bj(a),h=qv(),a!==null&&!Bt?(Uv(a,o,b),ja(a,o,b)):(Fe&&h&&wv(o),o.flags|=1,sn(a,o,u,b),o.child)}function zE(a,o,u,h,y){if(oo(o),o.stateNode===null){var b=cs,C=u.contextType;typeof C=="object"&&C!==null&&(b=on(C)),b=new u(h,b),o.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=rg,o.stateNode=b,b._reactInternals=o,b=o.stateNode,b.props=h,b.state=o.memoizedState,b.refs={},Rv(o),C=u.contextType,b.context=typeof C=="object"&&C!==null?on(C):cs,b.state=o.memoizedState,C=u.getDerivedStateFromProps,typeof C=="function"&&(ng(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&&rg.enqueueReplaceState(b,b.state,null),xu(o,h,b,y),bu(),b.state=o.memoizedState),typeof b.componentDidMount=="function"&&(o.flags|=4194308),h=!0}else if(a===null){b=o.stateNode;var P=o.memoizedProps,U=ho(u,P);b.props=U;var ee=b.context,oe=u.contextType;C=cs,typeof oe=="object"&&oe!==null&&(C=on(oe));var fe=u.getDerivedStateFromProps;oe=typeof fe=="function"||typeof b.getSnapshotBeforeUpdate=="function",P=o.pendingProps!==P,oe||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(P||ee!==C)&&jE(o,b,h,C),li=!1;var te=o.memoizedState;b.state=te,xu(o,h,b,y),bu(),ee=o.memoizedState,P||te!==ee||li?(typeof fe=="function"&&(ng(o,u,fe,h),ee=o.memoizedState),(U=li||_E(o,u,U,h,te,ee,C))?(oe||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=U):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),h=!1)}else{b=o.stateNode,Dv(a,o),C=o.memoizedProps,oe=ho(u,C),b.props=oe,fe=o.pendingProps,te=b.context,ee=u.contextType,U=cs,typeof ee=="object"&&ee!==null&&(U=on(ee)),P=u.getDerivedStateFromProps,(ee=typeof P=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(C!==fe||te!==U)&&jE(o,b,h,U),li=!1,te=o.memoizedState,b.state=te,xu(o,h,b,y),bu();var re=o.memoizedState;C!==fe||te!==re||li||a!==null&&a.dependencies!==null&&Yf(a.dependencies)?(typeof P=="function"&&(ng(o,u,P,h),re=o.memoizedState),(oe=li||_E(o,u,oe,h,te,re,U)||a!==null&&a.dependencies!==null&&Yf(a.dependencies))?(ee||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(h,re,U),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(h,re,U)),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=re),b.props=h,b.state=re,b.context=U,h=oe):(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,dd(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=co(o,a.child,null,y),o.child=co(o,null,u,y)):sn(a,o,u,y),o.memoizedState=b.state,a=o.child):a=ja(a,o,y),a}function BE(a,o,u,h){return ao(),o.flags|=256,sn(a,o,u,h),o.child}var sg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function lg(a){return{baseLanes:a,cachePool:Cj()}}function ug(a,o,u){return a=a!==null?a.childLanes&~u:0,o&&(a|=Hn),a}function qE(a,o,u){var h=o.pendingProps,y=!1,b=(o.flags&128)!==0,C;if((C=b)||(C=a!==null&&a.memoizedState===null?!1:(kt.current&2)!==0),C&&(y=!0,o.flags&=-129),C=(o.flags&32)!==0,o.flags&=-33,a===null){if(Fe){if(y?fi(o):di(),(a=Ot)?(a=KA(a,sr),a=a!==null&&a.data!=="&"?a:null,a!==null&&(o.memoizedState={dehydrated:a,treeContext:ai!==null?{id:Vr,overflow:Yr}:null,retryLane:536870912,hydrationErrors:null},u=xj(a),u.return=o,o.child=u,an=o,Ot=null)):a=null,a===null)throw oi(o);return Gg(a)?o.lanes=32:o.lanes=536870912,null}var P=h.children;return h=h.fallback,y?(di(),y=o.mode,P=hd({mode:"hidden",children:P},y),h=ro(h,y,u,null),P.return=o,h.return=o,P.sibling=h,o.child=P,h=o.child,h.memoizedState=lg(u),h.childLanes=ug(a,C,u),o.memoizedState=sg,ju(null,h)):(fi(o),cg(o,P))}var U=a.memoizedState;if(U!==null&&(P=U.dehydrated,P!==null)){if(b)o.flags&256?(fi(o),o.flags&=-257,o=fg(a,o,u)):o.memoizedState!==null?(di(),o.child=a.child,o.flags|=128,o=null):(di(),P=h.fallback,y=o.mode,h=hd({mode:"visible",children:h.children},y),P=ro(P,y,u,null),P.flags|=2,h.return=o,P.return=o,h.sibling=P,o.child=h,co(o,a.child,null,u),h=o.child,h.memoizedState=lg(u),h.childLanes=ug(a,C,u),o.memoizedState=sg,o=ju(null,h));else if(fi(o),Gg(P)){if(C=P.nextSibling&&P.nextSibling.dataset,C)var ee=C.dgst;C=ee,h=Error(r(419)),h.stack="",h.digest=C,hu({value:h,source:null,stack:null}),o=fg(a,o,u)}else if(Bt||ms(a,o,u,!1),C=(u&a.childLanes)!==0,Bt||C){if(C=yt,C!==null&&(h=jn(C,u),h!==0&&h!==U.retryLane))throw U.retryLane=h,no(a,h),Rn(C,a,h),ig;Fg(P)||Sd(),o=fg(a,o,u)}else Fg(P)?(o.flags|=192,o.child=a.child,o=null):(a=U.treeContext,Ot=ur(P.nextSibling),an=o,Fe=!0,ii=null,sr=!1,a!==null&&Oj(o,a),o=cg(o,h.children),o.flags|=4096);return o}return y?(di(),P=h.fallback,y=o.mode,U=a.child,ee=U.sibling,h=ba(U,{mode:"hidden",children:h.children}),h.subtreeFlags=U.subtreeFlags&65011712,ee!==null?P=ba(ee,P):(P=ro(P,y,u,null),P.flags|=2),P.return=o,h.return=o,h.sibling=P,o.child=h,ju(null,h),h=o.child,P=a.child.memoizedState,P===null?P=lg(u):(y=P.cachePool,y!==null?(U=It._currentValue,y=y.parent!==U?{parent:U,pool:U}:y):y=Cj(),P={baseLanes:P.baseLanes|u,cachePool:y}),h.memoizedState=P,h.childLanes=ug(a,C,u),o.memoizedState=sg,ju(a.child,h)):(fi(o),u=a.child,a=u.sibling,u=ba(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 cg(a,o){return o=hd({mode:"visible",children:o},a.mode),o.return=a,a.child=o}function hd(a,o){return a=zn(22,a,null,o),a.lanes=0,a}function fg(a,o,u){return co(o,a.child,null,u),a=cg(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function UE(a,o,u){a.lanes|=o;var h=a.alternate;h!==null&&(h.lanes|=o),Ev(a.return,o,u)}function dg(a,o,u,h,y,b){var C=a.memoizedState;C===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:y,treeForkCount:b}:(C.isBackwards=o,C.rendering=null,C.renderingStartTime=0,C.last=h,C.tail=u,C.tailMode=y,C.treeForkCount=b)}function HE(a,o,u){var h=o.pendingProps,y=h.revealOrder,b=h.tail;h=h.children;var C=kt.current,P=(C&2)!==0;if(P?(C=C&1|2,o.flags|=128):C&=1,X(kt,C),sn(a,o,h,u),h=Fe?du:0,!P&&a!==null&&(a.flags&128)!==0)e:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&UE(a,u,o);else if(a.tag===19)UE(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(y){case"forwards":for(u=o.child,y=null;u!==null;)a=u.alternate,a!==null&&td(a)===null&&(y=u),u=u.sibling;u=y,u===null?(y=o.child,o.child=null):(y=u.sibling,u.sibling=null),dg(o,!1,y,u,b,h);break;case"backwards":case"unstable_legacy-backwards":for(u=null,y=o.child,o.child=null;y!==null;){if(a=y.alternate,a!==null&&td(a)===null){o.child=y;break}a=y.sibling,y.sibling=u,u=y,y=a}dg(o,!0,u,null,b,h);break;case"together":dg(o,!1,null,null,void 0,h);break;default:o.memoizedState=null}return o.child}function ja(a,o,u){if(a!==null&&(o.dependencies=a.dependencies),pi|=o.lanes,(u&o.childLanes)===0)if(a!==null){if(ms(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=ba(a,a.pendingProps),o.child=u,u.return=o;a.sibling!==null;)a=a.sibling,u=u.sibling=ba(a,a.pendingProps),u.return=o;u.sibling=null}return o.child}function hg(a,o){return(a.lanes&o)!==0?!0:(a=a.dependencies,!!(a!==null&&Yf(a)))}function rq(a,o,u){switch(o.tag){case 3:he(o,o.stateNode.containerInfo),si(o,It,a.memoizedState.cache),ao();break;case 27:case 5:me(o);break;case 4:he(o,o.stateNode.containerInfo);break;case 10:si(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,Iv(o),null;break;case 13:var h=o.memoizedState;if(h!==null)return h.dehydrated!==null?(fi(o),o.flags|=128,null):(u&o.child.childLanes)!==0?qE(a,o,u):(fi(o),a=ja(a,o,u),a!==null?a.sibling:null);fi(o);break;case 19:var y=(a.flags&128)!==0;if(h=(u&o.childLanes)!==0,h||(ms(a,o,u,!1),h=(u&o.childLanes)!==0),y){if(h)return HE(a,o,u);o.flags|=128}if(y=o.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),X(kt,kt.current),h)break;return null;case 22:return o.lanes=0,kE(a,o,u,o.pendingProps);case 24:si(o,It,a.memoizedState.cache)}return ja(a,o,u)}function FE(a,o,u){if(a!==null)if(a.memoizedProps!==o.pendingProps)Bt=!0;else{if(!hg(a,u)&&(o.flags&128)===0)return Bt=!1,rq(a,o,u);Bt=(a.flags&131072)!==0}else Bt=!1,Fe&&(o.flags&1048576)!==0&&Sj(o,du,o.index);switch(o.lanes=0,o.tag){case 16:e:{var h=o.pendingProps;if(a=lo(o.elementType),o.type=a,typeof a=="function")yv(a)?(h=ho(a,h),o.tag=1,o=zE(null,o,a,h,u)):(o.tag=0,o=og(null,o,a,h,u));else{if(a!=null){var y=a.$$typeof;if(y===M){o.tag=11,o=RE(null,o,a,h,u);break e}else if(y===R){o.tag=14,o=DE(null,o,a,h,u);break e}}throw o=Q(a)||a,Error(r(306,o,""))}}return o;case 0:return og(a,o,o.type,o.pendingProps,u);case 1:return h=o.type,y=ho(h,o.pendingProps),zE(a,o,h,y,u);case 3:e:{if(he(o,o.stateNode.containerInfo),a===null)throw Error(r(387));h=o.pendingProps;var b=o.memoizedState;y=b.element,Dv(a,o),xu(o,h,null,u);var C=o.memoizedState;if(h=C.cache,si(o,It,h),h!==b.cache&&Av(o,[It],u,!0),bu(),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=BE(a,o,h,u);break e}else if(h!==y){y=ar(Error(r(424)),o),hu(y),o=BE(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(Ot=ur(a.firstChild),an=o,Fe=!0,ii=null,sr=!0,u=kj(o,null,h,u),o.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(ao(),h===y){o=ja(a,o,u);break e}sn(a,o,h,u)}o=o.child}return o;case 26:return dd(a,o),a===null?(u=tT(o.type,null,o.pendingProps,null))?o.memoizedState=u:Fe||(u=o.type,a=o.pendingProps,h=Cd(ge.current).createElement(u),h[rn]=o,h[En]=a,ln(h,u,a),Jt(h),o.stateNode=h):o.memoizedState=tT(o.type,a.memoizedProps,o.pendingProps,a.memoizedState),null;case 27:return me(o),a===null&&Fe&&(h=o.stateNode=ZA(o.type,o.pendingProps,ge.current),an=o,sr=!0,y=Ot,xi(o.type)?(Vg=y,Ot=ur(h.firstChild)):Ot=y),sn(a,o,o.pendingProps.children,u),dd(a,o),a===null&&(o.flags|=4194304),o.child;case 5:return a===null&&Fe&&((y=h=Ot)&&(h=Dq(h,o.type,o.pendingProps,sr),h!==null?(o.stateNode=h,an=o,Ot=ur(h.firstChild),sr=!1,y=!0):y=!1),y||oi(o)),me(o),y=o.type,b=o.pendingProps,C=a!==null?a.memoizedProps:null,h=b.children,qg(y,b)?h=null:C!==null&&qg(y,C)&&(o.flags|=32),o.memoizedState!==null&&(y=Bv(a,o,WB,null,null,u),Bu._currentValue=y),dd(a,o),sn(a,o,h,u),o.child;case 6:return a===null&&Fe&&((a=u=Ot)&&(u=Pq(u,o.pendingProps,sr),u!==null?(o.stateNode=u,an=o,Ot=null,a=!0):a=!1),a||oi(o)),null;case 13:return qE(a,o,u);case 4:return he(o,o.stateNode.containerInfo),h=o.pendingProps,a===null?o.child=co(o,null,h,u):sn(a,o,h,u),o.child;case 11:return RE(a,o,o.type,o.pendingProps,u);case 7:return sn(a,o,o.pendingProps,u),o.child;case 8:return sn(a,o,o.pendingProps.children,u),o.child;case 12:return sn(a,o,o.pendingProps.children,u),o.child;case 10:return h=o.pendingProps,si(o,o.type,h.value),sn(a,o,h.children,u),o.child;case 9:return y=o.type._context,h=o.pendingProps.children,oo(o),y=on(y),h=h(y),o.flags|=1,sn(a,o,h,u),o.child;case 14:return DE(a,o,o.type,o.pendingProps,u);case 15:return PE(a,o,o.type,o.pendingProps,u);case 19:return HE(a,o,u);case 31:return nq(a,o,u);case 22:return kE(a,o,u,o.pendingProps);case 24:return oo(o),h=on(It),a===null?(y=Nv(),y===null&&(y=yt,b=Tv(),y.pooledCache=b,b.refCount++,b!==null&&(y.pooledCacheLanes|=u),y=b),o.memoizedState={parent:h,cache:y},Rv(o),si(o,It,y)):((a.lanes&u)!==0&&(Dv(a,o),xu(o,null,null,u),bu()),y=a.memoizedState,b=o.memoizedState,y.parent!==h?(y={parent:h,cache:h},o.memoizedState=y,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=y),si(o,It,h)):(h=b.cache,si(o,It,h),h!==y.cache&&Av(o,[It],u,!0))),sn(a,o,o.pendingProps.children,u),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function Ea(a){a.flags|=4}function mg(a,o,u,h,y){if((o=(a.mode&32)!==0)&&(o=!1),o){if(a.flags|=16777216,(y&335544128)===y)if(a.stateNode.complete)a.flags|=8192;else if(gA())a.flags|=8192;else throw uo=Qf,Mv}else a.flags&=-16777217}function GE(a,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!oT(o))if(gA())a.flags|=8192;else throw uo=Qf,Mv}function md(a,o){o!==null&&(a.flags|=4),a.flags&16384&&(o=a.tag!==22?hn():536870912,a.lanes|=o,Es|=o)}function Eu(a,o){if(!Fe)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 _t(a){var o=a.alternate!==null&&a.alternate.child===a.child,u=0,h=0;if(o)for(var y=a.child;y!==null;)u|=y.lanes|y.childLanes,h|=y.subtreeFlags&65011712,h|=y.flags&65011712,y.return=a,y=y.sibling;else for(y=a.child;y!==null;)u|=y.lanes|y.childLanes,h|=y.subtreeFlags,h|=y.flags,y.return=a,y=y.sibling;return a.subtreeFlags|=h,a.childLanes=u,o}function aq(a,o,u){var h=o.pendingProps;switch(Sv(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(o),null;case 1:return _t(o),null;case 3:return u=o.stateNode,h=null,a!==null&&(h=a.memoizedState.cache),o.memoizedState.cache!==h&&(o.flags|=2048),Sa(It),ie(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(a===null||a.child===null)&&(hs(o)?Ea(o):a===null||a.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,_v())),_t(o),null;case 26:var y=o.type,b=o.memoizedState;return a===null?(Ea(o),b!==null?(_t(o),GE(o,b)):(_t(o),mg(o,y,null,h,u))):b?b!==a.memoizedState?(Ea(o),_t(o),GE(o,b)):(_t(o),o.flags&=-16777217):(a=a.memoizedProps,a!==h&&Ea(o),_t(o),mg(o,y,a,h,u)),null;case 27:if(ve(o),u=ge.current,y=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==h&&Ea(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return _t(o),null}a=ae.current,hs(o)?_j(o):(a=ZA(y,h,u),o.stateNode=a,Ea(o))}return _t(o),null;case 5:if(ve(o),y=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==h&&Ea(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return _t(o),null}if(b=ae.current,hs(o))_j(o);else{var C=Cd(ge.current);switch(b){case 1:b=C.createElementNS("http://www.w3.org/2000/svg",y);break;case 2:b=C.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;default:switch(y){case"svg":b=C.createElementNS("http://www.w3.org/2000/svg",y);break;case"math":b=C.createElementNS("http://www.w3.org/1998/Math/MathML",y);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(y,{is:h.is}):C.createElement(y)}}b[rn]=o,b[En]=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(ln(b,y,h),y){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&Ea(o)}}return _t(o),mg(o,o.type,a===null?null:a.memoizedProps,o.pendingProps,u),null;case 6:if(a&&o.stateNode!=null)a.memoizedProps!==h&&Ea(o);else{if(typeof h!="string"&&o.stateNode===null)throw Error(r(166));if(a=ge.current,hs(o)){if(a=o.stateNode,u=o.memoizedProps,h=null,y=an,y!==null)switch(y.tag){case 27:case 5:h=y.memoizedProps}a[rn]=o,a=!!(a.nodeValue===u||h!==null&&h.suppressHydrationWarning===!0||qA(a.nodeValue,u)),a||oi(o,!0)}else a=Cd(a).createTextNode(h),a[rn]=o,o.stateNode=a}return _t(o),null;case 31:if(u=o.memoizedState,a===null||a.memoizedState!==null){if(h=hs(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[rn]=o}else ao(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;_t(o),a=!1}else u=_v(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=u),a=!0;if(!a)return o.flags&256?(qn(o),o):(qn(o),null);if((o.flags&128)!==0)throw Error(r(558))}return _t(o),null;case 13:if(h=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(y=hs(o),h!==null&&h.dehydrated!==null){if(a===null){if(!y)throw Error(r(318));if(y=o.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(r(317));y[rn]=o}else ao(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;_t(o),y=!1}else y=_v(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=y),y=!0;if(!y)return o.flags&256?(qn(o),o):(qn(o),null)}return qn(o),(o.flags&128)!==0?(o.lanes=u,o):(u=h!==null,a=a!==null&&a.memoizedState!==null,u&&(h=o.child,y=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(y=h.alternate.memoizedState.cachePool.pool),b=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(b=h.memoizedState.cachePool.pool),b!==y&&(h.flags|=2048)),u!==a&&u&&(o.child.flags|=8192),md(o,o.updateQueue),_t(o),null);case 4:return ie(),a===null&&$g(o.stateNode.containerInfo),_t(o),null;case 10:return Sa(o.type),_t(o),null;case 19:if(F(kt),h=o.memoizedState,h===null)return _t(o),null;if(y=(o.flags&128)!==0,b=h.rendering,b===null)if(y)Eu(h,!1);else{if(Dt!==0||a!==null&&(a.flags&128)!==0)for(a=o.child;a!==null;){if(b=td(a),b!==null){for(o.flags|=128,Eu(h,!1),a=b.updateQueue,o.updateQueue=a,md(o,a),o.subtreeFlags=0,a=u,u=o.child;u!==null;)bj(u,a),u=u.sibling;return X(kt,kt.current&1|2),Fe&&xa(o,h.treeForkCount),o.child}a=a.sibling}h.tail!==null&&Qt()>bd&&(o.flags|=128,y=!0,Eu(h,!1),o.lanes=4194304)}else{if(!y)if(a=td(b),a!==null){if(o.flags|=128,y=!0,a=a.updateQueue,o.updateQueue=a,md(o,a),Eu(h,!0),h.tail===null&&h.tailMode==="hidden"&&!b.alternate&&!Fe)return _t(o),null}else 2*Qt()-h.renderingStartTime>bd&&u!==536870912&&(o.flags|=128,y=!0,Eu(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=Qt(),a.sibling=null,u=kt.current,X(kt,y?u&1|2:u&1),Fe&&xa(o,h.treeForkCount),a):(_t(o),null);case 22:case 23:return qn(o),Lv(),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&&(_t(o),o.subtreeFlags&6&&(o.flags|=8192)):_t(o),u=o.updateQueue,u!==null&&md(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(so),null;case 24:return u=null,a!==null&&(u=a.memoizedState.cache),o.memoizedState.cache!==u&&(o.flags|=2048),Sa(It),_t(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function iq(a,o){switch(Sv(o),o.tag){case 1:return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 3:return Sa(It),ie(),a=o.flags,(a&65536)!==0&&(a&128)===0?(o.flags=a&-65537|128,o):null;case 26:case 27:case 5:return ve(o),null;case 31:if(o.memoizedState!==null){if(qn(o),o.alternate===null)throw Error(r(340));ao()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 13:if(qn(o),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error(r(340));ao()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 19:return F(kt),null;case 4:return ie(),null;case 10:return Sa(o.type),null;case 22:case 23:return qn(o),Lv(),a!==null&&F(so),a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 24:return Sa(It),null;case 25:return null;default:return null}}function VE(a,o){switch(Sv(o),o.tag){case 3:Sa(It),ie();break;case 26:case 27:case 5:ve(o);break;case 4:ie();break;case 31:o.memoizedState!==null&&qn(o);break;case 13:qn(o);break;case 19:F(kt);break;case 10:Sa(o.type);break;case 22:case 23:qn(o),Lv(),a!==null&&F(so);break;case 24:Sa(It)}}function Au(a,o){try{var u=o.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var y=h.next;u=y;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!==y)}}catch(P){ut(o,o.return,P)}}function hi(a,o,u){try{var h=o.updateQueue,y=h!==null?h.lastEffect:null;if(y!==null){var b=y.next;h=b;do{if((h.tag&a)===a){var C=h.inst,P=C.destroy;if(P!==void 0){C.destroy=void 0,y=o;var U=u,ee=P;try{ee()}catch(oe){ut(y,U,oe)}}}h=h.next}while(h!==b)}}catch(oe){ut(o,o.return,oe)}}function YE(a){var o=a.updateQueue;if(o!==null){var u=a.stateNode;try{Lj(o,u)}catch(h){ut(a,a.return,h)}}}function WE(a,o,u){u.props=ho(a.type,a.memoizedProps),u.state=a.memoizedState;try{u.componentWillUnmount()}catch(h){ut(a,o,h)}}function Tu(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(y){ut(a,o,y)}}function Wr(a,o){var u=a.ref,h=a.refCleanup;if(u!==null)if(typeof h=="function")try{h()}catch(y){ut(a,o,y)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(y){ut(a,o,y)}else u.current=null}function KE(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(y){ut(a,a.return,y)}}function pg(a,o,u){try{var h=a.stateNode;Aq(h,a.type,u,o),h[En]=o}catch(y){ut(a,a.return,y)}}function XE(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&xi(a.type)||a.tag===4}function vg(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||XE(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&&xi(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 gg(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=ga));else if(h!==4&&(h===27&&xi(a.type)&&(u=a.stateNode,o=null),a=a.child,a!==null))for(gg(a,o,u),a=a.sibling;a!==null;)gg(a,o,u),a=a.sibling}function pd(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&&xi(a.type)&&(u=a.stateNode),a=a.child,a!==null))for(pd(a,o,u),a=a.sibling;a!==null;)pd(a,o,u),a=a.sibling}function QE(a){var o=a.stateNode,u=a.memoizedProps;try{for(var h=a.type,y=o.attributes;y.length;)o.removeAttributeNode(y[0]);ln(o,h,u),o[rn]=a,o[En]=u}catch(b){ut(a,a.return,b)}}var Aa=!1,qt=!1,yg=!1,ZE=typeof WeakSet=="function"?WeakSet:Set,en=null;function oq(a,o){if(a=a.containerInfo,zg=$d,a=cj(a),fv(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 y=h.anchorOffset,b=h.focusNode;h=h.focusOffset;try{u.nodeType,b.nodeType}catch{u=null;break e}var C=0,P=-1,U=-1,ee=0,oe=0,fe=a,te=null;t:for(;;){for(var re;fe!==u||y!==0&&fe.nodeType!==3||(P=C+y),fe!==b||h!==0&&fe.nodeType!==3||(U=C+h),fe.nodeType===3&&(C+=fe.nodeValue.length),(re=fe.firstChild)!==null;)te=fe,fe=re;for(;;){if(fe===a)break t;if(te===u&&++ee===y&&(P=C),te===b&&++oe===h&&(U=C),(re=fe.nextSibling)!==null)break;fe=te,te=fe.parentNode}fe=re}u=P===-1||U===-1?null:{start:P,end:U}}else u=null}u=u||{start:0,end:0}}else u=null;for(Bg={focusedElem:a,selectionRange:u},$d=!1,en=o;en!==null;)if(o=en,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,en=a;else for(;en!==null;){switch(o=en,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++)y=a[u],y.ref.impl=y.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&b!==null){a=void 0,u=o,y=b.memoizedProps,b=b.memoizedState,h=u.stateNode;try{var we=ho(u.type,y);a=h.getSnapshotBeforeUpdate(we,b),h.__reactInternalSnapshotBeforeUpdate=a}catch(Ae){ut(u,u.return,Ae)}}break;case 3:if((a&1024)!==0){if(a=o.stateNode.containerInfo,u=a.nodeType,u===9)Hg(a);else if(u===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Hg(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,en=a;break}en=o.return}}function JE(a,o,u){var h=u.flags;switch(u.tag){case 0:case 11:case 15:Ca(a,u),h&4&&Au(5,u);break;case 1:if(Ca(a,u),h&4)if(a=u.stateNode,o===null)try{a.componentDidMount()}catch(C){ut(u,u.return,C)}else{var y=ho(u.type,o.memoizedProps);o=o.memoizedState;try{a.componentDidUpdate(y,o,a.__reactInternalSnapshotBeforeUpdate)}catch(C){ut(u,u.return,C)}}h&64&&YE(u),h&512&&Tu(u,u.return);break;case 3:if(Ca(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{Lj(a,o)}catch(C){ut(u,u.return,C)}}break;case 27:o===null&&h&4&&QE(u);case 26:case 5:Ca(a,u),o===null&&h&4&&KE(u),h&512&&Tu(u,u.return);break;case 12:Ca(a,u);break;case 31:Ca(a,u),h&4&&nA(a,u);break;case 13:Ca(a,u),h&4&&rA(a,u),h&64&&(a=u.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(u=pq.bind(null,u),kq(a,u))));break;case 22:if(h=u.memoizedState!==null||Aa,!h){o=o!==null&&o.memoizedState!==null||qt,y=Aa;var b=qt;Aa=h,(qt=o)&&!b?Na(a,u,(u.subtreeFlags&8772)!==0):Ca(a,u),Aa=y,qt=b}break;case 30:break;default:Ca(a,u)}}function eA(a){var o=a.alternate;o!==null&&(a.alternate=null,eA(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&Wp(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 At=null,Tn=!1;function Ta(a,o,u){for(u=u.child;u!==null;)tA(a,o,u),u=u.sibling}function tA(a,o,u){if(bn&&typeof bn.onCommitFiberUnmount=="function")try{bn.onCommitFiberUnmount(Ki,u)}catch{}switch(u.tag){case 26:qt||Wr(u,o),Ta(a,o,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:qt||Wr(u,o);var h=At,y=Tn;xi(u.type)&&(At=u.stateNode,Tn=!1),Ta(a,o,u),Lu(u.stateNode),At=h,Tn=y;break;case 5:qt||Wr(u,o);case 6:if(h=At,y=Tn,At=null,Ta(a,o,u),At=h,Tn=y,At!==null)if(Tn)try{(At.nodeType===9?At.body:At.nodeName==="HTML"?At.ownerDocument.body:At).removeChild(u.stateNode)}catch(b){ut(u,o,b)}else try{At.removeChild(u.stateNode)}catch(b){ut(u,o,b)}break;case 18:At!==null&&(Tn?(a=At,YA(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,u.stateNode),Ps(a)):YA(At,u.stateNode));break;case 4:h=At,y=Tn,At=u.stateNode.containerInfo,Tn=!0,Ta(a,o,u),At=h,Tn=y;break;case 0:case 11:case 14:case 15:hi(2,u,o),qt||hi(4,u,o),Ta(a,o,u);break;case 1:qt||(Wr(u,o),h=u.stateNode,typeof h.componentWillUnmount=="function"&&WE(u,o,h)),Ta(a,o,u);break;case 21:Ta(a,o,u);break;case 22:qt=(h=qt)||u.memoizedState!==null,Ta(a,o,u),qt=h;break;default:Ta(a,o,u)}}function nA(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{Ps(a)}catch(u){ut(o,o.return,u)}}}function rA(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Ps(a)}catch(u){ut(o,o.return,u)}}function sq(a){switch(a.tag){case 31:case 13:case 19:var o=a.stateNode;return o===null&&(o=a.stateNode=new ZE),o;case 22:return a=a.stateNode,o=a._retryCache,o===null&&(o=a._retryCache=new ZE),o;default:throw Error(r(435,a.tag))}}function vd(a,o){var u=sq(a);o.forEach(function(h){if(!u.has(h)){u.add(h);var y=vq.bind(null,a,h);h.then(y,y)}})}function Cn(a,o){var u=o.deletions;if(u!==null)for(var h=0;h<u.length;h++){var y=u[h],b=a,C=o,P=C;e:for(;P!==null;){switch(P.tag){case 27:if(xi(P.type)){At=P.stateNode,Tn=!1;break e}break;case 5:At=P.stateNode,Tn=!1;break e;case 3:case 4:At=P.stateNode.containerInfo,Tn=!0;break e}P=P.return}if(At===null)throw Error(r(160));tA(b,C,y),At=null,Tn=!1,b=y.alternate,b!==null&&(b.return=null),y.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)aA(o,a),o=o.sibling}var Er=null;function aA(a,o){var u=a.alternate,h=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:Cn(o,a),Nn(a),h&4&&(hi(3,a,a.return),Au(3,a),hi(5,a,a.return));break;case 1:Cn(o,a),Nn(a),h&512&&(qt||u===null||Wr(u,u.return)),h&64&&Aa&&(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 y=Er;if(Cn(o,a),Nn(a),h&512&&(qt||u===null||Wr(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,y=y.ownerDocument||y;t:switch(h){case"title":b=y.getElementsByTagName("title")[0],(!b||b[tu]||b[rn]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=y.createElement(h),y.head.insertBefore(b,y.querySelector("head > title"))),ln(b,h,u),b[rn]=a,Jt(b),h=b;break e;case"link":var C=aT("link","href",y).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=y.createElement(h),ln(b,h,u),y.head.appendChild(b);break;case"meta":if(C=aT("meta","content",y).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=y.createElement(h),ln(b,h,u),y.head.appendChild(b);break;default:throw Error(r(468,h))}b[rn]=a,Jt(b),h=b}a.stateNode=h}else iT(y,a.type,a.stateNode);else a.stateNode=rT(y,h,a.memoizedProps);else b!==h?(b===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):b.count--,h===null?iT(y,a.type,a.stateNode):rT(y,h,a.memoizedProps)):h===null&&a.stateNode!==null&&pg(a,a.memoizedProps,u.memoizedProps)}break;case 27:Cn(o,a),Nn(a),h&512&&(qt||u===null||Wr(u,u.return)),u!==null&&h&4&&pg(a,a.memoizedProps,u.memoizedProps);break;case 5:if(Cn(o,a),Nn(a),h&512&&(qt||u===null||Wr(u,u.return)),a.flags&32){y=a.stateNode;try{rs(y,"")}catch(we){ut(a,a.return,we)}}h&4&&a.stateNode!=null&&(y=a.memoizedProps,pg(a,y,u!==null?u.memoizedProps:y)),h&1024&&(yg=!0);break;case 6:if(Cn(o,a),Nn(a),h&4){if(a.stateNode===null)throw Error(r(162));h=a.memoizedProps,u=a.stateNode;try{u.nodeValue=h}catch(we){ut(a,a.return,we)}}break;case 3:if(Rd=null,y=Er,Er=Nd(o.containerInfo),Cn(o,a),Er=y,Nn(a),h&4&&u!==null&&u.memoizedState.isDehydrated)try{Ps(o.containerInfo)}catch(we){ut(a,a.return,we)}yg&&(yg=!1,iA(a));break;case 4:h=Er,Er=Nd(a.stateNode.containerInfo),Cn(o,a),Nn(a),Er=h;break;case 12:Cn(o,a),Nn(a);break;case 31:Cn(o,a),Nn(a),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,vd(a,h)));break;case 13:Cn(o,a),Nn(a),a.child.flags&8192&&a.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(yd=Qt()),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,vd(a,h)));break;case 22:y=a.memoizedState!==null;var U=u!==null&&u.memoizedState!==null,ee=Aa,oe=qt;if(Aa=ee||y,qt=oe||U,Cn(o,a),qt=oe,Aa=ee,Nn(a),h&8192)e:for(o=a.stateNode,o._visibility=y?o._visibility&-2:o._visibility|1,y&&(u===null||U||Aa||qt||mo(a)),u=null,o=a;;){if(o.tag===5||o.tag===26){if(u===null){U=u=o;try{if(b=U.stateNode,y)C=b.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{P=U.stateNode;var fe=U.memoizedProps.style,te=fe!=null&&fe.hasOwnProperty("display")?fe.display:null;P.style.display=te==null||typeof te=="boolean"?"":(""+te).trim()}}catch(we){ut(U,U.return,we)}}}else if(o.tag===6){if(u===null){U=o;try{U.stateNode.nodeValue=y?"":U.memoizedProps}catch(we){ut(U,U.return,we)}}}else if(o.tag===18){if(u===null){U=o;try{var re=U.stateNode;y?WA(re,!0):WA(U.stateNode,!1)}catch(we){ut(U,U.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,vd(a,u))));break;case 19:Cn(o,a),Nn(a),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,vd(a,h)));break;case 30:break;case 21:break;default:Cn(o,a),Nn(a)}}function Nn(a){var o=a.flags;if(o&2){try{for(var u,h=a.return;h!==null;){if(XE(h)){u=h;break}h=h.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var y=u.stateNode,b=vg(a);pd(a,b,y);break;case 5:var C=u.stateNode;u.flags&32&&(rs(C,""),u.flags&=-33);var P=vg(a);pd(a,P,C);break;case 3:case 4:var U=u.stateNode.containerInfo,ee=vg(a);gg(a,ee,U);break;default:throw Error(r(161))}}catch(oe){ut(a,a.return,oe)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function iA(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var o=a;iA(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),a=a.sibling}}function Ca(a,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)JE(a,o.alternate,o),o=o.sibling}function mo(a){for(a=a.child;a!==null;){var o=a;switch(o.tag){case 0:case 11:case 14:case 15:hi(4,o,o.return),mo(o);break;case 1:Wr(o,o.return);var u=o.stateNode;typeof u.componentWillUnmount=="function"&&WE(o,o.return,u),mo(o);break;case 27:Lu(o.stateNode);case 26:case 5:Wr(o,o.return),mo(o);break;case 22:o.memoizedState===null&&mo(o);break;case 30:mo(o);break;default:mo(o)}a=a.sibling}}function Na(a,o,u){for(u=u&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var h=o.alternate,y=a,b=o,C=b.flags;switch(b.tag){case 0:case 11:case 15:Na(y,b,u),Au(4,b);break;case 1:if(Na(y,b,u),h=b,y=h.stateNode,typeof y.componentDidMount=="function")try{y.componentDidMount()}catch(ee){ut(h,h.return,ee)}if(h=b,y=h.updateQueue,y!==null){var P=h.stateNode;try{var U=y.shared.hiddenCallbacks;if(U!==null)for(y.shared.hiddenCallbacks=null,y=0;y<U.length;y++)$j(U[y],P)}catch(ee){ut(h,h.return,ee)}}u&&C&64&&YE(b),Tu(b,b.return);break;case 27:QE(b);case 26:case 5:Na(y,b,u),u&&h===null&&C&4&&KE(b),Tu(b,b.return);break;case 12:Na(y,b,u);break;case 31:Na(y,b,u),u&&C&4&&nA(y,b);break;case 13:Na(y,b,u),u&&C&4&&rA(y,b);break;case 22:b.memoizedState===null&&Na(y,b,u),Tu(b,b.return);break;case 30:break;default:Na(y,b,u)}o=o.sibling}}function bg(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&&mu(u))}function xg(a,o){a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(o.refCount++,a!=null&&mu(a))}function Ar(a,o,u,h){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)oA(a,o,u,h),o=o.sibling}function oA(a,o,u,h){var y=o.flags;switch(o.tag){case 0:case 11:case 15:Ar(a,o,u,h),y&2048&&Au(9,o);break;case 1:Ar(a,o,u,h);break;case 3:Ar(a,o,u,h),y&2048&&(a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(o.refCount++,a!=null&&mu(a)));break;case 12:if(y&2048){Ar(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(U){ut(o,o.return,U)}}else Ar(a,o,u,h);break;case 31:Ar(a,o,u,h);break;case 13:Ar(a,o,u,h);break;case 23:break;case 22:b=o.stateNode,C=o.alternate,o.memoizedState!==null?b._visibility&2?Ar(a,o,u,h):Cu(a,o):b._visibility&2?Ar(a,o,u,h):(b._visibility|=2,Os(a,o,u,h,(o.subtreeFlags&10256)!==0||!1)),y&2048&&bg(C,o);break;case 24:Ar(a,o,u,h),y&2048&&xg(o.alternate,o);break;default:Ar(a,o,u,h)}}function Os(a,o,u,h,y){for(y=y&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var b=a,C=o,P=u,U=h,ee=C.flags;switch(C.tag){case 0:case 11:case 15:Os(b,C,P,U,y),Au(8,C);break;case 23:break;case 22:var oe=C.stateNode;C.memoizedState!==null?oe._visibility&2?Os(b,C,P,U,y):Cu(b,C):(oe._visibility|=2,Os(b,C,P,U,y)),y&&ee&2048&&bg(C.alternate,C);break;case 24:Os(b,C,P,U,y),y&&ee&2048&&xg(C.alternate,C);break;default:Os(b,C,P,U,y)}o=o.sibling}}function Cu(a,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var u=a,h=o,y=h.flags;switch(h.tag){case 22:Cu(u,h),y&2048&&bg(h.alternate,h);break;case 24:Cu(u,h),y&2048&&xg(h.alternate,h);break;default:Cu(u,h)}o=o.sibling}}var Nu=8192;function _s(a,o,u){if(a.subtreeFlags&Nu)for(a=a.child;a!==null;)sA(a,o,u),a=a.sibling}function sA(a,o,u){switch(a.tag){case 26:_s(a,o,u),a.flags&Nu&&a.memoizedState!==null&&Yq(u,Er,a.memoizedState,a.memoizedProps);break;case 5:_s(a,o,u);break;case 3:case 4:var h=Er;Er=Nd(a.stateNode.containerInfo),_s(a,o,u),Er=h;break;case 22:a.memoizedState===null&&(h=a.alternate,h!==null&&h.memoizedState!==null?(h=Nu,Nu=16777216,_s(a,o,u),Nu=h):_s(a,o,u));break;default:_s(a,o,u)}}function lA(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 Mu(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];en=h,cA(h,a)}lA(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)uA(a),a=a.sibling}function uA(a){switch(a.tag){case 0:case 11:case 15:Mu(a),a.flags&2048&&hi(9,a,a.return);break;case 3:Mu(a);break;case 12:Mu(a);break;case 22:var o=a.stateNode;a.memoizedState!==null&&o._visibility&2&&(a.return===null||a.return.tag!==13)?(o._visibility&=-3,gd(a)):Mu(a);break;default:Mu(a)}}function gd(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];en=h,cA(h,a)}lA(a)}for(a=a.child;a!==null;){switch(o=a,o.tag){case 0:case 11:case 15:hi(8,o,o.return),gd(o);break;case 22:u=o.stateNode,u._visibility&2&&(u._visibility&=-3,gd(o));break;default:gd(o)}a=a.sibling}}function cA(a,o){for(;en!==null;){var u=en;switch(u.tag){case 0:case 11:case 15:hi(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:mu(u.memoizedState.cache)}if(h=u.child,h!==null)h.return=u,en=h;else e:for(u=a;en!==null;){h=en;var y=h.sibling,b=h.return;if(eA(h),h===u){en=null;break e}if(y!==null){y.return=b,en=y;break e}en=b}}}var lq={getCacheForType:function(a){var o=on(It),u=o.data.get(a);return u===void 0&&(u=a(),o.data.set(a,u)),u},cacheSignal:function(){return on(It).controller.signal}},uq=typeof WeakMap=="function"?WeakMap:Map,at=0,yt=null,Le=null,Ue=0,lt=0,Un=null,mi=!1,js=!1,wg=!1,Ma=0,Dt=0,pi=0,po=0,Sg=0,Hn=0,Es=0,Ru=null,Mn=null,Og=!1,yd=0,fA=0,bd=1/0,xd=null,vi=null,Gt=0,gi=null,As=null,Ra=0,_g=0,jg=null,dA=null,Du=0,Eg=null;function Fn(){return(at&2)!==0&&Ue!==0?Ue&-Ue:k.T!==null?Rg():Vp()}function hA(){if(Hn===0)if((Ue&536870912)===0||Fe){var a=Ko;Ko<<=1,(Ko&3932160)===0&&(Ko=262144),Hn=a}else Hn=536870912;return a=Bn.current,a!==null&&(a.flags|=32),Hn}function Rn(a,o,u){(a===yt&&(lt===2||lt===9)||a.cancelPendingCommit!==null)&&(Ts(a,0),yi(a,Ue,Hn,!1)),Mt(a,u),((at&2)===0||a!==yt)&&(a===yt&&((at&2)===0&&(po|=u),Dt===4&&yi(a,Ue,Hn,!1)),Kr(a))}function mA(a,o,u){if((at&6)!==0)throw Error(r(327));var h=!u&&(o&127)===0&&(o&a.expiredLanes)===0||Et(a,o),y=h?dq(a,o):Tg(a,o,!0),b=h;do{if(y===0){js&&!h&&yi(a,o,0,!1);break}else{if(u=a.current.alternate,b&&!cq(u)){y=Tg(a,o,!1),b=!1;continue}if(y===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;y=Ru;var U=P.current.memoizedState.isDehydrated;if(U&&(Ts(P,C).flags|=256),C=Tg(P,C,!1),C!==2){if(wg&&!U){P.errorRecoveryDisabledLanes|=b,po|=b,y=4;break e}b=Mn,Mn=y,b!==null&&(Mn===null?Mn=b:Mn.push.apply(Mn,b))}y=C}if(b=!1,y!==2)continue}}if(y===1){Ts(a,0),yi(a,o,0,!0);break}e:{switch(h=a,b=y,b){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:yi(h,o,Hn,!mi);break e;case 2:Mn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(y=yd+300-Qt(),10<y)){if(yi(h,o,Hn,!mi),Ce(h,0,!0)!==0)break e;Ra=o,h.timeoutHandle=GA(pA.bind(null,h,u,Mn,xd,Og,o,Hn,po,Es,mi,b,"Throttled",-0,0),y);break e}pA(h,u,Mn,xd,Og,o,Hn,po,Es,mi,b,null,-0,0)}}break}while(!0);Kr(a)}function pA(a,o,u,h,y,b,C,P,U,ee,oe,fe,te,re){if(a.timeoutHandle=-1,fe=o.subtreeFlags,fe&8192||(fe&16785408)===16785408){fe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ga},sA(o,b,fe);var we=(b&62914560)===b?yd-Qt():(b&4194048)===b?fA-Qt():0;if(we=Wq(fe,we),we!==null){Ra=b,a.cancelPendingCommit=we(OA.bind(null,a,o,b,u,h,y,C,P,U,oe,fe,null,te,re)),yi(a,b,C,!ee);return}}OA(a,o,b,u,h,y,C,P,U)}function cq(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 y=u[h],b=y.getSnapshot;y=y.value;try{if(!In(b(),y))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 yi(a,o,u,h){o&=~Sg,o&=~po,a.suspendedLanes|=o,a.pingedLanes&=~o,h&&(a.warmLanes|=o),h=a.expirationTimes;for(var y=o;0<y;){var b=31-dn(y),C=1<<b;h[b]=-1,y&=~C}u!==0&&Qi(a,u,o)}function wd(){return(at&6)===0?(Pu(0),!1):!0}function Ag(){if(Le!==null){if(lt===0)var a=Le.return;else a=Le,wa=io=null,Hv(a),ys=null,vu=0,a=Le;for(;a!==null;)VE(a.alternate,a),a=a.return;Le=null}}function Ts(a,o){var u=a.timeoutHandle;u!==-1&&(a.timeoutHandle=-1,Nq(u)),u=a.cancelPendingCommit,u!==null&&(a.cancelPendingCommit=null,u()),Ra=0,Ag(),yt=a,Le=u=ba(a.current,null),Ue=o,lt=0,Un=null,mi=!1,js=Et(a,o),wg=!1,Es=Hn=Sg=po=pi=Dt=0,Mn=Ru=null,Og=!1,(o&8)!==0&&(o|=o&32);var h=a.entangledLanes;if(h!==0)for(a=a.entanglements,h&=o;0<h;){var y=31-dn(h),b=1<<y;o|=a[y],h&=~b}return Ma=o,Uf(),u}function vA(a,o){Me=null,k.H=_u,o===gs||o===Xf?(o=Rj(),lt=3):o===Mv?(o=Rj(),lt=4):lt=o===ig?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,Un=o,Le===null&&(Dt=1,cd(a,ar(o,a.current)))}function gA(){var a=Bn.current;return a===null?!0:(Ue&4194048)===Ue?lr===null:(Ue&62914560)===Ue||(Ue&536870912)!==0?a===lr:!1}function yA(){var a=k.H;return k.H=_u,a===null?_u:a}function bA(){var a=k.A;return k.A=lq,a}function Sd(){Dt=4,mi||(Ue&4194048)!==Ue&&Bn.current!==null||(js=!0),(pi&134217727)===0&&(po&134217727)===0||yt===null||yi(yt,Ue,Hn,!1)}function Tg(a,o,u){var h=at;at|=2;var y=yA(),b=bA();(yt!==a||Ue!==o)&&(xd=null,Ts(a,o)),o=!1;var C=Dt;e:do try{if(lt!==0&&Le!==null){var P=Le,U=Un;switch(lt){case 8:Ag(),C=6;break e;case 3:case 2:case 9:case 6:Bn.current===null&&(o=!0);var ee=lt;if(lt=0,Un=null,Cs(a,P,U,ee),u&&js){C=0;break e}break;default:ee=lt,lt=0,Un=null,Cs(a,P,U,ee)}}fq(),C=Dt;break}catch(oe){vA(a,oe)}while(!0);return o&&a.shellSuspendCounter++,wa=io=null,at=h,k.H=y,k.A=b,Le===null&&(yt=null,Ue=0,Uf()),C}function fq(){for(;Le!==null;)xA(Le)}function dq(a,o){var u=at;at|=2;var h=yA(),y=bA();yt!==a||Ue!==o?(xd=null,bd=Qt()+500,Ts(a,o)):js=Et(a,o);e:do try{if(lt!==0&&Le!==null){o=Le;var b=Un;t:switch(lt){case 1:lt=0,Un=null,Cs(a,o,b,1);break;case 2:case 9:if(Nj(b)){lt=0,Un=null,wA(o);break}o=function(){lt!==2&<!==9||yt!==a||(lt=7),Kr(a)},b.then(o,o);break e;case 3:lt=7;break e;case 4:lt=5;break e;case 7:Nj(b)?(lt=0,Un=null,wA(o)):(lt=0,Un=null,Cs(a,o,b,7));break;case 5:var C=null;switch(Le.tag){case 26:C=Le.memoizedState;case 5:case 27:var P=Le;if(C?oT(C):P.stateNode.complete){lt=0,Un=null;var U=P.sibling;if(U!==null)Le=U;else{var ee=P.return;ee!==null?(Le=ee,Od(ee)):Le=null}break t}}lt=0,Un=null,Cs(a,o,b,5);break;case 6:lt=0,Un=null,Cs(a,o,b,6);break;case 8:Ag(),Dt=6;break e;default:throw Error(r(462))}}hq();break}catch(oe){vA(a,oe)}while(!0);return wa=io=null,k.H=h,k.A=y,at=u,Le!==null?0:(yt=null,Ue=0,Uf(),Dt)}function hq(){for(;Le!==null&&!Nt();)xA(Le)}function xA(a){var o=FE(a.alternate,a,Ma);a.memoizedProps=a.pendingProps,o===null?Od(a):Le=o}function wA(a){var o=a,u=o.alternate;switch(o.tag){case 15:case 0:o=IE(u,o,o.pendingProps,o.type,void 0,Ue);break;case 11:o=IE(u,o,o.pendingProps,o.type.render,o.ref,Ue);break;case 5:Hv(o);default:VE(u,o),o=Le=bj(o,Ma),o=FE(u,o,Ma)}a.memoizedProps=a.pendingProps,o===null?Od(a):Le=o}function Cs(a,o,u,h){wa=io=null,Hv(o),ys=null,vu=0;var y=o.return;try{if(tq(a,y,o,u,Ue)){Dt=1,cd(a,ar(u,a.current)),Le=null;return}}catch(b){if(y!==null)throw Le=y,b;Dt=1,cd(a,ar(u,a.current)),Le=null;return}o.flags&32768?(Fe||h===1?a=!0:js||(Ue&536870912)!==0?a=!1:(mi=a=!0,(h===2||h===9||h===3||h===6)&&(h=Bn.current,h!==null&&h.tag===13&&(h.flags|=16384))),SA(o,a)):Od(o)}function Od(a){var o=a;do{if((o.flags&32768)!==0){SA(o,mi);return}a=o.return;var u=aq(o.alternate,o,Ma);if(u!==null){Le=u;return}if(o=o.sibling,o!==null){Le=o;return}Le=o=a}while(o!==null);Dt===0&&(Dt=5)}function SA(a,o){do{var u=iq(a.alternate,a);if(u!==null){u.flags&=32767,Le=u;return}if(u=a.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!o&&(a=a.sibling,a!==null)){Le=a;return}Le=a=u}while(a!==null);Dt=6,Le=null}function OA(a,o,u,h,y,b,C,P,U){a.cancelPendingCommit=null;do _d();while(Gt!==0);if((at&6)!==0)throw Error(r(327));if(o!==null){if(o===a.current)throw Error(r(177));if(b=o.lanes|o.childLanes,b|=vv,On(a,u,b,C,P,U),a===yt&&(Le=yt=null,Ue=0),As=o,gi=a,Ra=u,_g=b,jg=y,dA=h,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,gq(Wi,function(){return TA(),null})):(a.callbackNode=null,a.callbackPriority=0),h=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||h){h=k.T,k.T=null,y=q.p,q.p=2,C=at,at|=4;try{oq(a,o,u)}finally{at=C,q.p=y,k.T=h}}Gt=1,_A(),jA(),EA()}}function _A(){if(Gt===1){Gt=0;var a=gi,o=As,u=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||u){u=k.T,k.T=null;var h=q.p;q.p=2;var y=at;at|=4;try{aA(o,a);var b=Bg,C=cj(a.containerInfo),P=b.focusedElem,U=b.selectionRange;if(C!==P&&P&&P.ownerDocument&&uj(P.ownerDocument.documentElement,P)){if(U!==null&&fv(P)){var ee=U.start,oe=U.end;if(oe===void 0&&(oe=ee),"selectionStart"in P)P.selectionStart=ee,P.selectionEnd=Math.min(oe,P.value.length);else{var fe=P.ownerDocument||document,te=fe&&fe.defaultView||window;if(te.getSelection){var re=te.getSelection(),we=P.textContent.length,Ae=Math.min(U.start,we),mt=U.end===void 0?Ae:Math.min(U.end,we);!re.extend&&Ae>mt&&(C=mt,mt=Ae,Ae=C);var Z=lj(P,Ae),G=lj(P,mt);if(Z&&G&&(re.rangeCount!==1||re.anchorNode!==Z.node||re.anchorOffset!==Z.offset||re.focusNode!==G.node||re.focusOffset!==G.offset)){var J=fe.createRange();J.setStart(Z.node,Z.offset),re.removeAllRanges(),Ae>mt?(re.addRange(J),re.extend(G.node,G.offset)):(J.setEnd(G.node,G.offset),re.addRange(J))}}}}for(fe=[],re=P;re=re.parentNode;)re.nodeType===1&&fe.push({element:re,left:re.scrollLeft,top:re.scrollTop});for(typeof P.focus=="function"&&P.focus(),P=0;P<fe.length;P++){var ue=fe[P];ue.element.scrollLeft=ue.left,ue.element.scrollTop=ue.top}}$d=!!zg,Bg=zg=null}finally{at=y,q.p=h,k.T=u}}a.current=o,Gt=2}}function jA(){if(Gt===2){Gt=0;var a=gi,o=As,u=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||u){u=k.T,k.T=null;var h=q.p;q.p=2;var y=at;at|=4;try{JE(a,o.alternate,o)}finally{at=y,q.p=h,k.T=u}}Gt=3}}function EA(){if(Gt===4||Gt===3){Gt=0,er();var a=gi,o=As,u=Ra,h=dA;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?Gt=5:(Gt=0,As=gi=null,AA(a,a.pendingLanes));var y=a.pendingLanes;if(y===0&&(vi=null),_r(u),o=o.stateNode,bn&&typeof bn.onCommitFiberRoot=="function")try{bn.onCommitFiberRoot(Ki,o,void 0,(o.current.flags&128)===128)}catch{}if(h!==null){o=k.T,y=q.p,q.p=2,k.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{k.T=o,q.p=y}}(Ra&3)!==0&&_d(),Kr(a),y=a.pendingLanes,(u&261930)!==0&&(y&42)!==0?a===Eg?Du++:(Du=0,Eg=a):Du=0,Pu(0)}}function AA(a,o){(a.pooledCacheLanes&=o)===0&&(o=a.pooledCache,o!=null&&(a.pooledCache=null,mu(o)))}function _d(){return _A(),jA(),EA(),TA()}function TA(){if(Gt!==5)return!1;var a=gi,o=_g;_g=0;var u=_r(Ra),h=k.T,y=q.p;try{q.p=32>u?32:u,k.T=null,u=jg,jg=null;var b=gi,C=Ra;if(Gt=0,As=gi=null,Ra=0,(at&6)!==0)throw Error(r(331));var P=at;if(at|=4,uA(b.current),oA(b,b.current,C,u),at=P,Pu(0,!1),bn&&typeof bn.onPostCommitFiberRoot=="function")try{bn.onPostCommitFiberRoot(Ki,b)}catch{}return!0}finally{q.p=y,k.T=h,AA(a,o)}}function CA(a,o,u){o=ar(u,o),o=ag(a.stateNode,o,2),a=ci(a,o,2),a!==null&&(Mt(a,2),Kr(a))}function ut(a,o,u){if(a.tag===3)CA(a,a,u);else for(;o!==null;){if(o.tag===3){CA(o,a,u);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(vi===null||!vi.has(h))){a=ar(u,a),u=NE(2),h=ci(o,u,2),h!==null&&(ME(u,h,o,a),Mt(h,2),Kr(h));break}}o=o.return}}function Cg(a,o,u){var h=a.pingCache;if(h===null){h=a.pingCache=new uq;var y=new Set;h.set(o,y)}else y=h.get(o),y===void 0&&(y=new Set,h.set(o,y));y.has(u)||(wg=!0,y.add(u),a=mq.bind(null,a,o,u),o.then(a,a))}function mq(a,o,u){var h=a.pingCache;h!==null&&h.delete(o),a.pingedLanes|=a.suspendedLanes&u,a.warmLanes&=~u,yt===a&&(Ue&u)===u&&(Dt===4||Dt===3&&(Ue&62914560)===Ue&&300>Qt()-yd?(at&2)===0&&Ts(a,0):Sg|=u,Es===Ue&&(Es=0)),Kr(a)}function NA(a,o){o===0&&(o=hn()),a=no(a,o),a!==null&&(Mt(a,o),Kr(a))}function pq(a){var o=a.memoizedState,u=0;o!==null&&(u=o.retryLane),NA(a,u)}function vq(a,o){var u=0;switch(a.tag){case 31:case 13:var h=a.stateNode,y=a.memoizedState;y!==null&&(u=y.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),NA(a,u)}function gq(a,o){return Hr(a,o)}var jd=null,Ns=null,Ng=!1,Ed=!1,Mg=!1,bi=0;function Kr(a){a!==Ns&&a.next===null&&(Ns===null?jd=Ns=a:Ns=Ns.next=a),Ed=!0,Ng||(Ng=!0,bq())}function Pu(a,o){if(!Mg&&Ed){Mg=!0;do for(var u=!1,h=jd;h!==null;){if(a!==0){var y=h.pendingLanes;if(y===0)var b=0;else{var C=h.suspendedLanes,P=h.pingedLanes;b=(1<<31-dn(42|a)+1)-1,b&=y&~(C&~P),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(u=!0,PA(h,b))}else b=Ue,b=Ce(h,h===yt?b:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(b&3)===0||Et(h,b)||(u=!0,PA(h,b));h=h.next}while(u);Mg=!1}}function yq(){MA()}function MA(){Ed=Ng=!1;var a=0;bi!==0&&Cq()&&(a=bi);for(var o=Qt(),u=null,h=jd;h!==null;){var y=h.next,b=RA(h,o);b===0?(h.next=null,u===null?jd=y:u.next=y,y===null&&(Ns=u)):(u=h,(a!==0||(b&3)!==0)&&(Ed=!0)),h=y}Gt!==0&&Gt!==5||Pu(a),bi!==0&&(bi=0)}function RA(a,o){for(var u=a.suspendedLanes,h=a.pingedLanes,y=a.expirationTimes,b=a.pendingLanes&-62914561;0<b;){var C=31-dn(b),P=1<<C,U=y[C];U===-1?((P&u)===0||(P&h)!==0)&&(y[C]=Zt(P,o)):U<=o&&(a.expiredLanes|=P),b&=~P}if(o=yt,u=Ue,u=Ce(a,a===o?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),h=a.callbackNode,u===0||a===o&&(lt===2||lt===9)||a.cancelPendingCommit!==null)return h!==null&&h!==null&&Ln(h),a.callbackNode=null,a.callbackPriority=0;if((u&3)===0||Et(a,u)){if(o=u&-u,o===a.callbackPriority)return o;switch(h!==null&&Ln(h),_r(u)){case 2:case 8:u=Cf;break;case 32:u=Wi;break;case 268435456:u=pa;break;default:u=Wi}return h=DA.bind(null,a),u=Hr(u,h),a.callbackPriority=o,a.callbackNode=u,o}return h!==null&&h!==null&&Ln(h),a.callbackPriority=2,a.callbackNode=null,2}function DA(a,o){if(Gt!==0&&Gt!==5)return a.callbackNode=null,a.callbackPriority=0,null;var u=a.callbackNode;if(_d()&&a.callbackNode!==u)return null;var h=Ue;return h=Ce(a,a===yt?h:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),h===0?null:(mA(a,h,o),RA(a,Qt()),a.callbackNode!=null&&a.callbackNode===u?DA.bind(null,a):null)}function PA(a,o){if(_d())return null;mA(a,o,!0)}function bq(){Mq(function(){(at&6)!==0?Hr(Yi,yq):MA()})}function Rg(){if(bi===0){var a=ps;a===0&&(a=Wo,Wo<<=1,(Wo&261888)===0&&(Wo=256)),bi=a}return bi}function kA(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:Pf(""+a)}function $A(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 xq(a,o,u,h,y){if(o==="submit"&&u&&u.stateNode===y){var b=kA((y[En]||null).action),C=h.submitter;C&&(o=(o=C[En]||null)?kA(o.formAction):C.getAttribute("formAction"),o!==null&&(b=o,C=null));var P=new If("action","action",null,h,y);a.push({event:P,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(bi!==0){var U=C?$A(y,C):new FormData(y);Zv(u,{pending:!0,data:U,method:y.method,action:b},null,U)}}else typeof b=="function"&&(P.preventDefault(),U=C?$A(y,C):new FormData(y),Zv(u,{pending:!0,data:U,method:y.method,action:b},b,U))},currentTarget:y}]})}}for(var Dg=0;Dg<pv.length;Dg++){var Pg=pv[Dg],wq=Pg.toLowerCase(),Sq=Pg[0].toUpperCase()+Pg.slice(1);jr(wq,"on"+Sq)}jr(hj,"onAnimationEnd"),jr(mj,"onAnimationIteration"),jr(pj,"onAnimationStart"),jr("dblclick","onDoubleClick"),jr("focusin","onFocus"),jr("focusout","onBlur"),jr(IB,"onTransitionRun"),jr(zB,"onTransitionStart"),jr(BB,"onTransitionCancel"),jr(vj,"onTransitionEnd"),ts("onMouseEnter",["mouseout","mouseover"]),ts("onMouseLeave",["mouseout","mouseover"]),ts("onPointerEnter",["pointerout","pointerover"]),ts("onPointerLeave",["pointerout","pointerover"]),Zi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Zi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Zi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Zi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Zi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Zi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ku="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(" "),Oq=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ku));function LA(a,o){o=(o&4)!==0;for(var u=0;u<a.length;u++){var h=a[u],y=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],U=P.instance,ee=P.currentTarget;if(P=P.listener,U!==b&&y.isPropagationStopped())break e;b=P,y.currentTarget=ee;try{b(y)}catch(oe){qf(oe)}y.currentTarget=null,b=U}else for(C=0;C<h.length;C++){if(P=h[C],U=P.instance,ee=P.currentTarget,P=P.listener,U!==b&&y.isPropagationStopped())break e;b=P,y.currentTarget=ee;try{b(y)}catch(oe){qf(oe)}y.currentTarget=null,b=U}}}}function Ie(a,o){var u=o[Yp];u===void 0&&(u=o[Yp]=new Set);var h=a+"__bubble";u.has(h)||(IA(o,a,2,!1),u.add(h))}function kg(a,o,u){var h=0;o&&(h|=4),IA(u,a,h,o)}var Ad="_reactListening"+Math.random().toString(36).slice(2);function $g(a){if(!a[Ad]){a[Ad]=!0,M_.forEach(function(u){u!=="selectionchange"&&(Oq.has(u)||kg(u,!1,a),kg(u,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[Ad]||(o[Ad]=!0,kg("selectionchange",!1,o))}}function IA(a,o,u,h){switch(hT(o)){case 2:var y=Qq;break;case 8:y=Zq;break;default:y=Qg}u=y.bind(null,o,u,a),y=void 0,!nv||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(y=!0),h?y!==void 0?a.addEventListener(o,u,{capture:!0,passive:y}):a.addEventListener(o,u,!0):y!==void 0?a.addEventListener(o,u,{passive:y}):a.addEventListener(o,u,!1)}function Lg(a,o,u,h,y){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===y)break;if(C===4)for(C=h.return;C!==null;){var U=C.tag;if((U===3||U===4)&&C.stateNode.containerInfo===y)return;C=C.return}for(;P!==null;){if(C=Zo(P),C===null)return;if(U=C.tag,U===5||U===6||U===26||U===27){h=b=C;continue e}P=P.parentNode}}h=h.return}H_(function(){var ee=b,oe=ev(u),fe=[];e:{var te=gj.get(a);if(te!==void 0){var re=If,we=a;switch(a){case"keypress":if($f(u)===0)break e;case"keydown":case"keyup":re=vB;break;case"focusin":we="focus",re=ov;break;case"focusout":we="blur",re=ov;break;case"beforeblur":case"afterblur":re=ov;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":re=V_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=aB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=bB;break;case hj:case mj:case pj:re=sB;break;case vj:re=wB;break;case"scroll":case"scrollend":re=nB;break;case"wheel":re=OB;break;case"copy":case"cut":case"paste":re=uB;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=W_;break;case"toggle":case"beforetoggle":re=jB}var Ae=(o&4)!==0,mt=!Ae&&(a==="scroll"||a==="scrollend"),Z=Ae?te!==null?te+"Capture":null:te;Ae=[];for(var G=ee,J;G!==null;){var ue=G;if(J=ue.stateNode,ue=ue.tag,ue!==5&&ue!==26&&ue!==27||J===null||Z===null||(ue=ru(G,Z),ue!=null&&Ae.push($u(G,ue,J))),mt)break;G=G.return}0<Ae.length&&(te=new re(te,we,null,u,oe),fe.push({event:te,listeners:Ae}))}}if((o&7)===0){e:{if(te=a==="mouseover"||a==="pointerover",re=a==="mouseout"||a==="pointerout",te&&u!==Jp&&(we=u.relatedTarget||u.fromElement)&&(Zo(we)||we[Qo]))break e;if((re||te)&&(te=oe.window===oe?oe:(te=oe.ownerDocument)?te.defaultView||te.parentWindow:window,re?(we=u.relatedTarget||u.toElement,re=ee,we=we?Zo(we):null,we!==null&&(mt=s(we),Ae=we.tag,we!==mt||Ae!==5&&Ae!==27&&Ae!==6)&&(we=null)):(re=null,we=ee),re!==we)){if(Ae=V_,ue="onMouseLeave",Z="onMouseEnter",G="mouse",(a==="pointerout"||a==="pointerover")&&(Ae=W_,ue="onPointerLeave",Z="onPointerEnter",G="pointer"),mt=re==null?te:nu(re),J=we==null?te:nu(we),te=new Ae(ue,G+"leave",re,u,oe),te.target=mt,te.relatedTarget=J,ue=null,Zo(oe)===ee&&(Ae=new Ae(Z,G+"enter",we,u,oe),Ae.target=J,Ae.relatedTarget=mt,ue=Ae),mt=ue,re&&we)t:{for(Ae=_q,Z=re,G=we,J=0,ue=Z;ue;ue=Ae(ue))J++;ue=0;for(var Ee=G;Ee;Ee=Ae(Ee))ue++;for(;0<J-ue;)Z=Ae(Z),J--;for(;0<ue-J;)G=Ae(G),ue--;for(;J--;){if(Z===G||G!==null&&Z===G.alternate){Ae=Z;break t}Z=Ae(Z),G=Ae(G)}Ae=null}else Ae=null;re!==null&&zA(fe,te,re,Ae,!1),we!==null&&mt!==null&&zA(fe,mt,we,Ae,!0)}}e:{if(te=ee?nu(ee):window,re=te.nodeName&&te.nodeName.toLowerCase(),re==="select"||re==="input"&&te.type==="file")var Qe=nj;else if(ej(te))if(rj)Qe=kB;else{Qe=DB;var _e=RB}else re=te.nodeName,!re||re.toLowerCase()!=="input"||te.type!=="checkbox"&&te.type!=="radio"?ee&&Zp(ee.elementType)&&(Qe=nj):Qe=PB;if(Qe&&(Qe=Qe(a,ee))){tj(fe,Qe,u,oe);break e}_e&&_e(a,te,ee),a==="focusout"&&ee&&te.type==="number"&&ee.memoizedProps.value!=null&&Qp(te,"number",te.value)}switch(_e=ee?nu(ee):window,a){case"focusin":(ej(_e)||_e.contentEditable==="true")&&(ss=_e,dv=ee,fu=null);break;case"focusout":fu=dv=ss=null;break;case"mousedown":hv=!0;break;case"contextmenu":case"mouseup":case"dragend":hv=!1,fj(fe,u,oe);break;case"selectionchange":if(LB)break;case"keydown":case"keyup":fj(fe,u,oe)}var Pe;if(lv)e:{switch(a){case"compositionstart":var He="onCompositionStart";break e;case"compositionend":He="onCompositionEnd";break e;case"compositionupdate":He="onCompositionUpdate";break e}He=void 0}else os?Z_(a,u)&&(He="onCompositionEnd"):a==="keydown"&&u.keyCode===229&&(He="onCompositionStart");He&&(K_&&u.locale!=="ko"&&(os||He!=="onCompositionStart"?He==="onCompositionEnd"&&os&&(Pe=F_()):(ri=oe,rv="value"in ri?ri.value:ri.textContent,os=!0)),_e=Td(ee,He),0<_e.length&&(He=new Y_(He,a,null,u,oe),fe.push({event:He,listeners:_e}),Pe?He.data=Pe:(Pe=J_(u),Pe!==null&&(He.data=Pe)))),(Pe=AB?TB(a,u):CB(a,u))&&(He=Td(ee,"onBeforeInput"),0<He.length&&(_e=new Y_("onBeforeInput","beforeinput",null,u,oe),fe.push({event:_e,listeners:He}),_e.data=Pe)),xq(fe,a,ee,u,oe)}LA(fe,o)})}function $u(a,o,u){return{instance:a,listener:o,currentTarget:u}}function Td(a,o){for(var u=o+"Capture",h=[];a!==null;){var y=a,b=y.stateNode;if(y=y.tag,y!==5&&y!==26&&y!==27||b===null||(y=ru(a,u),y!=null&&h.unshift($u(a,y,b)),y=ru(a,o),y!=null&&h.push($u(a,y,b))),a.tag===3)return h;a=a.return}return[]}function _q(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function zA(a,o,u,h,y){for(var b=o._reactName,C=[];u!==null&&u!==h;){var P=u,U=P.alternate,ee=P.stateNode;if(P=P.tag,U!==null&&U===h)break;P!==5&&P!==26&&P!==27||ee===null||(U=ee,y?(ee=ru(u,b),ee!=null&&C.unshift($u(u,ee,U))):y||(ee=ru(u,b),ee!=null&&C.push($u(u,ee,U)))),u=u.return}C.length!==0&&a.push({event:o,listeners:C})}var jq=/\r\n?/g,Eq=/\u0000|\uFFFD/g;function BA(a){return(typeof a=="string"?a:""+a).replace(jq,`
|
|
49
|
+
`).replace(Eq,"")}function qA(a,o){return o=BA(o),BA(a)===o}function ht(a,o,u,h,y,b){switch(u){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||rs(a,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&rs(a,""+h);break;case"className":Rf(a,"class",h);break;case"tabIndex":Rf(a,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":Rf(a,u,h);break;case"style":q_(a,h,b);break;case"data":if(o!=="object"){Rf(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=Pf(""+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"&&ht(a,o,"name",y.name,y,null),ht(a,o,"formEncType",y.formEncType,y,null),ht(a,o,"formMethod",y.formMethod,y,null),ht(a,o,"formTarget",y.formTarget,y,null)):(ht(a,o,"encType",y.encType,y,null),ht(a,o,"method",y.method,y,null),ht(a,o,"target",y.target,y,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){a.removeAttribute(u);break}h=Pf(""+h),a.setAttribute(u,h);break;case"onClick":h!=null&&(a.onclick=ga);break;case"onScroll":h!=null&&Ie("scroll",a);break;case"onScrollEnd":h!=null&&Ie("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(y.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=Pf(""+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":Ie("beforetoggle",a),Ie("toggle",a),Mf(a,"popover",h);break;case"xlinkActuate":va(a,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":va(a,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":va(a,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":va(a,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":va(a,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":va(a,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":va(a,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":va(a,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":va(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=eB.get(u)||u,Mf(a,u,h))}}function Ig(a,o,u,h,y,b){switch(u){case"style":q_(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(y.children!=null)throw Error(r(60));a.innerHTML=u}}break;case"children":typeof h=="string"?rs(a,h):(typeof h=="number"||typeof h=="bigint")&&rs(a,""+h);break;case"onScroll":h!=null&&Ie("scroll",a);break;case"onScrollEnd":h!=null&&Ie("scrollend",a);break;case"onClick":h!=null&&(a.onclick=ga);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!R_.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(y=u.endsWith("Capture"),o=u.slice(2,y?u.length-7:void 0),b=a[En]||null,b=b!=null?b[u]:null,typeof b=="function"&&a.removeEventListener(o,b,y),typeof h=="function")){typeof b!="function"&&b!==null&&(u in a?a[u]=null:a.hasAttribute(u)&&a.removeAttribute(u)),a.addEventListener(o,h,y);break e}u in a?a[u]=h:h===!0?a.setAttribute(u,""):Mf(a,u,h)}}}function ln(a,o,u){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ie("error",a),Ie("load",a);var h=!1,y=!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":y=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:ht(a,o,b,C,u,null)}}y&&ht(a,o,"srcSet",u.srcSet,u,null),h&&ht(a,o,"src",u.src,u,null);return;case"input":Ie("invalid",a);var P=b=C=y=null,U=null,ee=null;for(h in u)if(u.hasOwnProperty(h)){var oe=u[h];if(oe!=null)switch(h){case"name":y=oe;break;case"type":C=oe;break;case"checked":U=oe;break;case"defaultChecked":ee=oe;break;case"value":b=oe;break;case"defaultValue":P=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(r(137,o));break;default:ht(a,o,h,oe,u,null)}}L_(a,b,P,U,ee,C,y,!1);return;case"select":Ie("invalid",a),h=C=b=null;for(y in u)if(u.hasOwnProperty(y)&&(P=u[y],P!=null))switch(y){case"value":b=P;break;case"defaultValue":C=P;break;case"multiple":h=P;default:ht(a,o,y,P,u,null)}o=b,u=C,a.multiple=!!h,o!=null?ns(a,!!h,o,!1):u!=null&&ns(a,!!h,u,!0);return;case"textarea":Ie("invalid",a),b=y=h=null;for(C in u)if(u.hasOwnProperty(C)&&(P=u[C],P!=null))switch(C){case"value":h=P;break;case"defaultValue":y=P;break;case"children":b=P;break;case"dangerouslySetInnerHTML":if(P!=null)throw Error(r(91));break;default:ht(a,o,C,P,u,null)}z_(a,h,y,b);return;case"option":for(U in u)if(u.hasOwnProperty(U)&&(h=u[U],h!=null))switch(U){case"selected":a.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:ht(a,o,U,h,u,null)}return;case"dialog":Ie("beforetoggle",a),Ie("toggle",a),Ie("cancel",a),Ie("close",a);break;case"iframe":case"object":Ie("load",a);break;case"video":case"audio":for(h=0;h<ku.length;h++)Ie(ku[h],a);break;case"image":Ie("error",a),Ie("load",a);break;case"details":Ie("toggle",a);break;case"embed":case"source":case"link":Ie("error",a),Ie("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:ht(a,o,ee,h,u,null)}return;default:if(Zp(o)){for(oe in u)u.hasOwnProperty(oe)&&(h=u[oe],h!==void 0&&Ig(a,o,oe,h,u,void 0));return}}for(P in u)u.hasOwnProperty(P)&&(h=u[P],h!=null&&ht(a,o,P,h,u,null))}function Aq(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 y=null,b=null,C=null,P=null,U=null,ee=null,oe=null;for(re in u){var fe=u[re];if(u.hasOwnProperty(re)&&fe!=null)switch(re){case"checked":break;case"value":break;case"defaultValue":U=fe;default:h.hasOwnProperty(re)||ht(a,o,re,null,h,fe)}}for(var te in h){var re=h[te];if(fe=u[te],h.hasOwnProperty(te)&&(re!=null||fe!=null))switch(te){case"type":b=re;break;case"name":y=re;break;case"checked":ee=re;break;case"defaultChecked":oe=re;break;case"value":C=re;break;case"defaultValue":P=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(r(137,o));break;default:re!==fe&&ht(a,o,te,re,h,fe)}}Xp(a,C,P,U,ee,oe,b,y);return;case"select":re=C=P=te=null;for(b in u)if(U=u[b],u.hasOwnProperty(b)&&U!=null)switch(b){case"value":break;case"multiple":re=U;default:h.hasOwnProperty(b)||ht(a,o,b,null,h,U)}for(y in h)if(b=h[y],U=u[y],h.hasOwnProperty(y)&&(b!=null||U!=null))switch(y){case"value":te=b;break;case"defaultValue":P=b;break;case"multiple":C=b;default:b!==U&&ht(a,o,y,b,h,U)}o=P,u=C,h=re,te!=null?ns(a,!!u,te,!1):!!h!=!!u&&(o!=null?ns(a,!!u,o,!0):ns(a,!!u,u?[]:"",!1));return;case"textarea":re=te=null;for(P in u)if(y=u[P],u.hasOwnProperty(P)&&y!=null&&!h.hasOwnProperty(P))switch(P){case"value":break;case"children":break;default:ht(a,o,P,null,h,y)}for(C in h)if(y=h[C],b=u[C],h.hasOwnProperty(C)&&(y!=null||b!=null))switch(C){case"value":te=y;break;case"defaultValue":re=y;break;case"children":break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:y!==b&&ht(a,o,C,y,h,b)}I_(a,te,re);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:ht(a,o,we,null,h,te)}for(U in h)if(te=h[U],re=u[U],h.hasOwnProperty(U)&&te!==re&&(te!=null||re!=null))switch(U){case"selected":a.selected=te&&typeof te!="function"&&typeof te!="symbol";break;default:ht(a,o,U,te,h,re)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ae in u)te=u[Ae],u.hasOwnProperty(Ae)&&te!=null&&!h.hasOwnProperty(Ae)&&ht(a,o,Ae,null,h,te);for(ee in h)if(te=h[ee],re=u[ee],h.hasOwnProperty(ee)&&te!==re&&(te!=null||re!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(r(137,o));break;default:ht(a,o,ee,te,h,re)}return;default:if(Zp(o)){for(var mt in u)te=u[mt],u.hasOwnProperty(mt)&&te!==void 0&&!h.hasOwnProperty(mt)&&Ig(a,o,mt,void 0,h,te);for(oe in h)te=h[oe],re=u[oe],!h.hasOwnProperty(oe)||te===re||te===void 0&&re===void 0||Ig(a,o,oe,te,h,re);return}}for(var Z in u)te=u[Z],u.hasOwnProperty(Z)&&te!=null&&!h.hasOwnProperty(Z)&&ht(a,o,Z,null,h,te);for(fe in h)te=h[fe],re=u[fe],!h.hasOwnProperty(fe)||te===re||te==null&&re==null||ht(a,o,fe,te,h,re)}function UA(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Tq(){if(typeof performance.getEntriesByType=="function"){for(var a=0,o=0,u=performance.getEntriesByType("resource"),h=0;h<u.length;h++){var y=u[h],b=y.transferSize,C=y.initiatorType,P=y.duration;if(b&&P&&UA(C)){for(C=0,P=y.responseEnd,h+=1;h<u.length;h++){var U=u[h],ee=U.startTime;if(ee>P)break;var oe=U.transferSize,fe=U.initiatorType;oe&&UA(fe)&&(U=U.responseEnd,C+=oe*(U<P?1:(P-ee)/(U-ee)))}if(--h,o+=8*(b+C)/(y.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 zg=null,Bg=null;function Cd(a){return a.nodeType===9?a:a.ownerDocument}function HA(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 FA(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 qg(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 Ug=null;function Cq(){var a=window.event;return a&&a.type==="popstate"?a===Ug?!1:(Ug=a,!0):(Ug=null,!1)}var GA=typeof setTimeout=="function"?setTimeout:void 0,Nq=typeof clearTimeout=="function"?clearTimeout:void 0,VA=typeof Promise=="function"?Promise:void 0,Mq=typeof queueMicrotask=="function"?queueMicrotask:typeof VA<"u"?function(a){return VA.resolve(null).then(a).catch(Rq)}:GA;function Rq(a){setTimeout(function(){throw a})}function xi(a){return a==="head"}function YA(a,o){var u=o,h=0;do{var y=u.nextSibling;if(a.removeChild(u),y&&y.nodeType===8)if(u=y.data,u==="/$"||u==="/&"){if(h===0){a.removeChild(y),Ps(o);return}h--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")h++;else if(u==="html")Lu(a.ownerDocument.documentElement);else if(u==="head"){u=a.ownerDocument.head,Lu(u);for(var b=u.firstChild;b;){var C=b.nextSibling,P=b.nodeName;b[tu]||P==="SCRIPT"||P==="STYLE"||P==="LINK"&&b.rel.toLowerCase()==="stylesheet"||u.removeChild(b),b=C}}else u==="body"&&Lu(a.ownerDocument.body);u=y}while(u);Ps(o)}function WA(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 Hg(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":Hg(u),Wp(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}a.removeChild(u)}}function Dq(a,o,u,h){for(;a.nodeType===1;){var y=u;if(a.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(h){if(!a[tu])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!==y.rel||a.getAttribute("href")!==(y.href==null||y.href===""?null:y.href)||a.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin)||a.getAttribute("title")!==(y.title==null?null:y.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(b=a.getAttribute("src"),(b!==(y.src==null?null:y.src)||a.getAttribute("type")!==(y.type==null?null:y.type)||a.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin))&&b&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(o==="input"&&a.type==="hidden"){var b=y.name==null?null:""+y.name;if(y.type==="hidden"&&a.getAttribute("name")===b)return a}else return a;if(a=ur(a.nextSibling),a===null)break}return null}function Pq(a,o,u){if(o==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!u||(a=ur(a.nextSibling),a===null))return null;return a}function KA(a,o){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!o||(a=ur(a.nextSibling),a===null))return null;return a}function Fg(a){return a.data==="$?"||a.data==="$~"}function Gg(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function kq(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 ur(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 Vg=null;function XA(a){a=a.nextSibling;for(var o=0;a;){if(a.nodeType===8){var u=a.data;if(u==="/$"||u==="/&"){if(o===0)return ur(a.nextSibling);o--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||o++}a=a.nextSibling}return null}function QA(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 ZA(a,o,u){switch(o=Cd(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 Lu(a){for(var o=a.attributes;o.length;)a.removeAttributeNode(o[0]);Wp(a)}var cr=new Map,JA=new Set;function Nd(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var Da=q.d;q.d={f:$q,r:Lq,D:Iq,C:zq,L:Bq,m:qq,X:Hq,S:Uq,M:Fq};function $q(){var a=Da.f(),o=wd();return a||o}function Lq(a){var o=Jo(a);o!==null&&o.tag===5&&o.type==="form"?vE(o):Da.r(a)}var Ms=typeof document>"u"?null:document;function eT(a,o,u){var h=Ms;if(h&&typeof o=="string"&&o){var y=nr(o);y='link[rel="'+a+'"][href="'+y+'"]',typeof u=="string"&&(y+='[crossorigin="'+u+'"]'),JA.has(y)||(JA.add(y),a={rel:a,crossOrigin:u,href:o},h.querySelector(y)===null&&(o=h.createElement("link"),ln(o,"link",a),Jt(o),h.head.appendChild(o)))}}function Iq(a){Da.D(a),eT("dns-prefetch",a,null)}function zq(a,o){Da.C(a,o),eT("preconnect",a,o)}function Bq(a,o,u){Da.L(a,o,u);var h=Ms;if(h&&a&&o){var y='link[rel="preload"][as="'+nr(o)+'"]';o==="image"&&u&&u.imageSrcSet?(y+='[imagesrcset="'+nr(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(y+='[imagesizes="'+nr(u.imageSizes)+'"]')):y+='[href="'+nr(a)+'"]';var b=y;switch(o){case"style":b=Rs(a);break;case"script":b=Ds(a)}cr.has(b)||(a=m({rel:"preload",href:o==="image"&&u&&u.imageSrcSet?void 0:a,as:o},u),cr.set(b,a),h.querySelector(y)!==null||o==="style"&&h.querySelector(Iu(b))||o==="script"&&h.querySelector(zu(b))||(o=h.createElement("link"),ln(o,"link",a),Jt(o),h.head.appendChild(o)))}}function qq(a,o){Da.m(a,o);var u=Ms;if(u&&a){var h=o&&typeof o.as=="string"?o.as:"script",y='link[rel="modulepreload"][as="'+nr(h)+'"][href="'+nr(a)+'"]',b=y;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=Ds(a)}if(!cr.has(b)&&(a=m({rel:"modulepreload",href:a},o),cr.set(b,a),u.querySelector(y)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(zu(b)))return}h=u.createElement("link"),ln(h,"link",a),Jt(h),u.head.appendChild(h)}}}function Uq(a,o,u){Da.S(a,o,u);var h=Ms;if(h&&a){var y=es(h).hoistableStyles,b=Rs(a);o=o||"default";var C=y.get(b);if(!C){var P={loading:0,preload:null};if(C=h.querySelector(Iu(b)))P.loading=5;else{a=m({rel:"stylesheet",href:a,"data-precedence":o},u),(u=cr.get(b))&&Yg(a,u);var U=C=h.createElement("link");Jt(U),ln(U,"link",a),U._p=new Promise(function(ee,oe){U.onload=ee,U.onerror=oe}),U.addEventListener("load",function(){P.loading|=1}),U.addEventListener("error",function(){P.loading|=2}),P.loading|=4,Md(C,o,h)}C={type:"stylesheet",instance:C,count:1,state:P},y.set(b,C)}}}function Hq(a,o){Da.X(a,o);var u=Ms;if(u&&a){var h=es(u).hoistableScripts,y=Ds(a),b=h.get(y);b||(b=u.querySelector(zu(y)),b||(a=m({src:a,async:!0},o),(o=cr.get(y))&&Wg(a,o),b=u.createElement("script"),Jt(b),ln(b,"link",a),u.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(y,b))}}function Fq(a,o){Da.M(a,o);var u=Ms;if(u&&a){var h=es(u).hoistableScripts,y=Ds(a),b=h.get(y);b||(b=u.querySelector(zu(y)),b||(a=m({src:a,async:!0,type:"module"},o),(o=cr.get(y))&&Wg(a,o),b=u.createElement("script"),Jt(b),ln(b,"link",a),u.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(y,b))}}function tT(a,o,u,h){var y=(y=ge.current)?Nd(y):null;if(!y)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(o=Rs(u.href),u=es(y).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=Rs(u.href);var b=es(y).hoistableStyles,C=b.get(a);if(C||(y=y.ownerDocument||y,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(a,C),(b=y.querySelector(Iu(a)))&&!b._p&&(C.instance=b,C.state.loading=5),cr.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},cr.set(a,u),b||Gq(y,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=Ds(u),u=es(y).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 Rs(a){return'href="'+nr(a)+'"'}function Iu(a){return'link[rel="stylesheet"]['+a+"]"}function nT(a){return m({},a,{"data-precedence":a.precedence,precedence:null})}function Gq(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}),ln(o,"link",u),Jt(o),a.head.appendChild(o))}function Ds(a){return'[src="'+nr(a)+'"]'}function zu(a){return"script[async]"+a}function rT(a,o,u){if(o.count++,o.instance===null)switch(o.type){case"style":var h=a.querySelector('style[data-href~="'+nr(u.href)+'"]');if(h)return o.instance=h,Jt(h),h;var y=m({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return h=(a.ownerDocument||a).createElement("style"),Jt(h),ln(h,"style",y),Md(h,u.precedence,a),o.instance=h;case"stylesheet":y=Rs(u.href);var b=a.querySelector(Iu(y));if(b)return o.state.loading|=4,o.instance=b,Jt(b),b;h=nT(u),(y=cr.get(y))&&Yg(h,y),b=(a.ownerDocument||a).createElement("link"),Jt(b);var C=b;return C._p=new Promise(function(P,U){C.onload=P,C.onerror=U}),ln(b,"link",h),o.state.loading|=4,Md(b,u.precedence,a),o.instance=b;case"script":return b=Ds(u.src),(y=a.querySelector(zu(b)))?(o.instance=y,Jt(y),y):(h=u,(y=cr.get(b))&&(h=m({},u),Wg(h,y)),a=a.ownerDocument||a,y=a.createElement("script"),Jt(y),ln(y,"link",h),a.head.appendChild(y),o.instance=y);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]'),y=h.length?h[h.length-1]:null,b=y,C=0;C<h.length;C++){var P=h[C];if(P.dataset.precedence===o)b=P;else if(b!==y)break}b?b.parentNode.insertBefore(a,b.nextSibling):(o=u.nodeType===9?u.head:u,o.insertBefore(a,o.firstChild))}function Yg(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.title==null&&(a.title=o.title)}function Wg(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.integrity==null&&(a.integrity=o.integrity)}var Rd=null;function aT(a,o,u){if(Rd===null){var h=new Map,y=Rd=new Map;y.set(u,h)}else y=Rd,h=y.get(u),h||(h=new Map,y.set(u,h));if(h.has(a))return h;for(h.set(a,null),u=u.getElementsByTagName(a),y=0;y<u.length;y++){var b=u[y];if(!(b[tu]||b[rn]||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 iT(a,o,u){a=a.ownerDocument||a,a.head.insertBefore(u,o==="title"?a.querySelector("head > title"):null)}function Vq(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 oT(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function Yq(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 y=Rs(h.href),b=o.querySelector(Iu(y));if(b){o=b._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(a.count++,a=Dd.bind(a),o.then(a,a)),u.state.loading|=4,u.instance=b,Jt(b);return}b=o.ownerDocument||o,h=nT(h),(y=cr.get(y))&&Yg(h,y),b=b.createElement("link"),Jt(b);var C=b;C._p=new Promise(function(P,U){C.onload=P,C.onerror=U}),ln(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=Dd.bind(a),o.addEventListener("load",u),o.addEventListener("error",u))}}var Kg=0;function Wq(a,o){return a.stylesheets&&a.count===0&&kd(a,a.stylesheets),0<a.count||0<a.imgCount?function(u){var h=setTimeout(function(){if(a.stylesheets&&kd(a,a.stylesheets),a.unsuspend){var b=a.unsuspend;a.unsuspend=null,b()}},6e4+o);0<a.imgBytes&&Kg===0&&(Kg=62500*Tq());var y=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&kd(a,a.stylesheets),a.unsuspend)){var b=a.unsuspend;a.unsuspend=null,b()}},(a.imgBytes>Kg?50:800)+o);return a.unsuspend=u,function(){a.unsuspend=null,clearTimeout(h),clearTimeout(y)}}:null}function Dd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)kd(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var Pd=null;function kd(a,o){a.stylesheets=null,a.unsuspend!==null&&(a.count++,Pd=new Map,o.forEach(Kq,a),Pd=null,Dd.call(a))}function Kq(a,o){if(!(o.state.loading&4)){var u=Pd.get(a);if(u)var h=u.get(null);else{u=new Map,Pd.set(a,u);for(var y=a.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<y.length;b++){var C=y[b];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(u.set(C.dataset.precedence,C),h=C)}h&&u.set(null,h)}y=o.instance,C=y.getAttribute("data-precedence"),b=u.get(C)||h,b===h&&u.set(null,y),u.set(C,y),this.count++,h=Dd.bind(this),y.addEventListener("load",h),y.addEventListener("error",h),b?b.parentNode.insertBefore(y,b.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(y,a.firstChild)),o.state.loading|=4}}var Bu={$$typeof:A,Provider:null,Consumer:null,_currentValue:B,_currentValue2:B,_threadCount:0};function Xq(a,o,u,h,y,b,C,P,U){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=ti(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ti(0),this.hiddenUpdates=ti(null),this.identifierPrefix=h,this.onUncaughtError=y,this.onCaughtError=b,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map}function sT(a,o,u,h,y,b,C,P,U,ee,oe,fe){return a=new Xq(a,o,u,C,U,ee,oe,fe,P),o=1,b===!0&&(o|=24),b=zn(3,null,null,o),a.current=b,b.stateNode=a,o=Tv(),o.refCount++,a.pooledCache=o,o.refCount++,b.memoizedState={element:h,isDehydrated:u,cache:o},Rv(b),a}function lT(a){return a?(a=cs,a):cs}function uT(a,o,u,h,y,b){y=lT(y),h.context===null?h.context=y:h.pendingContext=y,h=ui(o),h.payload={element:u},b=b===void 0?null:b,b!==null&&(h.callback=b),u=ci(a,h,o),u!==null&&(Rn(u,a,o),yu(u,a,o))}function cT(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var u=a.retryLane;a.retryLane=u!==0&&u<o?u:o}}function Xg(a,o){cT(a,o),(a=a.alternate)&&cT(a,o)}function fT(a){if(a.tag===13||a.tag===31){var o=no(a,67108864);o!==null&&Rn(o,a,67108864),Xg(a,67108864)}}function dT(a){if(a.tag===13||a.tag===31){var o=Fn();o=Xo(o);var u=no(a,o);u!==null&&Rn(u,a,o),Xg(a,o)}}var $d=!0;function Qq(a,o,u,h){var y=k.T;k.T=null;var b=q.p;try{q.p=2,Qg(a,o,u,h)}finally{q.p=b,k.T=y}}function Zq(a,o,u,h){var y=k.T;k.T=null;var b=q.p;try{q.p=8,Qg(a,o,u,h)}finally{q.p=b,k.T=y}}function Qg(a,o,u,h){if($d){var y=Zg(h);if(y===null)Lg(a,o,h,Ld,u),mT(a,h);else if(e6(y,a,o,u,h))h.stopPropagation();else if(mT(a,h),o&4&&-1<Jq.indexOf(a)){for(;y!==null;){var b=Jo(y);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var C=Gr(b.pendingLanes);if(C!==0){var P=b;for(P.pendingLanes|=2,P.entangledLanes|=2;C;){var U=1<<31-dn(C);P.entanglements[1]|=U,C&=~U}Kr(b),(at&6)===0&&(bd=Qt()+500,Pu(0))}}break;case 31:case 13:P=no(b,2),P!==null&&Rn(P,b,2),wd(),Xg(b,2)}if(b=Zg(h),b===null&&Lg(a,o,h,Ld,u),b===y)break;y=b}y!==null&&h.stopPropagation()}else Lg(a,o,h,null,u)}}function Zg(a){return a=ev(a),Jg(a)}var Ld=null;function Jg(a){if(Ld=null,a=Zo(a),a!==null){var o=s(a);if(o===null)a=null;else{var u=o.tag;if(u===13){if(a=l(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 Ld=a,null}function hT(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(Yo()){case Yi:return 2;case Cf:return 8;case Wi:case Jl:return 32;case pa:return 268435456;default:return 32}default:return 32}}var ey=!1,wi=null,Si=null,Oi=null,qu=new Map,Uu=new Map,_i=[],Jq="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 mT(a,o){switch(a){case"focusin":case"focusout":wi=null;break;case"dragenter":case"dragleave":Si=null;break;case"mouseover":case"mouseout":Oi=null;break;case"pointerover":case"pointerout":qu.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Uu.delete(o.pointerId)}}function Hu(a,o,u,h,y,b){return a===null||a.nativeEvent!==b?(a={blockedOn:o,domEventName:u,eventSystemFlags:h,nativeEvent:b,targetContainers:[y]},o!==null&&(o=Jo(o),o!==null&&fT(o)),a):(a.eventSystemFlags|=h,o=a.targetContainers,y!==null&&o.indexOf(y)===-1&&o.push(y),a)}function e6(a,o,u,h,y){switch(o){case"focusin":return wi=Hu(wi,a,o,u,h,y),!0;case"dragenter":return Si=Hu(Si,a,o,u,h,y),!0;case"mouseover":return Oi=Hu(Oi,a,o,u,h,y),!0;case"pointerover":var b=y.pointerId;return qu.set(b,Hu(qu.get(b)||null,a,o,u,h,y)),!0;case"gotpointercapture":return b=y.pointerId,Uu.set(b,Hu(Uu.get(b)||null,a,o,u,h,y)),!0}return!1}function pT(a){var o=Zo(a.target);if(o!==null){var u=s(o);if(u!==null){if(o=u.tag,o===13){if(o=l(u),o!==null){a.blockedOn=o,C_(a.priority,function(){dT(u)});return}}else if(o===31){if(o=c(u),o!==null){a.blockedOn=o,C_(a.priority,function(){dT(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 Id(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var u=Zg(a.nativeEvent);if(u===null){u=a.nativeEvent;var h=new u.constructor(u.type,u);Jp=h,u.target.dispatchEvent(h),Jp=null}else return o=Jo(u),o!==null&&fT(o),a.blockedOn=u,!1;o.shift()}return!0}function vT(a,o,u){Id(a)&&u.delete(o)}function t6(){ey=!1,wi!==null&&Id(wi)&&(wi=null),Si!==null&&Id(Si)&&(Si=null),Oi!==null&&Id(Oi)&&(Oi=null),qu.forEach(vT),Uu.forEach(vT)}function zd(a,o){a.blockedOn===o&&(a.blockedOn=null,ey||(ey=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,t6)))}var Bd=null;function gT(a){Bd!==a&&(Bd=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Bd===a&&(Bd=null);for(var o=0;o<a.length;o+=3){var u=a[o],h=a[o+1],y=a[o+2];if(typeof h!="function"){if(Jg(h||u)===null)continue;break}var b=Jo(u);b!==null&&(a.splice(o,3),o-=3,Zv(b,{pending:!0,data:y,method:u.method,action:h},h,y))}}))}function Ps(a){function o(U){return zd(U,a)}wi!==null&&zd(wi,a),Si!==null&&zd(Si,a),Oi!==null&&zd(Oi,a),qu.forEach(o),Uu.forEach(o);for(var u=0;u<_i.length;u++){var h=_i[u];h.blockedOn===a&&(h.blockedOn=null)}for(;0<_i.length&&(u=_i[0],u.blockedOn===null);)pT(u),u.blockedOn===null&&_i.shift();if(u=(a.ownerDocument||a).$$reactFormReplay,u!=null)for(h=0;h<u.length;h+=3){var y=u[h],b=u[h+1],C=y[En]||null;if(typeof b=="function")C||gT(u);else if(C){var P=null;if(b&&b.hasAttribute("formAction")){if(y=b,C=b[En]||null)P=C.formAction;else if(Jg(y)!==null)continue}else P=C.action;typeof P=="function"?u[h+1]=P:(u.splice(h,3),h-=3),gT(u)}}}function yT(){function a(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(C){return y=C})},focusReset:"manual",scroll:"manual"})}function o(){y!==null&&(y(),y=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,y=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),y!==null&&(y(),y=null)}}}function ty(a){this._internalRoot=a}qd.prototype.render=ty.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error(r(409));var u=o.current,h=Fn();uT(u,h,a,o,null,null)},qd.prototype.unmount=ty.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;uT(a.current,2,null,a,null,null),wd(),o[Qo]=null}};function qd(a){this._internalRoot=a}qd.prototype.unstable_scheduleHydration=function(a){if(a){var o=Vp();a={blockedOn:null,target:a,priority:o};for(var u=0;u<_i.length&&o!==0&&o<_i[u].priority;u++);_i.splice(u,0,a),u===0&&pT(a)}};var bT=t.version;if(bT!=="19.2.3")throw Error(r(527,bT,"19.2.3"));q.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?v(a):null,a=a===null?null:a.stateNode,a};var n6={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ud=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ud.isDisabled&&Ud.supportsFiber)try{Ki=Ud.inject(n6),bn=Ud}catch{}}return Gu.createRoot=function(a,o){if(!i(a))throw Error(r(299));var u=!1,h="",y=EE,b=AE,C=TE;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(y=o.onUncaughtError),o.onCaughtError!==void 0&&(b=o.onCaughtError),o.onRecoverableError!==void 0&&(C=o.onRecoverableError)),o=sT(a,1,!1,null,null,u,h,null,y,b,C,yT),a[Qo]=o.current,$g(a),new ty(o)},Gu.hydrateRoot=function(a,o,u){if(!i(a))throw Error(r(299));var h=!1,y="",b=EE,C=AE,P=TE,U=null;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(y=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&&(U=u.formState)),o=sT(a,1,!0,o,u??null,h,y,U,b,C,P,yT),o.context=lT(null),u=o.current,h=Fn(),h=Xo(h),y=ui(h),y.callback=null,ci(u,y,h),u=h,o.current.lanes=u,Mt(o,u),Kr(o),a[Qo]=o.current,$g(a),new qd(o)},Gu.version="19.2.3",Gu}var CT;function d6(){if(CT)return ay.exports;CT=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(),ay.exports=f6(),ay.exports}var h6=d6();/**
|
|
50
|
+
* react-router v7.11.0
|
|
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 NT="popstate";function m6(e={}){function t(r,i){let{pathname:s,search:l,hash:c}=r.location;return Cw("",{pathname:s,search:l,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:gc(i)}return v6(t,n,null,e)}function Ct(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function br(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function p6(){return Math.random().toString(36).substring(2,10)}function MT(e,t){return{usr:e.state,key:e.key,idx:t}}function Cw(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Dl(t):t,state:n,key:t&&t.key||r||p6()}}function gc({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 Dl(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 v6(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:s=!1}=r,l=i.history,c="POP",f=null,d=v();d==null&&(d=0,l.replaceState({...l.state,idx:d},""));function v(){return(l.state||{idx:null}).idx}function m(){c="POP";let w=v(),j=w==null?null:w-d;d=w,f&&f({action:c,location:S.location,delta:j})}function g(w,j){c="PUSH";let E=Cw(S.location,w,j);d=v()+1;let A=MT(E,d),M=S.createHref(E);try{l.pushState(A,"",M)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;i.location.assign(M)}s&&f&&f({action:c,location:S.location,delta:1})}function x(w,j){c="REPLACE";let E=Cw(S.location,w,j);d=v();let A=MT(E,d),M=S.createHref(E);l.replaceState(A,"",M),s&&f&&f({action:c,location:S.location,delta:0})}function _(w){return g6(w)}let S={get action(){return c},get location(){return e(i,l)},listen(w){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(NT,m),f=w,()=>{i.removeEventListener(NT,m),f=null}},createHref(w){return t(i,w)},createURL:_,encodeLocation(w){let j=_(w);return{pathname:j.pathname,search:j.search,hash:j.hash}},push:g,replace:x,go(w){return l.go(w)}};return S}function g6(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Ct(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:gc(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Ak(e,t,n="/"){return y6(e,t,n,!1)}function y6(e,t,n,r){let i=typeof t=="string"?Dl(t):t,s=Ha(i.pathname||"/",n);if(s==null)return null;let l=Tk(e);b6(l);let c=null;for(let f=0;c==null&&f<l.length;++f){let d=N6(s);c=T6(l[f],d,r)}return c}function Tk(e,t=[],n=[],r="",i=!1){let s=(l,c,f=i,d)=>{let v={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(r)&&f)return;Ct(v.relativePath.startsWith(r),`Absolute route path "${v.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(r.length)}let m=za([r,v.relativePath]),g=n.concat(v);l.children&&l.children.length>0&&(Ct(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),Tk(l.children,t,g,m,f)),!(l.path==null&&!l.index)&&t.push({path:m,score:E6(m,l.index),routesMeta:g})};return e.forEach((l,c)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))s(l,c);else for(let d of Ck(l.path))s(l,c,!0,d)}),t}function Ck(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let l=Ck(r.join("/")),c=[];return c.push(...l.map(f=>f===""?s:[s,f].join("/"))),i&&c.push(...l),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function b6(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:A6(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var x6=/^:[\w-]+$/,w6=3,S6=2,O6=1,_6=10,j6=-2,RT=e=>e==="*";function E6(e,t){let n=e.split("/"),r=n.length;return n.some(RT)&&(r+=j6),t&&(r+=S6),n.filter(i=>!RT(i)).reduce((i,s)=>i+(x6.test(s)?w6:s===""?O6:_6),r)}function A6(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 T6(e,t,n=!1){let{routesMeta:r}=e,i={},s="/",l=[];for(let c=0;c<r.length;++c){let f=r[c],d=c===r.length-1,v=s==="/"?t:t.slice(s.length)||"/",m=bh({path:f.relativePath,caseSensitive:f.caseSensitive,end:d},v),g=f.route;if(!m&&d&&n&&!r[r.length-1].route.index&&(m=bh({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},v)),!m)return null;Object.assign(i,m.params),l.push({params:i,pathname:za([s,m.pathname]),pathnameBase:P6(za([s,m.pathnameBase])),route:g}),m.pathnameBase!=="/"&&(s=za([s,m.pathnameBase]))}return l}function bh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=C6(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],l=s.replace(/(.)\/+$/,"$1"),c=i.slice(1);return{params:r.reduce((d,{paramName:v,isOptional:m},g)=>{if(v==="*"){let _=c[g]||"";l=s.slice(0,s.length-_.length).replace(/(.)\/+$/,"$1")}const x=c[g];return m&&!x?d[v]=void 0:d[v]=(x||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:l,pattern:e}}function C6(e,t=!1,n=!0){br(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,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 N6(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return br(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ha(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var Nk=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,M6=e=>Nk.test(e);function R6(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Dl(e):e,s;if(n)if(M6(n))s=n;else{if(n.includes("//")){let l=n;n=n.replace(/\/\/+/g,"/"),br(!1,`Pathnames cannot have embedded double slashes - normalizing ${l} -> ${n}`)}n.startsWith("/")?s=DT(n.substring(1),"/"):s=DT(n,t)}else s=t;return{pathname:s,search:k6(r),hash:$6(i)}}function DT(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 ly(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 D6(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function _S(e){let t=D6(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function jS(e,t,n,r=!1){let i;typeof e=="string"?i=Dl(e):(i={...e},Ct(!i.pathname||!i.pathname.includes("?"),ly("?","pathname","search",i)),Ct(!i.pathname||!i.pathname.includes("#"),ly("#","pathname","hash",i)),Ct(!i.search||!i.search.includes("#"),ly("#","search","hash",i)));let s=e===""||i.pathname==="",l=s?"/":i.pathname,c;if(l==null)c=n;else{let m=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),m-=1;i.pathname=g.join("/")}c=m>=0?t[m]:"/"}let f=R6(i,c),d=l&&l!=="/"&&l.endsWith("/"),v=(s||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(d||v)&&(f.pathname+="/"),f}var za=e=>e.join("/").replace(/\/\/+/g,"/"),P6=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),k6=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$6=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,L6=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function I6(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function z6(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Mk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Rk(e,t){let n=e;if(typeof n!="string"||!Nk.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Mk)try{let s=new URL(window.location.href),l=n.startsWith("//")?new URL(s.protocol+n):new URL(n),c=Ha(l.pathname,t);l.origin===s.origin&&c!=null?n=c+l.search+l.hash:i=!0}catch{br(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Dk=["POST","PUT","PATCH","DELETE"];new Set(Dk);var B6=["GET",...Dk];new Set(B6);var Pl=O.createContext(null);Pl.displayName="DataRouter";var Lm=O.createContext(null);Lm.displayName="DataRouterState";var q6=O.createContext(!1),Pk=O.createContext({isTransitioning:!1});Pk.displayName="ViewTransition";var U6=O.createContext(new Map);U6.displayName="Fetchers";var H6=O.createContext(null);H6.displayName="Await";var Jn=O.createContext(null);Jn.displayName="Navigation";var of=O.createContext(null);of.displayName="Location";var Ir=O.createContext({outlet:null,matches:[],isDataRoute:!1});Ir.displayName="Route";var ES=O.createContext(null);ES.displayName="RouteError";var kk="REACT_ROUTER_ERROR",F6="REDIRECT",G6="ROUTE_ERROR_RESPONSE";function V6(e){if(e.startsWith(`${kk}:${F6}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Y6(e){if(e.startsWith(`${kk}:${G6}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new L6(t.status,t.statusText,t.data)}catch{}}function W6(e,{relative:t}={}){Ct(kl(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=O.useContext(Jn),{hash:i,pathname:s,search:l}=sf(e,{relative:t}),c=s;return n!=="/"&&(c=s==="/"?n:za([n,s])),r.createHref({pathname:c,search:l,hash:i})}function kl(){return O.useContext(of)!=null}function da(){return Ct(kl(),"useLocation() may be used only in the context of a <Router> component."),O.useContext(of).location}var $k="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Lk(e){O.useContext(Jn).static||O.useLayoutEffect(e)}function Io(){let{isDataRoute:e}=O.useContext(Ir);return e?s8():K6()}function K6(){Ct(kl(),"useNavigate() may be used only in the context of a <Router> component.");let e=O.useContext(Pl),{basename:t,navigator:n}=O.useContext(Jn),{matches:r}=O.useContext(Ir),{pathname:i}=da(),s=JSON.stringify(_S(r)),l=O.useRef(!1);return Lk(()=>{l.current=!0}),O.useCallback((f,d={})=>{if(br(l.current,$k),!l.current)return;if(typeof f=="number"){n.go(f);return}let v=jS(f,JSON.parse(s),i,d.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:za([t,v.pathname])),(d.replace?n.replace:n.push)(v,d.state,d)},[t,n,s,i,e])}O.createContext(null);function Ik(){let{matches:e}=O.useContext(Ir),t=e[e.length-1];return t?t.params:{}}function sf(e,{relative:t}={}){let{matches:n}=O.useContext(Ir),{pathname:r}=da(),i=JSON.stringify(_S(n));return O.useMemo(()=>jS(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function X6(e,t){return zk(e,t)}function zk(e,t,n,r,i){var E;Ct(kl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=O.useContext(Jn),{matches:l}=O.useContext(Ir),c=l[l.length-1],f=c?c.params:{},d=c?c.pathname:"/",v=c?c.pathnameBase:"/",m=c&&c.route;{let A=m&&m.path||"";qk(d,!m||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 g=da(),x;if(t){let A=typeof t=="string"?Dl(t):t;Ct(v==="/"||((E=A.pathname)==null?void 0:E.startsWith(v)),`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 "${v}" but pathname "${A.pathname}" was given in the \`location\` prop.`),x=A}else x=g;let _=x.pathname||"/",S=_;if(v!=="/"){let A=v.replace(/^\//,"").split("/");S="/"+_.replace(/^\//,"").split("/").slice(A.length).join("/")}let w=Ak(e,{pathname:S});br(m||w!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),br(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.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 j=t8(w&&w.map(A=>Object.assign({},A,{params:Object.assign({},f,A.params),pathname:za([v,s.encodeLocation?s.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?v:za([v,s.encodeLocation?s.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),l,n,r,i);return t&&j?O.createElement(of.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},j):j}function Q6(){let e=o8(),t=I6(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},s={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=O.createElement(O.Fragment,null,O.createElement("p",null,"💿 Hey developer 👋"),O.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",O.createElement("code",{style:s},"ErrorBoundary")," or"," ",O.createElement("code",{style:s},"errorElement")," prop on your route.")),O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),n?O.createElement("pre",{style:i},n):null,l)}var Z6=O.createElement(Q6,null),Bk=class extends O.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=Y6(e.digest);n&&(e=n)}let t=e!==void 0?O.createElement(Ir.Provider,{value:this.props.routeContext},O.createElement(ES.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?O.createElement(J6,{error:e},t):t}};Bk.contextType=q6;var uy=new WeakMap;function J6({children:e,error:t}){let{basename:n}=O.useContext(Jn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=V6(t.digest);if(r){let i=uy.get(t);if(i)throw i;let s=Rk(r.location,n);if(Mk&&!uy.get(t))if(s.isExternal||r.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw uy.set(t,l),l}return O.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return e}function e8({routeContext:e,match:t,children:n}){let r=O.useContext(Pl);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),O.createElement(Ir.Provider,{value:e},n)}function t8(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 s=e,l=n==null?void 0:n.errors;if(l!=null){let v=s.findIndex(m=>m.route.id&&(l==null?void 0:l[m.route.id])!==void 0);Ct(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),s=s.slice(0,Math.min(s.length,v+1))}let c=!1,f=-1;if(n)for(let v=0;v<s.length;v++){let m=s[v];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(f=v),m.route.id){let{loaderData:g,errors:x}=n,_=m.route.loader&&!g.hasOwnProperty(m.route.id)&&(!x||x[m.route.id]===void 0);if(m.route.lazy||_){c=!0,f>=0?s=s.slice(0,f+1):s=[s[0]];break}}}let d=n&&r?(v,m)=>{var g,x;r(v,{location:n.location,params:((x=(g=n.matches)==null?void 0:g[0])==null?void 0:x.params)??{},unstable_pattern:z6(n.matches),errorInfo:m})}:void 0;return s.reduceRight((v,m,g)=>{let x,_=!1,S=null,w=null;n&&(x=l&&m.route.id?l[m.route.id]:void 0,S=m.route.errorElement||Z6,c&&(f<0&&g===0?(qk("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,w=null):f===g&&(_=!0,w=m.route.hydrateFallbackElement||null)));let j=t.concat(s.slice(0,g+1)),E=()=>{let A;return x?A=S:_?A=w:m.route.Component?A=O.createElement(m.route.Component,null):m.route.element?A=m.route.element:A=v,O.createElement(e8,{match:m,routeContext:{outlet:v,matches:j,isDataRoute:n!=null},children:A})};return n&&(m.route.ErrorBoundary||m.route.errorElement||g===0)?O.createElement(Bk,{location:n.location,revalidation:n.revalidation,component:S,error:x,children:E(),routeContext:{outlet:null,matches:j,isDataRoute:!0},onError:d}):E()},null)}function AS(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function n8(e){let t=O.useContext(Pl);return Ct(t,AS(e)),t}function r8(e){let t=O.useContext(Lm);return Ct(t,AS(e)),t}function a8(e){let t=O.useContext(Ir);return Ct(t,AS(e)),t}function TS(e){let t=a8(e),n=t.matches[t.matches.length-1];return Ct(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function i8(){return TS("useRouteId")}function o8(){var r;let e=O.useContext(ES),t=r8("useRouteError"),n=TS("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function s8(){let{router:e}=n8("useNavigate"),t=TS("useNavigate"),n=O.useRef(!1);return Lk(()=>{n.current=!0}),O.useCallback(async(i,s={})=>{br(n.current,$k),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...s}))},[e,t])}var PT={};function qk(e,t,n){!t&&!PT[e]&&(PT[e]=!0,br(!1,n))}O.memo(l8);function l8({routes:e,future:t,state:n,onError:r}){return zk(e,void 0,n,r,t)}function u8({to:e,replace:t,state:n,relative:r}){Ct(kl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=O.useContext(Jn);br(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=O.useContext(Ir),{pathname:l}=da(),c=Io(),f=jS(e,_S(s),l,r==="path"),d=JSON.stringify(f);return O.useEffect(()=>{c(JSON.parse(d),{replace:t,state:n,relative:r})},[c,d,r,t,n]),null}function Qr(e){Ct(!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 c8({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:s=!1,unstable_useTransitions:l}){Ct(!kl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=O.useMemo(()=>({basename:c,navigator:i,static:s,unstable_useTransitions:l,future:{}}),[c,i,s,l]);typeof n=="string"&&(n=Dl(n));let{pathname:d="/",search:v="",hash:m="",state:g=null,key:x="default"}=n,_=O.useMemo(()=>{let S=Ha(d,c);return S==null?null:{location:{pathname:S,search:v,hash:m,state:g,key:x},navigationType:r}},[c,d,v,m,g,x,r]);return br(_!=null,`<Router basename="${c}"> is not able to match the URL "${d}${v}${m}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:O.createElement(Jn.Provider,{value:f},O.createElement(of.Provider,{children:t,value:_}))}function f8({children:e,location:t}){return X6(Nw(e),t)}function Nw(e,t=[]){let n=[];return O.Children.forEach(e,(r,i)=>{if(!O.isValidElement(r))return;let s=[...t,i];if(r.type===O.Fragment){n.push.apply(n,Nw(r.props.children,s));return}Ct(r.type===Qr,`[${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>`),Ct(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=Nw(r.props.children,s)),n.push(l)}),n}var hh="get",mh="application/x-www-form-urlencoded";function Im(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function d8(e){return Im(e)&&e.tagName.toLowerCase()==="button"}function h8(e){return Im(e)&&e.tagName.toLowerCase()==="form"}function m8(e){return Im(e)&&e.tagName.toLowerCase()==="input"}function p8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function v8(e,t){return e.button===0&&(!t||t==="_self")&&!p8(e)}var Fd=null;function g8(){if(Fd===null)try{new FormData(document.createElement("form"),0),Fd=!1}catch{Fd=!0}return Fd}var y8=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function cy(e){return e!=null&&!y8.has(e)?(br(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${mh}"`),null):e}function b8(e,t){let n,r,i,s,l;if(h8(e)){let c=e.getAttribute("action");r=c?Ha(c,t):null,n=e.getAttribute("method")||hh,i=cy(e.getAttribute("enctype"))||mh,s=new FormData(e)}else if(d8(e)||m8(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?Ha(f,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||hh,i=cy(e.getAttribute("formenctype"))||cy(c.getAttribute("enctype"))||mh,s=new FormData(c,e),!g8()){let{name:d,type:v,value:m}=e;if(v==="image"){let g=d?`${d}.`:"";s.append(`${g}x`,"0"),s.append(`${g}y`,"0")}else d&&s.append(d,m)}}else{if(Im(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=hh,r=null,i=mh,l=e}return s&&i==="text/plain"&&(l=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function CS(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function x8(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&&Ha(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function w8(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 S8(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 O8(e,t,n){let r=await Promise.all(e.map(async i=>{let s=t.routes[i.route.id];if(s){let l=await w8(s,n);return l.links?l.links():[]}return[]}));return A8(r.flat(1).filter(S8).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function kT(e,t,n,r,i,s){let l=(f,d)=>n[d]?f.route.id!==n[d].route.id:!0,c=(f,d)=>{var v;return n[d].pathname!==f.pathname||((v=n[d].route.path)==null?void 0:v.endsWith("*"))&&n[d].params["*"]!==f.params["*"]};return s==="assets"?t.filter((f,d)=>l(f,d)||c(f,d)):s==="data"?t.filter((f,d)=>{var m;let v=r.routes[f.route.id];if(!v||!v.hasLoader)return!1;if(l(f,d)||c(f,d))return!0;if(f.route.shouldRevalidate){let g=f.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((m=n[0])==null?void 0:m.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function _8(e,t,{includeHydrateFallback:n}={}){return j8(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let s=[i.module];return i.clientActionModule&&(s=s.concat(i.clientActionModule)),i.clientLoaderModule&&(s=s.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(s=s.concat(i.hydrateFallbackModule)),i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function j8(e){return[...new Set(e)]}function E8(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function A8(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let s=JSON.stringify(E8(i));return n.has(s)||(n.add(s),r.push({key:s,link:i})),r},[])}function Uk(){let e=O.useContext(Pl);return CS(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function T8(){let e=O.useContext(Lm);return CS(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var NS=O.createContext(void 0);NS.displayName="FrameworkContext";function Hk(){let e=O.useContext(NS);return CS(e,"You must render this element inside a <HydratedRouter> element"),e}function C8(e,t){let n=O.useContext(NS),[r,i]=O.useState(!1),[s,l]=O.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:d,onMouseLeave:v,onTouchStart:m}=t,g=O.useRef(null);O.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let S=j=>{j.forEach(E=>{l(E.isIntersecting)})},w=new IntersectionObserver(S,{threshold:.5});return g.current&&w.observe(g.current),()=>{w.disconnect()}}},[e]),O.useEffect(()=>{if(r){let S=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(S)}}},[r]);let x=()=>{i(!0)},_=()=>{i(!1),l(!1)};return n?e!=="intent"?[s,g,{}]:[s,g,{onFocus:Vu(c,x),onBlur:Vu(f,_),onMouseEnter:Vu(d,x),onMouseLeave:Vu(v,_),onTouchStart:Vu(m,x)}]:[!1,g,{}]}function Vu(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function N8({page:e,...t}){let{router:n}=Uk(),r=O.useMemo(()=>Ak(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?O.createElement(R8,{page:e,matches:r,...t}):null}function M8(e){let{manifest:t,routeModules:n}=Hk(),[r,i]=O.useState([]);return O.useEffect(()=>{let s=!1;return O8(e,t,n).then(l=>{s||i(l)}),()=>{s=!0}},[e,t,n]),r}function R8({page:e,matches:t,...n}){let r=da(),{manifest:i,routeModules:s}=Hk(),{basename:l}=Uk(),{loaderData:c,matches:f}=T8(),d=O.useMemo(()=>kT(e,t,f,i,r,"data"),[e,t,f,i,r]),v=O.useMemo(()=>kT(e,t,f,i,r,"assets"),[e,t,f,i,r]),m=O.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let _=new Set,S=!1;if(t.forEach(j=>{var A;let E=i.routes[j.route.id];!E||!E.hasLoader||(!d.some(M=>M.route.id===j.route.id)&&j.route.id in c&&((A=s[j.route.id])!=null&&A.shouldRevalidate)||E.hasClientLoader?S=!0:_.add(j.route.id))}),_.size===0)return[];let w=x8(e,l,"data");return S&&_.size>0&&w.searchParams.set("_routes",t.filter(j=>_.has(j.route.id)).map(j=>j.route.id).join(",")),[w.pathname+w.search]},[l,c,r,i,d,t,e,s]),g=O.useMemo(()=>_8(v,i),[v,i]),x=M8(v);return O.createElement(O.Fragment,null,m.map(_=>O.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...n})),g.map(_=>O.createElement("link",{key:_,rel:"modulepreload",href:_,...n})),x.map(({key:_,link:S})=>O.createElement("link",{key:_,nonce:n.nonce,...S})))}function D8(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var P8=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{P8&&(window.__reactRouterVersion="7.11.0")}catch{}function k8({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=O.useRef();i.current==null&&(i.current=m6({window:r,v5Compat:!0}));let s=i.current,[l,c]=O.useState({action:s.action,location:s.location}),f=O.useCallback(d=>{n===!1?c(d):O.startTransition(()=>c(d))},[n]);return O.useLayoutEffect(()=>s.listen(f),[s,f]),O.createElement(c8,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:s,unstable_useTransitions:n})}var Fk=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xh=O.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:s,replace:l,state:c,target:f,to:d,preventScrollReset:v,viewTransition:m,unstable_defaultShouldRevalidate:g,...x},_){let{basename:S,unstable_useTransitions:w}=O.useContext(Jn),j=typeof d=="string"&&Fk.test(d),E=Rk(d,S);d=E.to;let A=W6(d,{relative:i}),[M,T,N]=C8(r,x),R=z8(d,{replace:l,state:c,target:f,preventScrollReset:v,relative:i,viewTransition:m,unstable_defaultShouldRevalidate:g,unstable_useTransitions:w});function D(Y){t&&t(Y),Y.defaultPrevented||R(Y)}let I=O.createElement("a",{...x,...N,href:E.absoluteURL||A,onClick:E.isExternal||s?t:D,ref:D8(_,T),target:f,"data-discover":!j&&n==="render"?"true":void 0});return M&&!j?O.createElement(O.Fragment,null,I,O.createElement(N8,{page:A})):I});xh.displayName="Link";var $8=O.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:s,to:l,viewTransition:c,children:f,...d},v){let m=sf(l,{relative:d.relative}),g=da(),x=O.useContext(Lm),{navigator:_,basename:S}=O.useContext(Jn),w=x!=null&&F8(m)&&c===!0,j=_.encodeLocation?_.encodeLocation(m).pathname:m.pathname,E=g.pathname,A=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||(E=E.toLowerCase(),A=A?A.toLowerCase():null,j=j.toLowerCase()),A&&S&&(A=Ha(A,S)||A);const M=j!=="/"&&j.endsWith("/")?j.length-1:j.length;let T=E===j||!i&&E.startsWith(j)&&E.charAt(M)==="/",N=A!=null&&(A===j||!i&&A.startsWith(j)&&A.charAt(j.length)==="/"),R={isActive:T,isPending:N,isTransitioning:w},D=T?t:void 0,I;typeof r=="function"?I=r(R):I=[r,T?"active":null,N?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let Y=typeof s=="function"?s(R):s;return O.createElement(xh,{...d,"aria-current":D,className:I,ref:v,style:Y,to:l,viewTransition:c},typeof f=="function"?f(R):f)});$8.displayName="NavLink";var L8=O.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:s,method:l=hh,action:c,onSubmit:f,relative:d,preventScrollReset:v,viewTransition:m,unstable_defaultShouldRevalidate:g,...x},_)=>{let{unstable_useTransitions:S}=O.useContext(Jn),w=U8(),j=H8(c,{relative:d}),E=l.toLowerCase()==="get"?"get":"post",A=typeof c=="string"&&Fk.test(c),M=T=>{if(f&&f(T),T.defaultPrevented)return;T.preventDefault();let N=T.nativeEvent.submitter,R=(N==null?void 0:N.getAttribute("formmethod"))||l,D=()=>w(N||T.currentTarget,{fetcherKey:t,method:R,navigate:n,replace:i,state:s,relative:d,preventScrollReset:v,viewTransition:m,unstable_defaultShouldRevalidate:g});S&&n!==!1?O.startTransition(()=>D()):D()};return O.createElement("form",{ref:_,method:E,action:j,onSubmit:r?f:M,...x,"data-discover":!A&&e==="render"?"true":void 0})});L8.displayName="Form";function I8(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gk(e){let t=O.useContext(Pl);return Ct(t,I8(e)),t}function z8(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:s,viewTransition:l,unstable_defaultShouldRevalidate:c,unstable_useTransitions:f}={}){let d=Io(),v=da(),m=sf(e,{relative:s});return O.useCallback(g=>{if(v8(g,t)){g.preventDefault();let x=n!==void 0?n:gc(v)===gc(m),_=()=>d(e,{replace:x,state:r,preventScrollReset:i,relative:s,viewTransition:l,unstable_defaultShouldRevalidate:c});f?O.startTransition(()=>_()):_()}},[v,d,m,n,r,t,e,i,s,l,c,f])}var B8=0,q8=()=>`__${String(++B8)}__`;function U8(){let{router:e}=Gk("useSubmit"),{basename:t}=O.useContext(Jn),n=i8(),r=e.fetch,i=e.navigate;return O.useCallback(async(s,l={})=>{let{action:c,method:f,encType:d,formData:v,body:m}=b8(s,t);if(l.navigate===!1){let g=l.fetcherKey||q8();await r(g,n,l.action||c,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:v,body:m,formMethod:l.method||f,formEncType:l.encType||d,flushSync:l.flushSync})}else await i(l.action||c,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:v,body:m,formMethod:l.method||f,formEncType:l.encType||d,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[r,i,t,n])}function H8(e,{relative:t}={}){let{basename:n}=O.useContext(Jn),r=O.useContext(Ir);Ct(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),s={...sf(e||".",{relative:t})},l=da();if(e==null){s.search=l.search;let c=new URLSearchParams(s.search),f=c.getAll("index");if(f.some(v=>v==="")){c.delete("index"),f.filter(m=>m).forEach(m=>c.append("index",m));let v=c.toString();s.search=v?`?${v}`:""}}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:za([n,s.pathname])),gc(s)}function F8(e,{relative:t}={}){let n=O.useContext(Pk);Ct(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Gk("useViewTransitionState"),i=sf(e,{relative:t});if(!n.isTransitioning)return!1;let s=Ha(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=Ha(n.nextLocation.pathname,r)||n.nextLocation.pathname;return bh(i.pathname,l)!=null||bh(i.pathname,s)!=null}var lf=Ek();const Vk=gt(lf);/**
|
|
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 G8=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 V8={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 Y8=O.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:l,...c},f)=>O.createElement("svg",{ref:f,...V8,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Yk("lucide",i),...c},[...l.map(([d,v])=>O.createElement(d,v)),...Array.isArray(s)?s:[s]]));/**
|
|
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 Ke=(e,t)=>{const n=O.forwardRef(({className:r,...i},s)=>O.createElement(Y8,{ref:s,iconNode:t,className:Yk(`lucide-${G8(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 zm=Ke("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 Ys=Ke("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 $T=Ke("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"}]]);/**
|
|
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 MS=Ke("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
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 $l=Ke("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
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 uf=Ke("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
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 W8=Ke("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
|
|
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 tl=Ke("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"}]]);/**
|
|
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 Ll=Ke("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
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 K8=Ke("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"}]]);/**
|
|
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 nl=Ke("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
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 X8=Ke("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/**
|
|
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 Q8=Ke("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"}]]);/**
|
|
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 Z8=Ke("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
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 Wk=Ke("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
|
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 J8=Ke("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 eU=Ke("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
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 Ws=Ke("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"}]]);/**
|
|
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 ki=Ke("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"}]]);/**
|
|
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 tU=Ke("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
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 nU=Ke("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 rU=Ke("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 LT=Ke("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 wh=Ke("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
|
|
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 Kk=Ke("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"}]]);/**
|
|
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 Xk=Ke("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
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 IT=Ke("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"}]]);/**
|
|
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 zT=Ke("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
|
|
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 aU=Ke("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
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 Qk=Ke("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"}]]);/**
|
|
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 iU=Ke("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"}]]);/**
|
|
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 oU=Ke("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"}]]);/**
|
|
241
|
+
* @license lucide-react v0.462.0 - ISC
|
|
242
|
+
*
|
|
243
|
+
* This source code is licensed under the ISC license.
|
|
244
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
245
|
+
*/const aa=Ke("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Zk(e,t=[]){let n=[];function r(s,l){const c=O.createContext(l);c.displayName=s+"Context";const f=n.length;n=[...n,l];const d=m=>{var j;const{scope:g,children:x,..._}=m,S=((j=g==null?void 0:g[e])==null?void 0:j[f])||c,w=O.useMemo(()=>_,Object.values(_));return p.jsx(S.Provider,{value:w,children:x})};d.displayName=s+"Provider";function v(m,g){var S;const x=((S=g==null?void 0:g[e])==null?void 0:S[f])||c,_=O.useContext(x);if(_)return _;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[d,v]}const i=()=>{const s=n.map(l=>O.createContext(l));return function(c){const f=(c==null?void 0:c[e])||s;return O.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return i.scopeName=e,[r,sU(i,...t)]}function sU(...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(s){const l=r.reduce((c,{useScope:f,scopeName:d})=>{const m=f(s)[`__scope${d}`];return{...c,...m}},{});return O.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function kr(e){const t=O.useRef(e);return O.useEffect(()=>{t.current=e}),O.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var Ft=globalThis!=null&&globalThis.document?O.useLayoutEffect:()=>{};function BT(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function cf(...e){return t=>{let n=!1;const r=e.map(i=>{const s=BT(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():BT(e[i],null)}}}}function tt(...e){return O.useCallback(cf(...e),e)}var lU=Symbol.for("react.lazy"),Sh=OS[" use ".trim().toString()];function uU(e){return typeof e=="object"&&e!==null&&"then"in e}function Jk(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===lU&&"_payload"in e&&uU(e._payload)}function e$(e){const t=cU(e),n=O.forwardRef((r,i)=>{let{children:s,...l}=r;Jk(s)&&typeof Sh=="function"&&(s=Sh(s._payload));const c=O.Children.toArray(s),f=c.find(dU);if(f){const d=f.props.children,v=c.map(m=>m===f?O.Children.count(d)>1?O.Children.only(null):O.isValidElement(d)?d.props.children:null:m);return p.jsx(t,{...l,ref:i,children:O.isValidElement(d)?O.cloneElement(d,void 0,v):null})}return p.jsx(t,{...l,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}var zo=e$("Slot");function cU(e){const t=O.forwardRef((n,r)=>{let{children:i,...s}=n;if(Jk(i)&&typeof Sh=="function"&&(i=Sh(i._payload)),O.isValidElement(i)){const l=mU(i),c=hU(s,i.props);return i.type!==O.Fragment&&(c.ref=r?cf(r,l):l),O.cloneElement(i,c)}return O.Children.count(i)>1?O.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fU=Symbol("radix.slottable");function dU(e){return O.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fU}function hU(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...c)=>{const f=s(...c);return i(...c),f}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function mU(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 pU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Bo=pU.reduce((e,t)=>{const n=e$(`Primitive.${t}`),r=O.forwardRef((i,s)=>{const{asChild:l,...c}=i,f=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),fy={exports:{}},dy={};/**
|
|
246
|
+
* @license React
|
|
247
|
+
* use-sync-external-store-shim.production.js
|
|
248
|
+
*
|
|
249
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
250
|
+
*
|
|
251
|
+
* This source code is licensed under the MIT license found in the
|
|
252
|
+
* LICENSE file in the root directory of this source tree.
|
|
253
|
+
*/var qT;function vU(){if(qT)return dy;qT=1;var e=$m();function t(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function c(m,g){var x=g(),_=r({inst:{value:x,getSnapshot:g}}),S=_[0].inst,w=_[1];return s(function(){S.value=x,S.getSnapshot=g,f(S)&&w({inst:S})},[m,x,g]),i(function(){return f(S)&&w({inst:S}),m(function(){f(S)&&w({inst:S})})},[m]),l(x),x}function f(m){var g=m.getSnapshot;m=m.value;try{var x=g();return!n(m,x)}catch{return!0}}function d(m,g){return g()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:c;return dy.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:v,dy}var UT;function gU(){return UT||(UT=1,fy.exports=vU()),fy.exports}var yU=gU();function bU(){return yU.useSyncExternalStore(xU,()=>!0,()=>!1)}function xU(){return()=>{}}var RS="Avatar",[wU]=Zk(RS),[SU,t$]=wU(RS),n$=O.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[i,s]=O.useState("idle");return p.jsx(SU,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:s,children:p.jsx(Bo.span,{...r,ref:t})})});n$.displayName=RS;var r$="AvatarImage",a$=O.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...s}=e,l=t$(r$,n),c=OU(r,s),f=kr(d=>{i(d),l.onImageLoadingStatusChange(d)});return Ft(()=>{c!=="idle"&&f(c)},[c,f]),c==="loaded"?p.jsx(Bo.img,{...s,ref:t,src:r}):null});a$.displayName=r$;var i$="AvatarFallback",o$=O.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...i}=e,s=t$(i$,n),[l,c]=O.useState(r===void 0);return O.useEffect(()=>{if(r!==void 0){const f=window.setTimeout(()=>c(!0),r);return()=>window.clearTimeout(f)}},[r]),l&&s.imageLoadingStatus!=="loaded"?p.jsx(Bo.span,{...i,ref:t}):null});o$.displayName=i$;function HT(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function OU(e,{referrerPolicy:t,crossOrigin:n}){const r=bU(),i=O.useRef(null),s=r?(i.current||(i.current=new window.Image),i.current):null,[l,c]=O.useState(()=>HT(s,e));return Ft(()=>{c(HT(s,e))},[s,e]),Ft(()=>{const f=m=>()=>{c(m)};if(!s)return;const d=f("loaded"),v=f("error");return s.addEventListener("load",d),s.addEventListener("error",v),t&&(s.referrerPolicy=t),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",d),s.removeEventListener("error",v)}},[s,n,t]),l}var _U=n$,jU=a$,EU=o$;function s$(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=s$(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ye(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=s$(e))&&(r&&(r+=" "),r+=t);return r}const AU=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},TU=(e,t)=>({classGroupId:e,validator:t}),l$=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Oh="-",FT=[],CU="arbitrary..",NU=e=>{const t=RU(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return MU(l);const c=l.split(Oh),f=c[0]===""&&c.length>1?1:0;return u$(c,f,t)},getConflictingClassGroupIds:(l,c)=>{if(c){const f=r[l],d=n[l];return f?d?AU(d,f):f:d||FT}return n[l]||FT}}},u$=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],s=n.nextPart.get(i);if(s){const d=u$(e,t+1,s);if(d)return d}const l=n.validators;if(l===null)return;const c=t===0?e.join(Oh):e.slice(t).join(Oh),f=l.length;for(let d=0;d<f;d++){const v=l[d];if(v.validator(c))return v.classGroupId}},MU=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?CU+r:void 0})(),RU=e=>{const{theme:t,classGroups:n}=e;return DU(n,t)},DU=(e,t)=>{const n=l$();for(const r in e){const i=e[r];DS(i,n,r,t)}return n},DS=(e,t,n,r)=>{const i=e.length;for(let s=0;s<i;s++){const l=e[s];PU(l,t,n,r)}},PU=(e,t,n,r)=>{if(typeof e=="string"){kU(e,t,n);return}if(typeof e=="function"){$U(e,t,n,r);return}LU(e,t,n,r)},kU=(e,t,n)=>{const r=e===""?t:c$(t,e);r.classGroupId=n},$U=(e,t,n,r)=>{if(IU(e)){DS(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(TU(n,e))},LU=(e,t,n,r)=>{const i=Object.entries(e),s=i.length;for(let l=0;l<s;l++){const[c,f]=i[l];DS(f,c$(t,c),n,r)}},c$=(e,t)=>{let n=e;const r=t.split(Oh),i=r.length;for(let s=0;s<i;s++){const l=r[s];let c=n.nextPart.get(l);c||(c=l$(),n.nextPart.set(l,c)),n=c}return n},IU=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,zU=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(s,l)=>{n[s]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let l=n[s];if(l!==void 0)return l;if((l=r[s])!==void 0)return i(s,l),l},set(s,l){s in n?n[s]=l:i(s,l)}}},Mw="!",GT=":",BU=[],VT=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),qU=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const s=[];let l=0,c=0,f=0,d;const v=i.length;for(let S=0;S<v;S++){const w=i[S];if(l===0&&c===0){if(w===GT){s.push(i.slice(f,S)),f=S+1;continue}if(w==="/"){d=S;continue}}w==="["?l++:w==="]"?l--:w==="("?c++:w===")"&&c--}const m=s.length===0?i:i.slice(f);let g=m,x=!1;m.endsWith(Mw)?(g=m.slice(0,-1),x=!0):m.startsWith(Mw)&&(g=m.slice(1),x=!0);const _=d&&d>f?d-f:void 0;return VT(s,x,g,_)};if(t){const i=t+GT,s=r;r=l=>l.startsWith(i)?s(l.slice(i.length)):VT(BU,!1,l,void 0,!0)}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},UU=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let s=0;s<n.length;s++){const l=n[s],c=l[0]==="[",f=t.has(l);c||f?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},HU=e=>({cache:zU(e.cacheSize),parseClassName:qU(e),sortModifiers:UU(e),...NU(e)}),FU=/\s+/,GU=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=t,l=[],c=e.trim().split(FU);let f="";for(let d=c.length-1;d>=0;d-=1){const v=c[d],{isExternal:m,modifiers:g,hasImportantModifier:x,baseClassName:_,maybePostfixModifierPosition:S}=n(v);if(m){f=v+(f.length>0?" "+f:f);continue}let w=!!S,j=r(w?_.substring(0,S):_);if(!j){if(!w){f=v+(f.length>0?" "+f:f);continue}if(j=r(_),!j){f=v+(f.length>0?" "+f:f);continue}w=!1}const E=g.length===0?"":g.length===1?g[0]:s(g).join(":"),A=x?E+Mw:E,M=A+j;if(l.indexOf(M)>-1)continue;l.push(M);const T=i(j,w);for(let N=0;N<T.length;++N){const R=T[N];l.push(A+R)}f=v+(f.length>0?" "+f:f)}return f},VU=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=f$(n))&&(i&&(i+=" "),i+=r);return i},f$=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=f$(e[r]))&&(n&&(n+=" "),n+=t);return n},YU=(e,...t)=>{let n,r,i,s;const l=f=>{const d=t.reduce((v,m)=>m(v),e());return n=HU(d),r=n.cache.get,i=n.cache.set,s=c,c(f)},c=f=>{const d=r(f);if(d)return d;const v=GU(f,n);return i(f,v),v};return s=l,(...f)=>s(VU(...f))},WU=[],Vt=e=>{const t=n=>n[e]||WU;return t.isThemeGetter=!0,t},d$=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,h$=/^\((?:(\w[\w-]*):)?(.+)\)$/i,KU=/^\d+\/\d+$/,XU=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,QU=/\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$/,ZU=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,JU=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,eH=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ks=e=>KU.test(e),ke=e=>!!e&&!Number.isNaN(Number(e)),Ei=e=>!!e&&Number.isInteger(Number(e)),hy=e=>e.endsWith("%")&&ke(e.slice(0,-1)),Pa=e=>XU.test(e),tH=()=>!0,nH=e=>QU.test(e)&&!ZU.test(e),m$=()=>!1,rH=e=>JU.test(e),aH=e=>eH.test(e),iH=e=>!Se(e)&&!Oe(e),oH=e=>Il(e,g$,m$),Se=e=>d$.test(e),vo=e=>Il(e,y$,nH),my=e=>Il(e,fH,ke),YT=e=>Il(e,p$,m$),sH=e=>Il(e,v$,aH),Gd=e=>Il(e,b$,rH),Oe=e=>h$.test(e),Yu=e=>zl(e,y$),lH=e=>zl(e,dH),WT=e=>zl(e,p$),uH=e=>zl(e,g$),cH=e=>zl(e,v$),Vd=e=>zl(e,b$,!0),Il=(e,t,n)=>{const r=d$.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},zl=(e,t,n=!1)=>{const r=h$.exec(e);return r?r[1]?t(r[1]):n:!1},p$=e=>e==="position"||e==="percentage",v$=e=>e==="image"||e==="url",g$=e=>e==="length"||e==="size"||e==="bg-size",y$=e=>e==="length",fH=e=>e==="number",dH=e=>e==="family-name",b$=e=>e==="shadow",hH=()=>{const e=Vt("color"),t=Vt("font"),n=Vt("text"),r=Vt("font-weight"),i=Vt("tracking"),s=Vt("leading"),l=Vt("breakpoint"),c=Vt("container"),f=Vt("spacing"),d=Vt("radius"),v=Vt("shadow"),m=Vt("inset-shadow"),g=Vt("text-shadow"),x=Vt("drop-shadow"),_=Vt("blur"),S=Vt("perspective"),w=Vt("aspect"),j=Vt("ease"),E=Vt("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...M(),Oe,Se],N=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],D=()=>[Oe,Se,f],I=()=>[ks,"full","auto",...D()],Y=()=>[Ei,"none","subgrid",Oe,Se],z=()=>["auto",{span:["full",Ei,Oe,Se]},Ei,Oe,Se],H=()=>[Ei,"auto",Oe,Se],V=()=>["auto","min","max","fr",Oe,Se],Q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],K=()=>["start","end","center","stretch","center-safe","end-safe"],k=()=>["auto",...D()],q=()=>[ks,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],B=()=>[e,Oe,Se],W=()=>[...M(),WT,YT,{position:[Oe,Se]}],se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",uH,oH,{size:[Oe,Se]}],F=()=>[hy,Yu,vo],X=()=>["","none","full",d,Oe,Se],ae=()=>["",ke,Yu,vo],de=()=>["solid","dashed","dotted","double"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[ke,hy,WT,YT],he=()=>["","none",_,Oe,Se],ie=()=>["none",ke,Oe,Se],me=()=>["none",ke,Oe,Se],ve=()=>[ke,Oe,Se],ne=()=>[ks,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pa],breakpoint:[Pa],color:[tH],container:[Pa],"drop-shadow":[Pa],ease:["in","out","in-out"],font:[iH],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pa],shadow:[Pa],spacing:["px",ke],text:[Pa],"text-shadow":[Pa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ks,Se,Oe,w]}],container:["container"],columns:[{columns:[ke,Se,Oe,c]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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"],sr:["sr-only","not-sr-only"],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:T()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[Ei,"auto",Oe,Se]}],basis:[{basis:[ks,"full","auto",c,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ke,ks,"auto","initial","none",Se]}],grow:[{grow:["",ke,Oe,Se]}],shrink:[{shrink:["",ke,Oe,Se]}],order:[{order:[Ei,"first","last","none",Oe,Se]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...Q(),"normal"]}],"justify-items":[{"justify-items":[...K(),"normal"]}],"justify-self":[{"justify-self":["auto",...K()]}],"align-content":[{content:["normal",...Q()]}],"align-items":[{items:[...K(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...K(),{baseline:["","last"]}]}],"place-content":[{"place-content":Q()}],"place-items":[{"place-items":[...K(),"baseline"]}],"place-self":[{"place-self":["auto",...K()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[c,"screen",...q()]}],"min-w":[{"min-w":[c,"screen","none",...q()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",n,Yu,vo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Oe,my]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",hy,Se]}],"font-family":[{font:[lH,Se,t]}],"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:[i,Oe,Se]}],"line-clamp":[{"line-clamp":[ke,"none",Oe,my]}],leading:[{leading:[s,...D()]}],"list-image":[{"list-image":["none",Oe,Se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Oe,Se]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[ke,"from-font","auto",Oe,vo]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[ke,"auto",Oe,Se]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Oe,Se]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Oe,Se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:W()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ei,Oe,Se],radial:["",Oe,Se],conic:[Ei,Oe,Se]},cH,sH]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ke,Oe,Se]}],"outline-w":[{outline:["",ke,Yu,vo]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",v,Vd,Gd]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",m,Vd,Gd]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[ke,vo]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",g,Vd,Gd]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[ke,Oe,Se]}],"mix-blend":[{"mix-blend":[...ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ge()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ke]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[Oe,Se]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":M()}],"mask-image-conic-pos":[{"mask-conic":[ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:W()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Oe,Se]}],filter:[{filter:["","none",Oe,Se]}],blur:[{blur:he()}],brightness:[{brightness:[ke,Oe,Se]}],contrast:[{contrast:[ke,Oe,Se]}],"drop-shadow":[{"drop-shadow":["","none",x,Vd,Gd]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",ke,Oe,Se]}],"hue-rotate":[{"hue-rotate":[ke,Oe,Se]}],invert:[{invert:["",ke,Oe,Se]}],saturate:[{saturate:[ke,Oe,Se]}],sepia:[{sepia:["",ke,Oe,Se]}],"backdrop-filter":[{"backdrop-filter":["","none",Oe,Se]}],"backdrop-blur":[{"backdrop-blur":he()}],"backdrop-brightness":[{"backdrop-brightness":[ke,Oe,Se]}],"backdrop-contrast":[{"backdrop-contrast":[ke,Oe,Se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ke,Oe,Se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ke,Oe,Se]}],"backdrop-invert":[{"backdrop-invert":["",ke,Oe,Se]}],"backdrop-opacity":[{"backdrop-opacity":[ke,Oe,Se]}],"backdrop-saturate":[{"backdrop-saturate":[ke,Oe,Se]}],"backdrop-sepia":[{"backdrop-sepia":["",ke,Oe,Se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Oe,Se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ke,"initial",Oe,Se]}],ease:[{ease:["linear","initial",j,Oe,Se]}],delay:[{delay:[ke,Oe,Se]}],animate:[{animate:["none",E,Oe,Se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,Oe,Se]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":["scale-3d"],skew:[{skew:ve()}],"skew-x":[{"skew-x":ve()}],"skew-y":[{"skew-y":ve()}],transform:[{transform:[Oe,Se,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ne()}],"translate-x":[{"translate-x":ne()}],"translate-y":[{"translate-y":ne()}],"translate-z":[{"translate-z":ne()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",Oe,Se]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",Oe,Se]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[ke,Yu,vo,my]}],stroke:[{stroke:["none",...B()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},mH=YU(hH);function pe(...e){return mH(Ye(e))}function KT({className:e,...t}){return p.jsx(_U,{className:pe("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),"data-slot":"avatar",...t})}function XT({className:e,...t}){return p.jsx(jU,{className:pe("aspect-square size-full",e),"data-slot":"avatar-image",...t})}function QT({className:e,...t}){return p.jsx(EU,{className:pe("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 pH(e,t){const n=O.createContext(t),r=s=>{const{children:l,...c}=s,f=O.useMemo(()=>c,Object.values(c));return p.jsx(n.Provider,{value:f,children:l})};r.displayName=e+"Provider";function i(s){const l=O.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,i]}function zr(e,t=[]){let n=[];function r(s,l){const c=O.createContext(l),f=n.length;n=[...n,l];const d=m=>{var j;const{scope:g,children:x,..._}=m,S=((j=g==null?void 0:g[e])==null?void 0:j[f])||c,w=O.useMemo(()=>_,Object.values(_));return p.jsx(S.Provider,{value:w,children:x})};d.displayName=s+"Provider";function v(m,g){var S;const x=((S=g==null?void 0:g[e])==null?void 0:S[f])||c,_=O.useContext(x);if(_)return _;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[d,v]}const i=()=>{const s=n.map(l=>O.createContext(l));return function(c){const f=(c==null?void 0:c[e])||s;return O.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return i.scopeName=e,[r,vH(i,...t)]}function vH(...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(s){const l=r.reduce((c,{useScope:f,scopeName:d})=>{const m=f(s)[`__scope${d}`];return{...c,...m}},{});return O.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var gH=OS[" useInsertionEffect ".trim().toString()]||Ft;function $i({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,s,l]=yH({defaultProp:t,onChange:n}),c=e!==void 0,f=c?e:i;{const v=O.useRef(e!==void 0);O.useEffect(()=>{const m=v.current;m!==c&&console.warn(`${r} is changing from ${m?"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.`),v.current=c},[c,r])}const d=O.useCallback(v=>{var m;if(c){const g=bH(v)?v(e):v;g!==e&&((m=l.current)==null||m.call(l,g))}else s(v)},[c,e,s,l]);return[f,d]}function yH({defaultProp:e,onChange:t}){const[n,r]=O.useState(e),i=O.useRef(n),s=O.useRef(t);return gH(()=>{s.current=t},[t]),O.useEffect(()=>{var l;i.current!==n&&((l=s.current)==null||l.call(s,n),i.current=n)},[n,i]),[n,r,s]}function bH(e){return typeof e=="function"}function rl(e){const t=xH(e),n=O.forwardRef((r,i)=>{const{children:s,...l}=r,c=O.Children.toArray(s),f=c.find(wH);if(f){const d=f.props.children,v=c.map(m=>m===f?O.Children.count(d)>1?O.Children.only(null):O.isValidElement(d)?d.props.children:null:m);return p.jsx(t,{...l,ref:i,children:O.isValidElement(d)?O.cloneElement(d,void 0,v):null})}return p.jsx(t,{...l,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}function xH(e){const t=O.forwardRef((n,r)=>{const{children:i,...s}=n;if(O.isValidElement(i)){const l=OH(i),c=SH(s,i.props);return i.type!==O.Fragment&&(c.ref=r?cf(r,l):l),O.cloneElement(i,c)}return O.Children.count(i)>1?O.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var x$=Symbol("radix.slottable");function w$(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=x$,t}function wH(e){return O.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===x$}function SH(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...c)=>{const f=s(...c);return i(...c),f}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function OH(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 _H=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Re=_H.reduce((e,t)=>{const n=rl(`Primitive.${t}`),r=O.forwardRef((i,s)=>{const{asChild:l,...c}=i,f=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function S$(e,t){e&&lf.flushSync(()=>e.dispatchEvent(t))}function PS(e){const t=e+"CollectionProvider",[n,r]=zr(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=S=>{const{scope:w,children:j}=S,E=L.useRef(null),A=L.useRef(new Map).current;return p.jsx(i,{scope:w,itemMap:A,collectionRef:E,children:j})};l.displayName=t;const c=e+"CollectionSlot",f=rl(c),d=L.forwardRef((S,w)=>{const{scope:j,children:E}=S,A=s(c,j),M=tt(w,A.collectionRef);return p.jsx(f,{ref:M,children:E})});d.displayName=c;const v=e+"CollectionItemSlot",m="data-radix-collection-item",g=rl(v),x=L.forwardRef((S,w)=>{const{scope:j,children:E,...A}=S,M=L.useRef(null),T=tt(w,M),N=s(v,j);return L.useEffect(()=>(N.itemMap.set(M,{ref:M,...A}),()=>void N.itemMap.delete(M))),p.jsx(g,{[m]:"",ref:T,children:E})});x.displayName=v;function _(S){const w=s(e+"CollectionConsumer",S);return L.useCallback(()=>{const E=w.collectionRef.current;if(!E)return[];const A=Array.from(E.querySelectorAll(`[${m}]`));return Array.from(w.itemMap.values()).sort((N,R)=>A.indexOf(N.ref.current)-A.indexOf(R.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:l,Slot:d,ItemSlot:x},_,r]}var jH=O.createContext(void 0);function Bm(e){const t=O.useContext(jH);return e||t||"ltr"}function EH(e,t=globalThis==null?void 0:globalThis.document){const n=kr(e);O.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 AH="DismissableLayer",Rw="dismissableLayer.update",TH="dismissableLayer.pointerDownOutside",CH="dismissableLayer.focusOutside",ZT,O$=O.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ff=O.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...f}=e,d=O.useContext(O$),[v,m]=O.useState(null),g=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=O.useState({}),_=tt(t,R=>m(R)),S=Array.from(d.layers),[w]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),j=S.indexOf(w),E=v?S.indexOf(v):-1,A=d.layersWithOutsidePointerEventsDisabled.size>0,M=E>=j,T=RH(R=>{const D=R.target,I=[...d.branches].some(Y=>Y.contains(D));!M||I||(i==null||i(R),l==null||l(R),R.defaultPrevented||c==null||c())},g),N=DH(R=>{const D=R.target;[...d.branches].some(Y=>Y.contains(D))||(s==null||s(R),l==null||l(R),R.defaultPrevented||c==null||c())},g);return EH(R=>{E===d.layers.size-1&&(r==null||r(R),!R.defaultPrevented&&c&&(R.preventDefault(),c()))},g),O.useEffect(()=>{if(v)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(ZT=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(v)),d.layers.add(v),JT(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=ZT)}},[v,g,n,d]),O.useEffect(()=>()=>{v&&(d.layers.delete(v),d.layersWithOutsidePointerEventsDisabled.delete(v),JT())},[v,d]),O.useEffect(()=>{const R=()=>x({});return document.addEventListener(Rw,R),()=>document.removeEventListener(Rw,R)},[]),p.jsx(Re.div,{...f,ref:_,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,T.onPointerDownCapture)})});ff.displayName=AH;var NH="DismissableLayerBranch",MH=O.forwardRef((e,t)=>{const n=O.useContext(O$),r=O.useRef(null),i=tt(t,r);return O.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.jsx(Re.div,{...e,ref:i})});MH.displayName=NH;function RH(e,t=globalThis==null?void 0:globalThis.document){const n=kr(e),r=O.useRef(!1),i=O.useRef(()=>{});return O.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let f=function(){_$(TH,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},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function DH(e,t=globalThis==null?void 0:globalThis.document){const n=kr(e),r=O.useRef(!1);return O.useEffect(()=>{const i=s=>{s.target&&!r.current&&_$(CH,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function JT(){const e=new CustomEvent(Rw);document.dispatchEvent(e)}function _$(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?S$(i,s):i.dispatchEvent(s)}var py=0;function kS(){O.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??eC()),document.body.insertAdjacentElement("beforeend",e[1]??eC()),py++,()=>{py===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),py--}},[])}function eC(){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 vy="focusScope.autoFocusOnMount",gy="focusScope.autoFocusOnUnmount",tC={bubbles:!1,cancelable:!0},PH="FocusScope",qm=O.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=e,[c,f]=O.useState(null),d=kr(i),v=kr(s),m=O.useRef(null),g=tt(t,S=>f(S)),x=O.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;O.useEffect(()=>{if(r){let S=function(A){if(x.paused||!c)return;const M=A.target;c.contains(M)?m.current=M:Ti(m.current,{select:!0})},w=function(A){if(x.paused||!c)return;const M=A.relatedTarget;M!==null&&(c.contains(M)||Ti(m.current,{select:!0}))},j=function(A){if(document.activeElement===document.body)for(const T of A)T.removedNodes.length>0&&Ti(c)};document.addEventListener("focusin",S),document.addEventListener("focusout",w);const E=new MutationObserver(j);return c&&E.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",w),E.disconnect()}}},[r,c,x.paused]),O.useEffect(()=>{if(c){rC.add(x);const S=document.activeElement;if(!c.contains(S)){const j=new CustomEvent(vy,tC);c.addEventListener(vy,d),c.dispatchEvent(j),j.defaultPrevented||(kH(BH(j$(c)),{select:!0}),document.activeElement===S&&Ti(c))}return()=>{c.removeEventListener(vy,d),setTimeout(()=>{const j=new CustomEvent(gy,tC);c.addEventListener(gy,v),c.dispatchEvent(j),j.defaultPrevented||Ti(S??document.body,{select:!0}),c.removeEventListener(gy,v),rC.remove(x)},0)}}},[c,d,v,x]);const _=O.useCallback(S=>{if(!n&&!r||x.paused)return;const w=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,j=document.activeElement;if(w&&j){const E=S.currentTarget,[A,M]=$H(E);A&&M?!S.shiftKey&&j===M?(S.preventDefault(),n&&Ti(A,{select:!0})):S.shiftKey&&j===A&&(S.preventDefault(),n&&Ti(M,{select:!0})):j===E&&S.preventDefault()}},[n,r,x.paused]);return p.jsx(Re.div,{tabIndex:-1,...l,ref:g,onKeyDown:_})});qm.displayName=PH;function kH(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ti(r,{select:t}),document.activeElement!==n)return}function $H(e){const t=j$(e),n=nC(t,e),r=nC(t.reverse(),e);return[n,r]}function j$(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 nC(e,t){for(const n of e)if(!LH(n,{upTo:t}))return n}function LH(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 IH(e){return e instanceof HTMLInputElement&&"select"in e}function Ti(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&IH(e)&&t&&e.select()}}var rC=zH();function zH(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=aC(e,t),e.unshift(t)},remove(t){var n;e=aC(e,t),(n=e[0])==null||n.resume()}}}function aC(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function BH(e){return e.filter(t=>t.tagName!=="A")}var qH=OS[" useId ".trim().toString()]||(()=>{}),UH=0;function pr(e){const[t,n]=O.useState(qH());return Ft(()=>{n(r=>r??String(UH++))},[e]),e||(t?`radix-${t}`:"")}const HH=["top","right","bottom","left"],Li=Math.min,Wn=Math.max,_h=Math.round,Yd=Math.floor,sa=e=>({x:e,y:e}),FH={left:"right",right:"left",bottom:"top",top:"bottom"},GH={start:"end",end:"start"};function Dw(e,t,n){return Wn(e,Li(t,n))}function Fa(e,t){return typeof e=="function"?e(t):e}function Ga(e){return e.split("-")[0]}function Bl(e){return e.split("-")[1]}function $S(e){return e==="x"?"y":"x"}function LS(e){return e==="y"?"height":"width"}const VH=new Set(["top","bottom"]);function ia(e){return VH.has(Ga(e))?"y":"x"}function IS(e){return $S(ia(e))}function YH(e,t,n){n===void 0&&(n=!1);const r=Bl(e),i=IS(e),s=LS(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=jh(l)),[l,jh(l)]}function WH(e){const t=jh(e);return[Pw(e),t,Pw(t)]}function Pw(e){return e.replace(/start|end/g,t=>GH[t])}const iC=["left","right"],oC=["right","left"],KH=["top","bottom"],XH=["bottom","top"];function QH(e,t,n){switch(e){case"top":case"bottom":return n?t?oC:iC:t?iC:oC;case"left":case"right":return t?KH:XH;default:return[]}}function ZH(e,t,n,r){const i=Bl(e);let s=QH(Ga(e),n==="start",r);return i&&(s=s.map(l=>l+"-"+i),t&&(s=s.concat(s.map(Pw)))),s}function jh(e){return e.replace(/left|right|bottom|top/g,t=>FH[t])}function JH(e){return{top:0,right:0,bottom:0,left:0,...e}}function E$(e){return typeof e!="number"?JH(e):{top:e,right:e,bottom:e,left:e}}function Eh(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 sC(e,t,n){let{reference:r,floating:i}=e;const s=ia(t),l=IS(t),c=LS(l),f=Ga(t),d=s==="y",v=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,g=r[c]/2-i[c]/2;let x;switch(f){case"top":x={x:v,y:r.y-i.height};break;case"bottom":x={x:v,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:m};break;case"left":x={x:r.x-i.width,y:m};break;default:x={x:r.x,y:r.y}}switch(Bl(t)){case"start":x[l]-=g*(n&&d?-1:1);break;case"end":x[l]+=g*(n&&d?-1:1);break}return x}const e7=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:l}=n,c=s.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:v,y:m}=sC(d,r,f),g=r,x={},_=0;for(let S=0;S<c.length;S++){const{name:w,fn:j}=c[S],{x:E,y:A,data:M,reset:T}=await j({x:v,y:m,initialPlacement:r,placement:g,strategy:i,middlewareData:x,rects:d,platform:l,elements:{reference:e,floating:t}});v=E??v,m=A??m,x={...x,[w]:{...x[w],...M}},T&&_<=50&&(_++,typeof T=="object"&&(T.placement&&(g=T.placement),T.rects&&(d=T.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):T.rects),{x:v,y:m}=sC(d,g,f)),S=-1)}return{x:v,y:m,placement:g,strategy:i,middlewareData:x}};async function yc(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:l,elements:c,strategy:f}=e,{boundary:d="clippingAncestors",rootBoundary:v="viewport",elementContext:m="floating",altBoundary:g=!1,padding:x=0}=Fa(t,e),_=E$(x),w=c[g?m==="floating"?"reference":"floating":m],j=Eh(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:d,rootBoundary:v,strategy:f})),E=m==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),M=await(s.isElement==null?void 0:s.isElement(A))?await(s.getScale==null?void 0:s.getScale(A))||{x:1,y:1}:{x:1,y:1},T=Eh(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:E,offsetParent:A,strategy:f}):E);return{top:(j.top-T.top+_.top)/M.y,bottom:(T.bottom-j.bottom+_.bottom)/M.y,left:(j.left-T.left+_.left)/M.x,right:(T.right-j.right+_.right)/M.x}}const t7=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:l,elements:c,middlewareData:f}=t,{element:d,padding:v=0}=Fa(e,t)||{};if(d==null)return{};const m=E$(v),g={x:n,y:r},x=IS(i),_=LS(x),S=await l.getDimensions(d),w=x==="y",j=w?"top":"left",E=w?"bottom":"right",A=w?"clientHeight":"clientWidth",M=s.reference[_]+s.reference[x]-g[x]-s.floating[_],T=g[x]-s.reference[x],N=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d));let R=N?N[A]:0;(!R||!await(l.isElement==null?void 0:l.isElement(N)))&&(R=c.floating[A]||s.floating[_]);const D=M/2-T/2,I=R/2-S[_]/2-1,Y=Li(m[j],I),z=Li(m[E],I),H=Y,V=R-S[_]-z,Q=R/2-S[_]/2+D,K=Dw(H,Q,V),k=!f.arrow&&Bl(i)!=null&&Q!==K&&s.reference[_]/2-(Q<H?Y:z)-S[_]/2<0,q=k?Q<H?Q-H:Q-V:0;return{[x]:g[x]+q,data:{[x]:K,centerOffset:Q-K-q,...k&&{alignmentOffset:q}},reset:k}}}),n7=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:l,initialPlacement:c,platform:f,elements:d}=t,{mainAxis:v=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:S=!0,...w}=Fa(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const j=Ga(i),E=ia(c),A=Ga(c)===c,M=await(f.isRTL==null?void 0:f.isRTL(d.floating)),T=g||(A||!S?[jh(c)]:WH(c)),N=_!=="none";!g&&N&&T.push(...ZH(c,S,_,M));const R=[c,...T],D=await yc(t,w),I=[];let Y=((r=s.flip)==null?void 0:r.overflows)||[];if(v&&I.push(D[j]),m){const Q=YH(i,l,M);I.push(D[Q[0]],D[Q[1]])}if(Y=[...Y,{placement:i,overflows:I}],!I.every(Q=>Q<=0)){var z,H;const Q=(((z=s.flip)==null?void 0:z.index)||0)+1,K=R[Q];if(K&&(!(m==="alignment"?E!==ia(K):!1)||Y.every(B=>ia(B.placement)===E?B.overflows[0]>0:!0)))return{data:{index:Q,overflows:Y},reset:{placement:K}};let k=(H=Y.filter(q=>q.overflows[0]<=0).sort((q,B)=>q.overflows[1]-B.overflows[1])[0])==null?void 0:H.placement;if(!k)switch(x){case"bestFit":{var V;const q=(V=Y.filter(B=>{if(N){const W=ia(B.placement);return W===E||W==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(W=>W>0).reduce((W,se)=>W+se,0)]).sort((B,W)=>B[1]-W[1])[0])==null?void 0:V[0];q&&(k=q);break}case"initialPlacement":k=c;break}if(i!==k)return{reset:{placement:k}}}return{}}}};function lC(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function uC(e){return HH.some(t=>e[t]>=0)}const r7=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Fa(e,t);switch(r){case"referenceHidden":{const s=await yc(t,{...i,elementContext:"reference"}),l=lC(s,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:uC(l)}}}case"escaped":{const s=await yc(t,{...i,altBoundary:!0}),l=lC(s,n.floating);return{data:{escapedOffsets:l,escaped:uC(l)}}}default:return{}}}}},A$=new Set(["left","top"]);async function a7(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=Ga(n),c=Bl(n),f=ia(n)==="y",d=A$.has(l)?-1:1,v=s&&f?-1:1,m=Fa(t,e);let{mainAxis:g,crossAxis:x,alignmentAxis:_}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof _=="number"&&(x=c==="end"?_*-1:_),f?{x:x*v,y:g*d}:{x:g*d,y:x*v}}const i7=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:l,middlewareData:c}=t,f=await a7(t,e);return l===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+f.x,y:s+f.y,data:{...f,placement:l}}}}},o7=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:w=>{let{x:j,y:E}=w;return{x:j,y:E}}},...f}=Fa(e,t),d={x:n,y:r},v=await yc(t,f),m=ia(Ga(i)),g=$S(m);let x=d[g],_=d[m];if(s){const w=g==="y"?"top":"left",j=g==="y"?"bottom":"right",E=x+v[w],A=x-v[j];x=Dw(E,x,A)}if(l){const w=m==="y"?"top":"left",j=m==="y"?"bottom":"right",E=_+v[w],A=_-v[j];_=Dw(E,_,A)}const S=c.fn({...t,[g]:x,[m]:_});return{...S,data:{x:S.x-n,y:S.y-r,enabled:{[g]:s,[m]:l}}}}}},s7=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:l}=t,{offset:c=0,mainAxis:f=!0,crossAxis:d=!0}=Fa(e,t),v={x:n,y:r},m=ia(i),g=$S(m);let x=v[g],_=v[m];const S=Fa(c,t),w=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(f){const A=g==="y"?"height":"width",M=s.reference[g]-s.floating[A]+w.mainAxis,T=s.reference[g]+s.reference[A]-w.mainAxis;x<M?x=M:x>T&&(x=T)}if(d){var j,E;const A=g==="y"?"width":"height",M=A$.has(Ga(i)),T=s.reference[m]-s.floating[A]+(M&&((j=l.offset)==null?void 0:j[m])||0)+(M?0:w.crossAxis),N=s.reference[m]+s.reference[A]+(M?0:((E=l.offset)==null?void 0:E[m])||0)-(M?w.crossAxis:0);_<T?_=T:_>N&&(_=N)}return{[g]:x,[m]:_}}}},l7=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:l,elements:c}=t,{apply:f=()=>{},...d}=Fa(e,t),v=await yc(t,d),m=Ga(i),g=Bl(i),x=ia(i)==="y",{width:_,height:S}=s.floating;let w,j;m==="top"||m==="bottom"?(w=m,j=g===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(j=m,w=g==="end"?"top":"bottom");const E=S-v.top-v.bottom,A=_-v.left-v.right,M=Li(S-v[w],E),T=Li(_-v[j],A),N=!t.middlewareData.shift;let R=M,D=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=A),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=E),N&&!g){const Y=Wn(v.left,0),z=Wn(v.right,0),H=Wn(v.top,0),V=Wn(v.bottom,0);x?D=_-2*(Y!==0||z!==0?Y+z:Wn(v.left,v.right)):R=S-2*(H!==0||V!==0?H+V:Wn(v.top,v.bottom))}await f({...t,availableWidth:D,availableHeight:R});const I=await l.getDimensions(c.floating);return _!==I.width||S!==I.height?{reset:{rects:!0}}:{}}}};function Um(){return typeof window<"u"}function ql(e){return T$(e)?(e.nodeName||"").toLowerCase():"#document"}function Xn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ha(e){var t;return(t=(T$(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function T$(e){return Um()?e instanceof Node||e instanceof Xn(e).Node:!1}function $r(e){return Um()?e instanceof Element||e instanceof Xn(e).Element:!1}function ca(e){return Um()?e instanceof HTMLElement||e instanceof Xn(e).HTMLElement:!1}function cC(e){return!Um()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xn(e).ShadowRoot}const u7=new Set(["inline","contents"]);function df(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Lr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!u7.has(i)}const c7=new Set(["table","td","th"]);function f7(e){return c7.has(ql(e))}const d7=[":popover-open",":modal"];function Hm(e){return d7.some(t=>{try{return e.matches(t)}catch{return!1}})}const h7=["transform","translate","scale","rotate","perspective"],m7=["transform","translate","scale","rotate","perspective","filter"],p7=["paint","layout","strict","content"];function zS(e){const t=BS(),n=$r(e)?Lr(e):e;return h7.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)||m7.some(r=>(n.willChange||"").includes(r))||p7.some(r=>(n.contain||"").includes(r))}function v7(e){let t=Ii(e);for(;ca(t)&&!al(t);){if(zS(t))return t;if(Hm(t))return null;t=Ii(t)}return null}function BS(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const g7=new Set(["html","body","#document"]);function al(e){return g7.has(ql(e))}function Lr(e){return Xn(e).getComputedStyle(e)}function Fm(e){return $r(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ii(e){if(ql(e)==="html")return e;const t=e.assignedSlot||e.parentNode||cC(e)&&e.host||ha(e);return cC(t)?t.host:t}function C$(e){const t=Ii(e);return al(t)?e.ownerDocument?e.ownerDocument.body:e.body:ca(t)&&df(t)?t:C$(t)}function bc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=C$(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),l=Xn(i);if(s){const c=kw(l);return t.concat(l,l.visualViewport||[],df(i)?i:[],c&&n?bc(c):[])}return t.concat(i,bc(i,[],n))}function kw(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function N$(e){const t=Lr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ca(e),s=i?e.offsetWidth:n,l=i?e.offsetHeight:r,c=_h(n)!==s||_h(r)!==l;return c&&(n=s,r=l),{width:n,height:r,$:c}}function qS(e){return $r(e)?e:e.contextElement}function Ks(e){const t=qS(e);if(!ca(t))return sa(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=N$(t);let l=(s?_h(n.width):n.width)/r,c=(s?_h(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const y7=sa(0);function M$(e){const t=Xn(e);return!BS()||!t.visualViewport?y7:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function b7(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xn(e)?!1:t}function Co(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=qS(e);let l=sa(1);t&&(r?$r(r)&&(l=Ks(r)):l=Ks(e));const c=b7(s,n,r)?M$(s):sa(0);let f=(i.left+c.x)/l.x,d=(i.top+c.y)/l.y,v=i.width/l.x,m=i.height/l.y;if(s){const g=Xn(s),x=r&&$r(r)?Xn(r):r;let _=g,S=kw(_);for(;S&&r&&x!==_;){const w=Ks(S),j=S.getBoundingClientRect(),E=Lr(S),A=j.left+(S.clientLeft+parseFloat(E.paddingLeft))*w.x,M=j.top+(S.clientTop+parseFloat(E.paddingTop))*w.y;f*=w.x,d*=w.y,v*=w.x,m*=w.y,f+=A,d+=M,_=Xn(S),S=kw(_)}}return Eh({width:v,height:m,x:f,y:d})}function Gm(e,t){const n=Fm(e).scrollLeft;return t?t.left+n:Co(ha(e)).left+n}function R$(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Gm(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function x7(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",l=ha(r),c=t?Hm(t.floating):!1;if(r===l||c&&s)return n;let f={scrollLeft:0,scrollTop:0},d=sa(1);const v=sa(0),m=ca(r);if((m||!m&&!s)&&((ql(r)!=="body"||df(l))&&(f=Fm(r)),ca(r))){const x=Co(r);d=Ks(r),v.x=x.x+r.clientLeft,v.y=x.y+r.clientTop}const g=l&&!m&&!s?R$(l,f):sa(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-f.scrollLeft*d.x+v.x+g.x,y:n.y*d.y-f.scrollTop*d.y+v.y+g.y}}function w7(e){return Array.from(e.getClientRects())}function S7(e){const t=ha(e),n=Fm(e),r=e.ownerDocument.body,i=Wn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Wn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Gm(e);const c=-n.scrollTop;return Lr(r).direction==="rtl"&&(l+=Wn(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:l,y:c}}const fC=25;function O7(e,t){const n=Xn(e),r=ha(e),i=n.visualViewport;let s=r.clientWidth,l=r.clientHeight,c=0,f=0;if(i){s=i.width,l=i.height;const v=BS();(!v||v&&t==="fixed")&&(c=i.offsetLeft,f=i.offsetTop)}const d=Gm(r);if(d<=0){const v=r.ownerDocument,m=v.body,g=getComputedStyle(m),x=v.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,_=Math.abs(r.clientWidth-m.clientWidth-x);_<=fC&&(s-=_)}else d<=fC&&(s+=d);return{width:s,height:l,x:c,y:f}}const _7=new Set(["absolute","fixed"]);function j7(e,t){const n=Co(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=ca(e)?Ks(e):sa(1),l=e.clientWidth*s.x,c=e.clientHeight*s.y,f=i*s.x,d=r*s.y;return{width:l,height:c,x:f,y:d}}function dC(e,t,n){let r;if(t==="viewport")r=O7(e,n);else if(t==="document")r=S7(ha(e));else if($r(t))r=j7(t,n);else{const i=M$(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Eh(r)}function D$(e,t){const n=Ii(e);return n===t||!$r(n)||al(n)?!1:Lr(n).position==="fixed"||D$(n,t)}function E7(e,t){const n=t.get(e);if(n)return n;let r=bc(e,[],!1).filter(c=>$r(c)&&ql(c)!=="body"),i=null;const s=Lr(e).position==="fixed";let l=s?Ii(e):e;for(;$r(l)&&!al(l);){const c=Lr(l),f=zS(l);!f&&c.position==="fixed"&&(i=null),(s?!f&&!i:!f&&c.position==="static"&&!!i&&_7.has(i.position)||df(l)&&!f&&D$(e,l))?r=r.filter(v=>v!==l):i=c,l=Ii(l)}return t.set(e,r),r}function A7(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?Hm(t)?[]:E7(t,this._c):[].concat(n),r],c=l[0],f=l.reduce((d,v)=>{const m=dC(t,v,i);return d.top=Wn(m.top,d.top),d.right=Li(m.right,d.right),d.bottom=Li(m.bottom,d.bottom),d.left=Wn(m.left,d.left),d},dC(t,c,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function T7(e){const{width:t,height:n}=N$(e);return{width:t,height:n}}function C7(e,t,n){const r=ca(t),i=ha(t),s=n==="fixed",l=Co(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const f=sa(0);function d(){f.x=Gm(i)}if(r||!r&&!s)if((ql(t)!=="body"||df(i))&&(c=Fm(t)),r){const x=Co(t,!0,s,t);f.x=x.x+t.clientLeft,f.y=x.y+t.clientTop}else i&&d();s&&!r&&i&&d();const v=i&&!r&&!s?R$(i,c):sa(0),m=l.left+c.scrollLeft-f.x-v.x,g=l.top+c.scrollTop-f.y-v.y;return{x:m,y:g,width:l.width,height:l.height}}function yy(e){return Lr(e).position==="static"}function hC(e,t){if(!ca(e)||Lr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ha(e)===n&&(n=n.ownerDocument.body),n}function P$(e,t){const n=Xn(e);if(Hm(e))return n;if(!ca(e)){let i=Ii(e);for(;i&&!al(i);){if($r(i)&&!yy(i))return i;i=Ii(i)}return n}let r=hC(e,t);for(;r&&f7(r)&&yy(r);)r=hC(r,t);return r&&al(r)&&yy(r)&&!zS(r)?n:r||v7(e)||n}const N7=async function(e){const t=this.getOffsetParent||P$,n=this.getDimensions,r=await n(e.floating);return{reference:C7(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function M7(e){return Lr(e).direction==="rtl"}const R7={convertOffsetParentRelativeRectToViewportRelativeRect:x7,getDocumentElement:ha,getClippingRect:A7,getOffsetParent:P$,getElementRects:N7,getClientRects:w7,getDimensions:T7,getScale:Ks,isElement:$r,isRTL:M7};function k$(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function D7(e,t){let n=null,r;const i=ha(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function l(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),s();const d=e.getBoundingClientRect(),{left:v,top:m,width:g,height:x}=d;if(c||t(),!g||!x)return;const _=Yd(m),S=Yd(i.clientWidth-(v+g)),w=Yd(i.clientHeight-(m+x)),j=Yd(v),A={rootMargin:-_+"px "+-S+"px "+-w+"px "+-j+"px",threshold:Wn(0,Li(1,f))||1};let M=!0;function T(N){const R=N[0].intersectionRatio;if(R!==f){if(!M)return l();R?l(!1,R):r=setTimeout(()=>{l(!1,1e-7)},1e3)}R===1&&!k$(d,e.getBoundingClientRect())&&l(),M=!1}try{n=new IntersectionObserver(T,{...A,root:i.ownerDocument})}catch{n=new IntersectionObserver(T,A)}n.observe(e)}return l(!0),s}function P7(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,d=qS(e),v=i||s?[...d?bc(d):[],...bc(t)]:[];v.forEach(j=>{i&&j.addEventListener("scroll",n,{passive:!0}),s&&j.addEventListener("resize",n)});const m=d&&c?D7(d,n):null;let g=-1,x=null;l&&(x=new ResizeObserver(j=>{let[E]=j;E&&E.target===d&&x&&(x.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var A;(A=x)==null||A.observe(t)})),n()}),d&&!f&&x.observe(d),x.observe(t));let _,S=f?Co(e):null;f&&w();function w(){const j=Co(e);S&&!k$(S,j)&&n(),S=j,_=requestAnimationFrame(w)}return n(),()=>{var j;v.forEach(E=>{i&&E.removeEventListener("scroll",n),s&&E.removeEventListener("resize",n)}),m==null||m(),(j=x)==null||j.disconnect(),x=null,f&&cancelAnimationFrame(_)}}const k7=i7,$7=o7,L7=n7,I7=l7,z7=r7,mC=t7,B7=s7,q7=(e,t,n)=>{const r=new Map,i={platform:R7,...n},s={...i.platform,_c:r};return e7(e,t,{...i,platform:s})};var U7=typeof document<"u",H7=function(){},ph=U7?O.useLayoutEffect:H7;function Ah(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(!Ah(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 s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!Ah(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function $$(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pC(e,t){const n=$$(e);return Math.round(t*n)/n}function by(e){const t=O.useRef(e);return ph(()=>{t.current=e}),t}function F7(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:l}={},transform:c=!0,whileElementsMounted:f,open:d}=e,[v,m]=O.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,x]=O.useState(r);Ah(g,r)||x(r);const[_,S]=O.useState(null),[w,j]=O.useState(null),E=O.useCallback(B=>{B!==N.current&&(N.current=B,S(B))},[]),A=O.useCallback(B=>{B!==R.current&&(R.current=B,j(B))},[]),M=s||_,T=l||w,N=O.useRef(null),R=O.useRef(null),D=O.useRef(v),I=f!=null,Y=by(f),z=by(i),H=by(d),V=O.useCallback(()=>{if(!N.current||!R.current)return;const B={placement:t,strategy:n,middleware:g};z.current&&(B.platform=z.current),q7(N.current,R.current,B).then(W=>{const se={...W,isPositioned:H.current!==!1};Q.current&&!Ah(D.current,se)&&(D.current=se,lf.flushSync(()=>{m(se)}))})},[g,t,n,z,H]);ph(()=>{d===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,m(B=>({...B,isPositioned:!1})))},[d]);const Q=O.useRef(!1);ph(()=>(Q.current=!0,()=>{Q.current=!1}),[]),ph(()=>{if(M&&(N.current=M),T&&(R.current=T),M&&T){if(Y.current)return Y.current(M,T,V);V()}},[M,T,V,Y,I]);const K=O.useMemo(()=>({reference:N,floating:R,setReference:E,setFloating:A}),[E,A]),k=O.useMemo(()=>({reference:M,floating:T}),[M,T]),q=O.useMemo(()=>{const B={position:n,left:0,top:0};if(!k.floating)return B;const W=pC(k.floating,v.x),se=pC(k.floating,v.y);return c?{...B,transform:"translate("+W+"px, "+se+"px)",...$$(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:se}},[n,c,k.floating,v.x,v.y]);return O.useMemo(()=>({...v,update:V,refs:K,elements:k,floatingStyles:q}),[v,V,K,k,q])}const G7=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?mC({element:r.current,padding:i}).fn(n):{}:r?mC({element:r,padding:i}).fn(n):{}}}},V7=(e,t)=>({...k7(e),options:[e,t]}),Y7=(e,t)=>({...$7(e),options:[e,t]}),W7=(e,t)=>({...B7(e),options:[e,t]}),K7=(e,t)=>({...L7(e),options:[e,t]}),X7=(e,t)=>({...I7(e),options:[e,t]}),Q7=(e,t)=>({...z7(e),options:[e,t]}),Z7=(e,t)=>({...G7(e),options:[e,t]});var J7="Arrow",L$=O.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...s}=e;return p.jsx(Re.svg,{...s,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});L$.displayName=J7;var e9=L$;function t9(e){const[t,n]=O.useState(void 0);return Ft(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let l,c;if("borderBoxSize"in s){const f=s.borderBoxSize,d=Array.isArray(f)?f[0]:f;l=d.inlineSize,c=d.blockSize}else l=e.offsetWidth,c=e.offsetHeight;n({width:l,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var US="Popper",[I$,Ul]=zr(US),[n9,z$]=I$(US),B$=e=>{const{__scopePopper:t,children:n}=e,[r,i]=O.useState(null);return p.jsx(n9,{scope:t,anchor:r,onAnchorChange:i,children:n})};B$.displayName=US;var q$="PopperAnchor",U$=O.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,s=z$(q$,n),l=O.useRef(null),c=tt(t,l),f=O.useRef(null);return O.useEffect(()=>{const d=f.current;f.current=(r==null?void 0:r.current)||l.current,d!==f.current&&s.onAnchorChange(f.current)}),r?null:p.jsx(Re.div,{...i,ref:c})});U$.displayName=q$;var HS="PopperContent",[r9,a9]=I$(HS),H$=O.forwardRef((e,t)=>{var ce,he,ie,me,ve,ne;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:d=[],collisionPadding:v=0,sticky:m="partial",hideWhenDetached:g=!1,updatePositionStrategy:x="optimized",onPlaced:_,...S}=e,w=z$(HS,n),[j,E]=O.useState(null),A=tt(t,De=>E(De)),[M,T]=O.useState(null),N=t9(M),R=(N==null?void 0:N.width)??0,D=(N==null?void 0:N.height)??0,I=r+(s!=="center"?"-"+s:""),Y=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},z=Array.isArray(d)?d:[d],H=z.length>0,V={padding:Y,boundary:z.filter(o9),altBoundary:H},{refs:Q,floatingStyles:K,placement:k,isPositioned:q,middlewareData:B}=F7({strategy:"fixed",placement:I,whileElementsMounted:(...De)=>P7(...De,{animationFrame:x==="always"}),elements:{reference:w.anchor},middleware:[V7({mainAxis:i+D,alignmentAxis:l}),f&&Y7({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?W7():void 0,...V}),f&&K7({...V}),X7({...V,apply:({elements:De,rects:je,availableWidth:rt,availableHeight:Xe})=>{const{width:ft,height:fn}=je.reference,St=De.floating.style;St.setProperty("--radix-popper-available-width",`${rt}px`),St.setProperty("--radix-popper-available-height",`${Xe}px`),St.setProperty("--radix-popper-anchor-width",`${ft}px`),St.setProperty("--radix-popper-anchor-height",`${fn}px`)}}),M&&Z7({element:M,padding:c}),s9({arrowWidth:R,arrowHeight:D}),g&&Q7({strategy:"referenceHidden",...V})]}),[W,se]=V$(k),$=kr(_);Ft(()=>{q&&($==null||$())},[q,$]);const F=(ce=B.arrow)==null?void 0:ce.x,X=(he=B.arrow)==null?void 0:he.y,ae=((ie=B.arrow)==null?void 0:ie.centerOffset)!==0,[de,ge]=O.useState();return Ft(()=>{j&&ge(window.getComputedStyle(j).zIndex)},[j]),p.jsx("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:q?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[(me=B.transformOrigin)==null?void 0:me.x,(ve=B.transformOrigin)==null?void 0:ve.y].join(" "),...((ne=B.hide)==null?void 0:ne.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(r9,{scope:n,placedSide:W,onArrowChange:T,arrowX:F,arrowY:X,shouldHideArrow:ae,children:p.jsx(Re.div,{"data-side":W,"data-align":se,...S,ref:A,style:{...S.style,animation:q?void 0:"none"}})})})});H$.displayName=HS;var F$="PopperArrow",i9={top:"bottom",right:"left",bottom:"top",left:"right"},G$=O.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,s=a9(F$,r),l=i9[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:p.jsx(e9,{...i,ref:n,style:{...i.style,display:"block"}})})});G$.displayName=F$;function o9(e){return e!==null}var s9=e=>({name:"transformOrigin",options:e,fn(t){var w,j,E;const{placement:n,rects:r,middlewareData:i}=t,l=((w=i.arrow)==null?void 0:w.centerOffset)!==0,c=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[d,v]=V$(n),m={start:"0%",center:"50%",end:"100%"}[v],g=(((j=i.arrow)==null?void 0:j.x)??0)+c/2,x=(((E=i.arrow)==null?void 0:E.y)??0)+f/2;let _="",S="";return d==="bottom"?(_=l?m:`${g}px`,S=`${-f}px`):d==="top"?(_=l?m:`${g}px`,S=`${r.floating.height+f}px`):d==="right"?(_=`${-f}px`,S=l?m:`${x}px`):d==="left"&&(_=`${r.floating.width+f}px`,S=l?m:`${x}px`),{data:{x:_,y:S}}}});function V$(e){const[t,n="center"]=e.split("-");return[t,n]}var FS=B$,GS=U$,VS=H$,YS=G$,l9="Portal",hf=O.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[i,s]=O.useState(!1);Ft(()=>s(!0),[]);const l=n||i&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return l?Vk.createPortal(p.jsx(Re.div,{...r,ref:t}),l):null});hf.displayName=l9;function u9(e,t){return O.useReducer((n,r)=>t[n][r]??n,e)}var wr=e=>{const{present:t,children:n}=e,r=c9(t),i=typeof n=="function"?n({present:r.isPresent}):O.Children.only(n),s=tt(r.ref,f9(i));return typeof n=="function"||r.isPresent?O.cloneElement(i,{ref:s}):null};wr.displayName="Presence";function c9(e){const[t,n]=O.useState(),r=O.useRef(null),i=O.useRef(e),s=O.useRef("none"),l=e?"mounted":"unmounted",[c,f]=u9(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return O.useEffect(()=>{const d=Wd(r.current);s.current=c==="mounted"?d:"none"},[c]),Ft(()=>{const d=r.current,v=i.current;if(v!==e){const g=s.current,x=Wd(d);e?f("MOUNT"):x==="none"||(d==null?void 0:d.display)==="none"?f("UNMOUNT"):f(v&&g!==x?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,f]),Ft(()=>{if(t){let d;const v=t.ownerDocument.defaultView??window,m=x=>{const S=Wd(r.current).includes(CSS.escape(x.animationName));if(x.target===t&&S&&(f("ANIMATION_END"),!i.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",d=v.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},g=x=>{x.target===t&&(s.current=Wd(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{v.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:O.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function Wd(e){return(e==null?void 0:e.animationName)||"none"}function f9(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 xy="rovingFocusGroup.onEntryFocus",d9={bubbles:!1,cancelable:!0},mf="RovingFocusGroup",[$w,Y$,h9]=PS(mf),[m9,Vm]=zr(mf,[h9]),[p9,v9]=m9(mf),W$=O.forwardRef((e,t)=>p.jsx($w.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx($w.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(g9,{...e,ref:t})})}));W$.displayName=mf;var g9=O.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:f,onEntryFocus:d,preventScrollOnEntryFocus:v=!1,...m}=e,g=O.useRef(null),x=tt(t,g),_=Bm(s),[S,w]=$i({prop:l,defaultProp:c??null,onChange:f,caller:mf}),[j,E]=O.useState(!1),A=kr(d),M=Y$(n),T=O.useRef(!1),[N,R]=O.useState(0);return O.useEffect(()=>{const D=g.current;if(D)return D.addEventListener(xy,A),()=>D.removeEventListener(xy,A)},[A]),p.jsx(p9,{scope:n,orientation:r,dir:_,loop:i,currentTabStopId:S,onItemFocus:O.useCallback(D=>w(D),[w]),onItemShiftTab:O.useCallback(()=>E(!0),[]),onFocusableItemAdd:O.useCallback(()=>R(D=>D+1),[]),onFocusableItemRemove:O.useCallback(()=>R(D=>D-1),[]),children:p.jsx(Re.div,{tabIndex:j||N===0?-1:0,"data-orientation":r,...m,ref:x,style:{outline:"none",...e.style},onMouseDown:be(e.onMouseDown,()=>{T.current=!0}),onFocus:be(e.onFocus,D=>{const I=!T.current;if(D.target===D.currentTarget&&I&&!j){const Y=new CustomEvent(xy,d9);if(D.currentTarget.dispatchEvent(Y),!Y.defaultPrevented){const z=M().filter(k=>k.focusable),H=z.find(k=>k.active),V=z.find(k=>k.id===S),K=[H,V,...z].filter(Boolean).map(k=>k.ref.current);Q$(K,v)}}T.current=!1}),onBlur:be(e.onBlur,()=>E(!1))})})}),K$="RovingFocusGroupItem",X$=O.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:s,children:l,...c}=e,f=pr(),d=s||f,v=v9(K$,n),m=v.currentTabStopId===d,g=Y$(n),{onFocusableItemAdd:x,onFocusableItemRemove:_,currentTabStopId:S}=v;return O.useEffect(()=>{if(r)return x(),()=>_()},[r,x,_]),p.jsx($w.ItemSlot,{scope:n,id:d,focusable:r,active:i,children:p.jsx(Re.span,{tabIndex:m?0:-1,"data-orientation":v.orientation,...c,ref:t,onMouseDown:be(e.onMouseDown,w=>{r?v.onItemFocus(d):w.preventDefault()}),onFocus:be(e.onFocus,()=>v.onItemFocus(d)),onKeyDown:be(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){v.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const j=x9(w,v.orientation,v.dir);if(j!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let A=g().filter(M=>M.focusable).map(M=>M.ref.current);if(j==="last")A.reverse();else if(j==="prev"||j==="next"){j==="prev"&&A.reverse();const M=A.indexOf(w.currentTarget);A=v.loop?w9(A,M+1):A.slice(M+1)}setTimeout(()=>Q$(A))}}),children:typeof l=="function"?l({isCurrentTabStop:m,hasTabStop:S!=null}):l})})});X$.displayName=K$;var y9={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function b9(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function x9(e,t,n){const r=b9(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return y9[r]}function Q$(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function w9(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Z$=W$,J$=X$,S9=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},$s=new WeakMap,Kd=new WeakMap,Xd={},wy=0,eL=function(e){return e&&(e.host||eL(e.parentNode))},O9=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=eL(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})},_9=function(e,t,n,r){var i=O9(t,Array.isArray(e)?e:[e]);Xd[n]||(Xd[n]=new WeakMap);var s=Xd[n],l=[],c=new Set,f=new Set(i),d=function(m){!m||c.has(m)||(c.add(m),d(m.parentNode))};i.forEach(d);var v=function(m){!m||f.has(m)||Array.prototype.forEach.call(m.children,function(g){if(c.has(g))v(g);else try{var x=g.getAttribute(r),_=x!==null&&x!=="false",S=($s.get(g)||0)+1,w=(s.get(g)||0)+1;$s.set(g,S),s.set(g,w),l.push(g),S===1&&_&&Kd.set(g,!0),w===1&&g.setAttribute(n,"true"),_||g.setAttribute(r,"true")}catch(j){console.error("aria-hidden: cannot operate on ",g,j)}})};return v(t),c.clear(),wy++,function(){l.forEach(function(m){var g=$s.get(m)-1,x=s.get(m)-1;$s.set(m,g),s.set(m,x),g||(Kd.has(m)||m.removeAttribute(r),Kd.delete(m)),x||m.removeAttribute(n)}),wy--,wy||($s=new WeakMap,$s=new WeakMap,Kd=new WeakMap,Xd={})}},WS=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=S9(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),_9(r,i,n,"aria-hidden")):function(){return null}},na=function(){return na=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},na.apply(this,arguments)};function tL(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 j9(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var vh="right-scroll-bar-position",gh="width-before-scroll-bar",E9="with-scroll-bars-hidden",A9="--removed-body-scroll-bar-size";function Sy(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function T9(e,t){var n=O.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 C9=typeof window<"u"?O.useLayoutEffect:O.useEffect,vC=new WeakMap;function N9(e,t){var n=T9(null,function(r){return e.forEach(function(i){return Sy(i,r)})});return C9(function(){var r=vC.get(n);if(r){var i=new Set(r),s=new Set(e),l=n.current;i.forEach(function(c){s.has(c)||Sy(c,null)}),s.forEach(function(c){i.has(c)||Sy(c,l)})}vC.set(n,e)},[e]),n}function M9(e){return e}function R9(e,t){t===void 0&&(t=M9);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(s){var l=t(s,r);return n.push(l),function(){n=n.filter(function(c){return c!==l})}},assignSyncMedium:function(s){for(r=!0;n.length;){var l=n;n=[],l.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var l=[];if(n.length){var c=n;n=[],c.forEach(s),l=n}var f=function(){var v=l;l=[],v.forEach(s)},d=function(){return Promise.resolve().then(f)};d(),n={push:function(v){l.push(v),d()},filter:function(v){return l=l.filter(v),n}}}};return i}function D9(e){e===void 0&&(e={});var t=R9(null);return t.options=na({async:!0,ssr:!1},e),t}var nL=function(e){var t=e.sideCar,n=tL(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 O.createElement(r,na({},n))};nL.isSideCarExport=!0;function P9(e,t){return e.useMedium(t),nL}var rL=D9(),Oy=function(){},Ym=O.forwardRef(function(e,t){var n=O.useRef(null),r=O.useState({onScrollCapture:Oy,onWheelCapture:Oy,onTouchMoveCapture:Oy}),i=r[0],s=r[1],l=e.forwardProps,c=e.children,f=e.className,d=e.removeScrollBar,v=e.enabled,m=e.shards,g=e.sideCar,x=e.noRelative,_=e.noIsolation,S=e.inert,w=e.allowPinchZoom,j=e.as,E=j===void 0?"div":j,A=e.gapMode,M=tL(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=g,N=N9([n,t]),R=na(na({},M),i);return O.createElement(O.Fragment,null,v&&O.createElement(T,{sideCar:rL,removeScrollBar:d,shards:m,noRelative:x,noIsolation:_,inert:S,setCallbacks:s,allowPinchZoom:!!w,lockRef:n,gapMode:A}),l?O.cloneElement(O.Children.only(c),na(na({},R),{ref:N})):O.createElement(E,na({},R,{className:f,ref:N}),c))});Ym.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ym.classNames={fullWidth:gh,zeroRight:vh};var k9=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $9(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=k9();return t&&e.setAttribute("nonce",t),e}function L9(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function I9(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var z9=function(){var e=0,t=null;return{add:function(n){e==0&&(t=$9())&&(L9(t,n),I9(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},B9=function(){var e=z9();return function(t,n){O.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},aL=function(){var e=B9(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},q9={left:0,top:0,right:0,gap:0},_y=function(e){return parseInt(e||"",10)||0},U9=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[_y(n),_y(r),_y(i)]},H9=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return q9;var t=U9(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])}},F9=aL(),Xs="data-scroll-locked",G9=function(e,t,n,r){var i=e.left,s=e.top,l=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
254
|
+
.`.concat(E9,` {
|
|
255
|
+
overflow: hidden `).concat(r,`;
|
|
256
|
+
padding-right: `).concat(c,"px ").concat(r,`;
|
|
257
|
+
}
|
|
258
|
+
body[`).concat(Xs,`] {
|
|
259
|
+
overflow: hidden `).concat(r,`;
|
|
260
|
+
overscroll-behavior: contain;
|
|
261
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
262
|
+
padding-left: `.concat(i,`px;
|
|
263
|
+
padding-top: `).concat(s,`px;
|
|
264
|
+
padding-right: `).concat(l,`px;
|
|
265
|
+
margin-left:0;
|
|
266
|
+
margin-top:0;
|
|
267
|
+
margin-right: `).concat(c,"px ").concat(r,`;
|
|
268
|
+
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.`).concat(vh,` {
|
|
272
|
+
right: `).concat(c,"px ").concat(r,`;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.`).concat(gh,` {
|
|
276
|
+
margin-right: `).concat(c,"px ").concat(r,`;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.`).concat(vh," .").concat(vh,` {
|
|
280
|
+
right: 0 `).concat(r,`;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.`).concat(gh," .").concat(gh,` {
|
|
284
|
+
margin-right: 0 `).concat(r,`;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
body[`).concat(Xs,`] {
|
|
288
|
+
`).concat(A9,": ").concat(c,`px;
|
|
289
|
+
}
|
|
290
|
+
`)},gC=function(){var e=parseInt(document.body.getAttribute(Xs)||"0",10);return isFinite(e)?e:0},V9=function(){O.useEffect(function(){return document.body.setAttribute(Xs,(gC()+1).toString()),function(){var e=gC()-1;e<=0?document.body.removeAttribute(Xs):document.body.setAttribute(Xs,e.toString())}},[])},Y9=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;V9();var s=O.useMemo(function(){return H9(i)},[i]);return O.createElement(F9,{styles:G9(s,!t,i,n?"":"!important")})},Lw=!1;if(typeof window<"u")try{var Qd=Object.defineProperty({},"passive",{get:function(){return Lw=!0,!0}});window.addEventListener("test",Qd,Qd),window.removeEventListener("test",Qd,Qd)}catch{Lw=!1}var Ls=Lw?{passive:!1}:!1,W9=function(e){return e.tagName==="TEXTAREA"},iL=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!W9(e)&&n[t]==="visible")},K9=function(e){return iL(e,"overflowY")},X9=function(e){return iL(e,"overflowX")},yC=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=oL(e,r);if(i){var s=sL(e,r),l=s[1],c=s[2];if(l>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Q9=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Z9=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},oL=function(e,t){return e==="v"?K9(t):X9(t)},sL=function(e,t){return e==="v"?Q9(t):Z9(t)},J9=function(e,t){return e==="h"&&t==="rtl"?-1:1},eF=function(e,t,n,r,i){var s=J9(e,window.getComputedStyle(t).direction),l=s*r,c=n.target,f=t.contains(c),d=!1,v=l>0,m=0,g=0;do{if(!c)break;var x=sL(e,c),_=x[0],S=x[1],w=x[2],j=S-w-s*_;(_||j)&&oL(e,c)&&(m+=j,g+=_);var E=c.parentNode;c=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(v&&Math.abs(m)<1||!v&&Math.abs(g)<1)&&(d=!0),d},Zd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},bC=function(e){return[e.deltaX,e.deltaY]},xC=function(e){return e&&"current"in e?e.current:e},tF=function(e,t){return e[0]===t[0]&&e[1]===t[1]},nF=function(e){return`
|
|
291
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
292
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
293
|
+
`)},rF=0,Is=[];function aF(e){var t=O.useRef([]),n=O.useRef([0,0]),r=O.useRef(),i=O.useState(rF++)[0],s=O.useState(aL)[0],l=O.useRef(e);O.useEffect(function(){l.current=e},[e]),O.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var S=j9([e.lockRef.current],(e.shards||[]).map(xC),!0).filter(Boolean);return S.forEach(function(w){return w.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),S.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=O.useCallback(function(S,w){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!l.current.allowPinchZoom;var j=Zd(S),E=n.current,A="deltaX"in S?S.deltaX:E[0]-j[0],M="deltaY"in S?S.deltaY:E[1]-j[1],T,N=S.target,R=Math.abs(A)>Math.abs(M)?"h":"v";if("touches"in S&&R==="h"&&N.type==="range")return!1;var D=window.getSelection(),I=D&&D.anchorNode,Y=I?I===N||I.contains(N):!1;if(Y)return!1;var z=yC(R,N);if(!z)return!0;if(z?T=R:(T=R==="v"?"h":"v",z=yC(R,N)),!z)return!1;if(!r.current&&"changedTouches"in S&&(A||M)&&(r.current=T),!T)return!0;var H=r.current||T;return eF(H,w,S,H==="h"?A:M)},[]),f=O.useCallback(function(S){var w=S;if(!(!Is.length||Is[Is.length-1]!==s)){var j="deltaY"in w?bC(w):Zd(w),E=t.current.filter(function(T){return T.name===w.type&&(T.target===w.target||w.target===T.shadowParent)&&tF(T.delta,j)})[0];if(E&&E.should){w.cancelable&&w.preventDefault();return}if(!E){var A=(l.current.shards||[]).map(xC).filter(Boolean).filter(function(T){return T.contains(w.target)}),M=A.length>0?c(w,A[0]):!l.current.noIsolation;M&&w.cancelable&&w.preventDefault()}}},[]),d=O.useCallback(function(S,w,j,E){var A={name:S,delta:w,target:j,should:E,shadowParent:iF(j)};t.current.push(A),setTimeout(function(){t.current=t.current.filter(function(M){return M!==A})},1)},[]),v=O.useCallback(function(S){n.current=Zd(S),r.current=void 0},[]),m=O.useCallback(function(S){d(S.type,bC(S),S.target,c(S,e.lockRef.current))},[]),g=O.useCallback(function(S){d(S.type,Zd(S),S.target,c(S,e.lockRef.current))},[]);O.useEffect(function(){return Is.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:g}),document.addEventListener("wheel",f,Ls),document.addEventListener("touchmove",f,Ls),document.addEventListener("touchstart",v,Ls),function(){Is=Is.filter(function(S){return S!==s}),document.removeEventListener("wheel",f,Ls),document.removeEventListener("touchmove",f,Ls),document.removeEventListener("touchstart",v,Ls)}},[]);var x=e.removeScrollBar,_=e.inert;return O.createElement(O.Fragment,null,_?O.createElement(s,{styles:nF(i)}):null,x?O.createElement(Y9,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function iF(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const oF=P9(rL,aF);var Wm=O.forwardRef(function(e,t){return O.createElement(Ym,na({},e,{ref:t,sideCar:oF}))});Wm.classNames=Ym.classNames;var Iw=["Enter"," "],sF=["ArrowDown","PageUp","Home"],lL=["ArrowUp","PageDown","End"],lF=[...sF,...lL],uF={ltr:[...Iw,"ArrowRight"],rtl:[...Iw,"ArrowLeft"]},cF={ltr:["ArrowLeft"],rtl:["ArrowRight"]},pf="Menu",[xc,fF,dF]=PS(pf),[qo,uL]=zr(pf,[dF,Ul,Vm]),Km=Ul(),cL=Vm(),[hF,Uo]=qo(pf),[mF,vf]=qo(pf),fL=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:s,modal:l=!0}=e,c=Km(t),[f,d]=O.useState(null),v=O.useRef(!1),m=kr(s),g=Bm(i);return O.useEffect(()=>{const x=()=>{v.current=!0,document.addEventListener("pointerdown",_,{capture:!0,once:!0}),document.addEventListener("pointermove",_,{capture:!0,once:!0})},_=()=>v.current=!1;return document.addEventListener("keydown",x,{capture:!0}),()=>{document.removeEventListener("keydown",x,{capture:!0}),document.removeEventListener("pointerdown",_,{capture:!0}),document.removeEventListener("pointermove",_,{capture:!0})}},[]),p.jsx(FS,{...c,children:p.jsx(hF,{scope:t,open:n,onOpenChange:m,content:f,onContentChange:d,children:p.jsx(mF,{scope:t,onClose:O.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:v,dir:g,modal:l,children:r})})})};fL.displayName=pf;var pF="MenuAnchor",KS=O.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Km(n);return p.jsx(GS,{...i,...r,ref:t})});KS.displayName=pF;var XS="MenuPortal",[vF,dL]=qo(XS,{forceMount:void 0}),hL=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,s=Uo(XS,t);return p.jsx(vF,{scope:t,forceMount:n,children:p.jsx(wr,{present:n||s.open,children:p.jsx(hf,{asChild:!0,container:i,children:r})})})};hL.displayName=XS;var vr="MenuContent",[gF,QS]=qo(vr),mL=O.forwardRef((e,t)=>{const n=dL(vr,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,s=Uo(vr,e.__scopeMenu),l=vf(vr,e.__scopeMenu);return p.jsx(xc.Provider,{scope:e.__scopeMenu,children:p.jsx(wr,{present:r||s.open,children:p.jsx(xc.Slot,{scope:e.__scopeMenu,children:l.modal?p.jsx(yF,{...i,ref:t}):p.jsx(bF,{...i,ref:t})})})})}),yF=O.forwardRef((e,t)=>{const n=Uo(vr,e.__scopeMenu),r=O.useRef(null),i=tt(t,r);return O.useEffect(()=>{const s=r.current;if(s)return WS(s)},[]),p.jsx(ZS,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:be(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),bF=O.forwardRef((e,t)=>{const n=Uo(vr,e.__scopeMenu);return p.jsx(ZS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),xF=rl("MenuContent.ScrollLock"),ZS=O.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:d,onPointerDownOutside:v,onFocusOutside:m,onInteractOutside:g,onDismiss:x,disableOutsideScroll:_,...S}=e,w=Uo(vr,n),j=vf(vr,n),E=Km(n),A=cL(n),M=fF(n),[T,N]=O.useState(null),R=O.useRef(null),D=tt(t,R,w.onContentChange),I=O.useRef(0),Y=O.useRef(""),z=O.useRef(0),H=O.useRef(null),V=O.useRef("right"),Q=O.useRef(0),K=_?Wm:O.Fragment,k=_?{as:xF,allowPinchZoom:!0}:void 0,q=W=>{var ce,he;const se=Y.current+W,$=M().filter(ie=>!ie.disabled),F=document.activeElement,X=(ce=$.find(ie=>ie.ref.current===F))==null?void 0:ce.textValue,ae=$.map(ie=>ie.textValue),de=RF(ae,se,X),ge=(he=$.find(ie=>ie.textValue===de))==null?void 0:he.ref.current;(function ie(me){Y.current=me,window.clearTimeout(I.current),me!==""&&(I.current=window.setTimeout(()=>ie(""),1e3))})(se),ge&&setTimeout(()=>ge.focus())};O.useEffect(()=>()=>window.clearTimeout(I.current),[]),kS();const B=O.useCallback(W=>{var $,F;return V.current===(($=H.current)==null?void 0:$.side)&&PF(W,(F=H.current)==null?void 0:F.area)},[]);return p.jsx(gF,{scope:n,searchRef:Y,onItemEnter:O.useCallback(W=>{B(W)&&W.preventDefault()},[B]),onItemLeave:O.useCallback(W=>{var se;B(W)||((se=R.current)==null||se.focus(),N(null))},[B]),onTriggerLeave:O.useCallback(W=>{B(W)&&W.preventDefault()},[B]),pointerGraceTimerRef:z,onPointerGraceIntentChange:O.useCallback(W=>{H.current=W},[]),children:p.jsx(K,{...k,children:p.jsx(qm,{asChild:!0,trapped:i,onMountAutoFocus:be(s,W=>{var se;W.preventDefault(),(se=R.current)==null||se.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:p.jsx(ff,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:v,onFocusOutside:m,onInteractOutside:g,onDismiss:x,children:p.jsx(Z$,{asChild:!0,...A,dir:j.dir,orientation:"vertical",loop:r,currentTabStopId:T,onCurrentTabStopIdChange:N,onEntryFocus:be(f,W=>{j.isUsingKeyboardRef.current||W.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(VS,{role:"menu","aria-orientation":"vertical","data-state":NL(w.open),"data-radix-menu-content":"",dir:j.dir,...E,...S,ref:D,style:{outline:"none",...S.style},onKeyDown:be(S.onKeyDown,W=>{const $=W.target.closest("[data-radix-menu-content]")===W.currentTarget,F=W.ctrlKey||W.altKey||W.metaKey,X=W.key.length===1;$&&(W.key==="Tab"&&W.preventDefault(),!F&&X&&q(W.key));const ae=R.current;if(W.target!==ae||!lF.includes(W.key))return;W.preventDefault();const ge=M().filter(ce=>!ce.disabled).map(ce=>ce.ref.current);lL.includes(W.key)&&ge.reverse(),NF(ge)}),onBlur:be(e.onBlur,W=>{W.currentTarget.contains(W.target)||(window.clearTimeout(I.current),Y.current="")}),onPointerMove:be(e.onPointerMove,wc(W=>{const se=W.target,$=Q.current!==W.clientX;if(W.currentTarget.contains(se)&&$){const F=W.clientX>Q.current?"right":"left";V.current=F,Q.current=W.clientX}}))})})})})})})});mL.displayName=vr;var wF="MenuGroup",JS=O.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(Re.div,{role:"group",...r,ref:t})});JS.displayName=wF;var SF="MenuLabel",pL=O.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(Re.div,{...r,ref:t})});pL.displayName=SF;var Th="MenuItem",wC="menu.itemSelect",Xm=O.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,s=O.useRef(null),l=vf(Th,e.__scopeMenu),c=QS(Th,e.__scopeMenu),f=tt(t,s),d=O.useRef(!1),v=()=>{const m=s.current;if(!n&&m){const g=new CustomEvent(wC,{bubbles:!0,cancelable:!0});m.addEventListener(wC,x=>r==null?void 0:r(x),{once:!0}),S$(m,g),g.defaultPrevented?d.current=!1:l.onClose()}};return p.jsx(vL,{...i,ref:f,disabled:n,onClick:be(e.onClick,v),onPointerDown:m=>{var g;(g=e.onPointerDown)==null||g.call(e,m),d.current=!0},onPointerUp:be(e.onPointerUp,m=>{var g;d.current||(g=m.currentTarget)==null||g.click()}),onKeyDown:be(e.onKeyDown,m=>{const g=c.searchRef.current!=="";n||g&&m.key===" "||Iw.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})})});Xm.displayName=Th;var vL=O.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...s}=e,l=QS(Th,n),c=cL(n),f=O.useRef(null),d=tt(t,f),[v,m]=O.useState(!1),[g,x]=O.useState("");return O.useEffect(()=>{const _=f.current;_&&x((_.textContent??"").trim())},[s.children]),p.jsx(xc.ItemSlot,{scope:n,disabled:r,textValue:i??g,children:p.jsx(J$,{asChild:!0,...c,focusable:!r,children:p.jsx(Re.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:d,onPointerMove:be(e.onPointerMove,wc(_=>{r?l.onItemLeave(_):(l.onItemEnter(_),_.defaultPrevented||_.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:be(e.onPointerLeave,wc(_=>l.onItemLeave(_))),onFocus:be(e.onFocus,()=>m(!0)),onBlur:be(e.onBlur,()=>m(!1))})})})}),OF="MenuCheckboxItem",gL=O.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return p.jsx(SL,{scope:e.__scopeMenu,checked:n,children:p.jsx(Xm,{role:"menuitemcheckbox","aria-checked":Ch(n)?"mixed":n,...i,ref:t,"data-state":tO(n),onSelect:be(i.onSelect,()=>r==null?void 0:r(Ch(n)?!0:!n),{checkForDefaultPrevented:!1})})})});gL.displayName=OF;var yL="MenuRadioGroup",[_F,jF]=qo(yL,{value:void 0,onValueChange:()=>{}}),bL=O.forwardRef((e,t)=>{const{value:n,onValueChange:r,...i}=e,s=kr(r);return p.jsx(_F,{scope:e.__scopeMenu,value:n,onValueChange:s,children:p.jsx(JS,{...i,ref:t})})});bL.displayName=yL;var xL="MenuRadioItem",wL=O.forwardRef((e,t)=>{const{value:n,...r}=e,i=jF(xL,e.__scopeMenu),s=n===i.value;return p.jsx(SL,{scope:e.__scopeMenu,checked:s,children:p.jsx(Xm,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":tO(s),onSelect:be(r.onSelect,()=>{var l;return(l=i.onValueChange)==null?void 0:l.call(i,n)},{checkForDefaultPrevented:!1})})})});wL.displayName=xL;var eO="MenuItemIndicator",[SL,EF]=qo(eO,{checked:!1}),OL=O.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,s=EF(eO,n);return p.jsx(wr,{present:r||Ch(s.checked)||s.checked===!0,children:p.jsx(Re.span,{...i,ref:t,"data-state":tO(s.checked)})})});OL.displayName=eO;var AF="MenuSeparator",_L=O.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(Re.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});_L.displayName=AF;var TF="MenuArrow",jL=O.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Km(n);return p.jsx(YS,{...i,...r,ref:t})});jL.displayName=TF;var CF="MenuSub",[Uhe,EL]=qo(CF),ic="MenuSubTrigger",AL=O.forwardRef((e,t)=>{const n=Uo(ic,e.__scopeMenu),r=vf(ic,e.__scopeMenu),i=EL(ic,e.__scopeMenu),s=QS(ic,e.__scopeMenu),l=O.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:f}=s,d={__scopeMenu:e.__scopeMenu},v=O.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return O.useEffect(()=>v,[v]),O.useEffect(()=>{const m=c.current;return()=>{window.clearTimeout(m),f(null)}},[c,f]),p.jsx(KS,{asChild:!0,...d,children:p.jsx(vL,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":NL(n.open),...e,ref:cf(t,i.onTriggerChange),onClick:m=>{var g;(g=e.onClick)==null||g.call(e,m),!(e.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:be(e.onPointerMove,wc(m=>{s.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!n.open&&!l.current&&(s.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{n.onOpenChange(!0),v()},100))})),onPointerLeave:be(e.onPointerLeave,wc(m=>{var x,_;v();const g=(x=n.content)==null?void 0:x.getBoundingClientRect();if(g){const S=(_=n.content)==null?void 0:_.dataset.side,w=S==="right",j=w?-5:5,E=g[w?"left":"right"],A=g[w?"right":"left"];s.onPointerGraceIntentChange({area:[{x:m.clientX+j,y:m.clientY},{x:E,y:g.top},{x:A,y:g.top},{x:A,y:g.bottom},{x:E,y:g.bottom}],side:S}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(m),m.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:be(e.onKeyDown,m=>{var x;const g=s.searchRef.current!=="";e.disabled||g&&m.key===" "||uF[r.dir].includes(m.key)&&(n.onOpenChange(!0),(x=n.content)==null||x.focus(),m.preventDefault())})})})});AL.displayName=ic;var TL="MenuSubContent",CL=O.forwardRef((e,t)=>{const n=dL(vr,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,s=Uo(vr,e.__scopeMenu),l=vf(vr,e.__scopeMenu),c=EL(TL,e.__scopeMenu),f=O.useRef(null),d=tt(t,f);return p.jsx(xc.Provider,{scope:e.__scopeMenu,children:p.jsx(wr,{present:r||s.open,children:p.jsx(xc.Slot,{scope:e.__scopeMenu,children:p.jsx(ZS,{id:c.contentId,"aria-labelledby":c.triggerId,...i,ref:d,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:v=>{var m;l.isUsingKeyboardRef.current&&((m=f.current)==null||m.focus()),v.preventDefault()},onCloseAutoFocus:v=>v.preventDefault(),onFocusOutside:be(e.onFocusOutside,v=>{v.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:be(e.onEscapeKeyDown,v=>{l.onClose(),v.preventDefault()}),onKeyDown:be(e.onKeyDown,v=>{var x;const m=v.currentTarget.contains(v.target),g=cF[l.dir].includes(v.key);m&&g&&(s.onOpenChange(!1),(x=c.trigger)==null||x.focus(),v.preventDefault())})})})})})});CL.displayName=TL;function NL(e){return e?"open":"closed"}function Ch(e){return e==="indeterminate"}function tO(e){return Ch(e)?"indeterminate":e?"checked":"unchecked"}function NF(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function MF(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function RF(e,t,n){const i=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let l=MF(e,Math.max(s,0));i.length===1&&(l=l.filter(d=>d!==n));const f=l.find(d=>d.toLowerCase().startsWith(i.toLowerCase()));return f!==n?f:void 0}function DF(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,l=t.length-1;s<t.length;l=s++){const c=t[s],f=t[l],d=c.x,v=c.y,m=f.x,g=f.y;v>r!=g>r&&n<(m-d)*(r-v)/(g-v)+d&&(i=!i)}return i}function PF(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return DF(n,t)}function wc(e){return t=>t.pointerType==="mouse"?e(t):void 0}var kF=fL,$F=KS,LF=hL,IF=mL,zF=JS,BF=pL,qF=Xm,UF=gL,HF=bL,FF=wL,GF=OL,VF=_L,YF=jL,WF=AL,KF=CL,Qm="DropdownMenu",[XF]=zr(Qm,[uL]),Sn=uL(),[QF,ML]=XF(Qm),RL=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:s,onOpenChange:l,modal:c=!0}=e,f=Sn(t),d=O.useRef(null),[v,m]=$i({prop:i,defaultProp:s??!1,onChange:l,caller:Qm});return p.jsx(QF,{scope:t,triggerId:pr(),triggerRef:d,contentId:pr(),open:v,onOpenChange:m,onOpenToggle:O.useCallback(()=>m(g=>!g),[m]),modal:c,children:p.jsx(kF,{...f,open:v,onOpenChange:m,dir:r,modal:c,children:n})})};RL.displayName=Qm;var DL="DropdownMenuTrigger",PL=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,s=ML(DL,n),l=Sn(n);return p.jsx($F,{asChild:!0,...l,children:p.jsx(Re.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:cf(t,s.triggerRef),onPointerDown:be(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:be(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});PL.displayName=DL;var ZF="DropdownMenuPortal",kL=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Sn(t);return p.jsx(LF,{...r,...n})};kL.displayName=ZF;var $L="DropdownMenuContent",LL=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ML($L,n),s=Sn(n),l=O.useRef(!1);return p.jsx(IF,{id:i.contentId,"aria-labelledby":i.triggerId,...s,...r,ref:t,onCloseAutoFocus:be(e.onCloseAutoFocus,c=>{var f;l.current||(f=i.triggerRef.current)==null||f.focus(),l.current=!1,c.preventDefault()}),onInteractOutside:be(e.onInteractOutside,c=>{const f=c.detail.originalEvent,d=f.button===0&&f.ctrlKey===!0,v=f.button===2||d;(!i.modal||v)&&(l.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)"}})});LL.displayName=$L;var JF="DropdownMenuGroup",eG=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Sn(n);return p.jsx(zF,{...i,...r,ref:t})});eG.displayName=JF;var tG="DropdownMenuLabel",IL=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Sn(n);return p.jsx(BF,{...i,...r,ref:t})});IL.displayName=tG;var nG="DropdownMenuItem",zL=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Sn(n);return p.jsx(qF,{...i,...r,ref:t})});zL.displayName=nG;var rG="DropdownMenuCheckboxItem",aG=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Sn(n);return p.jsx(UF,{...i,...r,ref:t})});aG.displayName=rG;var iG="DropdownMenuRadioGroup",oG=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Sn(n);return p.jsx(HF,{...i,...r,ref:t})});oG.displayName=iG;var sG="DropdownMenuRadioItem",lG=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Sn(n);return p.jsx(FF,{...i,...r,ref:t})});lG.displayName=sG;var uG="DropdownMenuItemIndicator",cG=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Sn(n);return p.jsx(GF,{...i,...r,ref:t})});cG.displayName=uG;var fG="DropdownMenuSeparator",BL=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Sn(n);return p.jsx(VF,{...i,...r,ref:t})});BL.displayName=fG;var dG="DropdownMenuArrow",hG=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Sn(n);return p.jsx(YF,{...i,...r,ref:t})});hG.displayName=dG;var mG="DropdownMenuSubTrigger",pG=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Sn(n);return p.jsx(WF,{...i,...r,ref:t})});pG.displayName=mG;var vG="DropdownMenuSubContent",gG=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Sn(n);return p.jsx(KF,{...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)"}})});gG.displayName=vG;var yG=RL,bG=PL,xG=kL,wG=LL,SG=IL,OG=zL,_G=BL;function jG({...e}){return p.jsx(yG,{"data-slot":"dropdown-menu",...e})}function EG({...e}){return p.jsx(bG,{"data-slot":"dropdown-menu-trigger",...e})}function AG({className:e,sideOffset:t=4,...n}){return p.jsx(xG,{children:p.jsx(wG,{className:pe("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 SC({className:e,inset:t,variant:n="default",...r}){return p.jsx(OG,{className:pe("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 TG({className:e,inset:t,...n}){return p.jsx(SG,{className:pe("px-2 py-1.5 font-medium text-sm data-[inset]:pl-8",e),"data-inset":t,"data-slot":"dropdown-menu-label",...n})}function OC({className:e,...t}){return p.jsx(_G,{className:pe("-mx-1 my-1 h-px bg-border",e),"data-slot":"dropdown-menu-separator",...t})}const _C=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,jC=Ye,Zm=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return jC(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=t,l=Object.keys(i).map(d=>{const v=n==null?void 0:n[d],m=s==null?void 0:s[d];if(v===null)return null;const g=_C(v)||_C(m);return i[d][g]}),c=n&&Object.entries(n).reduce((d,v)=>{let[m,g]=v;return g===void 0||(d[m]=g),d},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,v)=>{let{class:m,className:g,...x}=v;return Object.entries(x).every(_=>{let[S,w]=_;return Array.isArray(w)?w.includes({...s,...c}[S]):{...s,...c}[S]===w})?[...d,m,g]:d},[]);return jC(e,l,f,n==null?void 0:n.class,n==null?void 0:n.className)},nO=Zm("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 bt({className:e,variant:t,size:n,asChild:r=!1,...i}){const s=r?zo:"button";return p.jsx(s,{className:pe(nO({variant:t,size:n,className:e})),"data-slot":"button",...i})}const gf=O.forwardRef(({className:e,type:t,...n},r)=>p.jsx("input",{className:pe("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}));gf.displayName="Input";var CG="Separator",EC="horizontal",NG=["horizontal","vertical"],qL=O.forwardRef((e,t)=>{const{decorative:n,orientation:r=EC,...i}=e,s=MG(r)?r:EC,c=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return p.jsx(Bo.div,{"data-orientation":s,...c,...i,ref:t})});qL.displayName=CG;function MG(e){return NG.includes(e)}var RG=qL;function Qn({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return p.jsx(RG,{className:pe("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 Jm="Dialog",[UL,HL]=zr(Jm),[DG,Br]=UL(Jm),FL=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:s,modal:l=!0}=e,c=O.useRef(null),f=O.useRef(null),[d,v]=$i({prop:r,defaultProp:i??!1,onChange:s,caller:Jm});return p.jsx(DG,{scope:t,triggerRef:c,contentRef:f,contentId:pr(),titleId:pr(),descriptionId:pr(),open:d,onOpenChange:v,onOpenToggle:O.useCallback(()=>v(m=>!m),[v]),modal:l,children:n})};FL.displayName=Jm;var GL="DialogTrigger",VL=O.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Br(GL,n),s=tt(t,i.triggerRef);return p.jsx(Re.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":iO(i.open),...r,ref:s,onClick:be(e.onClick,i.onOpenToggle)})});VL.displayName=GL;var rO="DialogPortal",[PG,YL]=UL(rO,{forceMount:void 0}),WL=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,s=Br(rO,t);return p.jsx(PG,{scope:t,forceMount:n,children:O.Children.map(r,l=>p.jsx(wr,{present:n||s.open,children:p.jsx(hf,{asChild:!0,container:i,children:l})}))})};WL.displayName=rO;var Nh="DialogOverlay",KL=O.forwardRef((e,t)=>{const n=YL(Nh,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=Br(Nh,e.__scopeDialog);return s.modal?p.jsx(wr,{present:r||s.open,children:p.jsx($G,{...i,ref:t})}):null});KL.displayName=Nh;var kG=rl("DialogOverlay.RemoveScroll"),$G=O.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Br(Nh,n);return p.jsx(Wm,{as:kG,allowPinchZoom:!0,shards:[i.contentRef],children:p.jsx(Re.div,{"data-state":iO(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),No="DialogContent",XL=O.forwardRef((e,t)=>{const n=YL(No,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=Br(No,e.__scopeDialog);return p.jsx(wr,{present:r||s.open,children:s.modal?p.jsx(LG,{...i,ref:t}):p.jsx(IG,{...i,ref:t})})});XL.displayName=No;var LG=O.forwardRef((e,t)=>{const n=Br(No,e.__scopeDialog),r=O.useRef(null),i=tt(t,n.contentRef,r);return O.useEffect(()=>{const s=r.current;if(s)return WS(s)},[]),p.jsx(QL,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:be(e.onCloseAutoFocus,s=>{var l;s.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:be(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&s.preventDefault()}),onFocusOutside:be(e.onFocusOutside,s=>s.preventDefault())})}),IG=O.forwardRef((e,t)=>{const n=Br(No,e.__scopeDialog),r=O.useRef(!1),i=O.useRef(!1);return p.jsx(QL,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,s),s.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),s.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:s=>{var f,d;(f=e.onInteractOutside)==null||f.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=s.target;((d=n.triggerRef.current)==null?void 0:d.contains(l))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),QL=O.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,...l}=e,c=Br(No,n),f=O.useRef(null),d=tt(t,f);return kS(),p.jsxs(p.Fragment,{children:[p.jsx(qm,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s,children:p.jsx(ff,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":iO(c.open),...l,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(BG,{titleId:c.titleId}),p.jsx(UG,{contentRef:f,descriptionId:c.descriptionId})]})]})}),aO="DialogTitle",ZL=O.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Br(aO,n);return p.jsx(Re.h2,{id:i.titleId,...r,ref:t})});ZL.displayName=aO;var JL="DialogDescription",eI=O.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Br(JL,n);return p.jsx(Re.p,{id:i.descriptionId,...r,ref:t})});eI.displayName=JL;var tI="DialogClose",nI=O.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Br(tI,n);return p.jsx(Re.button,{type:"button",...r,ref:t,onClick:be(e.onClick,()=>i.onOpenChange(!1))})});nI.displayName=tI;function iO(e){return e?"open":"closed"}var rI="DialogTitleWarning",[zG,aI]=pH(rI,{contentName:No,titleName:aO,docsSlug:"dialog"}),BG=({titleId:e})=>{const t=aI(rI),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
294
|
+
|
|
295
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
296
|
+
|
|
297
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return O.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},qG="DialogDescriptionWarning",UG=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${aI(qG).contentName}}.`;return O.useEffect(()=>{var s;const i=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},oO=FL,HG=VL,sO=WL,lO=KL,uO=XL,cO=ZL,fO=eI,ep=nI;function FG({...e}){return p.jsx(oO,{"data-slot":"sheet",...e})}function GG({...e}){return p.jsx(sO,{"data-slot":"sheet-portal",...e})}function VG({className:e,...t}){return p.jsx(lO,{className:pe("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 YG({className:e,children:t,side:n="right",...r}){return p.jsxs(GG,{children:[p.jsx(VG,{}),p.jsxs(uO,{className:pe("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,p.jsxs(ep,{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:[p.jsx(aa,{className:"size-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function WG({className:e,...t}){return p.jsx("div",{className:pe("flex flex-col gap-1.5 p-4",e),"data-slot":"sheet-header",...t})}function KG({className:e,...t}){return p.jsx(cO,{className:pe("font-semibold text-foreground",e),"data-slot":"sheet-title",...t})}function XG({className:e,...t}){return p.jsx(fO,{className:pe("text-muted-foreground text-sm",e),"data-slot":"sheet-description",...t})}function pt({className:e,...t}){return p.jsx("div",{className:pe("animate-pulse rounded-md bg-accent",e),"data-slot":"skeleton",...t})}var iI=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"}),QG="VisuallyHidden",oI=O.forwardRef((e,t)=>p.jsx(Re.span,{...e,ref:t,style:{...iI,...e.style}}));oI.displayName=QG;var ZG=oI,[tp]=zr("Tooltip",[Ul]),np=Ul(),sI="TooltipProvider",JG=700,zw="tooltip.open",[eV,dO]=tp(sI),lI=e=>{const{__scopeTooltip:t,delayDuration:n=JG,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,l=O.useRef(!0),c=O.useRef(!1),f=O.useRef(0);return O.useEffect(()=>{const d=f.current;return()=>window.clearTimeout(d)},[]),p.jsx(eV,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:O.useCallback(()=>{window.clearTimeout(f.current),l.current=!1},[]),onClose:O.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:O.useCallback(d=>{c.current=d},[]),disableHoverableContent:i,children:s})};lI.displayName=sI;var Sc="Tooltip",[tV,yf]=tp(Sc),uI=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:s,disableHoverableContent:l,delayDuration:c}=e,f=dO(Sc,e.__scopeTooltip),d=np(t),[v,m]=O.useState(null),g=pr(),x=O.useRef(0),_=l??f.disableHoverableContent,S=c??f.delayDuration,w=O.useRef(!1),[j,E]=$i({prop:r,defaultProp:i??!1,onChange:R=>{R?(f.onOpen(),document.dispatchEvent(new CustomEvent(zw))):f.onClose(),s==null||s(R)},caller:Sc}),A=O.useMemo(()=>j?w.current?"delayed-open":"instant-open":"closed",[j]),M=O.useCallback(()=>{window.clearTimeout(x.current),x.current=0,w.current=!1,E(!0)},[E]),T=O.useCallback(()=>{window.clearTimeout(x.current),x.current=0,E(!1)},[E]),N=O.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{w.current=!0,E(!0),x.current=0},S)},[S,E]);return O.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),p.jsx(FS,{...d,children:p.jsx(tV,{scope:t,contentId:g,open:j,stateAttribute:A,trigger:v,onTriggerChange:m,onTriggerEnter:O.useCallback(()=>{f.isOpenDelayedRef.current?N():M()},[f.isOpenDelayedRef,N,M]),onTriggerLeave:O.useCallback(()=>{_?T():(window.clearTimeout(x.current),x.current=0)},[T,_]),onOpen:M,onClose:T,disableHoverableContent:_,children:n})})};uI.displayName=Sc;var Bw="TooltipTrigger",cI=O.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=yf(Bw,n),s=dO(Bw,n),l=np(n),c=O.useRef(null),f=tt(t,c,i.onTriggerChange),d=O.useRef(!1),v=O.useRef(!1),m=O.useCallback(()=>d.current=!1,[]);return O.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),p.jsx(GS,{asChild:!0,...l,children:p.jsx(Re.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:f,onPointerMove:be(e.onPointerMove,g=>{g.pointerType!=="touch"&&!v.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),v.current=!0)}),onPointerLeave:be(e.onPointerLeave,()=>{i.onTriggerLeave(),v.current=!1}),onPointerDown:be(e.onPointerDown,()=>{i.open&&i.onClose(),d.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:be(e.onFocus,()=>{d.current||i.onOpen()}),onBlur:be(e.onBlur,i.onClose),onClick:be(e.onClick,i.onClose)})})});cI.displayName=Bw;var hO="TooltipPortal",[nV,rV]=tp(hO,{forceMount:void 0}),fI=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,s=yf(hO,t);return p.jsx(nV,{scope:t,forceMount:n,children:p.jsx(wr,{present:n||s.open,children:p.jsx(hf,{asChild:!0,container:i,children:r})})})};fI.displayName=hO;var il="TooltipContent",dI=O.forwardRef((e,t)=>{const n=rV(il,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,l=yf(il,e.__scopeTooltip);return p.jsx(wr,{present:r||l.open,children:l.disableHoverableContent?p.jsx(hI,{side:i,...s,ref:t}):p.jsx(aV,{side:i,...s,ref:t})})}),aV=O.forwardRef((e,t)=>{const n=yf(il,e.__scopeTooltip),r=dO(il,e.__scopeTooltip),i=O.useRef(null),s=tt(t,i),[l,c]=O.useState(null),{trigger:f,onClose:d}=n,v=i.current,{onPointerInTransitChange:m}=r,g=O.useCallback(()=>{c(null),m(!1)},[m]),x=O.useCallback((_,S)=>{const w=_.currentTarget,j={x:_.clientX,y:_.clientY},E=lV(j,w.getBoundingClientRect()),A=uV(j,E),M=cV(S.getBoundingClientRect()),T=dV([...A,...M]);c(T),m(!0)},[m]);return O.useEffect(()=>()=>g(),[g]),O.useEffect(()=>{if(f&&v){const _=w=>x(w,v),S=w=>x(w,f);return f.addEventListener("pointerleave",_),v.addEventListener("pointerleave",S),()=>{f.removeEventListener("pointerleave",_),v.removeEventListener("pointerleave",S)}}},[f,v,x,g]),O.useEffect(()=>{if(l){const _=S=>{const w=S.target,j={x:S.clientX,y:S.clientY},E=(f==null?void 0:f.contains(w))||(v==null?void 0:v.contains(w)),A=!fV(j,l);E?g():A&&(g(),d())};return document.addEventListener("pointermove",_),()=>document.removeEventListener("pointermove",_)}},[f,v,l,d,g]),p.jsx(hI,{...e,ref:s})}),[iV,oV]=tp(Sc,{isInside:!1}),sV=w$("TooltipContent"),hI=O.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:l,...c}=e,f=yf(il,n),d=np(n),{onClose:v}=f;return O.useEffect(()=>(document.addEventListener(zw,v),()=>document.removeEventListener(zw,v)),[v]),O.useEffect(()=>{if(f.trigger){const m=g=>{const x=g.target;x!=null&&x.contains(f.trigger)&&v()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[f.trigger,v]),p.jsx(ff,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:m=>m.preventDefault(),onDismiss:v,children:p.jsxs(VS,{"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:[p.jsx(sV,{children:r}),p.jsx(iV,{scope:n,isInside:!0,children:p.jsx(ZG,{id:f.contentId,role:"tooltip",children:i||r})})]})})});dI.displayName=il;var mI="TooltipArrow",pI=O.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=np(n);return oV(mI,n).isInside?null:p.jsx(YS,{...i,...r,ref:t})});pI.displayName=mI;function lV(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function uV(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 cV(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 fV(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,l=t.length-1;s<t.length;l=s++){const c=t[s],f=t[l],d=c.x,v=c.y,m=f.x,g=f.y;v>r!=g>r&&n<(m-d)*(r-v)/(g-v)+d&&(i=!i)}return i}function dV(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),hV(t)}function hV(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 s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(i.y-l.y)>=(s.y-l.y)*(i.x-l.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 s=n[n.length-1],l=n[n.length-2];if((s.x-l.x)*(i.y-l.y)>=(s.y-l.y)*(i.x-l.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 mV=lI,pV=uI,vV=cI,gV=fI,yV=dI,bV=pI;function vI({delayDuration:e=0,...t}){return p.jsx(mV,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function mO({...e}){return p.jsx(vI,{children:p.jsx(pV,{"data-slot":"tooltip",...e})})}function pO({...e}){return p.jsx(vV,{"data-slot":"tooltip-trigger",...e})}function vO({className:e,sideOffset:t=0,children:n,...r}){return p.jsx(gV,{children:p.jsxs(yV,{className:pe("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,p.jsx(bV,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}const jy=768;function xV(){const[e,t]=O.useState(void 0);return O.useEffect(()=>{const n=window.matchMedia(`(max-width: ${jy-1}px)`),r=()=>{t(window.innerWidth<jy)};return n.addEventListener("change",r),t(window.innerWidth<jy),()=>n.removeEventListener("change",r)},[]),!!e}const wV="sidebar_state",SV=3600*24*7,OV="16rem",_V="18rem",jV="3rem",EV="b",gI=O.createContext(null);function Hl(){const e=O.useContext(gI);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const yI=O.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:s,...l},c)=>{const f=xV(),[d,v]=O.useState(!1),[m,g]=O.useState(e),x=t??m,_=O.useCallback(E=>{const A=typeof E=="function"?E(x):E;n?n(A):g(A),document.cookie=`${wV}=${A}; path=/; max-age=${SV}`},[n,x]),S=O.useCallback(()=>f?v(E=>!E):_(E=>!E),[f,_]);O.useEffect(()=>{const E=A=>{A.key===EV&&(A.metaKey||A.ctrlKey)&&(A.preventDefault(),S())};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[S]);const w=x?"expanded":"collapsed",j=O.useMemo(()=>({state:w,open:x,setOpen:_,isMobile:f,openMobile:d,setOpenMobile:v,toggleSidebar:S}),[w,x,_,f,d,S]);return p.jsx(gI.Provider,{value:j,children:p.jsx(vI,{delayDuration:0,children:p.jsx("div",{className:pe("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:c,style:{"--sidebar-width":OV,"--sidebar-width-icon":jV,...i},...l,children:s})})})});yI.displayName="SidebarProvider";const yh=O.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:i,...s},l)=>{const{isMobile:c,state:f,openMobile:d,setOpenMobile:v}=Hl();return n==="none"?p.jsx("div",{className:pe("flex h-full w-[calc(var(--sidebar-width)-var(--sidebar-width-icon)+1px)]! flex-col bg-sidebar text-sidebar-foreground",r),ref:l,...s,children:i}):c?p.jsx(FG,{onOpenChange:v,open:d,...s,children:p.jsxs(YG,{className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden","data-mobile":"true","data-sidebar":"sidebar",side:e,style:{"--sidebar-width":_V},children:[p.jsxs(WG,{className:"sr-only",children:[p.jsx(KG,{children:"Sidebar"}),p.jsx(XG,{children:"Displays the mobile sidebar."})]}),p.jsx("div",{className:"flex h-full w-full flex-col",children:i})]})}):p.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:l,children:[p.jsx("div",{className:pe("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]")}),p.jsx("div",{className:pe("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),...s,children:p.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})})]})});yh.displayName="Sidebar";const bI=O.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:i}=Hl();return p.jsxs(bt,{className:pe("h-7 w-7",e),"data-sidebar":"trigger",onClick:s=>{t==null||t(s),i()},ref:r,size:"icon",variant:"ghost",...n,children:[p.jsx(rU,{}),p.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});bI.displayName="SidebarTrigger";const AV=O.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=Hl();return p.jsx("button",{"aria-label":"Toggle Sidebar",className:pe("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 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=left]:-right-4 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})});AV.displayName="SidebarRail";const xI=O.forwardRef(({className:e,...t},n)=>p.jsx("main",{className:pe("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}));xI.displayName="SidebarInset";const wI=O.forwardRef(({className:e,...t},n)=>p.jsx(gf,{className:pe("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),"data-sidebar":"input",ref:n,...t}));wI.displayName="SidebarInput";const qw=O.forwardRef(({className:e,...t},n)=>p.jsx("div",{className:pe("flex flex-col gap-2 p-2",e),"data-sidebar":"header",ref:n,...t}));qw.displayName="SidebarHeader";const SI=O.forwardRef(({className:e,...t},n)=>p.jsx("div",{className:pe("flex flex-col gap-2 p-2",e),"data-sidebar":"footer",ref:n,...t}));SI.displayName="SidebarFooter";const TV=O.forwardRef(({className:e,...t},n)=>p.jsx(Qn,{className:pe("mx-2 w-auto bg-sidebar-border",e),"data-sidebar":"separator",ref:n,...t}));TV.displayName="SidebarSeparator";const Uw=O.forwardRef(({className:e,...t},n)=>p.jsx("div",{className:pe("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}));Uw.displayName="SidebarContent";const Hw=O.forwardRef(({className:e,...t},n)=>p.jsx("div",{className:pe("relative flex w-full min-w-0 flex-col p-2",e),"data-sidebar":"group",ref:n,...t}));Hw.displayName="SidebarGroup";const CV=O.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const i=t?zo:"div";return p.jsx(i,{className:pe("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})});CV.displayName="SidebarGroupLabel";const NV=O.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const i=t?zo:"button";return p.jsx(i,{className:pe("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:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),"data-sidebar":"group-action",ref:r,...n})});NV.displayName="SidebarGroupAction";const Fw=O.forwardRef(({className:e,...t},n)=>p.jsx("div",{className:pe("w-full text-sm",e),"data-sidebar":"group-content",ref:n,...t}));Fw.displayName="SidebarGroupContent";const Mh=O.forwardRef(({className:e,...t},n)=>p.jsx("ul",{className:pe("flex w-full min-w-0 flex-col gap-1",e),"data-sidebar":"menu",ref:n,...t}));Mh.displayName="SidebarMenu";const Rh=O.forwardRef(({className:e,...t},n)=>p.jsx("li",{className:pe("group/menu-item relative",e),"data-sidebar":"menu-item",ref:n,...t}));Rh.displayName="SidebarMenuItem";const MV=Zm("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"}}),Dh=O.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:i,className:s,...l},c)=>{const f=e?zo:"button",{isMobile:d,state:v}=Hl(),m=p.jsx(f,{className:pe(MV({variant:n,size:r}),s),"data-active":t,"data-sidebar":"menu-button","data-size":r,ref:c,...l});return i?(typeof i=="string"&&(i={children:i}),p.jsxs(mO,{children:[p.jsx(pO,{asChild:!0,children:m}),p.jsx(vO,{align:"center",hidden:v!=="collapsed"||d,side:"right",...i})]})):m});Dh.displayName="SidebarMenuButton";const RV=O.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},i)=>{const s=t?zo:"button";return p.jsx(s,{className:pe("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:absolute after:-inset-2 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})});RV.displayName="SidebarMenuAction";const DV=O.forwardRef(({className:e,...t},n)=>p.jsx("div",{className:pe("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}));DV.displayName="SidebarMenuBadge";const PV=O.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const i=O.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return p.jsxs("div",{className:pe("flex h-8 items-center gap-2 rounded-md px-2",e),"data-sidebar":"menu-skeleton",ref:r,...n,children:[t&&p.jsx(pt,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),p.jsx(pt,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":i}})]})});PV.displayName="SidebarMenuSkeleton";const kV=O.forwardRef(({className:e,...t},n)=>p.jsx("ul",{className:pe("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}));kV.displayName="SidebarMenuSub";const $V=O.forwardRef(({...e},t)=>p.jsx("li",{ref:t,...e}));$V.displayName="SidebarMenuSubItem";const LV=O.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...i},s)=>{const l=e?zo:"a";return p.jsx(l,{className:pe("flex h-7 min-w-0 -translate-x-px 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:s,...i})});LV.displayName="SidebarMenuSubButton";const IV={theme:"system",setTheme:()=>null},OI=O.createContext(IV),_I=()=>{const e=O.useContext(OI);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};function zV({user:e}){const{isMobile:t}=Hl(),{theme:n,setTheme:r}=_I(),[i,s]=O.useState(null),[l,c]=O.useState(0);O.useEffect(()=>{(async()=>{try{const g=sessionStorage.getItem("wraps-auth-token");if(!g){console.log("No auth token found yet, will retry..."),l<5&&setTimeout(()=>{c(_=>_+1)},200);return}console.log("Fetching user info from /api/user");const x=await fetch(`/api/user?token=${g}`);if(console.log("User API response status:",x.status),x.ok){const _=await x.json();console.log("User info received:",_),s(_)}else{const _=await x.text();console.error("Failed to fetch user info:",x.status,_)}}catch(g){console.error("Error fetching user info:",g)}})().catch(g=>{console.error("Failed to fetch user info:",g)})},[l]);const f=()=>{window.confirm("Are you sure you want to close the console?")&&window.close()},d=(i==null?void 0:i.accountAlias)||(i==null?void 0:i.accountId)||"Loading...",v=(i==null?void 0:i.region)||"...";return p.jsx(Mh,{children:p.jsx(Rh,{children:p.jsxs(jG,{children:[p.jsx(EG,{asChild:!0,children:p.jsxs(Dh,{className:"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground md:h-8 md:p-0",size:"lg",children:[p.jsxs(KT,{className:"h-8 w-8 rounded-lg",children:[p.jsx(XT,{alt:d,src:e.avatar}),p.jsx(QT,{className:"rounded-lg bg-orange-500 text-white",children:"AWS"})]}),p.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[p.jsx("span",{className:"truncate font-medium",children:d}),p.jsx("span",{className:"truncate text-xs",children:v})]}),p.jsx(W8,{className:"ml-auto size-4"})]})}),p.jsxs(AG,{align:"end",className:"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg",side:t?"bottom":"right",sideOffset:4,children:[p.jsx(TG,{className:"p-0 font-normal",children:p.jsxs("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:[p.jsxs(KT,{className:"h-8 w-8 rounded-lg",children:[p.jsx(XT,{alt:d,src:e.avatar}),p.jsx(QT,{className:"rounded-lg bg-orange-500 text-white",children:"AWS"})]}),p.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[p.jsx("span",{className:"truncate font-medium",children:d}),p.jsx("span",{className:"truncate text-xs",children:v}),(i==null?void 0:i.accountId)&&i.accountId!==i.accountAlias&&p.jsx("span",{className:"truncate font-mono text-[10px] text-muted-foreground",children:i.accountId})]})]})}),p.jsx(OC,{}),p.jsxs(SC,{onClick:()=>r(n==="dark"?"light":"dark"),children:[n==="dark"?p.jsx(aU,{}):p.jsx(tU,{}),n==="dark"?"Light Mode":"Dark Mode"]}),p.jsx(OC,{}),p.jsxs(SC,{onClick:f,children:[p.jsx(aa,{}),"Close Console"]})]})]})})})}const go={user:{name:"Wraps Console",email:"admin@wraps.dev",avatar:"/avatars/wraps.jpg"},navMain:[{title:"Dashboard",url:"/",icon:zm,isActive:!0,isDashboard:!0},{title:"Email",url:"#",icon:Ws,isActive:!1,subItems:[{title:"Emails",icon:Ws,url:"/email"},{title:"Metrics",icon:$T,url:"/email/metrics"},{title:"Settings",icon:IT,url:"/email/settings"}]},{title:"SMS",url:"#",icon:ki,isActive:!1,subItems:[{title:"Messages",icon:ki,url:"/sms"},{title:"Metrics",icon:$T,url:"/sms/metrics"},{title:"Settings",icon:IT,url:"/sms/settings"}]}]};function BV({...e}){const t=da(),n=Io(),{setOpen:r,state:i}=Hl(),{theme:s}=_I(),l=O.useCallback(()=>t.pathname==="/"?go.navMain[0]:t.pathname.startsWith("/email")?go.navMain[1]:t.pathname.startsWith("/sms")?go.navMain[2]:go.navMain[0],[t.pathname]),[c,f]=O.useState(l());return O.useEffect(()=>{f(l())},[l]),p.jsxs(yh,{className:"overflow-hidden *:data-[sidebar=sidebar]:flex-row",collapsible:"icon",...e,children:[p.jsxs(yh,{className:"w-[calc(var(--sidebar-width-icon)+1px)]! border-r",collapsible:"none",children:[p.jsx(qw,{children:p.jsx(Mh,{children:p.jsx(Rh,{children:p.jsx(Dh,{asChild:!0,className:"md:h-8 md:p-0",onClick:()=>{f(go.navMain[0]),r(!1)},size:"lg",children:p.jsxs(xh,{to:"/",children:[p.jsx("div",{className:"flex aspect-square size-8 items-center justify-center rounded-lg",children:p.jsx("img",{alt:"Wraps",className:"size-8 object-contain",src:s==="dark"?"/wraps-dark.png":"/wraps-light.png"})}),p.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[p.jsx("span",{className:"truncate font-semibold",children:"Wraps"}),p.jsx("span",{className:"truncate text-xs",children:"Console"})]})]})})})})}),p.jsx(Uw,{children:p.jsx(Hw,{children:p.jsx(Fw,{className:"px-1.5 md:px-0",children:p.jsx(Mh,{children:go.navMain.filter(d=>!d.isDashboard).map(d=>p.jsx(Rh,{children:p.jsxs(Dh,{className:"px-2.5 md:px-2",isActive:(c==null?void 0:c.title)===d.title,onClick:()=>{f(d),r(!0),d.subItems&&d.subItems.length>0&&n(d.subItems[0].url)},tooltip:{children:d.title,hidden:!1},children:[p.jsx(d.icon,{}),p.jsx("span",{children:d.title})]})},d.title))})})})}),p.jsx(SI,{children:p.jsx(zV,{user:go.user})})]}),i==="expanded"&&p.jsx(yh,{className:"hidden flex-1 md:flex",collapsible:"none",children:c&&!c.isDashboard&&c.subItems?p.jsxs(p.Fragment,{children:[p.jsxs(qw,{className:"gap-3.5 border-b p-4",children:[p.jsx("div",{className:"flex w-full items-center justify-between",children:p.jsxs("div",{className:"flex items-center gap-2 font-medium text-base text-foreground",children:[p.jsx(c.icon,{className:"size-4"}),c.title]})}),p.jsx(wI,{placeholder:"Search..."})]}),p.jsx(Uw,{children:p.jsx(Hw,{className:"px-0",children:p.jsx(Fw,{children:c.subItems.map(d=>{const v=t.pathname===d.url||d.url==="/email"&&t.pathname.startsWith("/email/")&&t.pathname!=="/email/metrics"&&t.pathname!=="/email/settings"||d.url==="/sms"&&t.pathname.startsWith("/sms/")&&t.pathname!=="/sms/metrics"&&t.pathname!=="/sms/settings";return p.jsxs(xh,{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 ${v?"bg-sidebar-accent font-semibold text-sidebar-accent-foreground":""}`,to:d.url,children:[p.jsx(d.icon,{className:"size-4 shrink-0"}),p.jsx("span",{className:"font-medium",children:d.title})]},d.title)})})})})]}):p.jsx("div",{className:"flex h-full items-center justify-center p-8 text-center",children:p.jsxs("div",{className:"text-muted-foreground",children:[p.jsx(zm,{className:"mx-auto mb-4 size-12 opacity-50"}),p.jsx("p",{className:"text-sm",children:"Select a product to view options"})]})})})]})}const qV=Zm("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 Je({className:e,variant:t,asChild:n=!1,...r}){const i=n?zo:"span";return p.jsx(i,{className:pe(qV({variant:t}),e),"data-slot":"badge",...r})}function ze({className:e,...t}){return p.jsx("div",{className:pe("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",e),"data-slot":"card",...t})}function Be({className:e,...t}){return p.jsx("div",{className:pe("@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 et({className:e,...t}){return p.jsx("div",{className:pe("font-semibold leading-none",e),"data-slot":"card-title",...t})}function st({className:e,...t}){return p.jsx("div",{className:pe("text-muted-foreground text-sm",e),"data-slot":"card-description",...t})}function We({className:e,...t}){return p.jsx("div",{className:pe("px-6",e),"data-slot":"card-content",...t})}const UV=Zm("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 Jr({className:e,variant:t,...n}){return p.jsx("div",{className:pe(UV({variant:t}),e),"data-slot":"alert",role:"alert",...n})}function Ph({className:e,...t}){return p.jsx("div",{className:pe("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",e),"data-slot":"alert-title",...t})}function ea({className:e,...t}){return p.jsx("div",{className:pe("col-start-2 grid justify-items-start gap-1 text-muted-foreground text-sm [&_p]:leading-relaxed",e),"data-slot":"alert-description",...t})}var rp="Tabs",[HV]=zr(rp,[Vm]),jI=Vm(),[FV,gO]=HV(rp),EI=O.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:s,orientation:l="horizontal",dir:c,activationMode:f="automatic",...d}=e,v=Bm(c),[m,g]=$i({prop:r,onChange:i,defaultProp:s??"",caller:rp});return p.jsx(FV,{scope:n,baseId:pr(),value:m,onValueChange:g,orientation:l,dir:v,activationMode:f,children:p.jsx(Re.div,{dir:v,"data-orientation":l,...d,ref:t})})});EI.displayName=rp;var AI="TabsList",TI=O.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,s=gO(AI,n),l=jI(n);return p.jsx(Z$,{asChild:!0,...l,orientation:s.orientation,dir:s.dir,loop:r,children:p.jsx(Re.div,{role:"tablist","aria-orientation":s.orientation,...i,ref:t})})});TI.displayName=AI;var CI="TabsTrigger",NI=O.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...s}=e,l=gO(CI,n),c=jI(n),f=DI(l.baseId,r),d=PI(l.baseId,r),v=r===l.value;return p.jsx(J$,{asChild:!0,...c,focusable:!i,active:v,children:p.jsx(Re.button,{type:"button",role:"tab","aria-selected":v,"aria-controls":d,"data-state":v?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:f,...s,ref:t,onMouseDown:be(e.onMouseDown,m=>{!i&&m.button===0&&m.ctrlKey===!1?l.onValueChange(r):m.preventDefault()}),onKeyDown:be(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&l.onValueChange(r)}),onFocus:be(e.onFocus,()=>{const m=l.activationMode!=="manual";!v&&!i&&m&&l.onValueChange(r)})})})});NI.displayName=CI;var MI="TabsContent",RI=O.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:s,...l}=e,c=gO(MI,n),f=DI(c.baseId,r),d=PI(c.baseId,r),v=r===c.value,m=O.useRef(v);return O.useEffect(()=>{const g=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(g)},[]),p.jsx(wr,{present:i||v,children:({present:g})=>p.jsx(Re.div,{"data-state":v?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":f,hidden:!g,id:d,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:g&&s})})});RI.displayName=MI;function DI(e,t){return`${e}-trigger-${t}`}function PI(e,t){return`${e}-content-${t}`}var GV=EI,VV=TI,YV=NI,WV=RI;function kI({className:e,...t}){return p.jsx(GV,{className:pe("flex flex-col gap-2",e),"data-slot":"tabs",...t})}function $I({className:e,...t}){return p.jsx(VV,{className:pe("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 cc({className:e,...t}){return p.jsx(YV,{className:pe("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 fc({className:e,...t}){return p.jsx(WV,{className:pe("flex-1 outline-none",e),"data-slot":"tabs-content",...t})}function KV({messageId:e,archivingEnabled:t}){const[n,r]=O.useState(null),[i,s]=O.useState(!0),[l,c]=O.useState(null);return O.useEffect(()=>{async function f(){if(!t){s(!1);return}try{s(!0),c(null);const d=sessionStorage.getItem("wraps-auth-token");if(!d)throw new Error("Authentication token not found");const v=encodeURIComponent(e),m=await fetch(`/api/emails/${v}/archive?token=${d}`);if(!m.ok){if(m.status===404){r(null),s(!1);return}throw new Error(`Failed to fetch archived email: ${m.statusText}`)}const g=await m.json();r({...g,timestamp:new Date(g.timestamp)})}catch(d){const v=d instanceof Error?d.message:"Unknown error";c(v),console.error("Error fetching archived email:",d)}finally{s(!1)}}f()},[e,t]),t?i?p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsx(et,{children:"Email Archive"}),p.jsx(st,{children:"Loading archived email content..."})]}),p.jsx(We,{className:"space-y-4",children:p.jsx(pt,{className:"h-[400px] w-full"})})]}):l?p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsx(et,{children:"Email Archive"}),p.jsx(st,{children:"Failed to load archived email"})]}),p.jsx(We,{children:p.jsx(Jr,{variant:"destructive",children:p.jsx(ea,{children:l})})})]}):n?p.jsxs(ze,{children:[p.jsx(Be,{children:p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx(et,{children:"Email Archive"}),p.jsx(st,{children:"Full email content stored in AWS SES Mail Manager"})]}),n.attachments.length>0&&p.jsxs(Je,{variant:"secondary",children:[n.attachments.length," attachment",n.attachments.length>1?"s":""]})]})}),p.jsxs(We,{children:[p.jsxs(kI,{className:"w-full",defaultValue:"rendered",children:[p.jsxs($I,{className:"grid w-full grid-cols-3",children:[p.jsxs(cc,{className:"gap-2",value:"rendered",children:[p.jsx(Wk,{className:"h-4 w-4"}),"Rendered Email"]}),p.jsxs(cc,{className:"gap-2",value:"text",children:[p.jsx(Z8,{className:"h-4 w-4"}),"Plain Text"]}),p.jsxs(cc,{className:"gap-2",value:"html",children:[p.jsx(X8,{className:"h-4 w-4"}),"HTML Source"]})]}),p.jsxs(fc,{className:"space-y-4",value:"rendered",children:[n.html?p.jsx("div",{className:"rounded-md border",children:p.jsx("iframe",{className:"h-[600px] w-full rounded-md",sandbox:"allow-same-origin",srcDoc:n.html,title:"Email preview"})}):p.jsx(Jr,{children:p.jsx(ea,{children:"No HTML content available for this email. View the plain text tab instead."})}),n.attachments.length>0&&p.jsxs("div",{className:"space-y-2",children:[p.jsx("div",{className:"font-medium text-sm",children:"Attachments"}),p.jsx("div",{className:"space-y-2",children:n.attachments.map((f,d)=>p.jsx("div",{className:"flex items-center justify-between rounded-md border p-3",children:p.jsxs("div",{className:"space-y-1",children:[p.jsx("div",{className:"font-mono text-sm",children:f.filename||`Attachment ${d+1}`}),p.jsxs("div",{className:"text-muted-foreground text-xs",children:[f.contentType," •"," ",(f.size/1024).toFixed(2)," KB"]})]})},f.filename||`attachment-${d}`))})]})]}),p.jsx(fc,{className:"space-y-4",value:"text",children:n.text?p.jsx("div",{className:"rounded-md border bg-muted p-4",children:p.jsx("pre",{className:"whitespace-pre-wrap font-mono text-sm",children:n.text})}):p.jsx(Jr,{children:p.jsx(ea,{children:"No plain text content available for this email."})})}),p.jsx(fc,{className:"space-y-4",value:"html",children:n.html?p.jsx("div",{className:"rounded-md border bg-muted p-4",children:p.jsx("pre",{className:"overflow-x-auto whitespace-pre-wrap font-mono text-xs",children:n.html})}):p.jsx(Jr,{children:p.jsx(ea,{children:"No HTML content available for this email."})})})]}),n.metadata&&p.jsxs("div",{className:"mt-6 space-y-3 rounded-md border p-4",children:[p.jsx("div",{className:"font-medium text-sm",children:"SMTP Metadata"}),p.jsxs("div",{className:"grid gap-3 md:grid-cols-2",children:[n.metadata.senderIp&&p.jsxs("div",{className:"space-y-1",children:[p.jsx("div",{className:"text-muted-foreground text-xs",children:"Sender IP"}),p.jsx("div",{className:"font-mono text-sm",children:n.metadata.senderIp})]}),n.metadata.tlsProtocol&&p.jsxs("div",{className:"space-y-1",children:[p.jsx("div",{className:"text-muted-foreground text-xs",children:"TLS Protocol"}),p.jsx("div",{className:"font-mono text-sm",children:n.metadata.tlsProtocol})]}),n.metadata.senderHostname&&p.jsxs("div",{className:"space-y-1",children:[p.jsx("div",{className:"text-muted-foreground text-xs",children:"Sender Hostname"}),p.jsx("div",{className:"font-mono text-sm",children:n.metadata.senderHostname})]})]})]})]})]}):p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsx(et,{children:"Email Archive"}),p.jsx(st,{children:"Email content not available"})]}),p.jsx(We,{children:p.jsx(Jr,{children:p.jsx(ea,{children:"This email was not archived. It may have been sent before email archiving was enabled for this deployment."})})})]}):p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsx(et,{children:"Email Archive"}),p.jsx(st,{children:"Enable email archiving to view full email content"})]}),p.jsx(We,{children:p.jsx(Jr,{children:p.jsxs(ea,{children:["Email archiving is not enabled for this deployment. Run"," ",p.jsx("code",{className:"rounded bg-muted px-1.5 py-0.5 font-mono text-xs",children:"wraps upgrade"})," ","to enable archiving and view full email content with HTML rendering."]})})})]})}const XV={sent:Ws,delivered:MS,bounced:aa,complained:aa,opened:Ws,clicked:Ws,failed:aa},QV={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"},ZV={delivered:"default",sent:"secondary",bounced:"destructive",complained:"destructive",failed:"destructive",opened:"default",clicked:"default"};function JV(){const{id:e}=Ik(),t=Io(),[n,r]=O.useState(null),[i,s]=O.useState(!0),[l,c]=O.useState(null),[f,d]=O.useState(!1);O.useEffect(()=>{async function g(){var x,_,S;try{s(!0),c(null);const w=sessionStorage.getItem("wraps-auth-token");if(!w)throw new Error("Authentication token not found");try{const T=await fetch(`/api/settings/deployment?token=${w}`);if(T.ok){const N=await T.json();d(N.archivingEnabled??!1)}}catch(T){console.warn("Failed to fetch deployment config:",T)}const j=encodeURIComponent(e||"");console.log("Fetching email with ID:",e),console.log("Encoded ID:",j),console.log("Full URL:",`/api/emails/${j}?token=${w.substring(0,8)}...`);const E=await fetch(`/api/emails/${j}?token=${w}`);if(!E.ok){let T="Failed to fetch email details";try{T=(await E.json()).error||T}catch{T=`${E.status}: ${E.statusText}`}throw new Error(T)}const A=E.headers.get("content-type");if(!(A!=null&&A.includes("application/json"))){const T=await E.text();throw console.error("Non-JSON response:",T),new Error("Server returned non-JSON response")}const M=await E.json();console.log("Email data received:",{id:M.id,hasHtmlBody:!!M.htmlBody,hasTextBody:!!M.textBody,htmlBodyLength:((x=M.htmlBody)==null?void 0:x.length)||0,textBodyLength:((_=M.textBody)==null?void 0:_.length)||0,events:((S=M.events)==null?void 0:S.length)||0}),r(M)}catch(w){const j=w instanceof Error?w.message:"Unknown error";c(j),console.error("Error fetching email details:",w)}finally{s(!1)}}e&&g()},[e]);const v=g=>new Date(g).toLocaleString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),m=g=>new Date(g).toLocaleString("en-US",{weekday:"short",month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit",hour12:!0});return i?p.jsx("div",{className:"flex h-[600px] items-center justify-center",children:p.jsx("div",{className:"text-muted-foreground",children:"Loading email details..."})}):l?p.jsxs("div",{className:"space-y-4",children:[p.jsxs(bt,{onClick:()=>t("/email"),size:"sm",variant:"ghost",children:[p.jsx(Ys,{className:"mr-2 h-4 w-4"}),"Back to emails"]}),p.jsx("div",{className:"rounded-md border border-destructive bg-destructive/10 p-4 text-destructive text-sm",children:l})]}):n?p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs(bt,{onClick:()=>t("/email"),size:"sm",variant:"ghost",children:[p.jsx(Ys,{className:"mr-2 h-4 w-4"}),"Back to emails"]}),p.jsx(Je,{variant:ZV[n.status],children:n.status.charAt(0).toUpperCase()+n.status.slice(1)})]}),p.jsxs(ze,{children:[p.jsx(Be,{children:p.jsx("div",{className:"flex items-start justify-between",children:p.jsxs("div",{className:"space-y-1.5",children:[p.jsx(et,{className:"text-2xl",children:n.subject}),p.jsx(st,{className:"font-mono text-xs",children:n.messageId})]})})}),p.jsx(We,{className:"space-y-4",children:p.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[p.jsxs("div",{className:"space-y-1",children:[p.jsx("div",{className:"text-muted-foreground text-sm",children:"FROM"}),p.jsx("div",{className:"font-mono text-sm",children:n.from})]}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("div",{className:"text-muted-foreground text-sm",children:"TO"}),p.jsx("div",{className:"font-mono text-sm",children:n.to.length>0?n.to.join(", "):"(no recipients)"})]}),n.replyTo&&p.jsxs("div",{className:"space-y-1",children:[p.jsx("div",{className:"text-muted-foreground text-sm",children:"REPLY-TO"}),p.jsx("div",{className:"font-mono text-sm",children:n.replyTo})]}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("div",{className:"text-muted-foreground text-sm",children:"ID"}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("code",{className:"rounded bg-muted px-2 py-1 font-mono text-xs",children:n.id}),p.jsxs(bt,{className:"h-6 w-6",onClick:()=>navigator.clipboard.writeText(n.id),size:"icon",variant:"ghost",children:[p.jsx("span",{className:"sr-only",children:"Copy ID"}),"📋"]})]})]})]})})]}),f&&p.jsx(KV,{archivingEnabled:f,messageId:n.messageId}),p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsx(et,{children:"Email Events"}),p.jsx(st,{children:"Lifecycle of this email from send to delivery"})]}),p.jsx(We,{children:p.jsx("div",{className:"space-y-4",children:n.events.length===0?p.jsx("div",{className:"text-muted-foreground text-sm",children:"No events recorded yet"}):n.events.map((g,x)=>{const _=XV[g.type]||nl,S=x===n.events.length-1;return p.jsx("div",{children:p.jsxs("div",{className:"flex gap-4",children:[p.jsxs("div",{className:"flex flex-col items-center",children:[p.jsx("div",{className:`rounded-full border-2 border-background bg-muted p-2 ${QV[g.type]}`,children:p.jsx(_,{className:"h-4 w-4"})}),!S&&p.jsx("div",{className:"my-1 w-px flex-1 bg-border"})]}),p.jsxs("div",{className:"flex-1 pb-6",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("div",{className:"font-medium capitalize",children:g.type}),p.jsx("div",{className:"text-muted-foreground text-sm",children:v(g.timestamp)})]}),p.jsx("div",{className:"text-muted-foreground text-sm",children:m(g.timestamp)}),g.metadata&&Object.keys(g.metadata).length>0&&p.jsx("div",{className:"mt-2 rounded-md border bg-muted/50 p-2 font-mono text-xs",children:p.jsx("pre",{className:"overflow-x-auto",children:JSON.stringify(g.metadata,null,2)})})]})]})},`${g.type}-${g.timestamp}`)})})})]})]}):p.jsxs("div",{className:"space-y-4",children:[p.jsxs(bt,{onClick:()=>t("/email"),size:"sm",variant:"ghost",children:[p.jsx(Ys,{className:"mr-2 h-4 w-4"}),"Back to emails"]}),p.jsx("div",{className:"rounded-md border p-4 text-muted-foreground text-sm",children:"Email not found"})]})}function AC(e,[t,n]){return Math.min(n,Math.max(t,e))}function eY(e){const t=O.useRef({value:e,previous:e});return O.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var tY=[" ","Enter","ArrowUp","ArrowDown"],nY=[" ","Enter"],Mo="Select",[ap,ip,rY]=PS(Mo),[Fl]=zr(Mo,[rY,Ul]),op=Ul(),[aY,Bi]=Fl(Mo),[iY,oY]=Fl(Mo),LI=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:s,value:l,defaultValue:c,onValueChange:f,dir:d,name:v,autoComplete:m,disabled:g,required:x,form:_}=e,S=op(t),[w,j]=O.useState(null),[E,A]=O.useState(null),[M,T]=O.useState(!1),N=Bm(d),[R,D]=$i({prop:r,defaultProp:i??!1,onChange:s,caller:Mo}),[I,Y]=$i({prop:l,defaultProp:c,onChange:f,caller:Mo}),z=O.useRef(null),H=w?_||!!w.closest("form"):!0,[V,Q]=O.useState(new Set),K=Array.from(V).map(k=>k.props.value).join(";");return p.jsx(FS,{...S,children:p.jsxs(aY,{required:x,scope:t,trigger:w,onTriggerChange:j,valueNode:E,onValueNodeChange:A,valueNodeHasChildren:M,onValueNodeHasChildrenChange:T,contentId:pr(),value:I,onValueChange:Y,open:R,onOpenChange:D,dir:N,triggerPointerDownPosRef:z,disabled:g,children:[p.jsx(ap.Provider,{scope:t,children:p.jsx(iY,{scope:e.__scopeSelect,onNativeOptionAdd:O.useCallback(k=>{Q(q=>new Set(q).add(k))},[]),onNativeOptionRemove:O.useCallback(k=>{Q(q=>{const B=new Set(q);return B.delete(k),B})},[]),children:n})}),H?p.jsxs(i4,{"aria-hidden":!0,required:x,tabIndex:-1,name:v,autoComplete:m,value:I,onChange:k=>Y(k.target.value),disabled:g,form:_,children:[I===void 0?p.jsx("option",{value:""}):null,Array.from(V)]},K):null]})})};LI.displayName=Mo;var II="SelectTrigger",zI=O.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,s=op(n),l=Bi(II,n),c=l.disabled||r,f=tt(t,l.onTriggerChange),d=ip(n),v=O.useRef("touch"),[m,g,x]=s4(S=>{const w=d().filter(A=>!A.disabled),j=w.find(A=>A.value===l.value),E=l4(w,S,j);E!==void 0&&l.onValueChange(E.value)}),_=S=>{c||(l.onOpenChange(!0),x()),S&&(l.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return p.jsx(GS,{asChild:!0,...s,children:p.jsx(Re.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":o4(l.value)?"":void 0,...i,ref:f,onClick:be(i.onClick,S=>{S.currentTarget.focus(),v.current!=="mouse"&&_(S)}),onPointerDown:be(i.onPointerDown,S=>{v.current=S.pointerType;const w=S.target;w.hasPointerCapture(S.pointerId)&&w.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(_(S),S.preventDefault())}),onKeyDown:be(i.onKeyDown,S=>{const w=m.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&g(S.key),!(w&&S.key===" ")&&tY.includes(S.key)&&(_(),S.preventDefault())})})})});zI.displayName=II;var BI="SelectValue",qI=O.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:s,placeholder:l="",...c}=e,f=Bi(BI,n),{onValueNodeHasChildrenChange:d}=f,v=s!==void 0,m=tt(t,f.onValueNodeChange);return Ft(()=>{d(v)},[d,v]),p.jsx(Re.span,{...c,ref:m,style:{pointerEvents:"none"},children:o4(f.value)?p.jsx(p.Fragment,{children:l}):s})});qI.displayName=BI;var sY="SelectIcon",UI=O.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return p.jsx(Re.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});UI.displayName=sY;var lY="SelectPortal",HI=e=>p.jsx(hf,{asChild:!0,...e});HI.displayName=lY;var Ro="SelectContent",FI=O.forwardRef((e,t)=>{const n=Bi(Ro,e.__scopeSelect),[r,i]=O.useState();if(Ft(()=>{i(new DocumentFragment)},[]),!n.open){const s=r;return s?lf.createPortal(p.jsx(GI,{scope:e.__scopeSelect,children:p.jsx(ap.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),s):null}return p.jsx(VI,{...e,ref:t})});FI.displayName=Ro;var Cr=10,[GI,qi]=Fl(Ro),uY="SelectContentImpl",cY=rl("SelectContent.RemoveScroll"),VI=O.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:s,onPointerDownOutside:l,side:c,sideOffset:f,align:d,alignOffset:v,arrowPadding:m,collisionBoundary:g,collisionPadding:x,sticky:_,hideWhenDetached:S,avoidCollisions:w,...j}=e,E=Bi(Ro,n),[A,M]=O.useState(null),[T,N]=O.useState(null),R=tt(t,ce=>M(ce)),[D,I]=O.useState(null),[Y,z]=O.useState(null),H=ip(n),[V,Q]=O.useState(!1),K=O.useRef(!1);O.useEffect(()=>{if(A)return WS(A)},[A]),kS();const k=O.useCallback(ce=>{const[he,...ie]=H().map(ne=>ne.ref.current),[me]=ie.slice(-1),ve=document.activeElement;for(const ne of ce)if(ne===ve||(ne==null||ne.scrollIntoView({block:"nearest"}),ne===he&&T&&(T.scrollTop=0),ne===me&&T&&(T.scrollTop=T.scrollHeight),ne==null||ne.focus(),document.activeElement!==ve))return},[H,T]),q=O.useCallback(()=>k([D,A]),[k,D,A]);O.useEffect(()=>{V&&q()},[V,q]);const{onOpenChange:B,triggerPointerDownPosRef:W}=E;O.useEffect(()=>{if(A){let ce={x:0,y:0};const he=me=>{var ve,ne;ce={x:Math.abs(Math.round(me.pageX)-(((ve=W.current)==null?void 0:ve.x)??0)),y:Math.abs(Math.round(me.pageY)-(((ne=W.current)==null?void 0:ne.y)??0))}},ie=me=>{ce.x<=10&&ce.y<=10?me.preventDefault():A.contains(me.target)||B(!1),document.removeEventListener("pointermove",he),W.current=null};return W.current!==null&&(document.addEventListener("pointermove",he),document.addEventListener("pointerup",ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",he),document.removeEventListener("pointerup",ie,{capture:!0})}}},[A,B,W]),O.useEffect(()=>{const ce=()=>B(!1);return window.addEventListener("blur",ce),window.addEventListener("resize",ce),()=>{window.removeEventListener("blur",ce),window.removeEventListener("resize",ce)}},[B]);const[se,$]=s4(ce=>{const he=H().filter(ve=>!ve.disabled),ie=he.find(ve=>ve.ref.current===document.activeElement),me=l4(he,ce,ie);me&&setTimeout(()=>me.ref.current.focus())}),F=O.useCallback((ce,he,ie)=>{const me=!K.current&&!ie;(E.value!==void 0&&E.value===he||me)&&(I(ce),me&&(K.current=!0))},[E.value]),X=O.useCallback(()=>A==null?void 0:A.focus(),[A]),ae=O.useCallback((ce,he,ie)=>{const me=!K.current&&!ie;(E.value!==void 0&&E.value===he||me)&&z(ce)},[E.value]),de=r==="popper"?Gw:YI,ge=de===Gw?{side:c,sideOffset:f,align:d,alignOffset:v,arrowPadding:m,collisionBoundary:g,collisionPadding:x,sticky:_,hideWhenDetached:S,avoidCollisions:w}:{};return p.jsx(GI,{scope:n,content:A,viewport:T,onViewportChange:N,itemRefCallback:F,selectedItem:D,onItemLeave:X,itemTextRefCallback:ae,focusSelectedItem:q,selectedItemText:Y,position:r,isPositioned:V,searchRef:se,children:p.jsx(Wm,{as:cY,allowPinchZoom:!0,children:p.jsx(qm,{asChild:!0,trapped:E.open,onMountAutoFocus:ce=>{ce.preventDefault()},onUnmountAutoFocus:be(i,ce=>{var he;(he=E.trigger)==null||he.focus({preventScroll:!0}),ce.preventDefault()}),children:p.jsx(ff,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:ce=>ce.preventDefault(),onDismiss:()=>E.onOpenChange(!1),children:p.jsx(de,{role:"listbox",id:E.contentId,"data-state":E.open?"open":"closed",dir:E.dir,onContextMenu:ce=>ce.preventDefault(),...j,...ge,onPlaced:()=>Q(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...j.style},onKeyDown:be(j.onKeyDown,ce=>{const he=ce.ctrlKey||ce.altKey||ce.metaKey;if(ce.key==="Tab"&&ce.preventDefault(),!he&&ce.key.length===1&&$(ce.key),["ArrowUp","ArrowDown","Home","End"].includes(ce.key)){let me=H().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);if(["ArrowUp","End"].includes(ce.key)&&(me=me.slice().reverse()),["ArrowUp","ArrowDown"].includes(ce.key)){const ve=ce.target,ne=me.indexOf(ve);me=me.slice(ne+1)}setTimeout(()=>k(me)),ce.preventDefault()}})})})})})})});VI.displayName=uY;var fY="SelectItemAlignedPosition",YI=O.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,s=Bi(Ro,n),l=qi(Ro,n),[c,f]=O.useState(null),[d,v]=O.useState(null),m=tt(t,R=>v(R)),g=ip(n),x=O.useRef(!1),_=O.useRef(!0),{viewport:S,selectedItem:w,selectedItemText:j,focusSelectedItem:E}=l,A=O.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&d&&S&&w&&j){const R=s.trigger.getBoundingClientRect(),D=d.getBoundingClientRect(),I=s.valueNode.getBoundingClientRect(),Y=j.getBoundingClientRect();if(s.dir!=="rtl"){const ve=Y.left-D.left,ne=I.left-ve,De=R.left-ne,je=R.width+De,rt=Math.max(je,D.width),Xe=window.innerWidth-Cr,ft=AC(ne,[Cr,Math.max(Cr,Xe-rt)]);c.style.minWidth=je+"px",c.style.left=ft+"px"}else{const ve=D.right-Y.right,ne=window.innerWidth-I.right-ve,De=window.innerWidth-R.right-ne,je=R.width+De,rt=Math.max(je,D.width),Xe=window.innerWidth-Cr,ft=AC(ne,[Cr,Math.max(Cr,Xe-rt)]);c.style.minWidth=je+"px",c.style.right=ft+"px"}const z=g(),H=window.innerHeight-Cr*2,V=S.scrollHeight,Q=window.getComputedStyle(d),K=parseInt(Q.borderTopWidth,10),k=parseInt(Q.paddingTop,10),q=parseInt(Q.borderBottomWidth,10),B=parseInt(Q.paddingBottom,10),W=K+k+V+B+q,se=Math.min(w.offsetHeight*5,W),$=window.getComputedStyle(S),F=parseInt($.paddingTop,10),X=parseInt($.paddingBottom,10),ae=R.top+R.height/2-Cr,de=H-ae,ge=w.offsetHeight/2,ce=w.offsetTop+ge,he=K+k+ce,ie=W-he;if(he<=ae){const ve=z.length>0&&w===z[z.length-1].ref.current;c.style.bottom="0px";const ne=d.clientHeight-S.offsetTop-S.offsetHeight,De=Math.max(de,ge+(ve?X:0)+ne+q),je=he+De;c.style.height=je+"px"}else{const ve=z.length>0&&w===z[0].ref.current;c.style.top="0px";const De=Math.max(ae,K+S.offsetTop+(ve?F:0)+ge)+ie;c.style.height=De+"px",S.scrollTop=he-ae+S.offsetTop}c.style.margin=`${Cr}px 0`,c.style.minHeight=se+"px",c.style.maxHeight=H+"px",r==null||r(),requestAnimationFrame(()=>x.current=!0)}},[g,s.trigger,s.valueNode,c,d,S,w,j,s.dir,r]);Ft(()=>A(),[A]);const[M,T]=O.useState();Ft(()=>{d&&T(window.getComputedStyle(d).zIndex)},[d]);const N=O.useCallback(R=>{R&&_.current===!0&&(A(),E==null||E(),_.current=!1)},[A,E]);return p.jsx(hY,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:x,onScrollButtonChange:N,children:p.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:M},children:p.jsx(Re.div,{...i,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});YI.displayName=fY;var dY="SelectPopperPosition",Gw=O.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=Cr,...s}=e,l=op(n);return p.jsx(VS,{...l,...s,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...s.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)"}})});Gw.displayName=dY;var[hY,yO]=Fl(Ro,{}),Vw="SelectViewport",WI=O.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,s=qi(Vw,n),l=yO(Vw,n),c=tt(t,s.onViewportChange),f=O.useRef(0);return p.jsxs(p.Fragment,{children:[p.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}),p.jsx(ap.Slot,{scope:n,children:p.jsx(Re.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 v=d.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:g}=l;if(g!=null&&g.current&&m){const x=Math.abs(f.current-v.scrollTop);if(x>0){const _=window.innerHeight-Cr*2,S=parseFloat(m.style.minHeight),w=parseFloat(m.style.height),j=Math.max(S,w);if(j<_){const E=j+x,A=Math.min(_,E),M=E-A;m.style.height=A+"px",m.style.bottom==="0px"&&(v.scrollTop=M>0?M:0,m.style.justifyContent="flex-end")}}}f.current=v.scrollTop})})})]})});WI.displayName=Vw;var KI="SelectGroup",[mY,pY]=Fl(KI),vY=O.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=pr();return p.jsx(mY,{scope:n,id:i,children:p.jsx(Re.div,{role:"group","aria-labelledby":i,...r,ref:t})})});vY.displayName=KI;var XI="SelectLabel",gY=O.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=pY(XI,n);return p.jsx(Re.div,{id:i.id,...r,ref:t})});gY.displayName=XI;var kh="SelectItem",[yY,QI]=Fl(kh),ZI=O.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:s,...l}=e,c=Bi(kh,n),f=qi(kh,n),d=c.value===r,[v,m]=O.useState(s??""),[g,x]=O.useState(!1),_=tt(t,E=>{var A;return(A=f.itemRefCallback)==null?void 0:A.call(f,E,r,i)}),S=pr(),w=O.useRef("touch"),j=()=>{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 p.jsx(yY,{scope:n,value:r,disabled:i,textId:S,isSelected:d,onItemTextChange:O.useCallback(E=>{m(A=>A||((E==null?void 0:E.textContent)??"").trim())},[]),children:p.jsx(ap.ItemSlot,{scope:n,value:r,disabled:i,textValue:v,children:p.jsx(Re.div,{role:"option","aria-labelledby":S,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...l,ref:_,onFocus:be(l.onFocus,()=>x(!0)),onBlur:be(l.onBlur,()=>x(!1)),onClick:be(l.onClick,()=>{w.current!=="mouse"&&j()}),onPointerUp:be(l.onPointerUp,()=>{w.current==="mouse"&&j()}),onPointerDown:be(l.onPointerDown,E=>{w.current=E.pointerType}),onPointerMove:be(l.onPointerMove,E=>{var A;w.current=E.pointerType,i?(A=f.onItemLeave)==null||A.call(f):w.current==="mouse"&&E.currentTarget.focus({preventScroll:!0})}),onPointerLeave:be(l.onPointerLeave,E=>{var A;E.currentTarget===document.activeElement&&((A=f.onItemLeave)==null||A.call(f))}),onKeyDown:be(l.onKeyDown,E=>{var M;((M=f.searchRef)==null?void 0:M.current)!==""&&E.key===" "||(nY.includes(E.key)&&j(),E.key===" "&&E.preventDefault())})})})})});ZI.displayName=kh;var oc="SelectItemText",JI=O.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...s}=e,l=Bi(oc,n),c=qi(oc,n),f=QI(oc,n),d=oY(oc,n),[v,m]=O.useState(null),g=tt(t,j=>m(j),f.onItemTextChange,j=>{var E;return(E=c.itemTextRefCallback)==null?void 0:E.call(c,j,f.value,f.disabled)}),x=v==null?void 0:v.textContent,_=O.useMemo(()=>p.jsx("option",{value:f.value,disabled:f.disabled,children:x},f.value),[f.disabled,f.value,x]),{onNativeOptionAdd:S,onNativeOptionRemove:w}=d;return Ft(()=>(S(_),()=>w(_)),[S,w,_]),p.jsxs(p.Fragment,{children:[p.jsx(Re.span,{id:f.textId,...s,ref:g}),f.isSelected&&l.valueNode&&!l.valueNodeHasChildren?lf.createPortal(s.children,l.valueNode):null]})});JI.displayName=oc;var e4="SelectItemIndicator",t4=O.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return QI(e4,n).isSelected?p.jsx(Re.span,{"aria-hidden":!0,...r,ref:t}):null});t4.displayName=e4;var Yw="SelectScrollUpButton",n4=O.forwardRef((e,t)=>{const n=qi(Yw,e.__scopeSelect),r=yO(Yw,e.__scopeSelect),[i,s]=O.useState(!1),l=tt(t,r.onScrollButtonChange);return Ft(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=f.scrollTop>0;s(d)};const f=n.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),i?p.jsx(a4,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop-f.offsetHeight)}}):null});n4.displayName=Yw;var Ww="SelectScrollDownButton",r4=O.forwardRef((e,t)=>{const n=qi(Ww,e.__scopeSelect),r=yO(Ww,e.__scopeSelect),[i,s]=O.useState(!1),l=tt(t,r.onScrollButtonChange);return Ft(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=f.scrollHeight-f.clientHeight,v=Math.ceil(f.scrollTop)<d;s(v)};const f=n.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),i?p.jsx(a4,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop+f.offsetHeight)}}):null});r4.displayName=Ww;var a4=O.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,s=qi("SelectScrollButton",n),l=O.useRef(null),c=ip(n),f=O.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return O.useEffect(()=>()=>f(),[f]),Ft(()=>{var v;const d=c().find(m=>m.ref.current===document.activeElement);(v=d==null?void 0:d.ref.current)==null||v.scrollIntoView({block:"nearest"})},[c]),p.jsx(Re.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:be(i.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:be(i.onPointerMove,()=>{var d;(d=s.onItemLeave)==null||d.call(s),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:be(i.onPointerLeave,()=>{f()})})}),bY="SelectSeparator",xY=O.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return p.jsx(Re.div,{"aria-hidden":!0,...r,ref:t})});xY.displayName=bY;var Kw="SelectArrow",wY=O.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=op(n),s=Bi(Kw,n),l=qi(Kw,n);return s.open&&l.position==="popper"?p.jsx(YS,{...i,...r,ref:t}):null});wY.displayName=Kw;var SY="SelectBubbleInput",i4=O.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=O.useRef(null),s=tt(r,i),l=eY(t);return O.useEffect(()=>{const c=i.current;if(!c)return;const f=window.HTMLSelectElement.prototype,v=Object.getOwnPropertyDescriptor(f,"value").set;if(l!==t&&v){const m=new Event("change",{bubbles:!0});v.call(c,t),c.dispatchEvent(m)}},[l,t]),p.jsx(Re.select,{...n,style:{...iI,...n.style},ref:s,defaultValue:t})});i4.displayName=SY;function o4(e){return e===""||e===void 0}function s4(e){const t=kr(e),n=O.useRef(""),r=O.useRef(0),i=O.useCallback(l=>{const c=n.current+l;t(c),(function f(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>f(""),1e3))})(c)},[t]),s=O.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return O.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,s]}function l4(e,t,n){const i=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let l=OY(e,Math.max(s,0));i.length===1&&(l=l.filter(d=>d!==n));const f=l.find(d=>d.textValue.toLowerCase().startsWith(i.toLowerCase()));return f!==n?f:void 0}function OY(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var _Y=LI,jY=zI,EY=qI,AY=UI,TY=HI,CY=FI,NY=WI,MY=ZI,RY=JI,DY=t4,PY=n4,kY=r4;function ol({...e}){return p.jsx(_Y,{"data-slot":"select",...e})}function sl({...e}){return p.jsx(EY,{"data-slot":"select-value",...e})}function ll({className:e,size:t="default",children:n,...r}){return p.jsxs(jY,{className:pe("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,p.jsx(AY,{asChild:!0,children:p.jsx($l,{className:"size-4 opacity-50"})})]})}function ul({className:e,children:t,position:n="popper",align:r="center",...i}){return p.jsx(TY,{children:p.jsxs(CY,{align:r,className:pe("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=right]:translate-x-1 data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1",e),"data-slot":"select-content",position:n,...i,children:[p.jsx($Y,{}),p.jsx(NY,{className:pe("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),p.jsx(LY,{})]})})}function Ge({className:e,children:t,...n}){return p.jsxs(MY,{className:pe("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:[p.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:p.jsx(DY,{children:p.jsx(MS,{className:"size-4"})})}),p.jsx(RY,{children:t})]})}function $Y({className:e,...t}){return p.jsx(PY,{className:pe("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-up-button",...t,children:p.jsx(uf,{className:"size-4"})})}function LY({className:e,...t}){return p.jsx(kY,{className:pe("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-down-button",...t,children:p.jsx($l,{className:"size-4"})})}function u4({className:e,...t}){return p.jsx("div",{className:"relative w-full overflow-x-auto","data-slot":"table-container",children:p.jsx("table",{className:pe("w-full caption-bottom text-sm",e),"data-slot":"table",...t})})}function c4({className:e,...t}){return p.jsx("thead",{className:pe("[&_tr]:border-b",e),"data-slot":"table-header",...t})}function f4({className:e,...t}){return p.jsx("tbody",{className:pe("[&_tr:last-child]:border-0",e),"data-slot":"table-body",...t})}function Mi({className:e,...t}){return p.jsx("tr",{className:pe("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),"data-slot":"table-row",...t})}function ra({className:e,...t}){return p.jsx("th",{className:pe("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 Pn({className:e,...t}){return p.jsx("td",{className:pe("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),"data-slot":"table-cell",...t})}const Ey={clicked:{variant:"default",description:"Recipient clicked a link in the email",className:"bg-purple-500/10 text-purple-700 dark:text-purple-400 hover:bg-purple-500/20 border-purple-500/20"},opened:{variant:"default",description:"Recipient opened the email",className:"bg-blue-500/10 text-blue-700 dark:text-blue-400 hover:bg-blue-500/20 border-blue-500/20"},delivered:{variant:"default",description:"Email was successfully delivered to recipient's mailbox",className:"bg-green-500/10 text-green-700 dark:text-green-400 hover:bg-green-500/20 border-green-500/20"},sent:{variant:"secondary",description:"Email was sent but delivery not yet confirmed",className:"bg-gray-500/10 text-gray-700 dark:text-gray-400 hover:bg-gray-500/20 border-gray-500/20"},bounced:{variant:"default",description:"Email bounced - recipient's mailbox may not exist or be full",className:"bg-orange-500/10 text-orange-700 dark:text-orange-400 hover:bg-orange-500/20 border-orange-500/20"},complained:{variant:"default",description:"Recipient marked this email as spam",className:"bg-red-500/10 text-red-700 dark:text-red-400 hover:bg-red-500/20 border-red-500/20"},failed:{variant:"default",description:"Email failed to send due to an error",className:"bg-red-500/10 text-red-700 dark:text-red-400 hover:bg-red-500/20 border-red-500/20"}};function IY(){const e=Io(),[t,n]=O.useState(""),[r,i]=O.useState("15"),[s,l]=O.useState("all"),[c,f]=O.useState("sending"),[d,v]=O.useState([]),[m,g]=O.useState(!0),[x,_]=O.useState(null);O.useEffect(()=>{async function j(){try{g(!0),_(null);let E=sessionStorage.getItem("wraps-auth-token");if(E||(E=new URLSearchParams(window.location.search).get("token"),E&&sessionStorage.setItem("wraps-auth-token",E)),!E)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,T=Date.now(),N=await fetch(`/api/emails?startTime=${M}&endTime=${T}&limit=100&token=${E}`);if(!N.ok){let D="Failed to fetch email logs";try{D=(await N.json()).error||D}catch{D=`${N.status}: ${N.statusText}`}throw new Error(D)}const R=await N.json();v(R.logs.map(D=>({id:D.messageId,to:D.to,from:D.from,subject:D.subject,status:D.status,timestamp:D.sentAt,messageId:D.messageId})))}catch(E){const A=E instanceof Error?E.message:"Unknown error";_(A),console.error("Error fetching email logs:",E)}finally{g(!1)}}j()},[r]);const S=d.filter(j=>{if(t){const E=t.toLowerCase(),A=j.to.some(T=>T.toLowerCase().includes(E)),M=j.subject.toLowerCase().includes(E);if(!(A||M))return!1}return!(s!=="all"&&j.status!==s)}),w=j=>{const E=new Date(j),M=Math.floor((new Date().getTime()-E.getTime())/(1e3*60*60*24));return M===0?"Today":M===1?"Yesterday":M<7?`${M} days ago`:E.toLocaleDateString()};return p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsx(et,{children:"Emails"}),p.jsx(st,{children:"View and manage your email sending history"})]}),p.jsx(We,{children:p.jsxs(kI,{onValueChange:f,value:c,children:[p.jsxs($I,{children:[p.jsx(cc,{value:"sending",children:"Sending"}),p.jsx(cc,{value:"receiving",children:"Receiving"})]}),p.jsxs(fc,{className:"space-y-4",value:"sending",children:[x&&p.jsx("div",{className:"rounded-md border border-destructive bg-destructive/10 p-4 text-destructive text-sm",children:x}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs("div",{className:"relative flex-1",children:[p.jsx(Xk,{className:"absolute top-2.5 left-2.5 h-4 w-4 text-muted-foreground"}),p.jsx(gf,{className:"pl-8",onChange:j=>n(j.target.value),placeholder:"Search...",value:t})]}),p.jsxs(ol,{onValueChange:i,value:r,children:[p.jsx(ll,{className:"w-[180px]",children:p.jsx(sl,{})}),p.jsxs(ul,{children:[p.jsx(Ge,{value:"1",children:"Last 24 hours"}),p.jsx(Ge,{value:"7",children:"Last 7 days"}),p.jsx(Ge,{value:"15",children:"Last 15 days"}),p.jsx(Ge,{value:"30",children:"Last 30 days"}),p.jsx(Ge,{value:"90",children:"Last 90 days"})]})]}),p.jsxs(ol,{onValueChange:l,value:s,children:[p.jsx(ll,{className:"w-[180px]",children:p.jsx(sl,{})}),p.jsxs(ul,{children:[p.jsx(Ge,{value:"all",children:"All Statuses"}),p.jsx(Ge,{value:"clicked",children:"Clicked"}),p.jsx(Ge,{value:"opened",children:"Opened"}),p.jsx(Ge,{value:"delivered",children:"Delivered"}),p.jsx(Ge,{value:"sent",children:"Sent"}),p.jsx(Ge,{value:"bounced",children:"Bounced"}),p.jsx(Ge,{value:"complained",children:"Complained"}),p.jsx(Ge,{value:"failed",children:"Failed"})]})]}),p.jsxs(bt,{size:"icon",variant:"outline",children:[p.jsx("span",{className:"sr-only",children:"Download"}),"↓"]})]}),p.jsx("div",{className:"rounded-md border",children:p.jsxs(u4,{children:[p.jsx(c4,{children:p.jsxs(Mi,{children:[p.jsx(ra,{children:"To"}),p.jsx(ra,{children:"Status"}),p.jsx(ra,{children:"Subject"}),p.jsx(ra,{children:"Sent"}),p.jsx(ra,{className:"w-[50px]"})]})}),p.jsx(f4,{children:m?p.jsx(Mi,{children:p.jsx(Pn,{className:"h-24 text-center text-muted-foreground",colSpan:5,children:"Loading email logs..."})}):S.length===0?p.jsx(Mi,{children:p.jsx(Pn,{className:"h-24 text-center text-muted-foreground",colSpan:5,children:"No emails found"})}):S.map(j=>{var E,A,M;return p.jsxs(Mi,{className:"cursor-pointer hover:bg-muted/50",onClick:()=>e(`/email/${j.id}`),children:[p.jsx(Pn,{className:"font-mono text-sm",children:j.to.length>0?p.jsxs(p.Fragment,{children:[j.to[0],j.to.length>1&&p.jsxs("span",{className:"ml-1 text-muted-foreground text-xs",children:["+",j.to.length-1," more"]})]}):p.jsx("span",{className:"text-muted-foreground",children:"(no recipients)"})}),p.jsx(Pn,{children:p.jsxs(mO,{children:[p.jsx(pO,{asChild:!0,children:p.jsx(Je,{className:(E=Ey[j.status])==null?void 0:E.className,variant:((A=Ey[j.status])==null?void 0:A.variant)??"default",children:j.status.charAt(0).toUpperCase()+j.status.slice(1)})}),p.jsx(vO,{children:p.jsx("p",{children:((M=Ey[j.status])==null?void 0:M.description)??"Unknown status"})})]})}),p.jsx(Pn,{className:"max-w-[400px] truncate",children:j.subject}),p.jsx(Pn,{className:"text-muted-foreground",children:w(j.timestamp)}),p.jsx(Pn,{children:p.jsxs(bt,{onClick:T=>{T.stopPropagation()},size:"icon",variant:"ghost",children:[p.jsx("span",{className:"sr-only",children:"More options"}),"⋯"]})})]},j.id)})})]})}),S.length>0&&!m&&p.jsx("div",{className:"flex items-center justify-between text-muted-foreground text-sm",children:p.jsxs("div",{children:["Showing ",S.length," of ",d.length," emails"]})})]}),p.jsx(fc,{value:"receiving",children:p.jsx("div",{className:"flex h-[400px] items-center justify-center text-muted-foreground",children:"Receiving emails coming soon"})})]})})]})}const d4=6048e5,zY=864e5,TC=Symbol.for("constructDateFrom");function zi(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&TC in e?e[TC](t):e instanceof Date?new e.constructor(t):new Date(t)}function qr(e,t){return zi(t||e,e)}let BY={};function sp(){return BY}function Oc(e,t){var c,f,d,v;const n=sp(),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??((v=(d=n.locale)==null?void 0:d.options)==null?void 0:v.weekStartsOn)??0,i=qr(e,t==null?void 0:t.in),s=i.getDay(),l=(s<r?7:0)+s-r;return i.setDate(i.getDate()-l),i.setHours(0,0,0,0),i}function $h(e,t){return Oc(e,{...t,weekStartsOn:1})}function h4(e,t){const n=qr(e,t==null?void 0:t.in),r=n.getFullYear(),i=zi(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const s=$h(i),l=zi(n,0);l.setFullYear(r,0,4),l.setHours(0,0,0,0);const c=$h(l);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function CC(e){const t=qr(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 qY(e,...t){const n=zi.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function NC(e,t){const n=qr(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function UY(e,t,n){const[r,i]=qY(n==null?void 0:n.in,e,t),s=NC(r),l=NC(i),c=+s-CC(s),f=+l-CC(l);return Math.round((c-f)/zY)}function HY(e,t){const n=h4(e,t),r=zi(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),$h(r)}function FY(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function GY(e){return!(!FY(e)&&typeof e!="number"||isNaN(+qr(e)))}function VY(e,t){const n=qr(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const YY={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"}},WY=(e,t,n)=>{let r;const i=YY[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 Ay(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const KY={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},XY={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},QY={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ZY={date:Ay({formats:KY,defaultWidth:"full"}),time:Ay({formats:XY,defaultWidth:"full"}),dateTime:Ay({formats:QY,defaultWidth:"full"})},JY={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},eW=(e,t,n,r)=>JY[e];function Wu(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):l;i=e.formattingValues[c]||e.formattingValues[l]}else{const l=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[l]}const s=e.argumentCallback?e.argumentCallback(t):t;return i[s]}}const tW={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},nW={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},rW={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"]},aW={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"]},iW={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"}},oW={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"}},sW=(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"},lW={ordinalNumber:sW,era:Wu({values:tW,defaultWidth:"wide"}),quarter:Wu({values:nW,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Wu({values:rW,defaultWidth:"wide"}),day:Wu({values:aW,defaultWidth:"wide"}),dayPeriod:Wu({values:iW,defaultWidth:"wide",formattingValues:oW,defaultFormattingWidth:"wide"})};function Ku(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(i);if(!s)return null;const l=s[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(c)?cW(c,m=>m.test(l)):uW(c,m=>m.test(l));let d;d=e.valueCallback?e.valueCallback(f):f,d=n.valueCallback?n.valueCallback(d):d;const v=t.slice(l.length);return{value:d,rest:v}}}function uW(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function cW(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function fW(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],s=t.match(e.parsePattern);if(!s)return null;let l=e.valueCallback?e.valueCallback(s[0]):s[0];l=n.valueCallback?n.valueCallback(l):l;const c=t.slice(i.length);return{value:l,rest:c}}}const dW=/^(\d+)(th|st|nd|rd)?/i,hW=/\d+/i,mW={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},pW={any:[/^b/i,/^(a|c)/i]},vW={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},gW={any:[/1/i,/2/i,/3/i,/4/i]},yW={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},bW={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]},xW={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},wW={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]},SW={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},OW={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}},_W={ordinalNumber:fW({matchPattern:dW,parsePattern:hW,valueCallback:e=>parseInt(e,10)}),era:Ku({matchPatterns:mW,defaultMatchWidth:"wide",parsePatterns:pW,defaultParseWidth:"any"}),quarter:Ku({matchPatterns:vW,defaultMatchWidth:"wide",parsePatterns:gW,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ku({matchPatterns:yW,defaultMatchWidth:"wide",parsePatterns:bW,defaultParseWidth:"any"}),day:Ku({matchPatterns:xW,defaultMatchWidth:"wide",parsePatterns:wW,defaultParseWidth:"any"}),dayPeriod:Ku({matchPatterns:SW,defaultMatchWidth:"any",parsePatterns:OW,defaultParseWidth:"any"})},jW={code:"en-US",formatDistance:WY,formatLong:ZY,formatRelative:eW,localize:lW,match:_W,options:{weekStartsOn:0,firstWeekContainsDate:1}};function EW(e,t){const n=qr(e,t==null?void 0:t.in);return UY(n,VY(n))+1}function AW(e,t){const n=qr(e,t==null?void 0:t.in),r=+$h(n)-+HY(n);return Math.round(r/d4)+1}function m4(e,t){var v,m,g,x;const n=qr(e,t==null?void 0:t.in),r=n.getFullYear(),i=sp(),s=(t==null?void 0:t.firstWeekContainsDate)??((m=(v=t==null?void 0:t.locale)==null?void 0:v.options)==null?void 0:m.firstWeekContainsDate)??i.firstWeekContainsDate??((x=(g=i.locale)==null?void 0:g.options)==null?void 0:x.firstWeekContainsDate)??1,l=zi((t==null?void 0:t.in)||e,0);l.setFullYear(r+1,0,s),l.setHours(0,0,0,0);const c=Oc(l,t),f=zi((t==null?void 0:t.in)||e,0);f.setFullYear(r,0,s),f.setHours(0,0,0,0);const d=Oc(f,t);return+n>=+c?r+1:+n>=+d?r:r-1}function TW(e,t){var c,f,d,v;const n=sp(),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??((v=(d=n.locale)==null?void 0:d.options)==null?void 0:v.firstWeekContainsDate)??1,i=m4(e,t),s=zi((t==null?void 0:t.in)||e,0);return s.setFullYear(i,0,r),s.setHours(0,0,0,0),Oc(s,t)}function CW(e,t){const n=qr(e,t==null?void 0:t.in),r=+Oc(n,t)-+TW(n,t);return Math.round(r/d4)+1}function ct(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ai={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ct(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ct(n+1,2)},d(e,t){return ct(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 ct(e.getHours()%12||12,t.length)},H(e,t){return ct(e.getHours(),t.length)},m(e,t){return ct(e.getMinutes(),t.length)},s(e,t){return ct(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return ct(i,t.length)}},zs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},MC={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 Ai.y(e,t)},Y:function(e,t,n,r){const i=m4(e,r),s=i>0?i:1-i;if(t==="YY"){const l=s%100;return ct(l,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):ct(s,t.length)},R:function(e,t){const n=h4(e);return ct(n,t.length)},u:function(e,t){const n=e.getFullYear();return ct(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 ct(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 ct(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 Ai.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 ct(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=CW(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):ct(i,t.length)},I:function(e,t,n){const r=AW(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ct(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ai.d(e,t)},D:function(e,t,n){const r=EW(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ct(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(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return ct(s,2);case"eo":return n.ordinalNumber(s,{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(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return ct(s,t.length);case"co":return n.ordinalNumber(s,{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 ct(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=zs.noon:r===0?i=zs.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=zs.evening:r>=12?i=zs.afternoon:r>=4?i=zs.morning:i=zs.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 Ai.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ai.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ct(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ct(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ai.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ai.s(e,t)},S:function(e,t){return Ai.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return DC(r);case"XXXX":case"XX":return bo(r);case"XXXXX":case"XXX":default:return bo(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return DC(r);case"xxxx":case"xx":return bo(r);case"xxxxx":case"xxx":default:return bo(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+RC(r,":");case"OOOO":default:return"GMT"+bo(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+RC(r,":");case"zzzz":default:return"GMT"+bo(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return ct(r,t.length)},T:function(e,t,n){return ct(+e,t.length)}};function RC(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),s=r%60;return s===0?n+String(i):n+String(i)+t+ct(s,2)}function DC(e,t){return e%60===0?(e>0?"-":"+")+ct(Math.abs(e)/60,2):bo(e,t)}function bo(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=ct(Math.trunc(r/60),2),s=ct(r%60,2);return n+i+t+s}const PC=(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"})}},p4=(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"})}},NW=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return PC(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",PC(r,t)).replace("{{time}}",p4(i,t))},MW={p:p4,P:NW},RW=/^D+$/,DW=/^Y+$/,PW=["D","DD","YY","YYYY"];function kW(e){return RW.test(e)}function $W(e){return DW.test(e)}function LW(e,t,n){const r=IW(e,t,n);if(console.warn(r),PW.includes(e))throw new RangeError(r)}function IW(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 zW=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,BW=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qW=/^'([^]*?)'?$/,UW=/''/g,HW=/[a-zA-Z]/;function kC(e,t,n){var v,m,g,x;const r=sp(),i=r.locale??jW,s=r.firstWeekContainsDate??((m=(v=r.locale)==null?void 0:v.options)==null?void 0:m.firstWeekContainsDate)??1,l=r.weekStartsOn??((x=(g=r.locale)==null?void 0:g.options)==null?void 0:x.weekStartsOn)??0,c=qr(e,n==null?void 0:n.in);if(!GY(c))throw new RangeError("Invalid time value");let f=t.match(BW).map(_=>{const S=_[0];if(S==="p"||S==="P"){const w=MW[S];return w(_,i.formatLong)}return _}).join("").match(zW).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const S=_[0];if(S==="'")return{isToken:!1,value:FW(_)};if(MC[S])return{isToken:!0,value:_};if(S.match(HW))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:_}});i.localize.preprocessor&&(f=i.localize.preprocessor(c,f));const d={firstWeekContainsDate:s,weekStartsOn:l,locale:i};return f.map(_=>{if(!_.isToken)return _.value;const S=_.value;($W(S)||kW(S))&&LW(S,t,String(e));const w=MC[S[0]];return w(c,S,i.localize,d)}).join("")}function FW(e){const t=e.match(qW);return t?t[1].replace(UW,"'"):e}var Ty,$C;function $n(){if($C)return Ty;$C=1;var e=Array.isArray;return Ty=e,Ty}var Cy,LC;function v4(){if(LC)return Cy;LC=1;var e=typeof Hd=="object"&&Hd&&Hd.Object===Object&&Hd;return Cy=e,Cy}var Ny,IC;function ma(){if(IC)return Ny;IC=1;var e=v4(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Ny=n,Ny}var My,zC;function bf(){if(zC)return My;zC=1;var e=ma(),t=e.Symbol;return My=t,My}var Ry,BC;function GW(){if(BC)return Ry;BC=1;var e=bf(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function s(l){var c=n.call(l,i),f=l[i];try{l[i]=void 0;var d=!0}catch{}var v=r.call(l);return d&&(c?l[i]=f:delete l[i]),v}return Ry=s,Ry}var Dy,qC;function VW(){if(qC)return Dy;qC=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Dy=n,Dy}var Py,UC;function Xa(){if(UC)return Py;UC=1;var e=bf(),t=GW(),n=VW(),r="[object Null]",i="[object Undefined]",s=e?e.toStringTag:void 0;function l(c){return c==null?c===void 0?i:r:s&&s in Object(c)?t(c):n(c)}return Py=l,Py}var ky,HC;function Qa(){if(HC)return ky;HC=1;function e(t){return t!=null&&typeof t=="object"}return ky=e,ky}var $y,FC;function Gl(){if(FC)return $y;FC=1;var e=Xa(),t=Qa(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return $y=r,$y}var Ly,GC;function bO(){if(GC)return Ly;GC=1;var e=$n(),t=Gl(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(s,l){if(e(s))return!1;var c=typeof s;return c=="number"||c=="symbol"||c=="boolean"||s==null||t(s)?!0:r.test(s)||!n.test(s)||l!=null&&s in Object(l)}return Ly=i,Ly}var Iy,VC;function Ui(){if(VC)return Iy;VC=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Iy=e,Iy}var zy,YC;function xO(){if(YC)return zy;YC=1;var e=Xa(),t=Ui(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function l(c){if(!t(c))return!1;var f=e(c);return f==r||f==i||f==n||f==s}return zy=l,zy}var By,WC;function YW(){if(WC)return By;WC=1;var e=ma(),t=e["__core-js_shared__"];return By=t,By}var qy,KC;function WW(){if(KC)return qy;KC=1;var e=YW(),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 qy=n,qy}var Uy,XC;function g4(){if(XC)return Uy;XC=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 Uy=n,Uy}var Hy,QC;function KW(){if(QC)return Hy;QC=1;var e=xO(),t=WW(),n=Ui(),r=g4(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,f=l.toString,d=c.hasOwnProperty,v=RegExp("^"+f.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(g){if(!n(g)||t(g))return!1;var x=e(g)?v:s;return x.test(r(g))}return Hy=m,Hy}var Fy,ZC;function XW(){if(ZC)return Fy;ZC=1;function e(t,n){return t==null?void 0:t[n]}return Fy=e,Fy}var Gy,JC;function Ho(){if(JC)return Gy;JC=1;var e=KW(),t=XW();function n(r,i){var s=t(r,i);return e(s)?s:void 0}return Gy=n,Gy}var Vy,eN;function lp(){if(eN)return Vy;eN=1;var e=Ho(),t=e(Object,"create");return Vy=t,Vy}var Yy,tN;function QW(){if(tN)return Yy;tN=1;var e=lp();function t(){this.__data__=e?e(null):{},this.size=0}return Yy=t,Yy}var Wy,nN;function ZW(){if(nN)return Wy;nN=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Wy=e,Wy}var Ky,rN;function JW(){if(rN)return Ky;rN=1;var e=lp(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(s){var l=this.__data__;if(e){var c=l[s];return c===t?void 0:c}return r.call(l,s)?l[s]:void 0}return Ky=i,Ky}var Xy,aN;function eK(){if(aN)return Xy;aN=1;var e=lp(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var s=this.__data__;return e?s[i]!==void 0:n.call(s,i)}return Xy=r,Xy}var Qy,iN;function tK(){if(iN)return Qy;iN=1;var e=lp(),t="__lodash_hash_undefined__";function n(r,i){var s=this.__data__;return this.size+=this.has(r)?0:1,s[r]=e&&i===void 0?t:i,this}return Qy=n,Qy}var Zy,oN;function nK(){if(oN)return Zy;oN=1;var e=QW(),t=ZW(),n=JW(),r=eK(),i=tK();function s(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,Zy=s,Zy}var Jy,sN;function rK(){if(sN)return Jy;sN=1;function e(){this.__data__=[],this.size=0}return Jy=e,Jy}var eb,lN;function wO(){if(lN)return eb;lN=1;function e(t,n){return t===n||t!==t&&n!==n}return eb=e,eb}var tb,uN;function up(){if(uN)return tb;uN=1;var e=wO();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return tb=t,tb}var nb,cN;function aK(){if(cN)return nb;cN=1;var e=up(),t=Array.prototype,n=t.splice;function r(i){var s=this.__data__,l=e(s,i);if(l<0)return!1;var c=s.length-1;return l==c?s.pop():n.call(s,l,1),--this.size,!0}return nb=r,nb}var rb,fN;function iK(){if(fN)return rb;fN=1;var e=up();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return rb=t,rb}var ab,dN;function oK(){if(dN)return ab;dN=1;var e=up();function t(n){return e(this.__data__,n)>-1}return ab=t,ab}var ib,hN;function sK(){if(hN)return ib;hN=1;var e=up();function t(n,r){var i=this.__data__,s=e(i,n);return s<0?(++this.size,i.push([n,r])):i[s][1]=r,this}return ib=t,ib}var ob,mN;function cp(){if(mN)return ob;mN=1;var e=rK(),t=aK(),n=iK(),r=oK(),i=sK();function s(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,ob=s,ob}var sb,pN;function SO(){if(pN)return sb;pN=1;var e=Ho(),t=ma(),n=e(t,"Map");return sb=n,sb}var lb,vN;function lK(){if(vN)return lb;vN=1;var e=nK(),t=cp(),n=SO();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return lb=r,lb}var ub,gN;function uK(){if(gN)return ub;gN=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return ub=e,ub}var cb,yN;function fp(){if(yN)return cb;yN=1;var e=uK();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return cb=t,cb}var fb,bN;function cK(){if(bN)return fb;bN=1;var e=fp();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return fb=t,fb}var db,xN;function fK(){if(xN)return db;xN=1;var e=fp();function t(n){return e(this,n).get(n)}return db=t,db}var hb,wN;function dK(){if(wN)return hb;wN=1;var e=fp();function t(n){return e(this,n).has(n)}return hb=t,hb}var mb,SN;function hK(){if(SN)return mb;SN=1;var e=fp();function t(n,r){var i=e(this,n),s=i.size;return i.set(n,r),this.size+=i.size==s?0:1,this}return mb=t,mb}var pb,ON;function OO(){if(ON)return pb;ON=1;var e=lK(),t=cK(),n=fK(),r=dK(),i=hK();function s(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,pb=s,pb}var vb,_N;function y4(){if(_N)return vb;_N=1;var e=OO(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var s=function(){var l=arguments,c=i?i.apply(this,l):l[0],f=s.cache;if(f.has(c))return f.get(c);var d=r.apply(this,l);return s.cache=f.set(c,d)||f,d};return s.cache=new(n.Cache||e),s}return n.Cache=e,vb=n,vb}var gb,jN;function mK(){if(jN)return gb;jN=1;var e=y4(),t=500;function n(r){var i=e(r,function(l){return s.size===t&&s.clear(),l}),s=i.cache;return i}return gb=n,gb}var yb,EN;function pK(){if(EN)return yb;EN=1;var e=mK(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(t,function(l,c,f,d){s.push(f?d.replace(n,"$1"):c||l)}),s});return yb=r,yb}var bb,AN;function _O(){if(AN)return bb;AN=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=Array(i);++r<i;)s[r]=n(t[r],r,t);return s}return bb=e,bb}var xb,TN;function vK(){if(TN)return xb;TN=1;var e=bf(),t=_O(),n=$n(),r=Gl(),i=e?e.prototype:void 0,s=i?i.toString:void 0;function l(c){if(typeof c=="string")return c;if(n(c))return t(c,l)+"";if(r(c))return s?s.call(c):"";var f=c+"";return f=="0"&&1/c==-1/0?"-0":f}return xb=l,xb}var wb,CN;function b4(){if(CN)return wb;CN=1;var e=vK();function t(n){return n==null?"":e(n)}return wb=t,wb}var Sb,NN;function x4(){if(NN)return Sb;NN=1;var e=$n(),t=bO(),n=pK(),r=b4();function i(s,l){return e(s)?s:t(s,l)?[s]:n(r(s))}return Sb=i,Sb}var Ob,MN;function dp(){if(MN)return Ob;MN=1;var e=Gl();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Ob=t,Ob}var _b,RN;function jO(){if(RN)return _b;RN=1;var e=x4(),t=dp();function n(r,i){i=e(i,r);for(var s=0,l=i.length;r!=null&&s<l;)r=r[t(i[s++])];return s&&s==l?r:void 0}return _b=n,_b}var jb,DN;function w4(){if(DN)return jb;DN=1;var e=jO();function t(n,r,i){var s=n==null?void 0:e(n,r);return s===void 0?i:s}return jb=t,jb}var gK=w4();const gr=gt(gK);var Eb,PN;function yK(){if(PN)return Eb;PN=1;function e(t){return t==null}return Eb=e,Eb}var bK=yK();const qe=gt(bK);var Ab,kN;function xK(){if(kN)return Ab;kN=1;var e=Xa(),t=$n(),n=Qa(),r="[object String]";function i(s){return typeof s=="string"||!t(s)&&n(s)&&e(s)==r}return Ab=i,Ab}var wK=xK();const Do=gt(wK);var SK=xO();const $e=gt(SK);var OK=Ui();const Vl=gt(OK);var Tb={exports:{}},it={};/**
|
|
298
|
+
* @license React
|
|
299
|
+
* react-is.production.min.js
|
|
300
|
+
*
|
|
301
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
302
|
+
*
|
|
303
|
+
* This source code is licensed under the MIT license found in the
|
|
304
|
+
* LICENSE file in the root directory of this source tree.
|
|
305
|
+
*/var $N;function _K(){if($N)return it;$N=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"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function S(w){if(typeof w=="object"&&w!==null){var j=w.$$typeof;switch(j){case e:switch(w=w.type,w){case n:case i:case r:case d:case v:return w;default:switch(w=w&&w.$$typeof,w){case c:case l:case f:case g:case m:case s:return w;default:return j}}case t:return j}}}return it.ContextConsumer=l,it.ContextProvider=s,it.Element=e,it.ForwardRef=f,it.Fragment=n,it.Lazy=g,it.Memo=m,it.Portal=t,it.Profiler=i,it.StrictMode=r,it.Suspense=d,it.SuspenseList=v,it.isAsyncMode=function(){return!1},it.isConcurrentMode=function(){return!1},it.isContextConsumer=function(w){return S(w)===l},it.isContextProvider=function(w){return S(w)===s},it.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},it.isForwardRef=function(w){return S(w)===f},it.isFragment=function(w){return S(w)===n},it.isLazy=function(w){return S(w)===g},it.isMemo=function(w){return S(w)===m},it.isPortal=function(w){return S(w)===t},it.isProfiler=function(w){return S(w)===i},it.isStrictMode=function(w){return S(w)===r},it.isSuspense=function(w){return S(w)===d},it.isSuspenseList=function(w){return S(w)===v},it.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===i||w===r||w===d||w===v||w===x||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===m||w.$$typeof===s||w.$$typeof===l||w.$$typeof===f||w.$$typeof===_||w.getModuleId!==void 0)},it.typeOf=S,it}var LN;function jK(){return LN||(LN=1,Tb.exports=_K()),Tb.exports}var EK=jK(),Cb,IN;function S4(){if(IN)return Cb;IN=1;var e=Xa(),t=Qa(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return Cb=r,Cb}var Nb,zN;function AK(){if(zN)return Nb;zN=1;var e=S4();function t(n){return e(n)&&n!=+n}return Nb=t,Nb}var TK=AK();const xf=gt(TK);var CK=S4();const NK=gt(CK);var Pr=function(t){return t===0?0:t>0?1:-1},So=function(t){return Do(t)&&t.indexOf("%")===t.length-1},ye=function(t){return NK(t)&&!xf(t)},MK=function(t){return qe(t)},Kt=function(t){return ye(t)||Do(t)},RK=0,wf=function(t){var n=++RK;return"".concat(t||"").concat(n)},Po=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(!ye(t)&&!Do(t))return r;var s;if(So(t)){var l=t.indexOf("%");s=n*parseFloat(t.slice(0,l))/100}else s=+t;return xf(s)&&(s=r),i&&s>n&&(s=n),s},Ni=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},DK=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},Rr=function(t,n){return ye(t)&&ye(n)?function(r){return t+r*(n-t)}:function(){return n}};function Lh(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):gr(r,t))===n})}var PK=function(t,n){return ye(t)&&ye(n)?t-n:Do(t)&&Do(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Qs(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 Xw(e){"@babel/helpers - typeof";return Xw=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},Xw(e)}var kK=["viewBox","children"],$K=["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"],BN=["points","pathLength"],Mb={svg:kK,polygon:BN,polyline:BN},EO=["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"],Ih=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(O.isValidElement(t)&&(r=t.props),!Vl(r))return null;var i={};return Object.keys(r).forEach(function(s){EO.includes(s)&&(i[s]=n||function(l){return r[s](r,l)})}),i},LK=function(t,n,r){return function(i){return t(n,r,i),null}},zh=function(t,n,r){if(!Vl(t)||Xw(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(s){var l=t[s];EO.includes(s)&&typeof l=="function"&&(i||(i={}),i[s]=LK(l,n,r))}),i},IK=["children"],zK=["children"];function qN(e,t){if(e==null)return{};var n=BK(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function BK(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 Qw(e){"@babel/helpers - typeof";return Qw=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},Qw(e)}var UN={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"},Ba=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},HN=null,Rb=null,AO=function e(t){if(t===HN&&Array.isArray(Rb))return Rb;var n=[];return O.Children.forEach(t,function(r){qe(r)||(EK.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Rb=n,HN=t,n};function yr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Ba(i)}):r=[Ba(t)],AO(e).forEach(function(i){var s=gr(i,"type.displayName")||gr(i,"type.name");r.indexOf(s)!==-1&&n.push(i)}),n}function Yn(e,t){var n=yr(e,t);return n&&n[0]}var FN=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!ye(r)||r<=0||!ye(i)||i<=0)},qK=["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"],UK=function(t){return t&&t.type&&Do(t.type)&&qK.indexOf(t.type)>=0},HK=function(t){return t&&Qw(t)==="object"&&"clipDot"in t},FK=function(t,n,r,i){var s,l=(s=Mb==null?void 0:Mb[i])!==null&&s!==void 0?s:[];return n.startsWith("data-")||!$e(t)&&(i&&l.includes(n)||$K.includes(n))||r&&EO.includes(n)},Ve=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(O.isValidElement(t)&&(i=t.props),!Vl(i))return null;var s={};return Object.keys(i).forEach(function(l){var c;FK((c=i)===null||c===void 0?void 0:c[l],l,n,r)&&(s[l]=i[l])}),s},Zw=function e(t,n){if(t===n)return!0;var r=O.Children.count(t);if(r!==O.Children.count(n))return!1;if(r===0)return!0;if(r===1)return GN(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var s=t[i],l=n[i];if(Array.isArray(s)||Array.isArray(l)){if(!e(s,l))return!1}else if(!GN(s,l))return!1}return!0},GN=function(t,n){if(qe(t)&&qe(n))return!0;if(!qe(t)&&!qe(n)){var r=t.props||{},i=r.children,s=qN(r,IK),l=n.props||{},c=l.children,f=qN(l,zK);return i&&c?Qs(s,f)&&Zw(i,c):!i&&!c?Qs(s,f):!1}return!1},VN=function(t,n){var r=[],i={};return AO(t).forEach(function(s,l){if(UK(s))r.push(s);else if(s){var c=Ba(s.type),f=n[c]||{},d=f.handler,v=f.once;if(d&&(!v||!i[c])){var m=d(s,c,l);r.push(m),i[c]=!0}}}),r},GK=function(t){var n=t&&t.type;return n&&UN[n]?UN[n]:null},VK=function(t,n){return AO(n).indexOf(t)},YK=["children","width","height","viewBox","className","style","title","desc"];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 WK(e,t){if(e==null)return{};var n=KK(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KK(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function e1(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,s=e.className,l=e.style,c=e.title,f=e.desc,d=WK(e,YK),v=i||{width:n,height:r,x:0,y:0},m=Ye("recharts-surface",s);return L.createElement("svg",Jw({},Ve(d,!0,"svg"),{className:m,width:n,height:r,style:l,viewBox:"".concat(v.x," ").concat(v.y," ").concat(v.width," ").concat(v.height)}),L.createElement("title",null,c),L.createElement("desc",null,f),t)}var XK=["children","className"];function t1(){return t1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t1.apply(this,arguments)}function QK(e,t){if(e==null)return{};var n=ZK(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ZK(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 Lt=L.forwardRef(function(e,t){var n=e.children,r=e.className,i=QK(e,XK),s=Ye("recharts-layer",r);return L.createElement("g",t1({className:s},Ve(i,!0),{ref:t}),n)}),qa=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s]},Db,YN;function JK(){if(YN)return Db;YN=1;function e(t,n,r){var i=-1,s=t.length;n<0&&(n=-n>s?0:s+n),r=r>s?s:r,r<0&&(r+=s),s=n>r?0:r-n>>>0,n>>>=0;for(var l=Array(s);++i<s;)l[i]=t[i+n];return l}return Db=e,Db}var Pb,WN;function eX(){if(WN)return Pb;WN=1;var e=JK();function t(n,r,i){var s=n.length;return i=i===void 0?s:i,!r&&i>=s?n:e(n,r,i)}return Pb=t,Pb}var kb,KN;function O4(){if(KN)return kb;KN=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,s="\\ufe0e\\ufe0f",l="\\u200d",c=RegExp("["+l+e+i+s+"]");function f(d){return c.test(d)}return kb=f,kb}var $b,XN;function tX(){if(XN)return $b;XN=1;function e(t){return t.split("")}return $b=e,$b}var Lb,QN;function nX(){if(QN)return Lb;QN=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,s="\\ufe0e\\ufe0f",l="["+e+"]",c="["+i+"]",f="\\ud83c[\\udffb-\\udfff]",d="(?:"+c+"|"+f+")",v="[^"+e+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",_=d+"?",S="["+s+"]?",w="(?:"+x+"(?:"+[v,m,g].join("|")+")"+S+_+")*",j=S+_+w,E="(?:"+[v+c+"?",c,m,g,l].join("|")+")",A=RegExp(f+"(?="+f+")|"+E+j,"g");function M(T){return T.match(A)||[]}return Lb=M,Lb}var Ib,ZN;function rX(){if(ZN)return Ib;ZN=1;var e=tX(),t=O4(),n=nX();function r(i){return t(i)?n(i):e(i)}return Ib=r,Ib}var zb,JN;function aX(){if(JN)return zb;JN=1;var e=eX(),t=O4(),n=rX(),r=b4();function i(s){return function(l){l=r(l);var c=t(l)?n(l):void 0,f=c?c[0]:l.charAt(0),d=c?e(c,1).join(""):l.slice(1);return f[s]()+d}}return zb=i,zb}var Bb,eM;function iX(){if(eM)return Bb;eM=1;var e=aX(),t=e("toUpperCase");return Bb=t,Bb}var oX=iX();const hp=gt(oX);function wt(e){return function(){return e}}const _4=Math.cos,Bh=Math.sin,Ur=Math.sqrt,qh=Math.PI,mp=2*qh,n1=Math.PI,r1=2*n1,xo=1e-6,sX=r1-xo;function j4(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function lX(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return j4;const n=10**t;return function(r){this._+=r[0];for(let i=1,s=r.length;i<s;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class uX{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?j4:lX(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,s,l){this._append`C${+t},${+n},${+r},${+i},${this._x1=+s},${this._y1=+l}`}arcTo(t,n,r,i,s){if(t=+t,n=+n,r=+r,i=+i,s=+s,s<0)throw new Error(`negative radius: ${s}`);let l=this._x1,c=this._y1,f=r-t,d=i-n,v=l-t,m=c-n,g=v*v+m*m;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(g>xo)if(!(Math.abs(m*f-d*v)>xo)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let x=r-l,_=i-c,S=f*f+d*d,w=x*x+_*_,j=Math.sqrt(S),E=Math.sqrt(g),A=s*Math.tan((n1-Math.acos((S+g-w)/(2*j*E)))/2),M=A/E,T=A/j;Math.abs(M-1)>xo&&this._append`L${t+M*v},${n+M*m}`,this._append`A${s},${s},0,0,${+(m*x>v*_)},${this._x1=t+T*f},${this._y1=n+T*d}`}}arc(t,n,r,i,s,l){if(t=+t,n=+n,r=+r,l=!!l,r<0)throw new Error(`negative radius: ${r}`);let c=r*Math.cos(i),f=r*Math.sin(i),d=t+c,v=n+f,m=1^l,g=l?i-s:s-i;this._x1===null?this._append`M${d},${v}`:(Math.abs(this._x1-d)>xo||Math.abs(this._y1-v)>xo)&&this._append`L${d},${v}`,r&&(g<0&&(g=g%r1+r1),g>sX?this._append`A${r},${r},0,1,${m},${t-c},${n-f}A${r},${r},0,1,${m},${this._x1=d},${this._y1=v}`:g>xo&&this._append`A${r},${r},0,${+(g>=n1)},${m},${this._x1=t+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}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 TO(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 uX(t)}function CO(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function E4(e){this._context=e}E4.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function pp(e){return new E4(e)}function A4(e){return e[0]}function T4(e){return e[1]}function C4(e,t){var n=wt(!0),r=null,i=pp,s=null,l=TO(c);e=typeof e=="function"?e:e===void 0?A4:wt(e),t=typeof t=="function"?t:t===void 0?T4:wt(t);function c(f){var d,v=(f=CO(f)).length,m,g=!1,x;for(r==null&&(s=i(x=l())),d=0;d<=v;++d)!(d<v&&n(m=f[d],d,f))===g&&((g=!g)?s.lineStart():s.lineEnd()),g&&s.point(+e(m,d,f),+t(m,d,f));if(x)return s=null,x+""||null}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:wt(+f),c):e},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:wt(+f),c):t},c.defined=function(f){return arguments.length?(n=typeof f=="function"?f:wt(!!f),c):n},c.curve=function(f){return arguments.length?(i=f,r!=null&&(s=i(r)),c):i},c.context=function(f){return arguments.length?(f==null?r=s=null:s=i(r=f),c):r},c}function Jd(e,t,n){var r=null,i=wt(!0),s=null,l=pp,c=null,f=TO(d);e=typeof e=="function"?e:e===void 0?A4:wt(+e),t=typeof t=="function"?t:wt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?T4:wt(+n);function d(m){var g,x,_,S=(m=CO(m)).length,w,j=!1,E,A=new Array(S),M=new Array(S);for(s==null&&(c=l(E=f())),g=0;g<=S;++g){if(!(g<S&&i(w=m[g],g,m))===j)if(j=!j)x=g,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),_=g-1;_>=x;--_)c.point(A[_],M[_]);c.lineEnd(),c.areaEnd()}j&&(A[g]=+e(w,g,m),M[g]=+t(w,g,m),c.point(r?+r(w,g,m):A[g],n?+n(w,g,m):M[g]))}if(E)return c=null,E+""||null}function v(){return C4().defined(i).curve(l).context(s)}return d.x=function(m){return arguments.length?(e=typeof m=="function"?m:wt(+m),r=null,d):e},d.x0=function(m){return arguments.length?(e=typeof m=="function"?m:wt(+m),d):e},d.x1=function(m){return arguments.length?(r=m==null?null:typeof m=="function"?m:wt(+m),d):r},d.y=function(m){return arguments.length?(t=typeof m=="function"?m:wt(+m),n=null,d):t},d.y0=function(m){return arguments.length?(t=typeof m=="function"?m:wt(+m),d):t},d.y1=function(m){return arguments.length?(n=m==null?null:typeof m=="function"?m:wt(+m),d):n},d.lineX0=d.lineY0=function(){return v().x(e).y(t)},d.lineY1=function(){return v().x(e).y(n)},d.lineX1=function(){return v().x(r).y(t)},d.defined=function(m){return arguments.length?(i=typeof m=="function"?m:wt(!!m),d):i},d.curve=function(m){return arguments.length?(l=m,s!=null&&(c=l(s)),d):l},d.context=function(m){return arguments.length?(m==null?s=c=null:c=l(s=m),d):s},d}class N4{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 cX(e){return new N4(e,!0)}function fX(e){return new N4(e,!1)}const NO={draw(e,t){const n=Ur(t/qh);e.moveTo(n,0),e.arc(0,0,n,0,mp)}},dX={draw(e,t){const n=Ur(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()}},M4=Ur(1/3),hX=M4*2,mX={draw(e,t){const n=Ur(t/hX),r=n*M4;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},pX={draw(e,t){const n=Ur(t),r=-n/2;e.rect(r,r,n,n)}},vX=.8908130915292852,R4=Bh(qh/10)/Bh(7*qh/10),gX=Bh(mp/10)*R4,yX=-_4(mp/10)*R4,bX={draw(e,t){const n=Ur(t*vX),r=gX*n,i=yX*n;e.moveTo(0,-n),e.lineTo(r,i);for(let s=1;s<5;++s){const l=mp*s/5,c=_4(l),f=Bh(l);e.lineTo(f*n,-c*n),e.lineTo(c*r-f*i,f*r+c*i)}e.closePath()}},qb=Ur(3),xX={draw(e,t){const n=-Ur(t/(qb*3));e.moveTo(0,n*2),e.lineTo(-qb*n,-n),e.lineTo(qb*n,-n),e.closePath()}},fr=-.5,dr=Ur(3)/2,a1=1/Ur(12),wX=(a1/2+1)*3,SX={draw(e,t){const n=Ur(t/wX),r=n/2,i=n*a1,s=r,l=n*a1+n,c=-s,f=l;e.moveTo(r,i),e.lineTo(s,l),e.lineTo(c,f),e.lineTo(fr*r-dr*i,dr*r+fr*i),e.lineTo(fr*s-dr*l,dr*s+fr*l),e.lineTo(fr*c-dr*f,dr*c+fr*f),e.lineTo(fr*r+dr*i,fr*i-dr*r),e.lineTo(fr*s+dr*l,fr*l-dr*s),e.lineTo(fr*c+dr*f,fr*f-dr*c),e.closePath()}};function OX(e,t){let n=null,r=TO(i);e=typeof e=="function"?e:wt(e||NO),t=typeof t=="function"?t:wt(t===void 0?64:+t);function i(){let s;if(n||(n=s=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),s)return n=null,s+""||null}return i.type=function(s){return arguments.length?(e=typeof s=="function"?s:wt(s),i):e},i.size=function(s){return arguments.length?(t=typeof s=="function"?s:wt(+s),i):t},i.context=function(s){return arguments.length?(n=s??null,i):n},i}function Uh(){}function Hh(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 D4(e){this._context=e}D4.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:Hh(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:Hh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function _X(e){return new D4(e)}function P4(e){this._context=e}P4.prototype={areaStart:Uh,areaEnd:Uh,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:Hh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jX(e){return new P4(e)}function k4(e){this._context=e}k4.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:Hh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function EX(e){return new k4(e)}function $4(e){this._context=e}$4.prototype={areaStart:Uh,areaEnd:Uh,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 AX(e){return new $4(e)}function tM(e){return e<0?-1:1}function nM(e,t,n){var r=e._x1-e._x0,i=t-e._x1,s=(e._y1-e._y0)/(r||i<0&&-0),l=(n-e._y1)/(i||r<0&&-0),c=(s*i+l*r)/(r+i);return(tM(s)+tM(l))*Math.min(Math.abs(s),Math.abs(l),.5*Math.abs(c))||0}function rM(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Ub(e,t,n){var r=e._x0,i=e._y0,s=e._x1,l=e._y1,c=(s-r)/3;e._context.bezierCurveTo(r+c,i+c*t,s-c,l-c*n,s,l)}function Fh(e){this._context=e}Fh.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:Ub(this,this._t0,rM(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,Ub(this,rM(this,n=nM(this,e,t)),n);break;default:Ub(this,this._t0,n=nM(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function L4(e){this._context=new I4(e)}(L4.prototype=Object.create(Fh.prototype)).point=function(e,t){Fh.prototype.point.call(this,t,e)};function I4(e){this._context=e}I4.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,s){this._context.bezierCurveTo(t,e,r,n,s,i)}};function TX(e){return new Fh(e)}function CX(e){return new L4(e)}function z4(e){this._context=e}z4.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=aM(e),i=aM(t),s=0,l=1;l<n;++s,++l)this._context.bezierCurveTo(r[0][s],i[0][s],r[1][s],i[1][s],e[l],t[l]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function aM(e){var t,n=e.length-1,r,i=new Array(n),s=new Array(n),l=new Array(n);for(i[0]=0,s[0]=2,l[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,s[t]=4,l[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,s[n-1]=7,l[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/s[t-1],s[t]-=r,l[t]-=r*l[t-1];for(i[n-1]=l[n-1]/s[n-1],t=n-2;t>=0;--t)i[t]=(l[t]-i[t+1])/s[t];for(s[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)s[t]=2*e[t+1]-i[t+1];return[i,s]}function NX(e){return new z4(e)}function vp(e,t){this._context=e,this._t=t}vp.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 MX(e){return new vp(e,.5)}function RX(e){return new vp(e,0)}function DX(e){return new vp(e,1)}function cl(e,t){if((l=e.length)>1)for(var n=1,r,i,s=e[t[0]],l,c=s.length;n<l;++n)for(i=s,s=e[t[n]],r=0;r<c;++r)s[r][1]+=s[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function i1(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function PX(e,t){return e[t]}function kX(e){const t=[];return t.key=e,t}function $X(){var e=wt([]),t=i1,n=cl,r=PX;function i(s){var l=Array.from(e.apply(this,arguments),kX),c,f=l.length,d=-1,v;for(const m of s)for(c=0,++d;c<f;++c)(l[c][d]=[0,+r(m,l[c].key,d,s)]).data=m;for(c=0,v=CO(t(l));c<f;++c)l[v[c]].index=c;return n(l,v),l}return i.keys=function(s){return arguments.length?(e=typeof s=="function"?s:wt(Array.from(s)),i):e},i.value=function(s){return arguments.length?(r=typeof s=="function"?s:wt(+s),i):r},i.order=function(s){return arguments.length?(t=s==null?i1:typeof s=="function"?s:wt(Array.from(s)),i):t},i.offset=function(s){return arguments.length?(n=s??cl,i):n},i}function LX(e,t){if((r=e.length)>0){for(var n,r,i=0,s=e[0].length,l;i<s;++i){for(l=n=0;n<r;++n)l+=e[n][i][1]||0;if(l)for(n=0;n<r;++n)e[n][i][1]/=l}cl(e,t)}}function IX(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,s=r.length;n<s;++n){for(var l=0,c=0;l<i;++l)c+=e[l][n][1]||0;r[n][1]+=r[n][0]=-c/2}cl(e,t)}}function zX(e,t){if(!(!((l=e.length)>0)||!((s=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,s,l;r<s;++r){for(var c=0,f=0,d=0;c<l;++c){for(var v=e[t[c]],m=v[r][1]||0,g=v[r-1][1]||0,x=(m-g)/2,_=0;_<c;++_){var S=e[t[_]],w=S[r][1]||0,j=S[r-1][1]||0;x+=w-j}f+=m,d+=x*m}i[r-1][1]+=i[r-1][0]=n,f&&(n-=d/f)}i[r-1][1]+=i[r-1][0]=n,cl(e,t)}}function _c(e){"@babel/helpers - typeof";return _c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_c(e)}var BX=["type","size","sizeType"];function o1(){return o1=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},o1.apply(this,arguments)}function iM(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 oM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iM(Object(n),!0).forEach(function(r){qX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qX(e,t,n){return t=UX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UX(e){var t=HX(e,"string");return _c(t)=="symbol"?t:t+""}function HX(e,t){if(_c(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FX(e,t){if(e==null)return{};var n=GX(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function GX(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 B4={symbolCircle:NO,symbolCross:dX,symbolDiamond:mX,symbolSquare:pX,symbolStar:bX,symbolTriangle:xX,symbolWye:SX},VX=Math.PI/180,YX=function(t){var n="symbol".concat(hp(t));return B4[n]||NO},WX=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*VX;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}},KX=function(t,n){B4["symbol".concat(hp(t))]=n},MO=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,s=i===void 0?64:i,l=t.sizeType,c=l===void 0?"area":l,f=FX(t,BX),d=oM(oM({},f),{},{type:r,size:s,sizeType:c}),v=function(){var w=YX(r),j=OX().type(w).size(WX(s,c,r));return j()},m=d.className,g=d.cx,x=d.cy,_=Ve(d,!0);return g===+g&&x===+x&&s===+s?L.createElement("path",o1({},_,{className:Ye("recharts-symbols",m),transform:"translate(".concat(g,", ").concat(x,")"),d:v()})):null};MO.registerSymbol=KX;function fl(e){"@babel/helpers - typeof";return fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(e)}function s1(){return s1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s1.apply(this,arguments)}function sM(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 XX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sM(Object(n),!0).forEach(function(r){jc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,U4(r.key),r)}}function JX(e,t,n){return t&&ZX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function eQ(e,t,n){return t=Gh(t),tQ(e,q4()?Reflect.construct(t,n||[],Gh(e).constructor):t.apply(e,n))}function tQ(e,t){if(t&&(fl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nQ(e)}function nQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q4=function(){return!!e})()}function Gh(e){return Gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gh(e)}function rQ(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 jc(e,t,n){return t=U4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U4(e){var t=aQ(e,"string");return fl(t)=="symbol"?t:t+""}function aQ(e,t){if(fl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hr=32,RO=(function(e){function t(){return QX(this,t),eQ(this,t,arguments)}return rQ(t,e),JX(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,s=hr/2,l=hr/6,c=hr/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:s,x2:hr,y2:s,className:"recharts-legend-icon"});if(r.type==="line")return L.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(s,"h").concat(c,`
|
|
306
|
+
A`).concat(l,",").concat(l,",0,1,1,").concat(2*c,",").concat(s,`
|
|
307
|
+
H`).concat(hr,"M").concat(2*c,",").concat(s,`
|
|
308
|
+
A`).concat(l,",").concat(l,",0,1,1,").concat(c,",").concat(s),className:"recharts-legend-icon"});if(r.type==="rect")return L.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(hr/8,"h").concat(hr,"v").concat(hr*3/4,"h").concat(-hr,"z"),className:"recharts-legend-icon"});if(L.isValidElement(r.legendIcon)){var d=XX({},r);return delete d.legendIcon,L.cloneElement(r.legendIcon,d)}return L.createElement(MO,{fill:f,cx:s,cy:s,size:hr,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,s=i.payload,l=i.iconSize,c=i.layout,f=i.formatter,d=i.inactiveColor,v={x:0,y:0,width:hr,height:hr},m={display:c==="horizontal"?"inline-block":"block",marginRight:10},g={display:"inline-block",verticalAlign:"middle",marginRight:4};return s.map(function(x,_){var S=x.formatter||f,w=Ye(jc(jc({"recharts-legend-item":!0},"legend-item-".concat(_),!0),"inactive",x.inactive));if(x.type==="none")return null;var j=$e(x.value)?null:x.value;qa(!$e(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 E=x.inactive?d:x.color;return L.createElement("li",s1({className:w,style:m,key:"legend-item-".concat(_)},zh(r.props,x,_)),L.createElement(e1,{width:l,height:l,viewBox:v,style:g},r.renderIcon(x)),L.createElement("span",{className:"recharts-legend-item-text",style:{color:E}},S?S(j,x,_):j))})}},{key:"render",value:function(){var r=this.props,i=r.payload,s=r.layout,l=r.align;if(!i||!i.length)return null;var c={padding:0,margin:0,textAlign:s==="horizontal"?l:"left"};return L.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}])})(O.PureComponent);jc(RO,"displayName","Legend");jc(RO,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Hb,lM;function iQ(){if(lM)return Hb;lM=1;var e=cp();function t(){this.__data__=new e,this.size=0}return Hb=t,Hb}var Fb,uM;function oQ(){if(uM)return Fb;uM=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return Fb=e,Fb}var Gb,cM;function sQ(){if(cM)return Gb;cM=1;function e(t){return this.__data__.get(t)}return Gb=e,Gb}var Vb,fM;function lQ(){if(fM)return Vb;fM=1;function e(t){return this.__data__.has(t)}return Vb=e,Vb}var Yb,dM;function uQ(){if(dM)return Yb;dM=1;var e=cp(),t=SO(),n=OO(),r=200;function i(s,l){var c=this.__data__;if(c instanceof e){var f=c.__data__;if(!t||f.length<r-1)return f.push([s,l]),this.size=++c.size,this;c=this.__data__=new n(f)}return c.set(s,l),this.size=c.size,this}return Yb=i,Yb}var Wb,hM;function H4(){if(hM)return Wb;hM=1;var e=cp(),t=iQ(),n=oQ(),r=sQ(),i=lQ(),s=uQ();function l(c){var f=this.__data__=new e(c);this.size=f.size}return l.prototype.clear=t,l.prototype.delete=n,l.prototype.get=r,l.prototype.has=i,l.prototype.set=s,Wb=l,Wb}var Kb,mM;function cQ(){if(mM)return Kb;mM=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Kb=t,Kb}var Xb,pM;function fQ(){if(pM)return Xb;pM=1;function e(t){return this.__data__.has(t)}return Xb=e,Xb}var Qb,vM;function F4(){if(vM)return Qb;vM=1;var e=OO(),t=cQ(),n=fQ();function r(i){var s=-1,l=i==null?0:i.length;for(this.__data__=new e;++s<l;)this.add(i[s])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Qb=r,Qb}var Zb,gM;function G4(){if(gM)return Zb;gM=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 Zb=e,Zb}var Jb,yM;function V4(){if(yM)return Jb;yM=1;function e(t,n){return t.has(n)}return Jb=e,Jb}var e0,bM;function Y4(){if(bM)return e0;bM=1;var e=F4(),t=G4(),n=V4(),r=1,i=2;function s(l,c,f,d,v,m){var g=f&r,x=l.length,_=c.length;if(x!=_&&!(g&&_>x))return!1;var S=m.get(l),w=m.get(c);if(S&&w)return S==c&&w==l;var j=-1,E=!0,A=f&i?new e:void 0;for(m.set(l,c),m.set(c,l);++j<x;){var M=l[j],T=c[j];if(d)var N=g?d(T,M,j,c,l,m):d(M,T,j,l,c,m);if(N!==void 0){if(N)continue;E=!1;break}if(A){if(!t(c,function(R,D){if(!n(A,D)&&(M===R||v(M,R,f,d,m)))return A.push(D)})){E=!1;break}}else if(!(M===T||v(M,T,f,d,m))){E=!1;break}}return m.delete(l),m.delete(c),E}return e0=s,e0}var t0,xM;function dQ(){if(xM)return t0;xM=1;var e=ma(),t=e.Uint8Array;return t0=t,t0}var n0,wM;function hQ(){if(wM)return n0;wM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,s){r[++n]=[s,i]}),r}return n0=e,n0}var r0,SM;function DO(){if(SM)return r0;SM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return r0=e,r0}var a0,OM;function mQ(){if(OM)return a0;OM=1;var e=bf(),t=dQ(),n=wO(),r=Y4(),i=hQ(),s=DO(),l=1,c=2,f="[object Boolean]",d="[object Date]",v="[object Error]",m="[object Map]",g="[object Number]",x="[object RegExp]",_="[object Set]",S="[object String]",w="[object Symbol]",j="[object ArrayBuffer]",E="[object DataView]",A=e?e.prototype:void 0,M=A?A.valueOf:void 0;function T(N,R,D,I,Y,z,H){switch(D){case E:if(N.byteLength!=R.byteLength||N.byteOffset!=R.byteOffset)return!1;N=N.buffer,R=R.buffer;case j:return!(N.byteLength!=R.byteLength||!z(new t(N),new t(R)));case f:case d:case g:return n(+N,+R);case v:return N.name==R.name&&N.message==R.message;case x:case S:return N==R+"";case m:var V=i;case _:var Q=I&l;if(V||(V=s),N.size!=R.size&&!Q)return!1;var K=H.get(N);if(K)return K==R;I|=c,H.set(N,R);var k=r(V(N),V(R),I,Y,z,H);return H.delete(N),k;case w:if(M)return M.call(N)==M.call(R)}return!1}return a0=T,a0}var i0,_M;function W4(){if(_M)return i0;_M=1;function e(t,n){for(var r=-1,i=n.length,s=t.length;++r<i;)t[s+r]=n[r];return t}return i0=e,i0}var o0,jM;function pQ(){if(jM)return o0;jM=1;var e=W4(),t=$n();function n(r,i,s){var l=i(r);return t(r)?l:e(l,s(r))}return o0=n,o0}var s0,EM;function vQ(){if(EM)return s0;EM=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=0,l=[];++r<i;){var c=t[r];n(c,r,t)&&(l[s++]=c)}return l}return s0=e,s0}var l0,AM;function gQ(){if(AM)return l0;AM=1;function e(){return[]}return l0=e,l0}var u0,TM;function yQ(){if(TM)return u0;TM=1;var e=vQ(),t=gQ(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),e(i(l),function(c){return r.call(l,c)}))}:t;return u0=s,u0}var c0,CM;function bQ(){if(CM)return c0;CM=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return c0=e,c0}var f0,NM;function xQ(){if(NM)return f0;NM=1;var e=Xa(),t=Qa(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return f0=r,f0}var d0,MM;function PO(){if(MM)return d0;MM=1;var e=xQ(),t=Qa(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(l){return t(l)&&r.call(l,"callee")&&!i.call(l,"callee")};return d0=s,d0}var sc={exports:{}},h0,RM;function wQ(){if(RM)return h0;RM=1;function e(){return!1}return h0=e,h0}sc.exports;var DM;function K4(){return DM||(DM=1,(function(e,t){var n=ma(),r=wQ(),i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===i,c=l?n.Buffer:void 0,f=c?c.isBuffer:void 0,d=f||r;e.exports=d})(sc,sc.exports)),sc.exports}var m0,PM;function kO(){if(PM)return m0;PM=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var s=typeof r;return i=i??e,!!i&&(s=="number"||s!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return m0=n,m0}var p0,kM;function $O(){if(kM)return p0;kM=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return p0=t,p0}var v0,$M;function SQ(){if($M)return v0;$M=1;var e=Xa(),t=$O(),n=Qa(),r="[object Arguments]",i="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",v="[object Number]",m="[object Object]",g="[object RegExp]",x="[object Set]",_="[object String]",S="[object WeakMap]",w="[object ArrayBuffer]",j="[object DataView]",E="[object Float32Array]",A="[object Float64Array]",M="[object Int8Array]",T="[object Int16Array]",N="[object Int32Array]",R="[object Uint8Array]",D="[object Uint8ClampedArray]",I="[object Uint16Array]",Y="[object Uint32Array]",z={};z[E]=z[A]=z[M]=z[T]=z[N]=z[R]=z[D]=z[I]=z[Y]=!0,z[r]=z[i]=z[w]=z[s]=z[j]=z[l]=z[c]=z[f]=z[d]=z[v]=z[m]=z[g]=z[x]=z[_]=z[S]=!1;function H(V){return n(V)&&t(V.length)&&!!z[e(V)]}return v0=H,v0}var g0,LM;function X4(){if(LM)return g0;LM=1;function e(t){return function(n){return t(n)}}return g0=e,g0}var lc={exports:{}};lc.exports;var IM;function OQ(){return IM||(IM=1,(function(e,t){var n=v4(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===r,l=s&&n.process,c=(function(){try{var f=i&&i.require&&i.require("util").types;return f||l&&l.binding&&l.binding("util")}catch{}})();e.exports=c})(lc,lc.exports)),lc.exports}var y0,zM;function Q4(){if(zM)return y0;zM=1;var e=SQ(),t=X4(),n=OQ(),r=n&&n.isTypedArray,i=r?t(r):e;return y0=i,y0}var b0,BM;function _Q(){if(BM)return b0;BM=1;var e=bQ(),t=PO(),n=$n(),r=K4(),i=kO(),s=Q4(),l=Object.prototype,c=l.hasOwnProperty;function f(d,v){var m=n(d),g=!m&&t(d),x=!m&&!g&&r(d),_=!m&&!g&&!x&&s(d),S=m||g||x||_,w=S?e(d.length,String):[],j=w.length;for(var E in d)(v||c.call(d,E))&&!(S&&(E=="length"||x&&(E=="offset"||E=="parent")||_&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||i(E,j)))&&w.push(E);return w}return b0=f,b0}var x0,qM;function jQ(){if(qM)return x0;qM=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return x0=t,x0}var w0,UM;function Z4(){if(UM)return w0;UM=1;function e(t,n){return function(r){return t(n(r))}}return w0=e,w0}var S0,HM;function EQ(){if(HM)return S0;HM=1;var e=Z4(),t=e(Object.keys,Object);return S0=t,S0}var O0,FM;function AQ(){if(FM)return O0;FM=1;var e=jQ(),t=EQ(),n=Object.prototype,r=n.hasOwnProperty;function i(s){if(!e(s))return t(s);var l=[];for(var c in Object(s))r.call(s,c)&&c!="constructor"&&l.push(c);return l}return O0=i,O0}var _0,GM;function Sf(){if(GM)return _0;GM=1;var e=xO(),t=$O();function n(r){return r!=null&&t(r.length)&&!e(r)}return _0=n,_0}var j0,VM;function gp(){if(VM)return j0;VM=1;var e=_Q(),t=AQ(),n=Sf();function r(i){return n(i)?e(i):t(i)}return j0=r,j0}var E0,YM;function TQ(){if(YM)return E0;YM=1;var e=pQ(),t=yQ(),n=gp();function r(i){return e(i,n,t)}return E0=r,E0}var A0,WM;function CQ(){if(WM)return A0;WM=1;var e=TQ(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(s,l,c,f,d,v){var m=c&t,g=e(s),x=g.length,_=e(l),S=_.length;if(x!=S&&!m)return!1;for(var w=x;w--;){var j=g[w];if(!(m?j in l:r.call(l,j)))return!1}var E=v.get(s),A=v.get(l);if(E&&A)return E==l&&A==s;var M=!0;v.set(s,l),v.set(l,s);for(var T=m;++w<x;){j=g[w];var N=s[j],R=l[j];if(f)var D=m?f(R,N,j,l,s,v):f(N,R,j,s,l,v);if(!(D===void 0?N===R||d(N,R,c,f,v):D)){M=!1;break}T||(T=j=="constructor")}if(M&&!T){var I=s.constructor,Y=l.constructor;I!=Y&&"constructor"in s&&"constructor"in l&&!(typeof I=="function"&&I instanceof I&&typeof Y=="function"&&Y instanceof Y)&&(M=!1)}return v.delete(s),v.delete(l),M}return A0=i,A0}var T0,KM;function NQ(){if(KM)return T0;KM=1;var e=Ho(),t=ma(),n=e(t,"DataView");return T0=n,T0}var C0,XM;function MQ(){if(XM)return C0;XM=1;var e=Ho(),t=ma(),n=e(t,"Promise");return C0=n,C0}var N0,QM;function J4(){if(QM)return N0;QM=1;var e=Ho(),t=ma(),n=e(t,"Set");return N0=n,N0}var M0,ZM;function RQ(){if(ZM)return M0;ZM=1;var e=Ho(),t=ma(),n=e(t,"WeakMap");return M0=n,M0}var R0,JM;function DQ(){if(JM)return R0;JM=1;var e=NQ(),t=SO(),n=MQ(),r=J4(),i=RQ(),s=Xa(),l=g4(),c="[object Map]",f="[object Object]",d="[object Promise]",v="[object Set]",m="[object WeakMap]",g="[object DataView]",x=l(e),_=l(t),S=l(n),w=l(r),j=l(i),E=s;return(e&&E(new e(new ArrayBuffer(1)))!=g||t&&E(new t)!=c||n&&E(n.resolve())!=d||r&&E(new r)!=v||i&&E(new i)!=m)&&(E=function(A){var M=s(A),T=M==f?A.constructor:void 0,N=T?l(T):"";if(N)switch(N){case x:return g;case _:return c;case S:return d;case w:return v;case j:return m}return M}),R0=E,R0}var D0,e2;function PQ(){if(e2)return D0;e2=1;var e=H4(),t=Y4(),n=mQ(),r=CQ(),i=DQ(),s=$n(),l=K4(),c=Q4(),f=1,d="[object Arguments]",v="[object Array]",m="[object Object]",g=Object.prototype,x=g.hasOwnProperty;function _(S,w,j,E,A,M){var T=s(S),N=s(w),R=T?v:i(S),D=N?v:i(w);R=R==d?m:R,D=D==d?m:D;var I=R==m,Y=D==m,z=R==D;if(z&&l(S)){if(!l(w))return!1;T=!0,I=!1}if(z&&!I)return M||(M=new e),T||c(S)?t(S,w,j,E,A,M):n(S,w,R,j,E,A,M);if(!(j&f)){var H=I&&x.call(S,"__wrapped__"),V=Y&&x.call(w,"__wrapped__");if(H||V){var Q=H?S.value():S,K=V?w.value():w;return M||(M=new e),A(Q,K,j,E,M)}}return z?(M||(M=new e),r(S,w,j,E,A,M)):!1}return D0=_,D0}var P0,t2;function LO(){if(t2)return P0;t2=1;var e=PQ(),t=Qa();function n(r,i,s,l,c){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,s,l,n,c)}return P0=n,P0}var k0,n2;function kQ(){if(n2)return k0;n2=1;var e=H4(),t=LO(),n=1,r=2;function i(s,l,c,f){var d=c.length,v=d,m=!f;if(s==null)return!v;for(s=Object(s);d--;){var g=c[d];if(m&&g[2]?g[1]!==s[g[0]]:!(g[0]in s))return!1}for(;++d<v;){g=c[d];var x=g[0],_=s[x],S=g[1];if(m&&g[2]){if(_===void 0&&!(x in s))return!1}else{var w=new e;if(f)var j=f(_,S,x,s,l,w);if(!(j===void 0?t(S,_,n|r,f,w):j))return!1}}return!0}return k0=i,k0}var $0,r2;function e3(){if(r2)return $0;r2=1;var e=Ui();function t(n){return n===n&&!e(n)}return $0=t,$0}var L0,a2;function $Q(){if(a2)return L0;a2=1;var e=e3(),t=gp();function n(r){for(var i=t(r),s=i.length;s--;){var l=i[s],c=r[l];i[s]=[l,c,e(c)]}return i}return L0=n,L0}var I0,i2;function t3(){if(i2)return I0;i2=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return I0=e,I0}var z0,o2;function LQ(){if(o2)return z0;o2=1;var e=kQ(),t=$Q(),n=t3();function r(i){var s=t(i);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(l){return l===i||e(l,i,s)}}return z0=r,z0}var B0,s2;function IQ(){if(s2)return B0;s2=1;function e(t,n){return t!=null&&n in Object(t)}return B0=e,B0}var q0,l2;function zQ(){if(l2)return q0;l2=1;var e=x4(),t=PO(),n=$n(),r=kO(),i=$O(),s=dp();function l(c,f,d){f=e(f,c);for(var v=-1,m=f.length,g=!1;++v<m;){var x=s(f[v]);if(!(g=c!=null&&d(c,x)))break;c=c[x]}return g||++v!=m?g:(m=c==null?0:c.length,!!m&&i(m)&&r(x,m)&&(n(c)||t(c)))}return q0=l,q0}var U0,u2;function BQ(){if(u2)return U0;u2=1;var e=IQ(),t=zQ();function n(r,i){return r!=null&&t(r,i,e)}return U0=n,U0}var H0,c2;function qQ(){if(c2)return H0;c2=1;var e=LO(),t=w4(),n=BQ(),r=bO(),i=e3(),s=t3(),l=dp(),c=1,f=2;function d(v,m){return r(v)&&i(m)?s(l(v),m):function(g){var x=t(g,v);return x===void 0&&x===m?n(g,v):e(m,x,c|f)}}return H0=d,H0}var F0,f2;function Yl(){if(f2)return F0;f2=1;function e(t){return t}return F0=e,F0}var G0,d2;function UQ(){if(d2)return G0;d2=1;function e(t){return function(n){return n==null?void 0:n[t]}}return G0=e,G0}var V0,h2;function HQ(){if(h2)return V0;h2=1;var e=jO();function t(n){return function(r){return e(r,n)}}return V0=t,V0}var Y0,m2;function FQ(){if(m2)return Y0;m2=1;var e=UQ(),t=HQ(),n=bO(),r=dp();function i(s){return n(s)?e(r(s)):t(s)}return Y0=i,Y0}var W0,p2;function Hi(){if(p2)return W0;p2=1;var e=LQ(),t=qQ(),n=Yl(),r=$n(),i=FQ();function s(l){return typeof l=="function"?l:l==null?n:typeof l=="object"?r(l)?t(l[0],l[1]):e(l):i(l)}return W0=s,W0}var K0,v2;function n3(){if(v2)return K0;v2=1;function e(t,n,r,i){for(var s=t.length,l=r+(i?1:-1);i?l--:++l<s;)if(n(t[l],l,t))return l;return-1}return K0=e,K0}var X0,g2;function GQ(){if(g2)return X0;g2=1;function e(t){return t!==t}return X0=e,X0}var Q0,y2;function VQ(){if(y2)return Q0;y2=1;function e(t,n,r){for(var i=r-1,s=t.length;++i<s;)if(t[i]===n)return i;return-1}return Q0=e,Q0}var Z0,b2;function YQ(){if(b2)return Z0;b2=1;var e=n3(),t=GQ(),n=VQ();function r(i,s,l){return s===s?n(i,s,l):e(i,t,l)}return Z0=r,Z0}var J0,x2;function WQ(){if(x2)return J0;x2=1;var e=YQ();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return J0=t,J0}var ex,w2;function KQ(){if(w2)return ex;w2=1;function e(t,n,r){for(var i=-1,s=t==null?0:t.length;++i<s;)if(r(n,t[i]))return!0;return!1}return ex=e,ex}var tx,S2;function XQ(){if(S2)return tx;S2=1;function e(){}return tx=e,tx}var nx,O2;function QQ(){if(O2)return nx;O2=1;var e=J4(),t=XQ(),n=DO(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(s){return new e(s)}:t;return nx=i,nx}var rx,_2;function ZQ(){if(_2)return rx;_2=1;var e=F4(),t=WQ(),n=KQ(),r=V4(),i=QQ(),s=DO(),l=200;function c(f,d,v){var m=-1,g=t,x=f.length,_=!0,S=[],w=S;if(v)_=!1,g=n;else if(x>=l){var j=d?null:i(f);if(j)return s(j);_=!1,g=r,w=new e}else w=d?[]:S;e:for(;++m<x;){var E=f[m],A=d?d(E):E;if(E=v||E!==0?E:0,_&&A===A){for(var M=w.length;M--;)if(w[M]===A)continue e;d&&w.push(A),S.push(E)}else g(w,A,v)||(w!==S&&w.push(A),S.push(E))}return S}return rx=c,rx}var ax,j2;function JQ(){if(j2)return ax;j2=1;var e=Hi(),t=ZQ();function n(r,i){return r&&r.length?t(r,e(i,2)):[]}return ax=n,ax}var eZ=JQ();const E2=gt(eZ);function r3(e,t,n){return t===!0?E2(e,n):$e(t)?E2(e,t):e}function dl(e){"@babel/helpers - typeof";return dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dl(e)}var tZ=["ref"];function A2(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 ka(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A2(Object(n),!0).forEach(function(r){yp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T2(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,i3(r.key),r)}}function rZ(e,t,n){return t&&T2(e.prototype,t),n&&T2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function aZ(e,t,n){return t=Vh(t),iZ(e,a3()?Reflect.construct(t,n||[],Vh(e).constructor):t.apply(e,n))}function iZ(e,t){if(t&&(dl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oZ(e)}function oZ(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 Vh(e){return Vh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vh(e)}function sZ(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 yp(e,t,n){return t=i3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i3(e){var t=lZ(e,"string");return dl(t)=="symbol"?t:t+""}function lZ(e,t){if(dl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function uZ(e,t){if(e==null)return{};var n=cZ(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cZ(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 fZ(e){return e.value}function dZ(e,t){if(L.isValidElement(e))return L.cloneElement(e,t);if(typeof e=="function")return L.createElement(e,t);t.ref;var n=uZ(t,tZ);return L.createElement(RO,n)}var C2=1,Eo=(function(e){function t(){var n;nZ(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=aZ(this,t,[].concat(i)),yp(n,"lastBoundingBox",{width:-1,height:-1}),n}return sZ(t,e),rZ(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)>C2||Math.abs(i.height-this.lastBoundingBox.height)>C2)&&(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?ka({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,s=i.layout,l=i.align,c=i.verticalAlign,f=i.margin,d=i.chartWidth,v=i.chartHeight,m,g;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(l==="center"&&s==="vertical"){var x=this.getBBoxSnapshot();m={left:((d||0)-x.width)/2}}else m=l==="right"?{right:f&&f.right||0}:{left:f&&f.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(c==="middle"){var _=this.getBBoxSnapshot();g={top:((v||0)-_.height)/2}}else g=c==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return ka(ka({},m),g)}},{key:"render",value:function(){var r=this,i=this.props,s=i.content,l=i.width,c=i.height,f=i.wrapperStyle,d=i.payloadUniqBy,v=i.payload,m=ka(ka({position:"absolute",width:l||"auto",height:c||"auto"},this.getDefaultPosition(f)),f);return L.createElement("div",{className:"recharts-legend-wrapper",style:m,ref:function(x){r.wrapperNode=x}},dZ(s,ka(ka({},this.props),{},{payload:r3(v,d,fZ)})))}}],[{key:"getWithHeight",value:function(r,i){var s=ka(ka({},this.defaultProps),r.props),l=s.layout;return l==="vertical"&&ye(r.props.height)?{height:r.props.height}:l==="horizontal"?{width:r.props.width||i}:null}}])})(O.PureComponent);yp(Eo,"displayName","Legend");yp(Eo,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var ix,N2;function hZ(){if(N2)return ix;N2=1;var e=bf(),t=PO(),n=$n(),r=e?e.isConcatSpreadable:void 0;function i(s){return n(s)||t(s)||!!(r&&s&&s[r])}return ix=i,ix}var ox,M2;function o3(){if(M2)return ox;M2=1;var e=W4(),t=hZ();function n(r,i,s,l,c){var f=-1,d=r.length;for(s||(s=t),c||(c=[]);++f<d;){var v=r[f];i>0&&s(v)?i>1?n(v,i-1,s,l,c):e(c,v):l||(c[c.length]=v)}return c}return ox=n,ox}var sx,R2;function mZ(){if(R2)return sx;R2=1;function e(t){return function(n,r,i){for(var s=-1,l=Object(n),c=i(n),f=c.length;f--;){var d=c[t?f:++s];if(r(l[d],d,l)===!1)break}return n}}return sx=e,sx}var lx,D2;function pZ(){if(D2)return lx;D2=1;var e=mZ(),t=e();return lx=t,lx}var ux,P2;function s3(){if(P2)return ux;P2=1;var e=pZ(),t=gp();function n(r,i){return r&&e(r,i,t)}return ux=n,ux}var cx,k2;function vZ(){if(k2)return cx;k2=1;var e=Sf();function t(n,r){return function(i,s){if(i==null)return i;if(!e(i))return n(i,s);for(var l=i.length,c=r?l:-1,f=Object(i);(r?c--:++c<l)&&s(f[c],c,f)!==!1;);return i}}return cx=t,cx}var fx,$2;function IO(){if($2)return fx;$2=1;var e=s3(),t=vZ(),n=t(e);return fx=n,fx}var dx,L2;function l3(){if(L2)return dx;L2=1;var e=IO(),t=Sf();function n(r,i){var s=-1,l=t(r)?Array(r.length):[];return e(r,function(c,f,d){l[++s]=i(c,f,d)}),l}return dx=n,dx}var hx,I2;function gZ(){if(I2)return hx;I2=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return hx=e,hx}var mx,z2;function yZ(){if(z2)return mx;z2=1;var e=Gl();function t(n,r){if(n!==r){var i=n!==void 0,s=n===null,l=n===n,c=e(n),f=r!==void 0,d=r===null,v=r===r,m=e(r);if(!d&&!m&&!c&&n>r||c&&f&&v&&!d&&!m||s&&f&&v||!i&&v||!l)return 1;if(!s&&!c&&!m&&n<r||m&&i&&l&&!s&&!c||d&&i&&l||!f&&l||!v)return-1}return 0}return mx=t,mx}var px,B2;function bZ(){if(B2)return px;B2=1;var e=yZ();function t(n,r,i){for(var s=-1,l=n.criteria,c=r.criteria,f=l.length,d=i.length;++s<f;){var v=e(l[s],c[s]);if(v){if(s>=d)return v;var m=i[s];return v*(m=="desc"?-1:1)}}return n.index-r.index}return px=t,px}var vx,q2;function xZ(){if(q2)return vx;q2=1;var e=_O(),t=jO(),n=Hi(),r=l3(),i=gZ(),s=X4(),l=bZ(),c=Yl(),f=$n();function d(v,m,g){m.length?m=e(m,function(S){return f(S)?function(w){return t(w,S.length===1?S[0]:S)}:S}):m=[c];var x=-1;m=e(m,s(n));var _=r(v,function(S,w,j){var E=e(m,function(A){return A(S)});return{criteria:E,index:++x,value:S}});return i(_,function(S,w){return l(S,w,g)})}return vx=d,vx}var gx,U2;function wZ(){if(U2)return gx;U2=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 gx=e,gx}var yx,H2;function SZ(){if(H2)return yx;H2=1;var e=wZ(),t=Math.max;function n(r,i,s){return i=t(i===void 0?r.length-1:i,0),function(){for(var l=arguments,c=-1,f=t(l.length-i,0),d=Array(f);++c<f;)d[c]=l[i+c];c=-1;for(var v=Array(i+1);++c<i;)v[c]=l[c];return v[i]=s(d),e(r,this,v)}}return yx=n,yx}var bx,F2;function OZ(){if(F2)return bx;F2=1;function e(t){return function(){return t}}return bx=e,bx}var xx,G2;function u3(){if(G2)return xx;G2=1;var e=Ho(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return xx=t,xx}var wx,V2;function _Z(){if(V2)return wx;V2=1;var e=OZ(),t=u3(),n=Yl(),r=t?function(i,s){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:n;return wx=r,wx}var Sx,Y2;function jZ(){if(Y2)return Sx;Y2=1;var e=800,t=16,n=Date.now;function r(i){var s=0,l=0;return function(){var c=n(),f=t-(c-l);if(l=c,f>0){if(++s>=e)return arguments[0]}else s=0;return i.apply(void 0,arguments)}}return Sx=r,Sx}var Ox,W2;function EZ(){if(W2)return Ox;W2=1;var e=_Z(),t=jZ(),n=t(e);return Ox=n,Ox}var _x,K2;function AZ(){if(K2)return _x;K2=1;var e=Yl(),t=SZ(),n=EZ();function r(i,s){return n(t(i,s,e),i+"")}return _x=r,_x}var jx,X2;function bp(){if(X2)return jx;X2=1;var e=wO(),t=Sf(),n=kO(),r=Ui();function i(s,l,c){if(!r(c))return!1;var f=typeof l;return(f=="number"?t(c)&&n(l,c.length):f=="string"&&l in c)?e(c[l],s):!1}return jx=i,jx}var Ex,Q2;function TZ(){if(Q2)return Ex;Q2=1;var e=o3(),t=xZ(),n=AZ(),r=bp(),i=n(function(s,l){if(s==null)return[];var c=l.length;return c>1&&r(s,l[0],l[1])?l=[]:c>2&&r(l[0],l[1],l[2])&&(l=[l[0]]),t(s,e(l,1),[])});return Ex=i,Ex}var CZ=TZ();const zO=gt(CZ);function Ec(e){"@babel/helpers - typeof";return Ec=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ec(e)}function c1(){return c1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c1.apply(this,arguments)}function NZ(e,t){return PZ(e)||DZ(e,t)||RZ(e,t)||MZ()}function MZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
309
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RZ(e,t){if(e){if(typeof e=="string")return Z2(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 Z2(e,t)}}function Z2(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 DZ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(v){d=!0,i=v}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function PZ(e){if(Array.isArray(e))return e}function J2(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 Ax(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J2(Object(n),!0).forEach(function(r){kZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kZ(e,t,n){return t=$Z(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Z(e){var t=LZ(e,"string");return Ec(t)=="symbol"?t:t+""}function LZ(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 IZ(e){return Array.isArray(e)&&Kt(e[0])&&Kt(e[1])?e.join(" ~ "):e}var zZ=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,s=i===void 0?{}:i,l=t.itemStyle,c=l===void 0?{}:l,f=t.labelStyle,d=f===void 0?{}:f,v=t.payload,m=t.formatter,g=t.itemSorter,x=t.wrapperClassName,_=t.labelClassName,S=t.label,w=t.labelFormatter,j=t.accessibilityLayer,E=j===void 0?!1:j,A=function(){if(v&&v.length){var H={padding:0,margin:0},V=(g?zO(v,g):v).map(function(Q,K){if(Q.type==="none")return null;var k=Ax({display:"block",paddingTop:4,paddingBottom:4,color:Q.color||"#000"},c),q=Q.formatter||m||IZ,B=Q.value,W=Q.name,se=B,$=W;if(q&&se!=null&&$!=null){var F=q(B,W,Q,K,v);if(Array.isArray(F)){var X=NZ(F,2);se=X[0],$=X[1]}else se=F}return L.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(K),style:k},Kt($)?L.createElement("span",{className:"recharts-tooltip-item-name"},$):null,Kt($)?L.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,L.createElement("span",{className:"recharts-tooltip-item-value"},se),L.createElement("span",{className:"recharts-tooltip-item-unit"},Q.unit||""))});return L.createElement("ul",{className:"recharts-tooltip-item-list",style:H},V)}return null},M=Ax({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},s),T=Ax({margin:0},d),N=!qe(S),R=N?S:"",D=Ye("recharts-default-tooltip",x),I=Ye("recharts-tooltip-label",_);N&&w&&v!==void 0&&v!==null&&(R=w(S,v));var Y=E?{role:"status","aria-live":"assertive"}:{};return L.createElement("div",c1({className:D,style:M},Y),L.createElement("p",{className:I,style:T},L.isValidElement(R)?R:"".concat(R)),A())};function Ac(e){"@babel/helpers - typeof";return Ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ac(e)}function eh(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=qZ(e,"string");return Ac(t)=="symbol"?t:t+""}function qZ(e,t){if(Ac(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xu="recharts-tooltip-wrapper",UZ={visibility:"hidden"};function HZ(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Ye(Xu,eh(eh(eh(eh({},"".concat(Xu,"-right"),ye(n)&&t&&ye(t.x)&&n>=t.x),"".concat(Xu,"-left"),ye(n)&&t&&ye(t.x)&&n<t.x),"".concat(Xu,"-bottom"),ye(r)&&t&&ye(t.y)&&r>=t.y),"".concat(Xu,"-top"),ye(r)&&t&&ye(t.y)&&r<t.y))}function eR(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,s=e.position,l=e.reverseDirection,c=e.tooltipDimension,f=e.viewBox,d=e.viewBoxDimension;if(s&&ye(s[r]))return s[r];var v=n[r]-c-i,m=n[r]+i;if(t[r])return l[r]?v:m;if(l[r]){var g=v,x=f[r];return g<x?Math.max(m,f[r]):Math.max(v,f[r])}var _=m+c,S=f[r]+d;return _>S?Math.max(v,f[r]):Math.max(m,f[r])}function FZ(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 GZ(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,s=e.reverseDirection,l=e.tooltipBox,c=e.useTranslate3d,f=e.viewBox,d,v,m;return l.height>0&&l.width>0&&n?(v=eR({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:s,tooltipDimension:l.width,viewBox:f,viewBoxDimension:f.width}),m=eR({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:s,tooltipDimension:l.height,viewBox:f,viewBoxDimension:f.height}),d=FZ({translateX:v,translateY:m,useTranslate3d:c})):d=UZ,{cssProperties:d,cssClasses:HZ({translateX:v,translateY:m,coordinate:n})}}function hl(e){"@babel/helpers - typeof";return hl=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},hl(e)}function tR(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 nR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tR(Object(n),!0).forEach(function(r){d1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YZ(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,f3(r.key),r)}}function WZ(e,t,n){return t&&YZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function KZ(e,t,n){return t=Yh(t),XZ(e,c3()?Reflect.construct(t,n||[],Yh(e).constructor):t.apply(e,n))}function XZ(e,t){if(t&&(hl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QZ(e)}function QZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(c3=function(){return!!e})()}function Yh(e){return Yh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yh(e)}function ZZ(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&&f1(e,t)}function f1(e,t){return f1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},f1(e,t)}function d1(e,t,n){return t=f3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f3(e){var t=JZ(e,"string");return hl(t)=="symbol"?t:t+""}function JZ(e,t){if(hl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rR=1,eJ=(function(e){function t(){var n;VZ(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=KZ(this,t,[].concat(i)),d1(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),d1(n,"handleKeyDown",function(l){if(l.key==="Escape"){var c,f,d,v;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=(v=n.props.coordinate)===null||v===void 0?void 0:v.y)!==null&&d!==void 0?d:0}})}}),n}return ZZ(t,e),WZ(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>rR||Math.abs(r.height-this.state.lastBoundingBox.height)>rR)&&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,s=i.active,l=i.allowEscapeViewBox,c=i.animationDuration,f=i.animationEasing,d=i.children,v=i.coordinate,m=i.hasPayload,g=i.isAnimationActive,x=i.offset,_=i.position,S=i.reverseDirection,w=i.useTranslate3d,j=i.viewBox,E=i.wrapperStyle,A=GZ({allowEscapeViewBox:l,coordinate:v,offsetTopLeft:x,position:_,reverseDirection:S,tooltipBox:this.state.lastBoundingBox,useTranslate3d:w,viewBox:j}),M=A.cssClasses,T=A.cssProperties,N=nR(nR({transition:g&&s?"transform ".concat(c,"ms ").concat(f):void 0},T),{},{pointerEvents:"none",visibility:!this.state.dismissed&&s&&m?"visible":"hidden",position:"absolute",top:0,left:0},E);return L.createElement("div",{tabIndex:-1,className:M,style:N,ref:function(D){r.wrapperNode=D}},d)}}])})(O.PureComponent),tJ=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Wl={isSsr:tJ()};function ml(e){"@babel/helpers - typeof";return ml=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},ml(e)}function aR(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 iR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aR(Object(n),!0).forEach(function(r){BO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rJ(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,h3(r.key),r)}}function aJ(e,t,n){return t&&rJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iJ(e,t,n){return t=Wh(t),oJ(e,d3()?Reflect.construct(t,n||[],Wh(e).constructor):t.apply(e,n))}function oJ(e,t){if(t&&(ml(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sJ(e)}function sJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(d3=function(){return!!e})()}function Wh(e){return Wh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wh(e)}function lJ(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 BO(e,t,n){return t=h3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h3(e){var t=uJ(e,"string");return ml(t)=="symbol"?t:t+""}function uJ(e,t){if(ml(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ml(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function cJ(e){return e.dataKey}function fJ(e,t){return L.isValidElement(e)?L.cloneElement(e,t):typeof e=="function"?L.createElement(e,t):L.createElement(zZ,t)}var Zr=(function(e){function t(){return nJ(this,t),iJ(this,t,arguments)}return lJ(t,e),aJ(t,[{key:"render",value:function(){var r=this,i=this.props,s=i.active,l=i.allowEscapeViewBox,c=i.animationDuration,f=i.animationEasing,d=i.content,v=i.coordinate,m=i.filterNull,g=i.isAnimationActive,x=i.offset,_=i.payload,S=i.payloadUniqBy,w=i.position,j=i.reverseDirection,E=i.useTranslate3d,A=i.viewBox,M=i.wrapperStyle,T=_??[];m&&T.length&&(T=r3(_.filter(function(R){return R.value!=null&&(R.hide!==!0||r.props.includeHidden)}),S,cJ));var N=T.length>0;return L.createElement(eJ,{allowEscapeViewBox:l,animationDuration:c,animationEasing:f,isAnimationActive:g,active:s,coordinate:v,hasPayload:N,offset:x,position:w,reverseDirection:j,useTranslate3d:E,viewBox:A,wrapperStyle:M},fJ(d,iR(iR({},this.props),{},{payload:T})))}}])})(O.PureComponent);BO(Zr,"displayName","Tooltip");BO(Zr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Wl.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 Tx,oR;function dJ(){if(oR)return Tx;oR=1;var e=ma(),t=function(){return e.Date.now()};return Tx=t,Tx}var Cx,sR;function hJ(){if(sR)return Cx;sR=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 Nx,lR;function mJ(){if(lR)return Nx;lR=1;var e=hJ(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return Nx=n,Nx}var Mx,uR;function m3(){if(uR)return Mx;uR=1;var e=mJ(),t=Ui(),n=Gl(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;function f(d){if(typeof d=="number")return d;if(n(d))return r;if(t(d)){var v=typeof d.valueOf=="function"?d.valueOf():d;d=t(v)?v+"":v}if(typeof d!="string")return d===0?d:+d;d=e(d);var m=s.test(d);return m||l.test(d)?c(d.slice(2),m?2:8):i.test(d)?r:+d}return Mx=f,Mx}var Rx,cR;function pJ(){if(cR)return Rx;cR=1;var e=Ui(),t=dJ(),n=m3(),r="Expected a function",i=Math.max,s=Math.min;function l(c,f,d){var v,m,g,x,_,S,w=0,j=!1,E=!1,A=!0;if(typeof c!="function")throw new TypeError(r);f=n(f)||0,e(d)&&(j=!!d.leading,E="maxWait"in d,g=E?i(n(d.maxWait)||0,f):g,A="trailing"in d?!!d.trailing:A);function M(V){var Q=v,K=m;return v=m=void 0,w=V,x=c.apply(K,Q),x}function T(V){return w=V,_=setTimeout(D,f),j?M(V):x}function N(V){var Q=V-S,K=V-w,k=f-Q;return E?s(k,g-K):k}function R(V){var Q=V-S,K=V-w;return S===void 0||Q>=f||Q<0||E&&K>=g}function D(){var V=t();if(R(V))return I(V);_=setTimeout(D,N(V))}function I(V){return _=void 0,A&&v?M(V):(v=m=void 0,x)}function Y(){_!==void 0&&clearTimeout(_),w=0,v=S=m=_=void 0}function z(){return _===void 0?x:I(t())}function H(){var V=t(),Q=R(V);if(v=arguments,m=this,S=V,Q){if(_===void 0)return T(S);if(E)return clearTimeout(_),_=setTimeout(D,f),M(S)}return _===void 0&&(_=setTimeout(D,f)),x}return H.cancel=Y,H.flush=z,H}return Rx=l,Rx}var Dx,fR;function vJ(){if(fR)return Dx;fR=1;var e=pJ(),t=Ui(),n="Expected a function";function r(i,s,l){var c=!0,f=!0;if(typeof i!="function")throw new TypeError(n);return t(l)&&(c="leading"in l?!!l.leading:c,f="trailing"in l?!!l.trailing:f),e(i,s,{leading:c,maxWait:s,trailing:f})}return Dx=r,Dx}var gJ=vJ();const p3=gt(gJ);function Tc(e){"@babel/helpers - typeof";return Tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tc(e)}function dR(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 th(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dR(Object(n),!0).forEach(function(r){yJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yJ(e,t,n){return t=bJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bJ(e){var t=xJ(e,"string");return Tc(t)=="symbol"?t:t+""}function xJ(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 wJ(e,t){return jJ(e)||_J(e,t)||OJ(e,t)||SJ()}function SJ(){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 OJ(e,t){if(e){if(typeof e=="string")return hR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hR(e,t)}}function hR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _J(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(v){d=!0,i=v}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function jJ(e){if(Array.isArray(e))return e}var EJ=O.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,s=e.width,l=s===void 0?"100%":s,c=e.height,f=c===void 0?"100%":c,d=e.minWidth,v=d===void 0?0:d,m=e.minHeight,g=e.maxHeight,x=e.children,_=e.debounce,S=_===void 0?0:_,w=e.id,j=e.className,E=e.onResize,A=e.style,M=A===void 0?{}:A,T=O.useRef(null),N=O.useRef();N.current=E,O.useImperativeHandle(t,function(){return Object.defineProperty(T.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),T.current},configurable:!0})});var R=O.useState({containerWidth:i.width,containerHeight:i.height}),D=wJ(R,2),I=D[0],Y=D[1],z=O.useCallback(function(V,Q){Y(function(K){var k=Math.round(V),q=Math.round(Q);return K.containerWidth===k&&K.containerHeight===q?K:{containerWidth:k,containerHeight:q}})},[]);O.useEffect(function(){var V=function(W){var se,$=W[0].contentRect,F=$.width,X=$.height;z(F,X),(se=N.current)===null||se===void 0||se.call(N,F,X)};S>0&&(V=p3(V,S,{trailing:!0,leading:!1}));var Q=new ResizeObserver(V),K=T.current.getBoundingClientRect(),k=K.width,q=K.height;return z(k,q),Q.observe(T.current),function(){Q.disconnect()}},[z,S]);var H=O.useMemo(function(){var V=I.containerWidth,Q=I.containerHeight;if(V<0||Q<0)return null;qa(So(l)||So(f),`The width(%s) and height(%s) are both fixed numbers,
|
|
311
|
+
maybe you don't need to use a ResponsiveContainer.`,l,f),qa(!n||n>0,"The aspect(%s) must be greater than zero.",n);var K=So(l)?V:l,k=So(f)?Q:f;n&&n>0&&(K?k=K/n:k&&(K=k*n),g&&k>g&&(k=g)),qa(K>0||k>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
312
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
313
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
314
|
+
height and width.`,K,k,l,f,v,m,n);var q=!Array.isArray(x)&&Ba(x.type).endsWith("Chart");return L.Children.map(x,function(B){return L.isValidElement(B)?O.cloneElement(B,th({width:K,height:k},q?{style:th({height:"100%",width:"100%",maxHeight:k,maxWidth:K},B.props.style)}:{})):B})},[n,x,f,g,m,v,I,l]);return L.createElement("div",{id:w?"".concat(w):void 0,className:Ye("recharts-responsive-container",j),style:th(th({},M),{},{width:l,height:f,minWidth:v,minHeight:m,maxHeight:g}),ref:T},H)}),v3=function(t){return null};v3.displayName="Cell";function Cc(e){"@babel/helpers - typeof";return Cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cc(e)}function mR(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 m1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mR(Object(n),!0).forEach(function(r){AJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AJ(e,t,n){return t=TJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TJ(e){var t=CJ(e,"string");return Cc(t)=="symbol"?t:t+""}function CJ(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 Bs={widthCache:{},cacheCount:0},NJ=2e3,MJ={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},pR="recharts_measurement_span";function RJ(e){var t=m1({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var dc=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Wl.isSsr)return{width:0,height:0};var r=RJ(n),i=JSON.stringify({text:t,copyStyle:r});if(Bs.widthCache[i])return Bs.widthCache[i];try{var s=document.getElementById(pR);s||(s=document.createElement("span"),s.setAttribute("id",pR),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var l=m1(m1({},MJ),r);Object.assign(s.style,l),s.textContent="".concat(t);var c=s.getBoundingClientRect(),f={width:c.width,height:c.height};return Bs.widthCache[i]=f,++Bs.cacheCount>NJ&&(Bs.cacheCount=0,Bs.widthCache={}),f}catch{return{width:0,height:0}}},DJ=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Kh(e,t){return LJ(e)||$J(e,t)||kJ(e,t)||PJ()}function PJ(){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 kJ(e,t){if(e){if(typeof e=="string")return vR(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 vR(e,t)}}function vR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $J(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(v){d=!0,i=v}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function LJ(e){if(Array.isArray(e))return e}function IJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gR(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,BJ(r.key),r)}}function zJ(e,t,n){return t&&gR(e.prototype,t),n&&gR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function BJ(e){var t=qJ(e,"string");return Nc(t)=="symbol"?t:t+""}function qJ(e,t){if(Nc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var yR=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,bR=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,UJ=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,HJ=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,g3={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},FJ=Object.keys(g3),Fs="NaN";function GJ(e,t){return e*g3[t]}var nh=(function(){function e(t,n){IJ(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!UJ.test(n)&&(this.num=NaN,this.unit=""),FJ.includes(n)&&(this.num=GJ(t,n),this.unit="px")}return zJ(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=HJ.exec(n))!==null&&r!==void 0?r:[],s=Kh(i,3),l=s[1],c=s[2];return new e(parseFloat(l),c??"")}}])})();function y3(e){if(e.includes(Fs))return Fs;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=yR.exec(t))!==null&&n!==void 0?n:[],i=Kh(r,4),s=i[1],l=i[2],c=i[3],f=nh.parse(s??""),d=nh.parse(c??""),v=l==="*"?f.multiply(d):f.divide(d);if(v.isNaN())return Fs;t=t.replace(yR,v.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var m,g=(m=bR.exec(t))!==null&&m!==void 0?m:[],x=Kh(g,4),_=x[1],S=x[2],w=x[3],j=nh.parse(_??""),E=nh.parse(w??""),A=S==="+"?j.add(E):j.subtract(E);if(A.isNaN())return Fs;t=t.replace(bR,A.toString())}return t}var xR=/\(([^()]*)\)/;function VJ(e){for(var t=e;t.includes("(");){var n=xR.exec(t),r=Kh(n,2),i=r[1];t=t.replace(xR,y3(i))}return t}function YJ(e){var t=e.replace(/\s+/g,"");return t=VJ(t),t=y3(t),t}function WJ(e){try{return YJ(e)}catch{return Fs}}function Px(e){var t=WJ(e.slice(5,-1));return t===Fs?"":t}var KJ=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],XJ=["dx","dy","angle","className","breakAll"];function p1(){return p1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p1.apply(this,arguments)}function wR(e,t){if(e==null)return{};var n=QJ(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function QJ(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 SR(e,t){return tee(e)||eee(e,t)||JJ(e,t)||ZJ()}function ZJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
316
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JJ(e,t){if(e){if(typeof e=="string")return OR(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 OR(e,t)}}function OR(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 eee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(v){d=!0,i=v}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function tee(e){if(Array.isArray(e))return e}var b3=/[ \f\n\r\t\v\u2028\u2029]+/,x3=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var s=[];qe(n)||(r?s=n.toString().split(""):s=n.toString().split(b3));var l=s.map(function(f){return{word:f,width:dc(f,i).width}}),c=r?0:dc(" ",i).width;return{wordsWithComputedWidth:l,spaceWidth:c}}catch{return null}},nee=function(t,n,r,i,s){var l=t.maxLines,c=t.children,f=t.style,d=t.breakAll,v=ye(l),m=c,g=function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return K.reduce(function(k,q){var B=q.word,W=q.width,se=k[k.length-1];if(se&&(i==null||s||se.width+W+r<Number(i)))se.words.push(B),se.width+=W+r;else{var $={words:[B],width:W};k.push($)}return k},[])},x=g(n),_=function(K){return K.reduce(function(k,q){return k.width>q.width?k:q})};if(!v)return x;for(var S="…",w=function(K){var k=m.slice(0,K),q=x3({breakAll:d,style:f,children:k+S}).wordsWithComputedWidth,B=g(q),W=B.length>l||_(B).width>Number(i);return[W,B]},j=0,E=m.length-1,A=0,M;j<=E&&A<=m.length-1;){var T=Math.floor((j+E)/2),N=T-1,R=w(N),D=SR(R,2),I=D[0],Y=D[1],z=w(T),H=SR(z,1),V=H[0];if(!I&&!V&&(j=T+1),I&&V&&(E=T-1),!I&&V){M=Y;break}A++}return M||x},_R=function(t){var n=qe(t)?[]:t.toString().split(b3);return[{words:n}]},ree=function(t){var n=t.width,r=t.scaleToFit,i=t.children,s=t.style,l=t.breakAll,c=t.maxLines;if((n||r)&&!Wl.isSsr){var f,d,v=x3({breakAll:l,children:i,style:s});if(v){var m=v.wordsWithComputedWidth,g=v.spaceWidth;f=m,d=g}else return _R(i);return nee({breakAll:l,children:i,maxLines:c,style:s},f,d,n,r)}return _R(i)},jR="#808080",Xh=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,s=i===void 0?0:i,l=t.lineHeight,c=l===void 0?"1em":l,f=t.capHeight,d=f===void 0?"0.71em":f,v=t.scaleToFit,m=v===void 0?!1:v,g=t.textAnchor,x=g===void 0?"start":g,_=t.verticalAnchor,S=_===void 0?"end":_,w=t.fill,j=w===void 0?jR:w,E=wR(t,KJ),A=O.useMemo(function(){return ree({breakAll:E.breakAll,children:E.children,maxLines:E.maxLines,scaleToFit:m,style:E.style,width:E.width})},[E.breakAll,E.children,E.maxLines,m,E.style,E.width]),M=E.dx,T=E.dy,N=E.angle,R=E.className,D=E.breakAll,I=wR(E,XJ);if(!Kt(r)||!Kt(s))return null;var Y=r+(ye(M)?M:0),z=s+(ye(T)?T:0),H;switch(S){case"start":H=Px("calc(".concat(d,")"));break;case"middle":H=Px("calc(".concat((A.length-1)/2," * -").concat(c," + (").concat(d," / 2))"));break;default:H=Px("calc(".concat(A.length-1," * -").concat(c,")"));break}var V=[];if(m){var Q=A[0].width,K=E.width;V.push("scale(".concat((ye(K)?K/Q:1)/Q,")"))}return N&&V.push("rotate(".concat(N,", ").concat(Y,", ").concat(z,")")),V.length&&(I.transform=V.join(" ")),L.createElement("text",p1({},Ve(I,!0),{x:Y,y:z,className:Ye("recharts-text",R),textAnchor:x,fill:j.includes("url")?jR:j}),A.map(function(k,q){var B=k.words.join(D?"":" ");return L.createElement("tspan",{x:Y,dy:q===0?H:c,key:"".concat(B,"-").concat(q)},B)}))};function Di(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function aee(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function qO(e){let t,n,r;e.length!==2?(t=Di,n=(c,f)=>Di(e(c),f),r=(c,f)=>e(c)-f):(t=e===Di||e===aee?e:iee,n=e,r=e);function i(c,f,d=0,v=c.length){if(d<v){if(t(f,f)!==0)return v;do{const m=d+v>>>1;n(c[m],f)<0?d=m+1:v=m}while(d<v)}return d}function s(c,f,d=0,v=c.length){if(d<v){if(t(f,f)!==0)return v;do{const m=d+v>>>1;n(c[m],f)<=0?d=m+1:v=m}while(d<v)}return d}function l(c,f,d=0,v=c.length){const m=i(c,f,d,v-1);return m>d&&r(c[m-1],f)>-r(c[m],f)?m-1:m}return{left:i,center:l,right:s}}function iee(){return 0}function w3(e){return e===null?NaN:+e}function*oee(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const see=qO(Di),Of=see.right;qO(w3).center;class ER extends Map{constructor(t,n=cee){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(AR(this,t))}has(t){return super.has(AR(this,t))}set(t,n){return super.set(lee(this,t),n)}delete(t){return super.delete(uee(this,t))}}function AR({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function lee({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function uee({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function cee(e){return e!==null&&typeof e=="object"?e.valueOf():e}function fee(e=Di){if(e===Di)return S3;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 S3(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const dee=Math.sqrt(50),hee=Math.sqrt(10),mee=Math.sqrt(2);function Qh(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),s=r/Math.pow(10,i),l=s>=dee?10:s>=hee?5:s>=mee?2:1;let c,f,d;return i<0?(d=Math.pow(10,-i)/l,c=Math.round(e*d),f=Math.round(t*d),c/d<e&&++c,f/d>t&&--f,d=-d):(d=Math.pow(10,i)*l,c=Math.round(e/d),f=Math.round(t/d),c*d<e&&++c,f*d>t&&--f),f<c&&.5<=n&&n<2?Qh(e,t,n*2):[c,f,d]}function v1(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,s,l]=r?Qh(t,e,n):Qh(e,t,n);if(!(s>=i))return[];const c=s-i+1,f=new Array(c);if(r)if(l<0)for(let d=0;d<c;++d)f[d]=(s-d)/-l;else for(let d=0;d<c;++d)f[d]=(s-d)*l;else if(l<0)for(let d=0;d<c;++d)f[d]=(i+d)/-l;else for(let d=0;d<c;++d)f[d]=(i+d)*l;return f}function g1(e,t,n){return t=+t,e=+e,n=+n,Qh(e,t,n)[2]}function y1(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?g1(t,e,n):g1(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function TR(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function CR(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function O3(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?S3:fee(i);r>n;){if(r-n>600){const f=r-n+1,d=t-n+1,v=Math.log(f),m=.5*Math.exp(2*v/3),g=.5*Math.sqrt(v*m*(f-m)/f)*(d-f/2<0?-1:1),x=Math.max(n,Math.floor(t-d*m/f+g)),_=Math.min(r,Math.floor(t+(f-d)*m/f+g));O3(e,t,x,_,i)}const s=e[t];let l=n,c=r;for(Qu(e,n,t),i(e[r],s)>0&&Qu(e,n,r);l<c;){for(Qu(e,l,c),++l,--c;i(e[l],s)<0;)++l;for(;i(e[c],s)>0;)--c}i(e[n],s)===0?Qu(e,n,c):(++c,Qu(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function Qu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function pee(e,t,n){if(e=Float64Array.from(oee(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return CR(e);if(t>=1)return TR(e);var r,i=(r-1)*t,s=Math.floor(i),l=TR(O3(e,s).subarray(0,s+1)),c=CR(e.subarray(s+1));return l+(c-l)*(i-s)}}function vee(e,t,n=w3){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,s=Math.floor(i),l=+n(e[s],s,e),c=+n(e[s+1],s+1,e);return l+(c-l)*(i-s)}}function gee(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,s=new Array(i);++r<i;)s[r]=e+r*n;return s}function Sr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Za(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 b1=Symbol("implicit");function UO(){var e=new ER,t=[],n=[],r=b1;function i(s){let l=e.get(s);if(l===void 0){if(r!==b1)return r;e.set(s,l=t.push(s)-1)}return n[l%n.length]}return i.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new ER;for(const l of s)e.has(l)||e.set(l,t.push(l)-1);return i},i.range=function(s){return arguments.length?(n=Array.from(s),i):n.slice()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.copy=function(){return UO(t,n).unknown(r)},Sr.apply(i,arguments),i}function Mc(){var e=UO().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,s,l,c=!1,f=0,d=0,v=.5;delete e.unknown;function m(){var g=t().length,x=i<r,_=x?i:r,S=x?r:i;s=(S-_)/Math.max(1,g-f+d*2),c&&(s=Math.floor(s)),_+=(S-_-s*(g-f))*v,l=s*(1-f),c&&(_=Math.round(_),l=Math.round(l));var w=gee(g).map(function(j){return _+s*j});return n(x?w.reverse():w)}return e.domain=function(g){return arguments.length?(t(g),m()):t()},e.range=function(g){return arguments.length?([r,i]=g,r=+r,i=+i,m()):[r,i]},e.rangeRound=function(g){return[r,i]=g,r=+r,i=+i,c=!0,m()},e.bandwidth=function(){return l},e.step=function(){return s},e.round=function(g){return arguments.length?(c=!!g,m()):c},e.padding=function(g){return arguments.length?(f=Math.min(1,d=+g),m()):f},e.paddingInner=function(g){return arguments.length?(f=Math.min(1,g),m()):f},e.paddingOuter=function(g){return arguments.length?(d=+g,m()):d},e.align=function(g){return arguments.length?(v=Math.max(0,Math.min(1,g)),m()):v},e.copy=function(){return Mc(t(),[r,i]).round(c).paddingInner(f).paddingOuter(d).align(v)},Sr.apply(m(),arguments)}function _3(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return _3(t())},e}function hc(){return _3(Mc.apply(null,arguments).paddingInner(1))}function HO(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function j3(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function _f(){}var Rc=.7,Zh=1/Rc,Zs="\\s*([+-]?\\d+)\\s*",Dc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",la="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",yee=/^#([0-9a-f]{3,8})$/,bee=new RegExp(`^rgb\\(${Zs},${Zs},${Zs}\\)$`),xee=new RegExp(`^rgb\\(${la},${la},${la}\\)$`),wee=new RegExp(`^rgba\\(${Zs},${Zs},${Zs},${Dc}\\)$`),See=new RegExp(`^rgba\\(${la},${la},${la},${Dc}\\)$`),Oee=new RegExp(`^hsl\\(${Dc},${la},${la}\\)$`),_ee=new RegExp(`^hsla\\(${Dc},${la},${la},${Dc}\\)$`),NR={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(_f,Pc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:MR,formatHex:MR,formatHex8:jee,formatHsl:Eee,formatRgb:RR,toString:RR});function MR(){return this.rgb().formatHex()}function jee(){return this.rgb().formatHex8()}function Eee(){return E3(this).formatHsl()}function RR(){return this.rgb().formatRgb()}function Pc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=yee.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?DR(t):n===3?new kn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?rh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?rh(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=bee.exec(e))?new kn(t[1],t[2],t[3],1):(t=xee.exec(e))?new kn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=wee.exec(e))?rh(t[1],t[2],t[3],t[4]):(t=See.exec(e))?rh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Oee.exec(e))?$R(t[1],t[2]/100,t[3]/100,1):(t=_ee.exec(e))?$R(t[1],t[2]/100,t[3]/100,t[4]):NR.hasOwnProperty(e)?DR(NR[e]):e==="transparent"?new kn(NaN,NaN,NaN,0):null}function DR(e){return new kn(e>>16&255,e>>8&255,e&255,1)}function rh(e,t,n,r){return r<=0&&(e=t=n=NaN),new kn(e,t,n,r)}function Aee(e){return e instanceof _f||(e=Pc(e)),e?(e=e.rgb(),new kn(e.r,e.g,e.b,e.opacity)):new kn}function x1(e,t,n,r){return arguments.length===1?Aee(e):new kn(e,t,n,r??1)}function kn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}HO(kn,x1,j3(_f,{brighter(e){return e=e==null?Zh:Math.pow(Zh,e),new kn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Rc:Math.pow(Rc,e),new kn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new kn(Ao(this.r),Ao(this.g),Ao(this.b),Jh(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:PR,formatHex:PR,formatHex8:Tee,formatRgb:kR,toString:kR}));function PR(){return`#${Oo(this.r)}${Oo(this.g)}${Oo(this.b)}`}function Tee(){return`#${Oo(this.r)}${Oo(this.g)}${Oo(this.b)}${Oo((isNaN(this.opacity)?1:this.opacity)*255)}`}function kR(){const e=Jh(this.opacity);return`${e===1?"rgb(":"rgba("}${Ao(this.r)}, ${Ao(this.g)}, ${Ao(this.b)}${e===1?")":`, ${e})`}`}function Jh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ao(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oo(e){return e=Ao(e),(e<16?"0":"")+e.toString(16)}function $R(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Dr(e,t,n,r)}function E3(e){if(e instanceof Dr)return new Dr(e.h,e.s,e.l,e.opacity);if(e instanceof _f||(e=Pc(e)),!e)return new Dr;if(e instanceof Dr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),s=Math.max(t,n,r),l=NaN,c=s-i,f=(s+i)/2;return c?(t===s?l=(n-r)/c+(n<r)*6:n===s?l=(r-t)/c+2:l=(t-n)/c+4,c/=f<.5?s+i:2-s-i,l*=60):c=f>0&&f<1?0:l,new Dr(l,c,f,e.opacity)}function Cee(e,t,n,r){return arguments.length===1?E3(e):new Dr(e,t,n,r??1)}function Dr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}HO(Dr,Cee,j3(_f,{brighter(e){return e=e==null?Zh:Math.pow(Zh,e),new Dr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Rc:Math.pow(Rc,e),new Dr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new kn(kx(e>=240?e-240:e+120,i,r),kx(e,i,r),kx(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Dr(LR(this.h),ah(this.s),ah(this.l),Jh(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=Jh(this.opacity);return`${e===1?"hsl(":"hsla("}${LR(this.h)}, ${ah(this.s)*100}%, ${ah(this.l)*100}%${e===1?")":`, ${e})`}`}}));function LR(e){return e=(e||0)%360,e<0?e+360:e}function ah(e){return Math.max(0,Math.min(1,e||0))}function kx(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 FO=e=>()=>e;function Nee(e,t){return function(n){return e+n*t}}function Mee(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 Ree(e){return(e=+e)==1?A3:function(t,n){return n-t?Mee(t,n,e):FO(isNaN(t)?n:t)}}function A3(e,t){var n=t-e;return n?Nee(e,n):FO(isNaN(e)?t:e)}const IR=(function e(t){var n=Ree(t);function r(i,s){var l=n((i=x1(i)).r,(s=x1(s)).r),c=n(i.g,s.g),f=n(i.b,s.b),d=A3(i.opacity,s.opacity);return function(v){return i.r=l(v),i.g=c(v),i.b=f(v),i.opacity=d(v),i+""}}return r.gamma=e,r})(1);function Dee(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(s){for(i=0;i<n;++i)r[i]=e[i]*(1-s)+t[i]*s;return r}}function Pee(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function kee(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),s=new Array(n),l;for(l=0;l<r;++l)i[l]=Kl(e[l],t[l]);for(;l<n;++l)s[l]=t[l];return function(c){for(l=0;l<r;++l)s[l]=i[l](c);return s}}function $ee(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function em(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Lee(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]=Kl(e[i],t[i]):r[i]=t[i];return function(s){for(i in n)r[i]=n[i](s);return r}}var w1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$x=new RegExp(w1.source,"g");function Iee(e){return function(){return e}}function zee(e){return function(t){return e(t)+""}}function Bee(e,t){var n=w1.lastIndex=$x.lastIndex=0,r,i,s,l=-1,c=[],f=[];for(e=e+"",t=t+"";(r=w1.exec(e))&&(i=$x.exec(t));)(s=i.index)>n&&(s=t.slice(n,s),c[l]?c[l]+=s:c[++l]=s),(r=r[0])===(i=i[0])?c[l]?c[l]+=i:c[++l]=i:(c[++l]=null,f.push({i:l,x:em(r,i)})),n=$x.lastIndex;return n<t.length&&(s=t.slice(n),c[l]?c[l]+=s:c[++l]=s),c.length<2?f[0]?zee(f[0].x):Iee(t):(t=f.length,function(d){for(var v=0,m;v<t;++v)c[(m=f[v]).i]=m.x(d);return c.join("")})}function Kl(e,t){var n=typeof t,r;return t==null||n==="boolean"?FO(t):(n==="number"?em:n==="string"?(r=Pc(t))?(t=r,IR):Bee:t instanceof Pc?IR:t instanceof Date?$ee:Pee(t)?Dee:Array.isArray(t)?kee:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Lee:em)(e,t)}function GO(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function qee(e,t){t===void 0&&(t=e,e=Kl);for(var n=0,r=t.length-1,i=t[0],s=new Array(r<0?0:r);n<r;)s[n]=e(i,i=t[++n]);return function(l){var c=Math.max(0,Math.min(r-1,Math.floor(l*=r)));return s[c](l-c)}}function Uee(e){return function(){return e}}function tm(e){return+e}var zR=[0,1];function wn(e){return e}function S1(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Uee(isNaN(t)?NaN:.5)}function Hee(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Fee(e,t,n){var r=e[0],i=e[1],s=t[0],l=t[1];return i<r?(r=S1(i,r),s=n(l,s)):(r=S1(r,i),s=n(s,l)),function(c){return s(r(c))}}function Gee(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),s=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)i[l]=S1(e[l],e[l+1]),s[l]=n(t[l],t[l+1]);return function(c){var f=Of(e,c,1,r)-1;return s[f](i[f](c))}}function jf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function xp(){var e=zR,t=zR,n=Kl,r,i,s,l=wn,c,f,d;function v(){var g=Math.min(e.length,t.length);return l!==wn&&(l=Hee(e[0],e[g-1])),c=g>2?Gee:Fee,f=d=null,m}function m(g){return g==null||isNaN(g=+g)?s:(f||(f=c(e.map(r),t,n)))(r(l(g)))}return m.invert=function(g){return l(i((d||(d=c(t,e.map(r),em)))(g)))},m.domain=function(g){return arguments.length?(e=Array.from(g,tm),v()):e.slice()},m.range=function(g){return arguments.length?(t=Array.from(g),v()):t.slice()},m.rangeRound=function(g){return t=Array.from(g),n=GO,v()},m.clamp=function(g){return arguments.length?(l=g?!0:wn,v()):l!==wn},m.interpolate=function(g){return arguments.length?(n=g,v()):n},m.unknown=function(g){return arguments.length?(s=g,m):s},function(g,x){return r=g,i=x,v()}}function VO(){return xp()(wn,wn)}function Vee(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function nm(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 pl(e){return e=nm(Math.abs(e)),e?e[1]:NaN}function Yee(e,t){return function(n,r){for(var i=n.length,s=[],l=0,c=e[0],f=0;i>0&&c>0&&(f+c+1>r&&(c=Math.max(1,r-f)),s.push(n.substring(i-=c,i+c)),!((f+=c+1)>r));)c=e[l=(l+1)%e.length];return s.reverse().join(t)}}function Wee(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Kee=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function kc(e){if(!(t=Kee.exec(e)))throw new Error("invalid format: "+e);var t;return new YO({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]})}kc.prototype=YO.prototype;function YO(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+""}YO.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 Xee(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 T3;function Qee(e,t){var n=nm(e,t);if(!n)return e+"";var r=n[0],i=n[1],s=i-(T3=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,l=r.length;return s===l?r:s>l?r+new Array(s-l+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+nm(e,Math.max(0,t+s-1))[0]}function BR(e,t){var n=nm(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 qR={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Vee,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)=>BR(e*100,t),r:BR,s:Qee,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function UR(e){return e}var HR=Array.prototype.map,FR=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Zee(e){var t=e.grouping===void 0||e.thousands===void 0?UR:Yee(HR.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+"",s=e.numerals===void 0?UR:Wee(HR.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function d(m){m=kc(m);var g=m.fill,x=m.align,_=m.sign,S=m.symbol,w=m.zero,j=m.width,E=m.comma,A=m.precision,M=m.trim,T=m.type;T==="n"?(E=!0,T="g"):qR[T]||(A===void 0&&(A=12),M=!0,T="g"),(w||g==="0"&&x==="=")&&(w=!0,g="0",x="=");var N=S==="$"?n:S==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():"",R=S==="$"?r:/[%p]/.test(T)?l:"",D=qR[T],I=/[defgprs%]/.test(T);A=A===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,A)):Math.max(0,Math.min(20,A));function Y(z){var H=N,V=R,Q,K,k;if(T==="c")V=D(z)+V,z="";else{z=+z;var q=z<0||1/z<0;if(z=isNaN(z)?f:D(Math.abs(z),A),M&&(z=Xee(z)),q&&+z==0&&_!=="+"&&(q=!1),H=(q?_==="("?_:c:_==="-"||_==="("?"":_)+H,V=(T==="s"?FR[8+T3/3]:"")+V+(q&&_==="("?")":""),I){for(Q=-1,K=z.length;++Q<K;)if(k=z.charCodeAt(Q),48>k||k>57){V=(k===46?i+z.slice(Q+1):z.slice(Q))+V,z=z.slice(0,Q);break}}}E&&!w&&(z=t(z,1/0));var B=H.length+z.length+V.length,W=B<j?new Array(j-B+1).join(g):"";switch(E&&w&&(z=t(W+z,W.length?j-V.length:1/0),W=""),x){case"<":z=H+z+V+W;break;case"=":z=H+W+z+V;break;case"^":z=W.slice(0,B=W.length>>1)+H+z+V+W.slice(B);break;default:z=W+H+z+V;break}return s(z)}return Y.toString=function(){return m+""},Y}function v(m,g){var x=d((m=kc(m),m.type="f",m)),_=Math.max(-8,Math.min(8,Math.floor(pl(g)/3)))*3,S=Math.pow(10,-_),w=FR[8+_/3];return function(j){return x(S*j)+w}}return{format:d,formatPrefix:v}}var ih,WO,C3;Jee({thousands:",",grouping:[3],currency:["$",""]});function Jee(e){return ih=Zee(e),WO=ih.format,C3=ih.formatPrefix,ih}function ete(e){return Math.max(0,-pl(Math.abs(e)))}function tte(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(pl(t)/3)))*3-pl(Math.abs(e)))}function nte(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,pl(t)-pl(e))+1}function N3(e,t,n,r){var i=y1(e,t,n),s;switch(r=kc(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(s=tte(i,l))&&(r.precision=s),C3(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=nte(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=ete(i))&&(r.precision=s-(r.type==="%")*2);break}}return WO(r)}function Fi(e){var t=e.domain;return e.ticks=function(n){var r=t();return v1(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return N3(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,s=r.length-1,l=r[i],c=r[s],f,d,v=10;for(c<l&&(d=l,l=c,c=d,d=i,i=s,s=d);v-- >0;){if(d=g1(l,c,n),d===f)return r[i]=l,r[s]=c,t(r);if(d>0)l=Math.floor(l/d)*d,c=Math.ceil(c/d)*d;else if(d<0)l=Math.ceil(l*d)/d,c=Math.floor(c*d)/d;else break;f=d}return e},e}function rm(){var e=VO();return e.copy=function(){return jf(e,rm())},Sr.apply(e,arguments),Fi(e)}function M3(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,tm),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return M3(e).unknown(t)},e=arguments.length?Array.from(e,tm):[0,1],Fi(n)}function R3(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],s=e[r],l;return s<i&&(l=n,n=r,r=l,l=i,i=s,s=l),e[n]=t.floor(i),e[r]=t.ceil(s),e}function GR(e){return Math.log(e)}function VR(e){return Math.exp(e)}function rte(e){return-Math.log(-e)}function ate(e){return-Math.exp(-e)}function ite(e){return isFinite(e)?+("1e"+e):e<0?0:e}function ote(e){return e===10?ite:e===Math.E?Math.exp:t=>Math.pow(e,t)}function ste(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 YR(e){return(t,n)=>-e(-t,n)}function KO(e){const t=e(GR,VR),n=t.domain;let r=10,i,s;function l(){return i=ste(r),s=ote(r),n()[0]<0?(i=YR(i),s=YR(s),e(rte,ate)):e(GR,VR),t}return t.base=function(c){return arguments.length?(r=+c,l()):r},t.domain=function(c){return arguments.length?(n(c),l()):n()},t.ticks=c=>{const f=n();let d=f[0],v=f[f.length-1];const m=v<d;m&&([d,v]=[v,d]);let g=i(d),x=i(v),_,S;const w=c==null?10:+c;let j=[];if(!(r%1)&&x-g<w){if(g=Math.floor(g),x=Math.ceil(x),d>0){for(;g<=x;++g)for(_=1;_<r;++_)if(S=g<0?_/s(-g):_*s(g),!(S<d)){if(S>v)break;j.push(S)}}else for(;g<=x;++g)for(_=r-1;_>=1;--_)if(S=g>0?_/s(-g):_*s(g),!(S<d)){if(S>v)break;j.push(S)}j.length*2<w&&(j=v1(d,v,w))}else j=v1(g,x,Math.min(x-g,w)).map(s);return m?j.reverse():j},t.tickFormat=(c,f)=>{if(c==null&&(c=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=kc(f)).precision==null&&(f.trim=!0),f=WO(f)),c===1/0)return f;const d=Math.max(1,r*c/t.ticks().length);return v=>{let m=v/s(Math.round(i(v)));return m*r<r-.5&&(m*=r),m<=d?f(v):""}},t.nice=()=>n(R3(n(),{floor:c=>s(Math.floor(i(c))),ceil:c=>s(Math.ceil(i(c)))})),t}function D3(){const e=KO(xp()).domain([1,10]);return e.copy=()=>jf(e,D3()).base(e.base()),Sr.apply(e,arguments),e}function WR(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function KR(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function XO(e){var t=1,n=e(WR(t),KR(t));return n.constant=function(r){return arguments.length?e(WR(t=+r),KR(t)):t},Fi(n)}function P3(){var e=XO(xp());return e.copy=function(){return jf(e,P3()).constant(e.constant())},Sr.apply(e,arguments)}function XR(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function lte(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function ute(e){return e<0?-e*e:e*e}function QO(e){var t=e(wn,wn),n=1;function r(){return n===1?e(wn,wn):n===.5?e(lte,ute):e(XR(n),XR(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Fi(t)}function ZO(){var e=QO(xp());return e.copy=function(){return jf(e,ZO()).exponent(e.exponent())},Sr.apply(e,arguments),e}function cte(){return ZO.apply(null,arguments).exponent(.5)}function QR(e){return Math.sign(e)*e*e}function fte(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function k3(){var e=VO(),t=[0,1],n=!1,r;function i(s){var l=fte(e(s));return isNaN(l)?r:n?Math.round(l):l}return i.invert=function(s){return e.invert(QR(s))},i.domain=function(s){return arguments.length?(e.domain(s),i):e.domain()},i.range=function(s){return arguments.length?(e.range((t=Array.from(s,tm)).map(QR)),i):t.slice()},i.rangeRound=function(s){return i.range(s).round(!0)},i.round=function(s){return arguments.length?(n=!!s,i):n},i.clamp=function(s){return arguments.length?(e.clamp(s),i):e.clamp()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.copy=function(){return k3(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Sr.apply(i,arguments),Fi(i)}function $3(){var e=[],t=[],n=[],r;function i(){var l=0,c=Math.max(1,t.length);for(n=new Array(c-1);++l<c;)n[l-1]=vee(e,l/c);return s}function s(l){return l==null||isNaN(l=+l)?r:t[Of(n,l)]}return s.invertExtent=function(l){var c=t.indexOf(l);return c<0?[NaN,NaN]:[c>0?n[c-1]:e[0],c<n.length?n[c]:e[e.length-1]]},s.domain=function(l){if(!arguments.length)return e.slice();e=[];for(let c of l)c!=null&&!isNaN(c=+c)&&e.push(c);return e.sort(Di),i()},s.range=function(l){return arguments.length?(t=Array.from(l),i()):t.slice()},s.unknown=function(l){return arguments.length?(r=l,s):r},s.quantiles=function(){return n.slice()},s.copy=function(){return $3().domain(e).range(t).unknown(r)},Sr.apply(s,arguments)}function L3(){var e=0,t=1,n=1,r=[.5],i=[0,1],s;function l(f){return f!=null&&f<=f?i[Of(r,f,0,n)]:s}function c(){var f=-1;for(r=new Array(n);++f<n;)r[f]=((f+1)*t-(f-n)*e)/(n+1);return l}return l.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,c()):[e,t]},l.range=function(f){return arguments.length?(n=(i=Array.from(f)).length-1,c()):i.slice()},l.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]]},l.unknown=function(f){return arguments.length&&(s=f),l},l.thresholds=function(){return r.slice()},l.copy=function(){return L3().domain([e,t]).range(i).unknown(s)},Sr.apply(Fi(l),arguments)}function I3(){var e=[.5],t=[0,1],n,r=1;function i(s){return s!=null&&s<=s?t[Of(e,s,0,r)]:n}return i.domain=function(s){return arguments.length?(e=Array.from(s),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(s){return arguments.length?(t=Array.from(s),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(s){var l=t.indexOf(s);return[e[l-1],e[l]]},i.unknown=function(s){return arguments.length?(n=s,i):n},i.copy=function(){return I3().domain(e).range(t).unknown(n)},Sr.apply(i,arguments)}const Lx=new Date,Ix=new Date;function Xt(e,t,n,r){function i(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(e(s=new Date(+s)),s),i.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),i.round=s=>{const l=i(s),c=i.ceil(s);return s-l<c-s?l:c},i.offset=(s,l)=>(t(s=new Date(+s),l==null?1:Math.floor(l)),s),i.range=(s,l,c)=>{const f=[];if(s=i.ceil(s),c=c==null?1:Math.floor(c),!(s<l)||!(c>0))return f;let d;do f.push(d=new Date(+s)),t(s,c),e(s);while(d<s&&s<l);return f},i.filter=s=>Xt(l=>{if(l>=l)for(;e(l),!s(l);)l.setTime(l-1)},(l,c)=>{if(l>=l)if(c<0)for(;++c<=0;)for(;t(l,-1),!s(l););else for(;--c>=0;)for(;t(l,1),!s(l););}),n&&(i.count=(s,l)=>(Lx.setTime(+s),Ix.setTime(+l),e(Lx),e(Ix),Math.floor(n(Lx,Ix))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?l=>r(l)%s===0:l=>i.count(0,l)%s===0):i)),i}const am=Xt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);am.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Xt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):am);am.range;const $a=1e3,mr=$a*60,La=mr*60,Va=La*24,JO=Va*7,ZR=Va*30,zx=Va*365,_o=Xt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*$a)},(e,t)=>(t-e)/$a,e=>e.getUTCSeconds());_o.range;const e_=Xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*$a)},(e,t)=>{e.setTime(+e+t*mr)},(e,t)=>(t-e)/mr,e=>e.getMinutes());e_.range;const t_=Xt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*mr)},(e,t)=>(t-e)/mr,e=>e.getUTCMinutes());t_.range;const n_=Xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*$a-e.getMinutes()*mr)},(e,t)=>{e.setTime(+e+t*La)},(e,t)=>(t-e)/La,e=>e.getHours());n_.range;const r_=Xt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*La)},(e,t)=>(t-e)/La,e=>e.getUTCHours());r_.range;const Ef=Xt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*mr)/Va,e=>e.getDate()-1);Ef.range;const wp=Xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Va,e=>e.getUTCDate()-1);wp.range;const z3=Xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Va,e=>Math.floor(e/Va));z3.range;function Fo(e){return Xt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*mr)/JO)}const Sp=Fo(0),im=Fo(1),dte=Fo(2),hte=Fo(3),vl=Fo(4),mte=Fo(5),pte=Fo(6);Sp.range;im.range;dte.range;hte.range;vl.range;mte.range;pte.range;function Go(e){return Xt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/JO)}const Op=Go(0),om=Go(1),vte=Go(2),gte=Go(3),gl=Go(4),yte=Go(5),bte=Go(6);Op.range;om.range;vte.range;gte.range;gl.range;yte.range;bte.range;const a_=Xt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());a_.range;const i_=Xt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());i_.range;const Ya=Xt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Ya.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Xt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Ya.range;const Wa=Xt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Wa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Xt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Wa.range;function B3(e,t,n,r,i,s){const l=[[_o,1,$a],[_o,5,5*$a],[_o,15,15*$a],[_o,30,30*$a],[s,1,mr],[s,5,5*mr],[s,15,15*mr],[s,30,30*mr],[i,1,La],[i,3,3*La],[i,6,6*La],[i,12,12*La],[r,1,Va],[r,2,2*Va],[n,1,JO],[t,1,ZR],[t,3,3*ZR],[e,1,zx]];function c(d,v,m){const g=v<d;g&&([d,v]=[v,d]);const x=m&&typeof m.range=="function"?m:f(d,v,m),_=x?x.range(d,+v+1):[];return g?_.reverse():_}function f(d,v,m){const g=Math.abs(v-d)/m,x=qO(([,,w])=>w).right(l,g);if(x===l.length)return e.every(y1(d/zx,v/zx,m));if(x===0)return am.every(Math.max(y1(d,v,m),1));const[_,S]=l[g/l[x-1][2]<l[x][2]/g?x-1:x];return _.every(S)}return[c,f]}const[xte,wte]=B3(Wa,i_,Op,z3,r_,t_),[Ste,Ote]=B3(Ya,a_,Sp,Ef,n_,e_);function Bx(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 qx(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 Zu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function _te(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,s=e.days,l=e.shortDays,c=e.months,f=e.shortMonths,d=Ju(i),v=ec(i),m=Ju(s),g=ec(s),x=Ju(l),_=ec(l),S=Ju(c),w=ec(c),j=Ju(f),E=ec(f),A={a:q,A:B,b:W,B:se,c:null,d:aD,e:aD,f:Yte,g:rne,G:ine,H:Fte,I:Gte,j:Vte,L:q3,m:Wte,M:Kte,p:$,q:F,Q:sD,s:lD,S:Xte,u:Qte,U:Zte,V:Jte,w:ene,W:tne,x:null,X:null,y:nne,Y:ane,Z:one,"%":oD},M={a:X,A:ae,b:de,B:ge,c:null,d:iD,e:iD,f:cne,g:xne,G:Sne,H:sne,I:lne,j:une,L:H3,m:fne,M:dne,p:ce,q:he,Q:sD,s:lD,S:hne,u:mne,U:pne,V:vne,w:gne,W:yne,x:null,X:null,y:bne,Y:wne,Z:One,"%":oD},T={a:Y,A:z,b:H,B:V,c:Q,d:nD,e:nD,f:Bte,g:tD,G:eD,H:rD,I:rD,j:$te,L:zte,m:kte,M:Lte,p:I,q:Pte,Q:Ute,s:Hte,S:Ite,u:Cte,U:Nte,V:Mte,w:Tte,W:Rte,x:K,X:k,y:tD,Y:eD,Z:Dte,"%":qte};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(ie,me){return function(ve){var ne=[],De=-1,je=0,rt=ie.length,Xe,ft,fn;for(ve instanceof Date||(ve=new Date(+ve));++De<rt;)ie.charCodeAt(De)===37&&(ne.push(ie.slice(je,De)),(ft=JR[Xe=ie.charAt(++De)])!=null?Xe=ie.charAt(++De):ft=Xe==="e"?" ":"0",(fn=me[Xe])&&(Xe=fn(ve,ft)),ne.push(Xe),je=De+1);return ne.push(ie.slice(je,De)),ne.join("")}}function R(ie,me){return function(ve){var ne=Zu(1900,void 0,1),De=D(ne,ie,ve+="",0),je,rt;if(De!=ve.length)return null;if("Q"in ne)return new Date(ne.Q);if("s"in ne)return new Date(ne.s*1e3+("L"in ne?ne.L:0));if(me&&!("Z"in ne)&&(ne.Z=0),"p"in ne&&(ne.H=ne.H%12+ne.p*12),ne.m===void 0&&(ne.m="q"in ne?ne.q:0),"V"in ne){if(ne.V<1||ne.V>53)return null;"w"in ne||(ne.w=1),"Z"in ne?(je=qx(Zu(ne.y,0,1)),rt=je.getUTCDay(),je=rt>4||rt===0?om.ceil(je):om(je),je=wp.offset(je,(ne.V-1)*7),ne.y=je.getUTCFullYear(),ne.m=je.getUTCMonth(),ne.d=je.getUTCDate()+(ne.w+6)%7):(je=Bx(Zu(ne.y,0,1)),rt=je.getDay(),je=rt>4||rt===0?im.ceil(je):im(je),je=Ef.offset(je,(ne.V-1)*7),ne.y=je.getFullYear(),ne.m=je.getMonth(),ne.d=je.getDate()+(ne.w+6)%7)}else("W"in ne||"U"in ne)&&("w"in ne||(ne.w="u"in ne?ne.u%7:"W"in ne?1:0),rt="Z"in ne?qx(Zu(ne.y,0,1)).getUTCDay():Bx(Zu(ne.y,0,1)).getDay(),ne.m=0,ne.d="W"in ne?(ne.w+6)%7+ne.W*7-(rt+5)%7:ne.w+ne.U*7-(rt+6)%7);return"Z"in ne?(ne.H+=ne.Z/100|0,ne.M+=ne.Z%100,qx(ne)):Bx(ne)}}function D(ie,me,ve,ne){for(var De=0,je=me.length,rt=ve.length,Xe,ft;De<je;){if(ne>=rt)return-1;if(Xe=me.charCodeAt(De++),Xe===37){if(Xe=me.charAt(De++),ft=T[Xe in JR?me.charAt(De++):Xe],!ft||(ne=ft(ie,ve,ne))<0)return-1}else if(Xe!=ve.charCodeAt(ne++))return-1}return ne}function I(ie,me,ve){var ne=d.exec(me.slice(ve));return ne?(ie.p=v.get(ne[0].toLowerCase()),ve+ne[0].length):-1}function Y(ie,me,ve){var ne=x.exec(me.slice(ve));return ne?(ie.w=_.get(ne[0].toLowerCase()),ve+ne[0].length):-1}function z(ie,me,ve){var ne=m.exec(me.slice(ve));return ne?(ie.w=g.get(ne[0].toLowerCase()),ve+ne[0].length):-1}function H(ie,me,ve){var ne=j.exec(me.slice(ve));return ne?(ie.m=E.get(ne[0].toLowerCase()),ve+ne[0].length):-1}function V(ie,me,ve){var ne=S.exec(me.slice(ve));return ne?(ie.m=w.get(ne[0].toLowerCase()),ve+ne[0].length):-1}function Q(ie,me,ve){return D(ie,t,me,ve)}function K(ie,me,ve){return D(ie,n,me,ve)}function k(ie,me,ve){return D(ie,r,me,ve)}function q(ie){return l[ie.getDay()]}function B(ie){return s[ie.getDay()]}function W(ie){return f[ie.getMonth()]}function se(ie){return c[ie.getMonth()]}function $(ie){return i[+(ie.getHours()>=12)]}function F(ie){return 1+~~(ie.getMonth()/3)}function X(ie){return l[ie.getUTCDay()]}function ae(ie){return s[ie.getUTCDay()]}function de(ie){return f[ie.getUTCMonth()]}function ge(ie){return c[ie.getUTCMonth()]}function ce(ie){return i[+(ie.getUTCHours()>=12)]}function he(ie){return 1+~~(ie.getUTCMonth()/3)}return{format:function(ie){var me=N(ie+="",A);return me.toString=function(){return ie},me},parse:function(ie){var me=R(ie+="",!1);return me.toString=function(){return ie},me},utcFormat:function(ie){var me=N(ie+="",M);return me.toString=function(){return ie},me},utcParse:function(ie){var me=R(ie+="",!0);return me.toString=function(){return ie},me}}}var JR={"-":"",_:" ",0:"0"},nn=/^\s*\d+/,jte=/^%/,Ete=/[\\^$*+?|[\]().{}]/g;function nt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(t)+i:i)}function Ate(e){return e.replace(Ete,"\\$&")}function Ju(e){return new RegExp("^(?:"+e.map(Ate).join("|")+")","i")}function ec(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Tte(e,t,n){var r=nn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Cte(e,t,n){var r=nn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Nte(e,t,n){var r=nn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Mte(e,t,n){var r=nn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Rte(e,t,n){var r=nn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function eD(e,t,n){var r=nn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function tD(e,t,n){var r=nn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Dte(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 Pte(e,t,n){var r=nn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function kte(e,t,n){var r=nn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function nD(e,t,n){var r=nn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function $te(e,t,n){var r=nn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function rD(e,t,n){var r=nn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Lte(e,t,n){var r=nn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Ite(e,t,n){var r=nn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function zte(e,t,n){var r=nn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Bte(e,t,n){var r=nn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function qte(e,t,n){var r=jte.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Ute(e,t,n){var r=nn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Hte(e,t,n){var r=nn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function aD(e,t){return nt(e.getDate(),t,2)}function Fte(e,t){return nt(e.getHours(),t,2)}function Gte(e,t){return nt(e.getHours()%12||12,t,2)}function Vte(e,t){return nt(1+Ef.count(Ya(e),e),t,3)}function q3(e,t){return nt(e.getMilliseconds(),t,3)}function Yte(e,t){return q3(e,t)+"000"}function Wte(e,t){return nt(e.getMonth()+1,t,2)}function Kte(e,t){return nt(e.getMinutes(),t,2)}function Xte(e,t){return nt(e.getSeconds(),t,2)}function Qte(e){var t=e.getDay();return t===0?7:t}function Zte(e,t){return nt(Sp.count(Ya(e)-1,e),t,2)}function U3(e){var t=e.getDay();return t>=4||t===0?vl(e):vl.ceil(e)}function Jte(e,t){return e=U3(e),nt(vl.count(Ya(e),e)+(Ya(e).getDay()===4),t,2)}function ene(e){return e.getDay()}function tne(e,t){return nt(im.count(Ya(e)-1,e),t,2)}function nne(e,t){return nt(e.getFullYear()%100,t,2)}function rne(e,t){return e=U3(e),nt(e.getFullYear()%100,t,2)}function ane(e,t){return nt(e.getFullYear()%1e4,t,4)}function ine(e,t){var n=e.getDay();return e=n>=4||n===0?vl(e):vl.ceil(e),nt(e.getFullYear()%1e4,t,4)}function one(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+nt(t/60|0,"0",2)+nt(t%60,"0",2)}function iD(e,t){return nt(e.getUTCDate(),t,2)}function sne(e,t){return nt(e.getUTCHours(),t,2)}function lne(e,t){return nt(e.getUTCHours()%12||12,t,2)}function une(e,t){return nt(1+wp.count(Wa(e),e),t,3)}function H3(e,t){return nt(e.getUTCMilliseconds(),t,3)}function cne(e,t){return H3(e,t)+"000"}function fne(e,t){return nt(e.getUTCMonth()+1,t,2)}function dne(e,t){return nt(e.getUTCMinutes(),t,2)}function hne(e,t){return nt(e.getUTCSeconds(),t,2)}function mne(e){var t=e.getUTCDay();return t===0?7:t}function pne(e,t){return nt(Op.count(Wa(e)-1,e),t,2)}function F3(e){var t=e.getUTCDay();return t>=4||t===0?gl(e):gl.ceil(e)}function vne(e,t){return e=F3(e),nt(gl.count(Wa(e),e)+(Wa(e).getUTCDay()===4),t,2)}function gne(e){return e.getUTCDay()}function yne(e,t){return nt(om.count(Wa(e)-1,e),t,2)}function bne(e,t){return nt(e.getUTCFullYear()%100,t,2)}function xne(e,t){return e=F3(e),nt(e.getUTCFullYear()%100,t,2)}function wne(e,t){return nt(e.getUTCFullYear()%1e4,t,4)}function Sne(e,t){var n=e.getUTCDay();return e=n>=4||n===0?gl(e):gl.ceil(e),nt(e.getUTCFullYear()%1e4,t,4)}function One(){return"+0000"}function oD(){return"%"}function sD(e){return+e}function lD(e){return Math.floor(+e/1e3)}var qs,G3,V3;_ne({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 _ne(e){return qs=_te(e),G3=qs.format,qs.parse,V3=qs.utcFormat,qs.utcParse,qs}function jne(e){return new Date(e)}function Ene(e){return e instanceof Date?+e:+new Date(+e)}function o_(e,t,n,r,i,s,l,c,f,d){var v=VO(),m=v.invert,g=v.domain,x=d(".%L"),_=d(":%S"),S=d("%I:%M"),w=d("%I %p"),j=d("%a %d"),E=d("%b %d"),A=d("%B"),M=d("%Y");function T(N){return(f(N)<N?x:c(N)<N?_:l(N)<N?S:s(N)<N?w:r(N)<N?i(N)<N?j:E:n(N)<N?A:M)(N)}return v.invert=function(N){return new Date(m(N))},v.domain=function(N){return arguments.length?g(Array.from(N,Ene)):g().map(jne)},v.ticks=function(N){var R=g();return e(R[0],R[R.length-1],N??10)},v.tickFormat=function(N,R){return R==null?T:d(R)},v.nice=function(N){var R=g();return(!N||typeof N.range!="function")&&(N=t(R[0],R[R.length-1],N??10)),N?g(R3(R,N)):v},v.copy=function(){return jf(v,o_(e,t,n,r,i,s,l,c,f,d))},v}function Ane(){return Sr.apply(o_(Ste,Ote,Ya,a_,Sp,Ef,n_,e_,_o,G3).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Tne(){return Sr.apply(o_(xte,wte,Wa,i_,Op,wp,r_,t_,_o,V3).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function _p(){var e=0,t=1,n,r,i,s,l=wn,c=!1,f;function d(m){return m==null||isNaN(m=+m)?f:l(i===0?.5:(m=(s(m)-n)*i,c?Math.max(0,Math.min(1,m)):m))}d.domain=function(m){return arguments.length?([e,t]=m,n=s(e=+e),r=s(t=+t),i=n===r?0:1/(r-n),d):[e,t]},d.clamp=function(m){return arguments.length?(c=!!m,d):c},d.interpolator=function(m){return arguments.length?(l=m,d):l};function v(m){return function(g){var x,_;return arguments.length?([x,_]=g,l=m(x,_),d):[l(0),l(1)]}}return d.range=v(Kl),d.rangeRound=v(GO),d.unknown=function(m){return arguments.length?(f=m,d):f},function(m){return s=m,n=m(e),r=m(t),i=n===r?0:1/(r-n),d}}function Gi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Y3(){var e=Fi(_p()(wn));return e.copy=function(){return Gi(e,Y3())},Za.apply(e,arguments)}function W3(){var e=KO(_p()).domain([1,10]);return e.copy=function(){return Gi(e,W3()).base(e.base())},Za.apply(e,arguments)}function K3(){var e=XO(_p());return e.copy=function(){return Gi(e,K3()).constant(e.constant())},Za.apply(e,arguments)}function s_(){var e=QO(_p());return e.copy=function(){return Gi(e,s_()).exponent(e.exponent())},Za.apply(e,arguments)}function Cne(){return s_.apply(null,arguments).exponent(.5)}function X3(){var e=[],t=wn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Of(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(Di),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,s)=>pee(e,s/r))},n.copy=function(){return X3(t).domain(e)},Za.apply(n,arguments)}function jp(){var e=0,t=.5,n=1,r=1,i,s,l,c,f,d=wn,v,m=!1,g;function x(S){return isNaN(S=+S)?g:(S=.5+((S=+v(S))-s)*(r*S<r*s?c:f),d(m?Math.max(0,Math.min(1,S)):S))}x.domain=function(S){return arguments.length?([e,t,n]=S,i=v(e=+e),s=v(t=+t),l=v(n=+n),c=i===s?0:.5/(s-i),f=s===l?0:.5/(l-s),r=s<i?-1:1,x):[e,t,n]},x.clamp=function(S){return arguments.length?(m=!!S,x):m},x.interpolator=function(S){return arguments.length?(d=S,x):d};function _(S){return function(w){var j,E,A;return arguments.length?([j,E,A]=w,d=qee(S,[j,E,A]),x):[d(0),d(.5),d(1)]}}return x.range=_(Kl),x.rangeRound=_(GO),x.unknown=function(S){return arguments.length?(g=S,x):g},function(S){return v=S,i=S(e),s=S(t),l=S(n),c=i===s?0:.5/(s-i),f=s===l?0:.5/(l-s),r=s<i?-1:1,x}}function Q3(){var e=Fi(jp()(wn));return e.copy=function(){return Gi(e,Q3())},Za.apply(e,arguments)}function Z3(){var e=KO(jp()).domain([.1,1,10]);return e.copy=function(){return Gi(e,Z3()).base(e.base())},Za.apply(e,arguments)}function J3(){var e=XO(jp());return e.copy=function(){return Gi(e,J3()).constant(e.constant())},Za.apply(e,arguments)}function l_(){var e=QO(jp());return e.copy=function(){return Gi(e,l_()).exponent(e.exponent())},Za.apply(e,arguments)}function Nne(){return l_.apply(null,arguments).exponent(.5)}const uD=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Mc,scaleDiverging:Q3,scaleDivergingLog:Z3,scaleDivergingPow:l_,scaleDivergingSqrt:Nne,scaleDivergingSymlog:J3,scaleIdentity:M3,scaleImplicit:b1,scaleLinear:rm,scaleLog:D3,scaleOrdinal:UO,scalePoint:hc,scalePow:ZO,scaleQuantile:$3,scaleQuantize:L3,scaleRadial:k3,scaleSequential:Y3,scaleSequentialLog:W3,scaleSequentialPow:s_,scaleSequentialQuantile:X3,scaleSequentialSqrt:Cne,scaleSequentialSymlog:K3,scaleSqrt:cte,scaleSymlog:P3,scaleThreshold:I3,scaleTime:Ane,scaleUtc:Tne,tickFormat:N3},Symbol.toStringTag,{value:"Module"}));var Ux,cD;function e5(){if(cD)return Ux;cD=1;var e=Gl();function t(n,r,i){for(var s=-1,l=n.length;++s<l;){var c=n[s],f=r(c);if(f!=null&&(d===void 0?f===f&&!e(f):i(f,d)))var d=f,v=c}return v}return Ux=t,Ux}var Hx,fD;function Mne(){if(fD)return Hx;fD=1;function e(t,n){return t>n}return Hx=e,Hx}var Fx,dD;function Rne(){if(dD)return Fx;dD=1;var e=e5(),t=Mne(),n=Yl();function r(i){return i&&i.length?e(i,n,t):void 0}return Fx=r,Fx}var Dne=Rne();const Ep=gt(Dne);var Gx,hD;function Pne(){if(hD)return Gx;hD=1;function e(t,n){return t<n}return Gx=e,Gx}var Vx,mD;function kne(){if(mD)return Vx;mD=1;var e=e5(),t=Pne(),n=Yl();function r(i){return i&&i.length?e(i,n,t):void 0}return Vx=r,Vx}var $ne=kne();const Ap=gt($ne);var Yx,pD;function Lne(){if(pD)return Yx;pD=1;var e=_O(),t=Hi(),n=l3(),r=$n();function i(s,l){var c=r(s)?e:n;return c(s,t(l,3))}return Yx=i,Yx}var Wx,vD;function Ine(){if(vD)return Wx;vD=1;var e=o3(),t=Lne();function n(r,i){return e(t(r,i),1)}return Wx=n,Wx}var zne=Ine();const Bne=gt(zne);var Kx,gD;function qne(){if(gD)return Kx;gD=1;var e=LO();function t(n,r){return e(n,r)}return Kx=t,Kx}var Une=qne();const Tp=gt(Une);var Xl=1e9,Hne={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},c_,Tt=!0,xr="[DecimalError] ",To=xr+"Invalid argument: ",u_=xr+"Exponent out of range: ",Ql=Math.floor,wo=Math.pow,Fne=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Kn,tn=1e7,jt=7,t5=9007199254740991,sm=Ql(t5/jt),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,s=this;if(e=new s.constructor(e),s.s!==e.s)return s.s||-e.s;if(s.e!==e.e)return s.e>e.e^s.s<0?1:-1;for(r=s.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(s.d[t]!==e.d[t])return s.d[t]>e.d[t]^s.s<0?1:-1;return r===i?0:r>i^s.s<0?1:-1};xe.decimalPlaces=xe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*jt;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 Ua(this,new this.constructor(e))};xe.dividedToIntegerBy=xe.idiv=function(e){var t=this,n=t.constructor;return xt(Ua(t,new n(e),0,1),n.precision)};xe.equals=xe.eq=function(e){return!this.cmp(e)};xe.exponent=function(){return Ht(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,s=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Kn))throw Error(xr+"NaN");if(n.s<1)throw Error(xr+(n.s?"NaN":"-Infinity"));return n.eq(Kn)?new r(0):(Tt=!1,t=Ua($c(n,s),$c(e,s),s),Tt=!0,xt(t,i))};xe.minus=xe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?a5(t,e):n5(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(xr+"NaN");return n.s?(Tt=!1,t=Ua(n,e,0,1).times(e),Tt=!0,n.minus(t)):xt(new r(n),i)};xe.naturalExponential=xe.exp=function(){return r5(this)};xe.naturalLogarithm=xe.ln=function(){return $c(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?n5(t,e):a5(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(To+e);if(t=Ht(i)+1,r=i.d.length-1,n=r*jt+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,s,l,c=this,f=c.constructor;if(c.s<1){if(!c.s)return new f(0);throw Error(xr+"NaN")}for(e=Ht(c),Tt=!1,i=Math.sqrt(+c),i==0||i==1/0?(t=oa(c.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ql((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=l=n+3;;)if(s=r,r=s.plus(Ua(c,s,l+2)).times(.5),oa(s.d).slice(0,l)===(t=oa(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),i==l&&t=="4999"){if(xt(s,n+1,0),s.times(s).eq(c)){r=s;break}}else if(t!="9999")break;l+=4}return Tt=!0,xt(r,n)};xe.times=xe.mul=function(e){var t,n,r,i,s,l,c,f,d,v=this,m=v.constructor,g=v.d,x=(e=new m(e)).d;if(!v.s||!e.s)return new m(0);for(e.s*=v.s,n=v.e+e.e,f=g.length,d=x.length,f<d&&(s=g,g=x,x=s,l=f,f=d,d=l),s=[],l=f+d,r=l;r--;)s.push(0);for(r=d;--r>=0;){for(t=0,i=f+r;i>r;)c=s[i]+x[r]*g[i-r-1]+t,s[i--]=c%tn|0,t=c/tn|0;s[i]=(s[i]+t)%tn|0}for(;!s[--l];)s.pop();return t?++n:s.shift(),e.d=s,e.e=n,Tt?xt(e,m.precision):e};xe.toDecimalPlaces=xe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(fa(e,0,Xl),t===void 0?t=r.rounding:fa(t,0,8),xt(n,e+Ht(n)+1,t))};xe.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=ko(r,!0):(fa(e,0,Xl),t===void 0?t=i.rounding:fa(t,0,8),r=xt(new i(r),e+1,t),n=ko(r,!0,e+1)),n};xe.toFixed=function(e,t){var n,r,i=this,s=i.constructor;return e===void 0?ko(i):(fa(e,0,Xl),t===void 0?t=s.rounding:fa(t,0,8),r=xt(new s(i),e+Ht(i)+1,t),n=ko(r.abs(),!1,e+Ht(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};xe.toInteger=xe.toint=function(){var e=this,t=e.constructor;return xt(new t(e),Ht(e)+1,t.rounding)};xe.toNumber=function(){return+this};xe.toPower=xe.pow=function(e){var t,n,r,i,s,l,c=this,f=c.constructor,d=12,v=+(e=new f(e));if(!e.s)return new f(Kn);if(c=new f(c),!c.s){if(e.s<1)throw Error(xr+"Infinity");return c}if(c.eq(Kn))return c;if(r=f.precision,e.eq(Kn))return xt(c,r);if(t=e.e,n=e.d.length-1,l=t>=n,s=c.s,l){if((n=v<0?-v:v)<=t5){for(i=new f(Kn),t=Math.ceil(r/jt+4),Tt=!1;n%2&&(i=i.times(c),bD(i.d,t)),n=Ql(n/2),n!==0;)c=c.times(c),bD(c.d,t);return Tt=!0,e.s<0?new f(Kn).div(i):xt(i,r)}}else if(s<0)throw Error(xr+"NaN");return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,c.s=1,Tt=!1,i=e.times($c(c,r+d)),Tt=!0,i=r5(i),i.s=s,i};xe.toPrecision=function(e,t){var n,r,i=this,s=i.constructor;return e===void 0?(n=Ht(i),r=ko(i,n<=s.toExpNeg||n>=s.toExpPos)):(fa(e,1,Xl),t===void 0?t=s.rounding:fa(t,0,8),i=xt(new s(i),e,t),n=Ht(i),r=ko(i,e<=n||n<=s.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):(fa(e,1,Xl),t===void 0?t=r.rounding:fa(t,0,8)),xt(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=Ht(e),n=e.constructor;return ko(e,t<=n.toExpNeg||t>=n.toExpPos)};function n5(e,t){var n,r,i,s,l,c,f,d,v=e.constructor,m=v.precision;if(!e.s||!t.s)return t.s||(t=new v(e)),Tt?xt(t,m):t;if(f=e.d,d=t.d,l=e.e,i=t.e,f=f.slice(),s=l-i,s){for(s<0?(r=f,s=-s,c=d.length):(r=d,i=l,c=f.length),l=Math.ceil(m/jt),c=l>c?l+1:c+1,s>c&&(s=c,r.length=1),r.reverse();s--;)r.push(0);r.reverse()}for(c=f.length,s=d.length,c-s<0&&(s=c,r=d,d=f,f=r),n=0;s;)n=(f[--s]=f[s]+d[s]+n)/tn|0,f[s]%=tn;for(n&&(f.unshift(n),++i),c=f.length;f[--c]==0;)f.pop();return t.d=f,t.e=i,Tt?xt(t,m):t}function fa(e,t,n){if(e!==~~e||e<t||e>n)throw Error(To+e)}function oa(e){var t,n,r,i=e.length-1,s="",l=e[0];if(i>0){for(s+=l,t=1;t<i;t++)r=e[t]+"",n=jt-r.length,n&&(s+=Ci(n)),s+=r;l=e[t],r=l+"",n=jt-r.length,n&&(s+=Ci(n))}else if(l===0)return"0";for(;l%10===0;)l/=10;return s+l}var Ua=(function(){function e(r,i){var s,l=0,c=r.length;for(r=r.slice();c--;)s=r[c]*i+l,r[c]=s%tn|0,l=s/tn|0;return l&&r.unshift(l),r}function t(r,i,s,l){var c,f;if(s!=l)f=s>l?1:-1;else for(c=f=0;c<s;c++)if(r[c]!=i[c]){f=r[c]>i[c]?1:-1;break}return f}function n(r,i,s){for(var l=0;s--;)r[s]-=l,l=r[s]<i[s]?1:0,r[s]=l*tn+r[s]-i[s];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,s,l){var c,f,d,v,m,g,x,_,S,w,j,E,A,M,T,N,R,D,I=r.constructor,Y=r.s==i.s?1:-1,z=r.d,H=i.d;if(!r.s)return new I(r);if(!i.s)throw Error(xr+"Division by zero");for(f=r.e-i.e,R=H.length,T=z.length,x=new I(Y),_=x.d=[],d=0;H[d]==(z[d]||0);)++d;if(H[d]>(z[d]||0)&&--f,s==null?E=s=I.precision:l?E=s+(Ht(r)-Ht(i))+1:E=s,E<0)return new I(0);if(E=E/jt+2|0,d=0,R==1)for(v=0,H=H[0],E++;(d<T||v)&&E--;d++)A=v*tn+(z[d]||0),_[d]=A/H|0,v=A%H|0;else{for(v=tn/(H[0]+1)|0,v>1&&(H=e(H,v),z=e(z,v),R=H.length,T=z.length),M=R,S=z.slice(0,R),w=S.length;w<R;)S[w++]=0;D=H.slice(),D.unshift(0),N=H[0],H[1]>=tn/2&&++N;do v=0,c=t(H,S,R,w),c<0?(j=S[0],R!=w&&(j=j*tn+(S[1]||0)),v=j/N|0,v>1?(v>=tn&&(v=tn-1),m=e(H,v),g=m.length,w=S.length,c=t(m,S,g,w),c==1&&(v--,n(m,R<g?D:H,g))):(v==0&&(c=v=1),m=H.slice()),g=m.length,g<w&&m.unshift(0),n(S,m,w),c==-1&&(w=S.length,c=t(H,S,R,w),c<1&&(v++,n(S,R<w?D:H,w))),w=S.length):c===0&&(v++,S=[0]),_[d++]=v,c&&S[0]?S[w++]=z[M]||0:(S=[z[M]],w=1);while((M++<T||S[0]!==void 0)&&E--)}return _[0]||_.shift(),x.e=f,xt(x,l?s+Ht(x)+1:s)}})();function r5(e,t){var n,r,i,s,l,c,f=0,d=0,v=e.constructor,m=v.precision;if(Ht(e)>16)throw Error(u_+Ht(e));if(!e.s)return new v(Kn);for(Tt=!1,c=m,l=new v(.03125);e.abs().gte(.1);)e=e.times(l),d+=5;for(r=Math.log(wo(2,d))/Math.LN10*2+5|0,c+=r,n=i=s=new v(Kn),v.precision=c;;){if(i=xt(i.times(e),c),n=n.times(++f),l=s.plus(Ua(i,n,c)),oa(l.d).slice(0,c)===oa(s.d).slice(0,c)){for(;d--;)s=xt(s.times(s),c);return v.precision=m,t==null?(Tt=!0,xt(s,m)):s}s=l}}function Ht(e){for(var t=e.e*jt,n=e.d[0];n>=10;n/=10)t++;return t}function Xx(e,t,n){if(t>e.LN10.sd())throw Tt=!0,n&&(e.precision=n),Error(xr+"LN10 precision limit exceeded");return xt(new e(e.LN10),t)}function Ci(e){for(var t="";e--;)t+="0";return t}function $c(e,t){var n,r,i,s,l,c,f,d,v,m=1,g=10,x=e,_=x.d,S=x.constructor,w=S.precision;if(x.s<1)throw Error(xr+(x.s?"NaN":"-Infinity"));if(x.eq(Kn))return new S(0);if(t==null?(Tt=!1,d=w):d=t,x.eq(10))return t==null&&(Tt=!0),Xx(S,d);if(d+=g,S.precision=d,n=oa(_),r=n.charAt(0),s=Ht(x),Math.abs(s)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)x=x.times(e),n=oa(x.d),r=n.charAt(0),m++;s=Ht(x),r>1?(x=new S("0."+n),s++):x=new S(r+"."+n.slice(1))}else return f=Xx(S,d+2,w).times(s+""),x=$c(new S(r+"."+n.slice(1)),d-g).plus(f),S.precision=w,t==null?(Tt=!0,xt(x,w)):x;for(c=l=x=Ua(x.minus(Kn),x.plus(Kn),d),v=xt(x.times(x),d),i=3;;){if(l=xt(l.times(v),d),f=c.plus(Ua(l,new S(i),d)),oa(f.d).slice(0,d)===oa(c.d).slice(0,d))return c=c.times(2),s!==0&&(c=c.plus(Xx(S,d+2,w).times(s+""))),c=Ua(c,new S(m),d),S.precision=w,t==null?(Tt=!0,xt(c,w)):c;c=f,i+=2}}function yD(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=Ql(n/jt),e.d=[],r=(n+1)%jt,n<0&&(r+=jt),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=jt;r<i;)e.d.push(+t.slice(r,r+=jt));t=t.slice(r),r=jt-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Tt&&(e.e>sm||e.e<-sm))throw Error(u_+n)}else e.s=0,e.e=0,e.d=[0];return e}function xt(e,t,n){var r,i,s,l,c,f,d,v,m=e.d;for(l=1,s=m[0];s>=10;s/=10)l++;if(r=t-l,r<0)r+=jt,i=t,d=m[v=0];else{if(v=Math.ceil((r+1)/jt),s=m.length,v>=s)return e;for(d=s=m[v],l=1;s>=10;s/=10)l++;r%=jt,i=r-jt+l}if(n!==void 0&&(s=wo(10,l-i-1),c=d/s%10|0,f=t<0||m[v+1]!==void 0||d%s,f=n<4?(c||f)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||f||n==6&&(r>0?i>0?d/wo(10,l-i):0:m[v-1])%10&1||n==(e.s<0?8:7))),t<1||!m[0])return f?(s=Ht(e),m.length=1,t=t-s-1,m[0]=wo(10,(jt-t%jt)%jt),e.e=Ql(-t/jt)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(r==0?(m.length=v,s=1,v--):(m.length=v+1,s=wo(10,jt-r),m[v]=i>0?(d/wo(10,l-i)%wo(10,i)|0)*s:0),f)for(;;)if(v==0){(m[0]+=s)==tn&&(m[0]=1,++e.e);break}else{if(m[v]+=s,m[v]!=tn)break;m[v--]=0,s=1}for(r=m.length;m[--r]===0;)m.pop();if(Tt&&(e.e>sm||e.e<-sm))throw Error(u_+Ht(e));return e}function a5(e,t){var n,r,i,s,l,c,f,d,v,m,g=e.constructor,x=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),Tt?xt(t,x):t;if(f=e.d,m=t.d,r=t.e,d=e.e,f=f.slice(),l=d-r,l){for(v=l<0,v?(n=f,l=-l,c=m.length):(n=m,r=d,c=f.length),i=Math.max(Math.ceil(x/jt),c)+2,l>i&&(l=i,n.length=1),n.reverse(),i=l;i--;)n.push(0);n.reverse()}else{for(i=f.length,c=m.length,v=i<c,v&&(c=i),i=0;i<c;i++)if(f[i]!=m[i]){v=f[i]<m[i];break}l=0}for(v&&(n=f,f=m,m=n,t.s=-t.s),c=f.length,i=m.length-c;i>0;--i)f[c++]=0;for(i=m.length;i>l;){if(f[--i]<m[i]){for(s=i;s&&f[--s]===0;)f[s]=tn-1;--f[s],f[i]+=tn}f[i]-=m[i]}for(;f[--c]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,Tt?xt(t,x):t):new g(0)}function ko(e,t,n){var r,i=Ht(e),s=oa(e.d),l=s.length;return t?(n&&(r=n-l)>0?s=s.charAt(0)+"."+s.slice(1)+Ci(r):l>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(i<0?"e":"e+")+i):i<0?(s="0."+Ci(-i-1)+s,n&&(r=n-l)>0&&(s+=Ci(r))):i>=l?(s+=Ci(i+1-l),n&&(r=n-i-1)>0&&(s=s+"."+Ci(r))):((r=i+1)<l&&(s=s.slice(0,r)+"."+s.slice(r)),n&&(r=n-l)>0&&(i+1===l&&(s+="."),s+=Ci(r))),e.s<0?"-"+s:s}function bD(e,t){if(e.length>t)return e.length=t,!0}function i5(e){var t,n,r;function i(s){var l=this;if(!(l instanceof i))return new i(s);if(l.constructor=i,s instanceof i){l.s=s.s,l.e=s.e,l.d=(s=s.d)?s.slice():s;return}if(typeof s=="number"){if(s*0!==0)throw Error(To+s);if(s>0)l.s=1;else if(s<0)s=-s,l.s=-1;else{l.s=0,l.e=0,l.d=[0];return}if(s===~~s&&s<1e7){l.e=0,l.d=[s];return}return yD(l,s.toString())}else if(typeof s!="string")throw Error(To+s);if(s.charCodeAt(0)===45?(s=s.slice(1),l.s=-1):l.s=1,Fne.test(s))yD(l,s);else throw Error(To+s)}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=i5,i.config=i.set=Gne,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 Gne(e){if(!e||typeof e!="object")throw Error(xr+"Object expected");var t,n,r,i=["precision",1,Xl,"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(Ql(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(To+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(To+n+": "+r);return this}var c_=i5(Hne);Kn=new c_(1);const vt=c_;function Vne(e){return Xne(e)||Kne(e)||Wne(e)||Yne()}function Yne(){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 Wne(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 Kne(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Xne(e){if(Array.isArray(e))return O1(e)}function O1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Qne=function(t){return t},o5={},s5=function(t){return t===o5},xD=function(t){return function n(){return arguments.length===0||arguments.length===1&&s5(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},Zne=function e(t,n){return t===1?n:xD(function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var l=i.filter(function(c){return c!==o5}).length;return l>=t?n.apply(void 0,i):e(t-l,xD(function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var v=i.map(function(m){return s5(m)?f.shift():m});return n.apply(void 0,Vne(v).concat(f))}))})},Cp=function(t){return Zne(t.length,t)},_1=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},Jne=Cp(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),ere=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Qne;var i=n.reverse(),s=i[0],l=i.slice(1);return function(){return l.reduce(function(c,f){return f(c)},s.apply(void 0,arguments))}},j1=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},l5=function(t){var n=null,r=null;return function(){for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return n&&s.every(function(c,f){return c===n[f]})||(n=s,r=t.apply(void 0,s)),r}};function tre(e){var t;return e===0?t=1:t=Math.floor(new vt(e).abs().log(10).toNumber())+1,t}function nre(e,t,n){for(var r=new vt(e),i=0,s=[];r.lt(t)&&i<1e5;)s.push(r.toNumber()),r=r.add(n),i++;return s}var rre=Cp(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),are=Cp(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),ire=Cp(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Np={rangeStep:nre,getDigitCount:tre,interpolateNumber:rre,uninterpolateNumber:are,uninterpolateTruncation:ire};function E1(e){return lre(e)||sre(e)||u5(e)||ore()}function ore(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
318
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sre(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function lre(e){if(Array.isArray(e))return A1(e)}function Lc(e,t){return fre(e)||cre(e,t)||u5(e,t)||ure()}function ure(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
319
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u5(e,t){if(e){if(typeof e=="string")return A1(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 A1(e,t)}}function A1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cre(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,s=void 0;try{for(var l=e[Symbol.iterator](),c;!(r=(c=l.next()).done)&&(n.push(c.value),!(t&&n.length===t));r=!0);}catch(f){i=!0,s=f}finally{try{!r&&l.return!=null&&l.return()}finally{if(i)throw s}}return n}}function fre(e){if(Array.isArray(e))return e}function c5(e){var t=Lc(e,2),n=t[0],r=t[1],i=n,s=r;return n>r&&(i=r,s=n),[i,s]}function f5(e,t,n){if(e.lte(0))return new vt(0);var r=Np.getDigitCount(e.toNumber()),i=new vt(10).pow(r),s=e.div(i),l=r!==1?.05:.1,c=new vt(Math.ceil(s.div(l).toNumber())).add(n).mul(l),f=c.mul(i);return t?f:new vt(Math.ceil(f))}function dre(e,t,n){var r=1,i=new vt(e);if(!i.isint()&&n){var s=Math.abs(e);s<1?(r=new vt(10).pow(Np.getDigitCount(e)-1),i=new vt(Math.floor(i.div(r).toNumber())).mul(r)):s>1&&(i=new vt(Math.floor(e)))}else e===0?i=new vt(Math.floor((t-1)/2)):n||(i=new vt(Math.floor(e)));var l=Math.floor((t-1)/2),c=ere(Jne(function(f){return i.add(new vt(f-l).mul(r)).toNumber()}),_1);return c(0,t)}function d5(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 vt(0),tickMin:new vt(0),tickMax:new vt(0)};var s=f5(new vt(t).sub(e).div(n-1),r,i),l;e<=0&&t>=0?l=new vt(0):(l=new vt(e).add(t).div(2),l=l.sub(new vt(l).mod(s)));var c=Math.ceil(l.sub(e).div(s).toNumber()),f=Math.ceil(new vt(t).sub(l).div(s).toNumber()),d=c+f+1;return d>n?d5(e,t,n,r,i+1):(d<n&&(f=t>0?f+(n-d):f,c=t>0?c:c+(n-d)),{step:s,tickMin:l.sub(new vt(c).mul(s)),tickMax:l.add(new vt(f).mul(s))})}function hre(e){var t=Lc(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=Math.max(i,2),c=c5([n,r]),f=Lc(c,2),d=f[0],v=f[1];if(d===-1/0||v===1/0){var m=v===1/0?[d].concat(E1(_1(0,i-1).map(function(){return 1/0}))):[].concat(E1(_1(0,i-1).map(function(){return-1/0})),[v]);return n>r?j1(m):m}if(d===v)return dre(d,i,s);var g=d5(d,v,l,s),x=g.step,_=g.tickMin,S=g.tickMax,w=Np.rangeStep(_,S.add(new vt(.1).mul(x)),x);return n>r?j1(w):w}function mre(e,t){var n=Lc(e,2),r=n[0],i=n[1],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=c5([r,i]),c=Lc(l,2),f=c[0],d=c[1];if(f===-1/0||d===1/0)return[r,i];if(f===d)return[f];var v=Math.max(t,2),m=f5(new vt(d).sub(f).div(v-1),s,0),g=[].concat(E1(Np.rangeStep(new vt(f),new vt(d).sub(new vt(.99).mul(m)),m)),[d]);return r>i?j1(g):g}var pre=l5(hre),vre=l5(mre),gre="Invariant failed";function $o(e,t){throw new Error(gre)}var yre=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function yl(e){"@babel/helpers - typeof";return yl=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},yl(e)}function lm(){return lm=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},lm.apply(this,arguments)}function bre(e,t){return Ore(e)||Sre(e,t)||wre(e,t)||xre()}function xre(){throw new TypeError(`Invalid attempt to destructure 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 wD(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 wD(e,t)}}function wD(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 Sre(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(v){d=!0,i=v}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function Ore(e){if(Array.isArray(e))return e}function _re(e,t){if(e==null)return{};var n=jre(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jre(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 Ere(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Are(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,p5(r.key),r)}}function Tre(e,t,n){return t&&Are(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cre(e,t,n){return t=um(t),Nre(e,h5()?Reflect.construct(t,n||[],um(e).constructor):t.apply(e,n))}function Nre(e,t){if(t&&(yl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mre(e)}function Mre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(h5=function(){return!!e})()}function um(e){return um=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},um(e)}function Rre(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&&T1(e,t)}function T1(e,t){return T1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},T1(e,t)}function m5(e,t,n){return t=p5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p5(e){var t=Dre(e,"string");return yl(t)=="symbol"?t:t+""}function Dre(e,t){if(yl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Af=(function(e){function t(){return Ere(this,t),Cre(this,t,arguments)}return Rre(t,e),Tre(t,[{key:"render",value:function(){var r=this.props,i=r.offset,s=r.layout,l=r.width,c=r.dataKey,f=r.data,d=r.dataPointFormatter,v=r.xAxis,m=r.yAxis,g=_re(r,yre),x=Ve(g,!1);this.props.direction==="x"&&v.type!=="number"&&$o();var _=f.map(function(S){var w=d(S,c),j=w.x,E=w.y,A=w.value,M=w.errorVal;if(!M)return null;var T=[],N,R;if(Array.isArray(M)){var D=bre(M,2);N=D[0],R=D[1]}else N=R=M;if(s==="vertical"){var I=v.scale,Y=E+i,z=Y+l,H=Y-l,V=I(A-N),Q=I(A+R);T.push({x1:Q,y1:z,x2:Q,y2:H}),T.push({x1:V,y1:Y,x2:Q,y2:Y}),T.push({x1:V,y1:z,x2:V,y2:H})}else if(s==="horizontal"){var K=m.scale,k=j+i,q=k-l,B=k+l,W=K(A-N),se=K(A+R);T.push({x1:q,y1:se,x2:B,y2:se}),T.push({x1:k,y1:W,x2:k,y2:se}),T.push({x1:q,y1:W,x2:B,y2:W})}return L.createElement(Lt,lm({className:"recharts-errorBar",key:"bar-".concat(T.map(function($){return"".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))},x),T.map(function($){return L.createElement("line",lm({},$,{key:"line-".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))}))});return L.createElement(Lt,{className:"recharts-errorBars"},_)}}])})(L.Component);m5(Af,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});m5(Af,"displayName","ErrorBar");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 SD(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 yo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SD(Object(n),!0).forEach(function(r){Pre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pre(e,t,n){return t=kre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kre(e){var t=$re(e,"string");return Ic(t)=="symbol"?t:t+""}function $re(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)}var v5=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,s=t.legendContent,l=Yn(n,Eo);if(!l)return null;var c=Eo.defaultProps,f=c!==void 0?yo(yo({},c),l.props):{},d;return l.props&&l.props.payload?d=l.props&&l.props.payload:s==="children"?d=(r||[]).reduce(function(v,m){var g=m.item,x=m.props,_=x.sectors||x.data||[];return v.concat(_.map(function(S){return{type:l.props.iconType||g.props.legendType,value:S.name,color:S.fill,payload:S}}))},[]):d=(r||[]).map(function(v){var m=v.item,g=m.type.defaultProps,x=g!==void 0?yo(yo({},g),m.props):{},_=x.dataKey,S=x.name,w=x.legendType,j=x.hide;return{inactive:j,dataKey:_,type:f.iconType||w||"square",color:f_(m),value:S||_,payload:x}}),yo(yo(yo({},f),Eo.getWithHeight(l,i)),{},{payload:d,item:l})};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 OD(e){return Bre(e)||zre(e)||Ire(e)||Lre()}function Lre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
321
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ire(e,t){if(e){if(typeof e=="string")return C1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C1(e,t)}}function zre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bre(e){if(Array.isArray(e))return C1(e)}function C1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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 Pt(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){Js(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 Js(e,t,n){return t=qre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qre(e){var t=Ure(e,"string");return zc(t)=="symbol"?t:t+""}function Ure(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)}function Zn(e,t,n){return qe(e)||qe(t)?n:Kt(t)?gr(e,t,n):$e(t)?t(e):n}function mc(e,t,n,r){var i=Bne(e,function(c){return Zn(c,t)});if(n==="number"){var s=i.filter(function(c){return ye(c)||parseFloat(c)});return s.length?[Ap(s),Ep(s)]:[1/0,-1/0]}var l=r?i.filter(function(c){return!qe(c)}):i;return l.map(function(c){return Kt(c)||c instanceof Date?c:""})}var Hre=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,l=-1,c=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(c<=1)return 0;if(s&&s.axisType==="angleAxis"&&Math.abs(Math.abs(s.range[1]-s.range[0])-360)<=1e-6)for(var f=s.range,d=0;d<c;d++){var v=d>0?i[d-1].coordinate:i[c-1].coordinate,m=i[d].coordinate,g=d>=c-1?i[0].coordinate:i[d+1].coordinate,x=void 0;if(Pr(m-v)!==Pr(g-m)){var _=[];if(Pr(g-m)===Pr(f[1]-f[0])){x=g;var S=m+f[1]-f[0];_[0]=Math.min(S,(S+v)/2),_[1]=Math.max(S,(S+v)/2)}else{x=v;var w=g+f[1]-f[0];_[0]=Math.min(m,(w+m)/2),_[1]=Math.max(m,(w+m)/2)}var j=[Math.min(m,(x+m)/2),Math.max(m,(x+m)/2)];if(t>j[0]&&t<=j[1]||t>=_[0]&&t<=_[1]){l=i[d].index;break}}else{var E=Math.min(v,g),A=Math.max(v,g);if(t>(E+m)/2&&t<=(A+m)/2){l=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){l=r[M].index;break}return l},f_=function(t){var n,r=t,i=r.type.displayName,s=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Pt(Pt({},t.type.defaultProps),t.props):t.props,l=s.stroke,c=s.fill,f;switch(i){case"Line":f=l;break;case"Area":case"Radar":f=l&&l!=="none"?l:c;break;default:f=c;break}return f},Fre=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,s=i===void 0?{}:i;if(!s)return{};for(var l={},c=Object.keys(s),f=0,d=c.length;f<d;f++)for(var v=s[c[f]].stackGroups,m=Object.keys(v),g=0,x=m.length;g<x;g++){var _=v[m[g]],S=_.items,w=_.cateAxisId,j=S.filter(function(R){return Ba(R.type).indexOf("Bar")>=0});if(j&&j.length){var E=j[0].type.defaultProps,A=E!==void 0?Pt(Pt({},E),j[0].props):j[0].props,M=A.barSize,T=A[w];l[T]||(l[T]=[]);var N=qe(M)?n:M;l[T].push({item:j[0],stackList:j.slice(1),barSize:qe(N)?void 0:Po(N,r,0)})}}return l},Gre=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,s=t.sizeList,l=s===void 0?[]:s,c=t.maxBarSize,f=l.length;if(f<1)return null;var d=Po(n,i,0,!0),v,m=[];if(l[0].barSize===+l[0].barSize){var g=!1,x=i/f,_=l.reduce(function(M,T){return M+T.barSize||0},0);_+=(f-1)*d,_>=i&&(_-=(f-1)*d,d=0),_>=i&&x>0&&(g=!0,x*=.9,_=f*x);var S=(i-_)/2>>0,w={offset:S-d,size:0};v=l.reduce(function(M,T){var N={item:T.item,position:{offset:w.offset+w.size+d,size:g?x:T.barSize}},R=[].concat(OD(M),[N]);return w=R[R.length-1].position,T.stackList&&T.stackList.length&&T.stackList.forEach(function(D){R.push({item:D,position:w})}),R},m)}else{var j=Po(r,i,0,!0);i-2*j-(f-1)*d<=0&&(d=0);var E=(i-2*j-(f-1)*d)/f;E>1&&(E>>=0);var A=c===+c?Math.min(E,c):E;v=l.reduce(function(M,T,N){var R=[].concat(OD(M),[{item:T.item,position:{offset:j+(E+d)*N+(E-A)/2,size:A}}]);return T.stackList&&T.stackList.length&&T.stackList.forEach(function(D){R.push({item:D,position:R[R.length-1].position})}),R},m)}return v},Vre=function(t,n,r,i){var s=r.children,l=r.width,c=r.margin,f=l-(c.left||0)-(c.right||0),d=v5({children:s,legendWidth:f});if(d){var v=i||{},m=v.width,g=v.height,x=d.align,_=d.verticalAlign,S=d.layout;if((S==="vertical"||S==="horizontal"&&_==="middle")&&x!=="center"&&ye(t[x]))return Pt(Pt({},t),{},Js({},x,t[x]+(m||0)));if((S==="horizontal"||S==="vertical"&&x==="center")&&_!=="middle"&&ye(t[_]))return Pt(Pt({},t),{},Js({},_,t[_]+(g||0)))}return t},Yre=function(t,n,r){return qe(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},g5=function(t,n,r,i,s){var l=n.props.children,c=yr(l,Af).filter(function(d){return Yre(i,s,d.props.direction)});if(c&&c.length){var f=c.map(function(d){return d.props.dataKey});return t.reduce(function(d,v){var m=Zn(v,r);if(qe(m))return d;var g=Array.isArray(m)?[Ap(m),Ep(m)]:[m,m],x=f.reduce(function(_,S){var w=Zn(v,S,0),j=g[0]-Math.abs(Array.isArray(w)?w[0]:w),E=g[1]+Math.abs(Array.isArray(w)?w[1]:w);return[Math.min(j,_[0]),Math.max(E,_[1])]},[1/0,-1/0]);return[Math.min(x[0],d[0]),Math.max(x[1],d[1])]},[1/0,-1/0])}return null},Wre=function(t,n,r,i,s){var l=n.map(function(c){return g5(t,c,r,s,i)}).filter(function(c){return!qe(c)});return l&&l.length?l.reduce(function(c,f){return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]):null},y5=function(t,n,r,i,s){var l=n.map(function(f){var d=f.props.dataKey;return r==="number"&&d&&g5(t,f,d,i)||mc(t,d,r,s)});if(r==="number")return l.reduce(function(f,d){return[Math.min(f[0],d[0]),Math.max(f[1],d[1])]},[1/0,-1/0]);var c={};return l.reduce(function(f,d){for(var v=0,m=d.length;v<m;v++)c[d[v]]||(c[d[v]]=!0,f.push(d[v]));return f},[])},b5=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},x5=function(t,n,r,i){if(i)return t.map(function(f){return f.coordinate});var s,l,c=t.map(function(f){return f.coordinate===n&&(s=!0),f.coordinate===r&&(l=!0),f.coordinate});return s||c.push(n),l||c.push(r),c},Ia=function(t,n,r){if(!t)return null;var i=t.scale,s=t.duplicateDomain,l=t.type,c=t.range,f=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,d=(n||r)&&l==="category"&&i.bandwidth?i.bandwidth()/f:0;if(d=t.axisType==="angleAxis"&&(c==null?void 0:c.length)>=2?Pr(c[0]-c[1])*2*d:d,n&&(t.ticks||t.niceTicks)){var v=(t.ticks||t.niceTicks).map(function(m){var g=s?s.indexOf(m):m;return{coordinate:i(g)+d,value:m,offset:d}});return v.filter(function(m){return!xf(m.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(m,g){return{coordinate:i(m)+d,value:m,index:g,offset:d}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(m){return{coordinate:i(m)+d,value:m,offset:d}}):i.domain().map(function(m,g){return{coordinate:i(m)+d,value:s?s[m]:m,index:g,offset:d}})},Qx=new WeakMap,oh=function(t,n){if(typeof n!="function")return t;Qx.has(t)||Qx.set(t,new WeakMap);var r=Qx.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},Kre=function(t,n,r){var i=t.scale,s=t.type,l=t.layout,c=t.axisType;if(i==="auto")return l==="radial"&&c==="radiusAxis"?{scale:Mc(),realScaleType:"band"}:l==="radial"&&c==="angleAxis"?{scale:rm(),realScaleType:"linear"}:s==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:hc(),realScaleType:"point"}:s==="category"?{scale:Mc(),realScaleType:"band"}:{scale:rm(),realScaleType:"linear"};if(Do(i)){var f="scale".concat(hp(i));return{scale:(uD[f]||hc)(),realScaleType:uD[f]?f:"point"}}return $e(i)?{scale:i}:{scale:hc(),realScaleType:"point"}},jD=1e-4,Xre=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),s=Math.min(i[0],i[1])-jD,l=Math.max(i[0],i[1])+jD,c=t(n[0]),f=t(n[r-1]);(c<s||c>l||f<s||f>l)&&t.domain([n[0],n[r-1]])}},Qre=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},Zre=function(t,n){if(!n||n.length!==2||!ye(n[0])||!ye(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),s=[t[0],t[1]];return(!ye(t[0])||t[0]<r)&&(s[0]=r),(!ye(t[1])||t[1]>i)&&(s[1]=i),s[0]>i&&(s[0]=i),s[1]<r&&(s[1]=r),s},Jre=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var s=0,l=0,c=0;c<n;++c){var f=xf(t[c][r][1])?t[c][r][0]:t[c][r][1];f>=0?(t[c][r][0]=s,t[c][r][1]=s+f,s=t[c][r][1]):(t[c][r][0]=l,t[c][r][1]=l+f,l=t[c][r][1])}},eae=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var s=0,l=0;l<n;++l){var c=xf(t[l][r][1])?t[l][r][0]:t[l][r][1];c>=0?(t[l][r][0]=s,t[l][r][1]=s+c,s=t[l][r][1]):(t[l][r][0]=0,t[l][r][1]=0)}},tae={sign:Jre,expand:LX,none:cl,silhouette:IX,wiggle:zX,positive:eae},nae=function(t,n,r){var i=n.map(function(c){return c.props.dataKey}),s=tae[r],l=$X().keys(i).value(function(c,f){return+Zn(c,f,0)}).order(i1).offset(s);return l(t)},rae=function(t,n,r,i,s,l){if(!t)return null;var c=l?n.reverse():n,f={},d=c.reduce(function(m,g){var x,_=(x=g.type)!==null&&x!==void 0&&x.defaultProps?Pt(Pt({},g.type.defaultProps),g.props):g.props,S=_.stackId,w=_.hide;if(w)return m;var j=_[r],E=m[j]||{hasStack:!1,stackGroups:{}};if(Kt(S)){var A=E.stackGroups[S]||{numericAxisId:r,cateAxisId:i,items:[]};A.items.push(g),E.hasStack=!0,E.stackGroups[S]=A}else E.stackGroups[wf("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[g]};return Pt(Pt({},m),{},Js({},j,E))},f),v={};return Object.keys(d).reduce(function(m,g){var x=d[g];if(x.hasStack){var _={};x.stackGroups=Object.keys(x.stackGroups).reduce(function(S,w){var j=x.stackGroups[w];return Pt(Pt({},S),{},Js({},w,{numericAxisId:r,cateAxisId:i,items:j.items,stackedData:nae(t,j.items,s)}))},_)}return Pt(Pt({},m),{},Js({},g,x))},v)},aae=function(t,n){var r=n.realScaleType,i=n.type,s=n.tickCount,l=n.originalDomain,c=n.allowDecimals,f=r||n.scale;if(f!=="auto"&&f!=="linear")return null;if(s&&i==="number"&&l&&(l[0]==="auto"||l[1]==="auto")){var d=t.domain();if(!d.length)return null;var v=pre(d,s,c);return t.domain([Ap(v),Ep(v)]),{niceTicks:v}}if(s&&i==="number"){var m=t.domain(),g=vre(m,s,c);return{niceTicks:g}}return null};function ED(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,s=e.index,l=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!qe(i[t.dataKey])){var c=Lh(n,"value",i[t.dataKey]);if(c)return c.coordinate+r/2}return n[s]?n[s].coordinate+r/2:null}var f=Zn(i,qe(l)?t.dataKey:l);return qe(f)?null:t.scale(f)}var AD=function(t){var n=t.axis,r=t.ticks,i=t.offset,s=t.bandSize,l=t.entry,c=t.index;if(n.type==="category")return r[c]?r[c].coordinate+i:null;var f=Zn(l,n.dataKey,n.domain[c]);return qe(f)?null:n.scale(f)-s/2+i},iae=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),s=Math.max(r[0],r[1]);return i<=0&&s>=0?0:s<0?s:i}return r[0]},oae=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Pt(Pt({},t.type.defaultProps),t.props):t.props,s=i.stackId;if(Kt(s)){var l=n[s];if(l){var c=l.items.indexOf(t);return c>=0?l.stackedData[c]:null}}return null},sae=function(t){return t.reduce(function(n,r){return[Ap(r.concat([n[0]]).filter(ye)),Ep(r.concat([n[1]]).filter(ye))]},[1/0,-1/0])},w5=function(t,n,r){return Object.keys(t).reduce(function(i,s){var l=t[s],c=l.stackedData,f=c.reduce(function(d,v){var m=sae(v.slice(n,r+1));return[Math.min(d[0],m[0]),Math.max(d[1],m[1])]},[1/0,-1/0]);return[Math.min(f[0],i[0]),Math.max(f[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},TD=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,CD=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,N1=function(t,n,r){if($e(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(ye(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(TD.test(t[0])){var s=+TD.exec(t[0])[1];i[0]=n[0]-s}else $e(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(ye(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(CD.test(t[1])){var l=+CD.exec(t[1])[1];i[1]=n[1]+l}else $e(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},cm=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 s=zO(n,function(m){return m.coordinate}),l=1/0,c=1,f=s.length;c<f;c++){var d=s[c],v=s[c-1];l=Math.min((d.coordinate||0)-(v.coordinate||0),l)}return l===1/0?0:l}return r?void 0:0},ND=function(t,n,r){return!t||!t.length||Tp(t,gr(r,"type.defaultProps.domain"))?n:t},S5=function(t,n){var r=t.type.defaultProps?Pt(Pt({},t.type.defaultProps),t.props):t.props,i=r.dataKey,s=r.name,l=r.unit,c=r.formatter,f=r.tooltipType,d=r.chartType,v=r.hide;return Pt(Pt({},Ve(t,!1)),{},{dataKey:i,unit:l,formatter:c,name:s||i,color:f_(t),value:Zn(n,i),type:f,payload:n,chartType:d,hide:v})};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 MD(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 RD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MD(Object(n),!0).forEach(function(r){lae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lae(e,t,n){return t=uae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uae(e){var t=cae(e,"string");return Bc(t)=="symbol"?t:t+""}function cae(e,t){if(Bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fm=Math.PI/180,fae=function(t){return t*180/Math.PI},cn=function(t,n,r,i){return{x:t+Math.cos(-fm*i)*r,y:n+Math.sin(-fm*i)*r}},dae=function(t,n){var r=t.x,i=t.y,s=n.x,l=n.y;return Math.sqrt(Math.pow(r-s,2)+Math.pow(i-l,2))},hae=function(t,n){var r=t.x,i=t.y,s=n.cx,l=n.cy,c=dae({x:r,y:i},{x:s,y:l});if(c<=0)return{radius:c};var f=(r-s)/c,d=Math.acos(f);return i>l&&(d=2*Math.PI-d),{radius:c,angle:fae(d),angleInRadian:d}},mae=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),s=Math.floor(r/360),l=Math.min(i,s);return{startAngle:n-l*360,endAngle:r-l*360}},pae=function(t,n){var r=n.startAngle,i=n.endAngle,s=Math.floor(r/360),l=Math.floor(i/360),c=Math.min(s,l);return t+c*360},DD=function(t,n){var r=t.x,i=t.y,s=hae({x:r,y:i},n),l=s.radius,c=s.angle,f=n.innerRadius,d=n.outerRadius;if(l<f||l>d)return!1;if(l===0)return!0;var v=mae(n),m=v.startAngle,g=v.endAngle,x=c,_;if(m<=g){for(;x>g;)x-=360;for(;x<m;)x+=360;_=x>=m&&x<=g}else{for(;x>m;)x-=360;for(;x<g;)x+=360;_=x>=g&&x<=m}return _?RD(RD({},n),{},{radius:l,angle:pae(x,n)}):null};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)}var vae=["offset"];function gae(e){return wae(e)||xae(e)||bae(e)||yae()}function yae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
322
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bae(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 xae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wae(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 Sae(e,t){if(e==null)return{};var n=Oae(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Oae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function 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 Wt(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){_ae(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 _ae(e,t,n){return t=jae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jae(e){var t=Eae(e,"string");return qc(t)=="symbol"?t:t+""}function Eae(e,t){if(qc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Uc(){return Uc=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},Uc.apply(this,arguments)}var Aae=function(t){var n=t.value,r=t.formatter,i=qe(t.children)?n:t.children;return $e(r)?r(i):i},Tae=function(t,n){var r=Pr(n-t),i=Math.min(Math.abs(n-t),360);return r*i},Cae=function(t,n,r){var i=t.position,s=t.viewBox,l=t.offset,c=t.className,f=s,d=f.cx,v=f.cy,m=f.innerRadius,g=f.outerRadius,x=f.startAngle,_=f.endAngle,S=f.clockWise,w=(m+g)/2,j=Tae(x,_),E=j>=0?1:-1,A,M;i==="insideStart"?(A=x+E*l,M=S):i==="insideEnd"?(A=_-E*l,M=!S):i==="end"&&(A=_+E*l,M=S),M=j<=0?M:!M;var T=cn(d,v,w,A),N=cn(d,v,w,A+(M?1:-1)*359),R="M".concat(T.x,",").concat(T.y,`
|
|
323
|
+
A`).concat(w,",").concat(w,",0,1,").concat(M?0:1,`,
|
|
324
|
+
`).concat(N.x,",").concat(N.y),D=qe(t.id)?wf("recharts-radial-line-"):t.id;return L.createElement("text",Uc({},r,{dominantBaseline:"central",className:Ye("recharts-radial-bar-label",c)}),L.createElement("defs",null,L.createElement("path",{id:D,d:R})),L.createElement("textPath",{xlinkHref:"#".concat(D)},n))},Nae=function(t){var n=t.viewBox,r=t.offset,i=t.position,s=n,l=s.cx,c=s.cy,f=s.innerRadius,d=s.outerRadius,v=s.startAngle,m=s.endAngle,g=(v+m)/2;if(i==="outside"){var x=cn(l,c,d+r,g),_=x.x,S=x.y;return{x:_,y:S,textAnchor:_>=l?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"end"};var w=(f+d)/2,j=cn(l,c,w,g),E=j.x,A=j.y;return{x:E,y:A,textAnchor:"middle",verticalAnchor:"middle"}},Mae=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,s=t.position,l=n,c=l.x,f=l.y,d=l.width,v=l.height,m=v>=0?1:-1,g=m*i,x=m>0?"end":"start",_=m>0?"start":"end",S=d>=0?1:-1,w=S*i,j=S>0?"end":"start",E=S>0?"start":"end";if(s==="top"){var A={x:c+d/2,y:f-m*i,textAnchor:"middle",verticalAnchor:x};return Wt(Wt({},A),r?{height:Math.max(f-r.y,0),width:d}:{})}if(s==="bottom"){var M={x:c+d/2,y:f+v+g,textAnchor:"middle",verticalAnchor:_};return Wt(Wt({},M),r?{height:Math.max(r.y+r.height-(f+v),0),width:d}:{})}if(s==="left"){var T={x:c-w,y:f+v/2,textAnchor:j,verticalAnchor:"middle"};return Wt(Wt({},T),r?{width:Math.max(T.x-r.x,0),height:v}:{})}if(s==="right"){var N={x:c+d+w,y:f+v/2,textAnchor:E,verticalAnchor:"middle"};return Wt(Wt({},N),r?{width:Math.max(r.x+r.width-N.x,0),height:v}:{})}var R=r?{width:d,height:v}:{};return s==="insideLeft"?Wt({x:c+w,y:f+v/2,textAnchor:E,verticalAnchor:"middle"},R):s==="insideRight"?Wt({x:c+d-w,y:f+v/2,textAnchor:j,verticalAnchor:"middle"},R):s==="insideTop"?Wt({x:c+d/2,y:f+g,textAnchor:"middle",verticalAnchor:_},R):s==="insideBottom"?Wt({x:c+d/2,y:f+v-g,textAnchor:"middle",verticalAnchor:x},R):s==="insideTopLeft"?Wt({x:c+w,y:f+g,textAnchor:E,verticalAnchor:_},R):s==="insideTopRight"?Wt({x:c+d-w,y:f+g,textAnchor:j,verticalAnchor:_},R):s==="insideBottomLeft"?Wt({x:c+w,y:f+v-g,textAnchor:E,verticalAnchor:x},R):s==="insideBottomRight"?Wt({x:c+d-w,y:f+v-g,textAnchor:j,verticalAnchor:x},R):Vl(s)&&(ye(s.x)||So(s.x))&&(ye(s.y)||So(s.y))?Wt({x:c+Po(s.x,d),y:f+Po(s.y,v),textAnchor:"end",verticalAnchor:"end"},R):Wt({x:c+d/2,y:f+v/2,textAnchor:"middle",verticalAnchor:"middle"},R)},Rae=function(t){return"cx"in t&&ye(t.cx)};function vn(e){var t=e.offset,n=t===void 0?5:t,r=Sae(e,vae),i=Wt({offset:n},r),s=i.viewBox,l=i.position,c=i.value,f=i.children,d=i.content,v=i.className,m=v===void 0?"":v,g=i.textBreakAll;if(!s||qe(c)&&qe(f)&&!O.isValidElement(d)&&!$e(d))return null;if(O.isValidElement(d))return O.cloneElement(d,i);var x;if($e(d)){if(x=O.createElement(d,i),O.isValidElement(x))return x}else x=Aae(i);var _=Rae(s),S=Ve(i,!0);if(_&&(l==="insideStart"||l==="insideEnd"||l==="end"))return Cae(i,x,S);var w=_?Nae(i):Mae(i);return L.createElement(Xh,Uc({className:Ye("recharts-label",m)},S,w,{breakAll:g}),x)}vn.displayName="Label";var O5=function(t){var n=t.cx,r=t.cy,i=t.angle,s=t.startAngle,l=t.endAngle,c=t.r,f=t.radius,d=t.innerRadius,v=t.outerRadius,m=t.x,g=t.y,x=t.top,_=t.left,S=t.width,w=t.height,j=t.clockWise,E=t.labelViewBox;if(E)return E;if(ye(S)&&ye(w)){if(ye(m)&&ye(g))return{x:m,y:g,width:S,height:w};if(ye(x)&&ye(_))return{x,y:_,width:S,height:w}}return ye(m)&&ye(g)?{x:m,y:g,width:0,height:0}:ye(n)&&ye(r)?{cx:n,cy:r,startAngle:s||i||0,endAngle:l||i||0,innerRadius:d||0,outerRadius:v||f||c||0,clockWise:j}:t.viewBox?t.viewBox:{}},Dae=function(t,n){return t?t===!0?L.createElement(vn,{key:"label-implicit",viewBox:n}):Kt(t)?L.createElement(vn,{key:"label-implicit",viewBox:n,value:t}):O.isValidElement(t)?t.type===vn?O.cloneElement(t,{key:"label-implicit",viewBox:n}):L.createElement(vn,{key:"label-implicit",content:t,viewBox:n}):$e(t)?L.createElement(vn,{key:"label-implicit",content:t,viewBox:n}):Vl(t)?L.createElement(vn,Uc({viewBox:n},t,{key:"label-implicit"})):null:null},Pae=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,s=O5(t),l=yr(i,vn).map(function(f,d){return O.cloneElement(f,{viewBox:n||s,key:"label-".concat(d)})});if(!r)return l;var c=Dae(t.label,n||s);return[c].concat(gae(l))};vn.parseViewBox=O5;vn.renderCallByParent=Pae;var Zx,kD;function kae(){if(kD)return Zx;kD=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return Zx=e,Zx}var $ae=kae();const Lae=gt($ae);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)}var Iae=["valueAccessor"],zae=["data","dataKey","clockWise","id","textBreakAll"];function Bae(e){return Fae(e)||Hae(e)||Uae(e)||qae()}function qae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
325
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uae(e,t){if(e){if(typeof e=="string")return R1(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 R1(e,t)}}function Hae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Fae(e){if(Array.isArray(e))return R1(e)}function R1(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 dm(){return dm=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},dm.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 LD(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){Gae(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 Gae(e,t,n){return t=Vae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vae(e){var t=Yae(e,"string");return Hc(t)=="symbol"?t:t+""}function Yae(e,t){if(Hc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ID(e,t){if(e==null)return{};var n=Wae(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Wae(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 Kae=function(t){return Array.isArray(t.value)?Lae(t.value):t.value};function Pi(e){var t=e.valueAccessor,n=t===void 0?Kae:t,r=ID(e,Iae),i=r.data,s=r.dataKey,l=r.clockWise,c=r.id,f=r.textBreakAll,d=ID(r,zae);return!i||!i.length?null:L.createElement(Lt,{className:"recharts-label-list"},i.map(function(v,m){var g=qe(s)?n(v,m):Zn(v&&v.payload,s),x=qe(c)?{}:{id:"".concat(c,"-").concat(m)};return L.createElement(vn,dm({},Ve(v,!0),d,x,{parentViewBox:v.parentViewBox,value:g,textBreakAll:f,viewBox:vn.parseViewBox(qe(l)?v:LD(LD({},v),{},{clockWise:l})),key:"label-".concat(m),index:m}))}))}Pi.displayName="LabelList";function Xae(e,t){return e?e===!0?L.createElement(Pi,{key:"labelList-implicit",data:t}):L.isValidElement(e)||$e(e)?L.createElement(Pi,{key:"labelList-implicit",data:t,content:e}):Vl(e)?L.createElement(Pi,dm({data:t},e,{key:"labelList-implicit"})):null:null}function Qae(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=yr(r,Pi).map(function(l,c){return O.cloneElement(l,{data:t,key:"labelList-".concat(c)})});if(!n)return i;var s=Xae(e.label,t);return[s].concat(Bae(i))}Pi.renderCallByParent=Qae;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 D1(){return D1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D1.apply(this,arguments)}function zD(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 BD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zD(Object(n),!0).forEach(function(r){Zae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zae(e,t,n){return t=Jae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jae(e){var t=eie(e,"string");return Fc(t)=="symbol"?t:t+""}function eie(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 tie=function(t,n){var r=Pr(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},sh=function(t){var n=t.cx,r=t.cy,i=t.radius,s=t.angle,l=t.sign,c=t.isExternal,f=t.cornerRadius,d=t.cornerIsExternal,v=f*(c?1:-1)+i,m=Math.asin(f/v)/fm,g=d?s:s+l*m,x=cn(n,r,v,g),_=cn(n,r,i,g),S=d?s-l*m:s,w=cn(n,r,v*Math.cos(m*fm),S);return{center:x,circleTangency:_,lineTangency:w,theta:m}},_5=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,s=t.outerRadius,l=t.startAngle,c=t.endAngle,f=tie(l,c),d=l+f,v=cn(n,r,s,l),m=cn(n,r,s,d),g="M ".concat(v.x,",").concat(v.y,`
|
|
326
|
+
A `).concat(s,",").concat(s,`,0,
|
|
327
|
+
`).concat(+(Math.abs(f)>180),",").concat(+(l>d),`,
|
|
328
|
+
`).concat(m.x,",").concat(m.y,`
|
|
329
|
+
`);if(i>0){var x=cn(n,r,i,l),_=cn(n,r,i,d);g+="L ".concat(_.x,",").concat(_.y,`
|
|
330
|
+
A `).concat(i,",").concat(i,`,0,
|
|
331
|
+
`).concat(+(Math.abs(f)>180),",").concat(+(l<=d),`,
|
|
332
|
+
`).concat(x.x,",").concat(x.y," Z")}else g+="L ".concat(n,",").concat(r," Z");return g},nie=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,s=t.outerRadius,l=t.cornerRadius,c=t.forceCornerRadius,f=t.cornerIsExternal,d=t.startAngle,v=t.endAngle,m=Pr(v-d),g=sh({cx:n,cy:r,radius:s,angle:d,sign:m,cornerRadius:l,cornerIsExternal:f}),x=g.circleTangency,_=g.lineTangency,S=g.theta,w=sh({cx:n,cy:r,radius:s,angle:v,sign:-m,cornerRadius:l,cornerIsExternal:f}),j=w.circleTangency,E=w.lineTangency,A=w.theta,M=f?Math.abs(d-v):Math.abs(d-v)-S-A;if(M<0)return c?"M ".concat(_.x,",").concat(_.y,`
|
|
333
|
+
a`).concat(l,",").concat(l,",0,0,1,").concat(l*2,`,0
|
|
334
|
+
a`).concat(l,",").concat(l,",0,0,1,").concat(-l*2,`,0
|
|
335
|
+
`):_5({cx:n,cy:r,innerRadius:i,outerRadius:s,startAngle:d,endAngle:v});var T="M ".concat(_.x,",").concat(_.y,`
|
|
336
|
+
A`).concat(l,",").concat(l,",0,0,").concat(+(m<0),",").concat(x.x,",").concat(x.y,`
|
|
337
|
+
A`).concat(s,",").concat(s,",0,").concat(+(M>180),",").concat(+(m<0),",").concat(j.x,",").concat(j.y,`
|
|
338
|
+
A`).concat(l,",").concat(l,",0,0,").concat(+(m<0),",").concat(E.x,",").concat(E.y,`
|
|
339
|
+
`);if(i>0){var N=sh({cx:n,cy:r,radius:i,angle:d,sign:m,isExternal:!0,cornerRadius:l,cornerIsExternal:f}),R=N.circleTangency,D=N.lineTangency,I=N.theta,Y=sh({cx:n,cy:r,radius:i,angle:v,sign:-m,isExternal:!0,cornerRadius:l,cornerIsExternal:f}),z=Y.circleTangency,H=Y.lineTangency,V=Y.theta,Q=f?Math.abs(d-v):Math.abs(d-v)-I-V;if(Q<0&&l===0)return"".concat(T,"L").concat(n,",").concat(r,"Z");T+="L".concat(H.x,",").concat(H.y,`
|
|
340
|
+
A`).concat(l,",").concat(l,",0,0,").concat(+(m<0),",").concat(z.x,",").concat(z.y,`
|
|
341
|
+
A`).concat(i,",").concat(i,",0,").concat(+(Q>180),",").concat(+(m>0),",").concat(R.x,",").concat(R.y,`
|
|
342
|
+
A`).concat(l,",").concat(l,",0,0,").concat(+(m<0),",").concat(D.x,",").concat(D.y,"Z")}else T+="L".concat(n,",").concat(r,"Z");return T},rie={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},j5=function(t){var n=BD(BD({},rie),t),r=n.cx,i=n.cy,s=n.innerRadius,l=n.outerRadius,c=n.cornerRadius,f=n.forceCornerRadius,d=n.cornerIsExternal,v=n.startAngle,m=n.endAngle,g=n.className;if(l<s||v===m)return null;var x=Ye("recharts-sector",g),_=l-s,S=Po(c,_,0,!0),w;return S>0&&Math.abs(v-m)<360?w=nie({cx:r,cy:i,innerRadius:s,outerRadius:l,cornerRadius:Math.min(S,_/2),forceCornerRadius:f,cornerIsExternal:d,startAngle:v,endAngle:m}):w=_5({cx:r,cy:i,innerRadius:s,outerRadius:l,startAngle:v,endAngle:m}),L.createElement("path",D1({},Ve(n,!0),{className:x,d:w,role:"img"}))};function Gc(e){"@babel/helpers - typeof";return Gc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gc(e)}function P1(){return P1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P1.apply(this,arguments)}function qD(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 UD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qD(Object(n),!0).forEach(function(r){aie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aie(e,t,n){return t=iie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iie(e){var t=oie(e,"string");return Gc(t)=="symbol"?t:t+""}function oie(e,t){if(Gc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HD={curveBasisClosed:jX,curveBasisOpen:EX,curveBasis:_X,curveBumpX:cX,curveBumpY:fX,curveLinearClosed:AX,curveLinear:pp,curveMonotoneX:TX,curveMonotoneY:CX,curveNatural:NX,curveStep:MX,curveStepAfter:DX,curveStepBefore:RX},lh=function(t){return t.x===+t.x&&t.y===+t.y},tc=function(t){return t.x},nc=function(t){return t.y},sie=function(t,n){if($e(t))return t;var r="curve".concat(hp(t));return(r==="curveMonotone"||r==="curveBump")&&n?HD["".concat(r).concat(n==="vertical"?"Y":"X")]:HD[r]||pp},lie=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,s=i===void 0?[]:i,l=t.baseLine,c=t.layout,f=t.connectNulls,d=f===void 0?!1:f,v=sie(r,c),m=d?s.filter(function(S){return lh(S)}):s,g;if(Array.isArray(l)){var x=d?l.filter(function(S){return lh(S)}):l,_=m.map(function(S,w){return UD(UD({},S),{},{base:x[w]})});return c==="vertical"?g=Jd().y(nc).x1(tc).x0(function(S){return S.base.x}):g=Jd().x(tc).y1(nc).y0(function(S){return S.base.y}),g.defined(lh).curve(v),g(_)}return c==="vertical"&&ye(l)?g=Jd().y(nc).x1(tc).x0(l):ye(l)?g=Jd().x(tc).y1(nc).y0(l):g=C4().x(tc).y(nc),g.defined(lh).curve(v),g(m)},k1=function(t){var n=t.className,r=t.points,i=t.path,s=t.pathRef;if((!r||!r.length)&&!i)return null;var l=r&&r.length?lie(t):i;return O.createElement("path",P1({},Ve(t,!1),Ih(t),{className:Ye("recharts-curve",n),d:l,ref:s}))},Jx={exports:{}},ew,FD;function uie(){if(FD)return ew;FD=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ew=e,ew}var tw,GD;function cie(){if(GD)return tw;GD=1;var e=uie();function t(){}function n(){}return n.resetWarningCache=t,tw=function(){function r(l,c,f,d,v,m){if(m!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var s={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 s.PropTypes=s,s},tw}var VD;function fie(){return VD||(VD=1,Jx.exports=cie()()),Jx.exports}var die=fie();const ot=gt(die),{getOwnPropertyNames:hie,getOwnPropertySymbols:mie}=Object,{hasOwnProperty:pie}=Object.prototype;function nw(e,t){return function(r,i,s){return e(r,i,s)&&t(r,i,s)}}function uh(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);const{cache:s}=i,l=s.get(n),c=s.get(r);if(l&&c)return l===r&&c===n;s.set(n,r),s.set(r,n);const f=e(n,r,i);return s.delete(n),s.delete(r),f}}function vie(e){return e!=null?e[Symbol.toStringTag]:void 0}function YD(e){return hie(e).concat(mie(e))}const gie=Object.hasOwn||((e,t)=>pie.call(e,t));function Vo(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const yie="__v",bie="__o",xie="_owner",{getOwnPropertyDescriptor:WD,keys:KD}=Object;function wie(e,t){return e.byteLength===t.byteLength&&hm(new Uint8Array(e),new Uint8Array(t))}function Sie(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Oie(e,t){return e.byteLength===t.byteLength&&hm(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function _ie(e,t){return Vo(e.getTime(),t.getTime())}function jie(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Eie(e,t){return e===t}function XD(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),s=e.entries();let l,c,f=0;for(;(l=s.next())&&!l.done;){const d=t.entries();let v=!1,m=0;for(;(c=d.next())&&!c.done;){if(i[m]){m++;continue}const g=l.value,x=c.value;if(n.equals(g[0],x[0],f,m,e,t,n)&&n.equals(g[1],x[1],g[0],x[0],e,t,n)){v=i[m]=!0;break}m++}if(!v)return!1;f++}return!0}const Aie=Vo;function Tie(e,t,n){const r=KD(e);let i=r.length;if(KD(t).length!==i)return!1;for(;i-- >0;)if(!E5(e,t,n,r[i]))return!1;return!0}function rc(e,t,n){const r=YD(e);let i=r.length;if(YD(t).length!==i)return!1;let s,l,c;for(;i-- >0;)if(s=r[i],!E5(e,t,n,s)||(l=WD(e,s),c=WD(t,s),(l||c)&&(!l||!c||l.configurable!==c.configurable||l.enumerable!==c.enumerable||l.writable!==c.writable)))return!1;return!0}function Cie(e,t){return Vo(e.valueOf(),t.valueOf())}function Nie(e,t){return e.source===t.source&&e.flags===t.flags}function QD(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),s=e.values();let l,c;for(;(l=s.next())&&!l.done;){const f=t.values();let d=!1,v=0;for(;(c=f.next())&&!c.done;){if(!i[v]&&n.equals(l.value,c.value,l.value,c.value,e,t,n)){d=i[v]=!0;break}v++}if(!d)return!1}return!0}function hm(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function Mie(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 E5(e,t,n,r){return(r===xie||r===bie||r===yie)&&(e.$$typeof||t.$$typeof)?!0:gie(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const Rie="[object ArrayBuffer]",Die="[object Arguments]",Pie="[object Boolean]",kie="[object DataView]",$ie="[object Date]",Lie="[object Error]",Iie="[object Map]",zie="[object Number]",Bie="[object Object]",qie="[object RegExp]",Uie="[object Set]",Hie="[object String]",Fie={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},Gie="[object URL]",Vie=Object.prototype.toString;function Yie({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:s,areMapsEqual:l,areNumbersEqual:c,areObjectsEqual:f,arePrimitiveWrappersEqual:d,areRegExpsEqual:v,areSetsEqual:m,areTypedArraysEqual:g,areUrlsEqual:x,unknownTagComparators:_}){return function(w,j,E){if(w===j)return!0;if(w==null||j==null)return!1;const A=typeof w;if(A!==typeof j)return!1;if(A!=="object")return A==="number"?c(w,j,E):A==="function"?s(w,j,E):!1;const M=w.constructor;if(M!==j.constructor)return!1;if(M===Object)return f(w,j,E);if(Array.isArray(w))return t(w,j,E);if(M===Date)return r(w,j,E);if(M===RegExp)return v(w,j,E);if(M===Map)return l(w,j,E);if(M===Set)return m(w,j,E);const T=Vie.call(w);if(T===$ie)return r(w,j,E);if(T===qie)return v(w,j,E);if(T===Iie)return l(w,j,E);if(T===Uie)return m(w,j,E);if(T===Bie)return typeof w.then!="function"&&typeof j.then!="function"&&f(w,j,E);if(T===Gie)return x(w,j,E);if(T===Lie)return i(w,j,E);if(T===Die)return f(w,j,E);if(Fie[T])return g(w,j,E);if(T===Rie)return e(w,j,E);if(T===kie)return n(w,j,E);if(T===Pie||T===zie||T===Hie)return d(w,j,E);if(_){let N=_[T];if(!N){const R=vie(w);R&&(N=_[R])}if(N)return N(w,j,E)}return!1}}function Wie({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:wie,areArraysEqual:n?rc:Sie,areDataViewsEqual:Oie,areDatesEqual:_ie,areErrorsEqual:jie,areFunctionsEqual:Eie,areMapsEqual:n?nw(XD,rc):XD,areNumbersEqual:Aie,areObjectsEqual:n?rc:Tie,arePrimitiveWrappersEqual:Cie,areRegExpsEqual:Nie,areSetsEqual:n?nw(QD,rc):QD,areTypedArraysEqual:n?nw(hm,rc):hm,areUrlsEqual:Mie,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const i=uh(r.areArraysEqual),s=uh(r.areMapsEqual),l=uh(r.areObjectsEqual),c=uh(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:i,areMapsEqual:s,areObjectsEqual:l,areSetsEqual:c})}return r}function Kie(e){return function(t,n,r,i,s,l,c){return e(t,n,c)}}function Xie({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(c,f){const{cache:d=e?new WeakMap:void 0,meta:v}=n();return t(c,f,{cache:d,equals:r,meta:v,strict:i})};if(e)return function(c,f){return t(c,f,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};const s={cache:void 0,equals:r,meta:void 0,strict:i};return function(c,f){return t(c,f,s)}}const Qie=Vi();Vi({strict:!0});Vi({circular:!0});Vi({circular:!0,strict:!0});Vi({createInternalComparator:()=>Vo});Vi({strict:!0,createInternalComparator:()=>Vo});Vi({circular:!0,createInternalComparator:()=>Vo});Vi({circular:!0,createInternalComparator:()=>Vo,strict:!0});function Vi(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,s=Wie(e),l=Yie(s),c=n?n(l):Kie(l);return Xie({circular:t,comparator:l,createState:r,equals:c,strict:i})}function Zie(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function ZD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(s){n<0&&(n=s),s-n>t?(e(s),n=-1):Zie(i)};requestAnimationFrame(r)}function $1(e){"@babel/helpers - typeof";return $1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$1(e)}function Jie(e){return roe(e)||noe(e)||toe(e)||eoe()}function eoe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
343
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function toe(e,t){if(e){if(typeof e=="string")return JD(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 JD(e,t)}}function JD(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 noe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function roe(e){if(Array.isArray(e))return e}function aoe(){var e={},t=function(){return null},n=!1,r=function i(s){if(!n){if(Array.isArray(s)){if(!s.length)return;var l=s,c=Jie(l),f=c[0],d=c.slice(1);if(typeof f=="number"){ZD(i.bind(null,d),f);return}i(f),ZD(i.bind(null,d));return}$1(s)==="object"&&(e=s,t(e)),typeof s=="function"&&s()}};return{stop:function(){n=!0},start:function(s){n=!1,r(s)},subscribe:function(s){return t=s,function(){t=function(){return null}}}}}function Vc(e){"@babel/helpers - typeof";return Vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vc(e)}function 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){A5(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 A5(e,t,n){return t=ioe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ioe(e){var t=ooe(e,"string");return Vc(t)==="symbol"?t:String(t)}function ooe(e,t){if(Vc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var soe=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(s){return i.includes(s)})})},loe=function(t){return t},uoe=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},pc=function(t,n){return Object.keys(n).reduce(function(r,i){return tP(tP({},r),{},A5({},i,t(i,n[i])))},{})},nP=function(t,n,r){return t.map(function(i){return"".concat(uoe(i)," ").concat(n,"ms ").concat(r)}).join(",")};function coe(e,t){return hoe(e)||doe(e,t)||T5(e,t)||foe()}function foe(){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 doe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(v){d=!0,i=v}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function hoe(e){if(Array.isArray(e))return e}function moe(e){return goe(e)||voe(e)||T5(e)||poe()}function poe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
345
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T5(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 voe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function goe(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 mm=1e-4,C5=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},N5=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},rP=function(t,n){return function(r){var i=C5(t,n);return N5(i,r)}},yoe=function(t,n){return function(r){var i=C5(t,n),s=[].concat(moe(i.map(function(l,c){return l*c}).slice(1)),[0]);return N5(s,r)}},aP=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],s=n[1],l=n[2],c=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,s=0,l=1,c=1;break;case"ease":i=.25,s=.1,l=.25,c=1;break;case"ease-in":i=.42,s=0,l=1,c=1;break;case"ease-out":i=.42,s=0,l=.58,c=1;break;case"ease-in-out":i=0,s=0,l=.58,c=1;break;default:{var f=n[0].split("(");if(f[0]==="cubic-bezier"&&f[1].split(")")[0].split(",").length===4){var d=f[1].split(")")[0].split(",").map(function(w){return parseFloat(w)}),v=coe(d,4);i=v[0],s=v[1],l=v[2],c=v[3]}}}var m=rP(i,l),g=rP(s,c),x=yoe(i,l),_=function(j){return j>1?1:j<0?0:j},S=function(j){for(var E=j>1?1:j,A=E,M=0;M<8;++M){var T=m(A)-E,N=x(A);if(Math.abs(T-E)<mm||N<mm)return g(A);A=_(A-T/N)}return g(A)};return S.isStepper=!1,S},boe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,s=i===void 0?8:i,l=t.dt,c=l===void 0?17:l,f=function(v,m,g){var x=-(v-m)*r,_=g*s,S=g+(x-_)*c/1e3,w=g*c/1e3+v;return Math.abs(w-m)<mm&&Math.abs(S)<mm?[m,0]:[w,S]};return f.isStepper=!0,f.dt=c,f},xoe=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 aP(i);case"spring":return boe();default:if(i.split("(")[0]==="cubic-bezier")return aP(i)}return typeof i=="function"?i:null};function Yc(e){"@babel/helpers - typeof";return Yc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yc(e)}function iP(e){return Ooe(e)||Soe(e)||M5(e)||woe()}function woe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
346
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Soe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ooe(e){if(Array.isArray(e))return z1(e)}function oP(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 un(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oP(Object(n),!0).forEach(function(r){I1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function I1(e,t,n){return t=_oe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _oe(e){var t=joe(e,"string");return Yc(t)==="symbol"?t:String(t)}function joe(e,t){if(Yc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Eoe(e,t){return Coe(e)||Toe(e,t)||M5(e,t)||Aoe()}function Aoe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
347
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M5(e,t){if(e){if(typeof e=="string")return z1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z1(e,t)}}function z1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Toe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(v){d=!0,i=v}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function Coe(e){if(Array.isArray(e))return e}var pm=function(t,n,r){return t+(n-t)*r},B1=function(t){var n=t.from,r=t.to;return n!==r},Noe=function e(t,n,r){var i=pc(function(s,l){if(B1(l)){var c=t(l.from,l.to,l.velocity),f=Eoe(c,2),d=f[0],v=f[1];return un(un({},l),{},{from:d,velocity:v})}return l},n);return r<1?pc(function(s,l){return B1(l)?un(un({},l),{},{velocity:pm(l.velocity,i[s].velocity,r),from:pm(l.from,i[s].from,r)}):l},n):e(t,i,r-1)};const Moe=(function(e,t,n,r,i){var s=soe(e,t),l=s.reduce(function(w,j){return un(un({},w),{},I1({},j,[e[j],t[j]]))},{}),c=s.reduce(function(w,j){return un(un({},w),{},I1({},j,{from:e[j],velocity:0,to:t[j]}))},{}),f=-1,d,v,m=function(){return null},g=function(){return pc(function(j,E){return E.from},c)},x=function(){return!Object.values(c).filter(B1).length},_=function(j){d||(d=j);var E=j-d,A=E/n.dt;c=Noe(n,c,A),i(un(un(un({},e),t),g())),d=j,x()||(f=requestAnimationFrame(m))},S=function(j){v||(v=j);var E=(j-v)/r,A=pc(function(T,N){return pm.apply(void 0,iP(N).concat([n(E)]))},l);if(i(un(un(un({},e),t),A)),E<1)f=requestAnimationFrame(m);else{var M=pc(function(T,N){return pm.apply(void 0,iP(N).concat([n(1)]))},l);i(un(un(un({},e),t),M))}};return m=n.isStepper?_:S,function(){return requestAnimationFrame(m),function(){cancelAnimationFrame(f)}}});function bl(e){"@babel/helpers - typeof";return bl=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},bl(e)}var Roe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Doe(e,t){if(e==null)return{};var n=Poe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[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={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function rw(e){return Ioe(e)||Loe(e)||$oe(e)||koe()}function koe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
348
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $oe(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 Loe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ioe(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 sP(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 Tr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sP(Object(n),!0).forEach(function(r){uc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uc(e,t,n){return t=R5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Boe(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,R5(r.key),r)}}function qoe(e,t,n){return t&&Boe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function R5(e){var t=Uoe(e,"string");return bl(t)==="symbol"?t:String(t)}function Uoe(e,t){if(bl(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hoe(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 Foe(e){var t=Goe();return function(){var r=vm(e),i;if(t){var s=vm(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return H1(this,i)}}function H1(e,t){if(t&&(bl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F1(e)}function F1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Goe(){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 vm(e){return vm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vm(e)}var Ka=(function(e){Hoe(n,e);var t=Foe(n);function n(r,i){var s;zoe(this,n),s=t.call(this,r,i);var l=s.props,c=l.isActive,f=l.attributeName,d=l.from,v=l.to,m=l.steps,g=l.children,x=l.duration;if(s.handleStyleChange=s.handleStyleChange.bind(F1(s)),s.changeStyle=s.changeStyle.bind(F1(s)),!c||x<=0)return s.state={style:{}},typeof g=="function"&&(s.state={style:v}),H1(s);if(m&&m.length)s.state={style:m[0].style};else if(d){if(typeof g=="function")return s.state={style:d},H1(s);s.state={style:f?uc({},f,d):d}}else s.state={style:{}};return s}return qoe(n,[{key:"componentDidMount",value:function(){var i=this.props,s=i.isActive,l=i.canBegin;this.mounted=!0,!(!s||!l)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var s=this.props,l=s.isActive,c=s.canBegin,f=s.attributeName,d=s.shouldReAnimate,v=s.to,m=s.from,g=this.state.style;if(c){if(!l){var x={style:f?uc({},f,v):v};this.state&&g&&(f&&g[f]!==v||!f&&g!==v)&&this.setState(x);return}if(!(Qie(i.to,v)&&i.canBegin&&i.isActive)){var _=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var S=_||d?m:i.to;if(this.state&&g){var w={style:f?uc({},f,S):S};(f&&g[f]!==S||!f&&g!==S)&&this.setState(w)}this.runAnimation(Tr(Tr({},this.props),{},{from:S,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 s=this,l=i.from,c=i.to,f=i.duration,d=i.easing,v=i.begin,m=i.onAnimationEnd,g=i.onAnimationStart,x=Moe(l,c,xoe(d),f,this.changeStyle),_=function(){s.stopJSAnimation=x()};this.manager.start([g,v,_,f,m])}},{key:"runStepAnimation",value:function(i){var s=this,l=i.steps,c=i.begin,f=i.onAnimationStart,d=l[0],v=d.style,m=d.duration,g=m===void 0?0:m,x=function(S,w,j){if(j===0)return S;var E=w.duration,A=w.easing,M=A===void 0?"ease":A,T=w.style,N=w.properties,R=w.onAnimationEnd,D=j>0?l[j-1]:w,I=N||Object.keys(T);if(typeof M=="function"||M==="spring")return[].concat(rw(S),[s.runJSAnimation.bind(s,{from:D.style,to:T,duration:E,easing:M}),E]);var Y=nP(I,E,M),z=Tr(Tr(Tr({},D.style),T),{},{transition:Y});return[].concat(rw(S),[z,E,R]).filter(loe)};return this.manager.start([f].concat(rw(l.reduce(x,[v,Math.max(g,c)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=aoe());var s=i.begin,l=i.duration,c=i.attributeName,f=i.to,d=i.easing,v=i.onAnimationStart,m=i.onAnimationEnd,g=i.steps,x=i.children,_=this.manager;if(this.unSubscribe=_.subscribe(this.handleStyleChange),typeof d=="function"||typeof x=="function"||d==="spring"){this.runJSAnimation(i);return}if(g.length>1){this.runStepAnimation(i);return}var S=c?uc({},c,f):f,w=nP(Object.keys(S),l,d);_.start([v,s,Tr(Tr({},S),{},{transition:w}),l,m])}},{key:"render",value:function(){var i=this.props,s=i.children;i.begin;var l=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=Doe(i,Roe),d=O.Children.count(s),v=this.state.style;if(typeof s=="function")return s(v);if(!c||d===0||l<=0)return s;var m=function(x){var _=x.props,S=_.style,w=S===void 0?{}:S,j=_.className,E=O.cloneElement(x,Tr(Tr({},f),{},{style:Tr(Tr({},w),v),className:j}));return E};return d===1?m(O.Children.only(s)):L.createElement("div",null,O.Children.map(s,function(g){return m(g)}))}}]),n})(O.PureComponent);Ka.displayName="Animate";Ka.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ka.propTypes={from:ot.oneOfType([ot.object,ot.string]),to:ot.oneOfType([ot.object,ot.string]),attributeName:ot.string,duration:ot.number,begin:ot.number,easing:ot.oneOfType([ot.string,ot.func]),steps:ot.arrayOf(ot.shape({duration:ot.number.isRequired,style:ot.object.isRequired,easing:ot.oneOfType([ot.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ot.func]),properties:ot.arrayOf("string"),onAnimationEnd:ot.func})),children:ot.oneOfType([ot.node,ot.func]),isActive:ot.bool,canBegin:ot.bool,onAnimationEnd:ot.func,shouldReAnimate:ot.bool,onAnimationStart:ot.func,onAnimationReStart:ot.func};function Wc(e){"@babel/helpers - typeof";return Wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wc(e)}function gm(){return gm=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},gm.apply(this,arguments)}function Voe(e,t){return Xoe(e)||Koe(e,t)||Woe(e,t)||Yoe()}function Yoe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
349
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Woe(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 Koe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(v){d=!0,i=v}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function Xoe(e){if(Array.isArray(e))return e}function uP(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 cP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uP(Object(n),!0).forEach(function(r){Qoe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qoe(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 Wc(t)=="symbol"?t:t+""}function Joe(e,t){if(Wc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fP=function(t,n,r,i,s){var l=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,v;if(l>0&&s instanceof Array){for(var m=[0,0,0,0],g=0,x=4;g<x;g++)m[g]=s[g]>l?l:s[g];v="M".concat(t,",").concat(n+c*m[0]),m[0]>0&&(v+="A ".concat(m[0],",").concat(m[0],",0,0,").concat(d,",").concat(t+f*m[0],",").concat(n)),v+="L ".concat(t+r-f*m[1],",").concat(n),m[1]>0&&(v+="A ".concat(m[1],",").concat(m[1],",0,0,").concat(d,`,
|
|
350
|
+
`).concat(t+r,",").concat(n+c*m[1])),v+="L ".concat(t+r,",").concat(n+i-c*m[2]),m[2]>0&&(v+="A ".concat(m[2],",").concat(m[2],",0,0,").concat(d,`,
|
|
351
|
+
`).concat(t+r-f*m[2],",").concat(n+i)),v+="L ".concat(t+f*m[3],",").concat(n+i),m[3]>0&&(v+="A ".concat(m[3],",").concat(m[3],",0,0,").concat(d,`,
|
|
352
|
+
`).concat(t,",").concat(n+i-c*m[3])),v+="Z"}else if(l>0&&s===+s&&s>0){var _=Math.min(l,s);v="M ".concat(t,",").concat(n+c*_,`
|
|
353
|
+
A `).concat(_,",").concat(_,",0,0,").concat(d,",").concat(t+f*_,",").concat(n,`
|
|
354
|
+
L `).concat(t+r-f*_,",").concat(n,`
|
|
355
|
+
A `).concat(_,",").concat(_,",0,0,").concat(d,",").concat(t+r,",").concat(n+c*_,`
|
|
356
|
+
L `).concat(t+r,",").concat(n+i-c*_,`
|
|
357
|
+
A `).concat(_,",").concat(_,",0,0,").concat(d,",").concat(t+r-f*_,",").concat(n+i,`
|
|
358
|
+
L `).concat(t+f*_,",").concat(n+i,`
|
|
359
|
+
A `).concat(_,",").concat(_,",0,0,").concat(d,",").concat(t,",").concat(n+i-c*_," Z")}else v="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return v},ese=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,s=n.x,l=n.y,c=n.width,f=n.height;if(Math.abs(c)>0&&Math.abs(f)>0){var d=Math.min(s,s+c),v=Math.max(s,s+c),m=Math.min(l,l+f),g=Math.max(l,l+f);return r>=d&&r<=v&&i>=m&&i<=g}return!1},tse={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},d_=function(t){var n=cP(cP({},tse),t),r=O.useRef(),i=O.useState(-1),s=Voe(i,2),l=s[0],c=s[1];O.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,v=n.width,m=n.height,g=n.radius,x=n.className,_=n.animationEasing,S=n.animationDuration,w=n.animationBegin,j=n.isAnimationActive,E=n.isUpdateAnimationActive;if(f!==+f||d!==+d||v!==+v||m!==+m||v===0||m===0)return null;var A=Ye("recharts-rectangle",x);return E?L.createElement(Ka,{canBegin:l>0,from:{width:v,height:m,x:f,y:d},to:{width:v,height:m,x:f,y:d},duration:S,animationEasing:_,isActive:E},function(M){var T=M.width,N=M.height,R=M.x,D=M.y;return L.createElement(Ka,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:S,isActive:j,easing:_},L.createElement("path",gm({},Ve(n,!0),{className:A,d:fP(R,D,T,N,g),ref:r})))}):L.createElement("path",gm({},Ve(n,!0),{className:A,d:fP(f,d,v,m,g)}))};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)}var h_=function(t){var n=t.cx,r=t.cy,i=t.r,s=t.className,l=Ye("recharts-dot",s);return n===+n&&r===+r&&i===+i?O.createElement("circle",G1({},Ve(t,!1),Ih(t),{className:l,cx:n,cy:r,r:i})):null};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)}var nse=["x","y","top","left","width","height","className"];function V1(){return V1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V1.apply(this,arguments)}function dP(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 rse(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dP(Object(n),!0).forEach(function(r){ase(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ase(e,t,n){return t=ise(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ise(e){var t=ose(e,"string");return Kc(t)=="symbol"?t:t+""}function ose(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 sse(e,t){if(e==null)return{};var n=lse(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lse(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 use=function(t,n,r,i,s,l){return"M".concat(t,",").concat(s,"v").concat(i,"M").concat(l,",").concat(n,"h").concat(r)},cse=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,s=i===void 0?0:i,l=t.top,c=l===void 0?0:l,f=t.left,d=f===void 0?0:f,v=t.width,m=v===void 0?0:v,g=t.height,x=g===void 0?0:g,_=t.className,S=sse(t,nse),w=rse({x:r,y:s,top:c,left:d,width:m,height:x},S);return!ye(r)||!ye(s)||!ye(m)||!ye(x)||!ye(c)||!ye(d)?null:L.createElement("path",V1({},Ve(w,!0),{className:Ye("recharts-cross",_),d:use(r,s,m,x,c,d)}))},aw,hP;function fse(){if(hP)return aw;hP=1;var e=Z4(),t=e(Object.getPrototypeOf,Object);return aw=t,aw}var iw,mP;function dse(){if(mP)return iw;mP=1;var e=Xa(),t=fse(),n=Qa(),r="[object Object]",i=Function.prototype,s=Object.prototype,l=i.toString,c=s.hasOwnProperty,f=l.call(Object);function d(v){if(!n(v)||e(v)!=r)return!1;var m=t(v);if(m===null)return!0;var g=c.call(m,"constructor")&&m.constructor;return typeof g=="function"&&g instanceof g&&l.call(g)==f}return iw=d,iw}var hse=dse();const mse=gt(hse);var ow,pP;function pse(){if(pP)return ow;pP=1;var e=Xa(),t=Qa(),n="[object Boolean]";function r(i){return i===!0||i===!1||t(i)&&e(i)==n}return ow=r,ow}var vse=pse();const gse=gt(vse);function Xc(e){"@babel/helpers - typeof";return Xc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xc(e)}function ym(){return ym=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ym.apply(this,arguments)}function yse(e,t){return Sse(e)||wse(e,t)||xse(e,t)||bse()}function bse(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
360
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xse(e,t){if(e){if(typeof e=="string")return vP(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 vP(e,t)}}function vP(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 wse(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(v){d=!0,i=v}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function Sse(e){if(Array.isArray(e))return e}function gP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gP(Object(n),!0).forEach(function(r){Ose(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ose(e,t,n){return t=_se(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _se(e){var t=jse(e,"string");return Xc(t)=="symbol"?t:t+""}function jse(e,t){if(Xc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bP=function(t,n,r,i,s){var l=r-i,c;return c="M ".concat(t,",").concat(n),c+="L ".concat(t+r,",").concat(n),c+="L ".concat(t+r-l/2,",").concat(n+s),c+="L ".concat(t+r-l/2-i,",").concat(n+s),c+="L ".concat(t,",").concat(n," Z"),c},Ese={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Ase=function(t){var n=yP(yP({},Ese),t),r=O.useRef(),i=O.useState(-1),s=yse(i,2),l=s[0],c=s[1];O.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,v=n.upperWidth,m=n.lowerWidth,g=n.height,x=n.className,_=n.animationEasing,S=n.animationDuration,w=n.animationBegin,j=n.isUpdateAnimationActive;if(f!==+f||d!==+d||v!==+v||m!==+m||g!==+g||v===0&&m===0||g===0)return null;var E=Ye("recharts-trapezoid",x);return j?L.createElement(Ka,{canBegin:l>0,from:{upperWidth:0,lowerWidth:0,height:g,x:f,y:d},to:{upperWidth:v,lowerWidth:m,height:g,x:f,y:d},duration:S,animationEasing:_,isActive:j},function(A){var M=A.upperWidth,T=A.lowerWidth,N=A.height,R=A.x,D=A.y;return L.createElement(Ka,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:S,easing:_},L.createElement("path",ym({},Ve(n,!0),{className:E,d:bP(R,D,M,T,N),ref:r})))}):L.createElement("g",null,L.createElement("path",ym({},Ve(n,!0),{className:E,d:bP(f,d,v,m,g)})))},Tse=["option","shapeType","propTransformer","activeClassName","isActive"];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 Cse(e,t){if(e==null)return{};var n=Nse(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nse(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 xP(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 bm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xP(Object(n),!0).forEach(function(r){Mse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mse(e,t,n){return t=Rse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rse(e){var t=Dse(e,"string");return Qc(t)=="symbol"?t:t+""}function Dse(e,t){if(Qc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pse(e,t){return bm(bm({},t),e)}function kse(e,t){return e==="symbols"}function wP(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return L.createElement(d_,n);case"trapezoid":return L.createElement(Ase,n);case"sector":return L.createElement(j5,n);case"symbols":if(kse(t))return L.createElement(MO,n);break;default:return null}}function $se(e){return O.isValidElement(e)?e.props:e}function Lse(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?Pse:r,s=e.activeClassName,l=s===void 0?"recharts-active-shape":s,c=e.isActive,f=Cse(e,Tse),d;if(O.isValidElement(t))d=O.cloneElement(t,bm(bm({},f),$se(t)));else if($e(t))d=t(f);else if(mse(t)&&!gse(t)){var v=i(t,f);d=L.createElement(wP,{shapeType:n,elementProps:v})}else{var m=f;d=L.createElement(wP,{shapeType:n,elementProps:m})}return c?L.createElement(Lt,{className:l},d):d}function Mp(e,t){return t!=null&&"trapezoids"in e.props}function Rp(e,t){return t!=null&&"sectors"in e.props}function Zc(e,t){return t!=null&&"points"in e.props}function Ise(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,s=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&s}function zse(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Bse(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function qse(e,t){var n;return Mp(e,t)?n=Ise:Rp(e,t)?n=zse:Zc(e,t)&&(n=Bse),n}function Use(e,t){var n;return Mp(e,t)?n="trapezoids":Rp(e,t)?n="sectors":Zc(e,t)&&(n="points"),n}function Hse(e,t){if(Mp(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(Rp(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return Zc(e,t)?t.payload:{}}function Fse(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=Use(n,t),s=Hse(n,t),l=r.filter(function(f,d){var v=Tp(s,f),m=n.props[i].filter(function(_){var S=qse(n,t);return S(_,t)}),g=n.props[i].indexOf(m[m.length-1]),x=d===g;return v&&x}),c=r.indexOf(l[l.length-1]);return c}var sw,SP;function Gse(){if(SP)return sw;SP=1;var e=Math.ceil,t=Math.max;function n(r,i,s,l){for(var c=-1,f=t(e((i-r)/(s||1)),0),d=Array(f);f--;)d[l?f:++c]=r,r+=s;return d}return sw=n,sw}var lw,OP;function D5(){if(OP)return lw;OP=1;var e=m3(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var s=i<0?-1:1;return s*n}return i===i?i:0}return lw=r,lw}var uw,_P;function Vse(){if(_P)return uw;_P=1;var e=Gse(),t=bp(),n=D5();function r(i){return function(s,l,c){return c&&typeof c!="number"&&t(s,l,c)&&(l=c=void 0),s=n(s),l===void 0?(l=s,s=0):l=n(l),c=c===void 0?s<l?1:-1:n(c),e(s,l,c,i)}}return uw=r,uw}var cw,jP;function Yse(){if(jP)return cw;jP=1;var e=Vse(),t=e();return cw=t,cw}var Wse=Yse();const xm=gt(Wse);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 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 AP(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){P5(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 P5(e,t,n){return t=Kse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kse(e){var t=Xse(e,"string");return Jc(t)=="symbol"?t:t+""}function Xse(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 Qse=["Webkit","Moz","O","ms"],Zse=function(t,n){var r=t.replace(/(\w)/,function(s){return s.toUpperCase()}),i=Qse.reduce(function(s,l){return AP(AP({},s),{},P5({},l+r,n))},{});return i[t]=n,i};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 wm(){return wm=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},wm.apply(this,arguments)}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 fw(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){Vn(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 Jse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$5(r.key),r)}}function ele(e,t,n){return t&&CP(e.prototype,t),n&&CP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tle(e,t,n){return t=Sm(t),nle(e,k5()?Reflect.construct(t,n||[],Sm(e).constructor):t.apply(e,n))}function nle(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 rle(e)}function rle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k5=function(){return!!e})()}function Sm(e){return Sm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sm(e)}function ale(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Y1(e,t)}function Y1(e,t){return Y1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Y1(e,t)}function Vn(e,t,n){return t=$5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $5(e){var t=ile(e,"string");return xl(t)=="symbol"?t:t+""}function ile(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 ole=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,s=t.x,l=t.width,c=t.travellerWidth;if(!n||!n.length)return{};var f=n.length,d=hc().domain(xm(0,f)).range([s,s+l-c]),v=d.domain().map(function(m){return d(m)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:d(r),endX:d(i),scale:d,scaleValues:v}},NP=function(t){return t.changedTouches&&!!t.changedTouches.length},wl=(function(e){function t(n){var r;return Jse(this,t),r=tle(this,t,[n]),Vn(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),Vn(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),Vn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,s=i.endIndex,l=i.onDragEnd,c=i.startIndex;l==null||l({endIndex:s,startIndex:c})}),r.detachDragEndListener()}),Vn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Vn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Vn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Vn(r,"handleSlideDragStart",function(i){var s=NP(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:s.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return ale(t,e),ele(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,s=r.endX,l=this.state.scaleValues,c=this.props,f=c.gap,d=c.data,v=d.length-1,m=Math.min(i,s),g=Math.max(i,s),x=t.getIndexInRange(l,m),_=t.getIndexInRange(l,g);return{startIndex:x-x%f,endIndex:_===v?v:_-_%f}}},{key:"getTextOfTick",value:function(r){var i=this.props,s=i.data,l=i.tickFormatter,c=i.dataKey,f=Zn(s[r],c,r);return $e(l)?l(f,r):f}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var i=this.state,s=i.slideMoveStartX,l=i.startX,c=i.endX,f=this.props,d=f.x,v=f.width,m=f.travellerWidth,g=f.startIndex,x=f.endIndex,_=f.onChange,S=r.pageX-s;S>0?S=Math.min(S,d+v-m-c,d+v-m-l):S<0&&(S=Math.max(S,d-l,d-c));var w=this.getIndex({startX:l+S,endX:c+S});(w.startIndex!==g||w.endIndex!==x)&&_&&_(w),this.setState({startX:l+S,endX:c+S,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var s=NP(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:s.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,s=i.brushMoveStartX,l=i.movingTravellerId,c=i.endX,f=i.startX,d=this.state[l],v=this.props,m=v.x,g=v.width,x=v.travellerWidth,_=v.onChange,S=v.gap,w=v.data,j={startX:this.state.startX,endX:this.state.endX},E=r.pageX-s;E>0?E=Math.min(E,m+g-x-d):E<0&&(E=Math.max(E,m-d)),j[l]=d+E;var A=this.getIndex(j),M=A.startIndex,T=A.endIndex,N=function(){var D=w.length-1;return l==="startX"&&(c>f?M%S===0:T%S===0)||c<f&&T===D||l==="endX"&&(c>f?T%S===0:M%S===0)||c>f&&T===D};this.setState(Vn(Vn({},l,d+E),"brushMoveStartX",r.pageX),function(){_&&N()&&_(A)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var s=this,l=this.state,c=l.scaleValues,f=l.startX,d=l.endX,v=this.state[i],m=c.indexOf(v);if(m!==-1){var g=m+r;if(!(g===-1||g>=c.length)){var x=c[g];i==="startX"&&x>=d||i==="endX"&&x<=f||this.setState(Vn({},i,x),function(){s.props.onChange(s.getIndex({startX:s.state.startX,endX:s.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,s=r.y,l=r.width,c=r.height,f=r.fill,d=r.stroke;return L.createElement("rect",{stroke:d,fill:f,x:i,y:s,width:l,height:c})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,s=r.y,l=r.width,c=r.height,f=r.data,d=r.children,v=r.padding,m=O.Children.only(d);return m?L.cloneElement(m,{x:i,y:s,width:l,height:c,margin:v,compact:!0,data:f}):null}},{key:"renderTravellerLayer",value:function(r,i){var s,l,c=this,f=this.props,d=f.y,v=f.travellerWidth,m=f.height,g=f.traveller,x=f.ariaLabel,_=f.data,S=f.startIndex,w=f.endIndex,j=Math.max(r,this.props.x),E=fw(fw({},Ve(this.props,!1)),{},{x:j,y:d,width:v,height:m}),A=x||"Min value: ".concat((s=_[S])===null||s===void 0?void 0:s.name,", Max value: ").concat((l=_[w])===null||l===void 0?void 0:l.name);return L.createElement(Lt,{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(T){["ArrowLeft","ArrowRight"].includes(T.key)&&(T.preventDefault(),T.stopPropagation(),c.handleTravellerMoveKeyboard(T.key==="ArrowRight"?1:-1,i))},onFocus:function(){c.setState({isTravellerFocused:!0})},onBlur:function(){c.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(g,E))}},{key:"renderSlide",value:function(r,i){var s=this.props,l=s.y,c=s.height,f=s.stroke,d=s.travellerWidth,v=Math.min(r,i)+d,m=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:v,y:l,width:m,height:c})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,s=r.endIndex,l=r.y,c=r.height,f=r.travellerWidth,d=r.stroke,v=this.state,m=v.startX,g=v.endX,x=5,_={pointerEvents:"none",fill:d};return L.createElement(Lt,{className:"recharts-brush-texts"},L.createElement(Xh,wm({textAnchor:"end",verticalAnchor:"middle",x:Math.min(m,g)-x,y:l+c/2},_),this.getTextOfTick(i)),L.createElement(Xh,wm({textAnchor:"start",verticalAnchor:"middle",x:Math.max(m,g)+f+x,y:l+c/2},_),this.getTextOfTick(s)))}},{key:"render",value:function(){var r=this.props,i=r.data,s=r.className,l=r.children,c=r.x,f=r.y,d=r.width,v=r.height,m=r.alwaysShowText,g=this.state,x=g.startX,_=g.endX,S=g.isTextActive,w=g.isSlideMoving,j=g.isTravellerMoving,E=g.isTravellerFocused;if(!i||!i.length||!ye(c)||!ye(f)||!ye(d)||!ye(v)||d<=0||v<=0)return null;var A=Ye("recharts-brush",s),M=L.Children.count(l)===1,T=Zse("userSelect","none");return L.createElement(Lt,{className:A,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:T},this.renderBackground(),M&&this.renderPanorama(),this.renderSlide(x,_),this.renderTravellerLayer(x,"startX"),this.renderTravellerLayer(_,"endX"),(S||w||j||E||m)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,s=r.y,l=r.width,c=r.height,f=r.stroke,d=Math.floor(s+c/2)-1;return L.createElement(L.Fragment,null,L.createElement("rect",{x:i,y:s,width:l,height:c,fill:f,stroke:"none"}),L.createElement("line",{x1:i+1,y1:d,x2:i+l-1,y2:d,fill:"none",stroke:"#fff"}),L.createElement("line",{x1:i+1,y1:d+2,x2:i+l-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var s;return L.isValidElement(r)?s=L.cloneElement(r,i):$e(r)?s=r(i):s=t.renderDefaultTraveller(i),s}},{key:"getDerivedStateFromProps",value:function(r,i){var s=r.data,l=r.width,c=r.x,f=r.travellerWidth,d=r.updateId,v=r.startIndex,m=r.endIndex;if(s!==i.prevData||d!==i.prevUpdateId)return fw({prevData:s,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:l},s&&s.length?ole({data:s,width:l,x:c,travellerWidth:f,startIndex:v,endIndex:m}):{scale:null,scaleValues:null});if(i.scale&&(l!==i.prevWidth||c!==i.prevX||f!==i.prevTravellerWidth)){i.scale.range([c,c+l-f]);var g=i.scale.domain().map(function(x){return i.scale(x)});return{prevData:s,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:l,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:g}}return null}},{key:"getIndexInRange",value:function(r,i){for(var s=r.length,l=0,c=s-1;c-l>1;){var f=Math.floor((l+c)/2);r[f]>i?c=f:l=f}return i>=r[c]?c:l}}])})(O.PureComponent);Vn(wl,"displayName","Brush");Vn(wl,"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 dw,MP;function sle(){if(MP)return dw;MP=1;var e=IO();function t(n,r){var i;return e(n,function(s,l,c){return i=r(s,l,c),!i}),!!i}return dw=t,dw}var hw,RP;function lle(){if(RP)return hw;RP=1;var e=G4(),t=Hi(),n=sle(),r=$n(),i=bp();function s(l,c,f){var d=r(l)?e:n;return f&&i(l,c,f)&&(c=void 0),d(l,t(c,3))}return hw=s,hw}var ule=lle();const cle=gt(ule);var ua=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},mw,DP;function fle(){if(DP)return mw;DP=1;var e=u3();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return mw=t,mw}var pw,PP;function dle(){if(PP)return pw;PP=1;var e=fle(),t=s3(),n=Hi();function r(i,s){var l={};return s=n(s,3),t(i,function(c,f,d){e(l,f,s(c,f,d))}),l}return pw=r,pw}var hle=dle();const mle=gt(hle);var vw,kP;function ple(){if(kP)return vw;kP=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 vw=e,vw}var gw,$P;function vle(){if($P)return gw;$P=1;var e=IO();function t(n,r){var i=!0;return e(n,function(s,l,c){return i=!!r(s,l,c),i}),i}return gw=t,gw}var yw,LP;function gle(){if(LP)return yw;LP=1;var e=ple(),t=vle(),n=Hi(),r=$n(),i=bp();function s(l,c,f){var d=r(l)?e:t;return f&&i(l,c,f)&&(c=void 0),d(l,n(c,3))}return yw=s,yw}var yle=gle();const L5=gt(yle);var ble=["x","y"];function ef(e){"@babel/helpers - typeof";return ef=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},ef(e)}function W1(){return W1=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},W1.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 ac(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){xle(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 xle(e,t,n){return t=wle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wle(e){var t=Sle(e,"string");return ef(t)=="symbol"?t:t+""}function Sle(e,t){if(ef(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ef(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ole(e,t){if(e==null)return{};var n=_le(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _le(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=Ole(e,ble),s="".concat(n),l=parseInt(s,10),c="".concat(r),f=parseInt(c,10),d="".concat(t.height||i.height),v=parseInt(d,10),m="".concat(t.width||i.width),g=parseInt(m,10);return ac(ac(ac(ac(ac({},t),i),l?{x:l}:{}),f?{y:f}:{}),{},{height:v,width:g,name:t.name,radius:t.radius})}function zP(e){return L.createElement(Lse,W1({shapeType:"rectangle",propTransformer:jle,activeClassName:"recharts-active-bar"},e))}var Ele=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 s=ye(r)||MK(r);return s?t(r,i):(s||$o(),n)}},Ale=["value","background"],I5;function Sl(e){"@babel/helpers - typeof";return Sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sl(e)}function Tle(e,t){if(e==null)return{};var n=Cle(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cle(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Om(){return Om=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},Om.apply(this,arguments)}function BP(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 Ut(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BP(Object(n),!0).forEach(function(r){Ri(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qP(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,B5(r.key),r)}}function Mle(e,t,n){return t&&qP(e.prototype,t),n&&qP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rle(e,t,n){return t=_m(t),Dle(e,z5()?Reflect.construct(t,n||[],_m(e).constructor):t.apply(e,n))}function Dle(e,t){if(t&&(Sl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ple(e)}function Ple(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(z5=function(){return!!e})()}function _m(e){return _m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_m(e)}function kle(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 Ri(e,t,n){return t=B5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B5(e){var t=$le(e,"string");return Sl(t)=="symbol"?t:t+""}function $le(e,t){if(Sl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Tf=(function(e){function t(){var n;Nle(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=Rle(this,t,[].concat(i)),Ri(n,"state",{isAnimationFinished:!1}),Ri(n,"id",wf("recharts-bar-")),Ri(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),l&&l()}),Ri(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),l&&l()}),n}return kle(t,e),Mle(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,s=this.props,l=s.shape,c=s.dataKey,f=s.activeIndex,d=s.activeBar,v=Ve(this.props,!1);return r&&r.map(function(m,g){var x=g===f,_=x?d:l,S=Ut(Ut(Ut({},v),m),{},{isActive:x,option:_,index:g,dataKey:c,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return L.createElement(Lt,Om({className:"recharts-bar-rectangle"},zh(i.props,m,g),{key:"rectangle-".concat(m==null?void 0:m.x,"-").concat(m==null?void 0:m.y,"-").concat(m==null?void 0:m.value,"-").concat(g)}),L.createElement(zP,S))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,s=i.data,l=i.layout,c=i.isAnimationActive,f=i.animationBegin,d=i.animationDuration,v=i.animationEasing,m=i.animationId,g=this.state.prevData;return L.createElement(Ka,{begin:f,duration:d,isActive:c,easing:v,from:{t:0},to:{t:1},key:"bar-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var _=x.t,S=s.map(function(w,j){var E=g&&g[j];if(E){var A=Rr(E.x,w.x),M=Rr(E.y,w.y),T=Rr(E.width,w.width),N=Rr(E.height,w.height);return Ut(Ut({},w),{},{x:A(_),y:M(_),width:T(_),height:N(_)})}if(l==="horizontal"){var R=Rr(0,w.height),D=R(_);return Ut(Ut({},w),{},{y:w.y+w.height-D,height:D})}var I=Rr(0,w.width),Y=I(_);return Ut(Ut({},w),{},{width:Y})});return L.createElement(Lt,null,r.renderRectanglesStatically(S))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,s=r.isAnimationActive,l=this.state.prevData;return s&&i&&i.length&&(!l||!Tp(l,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,s=i.data,l=i.dataKey,c=i.activeIndex,f=Ve(this.props.background,!1);return s.map(function(d,v){d.value;var m=d.background,g=Tle(d,Ale);if(!m)return null;var x=Ut(Ut(Ut(Ut(Ut({},g),{},{fill:"#eee"},m),f),zh(r.props,d,v)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:l,index:v,className:"recharts-bar-background-rectangle"});return L.createElement(zP,Om({key:"background-bar-".concat(v),option:r.props.background,isActive:v===c},x))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.data,c=s.xAxis,f=s.yAxis,d=s.layout,v=s.children,m=yr(v,Af);if(!m)return null;var g=d==="vertical"?l[0].height/2:l[0].width/2,x=function(w,j){var E=Array.isArray(w.value)?w.value[1]:w.value;return{x:w.x,y:w.y,value:E,errorVal:Zn(w,j)}},_={clipPath:r?"url(#clipPath-".concat(i,")"):null};return L.createElement(Lt,_,m.map(function(S){return L.cloneElement(S,{key:"error-bar-".concat(i,"-").concat(S.props.dataKey),data:l,xAxis:c,yAxis:f,layout:d,offset:g,dataPointFormatter:x})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,s=r.data,l=r.className,c=r.xAxis,f=r.yAxis,d=r.left,v=r.top,m=r.width,g=r.height,x=r.isAnimationActive,_=r.background,S=r.id;if(i||!s||!s.length)return null;var w=this.state.isAnimationFinished,j=Ye("recharts-bar",l),E=c&&c.allowDataOverflow,A=f&&f.allowDataOverflow,M=E||A,T=qe(S)?this.id:S;return L.createElement(Lt,{className:j},E||A?L.createElement("defs",null,L.createElement("clipPath",{id:"clipPath-".concat(T)},L.createElement("rect",{x:E?d:d-m/2,y:A?v:v-g/2,width:E?m:m*2,height:A?g:g*2}))):null,L.createElement(Lt,{className:"recharts-bar-rectangles",clipPath:M?"url(#clipPath-".concat(T,")"):null},_?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(M,T),(!x||w)&&Pi.renderCallByParent(this.props,s))}}],[{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}}])})(O.PureComponent);I5=Tf;Ri(Tf,"displayName","Bar");Ri(Tf,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Wl.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ri(Tf,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,s=e.xAxis,l=e.yAxis,c=e.xAxisTicks,f=e.yAxisTicks,d=e.stackedData,v=e.dataStartIndex,m=e.displayedData,g=e.offset,x=Qre(r,n);if(!x)return null;var _=t.layout,S=n.type.defaultProps,w=S!==void 0?Ut(Ut({},S),n.props):n.props,j=w.dataKey,E=w.children,A=w.minPointSize,M=_==="horizontal"?l:s,T=d?M.scale.domain():null,N=iae({numericAxis:M}),R=yr(E,v3),D=m.map(function(I,Y){var z,H,V,Q,K,k;d?z=Zre(d[v+Y],T):(z=Zn(I,j),Array.isArray(z)||(z=[N,z]));var q=Ele(A,I5.defaultProps.minPointSize)(z[1],Y);if(_==="horizontal"){var B,W=[l.scale(z[0]),l.scale(z[1])],se=W[0],$=W[1];H=AD({axis:s,ticks:c,bandSize:i,offset:x.offset,entry:I,index:Y}),V=(B=$??se)!==null&&B!==void 0?B:void 0,Q=x.size;var F=se-$;if(K=Number.isNaN(F)?0:F,k={x:H,y:l.y,width:Q,height:l.height},Math.abs(q)>0&&Math.abs(K)<Math.abs(q)){var X=Pr(K||q)*(Math.abs(q)-Math.abs(K));V-=X,K+=X}}else{var ae=[s.scale(z[0]),s.scale(z[1])],de=ae[0],ge=ae[1];if(H=de,V=AD({axis:l,ticks:f,bandSize:i,offset:x.offset,entry:I,index:Y}),Q=ge-de,K=x.size,k={x:s.x,y:V,width:s.width,height:K},Math.abs(q)>0&&Math.abs(Q)<Math.abs(q)){var ce=Pr(Q||q)*(Math.abs(q)-Math.abs(Q));Q+=ce}}return Ut(Ut(Ut({},I),{},{x:H,y:V,width:Q,height:K,value:d?z:z[1],payload:I,background:k},R&&R[Y]&&R[Y].props),{},{tooltipPayload:[S5(n,I)],tooltipPosition:{x:H+Q/2,y:V+K/2}})});return Ut({data:D,layout:_},g)});function tf(e){"@babel/helpers - typeof";return tf=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},tf(e)}function Lle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UP(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,q5(r.key),r)}}function Ile(e,t,n){return t&&UP(e.prototype,t),n&&UP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function HP(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 Nr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HP(Object(n),!0).forEach(function(r){Dp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dp(e,t,n){return t=q5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q5(e){var t=zle(e,"string");return tf(t)=="symbol"?t:t+""}function zle(e,t){if(tf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ble=function(t,n,r,i,s){var l=t.width,c=t.height,f=t.layout,d=t.children,v=Object.keys(n),m={left:r.left,leftMirror:r.left,right:l-r.right,rightMirror:l-r.right,top:r.top,topMirror:r.top,bottom:c-r.bottom,bottomMirror:c-r.bottom},g=!!Yn(d,Tf);return v.reduce(function(x,_){var S=n[_],w=S.orientation,j=S.domain,E=S.padding,A=E===void 0?{}:E,M=S.mirror,T=S.reversed,N="".concat(w).concat(M?"Mirror":""),R,D,I,Y,z;if(S.type==="number"&&(S.padding==="gap"||S.padding==="no-gap")){var H=j[1]-j[0],V=1/0,Q=S.categoricalDomain.sort(PK);if(Q.forEach(function(ae,de){de>0&&(V=Math.min((ae||0)-(Q[de-1]||0),V))}),Number.isFinite(V)){var K=V/H,k=S.layout==="vertical"?r.height:r.width;if(S.padding==="gap"&&(R=K*k/2),S.padding==="no-gap"){var q=Po(t.barCategoryGap,K*k),B=K*k/2;R=B-q-(B-q)/k*q}}}i==="xAxis"?D=[r.left+(A.left||0)+(R||0),r.left+r.width-(A.right||0)-(R||0)]:i==="yAxis"?D=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)]:D=S.range,T&&(D=[D[1],D[0]]);var W=Kre(S,s,g),se=W.scale,$=W.realScaleType;se.domain(j).range(D),Xre(se);var F=aae(se,Nr(Nr({},S),{},{realScaleType:$}));i==="xAxis"?(z=w==="top"&&!M||w==="bottom"&&M,I=r.left,Y=m[N]-z*S.height):i==="yAxis"&&(z=w==="left"&&!M||w==="right"&&M,I=m[N]-z*S.width,Y=r.top);var X=Nr(Nr(Nr({},S),F),{},{realScaleType:$,x:I,y:Y,scale:se,width:i==="xAxis"?r.width:S.width,height:i==="yAxis"?r.height:S.height});return X.bandSize=cm(X,F),!S.hide&&i==="xAxis"?m[N]+=(z?-1:1)*X.height:S.hide||(m[N]+=(z?-1:1)*X.width),Nr(Nr({},x),{},Dp({},_,X))},{})},U5=function(t,n){var r=t.x,i=t.y,s=n.x,l=n.y;return{x:Math.min(r,s),y:Math.min(i,l),width:Math.abs(s-r),height:Math.abs(l-i)}},qle=function(t){var n=t.x1,r=t.y1,i=t.x2,s=t.y2;return U5({x:n,y:r},{x:i,y:s})},H5=(function(){function e(t){Lle(this,e),this.scale=t}return Ile(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,s=r.position;if(n!==void 0){if(s)switch(s){case"start":return this.scale(n);case"middle":{var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}case"end":{var c=this.bandwidth?this.bandwidth():0;return this.scale(n)+c}default:return this.scale(n)}if(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],s=r[r.length-1];return i<=s?n>=i&&n<=s:n>=s&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])})();Dp(H5,"EPS",1e-4);var m_=function(t){var n=Object.keys(t).reduce(function(r,i){return Nr(Nr({},r),{},Dp({},i,H5.create(t[i])))},{});return Nr(Nr({},n),{},{apply:function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.bandAware,c=s.position;return mle(i,function(f,d){return n[d].apply(f,{bandAware:l,position:c})})},isInRange:function(i){return L5(i,function(s,l){return n[l].isInRange(s)})}})};function Ule(e){return(e%180+180)%180}var Hle=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=Ule(i),l=s*Math.PI/180,c=Math.atan(r/n),f=l>c&&l<Math.PI-c?r/Math.sin(l):n/Math.cos(l);return Math.abs(f)},bw,FP;function Fle(){if(FP)return bw;FP=1;var e=Hi(),t=Sf(),n=gp();function r(i){return function(s,l,c){var f=Object(s);if(!t(s)){var d=e(l,3);s=n(s),l=function(m){return d(f[m],m,f)}}var v=i(s,l,c);return v>-1?f[d?s[v]:v]:void 0}}return bw=r,bw}var xw,GP;function Gle(){if(GP)return xw;GP=1;var e=D5();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return xw=t,xw}var ww,VP;function Vle(){if(VP)return ww;VP=1;var e=n3(),t=Hi(),n=Gle(),r=Math.max;function i(s,l,c){var f=s==null?0:s.length;if(!f)return-1;var d=c==null?0:n(c);return d<0&&(d=r(f+d,0)),e(s,t(l,3),d)}return ww=i,ww}var Sw,YP;function Yle(){if(YP)return Sw;YP=1;var e=Fle(),t=Vle(),n=e(t);return Sw=n,Sw}var Wle=Yle();const Kle=gt(Wle);var Xle=y4();const Qle=gt(Xle);var Zle=Qle(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("")}),p_=O.createContext(void 0),v_=O.createContext(void 0),F5=O.createContext(void 0),G5=O.createContext({}),V5=O.createContext(void 0),Y5=O.createContext(0),W5=O.createContext(0),WP=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,s=n.offset,l=t.clipPathId,c=t.children,f=t.width,d=t.height,v=Zle(s);return L.createElement(p_.Provider,{value:r},L.createElement(v_.Provider,{value:i},L.createElement(G5.Provider,{value:s},L.createElement(F5.Provider,{value:v},L.createElement(V5.Provider,{value:l},L.createElement(Y5.Provider,{value:d},L.createElement(W5.Provider,{value:f},c)))))))},Jle=function(){return O.useContext(V5)},K5=function(t){var n=O.useContext(p_);n==null&&$o();var r=n[t];return r==null&&$o(),r},eue=function(){var t=O.useContext(p_);return Ni(t)},tue=function(){var t=O.useContext(v_),n=Kle(t,function(r){return L5(r.domain,Number.isFinite)});return n||Ni(t)},X5=function(t){var n=O.useContext(v_);n==null&&$o();var r=n[t];return r==null&&$o(),r},nue=function(){var t=O.useContext(F5);return t},rue=function(){return O.useContext(G5)},g_=function(){return O.useContext(W5)},y_=function(){return O.useContext(Y5)};function Ol(e){"@babel/helpers - typeof";return Ol=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ol(e)}function aue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iue(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,Z5(r.key),r)}}function oue(e,t,n){return t&&iue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sue(e,t,n){return t=jm(t),lue(e,Q5()?Reflect.construct(t,n||[],jm(e).constructor):t.apply(e,n))}function lue(e,t){if(t&&(Ol(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uue(e)}function uue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Q5=function(){return!!e})()}function jm(e){return jm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jm(e)}function cue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&X1(e,t)}function X1(e,t){return X1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},X1(e,t)}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 XP(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){b_(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 b_(e,t,n){return t=Z5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z5(e){var t=fue(e,"string");return Ol(t)=="symbol"?t:t+""}function fue(e,t){if(Ol(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ol(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function due(e,t){return vue(e)||pue(e,t)||mue(e,t)||hue()}function hue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
361
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mue(e,t){if(e){if(typeof e=="string")return QP(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 QP(e,t)}}function QP(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 pue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(v){d=!0,i=v}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function vue(e){if(Array.isArray(e))return e}function Q1(){return Q1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q1.apply(this,arguments)}var gue=function(t,n){var r;return L.isValidElement(t)?r=L.cloneElement(t,n):$e(t)?r=t(n):r=L.createElement("line",Q1({},n,{className:"recharts-reference-line-line"})),r},yue=function(t,n,r,i,s,l,c,f,d){var v=s.x,m=s.y,g=s.width,x=s.height;if(r){var _=d.y,S=t.y.apply(_,{position:l});if(ua(d,"discard")&&!t.y.isInRange(S))return null;var w=[{x:v+g,y:S},{x:v,y:S}];return f==="left"?w.reverse():w}if(n){var j=d.x,E=t.x.apply(j,{position:l});if(ua(d,"discard")&&!t.x.isInRange(E))return null;var A=[{x:E,y:m+x},{x:E,y:m}];return c==="top"?A.reverse():A}if(i){var M=d.segment,T=M.map(function(N){return t.apply(N,{position:l})});return ua(d,"discard")&&cle(T,function(N){return!t.isInRange(N)})?null:T}return null};function bue(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,s=e.yAxisId,l=e.shape,c=e.className,f=e.alwaysShow,d=Jle(),v=K5(i),m=X5(s),g=nue();if(!d||!g)return null;qa(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var x=m_({x:v.scale,y:m.scale}),_=Kt(t),S=Kt(n),w=r&&r.length===2,j=yue(x,_,S,w,g,e.position,v.orientation,m.orientation,e);if(!j)return null;var E=due(j,2),A=E[0],M=A.x,T=A.y,N=E[1],R=N.x,D=N.y,I=ua(e,"hidden")?"url(#".concat(d,")"):void 0,Y=XP(XP({clipPath:I},Ve(e,!0)),{},{x1:M,y1:T,x2:R,y2:D});return L.createElement(Lt,{className:Ye("recharts-reference-line",c)},gue(l,Y),vn.renderCallByParent(e,qle({x1:M,y1:T,x2:R,y2:D})))}var x_=(function(e){function t(){return aue(this,t),sue(this,t,arguments)}return cue(t,e),oue(t,[{key:"render",value:function(){return L.createElement(bue,this.props)}}])})(L.Component);b_(x_,"displayName","ReferenceLine");b_(x_,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Z1(){return Z1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z1.apply(this,arguments)}function _l(e){"@babel/helpers - typeof";return _l=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},_l(e)}function ZP(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 JP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZP(Object(n),!0).forEach(function(r){Pp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wue(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 Sue(e,t,n){return t&&wue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Oue(e,t,n){return t=Em(t),_ue(e,J5()?Reflect.construct(t,n||[],Em(e).constructor):t.apply(e,n))}function _ue(e,t){if(t&&(_l(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jue(e)}function jue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(J5=function(){return!!e})()}function Em(e){return Em=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Em(e)}function Eue(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&&J1(e,t)}function J1(e,t){return J1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},J1(e,t)}function Pp(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=Aue(e,"string");return _l(t)=="symbol"?t:t+""}function Aue(e,t){if(_l(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_l(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Tue=function(t){var n=t.x,r=t.y,i=t.xAxis,s=t.yAxis,l=m_({x:i.scale,y:s.scale}),c=l.apply({x:n,y:r},{bandAware:!0});return ua(t,"discard")&&!l.isInRange(c)?null:c},kp=(function(e){function t(){return xue(this,t),Oue(this,t,arguments)}return Eue(t,e),Sue(t,[{key:"render",value:function(){var r=this.props,i=r.x,s=r.y,l=r.r,c=r.alwaysShow,f=r.clipPathId,d=Kt(i),v=Kt(s);if(qa(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!d||!v)return null;var m=Tue(this.props);if(!m)return null;var g=m.x,x=m.y,_=this.props,S=_.shape,w=_.className,j=ua(this.props,"hidden")?"url(#".concat(f,")"):void 0,E=JP(JP({clipPath:j},Ve(this.props,!0)),{},{cx:g,cy:x});return L.createElement(Lt,{className:Ye("recharts-reference-dot",w)},t.renderDot(S,E),vn.renderCallByParent(this.props,{x:g-l,y:x-l,width:2*l,height:2*l}))}}])})(L.Component);Pp(kp,"displayName","ReferenceDot");Pp(kp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Pp(kp,"renderDot",function(e,t){var n;return L.isValidElement(e)?n=L.cloneElement(e,t):$e(e)?n=e(t):n=L.createElement(h_,Z1({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function eS(){return eS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eS.apply(this,arguments)}function 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 ek(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 tk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ek(Object(n),!0).forEach(function(r){$p(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ek(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nz(r.key),r)}}function Mue(e,t,n){return t&&Nue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rue(e,t,n){return t=Am(t),Due(e,tz()?Reflect.construct(t,n||[],Am(e).constructor):t.apply(e,n))}function Due(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 Pue(e)}function Pue(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 Am(e){return Am=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Am(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&&tS(e,t)}function tS(e,t){return tS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},tS(e,t)}function $p(e,t,n){return t=nz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nz(e){var t=$ue(e,"string");return jl(t)=="symbol"?t:t+""}function $ue(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)}var Lue=function(t,n,r,i,s){var l=s.x1,c=s.x2,f=s.y1,d=s.y2,v=s.xAxis,m=s.yAxis;if(!v||!m)return null;var g=m_({x:v.scale,y:m.scale}),x={x:t?g.x.apply(l,{position:"start"}):g.x.rangeMin,y:r?g.y.apply(f,{position:"start"}):g.y.rangeMin},_={x:n?g.x.apply(c,{position:"end"}):g.x.rangeMax,y:i?g.y.apply(d,{position:"end"}):g.y.rangeMax};return ua(s,"discard")&&(!g.isInRange(x)||!g.isInRange(_))?null:U5(x,_)},Lp=(function(e){function t(){return Cue(this,t),Rue(this,t,arguments)}return kue(t,e),Mue(t,[{key:"render",value:function(){var r=this.props,i=r.x1,s=r.x2,l=r.y1,c=r.y2,f=r.className,d=r.alwaysShow,v=r.clipPathId;qa(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var m=Kt(i),g=Kt(s),x=Kt(l),_=Kt(c),S=this.props.shape;if(!m&&!g&&!x&&!_&&!S)return null;var w=Lue(m,g,x,_,this.props);if(!w&&!S)return null;var j=ua(this.props,"hidden")?"url(#".concat(v,")"):void 0;return L.createElement(Lt,{className:Ye("recharts-reference-area",f)},t.renderRect(S,tk(tk({clipPath:j},Ve(this.props,!0)),w)),vn.renderCallByParent(this.props,w))}}])})(L.Component);$p(Lp,"displayName","ReferenceArea");$p(Lp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});$p(Lp,"renderRect",function(e,t){var n;return L.isValidElement(e)?n=L.cloneElement(e,t):$e(e)?n=e(t):n=L.createElement(d_,eS({},t,{className:"recharts-reference-area-rect"})),n});function rz(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 Iue(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Hle(r,n)}function zue(e,t,n){var r=n==="width",i=e.x,s=e.y,l=e.width,c=e.height;return t===1?{start:r?i:s,end:r?i+l:s+c}:{start:r?i+l:s+c,end:r?i:s}}function Tm(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var s=n();return e*(t-e*s/2-r)>=0&&e*(t+e*s/2-i)<=0}function Bue(e,t){return rz(e,t+1)}function que(e,t,n,r,i){for(var s=(r||[]).slice(),l=t.start,c=t.end,f=0,d=1,v=l,m=function(){var _=r==null?void 0:r[f];if(_===void 0)return{v:rz(r,d)};var S=f,w,j=function(){return w===void 0&&(w=n(_,S)),w},E=_.coordinate,A=f===0||Tm(e,E,j,v,c);A||(f=0,v=l,d+=1),A&&(v=E+e*(j()/2+i),f+=d)},g;d<=s.length;)if(g=m(),g)return g.v;return[]}function nf(e){"@babel/helpers - typeof";return nf=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},nf(e)}function nk(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 pn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nk(Object(n),!0).forEach(function(r){Uue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uue(e,t,n){return t=Hue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hue(e){var t=Fue(e,"string");return nf(t)=="symbol"?t:t+""}function Fue(e,t){if(nf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gue(e,t,n,r,i){for(var s=(r||[]).slice(),l=s.length,c=t.start,f=t.end,d=function(g){var x=s[g],_,S=function(){return _===void 0&&(_=n(x,g)),_};if(g===l-1){var w=e*(x.coordinate+e*S()/2-f);s[g]=x=pn(pn({},x),{},{tickCoord:w>0?x.coordinate-w*e:x.coordinate})}else s[g]=x=pn(pn({},x),{},{tickCoord:x.coordinate});var j=Tm(e,x.tickCoord,S,c,f);j&&(f=x.tickCoord-e*(S()/2+i),s[g]=pn(pn({},x),{},{isShow:!0}))},v=l-1;v>=0;v--)d(v);return s}function Vue(e,t,n,r,i,s){var l=(r||[]).slice(),c=l.length,f=t.start,d=t.end;if(s){var v=r[c-1],m=n(v,c-1),g=e*(v.coordinate+e*m/2-d);l[c-1]=v=pn(pn({},v),{},{tickCoord:g>0?v.coordinate-g*e:v.coordinate});var x=Tm(e,v.tickCoord,function(){return m},f,d);x&&(d=v.tickCoord-e*(m/2+i),l[c-1]=pn(pn({},v),{},{isShow:!0}))}for(var _=s?c-1:c,S=function(E){var A=l[E],M,T=function(){return M===void 0&&(M=n(A,E)),M};if(E===0){var N=e*(A.coordinate-e*T()/2-f);l[E]=A=pn(pn({},A),{},{tickCoord:N<0?A.coordinate-N*e:A.coordinate})}else l[E]=A=pn(pn({},A),{},{tickCoord:A.coordinate});var R=Tm(e,A.tickCoord,T,f,d);R&&(f=A.tickCoord+e*(T()/2+i),l[E]=pn(pn({},A),{},{isShow:!0}))},w=0;w<_;w++)S(w);return l}function w_(e,t,n){var r=e.tick,i=e.ticks,s=e.viewBox,l=e.minTickGap,c=e.orientation,f=e.interval,d=e.tickFormatter,v=e.unit,m=e.angle;if(!i||!i.length||!r)return[];if(ye(f)||Wl.isSsr)return Bue(i,typeof f=="number"&&ye(f)?f:0);var g=[],x=c==="top"||c==="bottom"?"width":"height",_=v&&x==="width"?dc(v,{fontSize:t,letterSpacing:n}):{width:0,height:0},S=function(A,M){var T=$e(d)?d(A.value,M):A.value;return x==="width"?Iue(dc(T,{fontSize:t,letterSpacing:n}),_,m):dc(T,{fontSize:t,letterSpacing:n})[x]},w=i.length>=2?Pr(i[1].coordinate-i[0].coordinate):1,j=zue(s,w,x);return f==="equidistantPreserveStart"?que(w,j,S,i,l):(f==="preserveStart"||f==="preserveStartEnd"?g=Vue(w,j,S,i,l,f==="preserveStartEnd"):g=Gue(w,j,S,i,l),g.filter(function(E){return E.isShow}))}var Yue=["viewBox"],Wue=["viewBox"],Kue=["ticks"];function El(e){"@babel/helpers - typeof";return El=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},El(e)}function Gs(){return Gs=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},Gs.apply(this,arguments)}function rk(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 Yt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rk(Object(n),!0).forEach(function(r){S_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ow(e,t){if(e==null)return{};var n=Xue(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xue(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 Que(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ak(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iz(r.key),r)}}function Zue(e,t,n){return t&&ak(e.prototype,t),n&&ak(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jue(e,t,n){return t=Cm(t),ece(e,az()?Reflect.construct(t,n||[],Cm(e).constructor):t.apply(e,n))}function ece(e,t){if(t&&(El(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tce(e)}function tce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function az(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(az=function(){return!!e})()}function Cm(e){return Cm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cm(e)}function nce(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nS(e,t)}function nS(e,t){return nS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},nS(e,t)}function S_(e,t,n){return t=iz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iz(e){var t=rce(e,"string");return El(t)=="symbol"?t:t+""}function rce(e,t){if(El(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(El(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Zl=(function(e){function t(n){var r;return Que(this,t),r=Jue(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return nce(t,e),Zue(t,[{key:"shouldComponentUpdate",value:function(r,i){var s=r.viewBox,l=Ow(r,Yue),c=this.props,f=c.viewBox,d=Ow(c,Wue);return!Qs(s,f)||!Qs(l,d)||!Qs(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,s=i.x,l=i.y,c=i.width,f=i.height,d=i.orientation,v=i.tickSize,m=i.mirror,g=i.tickMargin,x,_,S,w,j,E,A=m?-1:1,M=r.tickSize||v,T=ye(r.tickCoord)?r.tickCoord:r.coordinate;switch(d){case"top":x=_=r.coordinate,w=l+ +!m*f,S=w-A*M,E=S-A*g,j=T;break;case"left":S=w=r.coordinate,_=s+ +!m*c,x=_-A*M,j=x-A*g,E=T;break;case"right":S=w=r.coordinate,_=s+ +m*c,x=_+A*M,j=x+A*g,E=T;break;default:x=_=r.coordinate,w=l+ +m*f,S=w+A*M,E=S+A*g,j=T;break}return{line:{x1:x,y1:S,x2:_,y2:w},tick:{x:j,y:E}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,s=r.mirror,l;switch(i){case"left":l=s?"start":"end";break;case"right":l=s?"end":"start";break;default:l="middle";break}return l}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,s=r.mirror,l="end";switch(i){case"left":case"right":l="middle";break;case"top":l=s?"start":"end";break;default:l=s?"end":"start";break}return l}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,s=r.y,l=r.width,c=r.height,f=r.orientation,d=r.mirror,v=r.axisLine,m=Yt(Yt(Yt({},Ve(this.props,!1)),Ve(v,!1)),{},{fill:"none"});if(f==="top"||f==="bottom"){var g=+(f==="top"&&!d||f==="bottom"&&d);m=Yt(Yt({},m),{},{x1:i,y1:s+g*c,x2:i+l,y2:s+g*c})}else{var x=+(f==="left"&&!d||f==="right"&&d);m=Yt(Yt({},m),{},{x1:i+x*l,y1:s,x2:i+x*l,y2:s+c})}return L.createElement("line",Gs({},m,{className:Ye("recharts-cartesian-axis-line",gr(v,"className"))}))}},{key:"renderTicks",value:function(r,i,s){var l=this,c=this.props,f=c.tickLine,d=c.stroke,v=c.tick,m=c.tickFormatter,g=c.unit,x=w_(Yt(Yt({},this.props),{},{ticks:r}),i,s),_=this.getTickTextAnchor(),S=this.getTickVerticalAnchor(),w=Ve(this.props,!1),j=Ve(v,!1),E=Yt(Yt({},w),{},{fill:"none"},Ve(f,!1)),A=x.map(function(M,T){var N=l.getTickLineCoord(M),R=N.line,D=N.tick,I=Yt(Yt(Yt(Yt({textAnchor:_,verticalAnchor:S},w),{},{stroke:"none",fill:d},j),D),{},{index:T,payload:M,visibleTicksCount:x.length,tickFormatter:m});return L.createElement(Lt,Gs({className:"recharts-cartesian-axis-tick",key:"tick-".concat(M.value,"-").concat(M.coordinate,"-").concat(M.tickCoord)},zh(l.props,M,T)),f&&L.createElement("line",Gs({},E,R,{className:Ye("recharts-cartesian-axis-tick-line",gr(f,"className"))})),v&&t.renderTickItem(v,I,"".concat($e(m)?m(M.value,T):M.value).concat(g||"")))});return L.createElement("g",{className:"recharts-cartesian-axis-ticks"},A)}},{key:"render",value:function(){var r=this,i=this.props,s=i.axisLine,l=i.width,c=i.height,f=i.ticksGenerator,d=i.className,v=i.hide;if(v)return null;var m=this.props,g=m.ticks,x=Ow(m,Kue),_=g;return $e(f)&&(_=g&&g.length>0?f(this.props):f(x)),l<=0||c<=0||!_||!_.length?null:L.createElement(Lt,{className:Ye("recharts-cartesian-axis",d),ref:function(w){r.layerReference=w}},s&&this.renderAxisLine(),this.renderTicks(_,this.state.fontSize,this.state.letterSpacing),vn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,s){var l,c=Ye(i.className,"recharts-cartesian-axis-tick-value");return L.isValidElement(r)?l=L.cloneElement(r,Yt(Yt({},i),{},{className:c})):$e(r)?l=r(Yt(Yt({},i),{},{className:c})):l=L.createElement(Xh,Gs({},i,{className:"recharts-cartesian-axis-tick-value"}),s),l}}])})(O.Component);S_(Zl,"displayName","CartesianAxis");S_(Zl,"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 ace=["x1","y1","x2","y2","key"],ice=["offset"];function Lo(e){"@babel/helpers - typeof";return Lo=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},Lo(e)}function ik(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 gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ik(Object(n),!0).forEach(function(r){oce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ik(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oce(e,t,n){return t=sce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sce(e){var t=lce(e,"string");return Lo(t)=="symbol"?t:t+""}function lce(e,t){if(Lo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jo(){return jo=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},jo.apply(this,arguments)}function ok(e,t){if(e==null)return{};var n=uce(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uce(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 cce=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,s=t.y,l=t.width,c=t.height,f=t.ry;return L.createElement("rect",{x:i,y:s,ry:f,width:l,height:c,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function oz(e,t){var n;if(L.isValidElement(e))n=L.cloneElement(e,t);else if($e(e))n=e(t);else{var r=t.x1,i=t.y1,s=t.x2,l=t.y2,c=t.key,f=ok(t,ace),d=Ve(f,!1);d.offset;var v=ok(d,ice);n=L.createElement("line",jo({},v,{x1:r,y1:i,x2:s,y2:l,fill:"none",key:c}))}return n}function fce(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,s=e.horizontalPoints;if(!i||!s||!s.length)return null;var l=s.map(function(c,f){var d=gn(gn({},e),{},{x1:t,y1:c,x2:t+n,y2:c,key:"line-".concat(f),index:f});return oz(i,d)});return L.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function dce(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,s=e.verticalPoints;if(!i||!s||!s.length)return null;var l=s.map(function(c,f){var d=gn(gn({},e),{},{x1:c,y1:t,x2:c,y2:t+n,key:"line-".concat(f),index:f});return oz(i,d)});return L.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function hce(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,s=e.width,l=e.height,c=e.horizontalPoints,f=e.horizontal,d=f===void 0?!0:f;if(!d||!t||!t.length)return null;var v=c.map(function(g){return Math.round(g+i-i)}).sort(function(g,x){return g-x});i!==v[0]&&v.unshift(0);var m=v.map(function(g,x){var _=!v[x+1],S=_?i+l-g:v[x+1]-g;if(S<=0)return null;var w=x%t.length;return L.createElement("rect",{key:"react-".concat(x),y:g,x:r,height:S,width:s,stroke:"none",fill:t[w],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return L.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}function mce(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,s=e.x,l=e.y,c=e.width,f=e.height,d=e.verticalPoints;if(!n||!r||!r.length)return null;var v=d.map(function(g){return Math.round(g+s-s)}).sort(function(g,x){return g-x});s!==v[0]&&v.unshift(0);var m=v.map(function(g,x){var _=!v[x+1],S=_?s+c-g:v[x+1]-g;if(S<=0)return null;var w=x%r.length;return L.createElement("rect",{key:"react-".concat(x),x:g,y:l,width:S,height:f,stroke:"none",fill:r[w],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return L.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}var pce=function(t,n){var r=t.xAxis,i=t.width,s=t.height,l=t.offset;return x5(w_(gn(gn(gn({},Zl.defaultProps),r),{},{ticks:Ia(r,!0),viewBox:{x:0,y:0,width:i,height:s}})),l.left,l.left+l.width,n)},vce=function(t,n){var r=t.yAxis,i=t.width,s=t.height,l=t.offset;return x5(w_(gn(gn(gn({},Zl.defaultProps),r),{},{ticks:Ia(r,!0),viewBox:{x:0,y:0,width:i,height:s}})),l.top,l.top+l.height,n)},Us={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function sz(e){var t,n,r,i,s,l,c=g_(),f=y_(),d=rue(),v=gn(gn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Us.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Us.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Us.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Us.horizontalFill,vertical:(s=e.vertical)!==null&&s!==void 0?s:Us.vertical,verticalFill:(l=e.verticalFill)!==null&&l!==void 0?l:Us.verticalFill,x:ye(e.x)?e.x:d.left,y:ye(e.y)?e.y:d.top,width:ye(e.width)?e.width:d.width,height:ye(e.height)?e.height:d.height}),m=v.x,g=v.y,x=v.width,_=v.height,S=v.syncWithTicks,w=v.horizontalValues,j=v.verticalValues,E=eue(),A=tue();if(!ye(x)||x<=0||!ye(_)||_<=0||!ye(m)||m!==+m||!ye(g)||g!==+g)return null;var M=v.verticalCoordinatesGenerator||pce,T=v.horizontalCoordinatesGenerator||vce,N=v.horizontalPoints,R=v.verticalPoints;if((!N||!N.length)&&$e(T)){var D=w&&w.length,I=T({yAxis:A?gn(gn({},A),{},{ticks:D?w:A.ticks}):void 0,width:c,height:f,offset:d},D?!0:S);qa(Array.isArray(I),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Lo(I),"]")),Array.isArray(I)&&(N=I)}if((!R||!R.length)&&$e(M)){var Y=j&&j.length,z=M({xAxis:E?gn(gn({},E),{},{ticks:Y?j:E.ticks}):void 0,width:c,height:f,offset:d},Y?!0:S);qa(Array.isArray(z),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Lo(z),"]")),Array.isArray(z)&&(R=z)}return L.createElement("g",{className:"recharts-cartesian-grid"},L.createElement(cce,{fill:v.fill,fillOpacity:v.fillOpacity,x:v.x,y:v.y,width:v.width,height:v.height,ry:v.ry}),L.createElement(fce,jo({},v,{offset:d,horizontalPoints:N,xAxis:E,yAxis:A})),L.createElement(dce,jo({},v,{offset:d,verticalPoints:R,xAxis:E,yAxis:A})),L.createElement(hce,jo({},v,{horizontalPoints:N})),L.createElement(mce,jo({},v,{verticalPoints:R})))}sz.displayName="CartesianGrid";var gce=["type","layout","connectNulls","ref"],yce=["key"];function Al(e){"@babel/helpers - typeof";return Al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Al(e)}function sk(e,t){if(e==null)return{};var n=bce(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bce(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 vc(){return vc=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},vc.apply(this,arguments)}function lk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lk(Object(n),!0).forEach(function(r){Mr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hs(e){return Oce(e)||Sce(e)||wce(e)||xce()}function xce(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
362
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wce(e,t){if(e){if(typeof e=="string")return rS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rS(e,t)}}function Sce(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Oce(e){if(Array.isArray(e))return rS(e)}function rS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uz(r.key),r)}}function jce(e,t,n){return t&&uk(e.prototype,t),n&&uk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ece(e,t,n){return t=Nm(t),Ace(e,lz()?Reflect.construct(t,n||[],Nm(e).constructor):t.apply(e,n))}function Ace(e,t){if(t&&(Al(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tce(e)}function Tce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lz=function(){return!!e})()}function Nm(e){return Nm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nm(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&&aS(e,t)}function aS(e,t){return aS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},aS(e,t)}function Mr(e,t,n){return t=uz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uz(e){var t=Nce(e,"string");return Al(t)=="symbol"?t:t+""}function Nce(e,t){if(Al(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Al(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ta=(function(e){function t(){var n;_ce(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=Ece(this,t,[].concat(i)),Mr(n,"state",{isAnimationFinished:!0,totalLength:0}),Mr(n,"generateSimpleStrokeDasharray",function(l,c){return"".concat(c,"px ").concat(l-c,"px")}),Mr(n,"getStrokeDasharray",function(l,c,f){var d=f.reduce(function(j,E){return j+E});if(!d)return n.generateSimpleStrokeDasharray(c,l);for(var v=Math.floor(l/d),m=l%d,g=c-l,x=[],_=0,S=0;_<f.length;S+=f[_],++_)if(S+f[_]>m){x=[].concat(Hs(f.slice(0,_)),[m-S]);break}var w=x.length%2===0?[0,g]:[g];return[].concat(Hs(t.repeat(f,v)),Hs(x),w).map(function(j){return"".concat(j,"px")}).join(", ")}),Mr(n,"id",wf("recharts-line-")),Mr(n,"pathRef",function(l){n.mainCurve=l}),Mr(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Mr(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return Cce(t,e),jce(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 s=this.props,l=s.points,c=s.xAxis,f=s.yAxis,d=s.layout,v=s.children,m=yr(v,Af);if(!m)return null;var g=function(S,w){return{x:S.x,y:S.y,value:S.value,errorVal:Zn(S.payload,w)}},x={clipPath:r?"url(#clipPath-".concat(i,")"):null};return L.createElement(Lt,x,m.map(function(_){return L.cloneElement(_,{key:"bar-".concat(_.props.dataKey),data:l,xAxis:c,yAxis:f,layout:d,dataPointFormatter:g})}))}},{key:"renderDots",value:function(r,i,s){var l=this.props.isAnimationActive;if(l&&!this.state.isAnimationFinished)return null;var c=this.props,f=c.dot,d=c.points,v=c.dataKey,m=Ve(this.props,!1),g=Ve(f,!0),x=d.map(function(S,w){var j=Gn(Gn(Gn({key:"dot-".concat(w),r:3},m),g),{},{index:w,cx:S.x,cy:S.y,value:S.value,dataKey:v,payload:S.payload,points:d});return t.renderDotItem(f,j)}),_={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(s,")"):null};return L.createElement(Lt,vc({className:"recharts-line-dots",key:"dots"},_),x)}},{key:"renderCurveStatically",value:function(r,i,s,l){var c=this.props,f=c.type,d=c.layout,v=c.connectNulls;c.ref;var m=sk(c,gce),g=Gn(Gn(Gn({},Ve(m,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(s,")"):null,points:r},l),{},{type:f,layout:d,connectNulls:v});return L.createElement(k1,vc({},g,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var s=this,l=this.props,c=l.points,f=l.strokeDasharray,d=l.isAnimationActive,v=l.animationBegin,m=l.animationDuration,g=l.animationEasing,x=l.animationId,_=l.animateNewValues,S=l.width,w=l.height,j=this.state,E=j.prevPoints,A=j.totalLength;return L.createElement(Ka,{begin:v,duration:m,isActive:d,easing:g,from:{t:0},to:{t:1},key:"line-".concat(x),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(M){var T=M.t;if(E){var N=E.length/c.length,R=c.map(function(H,V){var Q=Math.floor(V*N);if(E[Q]){var K=E[Q],k=Rr(K.x,H.x),q=Rr(K.y,H.y);return Gn(Gn({},H),{},{x:k(T),y:q(T)})}if(_){var B=Rr(S*2,H.x),W=Rr(w/2,H.y);return Gn(Gn({},H),{},{x:B(T),y:W(T)})}return Gn(Gn({},H),{},{x:H.x,y:H.y})});return s.renderCurveStatically(R,r,i)}var D=Rr(0,A),I=D(T),Y;if(f){var z="".concat(f).split(/[,\s]+/gim).map(function(H){return parseFloat(H)});Y=s.getStrokeDasharray(I,A,z)}else Y=s.generateSimpleStrokeDasharray(A,I);return s.renderCurveStatically(c,r,i,{strokeDasharray:Y})})}},{key:"renderCurve",value:function(r,i){var s=this.props,l=s.points,c=s.isAnimationActive,f=this.state,d=f.prevPoints,v=f.totalLength;return c&&l&&l.length&&(!d&&v>0||!Tp(d,l))?this.renderCurveWithAnimation(r,i):this.renderCurveStatically(l,r,i)}},{key:"render",value:function(){var r,i=this.props,s=i.hide,l=i.dot,c=i.points,f=i.className,d=i.xAxis,v=i.yAxis,m=i.top,g=i.left,x=i.width,_=i.height,S=i.isAnimationActive,w=i.id;if(s||!c||!c.length)return null;var j=this.state.isAnimationFinished,E=c.length===1,A=Ye("recharts-line",f),M=d&&d.allowDataOverflow,T=v&&v.allowDataOverflow,N=M||T,R=qe(w)?this.id:w,D=(r=Ve(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},I=D.r,Y=I===void 0?3:I,z=D.strokeWidth,H=z===void 0?2:z,V=HK(l)?l:{},Q=V.clipDot,K=Q===void 0?!0:Q,k=Y*2+H;return L.createElement(Lt,{className:A},M||T?L.createElement("defs",null,L.createElement("clipPath",{id:"clipPath-".concat(R)},L.createElement("rect",{x:M?g:g-x/2,y:T?m:m-_/2,width:M?x:x*2,height:T?_:_*2})),!K&&L.createElement("clipPath",{id:"clipPath-dots-".concat(R)},L.createElement("rect",{x:g-k/2,y:m-k/2,width:x+k,height:_+k}))):null,!E&&this.renderCurve(N,R),this.renderErrorBar(N,R),(E||l)&&this.renderDots(N,K,R),(!S||j)&&Pi.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 s=r.length%2!==0?[].concat(Hs(r),[0]):r,l=[],c=0;c<i;++c)l=[].concat(Hs(l),Hs(s));return l}},{key:"renderDotItem",value:function(r,i){var s;if(L.isValidElement(r))s=L.cloneElement(r,i);else if($e(r))s=r(i);else{var l=i.key,c=sk(i,yce),f=Ye("recharts-line-dot",typeof r!="boolean"?r.className:"");s=L.createElement(h_,vc({key:l},c,{className:f}))}return s}}])})(O.PureComponent);Mr(ta,"displayName","Line");Mr(ta,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Wl.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Mr(ta,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,s=e.yAxisTicks,l=e.dataKey,c=e.bandSize,f=e.displayedData,d=e.offset,v=t.layout,m=f.map(function(g,x){var _=Zn(g,l);return v==="horizontal"?{x:ED({axis:n,ticks:i,bandSize:c,entry:g,index:x}),y:qe(_)?null:r.scale(_),value:_,payload:g}:{x:qe(_)?null:n.scale(_),y:ED({axis:r,ticks:s,bandSize:c,entry:g,index:x}),value:_,payload:g}});return Gn({points:m,layout:v},d)});function Tl(e){"@babel/helpers - typeof";return Tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tl(e)}function Mce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rce(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 Dce(e,t,n){return t&&Rce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pce(e,t,n){return t=Mm(t),kce(e,cz()?Reflect.construct(t,n||[],Mm(e).constructor):t.apply(e,n))}function kce(e,t){if(t&&(Tl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $ce(e)}function $ce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cz=function(){return!!e})()}function Mm(e){return Mm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mm(e)}function Lce(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iS(e,t)}function iS(e,t){return iS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},iS(e,t)}function fz(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=Ice(e,"string");return Tl(t)=="symbol"?t:t+""}function Ice(e,t){if(Tl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function oS(){return oS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oS.apply(this,arguments)}function zce(e){var t=e.xAxisId,n=g_(),r=y_(),i=K5(t);return i==null?null:O.createElement(Zl,oS({},i,{className:Ye("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(l){return Ia(l,!0)}}))}var Ip=(function(e){function t(){return Mce(this,t),Pce(this,t,arguments)}return Lce(t,e),Dce(t,[{key:"render",value:function(){return O.createElement(zce,this.props)}}])})(O.Component);fz(Ip,"displayName","XAxis");fz(Ip,"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 Cl(e){"@babel/helpers - typeof";return Cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cl(e)}function Bce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qce(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 Uce(e,t,n){return t&&qce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hce(e,t,n){return t=Rm(t),Fce(e,hz()?Reflect.construct(t,n||[],Rm(e).constructor):t.apply(e,n))}function Fce(e,t){if(t&&(Cl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gce(e)}function Gce(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 Rm(e){return Rm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rm(e)}function Vce(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sS(e,t)}function sS(e,t){return sS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},sS(e,t)}function mz(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=Yce(e,"string");return Cl(t)=="symbol"?t:t+""}function Yce(e,t){if(Cl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function lS(){return lS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lS.apply(this,arguments)}var Wce=function(t){var n=t.yAxisId,r=g_(),i=y_(),s=X5(n);return s==null?null:O.createElement(Zl,lS({},s,{className:Ye("recharts-".concat(s.axisType," ").concat(s.axisType),s.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(c){return Ia(c,!0)}}))},zp=(function(e){function t(){return Bce(this,t),Hce(this,t,arguments)}return Vce(t,e),Uce(t,[{key:"render",value:function(){return O.createElement(Wce,this.props)}}])})(O.Component);mz(zp,"displayName","YAxis");mz(zp,"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 ck(e){return Zce(e)||Qce(e)||Xce(e)||Kce()}function Kce(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
363
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xce(e,t){if(e){if(typeof e=="string")return uS(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 uS(e,t)}}function Qce(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zce(e){if(Array.isArray(e))return uS(e)}function uS(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 cS=function(t,n,r,i,s){var l=yr(t,x_),c=yr(t,kp),f=[].concat(ck(l),ck(c)),d=yr(t,Lp),v="".concat(i,"Id"),m=i[0],g=n;if(f.length&&(g=f.reduce(function(S,w){if(w.props[v]===r&&ua(w.props,"extendDomain")&&ye(w.props[m])){var j=w.props[m];return[Math.min(S[0],j),Math.max(S[1],j)]}return S},g)),d.length){var x="".concat(m,"1"),_="".concat(m,"2");g=d.reduce(function(S,w){if(w.props[v]===r&&ua(w.props,"extendDomain")&&ye(w.props[x])&&ye(w.props[_])){var j=w.props[x],E=w.props[_];return[Math.min(S[0],j,E),Math.max(S[1],j,E)]}return S},g)}return s&&s.length&&(g=s.reduce(function(S,w){return ye(w)?[Math.min(S[0],w),Math.max(S[1],w)]:S},g)),g},_w={exports:{}},fk;function Jce(){return fk||(fk=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,v){this.fn=f,this.context=d,this.once=v||!1}function s(f,d,v,m,g){if(typeof v!="function")throw new TypeError("The listener must be a function");var x=new i(v,m||f,g),_=n?n+d:d;return f._events[_]?f._events[_].fn?f._events[_]=[f._events[_],x]:f._events[_].push(x):(f._events[_]=x,f._eventsCount++),f}function l(f,d){--f._eventsCount===0?f._events=new r:delete f._events[d]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var d=[],v,m;if(this._eventsCount===0)return d;for(m in v=this._events)t.call(v,m)&&d.push(n?m.slice(1):m);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(v)):d},c.prototype.listeners=function(d){var v=n?n+d:d,m=this._events[v];if(!m)return[];if(m.fn)return[m.fn];for(var g=0,x=m.length,_=new Array(x);g<x;g++)_[g]=m[g].fn;return _},c.prototype.listenerCount=function(d){var v=n?n+d:d,m=this._events[v];return m?m.fn?1:m.length:0},c.prototype.emit=function(d,v,m,g,x,_){var S=n?n+d:d;if(!this._events[S])return!1;var w=this._events[S],j=arguments.length,E,A;if(w.fn){switch(w.once&&this.removeListener(d,w.fn,void 0,!0),j){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,v),!0;case 3:return w.fn.call(w.context,v,m),!0;case 4:return w.fn.call(w.context,v,m,g),!0;case 5:return w.fn.call(w.context,v,m,g,x),!0;case 6:return w.fn.call(w.context,v,m,g,x,_),!0}for(A=1,E=new Array(j-1);A<j;A++)E[A-1]=arguments[A];w.fn.apply(w.context,E)}else{var M=w.length,T;for(A=0;A<M;A++)switch(w[A].once&&this.removeListener(d,w[A].fn,void 0,!0),j){case 1:w[A].fn.call(w[A].context);break;case 2:w[A].fn.call(w[A].context,v);break;case 3:w[A].fn.call(w[A].context,v,m);break;case 4:w[A].fn.call(w[A].context,v,m,g);break;default:if(!E)for(T=1,E=new Array(j-1);T<j;T++)E[T-1]=arguments[T];w[A].fn.apply(w[A].context,E)}}return!0},c.prototype.on=function(d,v,m){return s(this,d,v,m,!1)},c.prototype.once=function(d,v,m){return s(this,d,v,m,!0)},c.prototype.removeListener=function(d,v,m,g){var x=n?n+d:d;if(!this._events[x])return this;if(!v)return l(this,x),this;var _=this._events[x];if(_.fn)_.fn===v&&(!g||_.once)&&(!m||_.context===m)&&l(this,x);else{for(var S=0,w=[],j=_.length;S<j;S++)(_[S].fn!==v||g&&!_[S].once||m&&_[S].context!==m)&&w.push(_[S]);w.length?this._events[x]=w.length===1?w[0]:w:l(this,x)}return this},c.prototype.removeAllListeners=function(d){var v;return d?(v=n?n+d:d,this._events[v]&&l(this,v)):(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})(_w)),_w.exports}var efe=Jce();const tfe=gt(efe);var jw=new tfe,Ew="recharts.syncMouseEvents";function rf(e){"@babel/helpers - typeof";return rf=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},rf(e)}function nfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rfe(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 afe(e,t,n){return t&&rfe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Aw(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=ife(e,"string");return rf(t)=="symbol"?t:t+""}function ife(e,t){if(rf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ofe=(function(){function e(){nfe(this,e),Aw(this,"activeIndex",0),Aw(this,"coordinateList",[]),Aw(this,"layout","horizontal")}return afe(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,s=i===void 0?null:i,l=n.container,c=l===void 0?null:l,f=n.layout,d=f===void 0?null:f,v=n.offset,m=v===void 0?null:v,g=n.mouseHandlerCallback,x=g===void 0?null:g;this.coordinateList=(r=s??this.coordinateList)!==null&&r!==void 0?r:[],this.container=c??this.container,this.layout=d??this.layout,this.offset=m??this.offset,this.mouseHandlerCallback=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(),s=i.x,l=i.y,c=i.height,f=this.coordinateList[this.activeIndex].coordinate,d=((n=window)===null||n===void 0?void 0:n.scrollX)||0,v=((r=window)===null||r===void 0?void 0:r.scrollY)||0,m=s+f+d,g=l+this.offset.top+c/2+v;this.mouseHandlerCallback({pageX:m,pageY:g})}}}])})();function sfe(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&&ye(r)&&ye(i))return!0}return!1}function lfe(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 gz(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,s=e.endAngle,l=cn(t,n,r,i),c=cn(t,n,r,s);return{points:[l,c],cx:t,cy:n,radius:r,startAngle:i,endAngle:s}}function ufe(e,t,n){var r,i,s,l;if(e==="horizontal")r=t.x,s=r,i=n.top,l=n.top+n.height;else if(e==="vertical")i=t.y,l=i,r=n.left,s=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var c=t.cx,f=t.cy,d=t.innerRadius,v=t.outerRadius,m=t.angle,g=cn(c,f,d,m),x=cn(c,f,v,m);r=g.x,i=g.y,s=x.x,l=x.y}else return gz(t);return[{x:r,y:i},{x:s,y:l}]}function af(e){"@babel/helpers - typeof";return af=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},af(e)}function dk(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 ch(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dk(Object(n),!0).forEach(function(r){cfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cfe(e,t,n){return t=ffe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ffe(e){var t=dfe(e,"string");return af(t)=="symbol"?t:t+""}function dfe(e,t){if(af(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(af(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hfe(e){var t,n,r=e.element,i=e.tooltipEventType,s=e.isActive,l=e.activeCoordinate,c=e.activePayload,f=e.offset,d=e.activeTooltipIndex,v=e.tooltipAxisBandSize,m=e.layout,g=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||!s||!l||g!=="ScatterChart"&&i!=="axis")return null;var _,S=k1;if(g==="ScatterChart")_=l,S=cse;else if(g==="BarChart")_=lfe(m,l,f,v),S=d_;else if(m==="radial"){var w=gz(l),j=w.cx,E=w.cy,A=w.radius,M=w.startAngle,T=w.endAngle;_={cx:j,cy:E,startAngle:M,endAngle:T,innerRadius:A,outerRadius:A},S=j5}else _={points:ufe(m,l,f)},S=k1;var N=ch(ch(ch(ch({stroke:"#ccc",pointerEvents:"none"},f),_),Ve(x,!1)),{},{payload:c,payloadIndex:d,className:Ye("recharts-tooltip-cursor",x.className)});return O.isValidElement(x)?O.cloneElement(x,N):O.createElement(S,N)}var mfe=["item"],pfe=["children","className","width","height","style","compact","title","desc"];function Nl(e){"@babel/helpers - typeof";return Nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nl(e)}function Vs(){return Vs=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},Vs.apply(this,arguments)}function hk(e,t){return yfe(e)||gfe(e,t)||bz(e,t)||vfe()}function vfe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
364
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gfe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(v){d=!0,i=v}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function yfe(e){if(Array.isArray(e))return e}function mk(e,t){if(e==null)return{};var n=bfe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bfe(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 xfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wfe(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,xz(r.key),r)}}function Sfe(e,t,n){return t&&wfe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ofe(e,t,n){return t=Dm(t),_fe(e,yz()?Reflect.construct(t,n||[],Dm(e).constructor):t.apply(e,n))}function _fe(e,t){if(t&&(Nl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jfe(e)}function jfe(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 Dm(e){return Dm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dm(e)}function Efe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fS(e,t)}function fS(e,t){return fS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},fS(e,t)}function Ml(e){return Cfe(e)||Tfe(e)||bz(e)||Afe()}function Afe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
365
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bz(e,t){if(e){if(typeof e=="string")return dS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dS(e,t)}}function Tfe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cfe(e){if(Array.isArray(e))return dS(e)}function dS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pk(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?pk(Object(n),!0).forEach(function(r){Te(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Te(e,t,n){return t=xz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xz(e){var t=Nfe(e,"string");return Nl(t)=="symbol"?t:t+""}function Nfe(e,t){if(Nl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mfe={xAxis:["bottom","top"],yAxis:["left","right"]},Rfe={width:"100%",height:"100%"},wz={x:0,y:0};function fh(e){return e}var Dfe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Pfe=function(t,n,r,i){var s=n.find(function(v){return v&&v.index===r});if(s){if(t==="horizontal")return{x:s.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:s.coordinate};if(t==="centric"){var l=s.coordinate,c=i.radius;return le(le(le({},i),cn(i.cx,i.cy,c,l)),{},{angle:l,radius:c})}var f=s.coordinate,d=i.angle;return le(le(le({},i),cn(i.cx,i.cy,f,d)),{},{angle:d,radius:f})}return wz},Bp=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,s=n.dataEndIndex,l=(r??[]).reduce(function(c,f){var d=f.props.data;return d&&d.length?[].concat(Ml(c),Ml(d)):c},[]);return l.length>0?l:t&&t.length&&ye(i)&&ye(s)?t.slice(i,s+1):[]};function Sz(e){return e==="number"?[0,"auto"]:void 0}var hS=function(t,n,r,i){var s=t.graphicalItems,l=t.tooltipAxis,c=Bp(n,t);return r<0||!s||!s.length||r>=c.length?null:s.reduce(function(f,d){var v,m=(v=d.props.data)!==null&&v!==void 0?v:n;m&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(m=m.slice(t.dataStartIndex,t.dataEndIndex+1));var g;if(l.dataKey&&!l.allowDuplicatedCategory){var x=m===void 0?c:m;g=Lh(x,l.dataKey,i)}else g=m&&m[r]||c[r];return g?[].concat(Ml(f),[S5(d,g)]):f},[])},vk=function(t,n,r,i){var s=i||{x:t.chartX,y:t.chartY},l=Dfe(s,r),c=t.orderedTooltipTicks,f=t.tooltipAxis,d=t.tooltipTicks,v=Hre(l,c,d,f);if(v>=0&&d){var m=d[v]&&d[v].value,g=hS(t,n,v,m),x=Pfe(r,c,v,s);return{activeTooltipIndex:v,activeLabel:m,activePayload:g,activeCoordinate:x}}return null},kfe=function(t,n){var r=n.axes,i=n.graphicalItems,s=n.axisType,l=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,v=t.layout,m=t.children,g=t.stackOffset,x=b5(v,s);return r.reduce(function(_,S){var w,j=S.type.defaultProps!==void 0?le(le({},S.type.defaultProps),S.props):S.props,E=j.type,A=j.dataKey,M=j.allowDataOverflow,T=j.allowDuplicatedCategory,N=j.scale,R=j.ticks,D=j.includeHidden,I=j[l];if(_[I])return _;var Y=Bp(t.data,{graphicalItems:i.filter(function(F){var X,ae=l in F.props?F.props[l]:(X=F.type.defaultProps)===null||X===void 0?void 0:X[l];return ae===I}),dataStartIndex:f,dataEndIndex:d}),z=Y.length,H,V,Q;sfe(j.domain,M,E)&&(H=N1(j.domain,null,M),x&&(E==="number"||N!=="auto")&&(Q=mc(Y,A,"category")));var K=Sz(E);if(!H||H.length===0){var k,q=(k=j.domain)!==null&&k!==void 0?k:K;if(A){if(H=mc(Y,A,E),E==="category"&&x){var B=DK(H);T&&B?(V=H,H=xm(0,z)):T||(H=ND(q,H,S).reduce(function(F,X){return F.indexOf(X)>=0?F:[].concat(Ml(F),[X])},[]))}else if(E==="category")T?H=H.filter(function(F){return F!==""&&!qe(F)}):H=ND(q,H,S).reduce(function(F,X){return F.indexOf(X)>=0||X===""||qe(X)?F:[].concat(Ml(F),[X])},[]);else if(E==="number"){var W=Wre(Y,i.filter(function(F){var X,ae,de=l in F.props?F.props[l]:(X=F.type.defaultProps)===null||X===void 0?void 0:X[l],ge="hide"in F.props?F.props.hide:(ae=F.type.defaultProps)===null||ae===void 0?void 0:ae.hide;return de===I&&(D||!ge)}),A,s,v);W&&(H=W)}x&&(E==="number"||N!=="auto")&&(Q=mc(Y,A,"category"))}else x?H=xm(0,z):c&&c[I]&&c[I].hasStack&&E==="number"?H=g==="expand"?[0,1]:w5(c[I].stackGroups,f,d):H=y5(Y,i.filter(function(F){var X=l in F.props?F.props[l]:F.type.defaultProps[l],ae="hide"in F.props?F.props.hide:F.type.defaultProps.hide;return X===I&&(D||!ae)}),E,v,!0);if(E==="number")H=cS(m,H,I,s,R),q&&(H=N1(q,H,M));else if(E==="category"&&q){var se=q,$=H.every(function(F){return se.indexOf(F)>=0});$&&(H=se)}}return le(le({},_),{},Te({},I,le(le({},j),{},{axisType:s,domain:H,categoricalDomain:Q,duplicateDomain:V,originalDomain:(w=j.domain)!==null&&w!==void 0?w:K,isCategorical:x,layout:v})))},{})},$fe=function(t,n){var r=n.graphicalItems,i=n.Axis,s=n.axisType,l=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,v=t.layout,m=t.children,g=Bp(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:d}),x=g.length,_=b5(v,s),S=-1;return r.reduce(function(w,j){var E=j.type.defaultProps!==void 0?le(le({},j.type.defaultProps),j.props):j.props,A=E[l],M=Sz("number");if(!w[A]){S++;var T;return _?T=xm(0,x):c&&c[A]&&c[A].hasStack?(T=w5(c[A].stackGroups,f,d),T=cS(m,T,A,s)):(T=N1(M,y5(g,r.filter(function(N){var R,D,I=l in N.props?N.props[l]:(R=N.type.defaultProps)===null||R===void 0?void 0:R[l],Y="hide"in N.props?N.props.hide:(D=N.type.defaultProps)===null||D===void 0?void 0:D.hide;return I===A&&!Y}),"number",v),i.defaultProps.allowDataOverflow),T=cS(m,T,A,s)),le(le({},w),{},Te({},A,le(le({axisType:s},i.defaultProps),{},{hide:!0,orientation:gr(Mfe,"".concat(s,".").concat(S%2),null),domain:T,originalDomain:M,isCategorical:_,layout:v})))}return w},{})},Lfe=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,s=n.AxisComp,l=n.graphicalItems,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,v=t.children,m="".concat(i,"Id"),g=yr(v,s),x={};return g&&g.length?x=kfe(t,{axes:g,graphicalItems:l,axisType:i,axisIdKey:m,stackGroups:c,dataStartIndex:f,dataEndIndex:d}):l&&l.length&&(x=$fe(t,{Axis:s,graphicalItems:l,axisType:i,axisIdKey:m,stackGroups:c,dataStartIndex:f,dataEndIndex:d})),x},Ife=function(t){var n=Ni(t),r=Ia(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:zO(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:cm(n,r)}},gk=function(t){var n=t.children,r=t.defaultShowTooltip,i=Yn(n,wl),s=0,l=0;return t.data&&t.data.length!==0&&(l=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(s=i.props.startIndex),i.props.endIndex>=0&&(l=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:s,dataEndIndex:l,activeTooltipIndex:-1,isTooltipActive:!!r}},zfe=function(t){return!t||!t.length?!1:t.some(function(n){var r=Ba(n&&n.type);return r&&r.indexOf("Bar")>=0})},yk=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"}},Bfe=function(t,n){var r=t.props,i=t.graphicalItems,s=t.xAxisMap,l=s===void 0?{}:s,c=t.yAxisMap,f=c===void 0?{}:c,d=r.width,v=r.height,m=r.children,g=r.margin||{},x=Yn(m,wl),_=Yn(m,Eo),S=Object.keys(f).reduce(function(T,N){var R=f[N],D=R.orientation;return!R.mirror&&!R.hide?le(le({},T),{},Te({},D,T[D]+R.width)):T},{left:g.left||0,right:g.right||0}),w=Object.keys(l).reduce(function(T,N){var R=l[N],D=R.orientation;return!R.mirror&&!R.hide?le(le({},T),{},Te({},D,gr(T,"".concat(D))+R.height)):T},{top:g.top||0,bottom:g.bottom||0}),j=le(le({},w),S),E=j.bottom;x&&(j.bottom+=x.props.height||wl.defaultProps.height),_&&n&&(j=Vre(j,i,r,n));var A=d-j.left-j.right,M=v-j.top-j.bottom;return le(le({brushBottom:E},j),{},{width:Math.max(A,0),height:Math.max(M,0)})},qfe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},Ufe=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,s=i===void 0?"axis":i,l=t.validateTooltipEventTypes,c=l===void 0?["axis"]:l,f=t.axisComponents,d=t.legendContent,v=t.formatAxisMap,m=t.defaultProps,g=function(j,E){var A=E.graphicalItems,M=E.stackGroups,T=E.offset,N=E.updateId,R=E.dataStartIndex,D=E.dataEndIndex,I=j.barSize,Y=j.layout,z=j.barGap,H=j.barCategoryGap,V=j.maxBarSize,Q=yk(Y),K=Q.numericAxisName,k=Q.cateAxisName,q=zfe(A),B=[];return A.forEach(function(W,se){var $=Bp(j.data,{graphicalItems:[W],dataStartIndex:R,dataEndIndex:D}),F=W.type.defaultProps!==void 0?le(le({},W.type.defaultProps),W.props):W.props,X=F.dataKey,ae=F.maxBarSize,de=F["".concat(K,"Id")],ge=F["".concat(k,"Id")],ce={},he=f.reduce(function(Ln,Nt){var er=E["".concat(Nt.axisType,"Map")],Qt=F["".concat(Nt.axisType,"Id")];er&&er[Qt]||Nt.axisType==="zAxis"||$o();var Yo=er[Qt];return le(le({},Ln),{},Te(Te({},Nt.axisType,Yo),"".concat(Nt.axisType,"Ticks"),Ia(Yo)))},ce),ie=he[k],me=he["".concat(k,"Ticks")],ve=M&&M[de]&&M[de].hasStack&&oae(W,M[de].stackGroups),ne=Ba(W.type).indexOf("Bar")>=0,De=cm(ie,me),je=[],rt=q&&Fre({barSize:I,stackGroups:M,totalSize:qfe(he,k)});if(ne){var Xe,ft,fn=qe(ae)?V:ae,St=(Xe=(ft=cm(ie,me,!0))!==null&&ft!==void 0?ft:fn)!==null&&Xe!==void 0?Xe:0;je=Gre({barGap:z,barCategoryGap:H,bandSize:St!==De?St:De,sizeList:rt[ge],maxBarSize:fn}),St!==De&&(je=je.map(function(Ln){return le(le({},Ln),{},{position:le(le({},Ln.position),{},{offset:Ln.position.offset-St/2})})}))}var Hr=W&&W.type&&W.type.getComposedData;Hr&&B.push({props:le(le({},Hr(le(le({},he),{},{displayedData:$,props:j,dataKey:X,item:W,bandSize:De,barPosition:je,offset:T,stackedData:ve,layout:Y,dataStartIndex:R,dataEndIndex:D}))),{},Te(Te(Te({key:W.key||"item-".concat(se)},K,he[K]),k,he[k]),"animationId",N)),childIndex:VK(W,j.children),item:W})}),B},x=function(j,E){var A=j.props,M=j.dataStartIndex,T=j.dataEndIndex,N=j.updateId;if(!FN({props:A}))return null;var R=A.children,D=A.layout,I=A.stackOffset,Y=A.data,z=A.reverseStackOrder,H=yk(D),V=H.numericAxisName,Q=H.cateAxisName,K=yr(R,r),k=rae(Y,K,"".concat(V,"Id"),"".concat(Q,"Id"),I,z),q=f.reduce(function(F,X){var ae="".concat(X.axisType,"Map");return le(le({},F),{},Te({},ae,Lfe(A,le(le({},X),{},{graphicalItems:K,stackGroups:X.axisType===V&&k,dataStartIndex:M,dataEndIndex:T}))))},{}),B=Bfe(le(le({},q),{},{props:A,graphicalItems:K}),E==null?void 0:E.legendBBox);Object.keys(q).forEach(function(F){q[F]=v(A,q[F],B,F.replace("Map",""),n)});var W=q["".concat(Q,"Map")],se=Ife(W),$=g(A,le(le({},q),{},{dataStartIndex:M,dataEndIndex:T,updateId:N,graphicalItems:K,stackGroups:k,offset:B}));return le(le({formattedGraphicalItems:$,graphicalItems:K,offset:B,stackGroups:k},se),q)},_=(function(w){function j(E){var A,M,T;return xfe(this,j),T=Ofe(this,j,[E]),Te(T,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Te(T,"accessibilityManager",new ofe),Te(T,"handleLegendBBoxUpdate",function(N){if(N){var R=T.state,D=R.dataStartIndex,I=R.dataEndIndex,Y=R.updateId;T.setState(le({legendBBox:N},x({props:T.props,dataStartIndex:D,dataEndIndex:I,updateId:Y},le(le({},T.state),{},{legendBBox:N}))))}}),Te(T,"handleReceiveSyncEvent",function(N,R,D){if(T.props.syncId===N){if(D===T.eventEmitterSymbol&&typeof T.props.syncMethod!="function")return;T.applySyncEvent(R)}}),Te(T,"handleBrushChange",function(N){var R=N.startIndex,D=N.endIndex;if(R!==T.state.dataStartIndex||D!==T.state.dataEndIndex){var I=T.state.updateId;T.setState(function(){return le({dataStartIndex:R,dataEndIndex:D},x({props:T.props,dataStartIndex:R,dataEndIndex:D,updateId:I},T.state))}),T.triggerSyncEvent({dataStartIndex:R,dataEndIndex:D})}}),Te(T,"handleMouseEnter",function(N){var R=T.getMouseInfo(N);if(R){var D=le(le({},R),{},{isTooltipActive:!0});T.setState(D),T.triggerSyncEvent(D);var I=T.props.onMouseEnter;$e(I)&&I(D,N)}}),Te(T,"triggeredAfterMouseMove",function(N){var R=T.getMouseInfo(N),D=R?le(le({},R),{},{isTooltipActive:!0}):{isTooltipActive:!1};T.setState(D),T.triggerSyncEvent(D);var I=T.props.onMouseMove;$e(I)&&I(D,N)}),Te(T,"handleItemMouseEnter",function(N){T.setState(function(){return{isTooltipActive:!0,activeItem:N,activePayload:N.tooltipPayload,activeCoordinate:N.tooltipPosition||{x:N.cx,y:N.cy}}})}),Te(T,"handleItemMouseLeave",function(){T.setState(function(){return{isTooltipActive:!1}})}),Te(T,"handleMouseMove",function(N){N.persist(),T.throttleTriggeredAfterMouseMove(N)}),Te(T,"handleMouseLeave",function(N){T.throttleTriggeredAfterMouseMove.cancel();var R={isTooltipActive:!1};T.setState(R),T.triggerSyncEvent(R);var D=T.props.onMouseLeave;$e(D)&&D(R,N)}),Te(T,"handleOuterEvent",function(N){var R=GK(N),D=gr(T.props,"".concat(R));if(R&&$e(D)){var I,Y;/.*touch.*/i.test(R)?Y=T.getMouseInfo(N.changedTouches[0]):Y=T.getMouseInfo(N),D((I=Y)!==null&&I!==void 0?I:{},N)}}),Te(T,"handleClick",function(N){var R=T.getMouseInfo(N);if(R){var D=le(le({},R),{},{isTooltipActive:!0});T.setState(D),T.triggerSyncEvent(D);var I=T.props.onClick;$e(I)&&I(D,N)}}),Te(T,"handleMouseDown",function(N){var R=T.props.onMouseDown;if($e(R)){var D=T.getMouseInfo(N);R(D,N)}}),Te(T,"handleMouseUp",function(N){var R=T.props.onMouseUp;if($e(R)){var D=T.getMouseInfo(N);R(D,N)}}),Te(T,"handleTouchMove",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&T.throttleTriggeredAfterMouseMove(N.changedTouches[0])}),Te(T,"handleTouchStart",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&T.handleMouseDown(N.changedTouches[0])}),Te(T,"handleTouchEnd",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&T.handleMouseUp(N.changedTouches[0])}),Te(T,"handleDoubleClick",function(N){var R=T.props.onDoubleClick;if($e(R)){var D=T.getMouseInfo(N);R(D,N)}}),Te(T,"handleContextMenu",function(N){var R=T.props.onContextMenu;if($e(R)){var D=T.getMouseInfo(N);R(D,N)}}),Te(T,"triggerSyncEvent",function(N){T.props.syncId!==void 0&&jw.emit(Ew,T.props.syncId,N,T.eventEmitterSymbol)}),Te(T,"applySyncEvent",function(N){var R=T.props,D=R.layout,I=R.syncMethod,Y=T.state.updateId,z=N.dataStartIndex,H=N.dataEndIndex;if(N.dataStartIndex!==void 0||N.dataEndIndex!==void 0)T.setState(le({dataStartIndex:z,dataEndIndex:H},x({props:T.props,dataStartIndex:z,dataEndIndex:H,updateId:Y},T.state)));else if(N.activeTooltipIndex!==void 0){var V=N.chartX,Q=N.chartY,K=N.activeTooltipIndex,k=T.state,q=k.offset,B=k.tooltipTicks;if(!q)return;if(typeof I=="function")K=I(B,N);else if(I==="value"){K=-1;for(var W=0;W<B.length;W++)if(B[W].value===N.activeLabel){K=W;break}}var se=le(le({},q),{},{x:q.left,y:q.top}),$=Math.min(V,se.x+se.width),F=Math.min(Q,se.y+se.height),X=B[K]&&B[K].value,ae=hS(T.state,T.props.data,K),de=B[K]?{x:D==="horizontal"?B[K].coordinate:$,y:D==="horizontal"?F:B[K].coordinate}:wz;T.setState(le(le({},N),{},{activeLabel:X,activeCoordinate:de,activePayload:ae,activeTooltipIndex:K}))}else T.setState(N)}),Te(T,"renderCursor",function(N){var R,D=T.state,I=D.isTooltipActive,Y=D.activeCoordinate,z=D.activePayload,H=D.offset,V=D.activeTooltipIndex,Q=D.tooltipAxisBandSize,K=T.getTooltipEventType(),k=(R=N.props.active)!==null&&R!==void 0?R:I,q=T.props.layout,B=N.key||"_recharts-cursor";return L.createElement(hfe,{key:B,activeCoordinate:Y,activePayload:z,activeTooltipIndex:V,chartName:n,element:N,isActive:k,layout:q,offset:H,tooltipAxisBandSize:Q,tooltipEventType:K})}),Te(T,"renderPolarAxis",function(N,R,D){var I=gr(N,"type.axisType"),Y=gr(T.state,"".concat(I,"Map")),z=N.type.defaultProps,H=z!==void 0?le(le({},z),N.props):N.props,V=Y&&Y[H["".concat(I,"Id")]];return O.cloneElement(N,le(le({},V),{},{className:Ye(I,V.className),key:N.key||"".concat(R,"-").concat(D),ticks:Ia(V,!0)}))}),Te(T,"renderPolarGrid",function(N){var R=N.props,D=R.radialLines,I=R.polarAngles,Y=R.polarRadius,z=T.state,H=z.radiusAxisMap,V=z.angleAxisMap,Q=Ni(H),K=Ni(V),k=K.cx,q=K.cy,B=K.innerRadius,W=K.outerRadius;return O.cloneElement(N,{polarAngles:Array.isArray(I)?I:Ia(K,!0).map(function(se){return se.coordinate}),polarRadius:Array.isArray(Y)?Y:Ia(Q,!0).map(function(se){return se.coordinate}),cx:k,cy:q,innerRadius:B,outerRadius:W,key:N.key||"polar-grid",radialLines:D})}),Te(T,"renderLegend",function(){var N=T.state.formattedGraphicalItems,R=T.props,D=R.children,I=R.width,Y=R.height,z=T.props.margin||{},H=I-(z.left||0)-(z.right||0),V=v5({children:D,formattedGraphicalItems:N,legendWidth:H,legendContent:d});if(!V)return null;var Q=V.item,K=mk(V,mfe);return O.cloneElement(Q,le(le({},K),{},{chartWidth:I,chartHeight:Y,margin:z,onBBoxUpdate:T.handleLegendBBoxUpdate}))}),Te(T,"renderTooltip",function(){var N,R=T.props,D=R.children,I=R.accessibilityLayer,Y=Yn(D,Zr);if(!Y)return null;var z=T.state,H=z.isTooltipActive,V=z.activeCoordinate,Q=z.activePayload,K=z.activeLabel,k=z.offset,q=(N=Y.props.active)!==null&&N!==void 0?N:H;return O.cloneElement(Y,{viewBox:le(le({},k),{},{x:k.left,y:k.top}),active:q,label:K,payload:q?Q:[],coordinate:V,accessibilityLayer:I})}),Te(T,"renderBrush",function(N){var R=T.props,D=R.margin,I=R.data,Y=T.state,z=Y.offset,H=Y.dataStartIndex,V=Y.dataEndIndex,Q=Y.updateId;return O.cloneElement(N,{key:N.key||"_recharts-brush",onChange:oh(T.handleBrushChange,N.props.onChange),data:I,x:ye(N.props.x)?N.props.x:z.left,y:ye(N.props.y)?N.props.y:z.top+z.height+z.brushBottom-(D.bottom||0),width:ye(N.props.width)?N.props.width:z.width,startIndex:H,endIndex:V,updateId:"brush-".concat(Q)})}),Te(T,"renderReferenceElement",function(N,R,D){if(!N)return null;var I=T,Y=I.clipPathId,z=T.state,H=z.xAxisMap,V=z.yAxisMap,Q=z.offset,K=N.type.defaultProps||{},k=N.props,q=k.xAxisId,B=q===void 0?K.xAxisId:q,W=k.yAxisId,se=W===void 0?K.yAxisId:W;return O.cloneElement(N,{key:N.key||"".concat(R,"-").concat(D),xAxis:H[B],yAxis:V[se],viewBox:{x:Q.left,y:Q.top,width:Q.width,height:Q.height},clipPathId:Y})}),Te(T,"renderActivePoints",function(N){var R=N.item,D=N.activePoint,I=N.basePoint,Y=N.childIndex,z=N.isRange,H=[],V=R.props.key,Q=R.item.type.defaultProps!==void 0?le(le({},R.item.type.defaultProps),R.item.props):R.item.props,K=Q.activeDot,k=Q.dataKey,q=le(le({index:Y,dataKey:k,cx:D.x,cy:D.y,r:4,fill:f_(R.item),strokeWidth:2,stroke:"#fff",payload:D.payload,value:D.value},Ve(K,!1)),Ih(K));return H.push(j.renderActiveDot(K,q,"".concat(V,"-activePoint-").concat(Y))),I?H.push(j.renderActiveDot(K,le(le({},q),{},{cx:I.x,cy:I.y}),"".concat(V,"-basePoint-").concat(Y))):z&&H.push(null),H}),Te(T,"renderGraphicChild",function(N,R,D){var I=T.filterFormatItem(N,R,D);if(!I)return null;var Y=T.getTooltipEventType(),z=T.state,H=z.isTooltipActive,V=z.tooltipAxis,Q=z.activeTooltipIndex,K=z.activeLabel,k=T.props.children,q=Yn(k,Zr),B=I.props,W=B.points,se=B.isRange,$=B.baseLine,F=I.item.type.defaultProps!==void 0?le(le({},I.item.type.defaultProps),I.item.props):I.item.props,X=F.activeDot,ae=F.hide,de=F.activeBar,ge=F.activeShape,ce=!!(!ae&&H&&q&&(X||de||ge)),he={};Y!=="axis"&&q&&q.props.trigger==="click"?he={onClick:oh(T.handleItemMouseEnter,N.props.onClick)}:Y!=="axis"&&(he={onMouseLeave:oh(T.handleItemMouseLeave,N.props.onMouseLeave),onMouseEnter:oh(T.handleItemMouseEnter,N.props.onMouseEnter)});var ie=O.cloneElement(N,le(le({},I.props),he));function me(Nt){return typeof V.dataKey=="function"?V.dataKey(Nt.payload):null}if(ce)if(Q>=0){var ve,ne;if(V.dataKey&&!V.allowDuplicatedCategory){var De=typeof V.dataKey=="function"?me:"payload.".concat(V.dataKey.toString());ve=Lh(W,De,K),ne=se&&$&&Lh($,De,K)}else ve=W==null?void 0:W[Q],ne=se&&$&&$[Q];if(ge||de){var je=N.props.activeIndex!==void 0?N.props.activeIndex:Q;return[O.cloneElement(N,le(le(le({},I.props),he),{},{activeIndex:je})),null,null]}if(!qe(ve))return[ie].concat(Ml(T.renderActivePoints({item:I,activePoint:ve,basePoint:ne,childIndex:Q,isRange:se})))}else{var rt,Xe=(rt=T.getItemByXY(T.state.activeCoordinate))!==null&&rt!==void 0?rt:{graphicalItem:ie},ft=Xe.graphicalItem,fn=ft.item,St=fn===void 0?N:fn,Hr=ft.childIndex,Ln=le(le(le({},I.props),he),{},{activeIndex:Hr});return[O.cloneElement(St,Ln),null,null]}return se?[ie,null,null]:[ie,null]}),Te(T,"renderCustomized",function(N,R,D){return O.cloneElement(N,le(le({key:"recharts-customized-".concat(D)},T.props),T.state))}),Te(T,"renderMap",{CartesianGrid:{handler:fh,once:!0},ReferenceArea:{handler:T.renderReferenceElement},ReferenceLine:{handler:fh},ReferenceDot:{handler:T.renderReferenceElement},XAxis:{handler:fh},YAxis:{handler:fh},Brush:{handler:T.renderBrush,once:!0},Bar:{handler:T.renderGraphicChild},Line:{handler:T.renderGraphicChild},Area:{handler:T.renderGraphicChild},Radar:{handler:T.renderGraphicChild},RadialBar:{handler:T.renderGraphicChild},Scatter:{handler:T.renderGraphicChild},Pie:{handler:T.renderGraphicChild},Funnel:{handler:T.renderGraphicChild},Tooltip:{handler:T.renderCursor,once:!0},PolarGrid:{handler:T.renderPolarGrid,once:!0},PolarAngleAxis:{handler:T.renderPolarAxis},PolarRadiusAxis:{handler:T.renderPolarAxis},Customized:{handler:T.renderCustomized}}),T.clipPathId="".concat((A=E.id)!==null&&A!==void 0?A:wf("recharts"),"-clip"),T.throttleTriggeredAfterMouseMove=p3(T.triggeredAfterMouseMove,(M=E.throttleDelay)!==null&&M!==void 0?M:1e3/60),T.state={},T}return Efe(j,w),Sfe(j,[{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,T=A.data,N=A.height,R=A.layout,D=Yn(M,Zr);if(D){var I=D.props.defaultIndex;if(!(typeof I!="number"||I<0||I>this.state.tooltipTicks.length-1)){var Y=this.state.tooltipTicks[I]&&this.state.tooltipTicks[I].value,z=hS(this.state,T,I,Y),H=this.state.tooltipTicks[I].coordinate,V=(this.state.offset.top+N)/2,Q=R==="horizontal",K=Q?{x:H,y:V}:{y:H,x:V},k=this.state.formattedGraphicalItems.find(function(B){var W=B.item;return W.type.name==="Scatter"});k&&(K=le(le({},K),k.props.points[I].tooltipPosition),z=k.props.points[I].tooltipPayload);var q={activeTooltipIndex:I,isTooltipActive:!0,activeLabel:Y,activePayload:z,activeCoordinate:K};this.setState(q),this.renderCursor(D),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 T,N;this.accessibilityManager.setDetails({offset:{left:(T=this.props.margin.left)!==null&&T!==void 0?T:0,top:(N=this.props.margin.top)!==null&&N!==void 0?N:0}})}return null}},{key:"componentDidUpdate",value:function(A){Zw([Yn(A.children,Zr)],[Yn(this.props.children,Zr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var A=Yn(this.props.children,Zr);if(A&&typeof A.props.shared=="boolean"){var M=A.props.shared?"axis":"item";return c.indexOf(M)>=0?M:s}return s}},{key:"getMouseInfo",value:function(A){if(!this.container)return null;var M=this.container,T=M.getBoundingClientRect(),N=DJ(T),R={chartX:Math.round(A.pageX-N.left),chartY:Math.round(A.pageY-N.top)},D=T.width/M.offsetWidth||1,I=this.inRange(R.chartX,R.chartY,D);if(!I)return null;var Y=this.state,z=Y.xAxisMap,H=Y.yAxisMap,V=this.getTooltipEventType(),Q=vk(this.state,this.props.data,this.props.layout,I);if(V!=="axis"&&z&&H){var K=Ni(z).scale,k=Ni(H).scale,q=K&&K.invert?K.invert(R.chartX):null,B=k&&k.invert?k.invert(R.chartY):null;return le(le({},R),{},{xValue:q,yValue:B},Q)}return Q?le(le({},R),Q):null}},{key:"inRange",value:function(A,M){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,N=this.props.layout,R=A/T,D=M/T;if(N==="horizontal"||N==="vertical"){var I=this.state.offset,Y=R>=I.left&&R<=I.left+I.width&&D>=I.top&&D<=I.top+I.height;return Y?{x:R,y:D}:null}var z=this.state,H=z.angleAxisMap,V=z.radiusAxisMap;if(H&&V){var Q=Ni(H);return DD({x:R,y:D},Q)}return null}},{key:"parseEventsOfWrapper",value:function(){var A=this.props.children,M=this.getTooltipEventType(),T=Yn(A,Zr),N={};T&&M==="axis"&&(T.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=Ih(this.props,this.handleOuterEvent);return le(le({},R),N)}},{key:"addListener",value:function(){jw.on(Ew,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){jw.removeListener(Ew,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(A,M,T){for(var N=this.state.formattedGraphicalItems,R=0,D=N.length;R<D;R++){var I=N[R];if(I.item===A||I.props.key===A.key||M===Ba(I.item.type)&&T===I.childIndex)return I}return null}},{key:"renderClipPath",value:function(){var A=this.clipPathId,M=this.state.offset,T=M.left,N=M.top,R=M.height,D=M.width;return L.createElement("defs",null,L.createElement("clipPath",{id:A},L.createElement("rect",{x:T,y:N,height:R,width:D})))}},{key:"getXScales",value:function(){var A=this.state.xAxisMap;return A?Object.entries(A).reduce(function(M,T){var N=hk(T,2),R=N[0],D=N[1];return le(le({},M),{},Te({},R,D.scale))},{}):null}},{key:"getYScales",value:function(){var A=this.state.yAxisMap;return A?Object.entries(A).reduce(function(M,T){var N=hk(T,2),R=N[0],D=N[1];return le(le({},M),{},Te({},R,D.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,T=M.formattedGraphicalItems,N=M.activeItem;if(T&&T.length)for(var R=0,D=T.length;R<D;R++){var I=T[R],Y=I.props,z=I.item,H=z.type.defaultProps!==void 0?le(le({},z.type.defaultProps),z.props):z.props,V=Ba(z.type);if(V==="Bar"){var Q=(Y.data||[]).find(function(B){return ese(A,B)});if(Q)return{graphicalItem:I,payload:Q}}else if(V==="RadialBar"){var K=(Y.data||[]).find(function(B){return DD(A,B)});if(K)return{graphicalItem:I,payload:K}}else if(Mp(I,N)||Rp(I,N)||Zc(I,N)){var k=Fse({graphicalItem:I,activeTooltipItem:N,itemData:H.data}),q=H.activeIndex===void 0?k:H.activeIndex;return{graphicalItem:le(le({},I),{},{childIndex:q}),payload:Zc(I,N)?H.data[k]:I.props.data[k]}}}return null}},{key:"render",value:function(){var A=this;if(!FN(this))return null;var M=this.props,T=M.children,N=M.className,R=M.width,D=M.height,I=M.style,Y=M.compact,z=M.title,H=M.desc,V=mk(M,pfe),Q=Ve(V,!1);if(Y)return L.createElement(WP,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},L.createElement(e1,Vs({},Q,{width:R,height:D,title:z,desc:H}),this.renderClipPath(),VN(T,this.renderMap)));if(this.props.accessibilityLayer){var K,k;Q.tabIndex=(K=this.props.tabIndex)!==null&&K!==void 0?K:0,Q.role=(k=this.props.role)!==null&&k!==void 0?k:"application",Q.onKeyDown=function(B){A.accessibilityManager.keyboardEvent(B)},Q.onFocus=function(){A.accessibilityManager.focus()}}var q=this.parseEventsOfWrapper();return L.createElement(WP,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},L.createElement("div",Vs({className:Ye("recharts-wrapper",N),style:le({position:"relative",cursor:"default",width:R,height:D},I)},q,{ref:function(W){A.container=W}}),L.createElement(e1,Vs({},Q,{width:R,height:D,title:z,desc:H,style:Rfe}),this.renderClipPath(),VN(T,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(O.Component);Te(_,"displayName",n),Te(_,"defaultProps",le({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},m)),Te(_,"getDerivedStateFromProps",function(w,j){var E=w.dataKey,A=w.data,M=w.children,T=w.width,N=w.height,R=w.layout,D=w.stackOffset,I=w.margin,Y=j.dataStartIndex,z=j.dataEndIndex;if(j.updateId===void 0){var H=gk(w);return le(le(le({},H),{},{updateId:0},x(le(le({props:w},H),{},{updateId:0}),j)),{},{prevDataKey:E,prevData:A,prevWidth:T,prevHeight:N,prevLayout:R,prevStackOffset:D,prevMargin:I,prevChildren:M})}if(E!==j.prevDataKey||A!==j.prevData||T!==j.prevWidth||N!==j.prevHeight||R!==j.prevLayout||D!==j.prevStackOffset||!Qs(I,j.prevMargin)){var V=gk(w),Q={chartX:j.chartX,chartY:j.chartY,isTooltipActive:j.isTooltipActive},K=le(le({},vk(j,A,R)),{},{updateId:j.updateId+1}),k=le(le(le({},V),Q),K);return le(le(le({},k),x(le({props:w},k),j)),{},{prevDataKey:E,prevData:A,prevWidth:T,prevHeight:N,prevLayout:R,prevStackOffset:D,prevMargin:I,prevChildren:M})}if(!Zw(M,j.prevChildren)){var q,B,W,se,$=Yn(M,wl),F=$&&(q=(B=$.props)===null||B===void 0?void 0:B.startIndex)!==null&&q!==void 0?q:Y,X=$&&(W=(se=$.props)===null||se===void 0?void 0:se.endIndex)!==null&&W!==void 0?W:z,ae=F!==Y||X!==z,de=!qe(A),ge=de&&!ae?j.updateId:j.updateId+1;return le(le({updateId:ge},x(le(le({props:w},j),{},{updateId:ge,dataStartIndex:F,dataEndIndex:X}),j)),{},{prevChildren:M,dataStartIndex:F,dataEndIndex:X})}return null}),Te(_,"renderActiveDot",function(w,j,E){var A;return O.isValidElement(w)?A=O.cloneElement(w,j):$e(w)?A=w(j):A=L.createElement(h_,j),L.createElement(Lt,{className:"recharts-active-dot",key:E},A)});var S=O.forwardRef(function(j,E){return L.createElement(_,Vs({},j,{ref:E}))});return S.displayName=_.displayName,S},Hfe=Ufe({chartName:"LineChart",GraphicalChild:ta,axisComponents:[{axisType:"xAxis",AxisComp:Ip},{axisType:"yAxis",AxisComp:zp}],formatAxisMap:Ble});function Ffe({data:e}){const t=Gfe(e);return t.length===0?p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsx(et,{children:"Email Metrics"}),p.jsx(st,{children:"Performance over the last 24 hours"})]}),p.jsx(We,{children:p.jsx("div",{className:"flex h-[400px] items-center justify-center text-muted-foreground",children:"No metrics data available yet"})})]}):p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsx(et,{children:"Email Metrics"}),p.jsx(st,{children:"Performance over the last 24 hours"})]}),p.jsx(We,{children:p.jsx(EJ,{height:400,width:"100%",children:p.jsxs(Hfe,{data:t,children:[p.jsx(sz,{className:"stroke-muted",strokeDasharray:"3 3"}),p.jsx(Ip,{className:"text-xs",dataKey:"timestamp",tickFormatter:n=>kC(new Date(n),"HH:mm")}),p.jsx(zp,{className:"text-xs"}),p.jsx(Zr,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))"},labelFormatter:n=>kC(new Date(n),"MMM d, HH:mm")}),p.jsx(Eo,{}),p.jsx(ta,{dataKey:"sends",name:"Sends",stroke:"hsl(var(--primary))",strokeWidth:2,type:"monotone"}),p.jsx(ta,{dataKey:"deliveries",name:"Deliveries",stroke:"#82ca9d",strokeWidth:2,type:"monotone"}),p.jsx(ta,{dataKey:"opens",name:"Opens",stroke:"#8884d8",strokeWidth:2,type:"monotone"}),p.jsx(ta,{dataKey:"clicks",name:"Clicks",stroke:"#ffc658",strokeWidth:2,type:"monotone"}),p.jsx(ta,{dataKey:"bounces",name:"Bounces",stroke:"#ff7300",strokeWidth:2,type:"monotone"}),p.jsx(ta,{dataKey:"complaints",name:"Complaints",stroke:"hsl(var(--destructive))",strokeWidth:2,type:"monotone"})]})})})]})}function Gfe(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 O_="Progress",__=100,[Vfe]=Zk(O_),[Yfe,Wfe]=Vfe(O_),Oz=O.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:i,getValueLabel:s=Kfe,...l}=e;(i||i===0)&&!bk(i)&&console.error(Xfe(`${i}`,"Progress"));const c=bk(i)?i:__;r!==null&&!xk(r,c)&&console.error(Qfe(`${r}`,"Progress"));const f=xk(r,c)?r:null,d=Pm(f)?s(f,c):void 0;return p.jsx(Yfe,{scope:n,value:f,max:c,children:p.jsx(Bo.div,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":Pm(f)?f:void 0,"aria-valuetext":d,role:"progressbar","data-state":Ez(f,c),"data-value":f??void 0,"data-max":c,...l,ref:t})})});Oz.displayName=O_;var _z="ProgressIndicator",jz=O.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,i=Wfe(_z,n);return p.jsx(Bo.div,{"data-state":Ez(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});jz.displayName=_z;function Kfe(e,t){return`${Math.round(e/t*100)}%`}function Ez(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Pm(e){return typeof e=="number"}function bk(e){return Pm(e)&&!isNaN(e)&&e>0}function xk(e,t){return Pm(e)&&!isNaN(e)&&e<=t&&e>=0}function Xfe(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${__}\`.`}function Qfe(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
366
|
+
- a positive number
|
|
367
|
+
- less than the value passed to \`max\` (or ${__} if no \`max\` prop is set)
|
|
368
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
369
|
+
|
|
370
|
+
Defaulting to \`null\`.`}var Zfe=Oz,Jfe=jz;function ede({className:e,value:t,...n}){return p.jsx(Zfe,{className:pe("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),"data-slot":"progress",...n,children:p.jsx(Jfe,{className:"h-full w-full flex-1 bg-primary transition-all","data-slot":"progress-indicator",style:{transform:`translateX(-${100-(t||0)}%)`}})})}function tde({quota:e}){const t=e.sentLast24Hours/e.max24HourSend*100,n=t>90?"destructive":t>70?"warning":"default";return p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsxs(et,{className:"flex items-center justify-between",children:["SES Quota",p.jsxs(Je,{variant:n==="destructive"?"destructive":"secondary",children:[t.toFixed(1),"% used"]})]}),p.jsx(st,{children:"24-hour sending limits"})]}),p.jsxs(We,{className:"space-y-4",children:[p.jsxs("div",{children:[p.jsxs("div",{className:"mb-2 flex justify-between text-sm",children:[p.jsx("span",{className:"text-muted-foreground",children:"Emails sent"}),p.jsxs("span",{className:"font-medium",children:[e.sentLast24Hours.toLocaleString()," /"," ",e.max24HourSend.toLocaleString()]})]}),p.jsx(ede,{className:"h-2",value:t})]}),p.jsxs("div",{className:"flex items-center justify-between border-t pt-2",children:[p.jsx("span",{className:"text-muted-foreground text-sm",children:"Max send rate"}),p.jsxs("span",{className:"font-medium text-sm",children:[e.maxSendRate," emails/sec"]})]})]})]})}function nde(){const[e,t]=O.useState("1"),[n,r]=O.useState(null),[i,s]=O.useState(!0),[l,c]=O.useState(null);if(O.useEffect(()=>{async function E(){try{s(!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),T=Date.now()-M*24*60*60*1e3,N=Date.now(),R=await fetch(`/api/metrics?startTime=${T}&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 D=await R.json();r(D)}catch(A){const M=A instanceof Error?A.message:"Unknown error";c(M),console.error("Error fetching email metrics:",A)}finally{s(!1)}}E()},[e]),l)return p.jsxs(p.Fragment,{children:[p.jsxs("div",{children:[p.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Metrics"}),p.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your email campaigns"})]}),p.jsx("div",{className:"mt-4 rounded-md border border-destructive bg-destructive/10 p-4 text-destructive text-sm",children:l})]});if(i||!n)return p.jsxs(p.Fragment,{children:[p.jsxs("div",{children:[p.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Metrics"}),p.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your email campaigns"})]}),p.jsx("div",{className:"mt-4 flex h-[400px] items-center justify-center text-muted-foreground",children:"Loading metrics..."})]});const f=n.metrics.sends.reduce((E,A)=>E+A.value,0)||0,d=n.metrics.deliveries.reduce((E,A)=>E+A.value,0)||0,v=n.metrics.bounces.reduce((E,A)=>E+A.value,0)||0,m=n.metrics.complaints.reduce((E,A)=>E+A.value,0)||0,g=n.metrics.opens.reduce((E,A)=>E+A.value,0)||0,x=n.metrics.clicks.reduce((E,A)=>E+A.value,0)||0,_=f>0?d/f*100:0,S=d>0?g/d*100:0,w=g>0?x/g*100:0,j=[{title:"Emails Sent",value:f.toLocaleString(),description:`${e==="1"?"Last 24 hours":`Last ${e} days`}`,icon:Ws},{title:"Delivery Rate",value:`${_.toFixed(1)}%`,description:`${d.toLocaleString()} delivered`,icon:Qk},{title:"Open Rate",value:`${S.toFixed(1)}%`,description:`${g.toLocaleString()} opened`,icon:zm},{title:"Click Rate",value:`${w.toFixed(1)}%`,description:`${x.toLocaleString()} clicked`,icon:oU}];return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Metrics"}),p.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your email campaigns"})]}),p.jsxs(ol,{onValueChange:t,value:e,children:[p.jsx(ll,{className:"w-[180px]",children:p.jsx(sl,{})}),p.jsxs(ul,{children:[p.jsx(Ge,{value:"1",children:"Last 24 hours"}),p.jsx(Ge,{value:"7",children:"Last 7 days"}),p.jsx(Ge,{value:"15",children:"Last 15 days"}),p.jsx(Ge,{value:"30",children:"Last 30 days"}),p.jsx(Ge,{value:"90",children:"Last 90 days"})]})]})]}),p.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:j.map(E=>p.jsxs(ze,{children:[p.jsxs(Be,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[p.jsx(et,{className:"font-medium text-sm",children:E.title}),p.jsx(E.icon,{className:"h-4 w-4 text-muted-foreground"})]}),p.jsxs(We,{children:[p.jsx("div",{className:"font-bold text-2xl",children:E.value}),p.jsx("p",{className:"text-muted-foreground text-xs",children:E.description})]})]},E.title))}),p.jsx(tde,{quota:n.quota}),p.jsx(Ffe,{data:n.metrics}),p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsx(et,{children:"Metrics Summary"}),p.jsx(st,{children:"Detailed breakdown of your email performance"})]}),p.jsxs(We,{className:"space-y-4",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("span",{className:"text-sm",children:"Total Emails Sent"}),p.jsx(Je,{variant:"outline",children:f.toLocaleString()})]}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("span",{className:"text-sm",children:"Successfully Delivered"}),p.jsx(Je,{variant:"default",children:d.toLocaleString()})]}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("span",{className:"text-sm",children:"Opened"}),p.jsx(Je,{variant:"default",children:g.toLocaleString()})]}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("span",{className:"text-sm",children:"Clicked"}),p.jsx(Je,{variant:"default",children:x.toLocaleString()})]}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("span",{className:"text-sm",children:"Bounced"}),p.jsx(Je,{variant:"destructive",children:v.toLocaleString()})]}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("span",{className:"text-sm",children:"Complaints"}),p.jsx(Je,{variant:"destructive",children:m.toLocaleString()})]})]})]})]})}function rde(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 ade=e=>{switch(e){case"success":return sde;case"info":return ude;case"warning":return lde;case"error":return cde;default:return null}},ide=Array(12).fill(0),ode=({visible:e,className:t})=>L.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},L.createElement("div",{className:"sonner-spinner"},ide.map((n,r)=>L.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),sde=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"})),lde=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"})),ude=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"})),cde=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"})),fde=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"})),dde=()=>{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 mS=1;class hde{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,s=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:mS++,l=this.toasts.find(f=>f.id===s),c=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),l?this.toasts=this.toasts.map(f=>f.id===s?(this.publish({...f,...t,id:s,title:r}),{...f,...t,id:s,dismissible:c,title:r}):f):this.addToast({title:r,...i,dismissible:c,id:s}),s},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 s=r!==void 0,l;const c=i.then(async d=>{if(l=["resolve",d],L.isValidElement(d))s=!1,this.create({id:r,type:"default",message:d});else if(pde(d)&&!d.ok){s=!1;const m=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,g=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,_=typeof m=="object"&&!L.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:g,..._})}else if(d instanceof Error){s=!1;const m=typeof n.error=="function"?await n.error(d):n.error,g=typeof n.description=="function"?await n.description(d):n.description,_=typeof m=="object"&&!L.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:g,..._})}else if(n.success!==void 0){s=!1;const m=typeof n.success=="function"?await n.success(d):n.success,g=typeof n.description=="function"?await n.description(d):n.description,_=typeof m=="object"&&!L.isValidElement(m)?m:{message:m};this.create({id:r,type:"success",description:g,..._})}}).catch(async d=>{if(l=["reject",d],n.error!==void 0){s=!1;const v=typeof n.error=="function"?await n.error(d):n.error,m=typeof n.description=="function"?await n.description(d):n.description,x=typeof v=="object"&&!L.isValidElement(v)?v:{message:v};this.create({id:r,type:"error",description:m,...x})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),f=()=>new Promise((d,v)=>c.then(()=>l[0]==="reject"?v(l[1]):d(l[1])).catch(v));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)||mS++;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 Dn=new hde,mde=(e,t)=>{const n=(t==null?void 0:t.id)||mS++;return Dn.addToast({title:e,...t,id:n}),n},pde=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",vde=mde,gde=()=>Dn.toasts,yde=()=>Dn.getActiveToasts(),yn=Object.assign(vde,{success:Dn.success,info:Dn.info,warning:Dn.warning,error:Dn.error,custom:Dn.custom,message:Dn.message,promise:Dn.promise,dismiss:Dn.dismiss,loading:Dn.loading},{getHistory:gde,getToasts:yde});rde("[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 dh(e){return e.label!==void 0}const bde=3,xde="24px",wde="16px",wk=4e3,Sde=356,Ode=14,_de=45,jde=200;function Xr(...e){return e.filter(Boolean).join(" ")}function Ede(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Ade=e=>{var t,n,r,i,s,l,c,f,d;const{invert:v,toast:m,unstyled:g,interacting:x,setHeights:_,visibleToasts:S,heights:w,index:j,toasts:E,expanded:A,removeToast:M,defaultRichColors:T,closeButton:N,style:R,cancelButtonStyle:D,actionButtonStyle:I,className:Y="",descriptionClassName:z="",duration:H,position:V,gap:Q,expandByDefault:K,classNames:k,icons:q,closeButtonAriaLabel:B="Close toast"}=e,[W,se]=L.useState(null),[$,F]=L.useState(null),[X,ae]=L.useState(!1),[de,ge]=L.useState(!1),[ce,he]=L.useState(!1),[ie,me]=L.useState(!1),[ve,ne]=L.useState(!1),[De,je]=L.useState(0),[rt,Xe]=L.useState(0),ft=L.useRef(m.duration||H||wk),fn=L.useRef(null),St=L.useRef(null),Hr=j===0,Ln=j+1<=S,Nt=m.type,er=m.dismissible!==!1,Qt=m.className||"",Yo=m.descriptionClassName||"",Yi=L.useMemo(()=>w.findIndex(Ce=>Ce.toastId===m.id)||0,[w,m.id]),Cf=L.useMemo(()=>{var Ce;return(Ce=m.closeButton)!=null?Ce:N},[m.closeButton,N]),Wi=L.useMemo(()=>m.duration||H||wk,[m.duration,H]),Jl=L.useRef(0),pa=L.useRef(0),Nf=L.useRef(0),ei=L.useRef(null),[Ki,bn]=V.split("-"),Or=L.useMemo(()=>w.reduce((Ce,Et,Zt)=>Zt>=Yi?Ce:Ce+Et.height,0),[w,Yi]),dn=dde(),Gp=m.invert||v,eu=Nt==="loading";pa.current=L.useMemo(()=>Yi*Q+Or,[Yi,Or]),L.useEffect(()=>{ft.current=Wi},[Wi]),L.useEffect(()=>{ae(!0)},[]),L.useEffect(()=>{const Ce=St.current;if(Ce){const Et=Ce.getBoundingClientRect().height;return Xe(Et),_(Zt=>[{toastId:m.id,height:Et,position:m.position},...Zt]),()=>_(Zt=>Zt.filter(hn=>hn.toastId!==m.id))}},[_,m.id]),L.useLayoutEffect(()=>{if(!X)return;const Ce=St.current,Et=Ce.style.height;Ce.style.height="auto";const Zt=Ce.getBoundingClientRect().height;Ce.style.height=Et,Xe(Zt),_(hn=>hn.find(Mt=>Mt.toastId===m.id)?hn.map(Mt=>Mt.toastId===m.id?{...Mt,height:Zt}:Mt):[{toastId:m.id,height:Zt,position:m.position},...hn])},[X,m.title,m.description,_,m.id,m.jsx,m.action,m.cancel]);const Fr=L.useCallback(()=>{ge(!0),je(pa.current),_(Ce=>Ce.filter(Et=>Et.toastId!==m.id)),setTimeout(()=>{M(m)},jde)},[m,M,_,pa]);L.useEffect(()=>{if(m.promise&&Nt==="loading"||m.duration===1/0||m.type==="loading")return;let Ce;return A||x||dn?(()=>{if(Nf.current<Jl.current){const hn=new Date().getTime()-Jl.current;ft.current=ft.current-hn}Nf.current=new Date().getTime()})():(()=>{ft.current!==1/0&&(Jl.current=new Date().getTime(),Ce=setTimeout(()=>{m.onAutoClose==null||m.onAutoClose.call(m,m),Fr()},ft.current))})(),()=>clearTimeout(Ce)},[A,x,m,Nt,dn,Fr]),L.useEffect(()=>{m.delete&&(Fr(),m.onDismiss==null||m.onDismiss.call(m,m))},[Fr,m.delete]);function Wo(){var Ce;if(q!=null&&q.loading){var Et;return L.createElement("div",{className:Xr(k==null?void 0:k.loader,m==null||(Et=m.classNames)==null?void 0:Et.loader,"sonner-loader"),"data-visible":Nt==="loading"},q.loading)}return L.createElement(ode,{className:Xr(k==null?void 0:k.loader,m==null||(Ce=m.classNames)==null?void 0:Ce.loader),visible:Nt==="loading"})}const Ko=m.icon||(q==null?void 0:q[Nt])||ade(Nt);var Xi,Gr;return L.createElement("li",{tabIndex:0,ref:St,className:Xr(Y,Qt,k==null?void 0:k.toast,m==null||(t=m.classNames)==null?void 0:t.toast,k==null?void 0:k.default,k==null?void 0:k[Nt],m==null||(n=m.classNames)==null?void 0:n[Nt]),"data-sonner-toast":"","data-rich-colors":(Xi=m.richColors)!=null?Xi:T,"data-styled":!(m.jsx||m.unstyled||g),"data-mounted":X,"data-promise":!!m.promise,"data-swiped":ve,"data-removed":de,"data-visible":Ln,"data-y-position":Ki,"data-x-position":bn,"data-index":j,"data-front":Hr,"data-swiping":ce,"data-dismissible":er,"data-type":Nt,"data-invert":Gp,"data-swipe-out":ie,"data-swipe-direction":$,"data-expanded":!!(A||K&&X),"data-testid":m.testId,style:{"--index":j,"--toasts-before":j,"--z-index":E.length-j,"--offset":`${de?De:pa.current}px`,"--initial-height":K?"auto":`${rt}px`,...R,...m.style},onDragEnd:()=>{he(!1),se(null),ei.current=null},onPointerDown:Ce=>{Ce.button!==2&&(eu||!er||(fn.current=new Date,je(pa.current),Ce.target.setPointerCapture(Ce.pointerId),Ce.target.tagName!=="BUTTON"&&(he(!0),ei.current={x:Ce.clientX,y:Ce.clientY})))},onPointerUp:()=>{var Ce,Et,Zt;if(ie||!er)return;ei.current=null;const hn=Number(((Ce=St.current)==null?void 0:Ce.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ti=Number(((Et=St.current)==null?void 0:Et.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Mt=new Date().getTime()-((Zt=fn.current)==null?void 0:Zt.getTime()),On=W==="x"?hn:ti,Qi=Math.abs(On)/Mt;if(Math.abs(On)>=_de||Qi>.11){je(pa.current),m.onDismiss==null||m.onDismiss.call(m,m),F(W==="x"?hn>0?"right":"left":ti>0?"down":"up"),Fr(),me(!0);return}else{var _n,jn;(_n=St.current)==null||_n.style.setProperty("--swipe-amount-x","0px"),(jn=St.current)==null||jn.style.setProperty("--swipe-amount-y","0px")}ne(!1),he(!1),se(null)},onPointerMove:Ce=>{var Et,Zt,hn;if(!ei.current||!er||((Et=window.getSelection())==null?void 0:Et.toString().length)>0)return;const Mt=Ce.clientY-ei.current.y,On=Ce.clientX-ei.current.x;var Qi;const _n=(Qi=e.swipeDirections)!=null?Qi:Ede(V);!W&&(Math.abs(On)>1||Math.abs(Mt)>1)&&se(Math.abs(On)>Math.abs(Mt)?"x":"y");let jn={x:0,y:0};const Xo=_r=>1/(1.5+Math.abs(_r)/20);if(W==="y"){if(_n.includes("top")||_n.includes("bottom"))if(_n.includes("top")&&Mt<0||_n.includes("bottom")&&Mt>0)jn.y=Mt;else{const _r=Mt*Xo(Mt);jn.y=Math.abs(_r)<Math.abs(Mt)?_r:Mt}}else if(W==="x"&&(_n.includes("left")||_n.includes("right")))if(_n.includes("left")&&On<0||_n.includes("right")&&On>0)jn.x=On;else{const _r=On*Xo(On);jn.x=Math.abs(_r)<Math.abs(On)?_r:On}(Math.abs(jn.x)>0||Math.abs(jn.y)>0)&&ne(!0),(Zt=St.current)==null||Zt.style.setProperty("--swipe-amount-x",`${jn.x}px`),(hn=St.current)==null||hn.style.setProperty("--swipe-amount-y",`${jn.y}px`)}},Cf&&!m.jsx&&Nt!=="loading"?L.createElement("button",{"aria-label":B,"data-disabled":eu,"data-close-button":!0,onClick:eu||!er?()=>{}:()=>{Fr(),m.onDismiss==null||m.onDismiss.call(m,m)},className:Xr(k==null?void 0:k.closeButton,m==null||(r=m.classNames)==null?void 0:r.closeButton)},(Gr=q==null?void 0:q.close)!=null?Gr:fde):null,(Nt||m.icon||m.promise)&&m.icon!==null&&((q==null?void 0:q[Nt])!==null||m.icon)?L.createElement("div",{"data-icon":"",className:Xr(k==null?void 0:k.icon,m==null||(i=m.classNames)==null?void 0:i.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||Wo():null,m.type!=="loading"?Ko:null):null,L.createElement("div",{"data-content":"",className:Xr(k==null?void 0:k.content,m==null||(s=m.classNames)==null?void 0:s.content)},L.createElement("div",{"data-title":"",className:Xr(k==null?void 0:k.title,m==null||(l=m.classNames)==null?void 0:l.title)},m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title),m.description?L.createElement("div",{"data-description":"",className:Xr(z,Yo,k==null?void 0:k.description,m==null||(c=m.classNames)==null?void 0:c.description)},typeof m.description=="function"?m.description():m.description):null),L.isValidElement(m.cancel)?m.cancel:m.cancel&&dh(m.cancel)?L.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||D,onClick:Ce=>{dh(m.cancel)&&er&&(m.cancel.onClick==null||m.cancel.onClick.call(m.cancel,Ce),Fr())},className:Xr(k==null?void 0:k.cancelButton,m==null||(f=m.classNames)==null?void 0:f.cancelButton)},m.cancel.label):null,L.isValidElement(m.action)?m.action:m.action&&dh(m.action)?L.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||I,onClick:Ce=>{dh(m.action)&&(m.action.onClick==null||m.action.onClick.call(m.action,Ce),!Ce.defaultPrevented&&Fr())},className:Xr(k==null?void 0:k.actionButton,m==null||(d=m.classNames)==null?void 0:d.actionButton)},m.action.label):null)};function Sk(){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 Tde(e,t){const n={};return[e,t].forEach((r,i)=>{const s=i===1,l=s?"--mobile-offset":"--offset",c=s?wde:xde;function f(d){["top","right","bottom","left"].forEach(v=>{n[`${l}-${v}`]=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[`${l}-${d}`]=c:n[`${l}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):f(c)}),n}const Cde=L.forwardRef(function(t,n){const{id:r,invert:i,position:s="bottom-right",hotkey:l=["altKey","KeyT"],expand:c,closeButton:f,className:d,offset:v,mobileOffset:m,theme:g="light",richColors:x,duration:_,style:S,visibleToasts:w=bde,toastOptions:j,dir:E=Sk(),gap:A=Ode,icons:M,containerAriaLabel:T="Notifications"}=t,[N,R]=L.useState([]),D=L.useMemo(()=>r?N.filter(X=>X.toasterId===r):N.filter(X=>!X.toasterId),[N,r]),I=L.useMemo(()=>Array.from(new Set([s].concat(D.filter(X=>X.position).map(X=>X.position)))),[D,s]),[Y,z]=L.useState([]),[H,V]=L.useState(!1),[Q,K]=L.useState(!1),[k,q]=L.useState(g!=="system"?g:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),B=L.useRef(null),W=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),se=L.useRef(null),$=L.useRef(!1),F=L.useCallback(X=>{R(ae=>{var de;return(de=ae.find(ge=>ge.id===X.id))!=null&&de.delete||Dn.dismiss(X.id),ae.filter(({id:ge})=>ge!==X.id)})},[]);return L.useEffect(()=>Dn.subscribe(X=>{if(X.dismiss){requestAnimationFrame(()=>{R(ae=>ae.map(de=>de.id===X.id?{...de,delete:!0}:de))});return}setTimeout(()=>{Vk.flushSync(()=>{R(ae=>{const de=ae.findIndex(ge=>ge.id===X.id);return de!==-1?[...ae.slice(0,de),{...ae[de],...X},...ae.slice(de+1)]:[X,...ae]})})})}),[N]),L.useEffect(()=>{if(g!=="system"){q(g);return}if(g==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?q("dark"):q("light")),typeof window>"u")return;const X=window.matchMedia("(prefers-color-scheme: dark)");try{X.addEventListener("change",({matches:ae})=>{q(ae?"dark":"light")})}catch{X.addListener(({matches:de})=>{try{q(de?"dark":"light")}catch(ge){console.error(ge)}})}},[g]),L.useEffect(()=>{N.length<=1&&V(!1)},[N]),L.useEffect(()=>{const X=ae=>{var de;if(l.every(he=>ae[he]||ae.code===he)){var ce;V(!0),(ce=B.current)==null||ce.focus()}ae.code==="Escape"&&(document.activeElement===B.current||(de=B.current)!=null&&de.contains(document.activeElement))&&V(!1)};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[l]),L.useEffect(()=>{if(B.current)return()=>{se.current&&(se.current.focus({preventScroll:!0}),se.current=null,$.current=!1)}},[B.current]),L.createElement("section",{ref:n,"aria-label":`${T} ${W}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},I.map((X,ae)=>{var de;const[ge,ce]=X.split("-");return D.length?L.createElement("ol",{key:X,dir:E==="auto"?Sk():E,tabIndex:-1,ref:B,className:d,"data-sonner-toaster":!0,"data-sonner-theme":k,"data-y-position":ge,"data-x-position":ce,style:{"--front-toast-height":`${((de=Y[0])==null?void 0:de.height)||0}px`,"--width":`${Sde}px`,"--gap":`${A}px`,...S,...Tde(v,m)},onBlur:he=>{$.current&&!he.currentTarget.contains(he.relatedTarget)&&($.current=!1,se.current&&(se.current.focus({preventScroll:!0}),se.current=null))},onFocus:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||$.current||($.current=!0,se.current=he.relatedTarget)},onMouseEnter:()=>V(!0),onMouseMove:()=>V(!0),onMouseLeave:()=>{Q||V(!1)},onDragEnd:()=>V(!1),onPointerDown:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||K(!0)},onPointerUp:()=>K(!1)},D.filter(he=>!he.position&&ae===0||he.position===X).map((he,ie)=>{var me,ve;return L.createElement(Ade,{key:he.id,icons:M,index:ie,toast:he,defaultRichColors:x,duration:(me=j==null?void 0:j.duration)!=null?me:_,className:j==null?void 0:j.className,descriptionClassName:j==null?void 0:j.descriptionClassName,invert:i,visibleToasts:w,closeButton:(ve=j==null?void 0:j.closeButton)!=null?ve:f,interacting:Q,position:X,style:j==null?void 0:j.style,unstyled:j==null?void 0:j.unstyled,classNames:j==null?void 0:j.classNames,cancelButtonStyle:j==null?void 0:j.cancelButtonStyle,actionButtonStyle:j==null?void 0:j.actionButtonStyle,closeButtonAriaLabel:j==null?void 0:j.closeButtonAriaLabel,removeToast:F,toasts:D.filter(ne=>ne.position==he.position),heights:Y.filter(ne=>ne.position==he.position),setHeights:z,expandByDefault:c,gap:A,expanded:H,swipeDirections:t.swipeDirections})})):null}))});var Az="AlertDialog",[Nde]=zr(Az,[HL]),Ja=HL(),Tz=e=>{const{__scopeAlertDialog:t,...n}=e,r=Ja(t);return p.jsx(oO,{...r,...n,modal:!0})};Tz.displayName=Az;var Mde="AlertDialogTrigger",Rde=O.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Ja(n);return p.jsx(HG,{...i,...r,ref:t})});Rde.displayName=Mde;var Dde="AlertDialogPortal",Cz=e=>{const{__scopeAlertDialog:t,...n}=e,r=Ja(t);return p.jsx(sO,{...r,...n})};Cz.displayName=Dde;var Pde="AlertDialogOverlay",Nz=O.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Ja(n);return p.jsx(lO,{...i,...r,ref:t})});Nz.displayName=Pde;var el="AlertDialogContent",[kde,$de]=Nde(el),Lde=w$("AlertDialogContent"),Mz=O.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...i}=e,s=Ja(n),l=O.useRef(null),c=tt(t,l),f=O.useRef(null);return p.jsx(zG,{contentName:el,titleName:Rz,docsSlug:"alert-dialog",children:p.jsx(kde,{scope:n,cancelRef:f,children:p.jsxs(uO,{role:"alertdialog",...s,...i,ref:c,onOpenAutoFocus:be(i.onOpenAutoFocus,d=>{var v;d.preventDefault(),(v=f.current)==null||v.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault(),children:[p.jsx(Lde,{children:r}),p.jsx(zde,{contentRef:l})]})})})});Mz.displayName=el;var Rz="AlertDialogTitle",Dz=O.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Ja(n);return p.jsx(cO,{...i,...r,ref:t})});Dz.displayName=Rz;var Pz="AlertDialogDescription",kz=O.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Ja(n);return p.jsx(fO,{...i,...r,ref:t})});kz.displayName=Pz;var Ide="AlertDialogAction",$z=O.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Ja(n);return p.jsx(ep,{...i,...r,ref:t})});$z.displayName=Ide;var Lz="AlertDialogCancel",Iz=O.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=$de(Lz,n),s=Ja(n),l=tt(t,i);return p.jsx(ep,{...s,...r,ref:l})});Iz.displayName=Lz;var zde=({contentRef:e})=>{const t=`\`${el}\` requires a description for the component to be accessible for screen reader users.
|
|
371
|
+
|
|
372
|
+
You can add a description to the \`${el}\` by passing a \`${Pz}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
373
|
+
|
|
374
|
+
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 \`${el}\`. 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.
|
|
375
|
+
|
|
376
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return O.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},Bde=Tz,qde=Cz,Ude=Nz,Hde=Mz,Fde=$z,Gde=Iz,Vde=Dz,Yde=kz;function pS({...e}){return p.jsx(Bde,{"data-slot":"alert-dialog",...e})}function Wde({...e}){return p.jsx(qde,{"data-slot":"alert-dialog-portal",...e})}function Kde({className:e,...t}){return p.jsx(Ude,{className:pe("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 vS({className:e,...t}){return p.jsxs(Wde,{children:[p.jsx(Kde,{}),p.jsx(Hde,{className:pe("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 gS({className:e,...t}){return p.jsx("div",{className:pe("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"alert-dialog-header",...t})}function yS({className:e,...t}){return p.jsx("div",{className:pe("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),"data-slot":"alert-dialog-footer",...t})}function bS({className:e,...t}){return p.jsx(Vde,{className:pe("font-semibold text-lg",e),"data-slot":"alert-dialog-title",...t})}function xS({className:e,...t}){return p.jsx(Yde,{className:pe("text-muted-foreground text-sm",e),"data-slot":"alert-dialog-description",...t})}function wS({className:e,...t}){return p.jsx(Fde,{className:pe(nO(),e),...t})}function SS({className:e,...t}){return p.jsx(Gde,{className:pe(nO({variant:"outline"}),e),...t})}var qp="Collapsible",[Xde]=zr(qp),[Qde,j_]=Xde(qp),zz=O.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:s,onOpenChange:l,...c}=e,[f,d]=$i({prop:r,defaultProp:i??!1,onChange:l,caller:qp});return p.jsx(Qde,{scope:n,disabled:s,contentId:pr(),open:f,onOpenToggle:O.useCallback(()=>d(v=>!v),[d]),children:p.jsx(Re.div,{"data-state":A_(f),"data-disabled":s?"":void 0,...c,ref:t})})});zz.displayName=qp;var Bz="CollapsibleTrigger",qz=O.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=j_(Bz,n);return p.jsx(Re.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":A_(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:be(e.onClick,i.onOpenToggle)})});qz.displayName=Bz;var E_="CollapsibleContent",Uz=O.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=j_(E_,e.__scopeCollapsible);return p.jsx(wr,{present:n||i.open,children:({present:s})=>p.jsx(Zde,{...r,ref:t,present:s})})});Uz.displayName=E_;var Zde=O.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...s}=e,l=j_(E_,n),[c,f]=O.useState(r),d=O.useRef(null),v=tt(t,d),m=O.useRef(0),g=m.current,x=O.useRef(0),_=x.current,S=l.open||c,w=O.useRef(S),j=O.useRef(void 0);return O.useEffect(()=>{const E=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(E)},[]),Ft(()=>{const E=d.current;if(E){j.current=j.current||{transitionDuration:E.style.transitionDuration,animationName:E.style.animationName},E.style.transitionDuration="0s",E.style.animationName="none";const A=E.getBoundingClientRect();m.current=A.height,x.current=A.width,w.current||(E.style.transitionDuration=j.current.transitionDuration,E.style.animationName=j.current.animationName),f(r)}},[l.open,r]),p.jsx(Re.div,{"data-state":A_(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!S,...s,ref:v,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":_?`${_}px`:void 0,...e.style},children:S&&i})});function A_(e){return e?"open":"closed"}var Jde=zz;const Up=Jde,Hp=qz,Fp=Uz;function ehe({...e}){return p.jsx(oO,{"data-slot":"dialog",...e})}function the({...e}){return p.jsx(sO,{"data-slot":"dialog-portal",...e})}function nhe({className:e,...t}){return p.jsx(lO,{className:pe("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 rhe({className:e,children:t,showCloseButton:n=!0,...r}){return p.jsxs(the,{"data-slot":"dialog-portal",children:[p.jsx(nhe,{}),p.jsxs(uO,{className:pe("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&&p.jsxs(ep,{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:[p.jsx(aa,{}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function ahe({className:e,...t}){return p.jsx("div",{className:pe("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"dialog-header",...t})}function ihe({className:e,...t}){return p.jsx("div",{className:pe("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),"data-slot":"dialog-footer",...t})}function ohe({className:e,...t}){return p.jsx(cO,{className:pe("font-semibold text-lg leading-none",e),"data-slot":"dialog-title",...t})}function she({className:e,...t}){return p.jsx(fO,{className:pe("text-muted-foreground text-sm",e),"data-slot":"dialog-description",...t})}var lhe="Label",Hz=O.forwardRef((e,t)=>p.jsx(Bo.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())}}));Hz.displayName=lhe;var uhe=Hz;function che({className:e,...t}){return p.jsx(uhe,{className:pe("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 fhe(){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 Fz="wraps-dns-verification",dhe=1e3*60*60;function Gz(){try{const e=localStorage.getItem(Fz);return e?JSON.parse(e):{}}catch{return{}}}function km(e){try{localStorage.setItem(Fz,JSON.stringify(e))}catch(t){console.error("Failed to save DNS verification cache:",t)}}function Vz(e){return e?Date.now()-e.lastChecked<dhe:!1}async function Ok(e,t){var i;console.log("[DNS Verify] verifyTrackingDomain called",{domain:e,expectedTarget:t});const n=Gz(),r=`${e}->${t}`;if((i=n.trackingDomain)!=null&&i[r]&&Vz(n.trackingDomain[r]))return console.log("[DNS Verify] Returning cached result"),n.trackingDomain[r];try{const l=`/api/settings/verify-tracking-domain?token=${sessionStorage.getItem("wraps-auth-token")}&domain=${encodeURIComponent(e)}&expectedTarget=${encodeURIComponent(t)}`;console.log("[DNS Verify] Fetching:",l);const c=await fetch(l);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,km(n),d}catch(s){console.error("Tracking domain verification request failed:",s);const l={verified:!1,lastChecked:Date.now(),error:s instanceof Error?s.message:"Failed to verify"};return n.trackingDomain||(n.trackingDomain={}),n.trackingDomain[r]=l,km(n),l}}async function _k(e){var r;console.log("[DNS Verify] verifyDmarc called",{domain:e});const t=Gz(),n=`_dmarc.${e}`;if((r=t.dmarc)!=null&&r[n]&&Vz(t.dmarc[n]))return console.log("[DNS Verify] Returning cached DMARC result"),t.dmarc[n];try{const s=`/api/settings/verify-dmarc?token=${sessionStorage.getItem("wraps-auth-token")}&domain=${encodeURIComponent(e)}`;console.log("[DNS Verify] Fetching:",s);const l=await fetch(s);if(console.log("[DNS Verify] Response status:",l.status),!l.ok)throw new Error(`HTTP ${l.status}: ${l.statusText}`);const c=await l.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,km(t),f}catch(i){console.error("DMARC verification request failed:",i);const s={verified:!1,lastChecked:Date.now(),error:i instanceof Error?i.message:"Failed to verify"};return t.dmarc||(t.dmarc={}),t.dmarc[n]=s,km(t),s}}function T_({status:e}){const t={SUCCESS:{icon:Ll,label:"Verified",variant:"default",className:"bg-green-500/10 text-green-700 dark:text-green-400 border-green-500/20"},PENDING:{icon:nl,label:"Pending",variant:"secondary",className:"bg-yellow-500/10 text-yellow-700 dark:text-yellow-400 border-yellow-500/20"},FAILED:{icon:K8,label:"Failed",variant:"destructive",className:"bg-red-500/10 text-red-700 dark:text-red-400 border-red-500/20"},TEMPORARY_FAILURE:{icon:tl,label:"Temporary Failure",variant:"secondary",className:"bg-orange-500/10 text-orange-700 dark:text-orange-400 border-orange-500/20"},NOT_STARTED:{icon:nl,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 p.jsxs(Je,{className:i,variant:"outline",children:[p.jsx(n,{className:"mr-1 h-3 w-3"}),r]})}function Rl({text:e}){const t=async()=>{await navigator.clipboard.writeText(e),yn.success("Copied to clipboard",{description:"DNS record value copied successfully"})};return p.jsx(bt,{onClick:t,size:"sm",variant:"ghost",children:p.jsx(Q8,{className:"h-3 w-3"})})}function hhe({identity:e}){const t=e==null?void 0:e.dkimAttributes,n=(t==null?void 0:t.status)==="SUCCESS",[r,i]=O.useState(!n);return t?p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx("p",{className:"font-medium",children:"DKIM Authentication"}),p.jsxs("p",{className:"text-muted-foreground text-sm",children:[t.signingEnabled?"Enabled":"Disabled",t.signingKeyLength&&` · ${t.signingKeyLength}`]})]}),p.jsx(T_,{status:t.status})]}),t.tokens&&t.tokens.length>0&&p.jsxs(Up,{onOpenChange:i,open:r,children:[p.jsx(Hp,{asChild:!0,children:p.jsxs(bt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[p.jsx("p",{className:"font-medium text-sm",children:"DNS Records (CNAME)"}),r?p.jsx(uf,{className:"h-4 w-4"}):p.jsx($l,{className:"h-4 w-4"})]})}),p.jsx(Fp,{className:"mt-2 space-y-2",children:t.tokens.map(s=>p.jsxs("div",{className:"rounded-md border bg-muted/50 p-3",children:[p.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[p.jsxs("p",{className:"font-mono text-xs",children:[s,"._domainkey.",e.identityName]}),p.jsx(Rl,{text:`${s}._domainkey.${e.identityName}`})]}),p.jsxs("p",{className:"font-mono text-muted-foreground text-xs",children:["CNAME → ",s,".dkim.amazonses.com"]})]},s))})]})]}):p.jsx("div",{className:"space-y-4",children:p.jsx("div",{className:"flex items-center justify-between",children:p.jsxs("div",{children:[p.jsx("p",{className:"font-medium",children:"DKIM Authentication"}),p.jsx("p",{className:"text-muted-foreground text-sm",children:"Not configured"})]})})})}function mhe({identity:e}){const t=e==null?void 0:e.mailFromAttributes,n=(t==null?void 0:t.mailFromDomainStatus)==="SUCCESS",[r,i]=O.useState(!n);return p.jsx("div",{className:"space-y-4",children:t!=null&&t.mailFromDomain?p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx("p",{className:"font-medium",children:"Mail-From Domain"}),p.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&&p.jsx(T_,{status:t.mailFromDomainStatus})]}),p.jsxs(Up,{onOpenChange:i,open:r,children:[p.jsx(Hp,{asChild:!0,children:p.jsxs(bt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[p.jsx("p",{className:"font-medium text-sm",children:"DNS Record (MX)"}),r?p.jsx(uf,{className:"h-4 w-4"}):p.jsx($l,{className:"h-4 w-4"})]})}),p.jsx(Fp,{className:"mt-2",children:p.jsx("div",{className:"rounded-md border bg-muted/50 p-3",children:p.jsxs("div",{className:"space-y-1",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("p",{className:"font-mono text-xs",children:["MX ",t.mailFromDomain]}),p.jsx(Rl,{text:`10 feedback-smtp.${e==null?void 0:e.identityName.split(".")[0]}.amazonses.com`})]}),p.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"]})]})})})]})]}):p.jsx("div",{className:"flex items-center justify-between",children:p.jsxs("div",{children:[p.jsx("p",{className:"font-medium",children:"Mail-From Domain"}),p.jsx("p",{className:"text-muted-foreground text-sm",children:"Using default amazonses.com domain"})]})})})}function phe({identity:e}){const[t,n]=O.useState(null),[r,i]=O.useState(!1),[s,l]=O.useState(!(t!=null&&t.verified));O.useEffect(()=>{e!=null&&e.identityName&&_k(e.identityName).then(n)},[e==null?void 0:e.identityName]),O.useEffect(()=>{t&&l(!t.verified)},[t]);const c=async()=>{if(e!=null&&e.identityName){i(!0);try{const f=await _k(e.identityName);n(f),f.verified?yn.success("DMARC record verified",{description:"DNS TXT record found and configured correctly"}):(console.error("DMARC verification failed:",f.error),yn.error("Verification failed",{description:f.error||"DMARC record not found"}))}catch(f){console.error("DMARC verification error:",f),yn.error("Verification error",{description:f instanceof Error?f.message:"Unknown error"})}finally{i(!1)}}};return p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx("p",{className:"font-medium",children:"DMARC Policy"}),p.jsx("p",{className:"text-muted-foreground text-sm",children:t!=null&&t.verified?"Configured":"Recommended for better deliverability"})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[(t==null?void 0:t.verified)&&p.jsxs(Je,{className:"border-green-500/20 bg-green-500/10 text-green-700 dark:text-green-400",variant:"outline",children:[p.jsx(Ll,{className:"mr-1 h-3 w-3"}),"Verified by Wraps"]}),p.jsx(bt,{className:"h-8 w-8 p-0",disabled:r,onClick:c,size:"sm",variant:"ghost",children:p.jsx(Kk,{className:`h-4 w-4 ${r?"animate-spin":""}`})})]})]}),p.jsxs(Up,{onOpenChange:l,open:s,children:[p.jsx(Hp,{asChild:!0,children:p.jsxs(bt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[p.jsx("p",{className:"font-medium text-sm",children:"DNS Record (TXT)"}),s?p.jsx(uf,{className:"h-4 w-4"}):p.jsx($l,{className:"h-4 w-4"})]})}),p.jsx(Fp,{className:"mt-2",children:p.jsxs("div",{className:"rounded-md border bg-muted/50 p-3",children:[p.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[p.jsxs("p",{className:"font-mono text-xs",children:["_dmarc.",(e==null?void 0:e.identityName)||"yourdomain.com"]}),p.jsx(Rl,{text:`_dmarc.${(e==null?void 0:e.identityName)||"yourdomain.com"}`})]}),p.jsxs("div",{className:"flex items-start justify-between gap-2",children:[p.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"]}),p.jsx(Rl,{text:`v=DMARC1; p=quarantine; rua=mailto:dmarc@${(e==null?void 0:e.identityName)||"yourdomain.com"}`})]})]})})]})]})}function vhe({configSet:e,region:t,onRefresh:n}){const r=e==null?void 0:e.trackingOptions,[i,s]=O.useState(null),[l,c]=O.useState(!1),[f,d]=O.useState(!1),[v,m]=O.useState(""),[g,x]=O.useState(!1),[_,S]=O.useState(!(i!=null&&i.verified));O.useEffect(()=>{if(r!=null&&r.customRedirectDomain&&t){const A=`r.${t}.awstrack.me`;Ok(r.customRedirectDomain,A).then(s)}},[r==null?void 0:r.customRedirectDomain,t]),O.useEffect(()=>{i&&S(!i.verified)},[i]);const w=async()=>{if(r!=null&&r.customRedirectDomain&&t){c(!0);try{const A=`r.${t}.awstrack.me`,M=await Ok(r.customRedirectDomain,A);s(M),M.verified?yn.success("Tracking domain verified",{description:"DNS records are configured correctly"}):(console.error("Tracking domain verification failed:",M.error),yn.error("Verification failed",{description:M.error||"DNS records not found"}))}catch(A){console.error("Tracking domain verification error:",A),yn.error("Verification error",{description:A instanceof Error?A.message:"Unknown error"})}finally{c(!1)}}},j=()=>{m((r==null?void 0:r.customRedirectDomain)||""),d(!0)},E=async()=>{if(!v.trim()){yn.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:v})});if(!M.ok){const T=await M.json();throw new Error(T.error||`Failed to update: ${M.statusText}`)}d(!1),yn.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),yn.error("Failed to update tracking domain",{description:A instanceof Error?A.message:"Unknown error"})}finally{x(!1)}};return p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsx(et,{children:"Tracking Domain"}),p.jsx(st,{children:"Custom domain for open and click tracking links"})]}),p.jsx(We,{className:"space-y-4",children:r!=null&&r.customRedirectDomain?p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{className:"flex-1",children:[p.jsx("p",{className:"font-medium",children:r.customRedirectDomain}),p.jsx("p",{className:"text-muted-foreground text-sm",children:"Custom Tracking Domain"})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[(i==null?void 0:i.verified)&&p.jsxs(Je,{className:"border-green-500/20 bg-green-500/10 text-green-700 dark:text-green-400",variant:"outline",children:[p.jsx(Ll,{className:"mr-1 h-3 w-3"}),"Verified by Wraps"]}),p.jsx(Je,{variant:"outline",children:r.httpsPolicy==="REQUIRE"?"HTTPS Only":"HTTPS Optional"}),p.jsx(bt,{className:"h-8 w-8 p-0",disabled:l,onClick:w,size:"sm",variant:"ghost",children:p.jsx(Kk,{className:`h-4 w-4 ${l?"animate-spin":""}`})}),p.jsx(bt,{className:"h-8 w-8 p-0",onClick:j,size:"sm",variant:"ghost",children:p.jsx(LT,{className:"h-4 w-4"})})]})]}),p.jsxs(Up,{onOpenChange:S,open:_,children:[p.jsx(Hp,{asChild:!0,children:p.jsxs(bt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[p.jsx("p",{className:"font-medium text-sm",children:"Required DNS Record (CNAME)"}),_?p.jsx(uf,{className:"h-4 w-4"}):p.jsx($l,{className:"h-4 w-4"})]})}),p.jsx(Fp,{className:"mt-2",children:p.jsxs("div",{className:"rounded-md border bg-muted/50 p-3",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("p",{className:"font-mono text-xs",children:r.customRedirectDomain}),p.jsx(Rl,{text:r.customRedirectDomain})]}),p.jsxs("div",{className:"mt-1 flex items-start justify-between gap-2",children:[p.jsxs("p",{className:"font-mono text-muted-foreground text-xs",children:["CNAME → r.",(e==null?void 0:e.name)||"region",".awstrack.me"]}),p.jsx(Rl,{text:`r.${(e==null?void 0:e.name)||"region"}.awstrack.me`})]})]})})]})]}):p.jsxs("div",{className:"space-y-4",children:[p.jsx("p",{className:"text-muted-foreground text-sm",children:"No custom tracking domain configured. Using default awstrack.me domain."}),p.jsxs(bt,{onClick:j,size:"sm",variant:"outline",children:[p.jsx(LT,{className:"mr-2 h-4 w-4"}),"Configure Tracking Domain"]})]})}),p.jsx(ehe,{onOpenChange:d,open:f,children:p.jsxs(rhe,{children:[p.jsxs(ahe,{children:[p.jsx(ohe,{children:"Update Tracking Domain"}),p.jsx(she,{children:"Enter the custom domain you want to use for email tracking links. You'll need to configure DNS records after saving."})]}),p.jsx("div",{className:"space-y-4 py-4",children:p.jsxs("div",{className:"space-y-2",children:[p.jsx(che,{htmlFor:"domain",children:"Tracking Domain"}),p.jsx(gf,{disabled:g,id:"domain",onChange:A=>m(A.target.value),placeholder:"track.example.com",value:v}),p.jsx("p",{className:"text-muted-foreground text-xs",children:"Example: track.yourdomain.com or email.yourdomain.com"})]})}),p.jsxs(ihe,{children:[p.jsx(bt,{disabled:g,onClick:()=>d(!1),variant:"outline",children:"Cancel"}),p.jsx(bt,{disabled:g,onClick:E,children:g?"Updating...":"Update Domain"})]})]})})]})}function ghe({configSet:e,onRefresh:t}){var v,m;const[n,r]=O.useState(!1),[i,s]=O.useState(!1),[l,c]=O.useState(!1);if(!e)return p.jsx(ze,{children:p.jsxs(Be,{children:[p.jsx(et,{children:"Configuration Set"}),p.jsx(st,{children:"No configuration set found"})]})});const f=async()=>{var g;c(!0);try{const x=sessionStorage.getItem("wraps-auth-token"),_=!((g=e.sendingOptions)!=null&&g.sendingEnabled),S=await fetch(`/api/settings/config-set/sending?token=${x}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:_})});if(!S.ok)throw new Error(`Failed to update: ${S.statusText}`);r(!1),yn.success(_?"Email sending enabled":"Email sending disabled"),t&&await t()}catch(x){console.error("Failed to toggle sending:",x),yn.error("Failed to update setting",{description:x instanceof Error?x.message:"Unknown error"})}finally{c(!1)}},d=async()=>{var g;c(!0);try{const x=sessionStorage.getItem("wraps-auth-token"),_=!((g=e.reputationOptions)!=null&&g.reputationMetricsEnabled),S=await fetch(`/api/settings/config-set/reputation?token=${x}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:_})});if(!S.ok)throw new Error(`Failed to update: ${S.statusText}`);s(!1),yn.success(_?"Reputation metrics enabled":"Reputation metrics disabled"),t&&await t()}catch(x){console.error("Failed to toggle reputation:",x),yn.error("Failed to update setting",{description:x instanceof Error?x.message:"Unknown error"})}finally{c(!1)}};return p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsx(et,{children:"Configuration Set"}),p.jsx(st,{children:"Email sending and tracking configuration"})]}),p.jsxs(We,{className:"space-y-6",children:[p.jsxs("div",{children:[p.jsx("p",{className:"font-medium",children:e.name}),p.jsx("p",{className:"text-muted-foreground text-sm",children:"Configuration Set Name"})]}),p.jsx(Qn,{}),e.sendingOptions&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{className:"flex-1 space-y-0.5",children:[p.jsx("p",{className:"font-medium text-sm",children:"Email Sending"}),p.jsx("p",{className:"text-muted-foreground text-sm",children:e.sendingOptions.sendingEnabled?"Emails can be sent":"Email sending is disabled"})]}),p.jsx(bt,{onClick:()=>r(!0),size:"sm",variant:e.sendingOptions.sendingEnabled?"destructive":"default",children:e.sendingOptions.sendingEnabled?"Disable":"Enable"})]}),p.jsx(pS,{onOpenChange:r,open:n,children:p.jsxs(vS,{children:[p.jsxs(gS,{children:[p.jsx(bS,{children:e.sendingOptions.sendingEnabled?"Disable email sending?":"Enable email sending?"}),p.jsx(xS,{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."})]}),p.jsxs(yS,{children:[p.jsx(SS,{disabled:l,children:"Cancel"}),p.jsx(wS,{disabled:l,onClick:f,children:l?"Updating...":e.sendingOptions.sendingEnabled?"Disable sending":"Enable sending"})]})]})})]}),e.reputationOptions&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{className:"flex-1 space-y-0.5",children:[p.jsx("p",{className:"font-medium text-sm",children:"Reputation Metrics"}),p.jsx("p",{className:"text-muted-foreground text-sm",children:e.reputationOptions.reputationMetricsEnabled?"Tracking bounce and complaint rates":"Reputation tracking disabled"})]}),p.jsx(bt,{onClick:()=>s(!0),size:"sm",variant:"outline",children:e.reputationOptions.reputationMetricsEnabled?"Disable":"Enable"})]}),p.jsx(pS,{onOpenChange:s,open:i,children:p.jsxs(vS,{children:[p.jsxs(gS,{children:[p.jsx(bS,{children:e.reputationOptions.reputationMetricsEnabled?"Disable reputation metrics?":"Enable reputation metrics?"}),p.jsx(xS,{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."})]}),p.jsxs(yS,{children:[p.jsx(SS,{disabled:l,children:"Cancel"}),p.jsx(wS,{disabled:l,onClick:d,children:l?"Updating...":e.reputationOptions.reputationMetricsEnabled?"Disable metrics":"Enable metrics"})]})]})})]}),((v=e.deliveryOptions)==null?void 0:v.tlsPolicy)&&p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{className:"space-y-0.5",children:[p.jsx("p",{className:"font-medium text-sm",children:"TLS Encryption"}),p.jsx("p",{className:"text-muted-foreground text-sm",children:e.deliveryOptions.tlsPolicy==="REQUIRE"?"Required for all connections":"Optional (opportunistic)"})]}),p.jsx(Je,{variant:"outline",children:e.deliveryOptions.tlsPolicy==="REQUIRE"?"Required":"Optional"})]}),e.suppressionOptions&&p.jsxs("div",{className:"space-y-2",children:[p.jsxs("div",{className:"space-y-0.5",children:[p.jsx("p",{className:"font-medium text-sm",children:"Suppression List"}),p.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?p.jsx("div",{className:"flex gap-2",children:e.suppressionOptions.suppressedReasons.map(g=>p.jsx(Je,{variant:"secondary",children:g},g))}):p.jsx("p",{className:"text-muted-foreground text-sm",children:"Not configured"})]}),((m=e.deliveryOptions)==null?void 0:m.sendingPoolName)&&p.jsxs("div",{children:[p.jsx("p",{className:"font-medium text-sm",children:"IP Pool"}),p.jsx("p",{className:"text-muted-foreground text-sm",children:e.deliveryOptions.sendingPoolName})]})]})]})}function yhe(){var c,f;const[e,t]=O.useState(null),[n,r]=O.useState(!0),[i,s]=O.useState(null),l=O.useCallback(async()=>{try{r(!0);const d=await fhe();t(d),s(null)}catch(d){console.error("Failed to fetch email settings:",d),s(d instanceof Error?d.message:"Failed to load settings")}finally{r(!1)}},[]);return O.useEffect(()=>{l()},[l]),n?p.jsxs(p.Fragment,{children:[p.jsxs("div",{children:[p.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Settings"}),p.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your email settings and preferences"})]}),p.jsxs("div",{className:"mt-6 grid gap-6 md:grid-cols-2",children:[p.jsxs(ze,{className:"md:row-span-2",children:[p.jsxs(Be,{children:[p.jsx(pt,{className:"h-6 w-48"}),p.jsx(pt,{className:"mt-2 h-4 w-64"})]}),p.jsxs(We,{className:"space-y-6",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx(pt,{className:"h-4 w-32"}),p.jsx(pt,{className:"h-4 w-24"})]}),p.jsx(pt,{className:"h-px w-full"}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(pt,{className:"h-4 w-40"}),p.jsx(pt,{className:"h-4 w-28"})]}),p.jsx(pt,{className:"h-px w-full"}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(pt,{className:"h-4 w-36"}),p.jsx(pt,{className:"h-4 w-32"})]}),p.jsx(pt,{className:"h-px w-full"}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(pt,{className:"h-4 w-32"}),p.jsx(pt,{className:"h-4 w-44"})]})]})]}),p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsx(pt,{className:"h-6 w-48"}),p.jsx(pt,{className:"mt-2 h-4 w-64"})]}),p.jsx(We,{children:p.jsx(pt,{className:"h-20 w-full"})})]}),p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsx(pt,{className:"h-6 w-48"}),p.jsx(pt,{className:"mt-2 h-4 w-64"})]}),p.jsx(We,{children:p.jsx(pt,{className:"h-20 w-full"})})]})]})]}):i?p.jsxs(p.Fragment,{children:[p.jsxs("div",{children:[p.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Settings"}),p.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your email settings and preferences"})]}),p.jsxs(Jr,{className:"mt-6",variant:"destructive",children:[p.jsx(tl,{className:"h-4 w-4"}),p.jsx(Ph,{children:"Error Loading Settings"}),p.jsx(ea,{children:i})]})]}):p.jsxs(p.Fragment,{children:[p.jsxs("div",{children:[p.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Settings"}),p.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your email settings and preferences"})]}),p.jsxs("div",{className:"mt-6 grid gap-6 md:grid-cols-2",children:[p.jsxs(ze,{className:"md:row-span-2",children:[p.jsxs(Be,{children:[p.jsx(et,{children:"Sending Domain"}),p.jsx(st,{children:"Email domain configuration and authentication"})]}),p.jsxs(We,{className:"space-y-6",children:[p.jsx("div",{className:"space-y-4",children:p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{className:"flex-1",children:[p.jsx("p",{className:"font-medium",children:(c=e==null?void 0:e.identity)==null?void 0:c.identityName}),p.jsx("p",{className:"text-muted-foreground text-sm",children:"Domain Identity"})]}),p.jsx(T_,{status:((f=e==null?void 0:e.identity)==null?void 0:f.verificationStatus)||"NOT_STARTED"})]})}),p.jsx(Qn,{}),p.jsx(hhe,{identity:e==null?void 0:e.identity}),p.jsx(Qn,{}),p.jsx(mhe,{identity:e==null?void 0:e.identity}),p.jsx(Qn,{}),p.jsx(phe,{identity:e==null?void 0:e.identity})]})]}),p.jsx(ghe,{configSet:e==null?void 0:e.configurationSet,onRefresh:l}),p.jsx(vhe,{configSet:e==null?void 0:e.configurationSet,onRefresh:l,region:e==null?void 0:e.region})]})]})}const bhe={sent:ki,delivered:MS,failed:aa,queued:nl,blocked:aa,carrier_unreachable:wh,invalid:aa,opted_out:aa,ttl_expired:nl},xhe={sent:"text-blue-500",delivered:"text-green-500",failed:"text-red-500",queued:"text-gray-500",blocked:"text-orange-500",carrier_unreachable:"text-red-500",invalid:"text-red-500",opted_out:"text-yellow-500",ttl_expired:"text-gray-500"},whe={delivered:"default",sent:"secondary",queued:"secondary",failed:"destructive",blocked:"destructive",invalid:"destructive",opted_out:"default"};function She(){const{id:e}=Ik(),t=Io(),[n,r]=O.useState(null),[i,s]=O.useState(!0),[l,c]=O.useState(null);O.useEffect(()=>{async function m(){try{s(!0),c(null);const g=sessionStorage.getItem("wraps-auth-token");if(!g)throw new Error("Authentication token not found");const x=encodeURIComponent(e||""),_=await fetch(`/api/sms/${x}?token=${g}`);if(!_.ok){let j="Failed to fetch SMS details";try{j=(await _.json()).error||j}catch{j=`${_.status}: ${_.statusText}`}throw new Error(j)}const S=_.headers.get("content-type");if(!(S!=null&&S.includes("application/json"))){const j=await _.text();throw console.error("Non-JSON response:",j),new Error("Server returned non-JSON response")}const w=await _.json();r(w)}catch(g){const x=g instanceof Error?g.message:"Unknown error";c(x),console.error("Error fetching SMS details:",g)}finally{s(!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}),v=m=>m.startsWith("+1")&&m.length===12?`(${m.slice(2,5)}) ${m.slice(5,8)}-${m.slice(8)}`:m;return i?p.jsx("div",{className:"flex h-[600px] items-center justify-center",children:p.jsx("div",{className:"text-muted-foreground",children:"Loading SMS details..."})}):l?p.jsxs("div",{className:"space-y-4",children:[p.jsxs(bt,{onClick:()=>t("/sms"),size:"sm",variant:"ghost",children:[p.jsx(Ys,{className:"mr-2 h-4 w-4"}),"Back to messages"]}),p.jsx("div",{className:"rounded-md border border-destructive bg-destructive/10 p-4 text-destructive text-sm",children:l})]}):n?p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs(bt,{onClick:()=>t("/sms"),size:"sm",variant:"ghost",children:[p.jsx(Ys,{className:"mr-2 h-4 w-4"}),"Back to messages"]}),p.jsx(Je,{variant:whe[n.status],children:n.status.charAt(0).toUpperCase()+n.status.slice(1).replace("_"," ")})]}),p.jsxs(ze,{children:[p.jsx(Be,{children:p.jsx("div",{className:"flex items-start justify-between",children:p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs(et,{className:"flex items-center gap-2 text-2xl",children:[p.jsx(ki,{className:"h-6 w-6"}),"SMS Message"]}),p.jsx(st,{className:"font-mono text-xs",children:n.messageId})]})})}),p.jsx(We,{className:"space-y-4",children:p.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[p.jsxs("div",{className:"space-y-1",children:[p.jsx("div",{className:"text-muted-foreground text-sm",children:"FROM"}),p.jsx("div",{className:"font-mono text-sm",children:v(n.from)})]}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("div",{className:"text-muted-foreground text-sm",children:"TO"}),p.jsx("div",{className:"font-mono text-sm",children:v(n.to)})]}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("div",{className:"text-muted-foreground text-sm",children:"SEGMENTS"}),p.jsx("div",{className:"font-mono text-sm",children:n.segments})]}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("div",{className:"text-muted-foreground text-sm",children:"ID"}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("code",{className:"rounded bg-muted px-2 py-1 font-mono text-xs",children:n.id}),p.jsx(bt,{className:"h-6 w-6",onClick:()=>navigator.clipboard.writeText(n.id),size:"icon",variant:"ghost",children:p.jsx("span",{className:"sr-only",children:"Copy ID"})})]})]})]})})]}),p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsx(et,{children:"Message Content"}),p.jsx(st,{children:"The SMS message body"})]}),p.jsx(We,{children:p.jsx("div",{className:"rounded-md border bg-muted/50 p-4",children:p.jsx("p",{className:"whitespace-pre-wrap text-sm",children:n.body})})})]}),p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsx(et,{children:"Message Events"}),p.jsx(st,{children:"Lifecycle of this message from send to delivery"})]}),p.jsx(We,{children:p.jsx("div",{className:"space-y-4",children:n.events.length===0?p.jsx("div",{className:"text-muted-foreground text-sm",children:"No events recorded yet"}):n.events.map((m,g)=>{const x=bhe[m.type]||nl,_=g===n.events.length-1;return p.jsx("div",{children:p.jsxs("div",{className:"flex gap-4",children:[p.jsxs("div",{className:"flex flex-col items-center",children:[p.jsx("div",{className:`rounded-full border-2 border-background bg-muted p-2 ${xhe[m.type]}`,children:p.jsx(x,{className:"h-4 w-4"})}),!_&&p.jsx("div",{className:"my-1 w-px flex-1 bg-border"})]}),p.jsxs("div",{className:"flex-1 pb-6",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("div",{className:"font-medium capitalize",children:m.type.replace("_"," ")}),p.jsx("div",{className:"text-muted-foreground text-sm",children:f(m.timestamp)})]}),p.jsx("div",{className:"text-muted-foreground text-sm",children:d(m.timestamp)}),m.metadata&&Object.keys(m.metadata).length>0&&p.jsx("div",{className:"mt-2 rounded-md border bg-muted/50 p-2 font-mono text-xs",children:p.jsx("pre",{className:"overflow-x-auto",children:JSON.stringify(m.metadata,null,2)})})]})]})},`${m.type}-${m.timestamp}`)})})})]})]}):p.jsxs("div",{className:"space-y-4",children:[p.jsxs(bt,{onClick:()=>t("/sms"),size:"sm",variant:"ghost",children:[p.jsx(Ys,{className:"mr-2 h-4 w-4"}),"Back to messages"]}),p.jsx("div",{className:"rounded-md border p-4 text-muted-foreground text-sm",children:"SMS message not found"})]})}const Tw={delivered:{variant:"default",description:"Message was delivered to recipient's device",className:"bg-green-500/10 text-green-700 dark:text-green-400 hover:bg-green-500/20 border-green-500/20"},sent:{variant:"secondary",description:"Message was sent but delivery not yet confirmed",className:"bg-blue-500/10 text-blue-700 dark:text-blue-400 hover:bg-blue-500/20 border-blue-500/20"},queued:{variant:"secondary",description:"Message is queued for delivery",className:"bg-gray-500/10 text-gray-700 dark:text-gray-400 hover:bg-gray-500/20 border-gray-500/20"},failed:{variant:"destructive",description:"Message failed to deliver",className:"bg-red-500/10 text-red-700 dark:text-red-400 hover:bg-red-500/20 border-red-500/20"},blocked:{variant:"destructive",description:"Message was blocked by carrier or filter",className:"bg-orange-500/10 text-orange-700 dark:text-orange-400 hover:bg-orange-500/20 border-orange-500/20"},invalid:{variant:"destructive",description:"Invalid phone number or message format",className:"bg-red-500/10 text-red-700 dark:text-red-400 hover:bg-red-500/20 border-red-500/20"},opted_out:{variant:"default",description:"Recipient has opted out of receiving messages",className:"bg-yellow-500/10 text-yellow-700 dark:text-yellow-400 hover:bg-yellow-500/20 border-yellow-500/20"}};function Ohe(){const e=Io(),[t,n]=O.useState(""),[r,i]=O.useState("15"),[s,l]=O.useState("all"),[c,f]=O.useState([]),[d,v]=O.useState(!0),[m,g]=O.useState(null);O.useEffect(()=>{async function w(){try{v(!0),g(null);let j=sessionStorage.getItem("wraps-auth-token");if(j||(j=new URLSearchParams(window.location.search).get("token"),j&&sessionStorage.setItem("wraps-auth-token",j)),!j)throw new Error("Authentication token not found. Please use the URL provided by 'wraps console' command.");const E=Number.parseInt(r,10),A=Date.now()-E*24*60*60*1e3,M=Date.now(),T=await fetch(`/api/sms?startTime=${A}&endTime=${M}&limit=100&token=${j}`);if(!T.ok){let R="Failed to fetch SMS logs";try{R=(await T.json()).error||R}catch{R=`${T.status}: ${T.statusText}`}throw new Error(R)}const N=await T.json();f(N.logs.map(R=>({id:R.messageId,to:R.to,from:R.from,body:R.body,status:R.status,timestamp:R.sentAt,messageId:R.messageId,segments:R.segments})))}catch(j){const E=j instanceof Error?j.message:"Unknown error";g(E),console.error("Error fetching SMS logs:",j)}finally{v(!1)}}w()},[r]);const x=c.filter(w=>{if(t){const j=t.toLowerCase(),E=w.to.toLowerCase().includes(j),A=w.body.toLowerCase().includes(j);if(!(E||A))return!1}return!(s!=="all"&&w.status!==s)}),_=w=>{const j=new Date(w),A=Math.floor((new Date().getTime()-j.getTime())/(1e3*60*60*24));return A===0?"Today":A===1?"Yesterday":A<7?`${A} days ago`:j.toLocaleDateString()},S=w=>w.startsWith("+1")&&w.length===12?`(${w.slice(2,5)}) ${w.slice(5,8)}-${w.slice(8)}`:w;return p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsxs(et,{className:"flex items-center gap-2",children:[p.jsx(ki,{className:"h-5 w-5"}),"SMS Messages"]}),p.jsx(st,{children:"View and manage your SMS sending history"})]}),p.jsxs(We,{children:[m&&p.jsx("div",{className:"mb-4 rounded-md border border-destructive bg-destructive/10 p-4 text-destructive text-sm",children:m}),p.jsxs("div",{className:"mb-4 flex items-center gap-2",children:[p.jsxs("div",{className:"relative flex-1",children:[p.jsx(Xk,{className:"absolute top-2.5 left-2.5 h-4 w-4 text-muted-foreground"}),p.jsx(gf,{className:"pl-8",onChange:w=>n(w.target.value),placeholder:"Search by phone or message...",value:t})]}),p.jsxs(ol,{onValueChange:i,value:r,children:[p.jsx(ll,{className:"w-[180px]",children:p.jsx(sl,{})}),p.jsxs(ul,{children:[p.jsx(Ge,{value:"1",children:"Last 24 hours"}),p.jsx(Ge,{value:"7",children:"Last 7 days"}),p.jsx(Ge,{value:"15",children:"Last 15 days"}),p.jsx(Ge,{value:"30",children:"Last 30 days"}),p.jsx(Ge,{value:"90",children:"Last 90 days"})]})]}),p.jsxs(ol,{onValueChange:l,value:s,children:[p.jsx(ll,{className:"w-[180px]",children:p.jsx(sl,{})}),p.jsxs(ul,{children:[p.jsx(Ge,{value:"all",children:"All Statuses"}),p.jsx(Ge,{value:"delivered",children:"Delivered"}),p.jsx(Ge,{value:"sent",children:"Sent"}),p.jsx(Ge,{value:"queued",children:"Queued"}),p.jsx(Ge,{value:"failed",children:"Failed"}),p.jsx(Ge,{value:"blocked",children:"Blocked"}),p.jsx(Ge,{value:"opted_out",children:"Opted Out"})]})]}),p.jsx(bt,{size:"icon",variant:"outline",children:p.jsx("span",{className:"sr-only",children:"Download"})})]}),p.jsx("div",{className:"rounded-md border",children:p.jsxs(u4,{children:[p.jsx(c4,{children:p.jsxs(Mi,{children:[p.jsx(ra,{children:"To"}),p.jsx(ra,{children:"Status"}),p.jsx(ra,{children:"Message"}),p.jsx(ra,{children:"Sent"}),p.jsx(ra,{className:"w-[50px]"})]})}),p.jsx(f4,{children:d?p.jsx(Mi,{children:p.jsx(Pn,{className:"h-24 text-center text-muted-foreground",colSpan:5,children:"Loading SMS logs..."})}):x.length===0?p.jsx(Mi,{children:p.jsx(Pn,{className:"h-24 text-center text-muted-foreground",colSpan:5,children:"No SMS messages found"})}):x.map(w=>{var j,E,A;return p.jsxs(Mi,{className:"cursor-pointer hover:bg-muted/50",onClick:()=>e(`/sms/${w.id}`),children:[p.jsx(Pn,{className:"font-mono text-sm",children:S(w.to)}),p.jsx(Pn,{children:p.jsxs(mO,{children:[p.jsx(pO,{asChild:!0,children:p.jsx(Je,{className:(j=Tw[w.status])==null?void 0:j.className,variant:((E=Tw[w.status])==null?void 0:E.variant)??"default",children:w.status.charAt(0).toUpperCase()+w.status.slice(1).replace("_"," ")})}),p.jsx(vO,{children:p.jsx("p",{children:((A=Tw[w.status])==null?void 0:A.description)??"Unknown status"})})]})}),p.jsx(Pn,{className:"max-w-[400px] truncate",children:w.body}),p.jsx(Pn,{className:"text-muted-foreground",children:_(w.timestamp)}),p.jsx(Pn,{children:p.jsx(bt,{onClick:M=>{M.stopPropagation()},size:"icon",variant:"ghost",children:p.jsx("span",{className:"sr-only",children:"More options"})})})]},w.id)})})]})}),x.length>0&&!d&&p.jsx("div",{className:"mt-4 flex items-center justify-between text-muted-foreground text-sm",children:p.jsxs("div",{children:["Showing ",x.length," of ",c.length," messages"]})})]})]})}function _he(){const[e,t]=O.useState("7"),[n,r]=O.useState(null),[i,s]=O.useState(!0),[l,c]=O.useState(null);if(O.useEffect(()=>{async function S(){try{s(!0),c(null);let w=sessionStorage.getItem("wraps-auth-token");if(w||(w=new URLSearchParams(window.location.search).get("token"),w&&sessionStorage.setItem("wraps-auth-token",w)),!w)throw new Error("Authentication token not found. Please use the URL provided by 'wraps console' command.");const j=Number.parseInt(e,10),E=Date.now()-j*24*60*60*1e3,A=Date.now(),M=await fetch(`/api/sms/metrics?startTime=${E}&endTime=${A}&token=${w}`);if(!M.ok){let N="Failed to fetch SMS metrics";try{N=(await M.json()).error||N}catch{N=`${M.status}: ${M.statusText}`}throw new Error(N)}const T=await M.json();r(T)}catch(w){const j=w instanceof Error?w.message:"Unknown error";c(j),console.error("Error fetching SMS metrics:",w)}finally{s(!1)}}S()},[e]),l)return p.jsxs(p.Fragment,{children:[p.jsxs("div",{children:[p.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"SMS Metrics"}),p.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your SMS messaging"})]}),p.jsx("div",{className:"mt-4 rounded-md border border-destructive bg-destructive/10 p-4 text-destructive text-sm",children:l})]});if(i||!n)return p.jsxs(p.Fragment,{children:[p.jsxs("div",{children:[p.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"SMS Metrics"}),p.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your SMS messaging"})]}),p.jsx("div",{className:"mt-4 flex h-[400px] items-center justify-center text-muted-foreground",children:"Loading metrics..."})]});const f=n.metrics.sends.reduce((S,w)=>S+w.value,0)||0,d=n.metrics.deliveries.reduce((S,w)=>S+w.value,0)||0,v=n.metrics.failures.reduce((S,w)=>S+w.value,0)||0,m=n.metrics.optOuts.reduce((S,w)=>S+w.value,0)||0,g=f>0?d/f*100:0,x=f>0?v/f*100:0,_=[{title:"Messages Sent",value:f.toLocaleString(),description:`${e==="1"?"Last 24 hours":`Last ${e} days`}`,icon:ki},{title:"Delivery Rate",value:`${g.toFixed(1)}%`,description:`${d.toLocaleString()} delivered`,icon:Qk},{title:"Failure Rate",value:`${x.toFixed(1)}%`,description:`${v.toLocaleString()} failed`,icon:zm},{title:"Opt Outs",value:m.toLocaleString(),description:"Recipients unsubscribed",icon:wh}];return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"SMS Metrics"}),p.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your SMS messaging"})]}),p.jsxs(ol,{onValueChange:t,value:e,children:[p.jsx(ll,{className:"w-[180px]",children:p.jsx(sl,{})}),p.jsxs(ul,{children:[p.jsx(Ge,{value:"1",children:"Last 24 hours"}),p.jsx(Ge,{value:"7",children:"Last 7 days"}),p.jsx(Ge,{value:"15",children:"Last 15 days"}),p.jsx(Ge,{value:"30",children:"Last 30 days"}),p.jsx(Ge,{value:"90",children:"Last 90 days"})]})]})]}),p.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:_.map(S=>p.jsxs(ze,{children:[p.jsxs(Be,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[p.jsx(et,{className:"font-medium text-sm",children:S.title}),p.jsx(S.icon,{className:"h-4 w-4 text-muted-foreground"})]}),p.jsxs(We,{children:[p.jsx("div",{className:"font-bold text-2xl",children:S.value}),p.jsx("p",{className:"text-muted-foreground text-xs",children:S.description})]})]},S.title))}),n.phoneNumber&&p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsx(et,{children:"Phone Number"}),p.jsx(st,{children:"Your SMS sending number"})]}),p.jsxs(We,{className:"space-y-4",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("span",{className:"text-sm",children:"Number"}),p.jsx("span",{className:"font-mono text-sm",children:n.phoneNumber.number})]}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("span",{className:"text-sm",children:"Type"}),p.jsx(Je,{variant:"outline",children:n.phoneNumber.type})]}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("span",{className:"text-sm",children:"Status"}),p.jsx(Je,{variant:n.phoneNumber.status==="ACTIVE"?"default":"secondary",children:n.phoneNumber.status})]}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("span",{className:"text-sm",children:"Throughput"}),p.jsx("span",{className:"text-muted-foreground text-sm",children:n.phoneNumber.throughput})]})]})]}),n.quota&&p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsx(et,{children:"Spend Limits"}),p.jsx(st,{children:"Your AWS SMS spending limits"})]}),p.jsxs(We,{className:"space-y-4",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("span",{className:"text-sm",children:"Monthly Spend"}),p.jsxs("span",{className:"font-medium",children:["$",n.quota.spentThisMonth.toFixed(2)," / $",n.quota.spendLimitMonthly.toFixed(2)]})]}),p.jsx("div",{className:"h-2 w-full overflow-hidden rounded-full bg-secondary",children:p.jsx("div",{className:"h-full bg-primary transition-all",style:{width:`${Math.min(n.quota.spentThisMonth/n.quota.spendLimitMonthly*100,100)}%`}})})]}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("span",{className:"text-sm",children:"Daily Limit"}),p.jsxs("span",{className:"text-muted-foreground text-sm",children:["$",n.quota.spendLimitDaily.toFixed(2)]})]})]})]}),p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsx(et,{children:"Metrics Summary"}),p.jsx(st,{children:"Detailed breakdown of your SMS performance"})]}),p.jsxs(We,{className:"space-y-4",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("span",{className:"text-sm",children:"Total Messages Sent"}),p.jsx(Je,{variant:"outline",children:f.toLocaleString()})]}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("span",{className:"text-sm",children:"Successfully Delivered"}),p.jsx(Je,{variant:"default",children:d.toLocaleString()})]}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("span",{className:"text-sm",children:"Failed"}),p.jsx(Je,{variant:"destructive",children:v.toLocaleString()})]}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("span",{className:"text-sm",children:"Opt Outs"}),p.jsx(Je,{variant:"secondary",children:m.toLocaleString()})]})]})]})]})}function jk({status:e}){const t=e==="ACTIVE"||e==="SUCCESS";return p.jsxs(Je,{className:t?"border-green-500/20 bg-green-500/10 text-green-700 dark:text-green-400":"border-yellow-500/20 bg-yellow-500/10 text-yellow-700 dark:text-yellow-400",variant:"outline",children:[t?p.jsx(Ll,{className:"mr-1 h-3 w-3"}):p.jsx(tl,{className:"mr-1 h-3 w-3"}),e]})}function jhe({phoneNumber:e}){if(!e)return p.jsx(ze,{children:p.jsxs(Be,{children:[p.jsxs(et,{className:"flex items-center gap-2",children:[p.jsx(wh,{className:"h-5 w-5"}),"Phone Number"]}),p.jsx(st,{children:"No phone number configured"})]})});const t=r=>r.startsWith("+1")&&r.length===12?`(${r.slice(2,5)}) ${r.slice(5,8)}-${r.slice(8)}`:r,n=r=>{switch(r){case"simulator":return"Simulator";case"toll-free":return"Toll-Free";case"10dlc":return"10DLC";case"short-code":return"Short Code";default:return r}};return p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsxs(et,{className:"flex items-center gap-2",children:[p.jsx(wh,{className:"h-5 w-5"}),"Phone Number"]}),p.jsx(st,{children:"Your SMS sending number"})]}),p.jsxs(We,{className:"space-y-4",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx("p",{className:"font-medium font-mono text-lg",children:t(e.number)}),p.jsx("p",{className:"text-muted-foreground text-sm",children:n(e.type)})]}),p.jsx(jk,{status:e.status})]}),e.registrationStatus&&p.jsxs(p.Fragment,{children:[p.jsx(Qn,{}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx("p",{className:"font-medium text-sm",children:"Registration Status"}),p.jsx("p",{className:"text-muted-foreground text-sm",children:e.type==="toll-free"?"Toll-free verification":"Campaign registration"})]}),p.jsx(jk,{status:e.registrationStatus})]})]}),e.capabilities.length>0&&p.jsxs(p.Fragment,{children:[p.jsx(Qn,{}),p.jsxs("div",{className:"space-y-2",children:[p.jsx("p",{className:"font-medium text-sm",children:"Capabilities"}),p.jsx("div",{className:"flex flex-wrap gap-2",children:e.capabilities.map(r=>p.jsx(Je,{variant:"secondary",children:r},r))})]})]}),e.monthlyLeasingPrice&&p.jsxs(p.Fragment,{children:[p.jsx(Qn,{}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx("p",{className:"font-medium text-sm",children:"Monthly Cost"}),p.jsx("p",{className:"text-muted-foreground text-sm",children:"Phone number lease"})]}),p.jsxs("span",{className:"font-mono text-sm",children:["$",e.monthlyLeasingPrice,"/mo"]})]})]}),e.type==="simulator"&&p.jsxs(Jr,{children:[p.jsx(tl,{className:"h-4 w-4"}),p.jsx(Ph,{children:"Simulator Mode"}),p.jsx(ea,{children:"This number is for testing only. Messages are simulated and not actually sent. Upgrade to a toll-free number for production use."})]}),e.type==="toll-free"&&e.registrationStatus!=="VERIFIED"&&p.jsxs(Jr,{children:[p.jsx(tl,{className:"h-4 w-4"}),p.jsx(Ph,{children:"Registration Required"}),p.jsxs(ea,{children:["Toll-free numbers require registration before they can send messages. Run ",p.jsx("code",{children:"wraps sms register"})," to complete registration."]})]})]})]})}function Ehe({protectConfig:e}){return e!=null&&e.enabled?p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsxs(et,{className:"flex items-center gap-2",children:[p.jsx(zT,{className:"h-5 w-5"}),"Fraud Protection"]}),p.jsx(st,{children:"Country restrictions and AIT filtering"})]}),p.jsxs(We,{className:"space-y-4",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx("p",{className:"font-medium text-sm",children:"Status"}),p.jsx("p",{className:"text-muted-foreground text-sm",children:"Protect configuration active"})]}),p.jsxs(Je,{className:"border-green-500/20 bg-green-500/10 text-green-700 dark:text-green-400",variant:"outline",children:[p.jsx(Ll,{className:"mr-1 h-3 w-3"}),"Enabled"]})]}),p.jsx(Qn,{}),p.jsxs("div",{className:"space-y-2",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(Wk,{className:"h-4 w-4 text-muted-foreground"}),p.jsx("p",{className:"font-medium text-sm",children:"Allowed Countries"})]}),p.jsx("div",{className:"flex flex-wrap gap-2",children:e.allowedCountries.map(t=>p.jsx(Je,{variant:"secondary",children:t},t))}),p.jsx("p",{className:"text-muted-foreground text-xs",children:"Messages can only be sent to these countries. All others are blocked."})]}),p.jsx(Qn,{}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx("p",{className:"font-medium text-sm",children:"AIT Filtering"}),p.jsx("p",{className:"text-muted-foreground text-sm",children:e.aitFiltering?"Enabled - adds per-message cost":"Disabled - no extra cost"})]}),p.jsx(Je,{variant:e.aitFiltering?"default":"secondary",children:e.aitFiltering?"Enabled":"Disabled"})]})]})]}):p.jsx(ze,{children:p.jsxs(Be,{children:[p.jsxs(et,{className:"flex items-center gap-2",children:[p.jsx(zT,{className:"h-5 w-5"}),"Fraud Protection"]}),p.jsx(st,{children:"Not configured"})]})})}function Ahe({configSet:e,onRefresh:t}){const[n,r]=O.useState(!1),[i,s]=O.useState(!1);if(!e)return p.jsx(ze,{children:p.jsxs(Be,{children:[p.jsxs(et,{className:"flex items-center gap-2",children:[p.jsx(ki,{className:"h-5 w-5"}),"Configuration Set"]}),p.jsx(st,{children:"No configuration set found"})]})});const l=async()=>{s(!0);try{const c=sessionStorage.getItem("wraps-auth-token"),f=!e.sendingEnabled,d=await fetch(`/api/sms/settings/sending?token=${c}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:f})});if(!d.ok)throw new Error(`Failed to update: ${d.statusText}`);r(!1),yn.success(f?"SMS sending enabled":"SMS sending disabled"),t&&await t()}catch(c){console.error("Failed to toggle sending:",c),yn.error("Failed to update setting",{description:c instanceof Error?c.message:"Unknown error"})}finally{s(!1)}};return p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsxs(et,{className:"flex items-center gap-2",children:[p.jsx(ki,{className:"h-5 w-5"}),"Configuration Set"]}),p.jsx(st,{children:"SMS sending configuration"})]}),p.jsxs(We,{className:"space-y-4",children:[p.jsxs("div",{children:[p.jsx("p",{className:"font-medium",children:e.name}),p.jsx("p",{className:"text-muted-foreground text-sm",children:"Configuration Set Name"})]}),p.jsx(Qn,{}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{className:"flex-1 space-y-0.5",children:[p.jsx("p",{className:"font-medium text-sm",children:"SMS Sending"}),p.jsx("p",{className:"text-muted-foreground text-sm",children:e.sendingEnabled?"Messages can be sent":"Message sending is disabled"})]}),p.jsx(bt,{onClick:()=>r(!0),size:"sm",variant:e.sendingEnabled?"destructive":"default",children:e.sendingEnabled?"Disable":"Enable"})]}),p.jsx(pS,{onOpenChange:r,open:n,children:p.jsxs(vS,{children:[p.jsxs(gS,{children:[p.jsx(bS,{children:e.sendingEnabled?"Disable SMS sending?":"Enable SMS sending?"}),p.jsx(xS,{children:e.sendingEnabled?"All outgoing SMS messages will be blocked until you re-enable sending.":"This will allow SMS messages to be sent through this configuration set."})]}),p.jsxs(yS,{children:[p.jsx(SS,{disabled:i,children:"Cancel"}),p.jsx(wS,{disabled:i,onClick:l,children:i?"Updating...":e.sendingEnabled?"Disable sending":"Enable sending"})]})]})})]})]})}function The({eventTracking:e}){return p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsx(et,{children:"Event Tracking"}),p.jsx(st,{children:"Message history and event storage"})]}),p.jsxs(We,{className:"space-y-4",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx("p",{className:"font-medium text-sm",children:"Event Tracking"}),p.jsx("p",{className:"text-muted-foreground text-sm",children:e!=null&&e.enabled?"Tracking delivery events":"Event tracking disabled"})]}),p.jsx(Je,{variant:e!=null&&e.enabled?"default":"secondary",children:e!=null&&e.enabled?"Enabled":"Disabled"})]}),(e==null?void 0:e.enabled)&&p.jsxs(p.Fragment,{children:[p.jsx(Qn,{}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx("p",{className:"font-medium text-sm",children:"Message History"}),p.jsx("p",{className:"text-muted-foreground text-sm",children:e.dynamoDBHistory?"Stored in DynamoDB":"Not stored"})]}),p.jsx(Je,{variant:e.dynamoDBHistory?"default":"secondary",children:e.dynamoDBHistory?"Enabled":"Disabled"})]}),e.archiveRetention&&p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx("p",{className:"font-medium text-sm",children:"Retention Period"}),p.jsx("p",{className:"text-muted-foreground text-sm",children:"How long message history is kept"})]}),p.jsx(Je,{variant:"outline",children:e.archiveRetention})]})]})]})]})}function Che(){const[e,t]=O.useState(null),[n,r]=O.useState(!0),[i,s]=O.useState(null),l=O.useCallback(async()=>{try{r(!0);const c=sessionStorage.getItem("wraps-auth-token");if(!c)throw new Error("Authentication token not found");const f=await fetch(`/api/sms/settings?token=${c}`);if(!f.ok)throw new Error(`Failed to fetch settings: ${f.statusText}`);const d=await f.json();t(d),s(null)}catch(c){console.error("Failed to fetch SMS settings:",c),s(c instanceof Error?c.message:"Failed to load settings")}finally{r(!1)}},[]);return O.useEffect(()=>{l()},[l]),n?p.jsxs(p.Fragment,{children:[p.jsxs("div",{children:[p.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"SMS Settings"}),p.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your SMS settings and preferences"})]}),p.jsxs("div",{className:"mt-6 grid gap-6 md:grid-cols-2",children:[p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsx(pt,{className:"h-6 w-48"}),p.jsx(pt,{className:"mt-2 h-4 w-64"})]}),p.jsx(We,{children:p.jsx(pt,{className:"h-20 w-full"})})]}),p.jsxs(ze,{children:[p.jsxs(Be,{children:[p.jsx(pt,{className:"h-6 w-48"}),p.jsx(pt,{className:"mt-2 h-4 w-64"})]}),p.jsx(We,{children:p.jsx(pt,{className:"h-20 w-full"})})]})]})]}):i?p.jsxs(p.Fragment,{children:[p.jsxs("div",{children:[p.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"SMS Settings"}),p.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your SMS settings and preferences"})]}),p.jsxs(Jr,{className:"mt-6",variant:"destructive",children:[p.jsx(tl,{className:"h-4 w-4"}),p.jsx(Ph,{children:"Error Loading Settings"}),p.jsx(ea,{children:i})]})]}):p.jsxs(p.Fragment,{children:[p.jsxs("div",{children:[p.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"SMS Settings"}),p.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your SMS settings and preferences"})]}),p.jsxs("div",{className:"mt-6 grid gap-6 md:grid-cols-2",children:[p.jsx(jhe,{phoneNumber:e==null?void 0:e.phoneNumber}),p.jsx(Ahe,{configSet:e==null?void 0:e.configurationSet,onRefresh:l}),p.jsx(Ehe,{protectConfig:e==null?void 0:e.protectConfiguration}),p.jsx(The,{eventTracking:e==null?void 0:e.eventTracking})]})]})}function Nhe({children:e,defaultTheme:t="system",storageKey:n="vite-ui-theme",...r}){const[i,s]=O.useState(()=>localStorage.getItem(n)||t);O.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 l={theme:i,setTheme:c=>{localStorage.setItem(n,c),s(c)}};return p.jsx(OI.Provider,{...r,value:l,children:e})}function Mhe({...e}){return p.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function Rhe({className:e,...t}){return p.jsx("ol",{className:pe("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 Dhe({className:e,...t}){return p.jsx("li",{className:pe("inline-flex items-center gap-1.5",e),"data-slot":"breadcrumb-item",...t})}function Phe({className:e,...t}){return p.jsx("span",{"aria-current":"page","aria-disabled":"true",className:pe("font-normal text-foreground",e),"data-slot":"breadcrumb-page",role:"link",...t})}var khe=(e,t,n,r,i,s,l,c)=>{let f=document.documentElement,d=["light","dark"];function v(x){(Array.isArray(e)?e:[e]).forEach(_=>{let S=_==="class",w=S&&s?i.map(j=>s[j]||j):i;S?(f.classList.remove(...w),f.classList.add(s&&s[x]?s[x]:x)):f.setAttribute(_,x)}),m(x)}function m(x){c&&d.includes(x)&&(f.style.colorScheme=x)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)v(r);else try{let x=localStorage.getItem(t)||n,_=l&&x==="system"?g():x;v(_)}catch{}},$he=O.createContext(void 0),Lhe={setTheme:e=>{},themes:[]},Ihe=()=>{var e;return(e=O.useContext($he))!=null?e:Lhe};O.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:s,value:l,themes:c,nonce:f,scriptProps:d})=>{let v=JSON.stringify([n,t,s,e,c,l,r,i]).slice(1,-1);return O.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?f:"",dangerouslySetInnerHTML:{__html:`(${khe.toString()})(${v})`}})});const zhe=({...e})=>{const{theme:t="system"}=Ihe();return p.jsx(Cde,{className:"toaster group",icons:{success:p.jsx(Ll,{className:"size-4"}),info:p.jsx(J8,{className:"size-4"}),warning:p.jsx(iU,{className:"size-4"}),error:p.jsx(nU,{className:"size-4"}),loading:p.jsx(eU,{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 Bhe(){const e=da(),[t,n]=O.useState(!1);O.useEffect(()=>{let i=sessionStorage.getItem("wraps-auth-token");i||(i=new URLSearchParams(window.location.search).get("token"),i&&sessionStorage.setItem("wraps-auth-token",i)),n(!0)},[]),O.useEffect(()=>{document.cookie="sidebar_state=; path=/; max-age=0"},[]);const r=()=>{if(e.pathname.startsWith("/email/")&&e.pathname!=="/email/metrics"&&e.pathname!=="/email/settings")return"Email Details";if(e.pathname.startsWith("/sms/")&&e.pathname!=="/sms/metrics"&&e.pathname!=="/sms/settings")return"SMS Details";switch(e.pathname){case"/":case"/email":return"Emails";case"/email/metrics":return"Email Metrics";case"/email/settings":return"Email Settings";case"/sms":return"SMS Messages";case"/sms/metrics":return"SMS Metrics";case"/sms/settings":return"SMS Settings";default:return"Emails"}};return p.jsxs(yI,{defaultOpen:!1,children:[p.jsx(BV,{}),p.jsxs(xI,{children:[p.jsxs("header",{className:"sticky top-0 flex shrink-0 items-center gap-2 border-b bg-background p-4",children:[p.jsx(bI,{className:"-ml-1"}),p.jsx(Qn,{className:"mr-2 data-[orientation=vertical]:h-4",orientation:"vertical"}),p.jsx(Mhe,{children:p.jsx(Rhe,{children:p.jsx(Dhe,{children:p.jsx(Phe,{children:r()})})})})]}),p.jsx("div",{className:"flex flex-1 flex-col gap-6 p-6",children:t?p.jsxs(f8,{children:[p.jsx(Qr,{element:p.jsx(u8,{replace:!0,to:"/email"}),path:"/"}),p.jsx(Qr,{element:p.jsx(IY,{}),path:"/email"}),p.jsx(Qr,{element:p.jsx(JV,{}),path:"/email/:id"}),p.jsx(Qr,{element:p.jsx(nde,{}),path:"/email/metrics"}),p.jsx(Qr,{element:p.jsx(yhe,{}),path:"/email/settings"}),p.jsx(Qr,{element:p.jsx(Ohe,{}),path:"/sms"}),p.jsx(Qr,{element:p.jsx(She,{}),path:"/sms/:id"}),p.jsx(Qr,{element:p.jsx(_he,{}),path:"/sms/metrics"}),p.jsx(Qr,{element:p.jsx(Che,{}),path:"/sms/settings"})]}):p.jsx("div",{className:"flex items-center justify-center p-8",children:p.jsx("div",{className:"text-muted-foreground",children:"Loading..."})})})]})]})}function qhe(){return p.jsx(Nhe,{defaultTheme:"system",storageKey:"console-ui-theme",children:p.jsxs(k8,{children:[p.jsx(Bhe,{}),p.jsx(zhe,{})]})})}h6.createRoot(document.getElementById("root")).render(p.jsx(O.StrictMode,{children:p.jsx(qhe,{})}));
|