@agentgazer/cli 0.2.0 → 0.3.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/README.md +1 -1
- package/dist/cli.js +726 -403
- package/dist/cli.js.map +1 -1
- package/dist/commands/agent.d.ts +2 -0
- package/dist/commands/agent.d.ts.map +1 -0
- package/dist/commands/agent.js +469 -0
- package/dist/commands/agent.js.map +1 -0
- package/dist/commands/agents.d.ts +2 -0
- package/dist/commands/agents.d.ts.map +1 -0
- package/dist/commands/agents.js +70 -0
- package/dist/commands/agents.js.map +1 -0
- package/dist/commands/events.d.ts +21 -0
- package/dist/commands/events.d.ts.map +1 -0
- package/dist/commands/events.js +247 -0
- package/dist/commands/events.js.map +1 -0
- package/dist/commands/overview.d.ts +2 -0
- package/dist/commands/overview.d.ts.map +1 -0
- package/dist/commands/overview.js +8 -0
- package/dist/commands/overview.js.map +1 -0
- package/dist/commands/provider.d.ts +2 -0
- package/dist/commands/provider.d.ts.map +1 -0
- package/dist/commands/provider.js +210 -0
- package/dist/commands/provider.js.map +1 -0
- package/dist/commands/providers.d.ts +2 -0
- package/dist/commands/providers.d.ts.map +1 -0
- package/dist/commands/providers.js +77 -0
- package/dist/commands/providers.js.map +1 -0
- package/dist/config.d.ts +46 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +97 -60
- package/dist/config.js.map +1 -1
- package/dist/dashboard/assets/index-5AtWzXiJ.js +143 -0
- package/dist/dashboard/assets/index-B7NvhJW9.js +143 -0
- package/dist/dashboard/assets/index-B9izZ4lr.js +139 -0
- package/dist/dashboard/assets/index-BADwu2fU.js +143 -0
- package/dist/dashboard/assets/index-BBonREkg.js +143 -0
- package/dist/dashboard/assets/index-BGdw1Ss1.js +139 -0
- package/dist/dashboard/assets/index-BLIagyHw.css +1 -0
- package/dist/dashboard/assets/index-BN2gLOCd.js +143 -0
- package/dist/dashboard/assets/index-BOcemxE3.js +143 -0
- package/dist/dashboard/assets/index-BYYSUJ-G.js +143 -0
- package/dist/dashboard/assets/index-BhGhcADW.js +143 -0
- package/dist/dashboard/assets/index-Bjr8f_u_.js +143 -0
- package/dist/dashboard/assets/index-BsaxUL45.js +143 -0
- package/dist/dashboard/assets/index-C-DguelG.css +1 -0
- package/dist/dashboard/assets/index-C-QgKsob.js +143 -0
- package/dist/dashboard/assets/index-C6t4YWSY.js +143 -0
- package/dist/dashboard/assets/index-C9EQrGpe.js +143 -0
- package/dist/dashboard/assets/index-CB6k7nz0.js +143 -0
- package/dist/dashboard/assets/index-CBCLOBvd.js +139 -0
- package/dist/dashboard/assets/index-CGwUmIVh.js +139 -0
- package/dist/dashboard/assets/index-CLMyGFxA.js +145 -0
- package/dist/dashboard/assets/index-CYnfgO3k.js +143 -0
- package/dist/dashboard/assets/index-CiGGhaUw.js +143 -0
- package/dist/dashboard/assets/index-Cj3GjdoQ.js +143 -0
- package/dist/dashboard/assets/index-CxEl0O9p.js +143 -0
- package/dist/dashboard/assets/index-D2mLKlRw.css +1 -0
- package/dist/dashboard/assets/index-D5AUmtdo.js +139 -0
- package/dist/dashboard/assets/index-DACbampq.css +1 -0
- package/dist/dashboard/assets/index-DB0fFjgr.js +139 -0
- package/dist/dashboard/assets/index-DI-JqWdh.css +1 -0
- package/dist/dashboard/assets/index-DRcLEFcl.js +143 -0
- package/dist/dashboard/assets/index-DaUEJqLn.css +1 -0
- package/dist/dashboard/assets/index-Db5ik9Wo.js +143 -0
- package/dist/dashboard/assets/index-DfV-2ewH.css +1 -0
- package/dist/dashboard/assets/index-DgEq2MBB.css +1 -0
- package/dist/dashboard/assets/index-DhmVjP8v.js +143 -0
- package/dist/dashboard/assets/index-Dipd1pd3.js +143 -0
- package/dist/dashboard/assets/index-DirRSEOl.js +143 -0
- package/dist/dashboard/assets/index-Dr9wOl47.js +143 -0
- package/dist/dashboard/assets/index-ee-BCW5i.js +143 -0
- package/dist/dashboard/assets/index-g4KzDTwu.js +139 -0
- package/dist/dashboard/assets/index-odup_N3G.css +1 -0
- package/dist/dashboard/assets/index-wHHHG0bR.css +1 -0
- package/dist/dashboard/assets/index-wNn2zMSu.js +143 -0
- package/dist/dashboard/assets/index-wvU3UdVf.js +143 -0
- package/dist/dashboard/assets/index-yHwKni1U.css +1 -0
- package/dist/dashboard/assets/index-z-YzEeVY.js +143 -0
- package/dist/dashboard/index.html +2 -2
- package/dist/index.js +1 -11
- package/dist/index.js.map +1 -1
- package/dist/secret-store.js +27 -69
- package/dist/secret-store.js.map +1 -1
- package/dist/tui/AgentTable.d.ts +15 -0
- package/dist/tui/AgentTable.d.ts.map +1 -0
- package/dist/tui/AgentTable.js +35 -0
- package/dist/tui/AgentTable.js.map +1 -0
- package/dist/tui/EventLog.d.ts +15 -0
- package/dist/tui/EventLog.d.ts.map +1 -0
- package/dist/tui/EventLog.js +15 -0
- package/dist/tui/EventLog.js.map +1 -0
- package/dist/tui/HelpOverlay.d.ts +7 -0
- package/dist/tui/HelpOverlay.d.ts.map +1 -0
- package/dist/tui/HelpOverlay.js +11 -0
- package/dist/tui/HelpOverlay.js.map +1 -0
- package/dist/tui/Overview.d.ts +7 -0
- package/dist/tui/Overview.d.ts.map +1 -0
- package/dist/tui/Overview.js +69 -0
- package/dist/tui/Overview.js.map +1 -0
- package/dist/tui/StatusBar.d.ts +11 -0
- package/dist/tui/StatusBar.d.ts.map +1 -0
- package/dist/tui/StatusBar.js +27 -0
- package/dist/tui/StatusBar.js.map +1 -0
- package/dist/utils/api.d.ts +10 -0
- package/dist/utils/api.d.ts.map +1 -0
- package/dist/utils/api.js +114 -0
- package/dist/utils/api.js.map +1 -0
- package/dist/utils/format.d.ts +7 -0
- package/dist/utils/format.d.ts.map +1 -0
- package/dist/utils/format.js +56 -0
- package/dist/utils/format.js.map +1 -0
- package/dist/utils/prompt.d.ts +4 -0
- package/dist/utils/prompt.d.ts.map +1 -0
- package/dist/utils/prompt.js +35 -0
- package/dist/utils/prompt.js.map +1 -0
- package/package.json +13 -6
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();var Cc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ze(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wp={exports:{}},tu={};/**
|
|
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 H_;function SP(){if(H_)return tu;H_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,l){var s=null;if(l!==void 0&&(s=""+l),o.key!==void 0&&(s=""+o.key),"key"in o){l={};for(var f in o)f!=="key"&&(l[f]=o[f])}else l=o;return o=l.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:l}}return tu.Fragment=t,tu.jsx=n,tu.jsxs=n,tu}var G_;function wP(){return G_||(G_=1,Wp.exports=SP()),Wp.exports}var v=wP(),Zp={exports:{}},je={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Y_;function _P(){if(Y_)return je;Y_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),s=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),b=Symbol.iterator;function S(q){return q===null||typeof q!="object"?null:(q=b&&q[b]||q["@@iterator"],typeof q=="function"?q:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,x={};function j(q,K,re){this.props=q,this.context=K,this.refs=x,this.updater=re||_}j.prototype.isReactComponent={},j.prototype.setState=function(q,K){if(typeof q!="object"&&typeof q!="function"&&q!=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,q,K,"setState")},j.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,"forceUpdate")};function T(){}T.prototype=j.prototype;function E(q,K,re){this.props=q,this.context=K,this.refs=x,this.updater=re||_}var N=E.prototype=new T;N.constructor=E,w(N,j.prototype),N.isPureReactComponent=!0;var O=Array.isArray;function C(){}var M={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function $(q,K,re){var fe=re.ref;return{$$typeof:e,type:q,key:K,ref:fe!==void 0?fe:null,props:re}}function z(q,K){return $(q.type,K,q.props)}function L(q){return typeof q=="object"&&q!==null&&q.$$typeof===e}function B(q){var K={"=":"=0",":":"=2"};return"$"+q.replace(/[=:]/g,function(re){return K[re]})}var H=/\/+/g;function Y(q,K){return typeof q=="object"&&q!==null&&q.key!=null?B(""+q.key):K.toString(36)}function W(q){switch(q.status){case"fulfilled":return q.value;case"rejected":throw q.reason;default:switch(typeof q.status=="string"?q.then(C,C):(q.status="pending",q.then(function(K){q.status==="pending"&&(q.status="fulfilled",q.value=K)},function(K){q.status==="pending"&&(q.status="rejected",q.reason=K)})),q.status){case"fulfilled":return q.value;case"rejected":throw q.reason}}throw q}function k(q,K,re,fe,pe){var le=typeof q;(le==="undefined"||le==="boolean")&&(q=null);var Se=!1;if(q===null)Se=!0;else switch(le){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(q.$$typeof){case e:case t:Se=!0;break;case y:return Se=q._init,k(Se(q._payload),K,re,fe,pe)}}if(Se)return pe=pe(q),Se=fe===""?"."+Y(q,0):fe,O(pe)?(re="",Se!=null&&(re=Se.replace(H,"$&/")+"/"),k(pe,K,re,"",function(we){return we})):pe!=null&&(L(pe)&&(pe=z(pe,re+(pe.key==null||q&&q.key===pe.key?"":(""+pe.key).replace(H,"$&/")+"/")+Se)),K.push(pe)),1;Se=0;var qe=fe===""?".":fe+":";if(O(q))for(var ce=0;ce<q.length;ce++)fe=q[ce],le=qe+Y(fe,ce),Se+=k(fe,K,re,le,pe);else if(ce=S(q),typeof ce=="function")for(q=ce.call(q),ce=0;!(fe=q.next()).done;)fe=fe.value,le=qe+Y(fe,ce++),Se+=k(fe,K,re,le,pe);else if(le==="object"){if(typeof q.then=="function")return k(W(q),K,re,fe,pe);throw K=String(q),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return Se}function X(q,K,re){if(q==null)return q;var fe=[],pe=0;return k(q,fe,"","",function(le){return K.call(re,le,pe++)}),fe}function F(q){if(q._status===-1){var K=q._result;K=K(),K.then(function(re){(q._status===0||q._status===-1)&&(q._status=1,q._result=re)},function(re){(q._status===0||q._status===-1)&&(q._status=2,q._result=re)}),q._status===-1&&(q._status=0,q._result=K)}if(q._status===1)return q._result.default;throw q._result}var oe=typeof reportError=="function"?reportError:function(q){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof q=="object"&&q!==null&&typeof q.message=="string"?String(q.message):String(q),error:q});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",q);return}console.error(q)},se={map:X,forEach:function(q,K,re){X(q,function(){K.apply(this,arguments)},re)},count:function(q){var K=0;return X(q,function(){K++}),K},toArray:function(q){return X(q,function(K){return K})||[]},only:function(q){if(!L(q))throw Error("React.Children.only expected to receive a single React element child.");return q}};return je.Activity=p,je.Children=se,je.Component=j,je.Fragment=n,je.Profiler=o,je.PureComponent=E,je.StrictMode=r,je.Suspense=d,je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,je.__COMPILER_RUNTIME={__proto__:null,c:function(q){return M.H.useMemoCache(q)}},je.cache=function(q){return function(){return q.apply(null,arguments)}},je.cacheSignal=function(){return null},je.cloneElement=function(q,K,re){if(q==null)throw Error("The argument must be a React element, but you passed "+q+".");var fe=w({},q.props),pe=q.key;if(K!=null)for(le in K.key!==void 0&&(pe=""+K.key),K)!D.call(K,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&K.ref===void 0||(fe[le]=K[le]);var le=arguments.length-2;if(le===1)fe.children=re;else if(1<le){for(var Se=Array(le),qe=0;qe<le;qe++)Se[qe]=arguments[qe+2];fe.children=Se}return $(q.type,pe,fe)},je.createContext=function(q){return q={$$typeof:s,_currentValue:q,_currentValue2:q,_threadCount:0,Provider:null,Consumer:null},q.Provider=q,q.Consumer={$$typeof:l,_context:q},q},je.createElement=function(q,K,re){var fe,pe={},le=null;if(K!=null)for(fe in K.key!==void 0&&(le=""+K.key),K)D.call(K,fe)&&fe!=="key"&&fe!=="__self"&&fe!=="__source"&&(pe[fe]=K[fe]);var Se=arguments.length-2;if(Se===1)pe.children=re;else if(1<Se){for(var qe=Array(Se),ce=0;ce<Se;ce++)qe[ce]=arguments[ce+2];pe.children=qe}if(q&&q.defaultProps)for(fe in Se=q.defaultProps,Se)pe[fe]===void 0&&(pe[fe]=Se[fe]);return $(q,le,pe)},je.createRef=function(){return{current:null}},je.forwardRef=function(q){return{$$typeof:f,render:q}},je.isValidElement=L,je.lazy=function(q){return{$$typeof:y,_payload:{_status:-1,_result:q},_init:F}},je.memo=function(q,K){return{$$typeof:h,type:q,compare:K===void 0?null:K}},je.startTransition=function(q){var K=M.T,re={};M.T=re;try{var fe=q(),pe=M.S;pe!==null&&pe(re,fe),typeof fe=="object"&&fe!==null&&typeof fe.then=="function"&&fe.then(C,oe)}catch(le){oe(le)}finally{K!==null&&re.types!==null&&(K.types=re.types),M.T=K}},je.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},je.use=function(q){return M.H.use(q)},je.useActionState=function(q,K,re){return M.H.useActionState(q,K,re)},je.useCallback=function(q,K){return M.H.useCallback(q,K)},je.useContext=function(q){return M.H.useContext(q)},je.useDebugValue=function(){},je.useDeferredValue=function(q,K){return M.H.useDeferredValue(q,K)},je.useEffect=function(q,K){return M.H.useEffect(q,K)},je.useEffectEvent=function(q){return M.H.useEffectEvent(q)},je.useId=function(){return M.H.useId()},je.useImperativeHandle=function(q,K,re){return M.H.useImperativeHandle(q,K,re)},je.useInsertionEffect=function(q,K){return M.H.useInsertionEffect(q,K)},je.useLayoutEffect=function(q,K){return M.H.useLayoutEffect(q,K)},je.useMemo=function(q,K){return M.H.useMemo(q,K)},je.useOptimistic=function(q,K){return M.H.useOptimistic(q,K)},je.useReducer=function(q,K,re){return M.H.useReducer(q,K,re)},je.useRef=function(q){return M.H.useRef(q)},je.useState=function(q){return M.H.useState(q)},je.useSyncExternalStore=function(q,K,re){return M.H.useSyncExternalStore(q,K,re)},je.useTransition=function(){return M.H.useTransition()},je.version="19.2.4",je}var K_;function $b(){return K_||(K_=1,Zp.exports=_P()),Zp.exports}var P=$b();const I=Ze(P);var Qp={exports:{}},nu={},Jp={exports:{}},em={};/**
|
|
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 V_;function OP(){return V_||(V_=1,(function(e){function t(k,X){var F=k.length;k.push(X);e:for(;0<F;){var oe=F-1>>>1,se=k[oe];if(0<o(se,X))k[oe]=X,k[F]=se,F=oe;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var X=k[0],F=k.pop();if(F!==X){k[0]=F;e:for(var oe=0,se=k.length,q=se>>>1;oe<q;){var K=2*(oe+1)-1,re=k[K],fe=K+1,pe=k[fe];if(0>o(re,F))fe<se&&0>o(pe,re)?(k[oe]=pe,k[fe]=F,oe=fe):(k[oe]=re,k[K]=F,oe=K);else if(fe<se&&0>o(pe,F))k[oe]=pe,k[fe]=F,oe=fe;else break e}}return X}function o(k,X){var F=k.sortIndex-X.sortIndex;return F!==0?F:k.id-X.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,f=s.now();e.unstable_now=function(){return s.now()-f}}var d=[],h=[],y=1,p=null,b=3,S=!1,_=!1,w=!1,x=!1,j=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function N(k){for(var X=n(h);X!==null;){if(X.callback===null)r(h);else if(X.startTime<=k)r(h),X.sortIndex=X.expirationTime,t(d,X);else break;X=n(h)}}function O(k){if(w=!1,N(k),!_)if(n(d)!==null)_=!0,C||(C=!0,B());else{var X=n(h);X!==null&&W(O,X.startTime-k)}}var C=!1,M=-1,D=5,$=-1;function z(){return x?!0:!(e.unstable_now()-$<D)}function L(){if(x=!1,C){var k=e.unstable_now();$=k;var X=!0;try{e:{_=!1,w&&(w=!1,T(M),M=-1),S=!0;var F=b;try{t:{for(N(k),p=n(d);p!==null&&!(p.expirationTime>k&&z());){var oe=p.callback;if(typeof oe=="function"){p.callback=null,b=p.priorityLevel;var se=oe(p.expirationTime<=k);if(k=e.unstable_now(),typeof se=="function"){p.callback=se,N(k),X=!0;break t}p===n(d)&&r(d),N(k)}else r(d);p=n(d)}if(p!==null)X=!0;else{var q=n(h);q!==null&&W(O,q.startTime-k),X=!1}}break e}finally{p=null,b=F,S=!1}X=void 0}}finally{X?B():C=!1}}}var B;if(typeof E=="function")B=function(){E(L)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,Y=H.port2;H.port1.onmessage=L,B=function(){Y.postMessage(null)}}else B=function(){j(L,0)};function W(k,X){M=j(function(){k(e.unstable_now())},X)}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 b},e.unstable_next=function(k){switch(b){case 1:case 2:case 3:var X=3;break;default:X=b}var F=b;b=X;try{return k()}finally{b=F}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(k,X){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var F=b;b=k;try{return X()}finally{b=F}},e.unstable_scheduleCallback=function(k,X,F){var oe=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?oe+F:oe):F=oe,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=F+se,k={id:y++,callback:X,priorityLevel:k,startTime:F,expirationTime:se,sortIndex:-1},F>oe?(k.sortIndex=F,t(h,k),n(d)===null&&k===n(h)&&(w?(T(M),M=-1):w=!0,W(O,F-oe))):(k.sortIndex=se,t(d,k),_||S||(_=!0,C||(C=!0,B()))),k},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(k){var X=b;return function(){var F=b;b=X;try{return k.apply(this,arguments)}finally{b=F}}}})(em)),em}var X_;function AP(){return X_||(X_=1,Jp.exports=OP()),Jp.exports}var tm={exports:{}},It={};/**
|
|
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 F_;function jP(){if(F_)return It;F_=1;var e=$b();function t(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)h+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+d+"; visit "+h+" 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},o=Symbol.for("react.portal");function l(d,h,y){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:p==null?null:""+p,children:d,containerInfo:h,implementation:y}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return It.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,It.createPortal=function(d,h){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return l(d,h,null,y)},It.flushSync=function(d){var h=s.T,y=r.p;try{if(s.T=null,r.p=2,d)return d()}finally{s.T=h,r.p=y,r.d.f()}},It.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(d,h))},It.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},It.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var y=h.as,p=f(y,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,S=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;y==="style"?r.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:b,fetchPriority:S}):y==="script"&&r.d.X(d,{crossOrigin:p,integrity:b,fetchPriority:S,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},It.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var y=f(h.as,h.crossOrigin);r.d.M(d,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(d)},It.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var y=h.as,p=f(y,h.crossOrigin);r.d.L(d,y,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},It.preloadModule=function(d,h){if(typeof d=="string")if(h){var y=f(h.as,h.crossOrigin);r.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(d)},It.requestFormReset=function(d){r.d.r(d)},It.unstable_batchedUpdates=function(d,h){return d(h)},It.useFormState=function(d,h,y){return s.H.useFormState(d,h,y)},It.useFormStatus=function(){return s.H.useHostTransitionStatus()},It.version="19.2.4",It}var W_;function TP(){if(W_)return tm.exports;W_=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(),tm.exports=jP(),tm.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 Z_;function EP(){if(Z_)return nu;Z_=1;var e=AP(),t=$b(),n=TP();function r(a){var i="https://react.dev/errors/"+a;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)i+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+a+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function l(a){var i=a,u=a;if(a.alternate)for(;i.return;)i=i.return;else{a=i;do i=a,(i.flags&4098)!==0&&(u=i.return),a=i.return;while(a)}return i.tag===3?u:null}function s(a){if(a.tag===13){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function f(a){if(a.tag===31){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function d(a){if(l(a)!==a)throw Error(r(188))}function h(a){var i=a.alternate;if(!i){if(i=l(a),i===null)throw Error(r(188));return i!==a?null:a}for(var u=a,c=i;;){var m=u.return;if(m===null)break;var g=m.alternate;if(g===null){if(c=m.return,c!==null){u=c;continue}break}if(m.child===g.child){for(g=m.child;g;){if(g===u)return d(m),a;if(g===c)return d(m),i;g=g.sibling}throw Error(r(188))}if(u.return!==c.return)u=m,c=g;else{for(var A=!1,R=m.child;R;){if(R===u){A=!0,u=m,c=g;break}if(R===c){A=!0,c=m,u=g;break}R=R.sibling}if(!A){for(R=g.child;R;){if(R===u){A=!0,u=g,c=m;break}if(R===c){A=!0,c=g,u=m;break}R=R.sibling}if(!A)throw Error(r(189))}}if(u.alternate!==c)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?a:i}function y(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a;for(a=a.child;a!==null;){if(i=y(a),i!==null)return i;a=a.sibling}return null}var p=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),E=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),z=Symbol.for("react.memo_cache_sentinel"),L=Symbol.iterator;function B(a){return a===null||typeof a!="object"?null:(a=L&&a[L]||a["@@iterator"],typeof a=="function"?a:null)}var H=Symbol.for("react.client.reference");function Y(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===H?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case w:return"Fragment";case j:return"Profiler";case x:return"StrictMode";case O:return"Suspense";case C:return"SuspenseList";case $:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case _:return"Portal";case E:return a.displayName||"Context";case T:return(a._context.displayName||"Context")+".Consumer";case N:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case M:return i=a.displayName||null,i!==null?i:Y(a.type)||"Memo";case D:i=a._payload,a=a._init;try{return Y(a(i))}catch{}}return null}var W=Array.isArray,k=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},oe=[],se=-1;function q(a){return{current:a}}function K(a){0>se||(a.current=oe[se],oe[se]=null,se--)}function re(a,i){se++,oe[se]=a.current,a.current=i}var fe=q(null),pe=q(null),le=q(null),Se=q(null);function qe(a,i){switch(re(le,i),re(pe,a),re(fe,null),i.nodeType){case 9:case 11:a=(a=i.documentElement)&&(a=a.namespaceURI)?d_(a):0;break;default:if(a=i.tagName,i=i.namespaceURI)i=d_(i),a=h_(i,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}K(fe),re(fe,a)}function ce(){K(fe),K(pe),K(le)}function we(a){a.memoizedState!==null&&re(Se,a);var i=fe.current,u=h_(i,a.type);i!==u&&(re(pe,a),re(fe,u))}function Ae(a){pe.current===a&&(K(fe),K(pe)),Se.current===a&&(K(Se),Zl._currentValue=F)}var ue,rt;function Ne(a){if(ue===void 0)try{throw Error()}catch(u){var i=u.stack.trim().match(/\n( *(at )?)/);ue=i&&i[1]||"",rt=-1<u.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+ue+a+rt}var ct=!1;function ft(a,i){if(!a||ct)return"";ct=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(i){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(ee){var J=ee}Reflect.construct(a,[],ie)}else{try{ie.call()}catch(ee){J=ee}a.call(ie.prototype)}}else{try{throw Error()}catch(ee){J=ee}(ie=a())&&typeof ie.catch=="function"&&ie.catch(function(){})}}catch(ee){if(ee&&J&&typeof ee.stack=="string")return[ee.stack,J.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=c.DetermineComponentFrameRoot(),A=g[0],R=g[1];if(A&&R){var U=A.split(`
|
|
44
|
+
`),Q=R.split(`
|
|
45
|
+
`);for(m=c=0;c<U.length&&!U[c].includes("DetermineComponentFrameRoot");)c++;for(;m<Q.length&&!Q[m].includes("DetermineComponentFrameRoot");)m++;if(c===U.length||m===Q.length)for(c=U.length-1,m=Q.length-1;1<=c&&0<=m&&U[c]!==Q[m];)m--;for(;1<=c&&0<=m;c--,m--)if(U[c]!==Q[m]){if(c!==1||m!==1)do if(c--,m--,0>m||U[c]!==Q[m]){var te=`
|
|
46
|
+
`+U[c].replace(" at new "," at ");return a.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",a.displayName)),te}while(1<=c&&0<=m);break}}}finally{ct=!1,Error.prepareStackTrace=u}return(u=a?a.displayName||a.name:"")?Ne(u):""}function zt(a,i){switch(a.tag){case 26:case 27:case 5:return Ne(a.type);case 16:return Ne("Lazy");case 13:return a.child!==i&&i!==null?Ne("Suspense Fallback"):Ne("Suspense");case 19:return Ne("SuspenseList");case 0:case 15:return ft(a.type,!1);case 11:return ft(a.type.render,!1);case 1:return ft(a.type,!0);case 31:return Ne("Activity");default:return""}}function Un(a){try{var i="",u=null;do i+=zt(a,u),u=a,a=a.return;while(a);return i}catch(c){return`
|
|
47
|
+
Error generating stack: `+c.message+`
|
|
48
|
+
`+c.stack}}var Jn=Object.prototype.hasOwnProperty,Jr=e.unstable_scheduleCallback,In=e.unstable_cancelCallback,hr=e.unstable_shouldYield,ul=e.unstable_requestPaint,Ut=e.unstable_now,ds=e.unstable_getCurrentPriorityLevel,Gx=e.unstable_ImmediatePriority,Yx=e.unstable_UserBlockingPriority,hs=e.unstable_NormalPriority,n4=e.unstable_LowPriority,Kx=e.unstable_IdlePriority,r4=e.log,a4=e.unstable_setDisableYieldValue,sl=null,on=null;function ea(a){if(typeof r4=="function"&&a4(a),on&&typeof on.setStrictMode=="function")try{on.setStrictMode(sl,a)}catch{}}var ln=Math.clz32?Math.clz32:l4,i4=Math.log,o4=Math.LN2;function l4(a){return a>>>=0,a===0?32:31-(i4(a)/o4|0)|0}var ps=256,ms=262144,ys=4194304;function $a(a){var i=a&42;if(i!==0)return i;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 vs(a,i,u){var c=a.pendingLanes;if(c===0)return 0;var m=0,g=a.suspendedLanes,A=a.pingedLanes;a=a.warmLanes;var R=c&134217727;return R!==0?(c=R&~g,c!==0?m=$a(c):(A&=R,A!==0?m=$a(A):u||(u=R&~a,u!==0&&(m=$a(u))))):(R=c&~g,R!==0?m=$a(R):A!==0?m=$a(A):u||(u=c&~a,u!==0&&(m=$a(u)))),m===0?0:i!==0&&i!==m&&(i&g)===0&&(g=m&-m,u=i&-i,g>=u||g===32&&(u&4194048)!==0)?i:m}function cl(a,i){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&i)===0}function u4(a,i){switch(a){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 Vx(){var a=ys;return ys<<=1,(ys&62914560)===0&&(ys=4194304),a}function qd(a){for(var i=[],u=0;31>u;u++)i.push(a);return i}function fl(a,i){a.pendingLanes|=i,i!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function s4(a,i,u,c,m,g){var A=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 R=a.entanglements,U=a.expirationTimes,Q=a.hiddenUpdates;for(u=A&~u;0<u;){var te=31-ln(u),ie=1<<te;R[te]=0,U[te]=-1;var J=Q[te];if(J!==null)for(Q[te]=null,te=0;te<J.length;te++){var ee=J[te];ee!==null&&(ee.lane&=-536870913)}u&=~ie}c!==0&&Xx(a,c,0),g!==0&&m===0&&a.tag!==0&&(a.suspendedLanes|=g&~(A&~i))}function Xx(a,i,u){a.pendingLanes|=i,a.suspendedLanes&=~i;var c=31-ln(i);a.entangledLanes|=i,a.entanglements[c]=a.entanglements[c]|1073741824|u&261930}function Fx(a,i){var u=a.entangledLanes|=i;for(a=a.entanglements;u;){var c=31-ln(u),m=1<<c;m&i|a[c]&i&&(a[c]|=i),u&=~m}}function Wx(a,i){var u=i&-i;return u=(u&42)!==0?1:Bd(u),(u&(a.suspendedLanes|i))!==0?0:u}function Bd(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 zd(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function Zx(){var a=X.p;return a!==0?a:(a=window.event,a===void 0?32:$_(a.type))}function Qx(a,i){var u=X.p;try{return X.p=a,i()}finally{X.p=u}}var ta=Math.random().toString(36).slice(2),Dt="__reactFiber$"+ta,Xt="__reactProps$"+ta,ji="__reactContainer$"+ta,Ud="__reactEvents$"+ta,c4="__reactListeners$"+ta,f4="__reactHandles$"+ta,Jx="__reactResources$"+ta,dl="__reactMarker$"+ta;function Id(a){delete a[Dt],delete a[Xt],delete a[Ud],delete a[c4],delete a[f4]}function Ti(a){var i=a[Dt];if(i)return i;for(var u=a.parentNode;u;){if(i=u[ji]||u[Dt]){if(u=i.alternate,i.child!==null||u!==null&&u.child!==null)for(a=x_(a);a!==null;){if(u=a[Dt])return u;a=x_(a)}return i}a=u,u=a.parentNode}return null}function Ei(a){if(a=a[Dt]||a[ji]){var i=a.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return a}return null}function hl(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a.stateNode;throw Error(r(33))}function Ni(a){var i=a[Jx];return i||(i=a[Jx]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Nt(a){a[dl]=!0}var e1=new Set,t1={};function La(a,i){Ci(a,i),Ci(a+"Capture",i)}function Ci(a,i){for(t1[a]=i,a=0;a<i.length;a++)e1.add(i[a])}var d4=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]*$"),n1={},r1={};function h4(a){return Jn.call(r1,a)?!0:Jn.call(n1,a)?!1:d4.test(a)?r1[a]=!0:(n1[a]=!0,!1)}function gs(a,i,u){if(h4(i))if(u===null)a.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":a.removeAttribute(i);return;case"boolean":var c=i.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){a.removeAttribute(i);return}}a.setAttribute(i,""+u)}}function bs(a,i,u){if(u===null)a.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(i);return}a.setAttribute(i,""+u)}}function pr(a,i,u,c){if(c===null)a.removeAttribute(u);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(u);return}a.setAttributeNS(i,u,""+c)}}function wn(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function a1(a){var i=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function p4(a,i,u){var c=Object.getOwnPropertyDescriptor(a.constructor.prototype,i);if(!a.hasOwnProperty(i)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var m=c.get,g=c.set;return Object.defineProperty(a,i,{configurable:!0,get:function(){return m.call(this)},set:function(A){u=""+A,g.call(this,A)}}),Object.defineProperty(a,i,{enumerable:c.enumerable}),{getValue:function(){return u},setValue:function(A){u=""+A},stopTracking:function(){a._valueTracker=null,delete a[i]}}}}function Hd(a){if(!a._valueTracker){var i=a1(a)?"checked":"value";a._valueTracker=p4(a,i,""+a[i])}}function i1(a){if(!a)return!1;var i=a._valueTracker;if(!i)return!0;var u=i.getValue(),c="";return a&&(c=a1(a)?a.checked?"true":"false":a.value),a=c,a!==u?(i.setValue(a),!0):!1}function xs(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 m4=/[\n"\\]/g;function _n(a){return a.replace(m4,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Gd(a,i,u,c,m,g,A,R){a.name="",A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?a.type=A:a.removeAttribute("type"),i!=null?A==="number"?(i===0&&a.value===""||a.value!=i)&&(a.value=""+wn(i)):a.value!==""+wn(i)&&(a.value=""+wn(i)):A!=="submit"&&A!=="reset"||a.removeAttribute("value"),i!=null?Yd(a,A,wn(i)):u!=null?Yd(a,A,wn(u)):c!=null&&a.removeAttribute("value"),m==null&&g!=null&&(a.defaultChecked=!!g),m!=null&&(a.checked=m&&typeof m!="function"&&typeof m!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?a.name=""+wn(R):a.removeAttribute("name")}function o1(a,i,u,c,m,g,A,R){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(a.type=g),i!=null||u!=null){if(!(g!=="submit"&&g!=="reset"||i!=null)){Hd(a);return}u=u!=null?""+wn(u):"",i=i!=null?""+wn(i):u,R||i===a.value||(a.value=i),a.defaultValue=i}c=c??m,c=typeof c!="function"&&typeof c!="symbol"&&!!c,a.checked=R?a.checked:!!c,a.defaultChecked=!!c,A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(a.name=A),Hd(a)}function Yd(a,i,u){i==="number"&&xs(a.ownerDocument)===a||a.defaultValue===""+u||(a.defaultValue=""+u)}function Mi(a,i,u,c){if(a=a.options,i){i={};for(var m=0;m<u.length;m++)i["$"+u[m]]=!0;for(u=0;u<a.length;u++)m=i.hasOwnProperty("$"+a[u].value),a[u].selected!==m&&(a[u].selected=m),m&&c&&(a[u].defaultSelected=!0)}else{for(u=""+wn(u),i=null,m=0;m<a.length;m++){if(a[m].value===u){a[m].selected=!0,c&&(a[m].defaultSelected=!0);return}i!==null||a[m].disabled||(i=a[m])}i!==null&&(i.selected=!0)}}function l1(a,i,u){if(i!=null&&(i=""+wn(i),i!==a.value&&(a.value=i),u==null)){a.defaultValue!==i&&(a.defaultValue=i);return}a.defaultValue=u!=null?""+wn(u):""}function u1(a,i,u,c){if(i==null){if(c!=null){if(u!=null)throw Error(r(92));if(W(c)){if(1<c.length)throw Error(r(93));c=c[0]}u=c}u==null&&(u=""),i=u}u=wn(i),a.defaultValue=u,c=a.textContent,c===u&&c!==""&&c!==null&&(a.value=c),Hd(a)}function Ri(a,i){if(i){var u=a.firstChild;if(u&&u===a.lastChild&&u.nodeType===3){u.nodeValue=i;return}}a.textContent=i}var y4=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 s1(a,i,u){var c=i.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?c?a.setProperty(i,""):i==="float"?a.cssFloat="":a[i]="":c?a.setProperty(i,u):typeof u!="number"||u===0||y4.has(i)?i==="float"?a.cssFloat=u:a[i]=(""+u).trim():a[i]=u+"px"}function c1(a,i,u){if(i!=null&&typeof i!="object")throw Error(r(62));if(a=a.style,u!=null){for(var c in u)!u.hasOwnProperty(c)||i!=null&&i.hasOwnProperty(c)||(c.indexOf("--")===0?a.setProperty(c,""):c==="float"?a.cssFloat="":a[c]="");for(var m in i)c=i[m],i.hasOwnProperty(m)&&u[m]!==c&&s1(a,m,c)}else for(var g in i)i.hasOwnProperty(g)&&s1(a,g,i[g])}function Kd(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 v4=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"]]),g4=/^[\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 Ss(a){return g4.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function mr(){}var Vd=null;function Xd(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Pi=null,Di=null;function f1(a){var i=Ei(a);if(i&&(a=i.stateNode)){var u=a[Xt]||null;e:switch(a=i.stateNode,i.type){case"input":if(Gd(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),i=u.name,u.type==="radio"&&i!=null){for(u=a;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+_n(""+i)+'"][type="radio"]'),i=0;i<u.length;i++){var c=u[i];if(c!==a&&c.form===a.form){var m=c[Xt]||null;if(!m)throw Error(r(90));Gd(c,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(i=0;i<u.length;i++)c=u[i],c.form===a.form&&i1(c)}break e;case"textarea":l1(a,u.value,u.defaultValue);break e;case"select":i=u.value,i!=null&&Mi(a,!!u.multiple,i,!1)}}}var Fd=!1;function d1(a,i,u){if(Fd)return a(i,u);Fd=!0;try{var c=a(i);return c}finally{if(Fd=!1,(Pi!==null||Di!==null)&&(uc(),Pi&&(i=Pi,a=Di,Di=Pi=null,f1(i),a)))for(i=0;i<a.length;i++)f1(a[i])}}function pl(a,i){var u=a.stateNode;if(u===null)return null;var c=u[Xt]||null;if(c===null)return null;u=c[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(a=a.type,c=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!c;break e;default:a=!1}if(a)return null;if(u&&typeof u!="function")throw Error(r(231,i,typeof u));return u}var yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wd=!1;if(yr)try{var ml={};Object.defineProperty(ml,"passive",{get:function(){Wd=!0}}),window.addEventListener("test",ml,ml),window.removeEventListener("test",ml,ml)}catch{Wd=!1}var na=null,Zd=null,ws=null;function h1(){if(ws)return ws;var a,i=Zd,u=i.length,c,m="value"in na?na.value:na.textContent,g=m.length;for(a=0;a<u&&i[a]===m[a];a++);var A=u-a;for(c=1;c<=A&&i[u-c]===m[g-c];c++);return ws=m.slice(a,1<c?1-c:void 0)}function _s(a){var i=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&i===13&&(a=13)):a=i,a===10&&(a=13),32<=a||a===13?a:0}function Os(){return!0}function p1(){return!1}function Ft(a){function i(u,c,m,g,A){this._reactName=u,this._targetInst=m,this.type=c,this.nativeEvent=g,this.target=A,this.currentTarget=null;for(var R in a)a.hasOwnProperty(R)&&(u=a[R],this[R]=u?u(g):g[R]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Os:p1,this.isPropagationStopped=p1,this}return p(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Os)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Os)},persist:function(){},isPersistent:Os}),i}var qa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},As=Ft(qa),yl=p({},qa,{view:0,detail:0}),b4=Ft(yl),Qd,Jd,vl,js=p({},yl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:th,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!==vl&&(vl&&a.type==="mousemove"?(Qd=a.screenX-vl.screenX,Jd=a.screenY-vl.screenY):Jd=Qd=0,vl=a),Qd)},movementY:function(a){return"movementY"in a?a.movementY:Jd}}),m1=Ft(js),x4=p({},js,{dataTransfer:0}),S4=Ft(x4),w4=p({},yl,{relatedTarget:0}),eh=Ft(w4),_4=p({},qa,{animationName:0,elapsedTime:0,pseudoElement:0}),O4=Ft(_4),A4=p({},qa,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),j4=Ft(A4),T4=p({},qa,{data:0}),y1=Ft(T4),E4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},N4={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"},C4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function M4(a){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(a):(a=C4[a])?!!i[a]:!1}function th(){return M4}var R4=p({},yl,{key:function(a){if(a.key){var i=E4[a.key]||a.key;if(i!=="Unidentified")return i}return a.type==="keypress"?(a=_s(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?N4[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:th,charCode:function(a){return a.type==="keypress"?_s(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?_s(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),P4=Ft(R4),D4=p({},js,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),v1=Ft(D4),k4=p({},yl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:th}),$4=Ft(k4),L4=p({},qa,{propertyName:0,elapsedTime:0,pseudoElement:0}),q4=Ft(L4),B4=p({},js,{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}),z4=Ft(B4),U4=p({},qa,{newState:0,oldState:0}),I4=Ft(U4),H4=[9,13,27,32],nh=yr&&"CompositionEvent"in window,gl=null;yr&&"documentMode"in document&&(gl=document.documentMode);var G4=yr&&"TextEvent"in window&&!gl,g1=yr&&(!nh||gl&&8<gl&&11>=gl),b1=" ",x1=!1;function S1(a,i){switch(a){case"keyup":return H4.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function w1(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var ki=!1;function Y4(a,i){switch(a){case"compositionend":return w1(i);case"keypress":return i.which!==32?null:(x1=!0,b1);case"textInput":return a=i.data,a===b1&&x1?null:a;default:return null}}function K4(a,i){if(ki)return a==="compositionend"||!nh&&S1(a,i)?(a=h1(),ws=Zd=na=null,ki=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return g1&&i.locale!=="ko"?null:i.data;default:return null}}var V4={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 _1(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i==="input"?!!V4[a.type]:i==="textarea"}function O1(a,i,u,c){Pi?Di?Di.push(c):Di=[c]:Pi=c,i=mc(i,"onChange"),0<i.length&&(u=new As("onChange","change",null,u,c),a.push({event:u,listeners:i}))}var bl=null,xl=null;function X4(a){o_(a,0)}function Ts(a){var i=hl(a);if(i1(i))return a}function A1(a,i){if(a==="change")return i}var j1=!1;if(yr){var rh;if(yr){var ah="oninput"in document;if(!ah){var T1=document.createElement("div");T1.setAttribute("oninput","return;"),ah=typeof T1.oninput=="function"}rh=ah}else rh=!1;j1=rh&&(!document.documentMode||9<document.documentMode)}function E1(){bl&&(bl.detachEvent("onpropertychange",N1),xl=bl=null)}function N1(a){if(a.propertyName==="value"&&Ts(xl)){var i=[];O1(i,xl,a,Xd(a)),d1(X4,i)}}function F4(a,i,u){a==="focusin"?(E1(),bl=i,xl=u,bl.attachEvent("onpropertychange",N1)):a==="focusout"&&E1()}function W4(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Ts(xl)}function Z4(a,i){if(a==="click")return Ts(i)}function Q4(a,i){if(a==="input"||a==="change")return Ts(i)}function J4(a,i){return a===i&&(a!==0||1/a===1/i)||a!==a&&i!==i}var un=typeof Object.is=="function"?Object.is:J4;function Sl(a,i){if(un(a,i))return!0;if(typeof a!="object"||a===null||typeof i!="object"||i===null)return!1;var u=Object.keys(a),c=Object.keys(i);if(u.length!==c.length)return!1;for(c=0;c<u.length;c++){var m=u[c];if(!Jn.call(i,m)||!un(a[m],i[m]))return!1}return!0}function C1(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function M1(a,i){var u=C1(a);a=0;for(var c;u;){if(u.nodeType===3){if(c=a+u.textContent.length,a<=i&&c>=i)return{node:u,offset:i-a};a=c}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=C1(u)}}function R1(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?R1(a,i.parentNode):"contains"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function P1(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var i=xs(a.document);i instanceof a.HTMLIFrameElement;){try{var u=typeof i.contentWindow.location.href=="string"}catch{u=!1}if(u)a=i.contentWindow;else break;i=xs(a.document)}return i}function ih(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i&&(i==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||i==="textarea"||a.contentEditable==="true")}var e5=yr&&"documentMode"in document&&11>=document.documentMode,$i=null,oh=null,wl=null,lh=!1;function D1(a,i,u){var c=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;lh||$i==null||$i!==xs(c)||(c=$i,"selectionStart"in c&&ih(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),wl&&Sl(wl,c)||(wl=c,c=mc(oh,"onSelect"),0<c.length&&(i=new As("onSelect","select",null,i,u),a.push({event:i,listeners:c}),i.target=$i)))}function Ba(a,i){var u={};return u[a.toLowerCase()]=i.toLowerCase(),u["Webkit"+a]="webkit"+i,u["Moz"+a]="moz"+i,u}var Li={animationend:Ba("Animation","AnimationEnd"),animationiteration:Ba("Animation","AnimationIteration"),animationstart:Ba("Animation","AnimationStart"),transitionrun:Ba("Transition","TransitionRun"),transitionstart:Ba("Transition","TransitionStart"),transitioncancel:Ba("Transition","TransitionCancel"),transitionend:Ba("Transition","TransitionEnd")},uh={},k1={};yr&&(k1=document.createElement("div").style,"AnimationEvent"in window||(delete Li.animationend.animation,delete Li.animationiteration.animation,delete Li.animationstart.animation),"TransitionEvent"in window||delete Li.transitionend.transition);function za(a){if(uh[a])return uh[a];if(!Li[a])return a;var i=Li[a],u;for(u in i)if(i.hasOwnProperty(u)&&u in k1)return uh[a]=i[u];return a}var $1=za("animationend"),L1=za("animationiteration"),q1=za("animationstart"),t5=za("transitionrun"),n5=za("transitionstart"),r5=za("transitioncancel"),B1=za("transitionend"),z1=new Map,sh="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(" ");sh.push("scrollEnd");function Hn(a,i){z1.set(a,i),La(i,[a])}var Es=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=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(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},On=[],qi=0,ch=0;function Ns(){for(var a=qi,i=ch=qi=0;i<a;){var u=On[i];On[i++]=null;var c=On[i];On[i++]=null;var m=On[i];On[i++]=null;var g=On[i];if(On[i++]=null,c!==null&&m!==null){var A=c.pending;A===null?m.next=m:(m.next=A.next,A.next=m),c.pending=m}g!==0&&U1(u,m,g)}}function Cs(a,i,u,c){On[qi++]=a,On[qi++]=i,On[qi++]=u,On[qi++]=c,ch|=c,a.lanes|=c,a=a.alternate,a!==null&&(a.lanes|=c)}function fh(a,i,u,c){return Cs(a,i,u,c),Ms(a)}function Ua(a,i){return Cs(a,null,null,i),Ms(a)}function U1(a,i,u){a.lanes|=u;var c=a.alternate;c!==null&&(c.lanes|=u);for(var m=!1,g=a.return;g!==null;)g.childLanes|=u,c=g.alternate,c!==null&&(c.childLanes|=u),g.tag===22&&(a=g.stateNode,a===null||a._visibility&1||(m=!0)),a=g,g=g.return;return a.tag===3?(g=a.stateNode,m&&i!==null&&(m=31-ln(u),a=g.hiddenUpdates,c=a[m],c===null?a[m]=[i]:c.push(i),i.lane=u|536870912),g):null}function Ms(a){if(50<Gl)throw Gl=0,xp=null,Error(r(185));for(var i=a.return;i!==null;)a=i,i=a.return;return a.tag===3?a.stateNode:null}var Bi={};function a5(a,i,u,c){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=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function sn(a,i,u,c){return new a5(a,i,u,c)}function dh(a){return a=a.prototype,!(!a||!a.isReactComponent)}function vr(a,i){var u=a.alternate;return u===null?(u=sn(a.tag,i,a.key,a.mode),u.elementType=a.elementType,u.type=a.type,u.stateNode=a.stateNode,u.alternate=a,a.alternate=u):(u.pendingProps=i,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,i=a.dependencies,u.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},u.sibling=a.sibling,u.index=a.index,u.ref=a.ref,u.refCleanup=a.refCleanup,u}function I1(a,i){a.flags&=65011714;var u=a.alternate;return u===null?(a.childLanes=0,a.lanes=i,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,i=u.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),a}function Rs(a,i,u,c,m,g){var A=0;if(c=a,typeof a=="function")dh(a)&&(A=1);else if(typeof a=="string")A=sP(a,u,fe.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case $:return a=sn(31,u,i,m),a.elementType=$,a.lanes=g,a;case w:return Ia(u.children,m,g,i);case x:A=8,m|=24;break;case j:return a=sn(12,u,i,m|2),a.elementType=j,a.lanes=g,a;case O:return a=sn(13,u,i,m),a.elementType=O,a.lanes=g,a;case C:return a=sn(19,u,i,m),a.elementType=C,a.lanes=g,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case E:A=10;break e;case T:A=9;break e;case N:A=11;break e;case M:A=14;break e;case D:A=16,c=null;break e}A=29,u=Error(r(130,a===null?"null":typeof a,"")),c=null}return i=sn(A,u,i,m),i.elementType=a,i.type=c,i.lanes=g,i}function Ia(a,i,u,c){return a=sn(7,a,c,i),a.lanes=u,a}function hh(a,i,u){return a=sn(6,a,null,i),a.lanes=u,a}function H1(a){var i=sn(18,null,null,0);return i.stateNode=a,i}function ph(a,i,u){return i=sn(4,a.children!==null?a.children:[],a.key,i),i.lanes=u,i.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},i}var G1=new WeakMap;function An(a,i){if(typeof a=="object"&&a!==null){var u=G1.get(a);return u!==void 0?u:(i={value:a,source:i,stack:Un(i)},G1.set(a,i),i)}return{value:a,source:i,stack:Un(i)}}var zi=[],Ui=0,Ps=null,_l=0,jn=[],Tn=0,ra=null,er=1,tr="";function gr(a,i){zi[Ui++]=_l,zi[Ui++]=Ps,Ps=a,_l=i}function Y1(a,i,u){jn[Tn++]=er,jn[Tn++]=tr,jn[Tn++]=ra,ra=a;var c=er;a=tr;var m=32-ln(c)-1;c&=~(1<<m),u+=1;var g=32-ln(i)+m;if(30<g){var A=m-m%5;g=(c&(1<<A)-1).toString(32),c>>=A,m-=A,er=1<<32-ln(i)+m|u<<m|c,tr=g+a}else er=1<<g|u<<m|c,tr=a}function mh(a){a.return!==null&&(gr(a,1),Y1(a,1,0))}function yh(a){for(;a===Ps;)Ps=zi[--Ui],zi[Ui]=null,_l=zi[--Ui],zi[Ui]=null;for(;a===ra;)ra=jn[--Tn],jn[Tn]=null,tr=jn[--Tn],jn[Tn]=null,er=jn[--Tn],jn[Tn]=null}function K1(a,i){jn[Tn++]=er,jn[Tn++]=tr,jn[Tn++]=ra,er=i.id,tr=i.overflow,ra=a}var kt=null,at=null,$e=!1,aa=null,En=!1,vh=Error(r(519));function ia(a){var i=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ol(An(i,a)),vh}function V1(a){var i=a.stateNode,u=a.type,c=a.memoizedProps;switch(i[Dt]=a,i[Xt]=c,u){case"dialog":Pe("cancel",i),Pe("close",i);break;case"iframe":case"object":case"embed":Pe("load",i);break;case"video":case"audio":for(u=0;u<Kl.length;u++)Pe(Kl[u],i);break;case"source":Pe("error",i);break;case"img":case"image":case"link":Pe("error",i),Pe("load",i);break;case"details":Pe("toggle",i);break;case"input":Pe("invalid",i),o1(i,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Pe("invalid",i);break;case"textarea":Pe("invalid",i),u1(i,c.value,c.defaultValue,c.children)}u=c.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||i.textContent===""+u||c.suppressHydrationWarning===!0||c_(i.textContent,u)?(c.popover!=null&&(Pe("beforetoggle",i),Pe("toggle",i)),c.onScroll!=null&&Pe("scroll",i),c.onScrollEnd!=null&&Pe("scrollend",i),c.onClick!=null&&(i.onclick=mr),i=!0):i=!1,i||ia(a,!0)}function X1(a){for(kt=a.return;kt;)switch(kt.tag){case 5:case 31:case 13:En=!1;return;case 27:case 3:En=!0;return;default:kt=kt.return}}function Ii(a){if(a!==kt)return!1;if(!$e)return X1(a),$e=!0,!1;var i=a.tag,u;if((u=i!==3&&i!==27)&&((u=i===5)&&(u=a.type,u=!(u!=="form"&&u!=="button")||kp(a.type,a.memoizedProps)),u=!u),u&&at&&ia(a),X1(a),i===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));at=b_(a)}else if(i===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));at=b_(a)}else i===27?(i=at,ba(a.type)?(a=zp,zp=null,at=a):at=i):at=kt?Cn(a.stateNode.nextSibling):null;return!0}function Ha(){at=kt=null,$e=!1}function gh(){var a=aa;return a!==null&&(Jt===null?Jt=a:Jt.push.apply(Jt,a),aa=null),a}function Ol(a){aa===null?aa=[a]:aa.push(a)}var bh=q(null),Ga=null,br=null;function oa(a,i,u){re(bh,i._currentValue),i._currentValue=u}function xr(a){a._currentValue=bh.current,K(bh)}function xh(a,i,u){for(;a!==null;){var c=a.alternate;if((a.childLanes&i)!==i?(a.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),a===u)break;a=a.return}}function Sh(a,i,u,c){var m=a.child;for(m!==null&&(m.return=a);m!==null;){var g=m.dependencies;if(g!==null){var A=m.child;g=g.firstContext;e:for(;g!==null;){var R=g;g=m;for(var U=0;U<i.length;U++)if(R.context===i[U]){g.lanes|=u,R=g.alternate,R!==null&&(R.lanes|=u),xh(g.return,u,a),c||(A=null);break e}g=R.next}}else if(m.tag===18){if(A=m.return,A===null)throw Error(r(341));A.lanes|=u,g=A.alternate,g!==null&&(g.lanes|=u),xh(A,u,a),A=null}else A=m.child;if(A!==null)A.return=m;else for(A=m;A!==null;){if(A===a){A=null;break}if(m=A.sibling,m!==null){m.return=A.return,A=m;break}A=A.return}m=A}}function Hi(a,i,u,c){a=null;for(var m=i,g=!1;m!==null;){if(!g){if((m.flags&524288)!==0)g=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var A=m.alternate;if(A===null)throw Error(r(387));if(A=A.memoizedProps,A!==null){var R=m.type;un(m.pendingProps.value,A.value)||(a!==null?a.push(R):a=[R])}}else if(m===Se.current){if(A=m.alternate,A===null)throw Error(r(387));A.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(a!==null?a.push(Zl):a=[Zl])}m=m.return}a!==null&&Sh(i,a,u,c),i.flags|=262144}function Ds(a){for(a=a.firstContext;a!==null;){if(!un(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Ya(a){Ga=a,br=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function $t(a){return F1(Ga,a)}function ks(a,i){return Ga===null&&Ya(a),F1(a,i)}function F1(a,i){var u=i._currentValue;if(i={context:i,memoizedValue:u,next:null},br===null){if(a===null)throw Error(r(308));br=i,a.dependencies={lanes:0,firstContext:i},a.flags|=524288}else br=br.next=i;return u}var i5=typeof AbortController<"u"?AbortController:function(){var a=[],i=this.signal={aborted:!1,addEventListener:function(u,c){a.push(c)}};this.abort=function(){i.aborted=!0,a.forEach(function(u){return u()})}},o5=e.unstable_scheduleCallback,l5=e.unstable_NormalPriority,vt={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wh(){return{controller:new i5,data:new Map,refCount:0}}function Al(a){a.refCount--,a.refCount===0&&o5(l5,function(){a.controller.abort()})}var jl=null,_h=0,Gi=0,Yi=null;function u5(a,i){if(jl===null){var u=jl=[];_h=0,Gi=jp(),Yi={status:"pending",value:void 0,then:function(c){u.push(c)}}}return _h++,i.then(W1,W1),i}function W1(){if(--_h===0&&jl!==null){Yi!==null&&(Yi.status="fulfilled");var a=jl;jl=null,Gi=0,Yi=null;for(var i=0;i<a.length;i++)(0,a[i])()}}function s5(a,i){var u=[],c={status:"pending",value:null,reason:null,then:function(m){u.push(m)}};return a.then(function(){c.status="fulfilled",c.value=i;for(var m=0;m<u.length;m++)(0,u[m])(i)},function(m){for(c.status="rejected",c.reason=m,m=0;m<u.length;m++)(0,u[m])(void 0)}),c}var Z1=k.S;k.S=function(a,i){Dw=Ut(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&u5(a,i),Z1!==null&&Z1(a,i)};var Ka=q(null);function Oh(){var a=Ka.current;return a!==null?a:Qe.pooledCache}function $s(a,i){i===null?re(Ka,Ka.current):re(Ka,i.pool)}function Q1(){var a=Oh();return a===null?null:{parent:vt._currentValue,pool:a}}var Ki=Error(r(460)),Ah=Error(r(474)),Ls=Error(r(542)),qs={then:function(){}};function J1(a){return a=a.status,a==="fulfilled"||a==="rejected"}function eS(a,i,u){switch(u=a[u],u===void 0?a.push(i):u!==i&&(i.then(mr,mr),i=u),i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,nS(a),a;default:if(typeof i.status=="string")i.then(mr,mr);else{if(a=Qe,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=i,a.status="pending",a.then(function(c){if(i.status==="pending"){var m=i;m.status="fulfilled",m.value=c}},function(c){if(i.status==="pending"){var m=i;m.status="rejected",m.reason=c}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,nS(a),a}throw Xa=i,Ki}}function Va(a){try{var i=a._init;return i(a._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Xa=u,Ki):u}}var Xa=null;function tS(){if(Xa===null)throw Error(r(459));var a=Xa;return Xa=null,a}function nS(a){if(a===Ki||a===Ls)throw Error(r(483))}var Vi=null,Tl=0;function Bs(a){var i=Tl;return Tl+=1,Vi===null&&(Vi=[]),eS(Vi,a,i)}function El(a,i){i=i.props.ref,a.ref=i!==void 0?i:null}function zs(a,i){throw i.$$typeof===b?Error(r(525)):(a=Object.prototype.toString.call(i),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":a)))}function rS(a){function i(V,G){if(a){var Z=V.deletions;Z===null?(V.deletions=[G],V.flags|=16):Z.push(G)}}function u(V,G){if(!a)return null;for(;G!==null;)i(V,G),G=G.sibling;return null}function c(V){for(var G=new Map;V!==null;)V.key!==null?G.set(V.key,V):G.set(V.index,V),V=V.sibling;return G}function m(V,G){return V=vr(V,G),V.index=0,V.sibling=null,V}function g(V,G,Z){return V.index=Z,a?(Z=V.alternate,Z!==null?(Z=Z.index,Z<G?(V.flags|=67108866,G):Z):(V.flags|=67108866,G)):(V.flags|=1048576,G)}function A(V){return a&&V.alternate===null&&(V.flags|=67108866),V}function R(V,G,Z,ae){return G===null||G.tag!==6?(G=hh(Z,V.mode,ae),G.return=V,G):(G=m(G,Z),G.return=V,G)}function U(V,G,Z,ae){var ve=Z.type;return ve===w?te(V,G,Z.props.children,ae,Z.key):G!==null&&(G.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===D&&Va(ve)===G.type)?(G=m(G,Z.props),El(G,Z),G.return=V,G):(G=Rs(Z.type,Z.key,Z.props,null,V.mode,ae),El(G,Z),G.return=V,G)}function Q(V,G,Z,ae){return G===null||G.tag!==4||G.stateNode.containerInfo!==Z.containerInfo||G.stateNode.implementation!==Z.implementation?(G=ph(Z,V.mode,ae),G.return=V,G):(G=m(G,Z.children||[]),G.return=V,G)}function te(V,G,Z,ae,ve){return G===null||G.tag!==7?(G=Ia(Z,V.mode,ae,ve),G.return=V,G):(G=m(G,Z),G.return=V,G)}function ie(V,G,Z){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return G=hh(""+G,V.mode,Z),G.return=V,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case S:return Z=Rs(G.type,G.key,G.props,null,V.mode,Z),El(Z,G),Z.return=V,Z;case _:return G=ph(G,V.mode,Z),G.return=V,G;case D:return G=Va(G),ie(V,G,Z)}if(W(G)||B(G))return G=Ia(G,V.mode,Z,null),G.return=V,G;if(typeof G.then=="function")return ie(V,Bs(G),Z);if(G.$$typeof===E)return ie(V,ks(V,G),Z);zs(V,G)}return null}function J(V,G,Z,ae){var ve=G!==null?G.key:null;if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return ve!==null?null:R(V,G,""+Z,ae);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case S:return Z.key===ve?U(V,G,Z,ae):null;case _:return Z.key===ve?Q(V,G,Z,ae):null;case D:return Z=Va(Z),J(V,G,Z,ae)}if(W(Z)||B(Z))return ve!==null?null:te(V,G,Z,ae,null);if(typeof Z.then=="function")return J(V,G,Bs(Z),ae);if(Z.$$typeof===E)return J(V,G,ks(V,Z),ae);zs(V,Z)}return null}function ee(V,G,Z,ae,ve){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return V=V.get(Z)||null,R(G,V,""+ae,ve);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case S:return V=V.get(ae.key===null?Z:ae.key)||null,U(G,V,ae,ve);case _:return V=V.get(ae.key===null?Z:ae.key)||null,Q(G,V,ae,ve);case D:return ae=Va(ae),ee(V,G,Z,ae,ve)}if(W(ae)||B(ae))return V=V.get(Z)||null,te(G,V,ae,ve,null);if(typeof ae.then=="function")return ee(V,G,Z,Bs(ae),ve);if(ae.$$typeof===E)return ee(V,G,Z,ks(G,ae),ve);zs(G,ae)}return null}function me(V,G,Z,ae){for(var ve=null,Be=null,ye=G,Ce=G=0,ke=null;ye!==null&&Ce<Z.length;Ce++){ye.index>Ce?(ke=ye,ye=null):ke=ye.sibling;var ze=J(V,ye,Z[Ce],ae);if(ze===null){ye===null&&(ye=ke);break}a&&ye&&ze.alternate===null&&i(V,ye),G=g(ze,G,Ce),Be===null?ve=ze:Be.sibling=ze,Be=ze,ye=ke}if(Ce===Z.length)return u(V,ye),$e&&gr(V,Ce),ve;if(ye===null){for(;Ce<Z.length;Ce++)ye=ie(V,Z[Ce],ae),ye!==null&&(G=g(ye,G,Ce),Be===null?ve=ye:Be.sibling=ye,Be=ye);return $e&&gr(V,Ce),ve}for(ye=c(ye);Ce<Z.length;Ce++)ke=ee(ye,V,Ce,Z[Ce],ae),ke!==null&&(a&&ke.alternate!==null&&ye.delete(ke.key===null?Ce:ke.key),G=g(ke,G,Ce),Be===null?ve=ke:Be.sibling=ke,Be=ke);return a&&ye.forEach(function(Oa){return i(V,Oa)}),$e&&gr(V,Ce),ve}function be(V,G,Z,ae){if(Z==null)throw Error(r(151));for(var ve=null,Be=null,ye=G,Ce=G=0,ke=null,ze=Z.next();ye!==null&&!ze.done;Ce++,ze=Z.next()){ye.index>Ce?(ke=ye,ye=null):ke=ye.sibling;var Oa=J(V,ye,ze.value,ae);if(Oa===null){ye===null&&(ye=ke);break}a&&ye&&Oa.alternate===null&&i(V,ye),G=g(Oa,G,Ce),Be===null?ve=Oa:Be.sibling=Oa,Be=Oa,ye=ke}if(ze.done)return u(V,ye),$e&&gr(V,Ce),ve;if(ye===null){for(;!ze.done;Ce++,ze=Z.next())ze=ie(V,ze.value,ae),ze!==null&&(G=g(ze,G,Ce),Be===null?ve=ze:Be.sibling=ze,Be=ze);return $e&&gr(V,Ce),ve}for(ye=c(ye);!ze.done;Ce++,ze=Z.next())ze=ee(ye,V,Ce,ze.value,ae),ze!==null&&(a&&ze.alternate!==null&&ye.delete(ze.key===null?Ce:ze.key),G=g(ze,G,Ce),Be===null?ve=ze:Be.sibling=ze,Be=ze);return a&&ye.forEach(function(xP){return i(V,xP)}),$e&&gr(V,Ce),ve}function Fe(V,G,Z,ae){if(typeof Z=="object"&&Z!==null&&Z.type===w&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case S:e:{for(var ve=Z.key;G!==null;){if(G.key===ve){if(ve=Z.type,ve===w){if(G.tag===7){u(V,G.sibling),ae=m(G,Z.props.children),ae.return=V,V=ae;break e}}else if(G.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===D&&Va(ve)===G.type){u(V,G.sibling),ae=m(G,Z.props),El(ae,Z),ae.return=V,V=ae;break e}u(V,G);break}else i(V,G);G=G.sibling}Z.type===w?(ae=Ia(Z.props.children,V.mode,ae,Z.key),ae.return=V,V=ae):(ae=Rs(Z.type,Z.key,Z.props,null,V.mode,ae),El(ae,Z),ae.return=V,V=ae)}return A(V);case _:e:{for(ve=Z.key;G!==null;){if(G.key===ve)if(G.tag===4&&G.stateNode.containerInfo===Z.containerInfo&&G.stateNode.implementation===Z.implementation){u(V,G.sibling),ae=m(G,Z.children||[]),ae.return=V,V=ae;break e}else{u(V,G);break}else i(V,G);G=G.sibling}ae=ph(Z,V.mode,ae),ae.return=V,V=ae}return A(V);case D:return Z=Va(Z),Fe(V,G,Z,ae)}if(W(Z))return me(V,G,Z,ae);if(B(Z)){if(ve=B(Z),typeof ve!="function")throw Error(r(150));return Z=ve.call(Z),be(V,G,Z,ae)}if(typeof Z.then=="function")return Fe(V,G,Bs(Z),ae);if(Z.$$typeof===E)return Fe(V,G,ks(V,Z),ae);zs(V,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint"?(Z=""+Z,G!==null&&G.tag===6?(u(V,G.sibling),ae=m(G,Z),ae.return=V,V=ae):(u(V,G),ae=hh(Z,V.mode,ae),ae.return=V,V=ae),A(V)):u(V,G)}return function(V,G,Z,ae){try{Tl=0;var ve=Fe(V,G,Z,ae);return Vi=null,ve}catch(ye){if(ye===Ki||ye===Ls)throw ye;var Be=sn(29,ye,null,V.mode);return Be.lanes=ae,Be.return=V,Be}}}var Fa=rS(!0),aS=rS(!1),la=!1;function jh(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Th(a,i){a=a.updateQueue,i.updateQueue===a&&(i.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function ua(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function sa(a,i,u){var c=a.updateQueue;if(c===null)return null;if(c=c.shared,(Ie&2)!==0){var m=c.pending;return m===null?i.next=i:(i.next=m.next,m.next=i),c.pending=i,i=Ms(a),U1(a,null,u),i}return Cs(a,c,i,u),Ms(a)}function Nl(a,i,u){if(i=i.updateQueue,i!==null&&(i=i.shared,(u&4194048)!==0)){var c=i.lanes;c&=a.pendingLanes,u|=c,i.lanes=u,Fx(a,u)}}function Eh(a,i){var u=a.updateQueue,c=a.alternate;if(c!==null&&(c=c.updateQueue,u===c)){var m=null,g=null;if(u=u.firstBaseUpdate,u!==null){do{var A={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};g===null?m=g=A:g=g.next=A,u=u.next}while(u!==null);g===null?m=g=i:g=g.next=i}else m=g=i;u={baseState:c.baseState,firstBaseUpdate:m,lastBaseUpdate:g,shared:c.shared,callbacks:c.callbacks},a.updateQueue=u;return}a=u.lastBaseUpdate,a===null?u.firstBaseUpdate=i:a.next=i,u.lastBaseUpdate=i}var Nh=!1;function Cl(){if(Nh){var a=Yi;if(a!==null)throw a}}function Ml(a,i,u,c){Nh=!1;var m=a.updateQueue;la=!1;var g=m.firstBaseUpdate,A=m.lastBaseUpdate,R=m.shared.pending;if(R!==null){m.shared.pending=null;var U=R,Q=U.next;U.next=null,A===null?g=Q:A.next=Q,A=U;var te=a.alternate;te!==null&&(te=te.updateQueue,R=te.lastBaseUpdate,R!==A&&(R===null?te.firstBaseUpdate=Q:R.next=Q,te.lastBaseUpdate=U))}if(g!==null){var ie=m.baseState;A=0,te=Q=U=null,R=g;do{var J=R.lane&-536870913,ee=J!==R.lane;if(ee?(De&J)===J:(c&J)===J){J!==0&&J===Gi&&(Nh=!0),te!==null&&(te=te.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var me=a,be=R;J=i;var Fe=u;switch(be.tag){case 1:if(me=be.payload,typeof me=="function"){ie=me.call(Fe,ie,J);break e}ie=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=be.payload,J=typeof me=="function"?me.call(Fe,ie,J):me,J==null)break e;ie=p({},ie,J);break e;case 2:la=!0}}J=R.callback,J!==null&&(a.flags|=64,ee&&(a.flags|=8192),ee=m.callbacks,ee===null?m.callbacks=[J]:ee.push(J))}else ee={lane:J,tag:R.tag,payload:R.payload,callback:R.callback,next:null},te===null?(Q=te=ee,U=ie):te=te.next=ee,A|=J;if(R=R.next,R===null){if(R=m.shared.pending,R===null)break;ee=R,R=ee.next,ee.next=null,m.lastBaseUpdate=ee,m.shared.pending=null}}while(!0);te===null&&(U=ie),m.baseState=U,m.firstBaseUpdate=Q,m.lastBaseUpdate=te,g===null&&(m.shared.lanes=0),pa|=A,a.lanes=A,a.memoizedState=ie}}function iS(a,i){if(typeof a!="function")throw Error(r(191,a));a.call(i)}function oS(a,i){var u=a.callbacks;if(u!==null)for(a.callbacks=null,a=0;a<u.length;a++)iS(u[a],i)}var Xi=q(null),Us=q(0);function lS(a,i){a=Nr,re(Us,a),re(Xi,i),Nr=a|i.baseLanes}function Ch(){re(Us,Nr),re(Xi,Xi.current)}function Mh(){Nr=Us.current,K(Xi),K(Us)}var cn=q(null),Nn=null;function ca(a){var i=a.alternate;re(mt,mt.current&1),re(cn,a),Nn===null&&(i===null||Xi.current!==null||i.memoizedState!==null)&&(Nn=a)}function Rh(a){re(mt,mt.current),re(cn,a),Nn===null&&(Nn=a)}function uS(a){a.tag===22?(re(mt,mt.current),re(cn,a),Nn===null&&(Nn=a)):fa()}function fa(){re(mt,mt.current),re(cn,cn.current)}function fn(a){K(cn),Nn===a&&(Nn=null),K(mt)}var mt=q(0);function Is(a){for(var i=a;i!==null;){if(i.tag===13){var u=i.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||qp(u)||Bp(u)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Sr=0,Ee=null,Ve=null,gt=null,Hs=!1,Fi=!1,Wa=!1,Gs=0,Rl=0,Wi=null,c5=0;function dt(){throw Error(r(321))}function Ph(a,i){if(i===null)return!1;for(var u=0;u<i.length&&u<a.length;u++)if(!un(a[u],i[u]))return!1;return!0}function Dh(a,i,u,c,m,g){return Sr=g,Ee=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,k.H=a===null||a.memoizedState===null?YS:Fh,Wa=!1,g=u(c,m),Wa=!1,Fi&&(g=cS(i,u,c,m)),sS(a),g}function sS(a){k.H=kl;var i=Ve!==null&&Ve.next!==null;if(Sr=0,gt=Ve=Ee=null,Hs=!1,Rl=0,Wi=null,i)throw Error(r(300));a===null||bt||(a=a.dependencies,a!==null&&Ds(a)&&(bt=!0))}function cS(a,i,u,c){Ee=a;var m=0;do{if(Fi&&(Wi=null),Rl=0,Fi=!1,25<=m)throw Error(r(301));if(m+=1,gt=Ve=null,a.updateQueue!=null){var g=a.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}k.H=KS,g=i(u,c)}while(Fi);return g}function f5(){var a=k.H,i=a.useState()[0];return i=typeof i.then=="function"?Pl(i):i,a=a.useState()[0],(Ve!==null?Ve.memoizedState:null)!==a&&(Ee.flags|=1024),i}function kh(){var a=Gs!==0;return Gs=0,a}function $h(a,i,u){i.updateQueue=a.updateQueue,i.flags&=-2053,a.lanes&=~u}function Lh(a){if(Hs){for(a=a.memoizedState;a!==null;){var i=a.queue;i!==null&&(i.pending=null),a=a.next}Hs=!1}Sr=0,gt=Ve=Ee=null,Fi=!1,Rl=Gs=0,Wi=null}function Gt(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?Ee.memoizedState=gt=a:gt=gt.next=a,gt}function yt(){if(Ve===null){var a=Ee.alternate;a=a!==null?a.memoizedState:null}else a=Ve.next;var i=gt===null?Ee.memoizedState:gt.next;if(i!==null)gt=i,Ve=a;else{if(a===null)throw Ee.alternate===null?Error(r(467)):Error(r(310));Ve=a,a={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},gt===null?Ee.memoizedState=gt=a:gt=gt.next=a}return gt}function Ys(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Pl(a){var i=Rl;return Rl+=1,Wi===null&&(Wi=[]),a=eS(Wi,a,i),i=Ee,(gt===null?i.memoizedState:gt.next)===null&&(i=i.alternate,k.H=i===null||i.memoizedState===null?YS:Fh),a}function Ks(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Pl(a);if(a.$$typeof===E)return $t(a)}throw Error(r(438,String(a)))}function qh(a){var i=null,u=Ee.updateQueue;if(u!==null&&(i=u.memoCache),i==null){var c=Ee.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(i={data:c.data.map(function(m){return m.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),u===null&&(u=Ys(),Ee.updateQueue=u),u.memoCache=i,u=i.data[i.index],u===void 0)for(u=i.data[i.index]=Array(a),c=0;c<a;c++)u[c]=z;return i.index++,u}function wr(a,i){return typeof i=="function"?i(a):i}function Vs(a){var i=yt();return Bh(i,Ve,a)}function Bh(a,i,u){var c=a.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=u;var m=a.baseQueue,g=c.pending;if(g!==null){if(m!==null){var A=m.next;m.next=g.next,g.next=A}i.baseQueue=m=g,c.pending=null}if(g=a.baseState,m===null)a.memoizedState=g;else{i=m.next;var R=A=null,U=null,Q=i,te=!1;do{var ie=Q.lane&-536870913;if(ie!==Q.lane?(De&ie)===ie:(Sr&ie)===ie){var J=Q.revertLane;if(J===0)U!==null&&(U=U.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),ie===Gi&&(te=!0);else if((Sr&J)===J){Q=Q.next,J===Gi&&(te=!0);continue}else ie={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},U===null?(R=U=ie,A=g):U=U.next=ie,Ee.lanes|=J,pa|=J;ie=Q.action,Wa&&u(g,ie),g=Q.hasEagerState?Q.eagerState:u(g,ie)}else J={lane:ie,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},U===null?(R=U=J,A=g):U=U.next=J,Ee.lanes|=ie,pa|=ie;Q=Q.next}while(Q!==null&&Q!==i);if(U===null?A=g:U.next=R,!un(g,a.memoizedState)&&(bt=!0,te&&(u=Yi,u!==null)))throw u;a.memoizedState=g,a.baseState=A,a.baseQueue=U,c.lastRenderedState=g}return m===null&&(c.lanes=0),[a.memoizedState,c.dispatch]}function zh(a){var i=yt(),u=i.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=a;var c=u.dispatch,m=u.pending,g=i.memoizedState;if(m!==null){u.pending=null;var A=m=m.next;do g=a(g,A.action),A=A.next;while(A!==m);un(g,i.memoizedState)||(bt=!0),i.memoizedState=g,i.baseQueue===null&&(i.baseState=g),u.lastRenderedState=g}return[g,c]}function fS(a,i,u){var c=Ee,m=yt(),g=$e;if(g){if(u===void 0)throw Error(r(407));u=u()}else u=i();var A=!un((Ve||m).memoizedState,u);if(A&&(m.memoizedState=u,bt=!0),m=m.queue,Hh(pS.bind(null,c,m,a),[a]),m.getSnapshot!==i||A||gt!==null&>.memoizedState.tag&1){if(c.flags|=2048,Zi(9,{destroy:void 0},hS.bind(null,c,m,u,i),null),Qe===null)throw Error(r(349));g||(Sr&127)!==0||dS(c,i,u)}return u}function dS(a,i,u){a.flags|=16384,a={getSnapshot:i,value:u},i=Ee.updateQueue,i===null?(i=Ys(),Ee.updateQueue=i,i.stores=[a]):(u=i.stores,u===null?i.stores=[a]:u.push(a))}function hS(a,i,u,c){i.value=u,i.getSnapshot=c,mS(i)&&yS(a)}function pS(a,i,u){return u(function(){mS(i)&&yS(a)})}function mS(a){var i=a.getSnapshot;a=a.value;try{var u=i();return!un(a,u)}catch{return!0}}function yS(a){var i=Ua(a,2);i!==null&&en(i,a,2)}function Uh(a){var i=Gt();if(typeof a=="function"){var u=a;if(a=u(),Wa){ea(!0);try{u()}finally{ea(!1)}}}return i.memoizedState=i.baseState=a,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wr,lastRenderedState:a},i}function vS(a,i,u,c){return a.baseState=u,Bh(a,Ve,typeof c=="function"?c:wr)}function d5(a,i,u,c,m){if(Ws(a))throw Error(r(485));if(a=i.action,a!==null){var g={payload:m,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(A){g.listeners.push(A)}};k.T!==null?u(!0):g.isTransition=!1,c(g),u=i.pending,u===null?(g.next=i.pending=g,gS(i,g)):(g.next=u.next,i.pending=u.next=g)}}function gS(a,i){var u=i.action,c=i.payload,m=a.state;if(i.isTransition){var g=k.T,A={};k.T=A;try{var R=u(m,c),U=k.S;U!==null&&U(A,R),bS(a,i,R)}catch(Q){Ih(a,i,Q)}finally{g!==null&&A.types!==null&&(g.types=A.types),k.T=g}}else try{g=u(m,c),bS(a,i,g)}catch(Q){Ih(a,i,Q)}}function bS(a,i,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(c){xS(a,i,c)},function(c){return Ih(a,i,c)}):xS(a,i,u)}function xS(a,i,u){i.status="fulfilled",i.value=u,SS(i),a.state=u,i=a.pending,i!==null&&(u=i.next,u===i?a.pending=null:(u=u.next,i.next=u,gS(a,u)))}function Ih(a,i,u){var c=a.pending;if(a.pending=null,c!==null){c=c.next;do i.status="rejected",i.reason=u,SS(i),i=i.next;while(i!==c)}a.action=null}function SS(a){a=a.listeners;for(var i=0;i<a.length;i++)(0,a[i])()}function wS(a,i){return i}function _S(a,i){if($e){var u=Qe.formState;if(u!==null){e:{var c=Ee;if($e){if(at){t:{for(var m=at,g=En;m.nodeType!==8;){if(!g){m=null;break t}if(m=Cn(m.nextSibling),m===null){m=null;break t}}g=m.data,m=g==="F!"||g==="F"?m:null}if(m){at=Cn(m.nextSibling),c=m.data==="F!";break e}}ia(c)}c=!1}c&&(i=u[0])}}return u=Gt(),u.memoizedState=u.baseState=i,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wS,lastRenderedState:i},u.queue=c,u=IS.bind(null,Ee,c),c.dispatch=u,c=Uh(!1),g=Xh.bind(null,Ee,!1,c.queue),c=Gt(),m={state:i,dispatch:null,action:a,pending:null},c.queue=m,u=d5.bind(null,Ee,m,g,u),m.dispatch=u,c.memoizedState=a,[i,u,!1]}function OS(a){var i=yt();return AS(i,Ve,a)}function AS(a,i,u){if(i=Bh(a,i,wS)[0],a=Vs(wr)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var c=Pl(i)}catch(A){throw A===Ki?Ls:A}else c=i;i=yt();var m=i.queue,g=m.dispatch;return u!==i.memoizedState&&(Ee.flags|=2048,Zi(9,{destroy:void 0},h5.bind(null,m,u),null)),[c,g,a]}function h5(a,i){a.action=i}function jS(a){var i=yt(),u=Ve;if(u!==null)return AS(i,u,a);yt(),i=i.memoizedState,u=yt();var c=u.queue.dispatch;return u.memoizedState=a,[i,c,!1]}function Zi(a,i,u,c){return a={tag:a,create:u,deps:c,inst:i,next:null},i=Ee.updateQueue,i===null&&(i=Ys(),Ee.updateQueue=i),u=i.lastEffect,u===null?i.lastEffect=a.next=a:(c=u.next,u.next=a,a.next=c,i.lastEffect=a),a}function TS(){return yt().memoizedState}function Xs(a,i,u,c){var m=Gt();Ee.flags|=a,m.memoizedState=Zi(1|i,{destroy:void 0},u,c===void 0?null:c)}function Fs(a,i,u,c){var m=yt();c=c===void 0?null:c;var g=m.memoizedState.inst;Ve!==null&&c!==null&&Ph(c,Ve.memoizedState.deps)?m.memoizedState=Zi(i,g,u,c):(Ee.flags|=a,m.memoizedState=Zi(1|i,g,u,c))}function ES(a,i){Xs(8390656,8,a,i)}function Hh(a,i){Fs(2048,8,a,i)}function p5(a){Ee.flags|=4;var i=Ee.updateQueue;if(i===null)i=Ys(),Ee.updateQueue=i,i.events=[a];else{var u=i.events;u===null?i.events=[a]:u.push(a)}}function NS(a){var i=yt().memoizedState;return p5({ref:i,nextImpl:a}),function(){if((Ie&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}function CS(a,i){return Fs(4,2,a,i)}function MS(a,i){return Fs(4,4,a,i)}function RS(a,i){if(typeof i=="function"){a=a();var u=i(a);return function(){typeof u=="function"?u():i(null)}}if(i!=null)return a=a(),i.current=a,function(){i.current=null}}function PS(a,i,u){u=u!=null?u.concat([a]):null,Fs(4,4,RS.bind(null,i,a),u)}function Gh(){}function DS(a,i){var u=yt();i=i===void 0?null:i;var c=u.memoizedState;return i!==null&&Ph(i,c[1])?c[0]:(u.memoizedState=[a,i],a)}function kS(a,i){var u=yt();i=i===void 0?null:i;var c=u.memoizedState;if(i!==null&&Ph(i,c[1]))return c[0];if(c=a(),Wa){ea(!0);try{a()}finally{ea(!1)}}return u.memoizedState=[c,i],c}function Yh(a,i,u){return u===void 0||(Sr&1073741824)!==0&&(De&261930)===0?a.memoizedState=i:(a.memoizedState=u,a=$w(),Ee.lanes|=a,pa|=a,u)}function $S(a,i,u,c){return un(u,i)?u:Xi.current!==null?(a=Yh(a,u,c),un(a,i)||(bt=!0),a):(Sr&42)===0||(Sr&1073741824)!==0&&(De&261930)===0?(bt=!0,a.memoizedState=u):(a=$w(),Ee.lanes|=a,pa|=a,i)}function LS(a,i,u,c,m){var g=X.p;X.p=g!==0&&8>g?g:8;var A=k.T,R={};k.T=R,Xh(a,!1,i,u);try{var U=m(),Q=k.S;if(Q!==null&&Q(R,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var te=s5(U,c);Dl(a,i,te,pn(a))}else Dl(a,i,c,pn(a))}catch(ie){Dl(a,i,{then:function(){},status:"rejected",reason:ie},pn())}finally{X.p=g,A!==null&&R.types!==null&&(A.types=R.types),k.T=A}}function m5(){}function Kh(a,i,u,c){if(a.tag!==5)throw Error(r(476));var m=qS(a).queue;LS(a,m,i,F,u===null?m5:function(){return BS(a),u(c)})}function qS(a){var i=a.memoizedState;if(i!==null)return i;i={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wr,lastRenderedState:F},next:null};var u={};return i.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wr,lastRenderedState:u},next:null},a.memoizedState=i,a=a.alternate,a!==null&&(a.memoizedState=i),i}function BS(a){var i=qS(a);i.next===null&&(i=a.alternate.memoizedState),Dl(a,i.next.queue,{},pn())}function Vh(){return $t(Zl)}function zS(){return yt().memoizedState}function US(){return yt().memoizedState}function y5(a){for(var i=a.return;i!==null;){switch(i.tag){case 24:case 3:var u=pn();a=ua(u);var c=sa(i,a,u);c!==null&&(en(c,i,u),Nl(c,i,u)),i={cache:wh()},a.payload=i;return}i=i.return}}function v5(a,i,u){var c=pn();u={lane:c,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Ws(a)?HS(i,u):(u=fh(a,i,u,c),u!==null&&(en(u,a,c),GS(u,i,c)))}function IS(a,i,u){var c=pn();Dl(a,i,u,c)}function Dl(a,i,u,c){var m={lane:c,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Ws(a))HS(i,m);else{var g=a.alternate;if(a.lanes===0&&(g===null||g.lanes===0)&&(g=i.lastRenderedReducer,g!==null))try{var A=i.lastRenderedState,R=g(A,u);if(m.hasEagerState=!0,m.eagerState=R,un(R,A))return Cs(a,i,m,0),Qe===null&&Ns(),!1}catch{}if(u=fh(a,i,m,c),u!==null)return en(u,a,c),GS(u,i,c),!0}return!1}function Xh(a,i,u,c){if(c={lane:2,revertLane:jp(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Ws(a)){if(i)throw Error(r(479))}else i=fh(a,u,c,2),i!==null&&en(i,a,2)}function Ws(a){var i=a.alternate;return a===Ee||i!==null&&i===Ee}function HS(a,i){Fi=Hs=!0;var u=a.pending;u===null?i.next=i:(i.next=u.next,u.next=i),a.pending=i}function GS(a,i,u){if((u&4194048)!==0){var c=i.lanes;c&=a.pendingLanes,u|=c,i.lanes=u,Fx(a,u)}}var kl={readContext:$t,use:Ks,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useLayoutEffect:dt,useInsertionEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useSyncExternalStore:dt,useId:dt,useHostTransitionStatus:dt,useFormState:dt,useActionState:dt,useOptimistic:dt,useMemoCache:dt,useCacheRefresh:dt};kl.useEffectEvent=dt;var YS={readContext:$t,use:Ks,useCallback:function(a,i){return Gt().memoizedState=[a,i===void 0?null:i],a},useContext:$t,useEffect:ES,useImperativeHandle:function(a,i,u){u=u!=null?u.concat([a]):null,Xs(4194308,4,RS.bind(null,i,a),u)},useLayoutEffect:function(a,i){return Xs(4194308,4,a,i)},useInsertionEffect:function(a,i){Xs(4,2,a,i)},useMemo:function(a,i){var u=Gt();i=i===void 0?null:i;var c=a();if(Wa){ea(!0);try{a()}finally{ea(!1)}}return u.memoizedState=[c,i],c},useReducer:function(a,i,u){var c=Gt();if(u!==void 0){var m=u(i);if(Wa){ea(!0);try{u(i)}finally{ea(!1)}}}else m=i;return c.memoizedState=c.baseState=m,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:m},c.queue=a,a=a.dispatch=v5.bind(null,Ee,a),[c.memoizedState,a]},useRef:function(a){var i=Gt();return a={current:a},i.memoizedState=a},useState:function(a){a=Uh(a);var i=a.queue,u=IS.bind(null,Ee,i);return i.dispatch=u,[a.memoizedState,u]},useDebugValue:Gh,useDeferredValue:function(a,i){var u=Gt();return Yh(u,a,i)},useTransition:function(){var a=Uh(!1);return a=LS.bind(null,Ee,a.queue,!0,!1),Gt().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,i,u){var c=Ee,m=Gt();if($e){if(u===void 0)throw Error(r(407));u=u()}else{if(u=i(),Qe===null)throw Error(r(349));(De&127)!==0||dS(c,i,u)}m.memoizedState=u;var g={value:u,getSnapshot:i};return m.queue=g,ES(pS.bind(null,c,g,a),[a]),c.flags|=2048,Zi(9,{destroy:void 0},hS.bind(null,c,g,u,i),null),u},useId:function(){var a=Gt(),i=Qe.identifierPrefix;if($e){var u=tr,c=er;u=(c&~(1<<32-ln(c)-1)).toString(32)+u,i="_"+i+"R_"+u,u=Gs++,0<u&&(i+="H"+u.toString(32)),i+="_"}else u=c5++,i="_"+i+"r_"+u.toString(32)+"_";return a.memoizedState=i},useHostTransitionStatus:Vh,useFormState:_S,useActionState:_S,useOptimistic:function(a){var i=Gt();i.memoizedState=i.baseState=a;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=u,i=Xh.bind(null,Ee,!0,u),u.dispatch=i,[a,i]},useMemoCache:qh,useCacheRefresh:function(){return Gt().memoizedState=y5.bind(null,Ee)},useEffectEvent:function(a){var i=Gt(),u={impl:a};return i.memoizedState=u,function(){if((Ie&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},Fh={readContext:$t,use:Ks,useCallback:DS,useContext:$t,useEffect:Hh,useImperativeHandle:PS,useInsertionEffect:CS,useLayoutEffect:MS,useMemo:kS,useReducer:Vs,useRef:TS,useState:function(){return Vs(wr)},useDebugValue:Gh,useDeferredValue:function(a,i){var u=yt();return $S(u,Ve.memoizedState,a,i)},useTransition:function(){var a=Vs(wr)[0],i=yt().memoizedState;return[typeof a=="boolean"?a:Pl(a),i]},useSyncExternalStore:fS,useId:zS,useHostTransitionStatus:Vh,useFormState:OS,useActionState:OS,useOptimistic:function(a,i){var u=yt();return vS(u,Ve,a,i)},useMemoCache:qh,useCacheRefresh:US};Fh.useEffectEvent=NS;var KS={readContext:$t,use:Ks,useCallback:DS,useContext:$t,useEffect:Hh,useImperativeHandle:PS,useInsertionEffect:CS,useLayoutEffect:MS,useMemo:kS,useReducer:zh,useRef:TS,useState:function(){return zh(wr)},useDebugValue:Gh,useDeferredValue:function(a,i){var u=yt();return Ve===null?Yh(u,a,i):$S(u,Ve.memoizedState,a,i)},useTransition:function(){var a=zh(wr)[0],i=yt().memoizedState;return[typeof a=="boolean"?a:Pl(a),i]},useSyncExternalStore:fS,useId:zS,useHostTransitionStatus:Vh,useFormState:jS,useActionState:jS,useOptimistic:function(a,i){var u=yt();return Ve!==null?vS(u,Ve,a,i):(u.baseState=a,[a,u.queue.dispatch])},useMemoCache:qh,useCacheRefresh:US};KS.useEffectEvent=NS;function Wh(a,i,u,c){i=a.memoizedState,u=u(c,i),u=u==null?i:p({},i,u),a.memoizedState=u,a.lanes===0&&(a.updateQueue.baseState=u)}var Zh={enqueueSetState:function(a,i,u){a=a._reactInternals;var c=pn(),m=ua(c);m.payload=i,u!=null&&(m.callback=u),i=sa(a,m,c),i!==null&&(en(i,a,c),Nl(i,a,c))},enqueueReplaceState:function(a,i,u){a=a._reactInternals;var c=pn(),m=ua(c);m.tag=1,m.payload=i,u!=null&&(m.callback=u),i=sa(a,m,c),i!==null&&(en(i,a,c),Nl(i,a,c))},enqueueForceUpdate:function(a,i){a=a._reactInternals;var u=pn(),c=ua(u);c.tag=2,i!=null&&(c.callback=i),i=sa(a,c,u),i!==null&&(en(i,a,u),Nl(i,a,u))}};function VS(a,i,u,c,m,g,A){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(c,g,A):i.prototype&&i.prototype.isPureReactComponent?!Sl(u,c)||!Sl(m,g):!0}function XS(a,i,u,c){a=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(u,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(u,c),i.state!==a&&Zh.enqueueReplaceState(i,i.state,null)}function Za(a,i){var u=i;if("ref"in i){u={};for(var c in i)c!=="ref"&&(u[c]=i[c])}if(a=a.defaultProps){u===i&&(u=p({},u));for(var m in a)u[m]===void 0&&(u[m]=a[m])}return u}function FS(a){Es(a)}function WS(a){console.error(a)}function ZS(a){Es(a)}function Zs(a,i){try{var u=a.onUncaughtError;u(i.value,{componentStack:i.stack})}catch(c){setTimeout(function(){throw c})}}function QS(a,i,u){try{var c=a.onCaughtError;c(u.value,{componentStack:u.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Qh(a,i,u){return u=ua(u),u.tag=3,u.payload={element:null},u.callback=function(){Zs(a,i)},u}function JS(a){return a=ua(a),a.tag=3,a}function ew(a,i,u,c){var m=u.type.getDerivedStateFromError;if(typeof m=="function"){var g=c.value;a.payload=function(){return m(g)},a.callback=function(){QS(i,u,c)}}var A=u.stateNode;A!==null&&typeof A.componentDidCatch=="function"&&(a.callback=function(){QS(i,u,c),typeof m!="function"&&(ma===null?ma=new Set([this]):ma.add(this));var R=c.stack;this.componentDidCatch(c.value,{componentStack:R!==null?R:""})})}function g5(a,i,u,c,m){if(u.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(i=u.alternate,i!==null&&Hi(i,u,m,!0),u=cn.current,u!==null){switch(u.tag){case 31:case 13:return Nn===null?sc():u.alternate===null&&ht===0&&(ht=3),u.flags&=-257,u.flags|=65536,u.lanes=m,c===qs?u.flags|=16384:(i=u.updateQueue,i===null?u.updateQueue=new Set([c]):i.add(c),_p(a,c,m)),!1;case 22:return u.flags|=65536,c===qs?u.flags|=16384:(i=u.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([c])},u.updateQueue=i):(u=i.retryQueue,u===null?i.retryQueue=new Set([c]):u.add(c)),_p(a,c,m)),!1}throw Error(r(435,u.tag))}return _p(a,c,m),sc(),!1}if($e)return i=cn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=m,c!==vh&&(a=Error(r(422),{cause:c}),Ol(An(a,u)))):(c!==vh&&(i=Error(r(423),{cause:c}),Ol(An(i,u))),a=a.current.alternate,a.flags|=65536,m&=-m,a.lanes|=m,c=An(c,u),m=Qh(a.stateNode,c,m),Eh(a,m),ht!==4&&(ht=2)),!1;var g=Error(r(520),{cause:c});if(g=An(g,u),Hl===null?Hl=[g]:Hl.push(g),ht!==4&&(ht=2),i===null)return!0;c=An(c,u),u=i;do{switch(u.tag){case 3:return u.flags|=65536,a=m&-m,u.lanes|=a,a=Qh(u.stateNode,c,a),Eh(u,a),!1;case 1:if(i=u.type,g=u.stateNode,(u.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(ma===null||!ma.has(g))))return u.flags|=65536,m&=-m,u.lanes|=m,m=JS(m),ew(m,a,u,c),Eh(u,m),!1}u=u.return}while(u!==null);return!1}var Jh=Error(r(461)),bt=!1;function Lt(a,i,u,c){i.child=a===null?aS(i,null,u,c):Fa(i,a.child,u,c)}function tw(a,i,u,c,m){u=u.render;var g=i.ref;if("ref"in c){var A={};for(var R in c)R!=="ref"&&(A[R]=c[R])}else A=c;return Ya(i),c=Dh(a,i,u,A,g,m),R=kh(),a!==null&&!bt?($h(a,i,m),_r(a,i,m)):($e&&R&&mh(i),i.flags|=1,Lt(a,i,c,m),i.child)}function nw(a,i,u,c,m){if(a===null){var g=u.type;return typeof g=="function"&&!dh(g)&&g.defaultProps===void 0&&u.compare===null?(i.tag=15,i.type=g,rw(a,i,g,c,m)):(a=Rs(u.type,null,c,i,i.mode,m),a.ref=i.ref,a.return=i,i.child=a)}if(g=a.child,!lp(a,m)){var A=g.memoizedProps;if(u=u.compare,u=u!==null?u:Sl,u(A,c)&&a.ref===i.ref)return _r(a,i,m)}return i.flags|=1,a=vr(g,c),a.ref=i.ref,a.return=i,i.child=a}function rw(a,i,u,c,m){if(a!==null){var g=a.memoizedProps;if(Sl(g,c)&&a.ref===i.ref)if(bt=!1,i.pendingProps=c=g,lp(a,m))(a.flags&131072)!==0&&(bt=!0);else return i.lanes=a.lanes,_r(a,i,m)}return ep(a,i,u,c,m)}function aw(a,i,u,c){var m=c.children,g=a!==null?a.memoizedState:null;if(a===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((i.flags&128)!==0){if(g=g!==null?g.baseLanes|u:u,a!==null){for(c=i.child=a.child,m=0;c!==null;)m=m|c.lanes|c.childLanes,c=c.sibling;c=m&~g}else c=0,i.child=null;return iw(a,i,g,u,c)}if((u&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},a!==null&&$s(i,g!==null?g.cachePool:null),g!==null?lS(i,g):Ch(),uS(i);else return c=i.lanes=536870912,iw(a,i,g!==null?g.baseLanes|u:u,u,c)}else g!==null?($s(i,g.cachePool),lS(i,g),fa(),i.memoizedState=null):(a!==null&&$s(i,null),Ch(),fa());return Lt(a,i,m,u),i.child}function $l(a,i){return a!==null&&a.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function iw(a,i,u,c,m){var g=Oh();return g=g===null?null:{parent:vt._currentValue,pool:g},i.memoizedState={baseLanes:u,cachePool:g},a!==null&&$s(i,null),Ch(),uS(i),a!==null&&Hi(a,i,c,!0),i.childLanes=m,null}function Qs(a,i){return i=ec({mode:i.mode,children:i.children},a.mode),i.ref=a.ref,a.child=i,i.return=a,i}function ow(a,i,u){return Fa(i,a.child,null,u),a=Qs(i,i.pendingProps),a.flags|=2,fn(i),i.memoizedState=null,a}function b5(a,i,u){var c=i.pendingProps,m=(i.flags&128)!==0;if(i.flags&=-129,a===null){if($e){if(c.mode==="hidden")return a=Qs(i,c),i.lanes=536870912,$l(null,a);if(Rh(i),(a=at)?(a=g_(a,En),a=a!==null&&a.data==="&"?a:null,a!==null&&(i.memoizedState={dehydrated:a,treeContext:ra!==null?{id:er,overflow:tr}:null,retryLane:536870912,hydrationErrors:null},u=H1(a),u.return=i,i.child=u,kt=i,at=null)):a=null,a===null)throw ia(i);return i.lanes=536870912,null}return Qs(i,c)}var g=a.memoizedState;if(g!==null){var A=g.dehydrated;if(Rh(i),m)if(i.flags&256)i.flags&=-257,i=ow(a,i,u);else if(i.memoizedState!==null)i.child=a.child,i.flags|=128,i=null;else throw Error(r(558));else if(bt||Hi(a,i,u,!1),m=(u&a.childLanes)!==0,bt||m){if(c=Qe,c!==null&&(A=Wx(c,u),A!==0&&A!==g.retryLane))throw g.retryLane=A,Ua(a,A),en(c,a,A),Jh;sc(),i=ow(a,i,u)}else a=g.treeContext,at=Cn(A.nextSibling),kt=i,$e=!0,aa=null,En=!1,a!==null&&K1(i,a),i=Qs(i,c),i.flags|=4096;return i}return a=vr(a.child,{mode:c.mode,children:c.children}),a.ref=i.ref,i.child=a,a.return=i,a}function Js(a,i){var u=i.ref;if(u===null)a!==null&&a.ref!==null&&(i.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(a===null||a.ref!==u)&&(i.flags|=4194816)}}function ep(a,i,u,c,m){return Ya(i),u=Dh(a,i,u,c,void 0,m),c=kh(),a!==null&&!bt?($h(a,i,m),_r(a,i,m)):($e&&c&&mh(i),i.flags|=1,Lt(a,i,u,m),i.child)}function lw(a,i,u,c,m,g){return Ya(i),i.updateQueue=null,u=cS(i,c,u,m),sS(a),c=kh(),a!==null&&!bt?($h(a,i,g),_r(a,i,g)):($e&&c&&mh(i),i.flags|=1,Lt(a,i,u,g),i.child)}function uw(a,i,u,c,m){if(Ya(i),i.stateNode===null){var g=Bi,A=u.contextType;typeof A=="object"&&A!==null&&(g=$t(A)),g=new u(c,g),i.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=Zh,i.stateNode=g,g._reactInternals=i,g=i.stateNode,g.props=c,g.state=i.memoizedState,g.refs={},jh(i),A=u.contextType,g.context=typeof A=="object"&&A!==null?$t(A):Bi,g.state=i.memoizedState,A=u.getDerivedStateFromProps,typeof A=="function"&&(Wh(i,u,A,c),g.state=i.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(A=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),A!==g.state&&Zh.enqueueReplaceState(g,g.state,null),Ml(i,c,g,m),Cl(),g.state=i.memoizedState),typeof g.componentDidMount=="function"&&(i.flags|=4194308),c=!0}else if(a===null){g=i.stateNode;var R=i.memoizedProps,U=Za(u,R);g.props=U;var Q=g.context,te=u.contextType;A=Bi,typeof te=="object"&&te!==null&&(A=$t(te));var ie=u.getDerivedStateFromProps;te=typeof ie=="function"||typeof g.getSnapshotBeforeUpdate=="function",R=i.pendingProps!==R,te||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(R||Q!==A)&&XS(i,g,c,A),la=!1;var J=i.memoizedState;g.state=J,Ml(i,c,g,m),Cl(),Q=i.memoizedState,R||J!==Q||la?(typeof ie=="function"&&(Wh(i,u,ie,c),Q=i.memoizedState),(U=la||VS(i,u,U,c,J,Q,A))?(te||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(i.flags|=4194308)):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=Q),g.props=c,g.state=Q,g.context=A,c=U):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{g=i.stateNode,Th(a,i),A=i.memoizedProps,te=Za(u,A),g.props=te,ie=i.pendingProps,J=g.context,Q=u.contextType,U=Bi,typeof Q=="object"&&Q!==null&&(U=$t(Q)),R=u.getDerivedStateFromProps,(Q=typeof R=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(A!==ie||J!==U)&&XS(i,g,c,U),la=!1,J=i.memoizedState,g.state=J,Ml(i,c,g,m),Cl();var ee=i.memoizedState;A!==ie||J!==ee||la||a!==null&&a.dependencies!==null&&Ds(a.dependencies)?(typeof R=="function"&&(Wh(i,u,R,c),ee=i.memoizedState),(te=la||VS(i,u,te,c,J,ee,U)||a!==null&&a.dependencies!==null&&Ds(a.dependencies))?(Q||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(c,ee,U),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(c,ee,U)),typeof g.componentDidUpdate=="function"&&(i.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof g.componentDidUpdate!="function"||A===a.memoizedProps&&J===a.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||A===a.memoizedProps&&J===a.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=ee),g.props=c,g.state=ee,g.context=U,c=te):(typeof g.componentDidUpdate!="function"||A===a.memoizedProps&&J===a.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||A===a.memoizedProps&&J===a.memoizedState||(i.flags|=1024),c=!1)}return g=c,Js(a,i),c=(i.flags&128)!==0,g||c?(g=i.stateNode,u=c&&typeof u.getDerivedStateFromError!="function"?null:g.render(),i.flags|=1,a!==null&&c?(i.child=Fa(i,a.child,null,m),i.child=Fa(i,null,u,m)):Lt(a,i,u,m),i.memoizedState=g.state,a=i.child):a=_r(a,i,m),a}function sw(a,i,u,c){return Ha(),i.flags|=256,Lt(a,i,u,c),i.child}var tp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function np(a){return{baseLanes:a,cachePool:Q1()}}function rp(a,i,u){return a=a!==null?a.childLanes&~u:0,i&&(a|=hn),a}function cw(a,i,u){var c=i.pendingProps,m=!1,g=(i.flags&128)!==0,A;if((A=g)||(A=a!==null&&a.memoizedState===null?!1:(mt.current&2)!==0),A&&(m=!0,i.flags&=-129),A=(i.flags&32)!==0,i.flags&=-33,a===null){if($e){if(m?ca(i):fa(),(a=at)?(a=g_(a,En),a=a!==null&&a.data!=="&"?a:null,a!==null&&(i.memoizedState={dehydrated:a,treeContext:ra!==null?{id:er,overflow:tr}:null,retryLane:536870912,hydrationErrors:null},u=H1(a),u.return=i,i.child=u,kt=i,at=null)):a=null,a===null)throw ia(i);return Bp(a)?i.lanes=32:i.lanes=536870912,null}var R=c.children;return c=c.fallback,m?(fa(),m=i.mode,R=ec({mode:"hidden",children:R},m),c=Ia(c,m,u,null),R.return=i,c.return=i,R.sibling=c,i.child=R,c=i.child,c.memoizedState=np(u),c.childLanes=rp(a,A,u),i.memoizedState=tp,$l(null,c)):(ca(i),ap(i,R))}var U=a.memoizedState;if(U!==null&&(R=U.dehydrated,R!==null)){if(g)i.flags&256?(ca(i),i.flags&=-257,i=ip(a,i,u)):i.memoizedState!==null?(fa(),i.child=a.child,i.flags|=128,i=null):(fa(),R=c.fallback,m=i.mode,c=ec({mode:"visible",children:c.children},m),R=Ia(R,m,u,null),R.flags|=2,c.return=i,R.return=i,c.sibling=R,i.child=c,Fa(i,a.child,null,u),c=i.child,c.memoizedState=np(u),c.childLanes=rp(a,A,u),i.memoizedState=tp,i=$l(null,c));else if(ca(i),Bp(R)){if(A=R.nextSibling&&R.nextSibling.dataset,A)var Q=A.dgst;A=Q,c=Error(r(419)),c.stack="",c.digest=A,Ol({value:c,source:null,stack:null}),i=ip(a,i,u)}else if(bt||Hi(a,i,u,!1),A=(u&a.childLanes)!==0,bt||A){if(A=Qe,A!==null&&(c=Wx(A,u),c!==0&&c!==U.retryLane))throw U.retryLane=c,Ua(a,c),en(A,a,c),Jh;qp(R)||sc(),i=ip(a,i,u)}else qp(R)?(i.flags|=192,i.child=a.child,i=null):(a=U.treeContext,at=Cn(R.nextSibling),kt=i,$e=!0,aa=null,En=!1,a!==null&&K1(i,a),i=ap(i,c.children),i.flags|=4096);return i}return m?(fa(),R=c.fallback,m=i.mode,U=a.child,Q=U.sibling,c=vr(U,{mode:"hidden",children:c.children}),c.subtreeFlags=U.subtreeFlags&65011712,Q!==null?R=vr(Q,R):(R=Ia(R,m,u,null),R.flags|=2),R.return=i,c.return=i,c.sibling=R,i.child=c,$l(null,c),c=i.child,R=a.child.memoizedState,R===null?R=np(u):(m=R.cachePool,m!==null?(U=vt._currentValue,m=m.parent!==U?{parent:U,pool:U}:m):m=Q1(),R={baseLanes:R.baseLanes|u,cachePool:m}),c.memoizedState=R,c.childLanes=rp(a,A,u),i.memoizedState=tp,$l(a.child,c)):(ca(i),u=a.child,a=u.sibling,u=vr(u,{mode:"visible",children:c.children}),u.return=i,u.sibling=null,a!==null&&(A=i.deletions,A===null?(i.deletions=[a],i.flags|=16):A.push(a)),i.child=u,i.memoizedState=null,u)}function ap(a,i){return i=ec({mode:"visible",children:i},a.mode),i.return=a,a.child=i}function ec(a,i){return a=sn(22,a,null,i),a.lanes=0,a}function ip(a,i,u){return Fa(i,a.child,null,u),a=ap(i,i.pendingProps.children),a.flags|=2,i.memoizedState=null,a}function fw(a,i,u){a.lanes|=i;var c=a.alternate;c!==null&&(c.lanes|=i),xh(a.return,i,u)}function op(a,i,u,c,m,g){var A=a.memoizedState;A===null?a.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:u,tailMode:m,treeForkCount:g}:(A.isBackwards=i,A.rendering=null,A.renderingStartTime=0,A.last=c,A.tail=u,A.tailMode=m,A.treeForkCount=g)}function dw(a,i,u){var c=i.pendingProps,m=c.revealOrder,g=c.tail;c=c.children;var A=mt.current,R=(A&2)!==0;if(R?(A=A&1|2,i.flags|=128):A&=1,re(mt,A),Lt(a,i,c,u),c=$e?_l:0,!R&&a!==null&&(a.flags&128)!==0)e:for(a=i.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&fw(a,u,i);else if(a.tag===19)fw(a,u,i);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(m){case"forwards":for(u=i.child,m=null;u!==null;)a=u.alternate,a!==null&&Is(a)===null&&(m=u),u=u.sibling;u=m,u===null?(m=i.child,i.child=null):(m=u.sibling,u.sibling=null),op(i,!1,m,u,g,c);break;case"backwards":case"unstable_legacy-backwards":for(u=null,m=i.child,i.child=null;m!==null;){if(a=m.alternate,a!==null&&Is(a)===null){i.child=m;break}a=m.sibling,m.sibling=u,u=m,m=a}op(i,!0,u,null,g,c);break;case"together":op(i,!1,null,null,void 0,c);break;default:i.memoizedState=null}return i.child}function _r(a,i,u){if(a!==null&&(i.dependencies=a.dependencies),pa|=i.lanes,(u&i.childLanes)===0)if(a!==null){if(Hi(a,i,u,!1),(u&i.childLanes)===0)return null}else return null;if(a!==null&&i.child!==a.child)throw Error(r(153));if(i.child!==null){for(a=i.child,u=vr(a,a.pendingProps),i.child=u,u.return=i;a.sibling!==null;)a=a.sibling,u=u.sibling=vr(a,a.pendingProps),u.return=i;u.sibling=null}return i.child}function lp(a,i){return(a.lanes&i)!==0?!0:(a=a.dependencies,!!(a!==null&&Ds(a)))}function x5(a,i,u){switch(i.tag){case 3:qe(i,i.stateNode.containerInfo),oa(i,vt,a.memoizedState.cache),Ha();break;case 27:case 5:we(i);break;case 4:qe(i,i.stateNode.containerInfo);break;case 10:oa(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Rh(i),null;break;case 13:var c=i.memoizedState;if(c!==null)return c.dehydrated!==null?(ca(i),i.flags|=128,null):(u&i.child.childLanes)!==0?cw(a,i,u):(ca(i),a=_r(a,i,u),a!==null?a.sibling:null);ca(i);break;case 19:var m=(a.flags&128)!==0;if(c=(u&i.childLanes)!==0,c||(Hi(a,i,u,!1),c=(u&i.childLanes)!==0),m){if(c)return dw(a,i,u);i.flags|=128}if(m=i.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),re(mt,mt.current),c)break;return null;case 22:return i.lanes=0,aw(a,i,u,i.pendingProps);case 24:oa(i,vt,a.memoizedState.cache)}return _r(a,i,u)}function hw(a,i,u){if(a!==null)if(a.memoizedProps!==i.pendingProps)bt=!0;else{if(!lp(a,u)&&(i.flags&128)===0)return bt=!1,x5(a,i,u);bt=(a.flags&131072)!==0}else bt=!1,$e&&(i.flags&1048576)!==0&&Y1(i,_l,i.index);switch(i.lanes=0,i.tag){case 16:e:{var c=i.pendingProps;if(a=Va(i.elementType),i.type=a,typeof a=="function")dh(a)?(c=Za(a,c),i.tag=1,i=uw(null,i,a,c,u)):(i.tag=0,i=ep(null,i,a,c,u));else{if(a!=null){var m=a.$$typeof;if(m===N){i.tag=11,i=tw(null,i,a,c,u);break e}else if(m===M){i.tag=14,i=nw(null,i,a,c,u);break e}}throw i=Y(a)||a,Error(r(306,i,""))}}return i;case 0:return ep(a,i,i.type,i.pendingProps,u);case 1:return c=i.type,m=Za(c,i.pendingProps),uw(a,i,c,m,u);case 3:e:{if(qe(i,i.stateNode.containerInfo),a===null)throw Error(r(387));c=i.pendingProps;var g=i.memoizedState;m=g.element,Th(a,i),Ml(i,c,null,u);var A=i.memoizedState;if(c=A.cache,oa(i,vt,c),c!==g.cache&&Sh(i,[vt],u,!0),Cl(),c=A.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:A.cache},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){i=sw(a,i,c,u);break e}else if(c!==m){m=An(Error(r(424)),i),Ol(m),i=sw(a,i,c,u);break e}else for(a=i.stateNode.containerInfo,a.nodeType===9?a=a.body:a=a.nodeName==="HTML"?a.ownerDocument.body:a,at=Cn(a.firstChild),kt=i,$e=!0,aa=null,En=!0,u=aS(i,null,c,u),i.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Ha(),c===m){i=_r(a,i,u);break e}Lt(a,i,c,u)}i=i.child}return i;case 26:return Js(a,i),a===null?(u=O_(i.type,null,i.pendingProps,null))?i.memoizedState=u:$e||(u=i.type,a=i.pendingProps,c=yc(le.current).createElement(u),c[Dt]=i,c[Xt]=a,qt(c,u,a),Nt(c),i.stateNode=c):i.memoizedState=O_(i.type,a.memoizedProps,i.pendingProps,a.memoizedState),null;case 27:return we(i),a===null&&$e&&(c=i.stateNode=S_(i.type,i.pendingProps,le.current),kt=i,En=!0,m=at,ba(i.type)?(zp=m,at=Cn(c.firstChild)):at=m),Lt(a,i,i.pendingProps.children,u),Js(a,i),a===null&&(i.flags|=4194304),i.child;case 5:return a===null&&$e&&((m=c=at)&&(c=W5(c,i.type,i.pendingProps,En),c!==null?(i.stateNode=c,kt=i,at=Cn(c.firstChild),En=!1,m=!0):m=!1),m||ia(i)),we(i),m=i.type,g=i.pendingProps,A=a!==null?a.memoizedProps:null,c=g.children,kp(m,g)?c=null:A!==null&&kp(m,A)&&(i.flags|=32),i.memoizedState!==null&&(m=Dh(a,i,f5,null,null,u),Zl._currentValue=m),Js(a,i),Lt(a,i,c,u),i.child;case 6:return a===null&&$e&&((a=u=at)&&(u=Z5(u,i.pendingProps,En),u!==null?(i.stateNode=u,kt=i,at=null,a=!0):a=!1),a||ia(i)),null;case 13:return cw(a,i,u);case 4:return qe(i,i.stateNode.containerInfo),c=i.pendingProps,a===null?i.child=Fa(i,null,c,u):Lt(a,i,c,u),i.child;case 11:return tw(a,i,i.type,i.pendingProps,u);case 7:return Lt(a,i,i.pendingProps,u),i.child;case 8:return Lt(a,i,i.pendingProps.children,u),i.child;case 12:return Lt(a,i,i.pendingProps.children,u),i.child;case 10:return c=i.pendingProps,oa(i,i.type,c.value),Lt(a,i,c.children,u),i.child;case 9:return m=i.type._context,c=i.pendingProps.children,Ya(i),m=$t(m),c=c(m),i.flags|=1,Lt(a,i,c,u),i.child;case 14:return nw(a,i,i.type,i.pendingProps,u);case 15:return rw(a,i,i.type,i.pendingProps,u);case 19:return dw(a,i,u);case 31:return b5(a,i,u);case 22:return aw(a,i,u,i.pendingProps);case 24:return Ya(i),c=$t(vt),a===null?(m=Oh(),m===null&&(m=Qe,g=wh(),m.pooledCache=g,g.refCount++,g!==null&&(m.pooledCacheLanes|=u),m=g),i.memoizedState={parent:c,cache:m},jh(i),oa(i,vt,m)):((a.lanes&u)!==0&&(Th(a,i),Ml(i,null,null,u),Cl()),m=a.memoizedState,g=i.memoizedState,m.parent!==c?(m={parent:c,cache:c},i.memoizedState=m,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=m),oa(i,vt,c)):(c=g.cache,oa(i,vt,c),c!==m.cache&&Sh(i,[vt],u,!0))),Lt(a,i,i.pendingProps.children,u),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function Or(a){a.flags|=4}function up(a,i,u,c,m){if((i=(a.mode&32)!==0)&&(i=!1),i){if(a.flags|=16777216,(m&335544128)===m)if(a.stateNode.complete)a.flags|=8192;else if(zw())a.flags|=8192;else throw Xa=qs,Ah}else a.flags&=-16777217}function pw(a,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!N_(i))if(zw())a.flags|=8192;else throw Xa=qs,Ah}function tc(a,i){i!==null&&(a.flags|=4),a.flags&16384&&(i=a.tag!==22?Vx():536870912,a.lanes|=i,to|=i)}function Ll(a,i){if(!$e)switch(a.tailMode){case"hidden":i=a.tail;for(var u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?a.tail=null:u.sibling=null;break;case"collapsed":u=a.tail;for(var c=null;u!==null;)u.alternate!==null&&(c=u),u=u.sibling;c===null?i||a.tail===null?a.tail=null:a.tail.sibling=null:c.sibling=null}}function it(a){var i=a.alternate!==null&&a.alternate.child===a.child,u=0,c=0;if(i)for(var m=a.child;m!==null;)u|=m.lanes|m.childLanes,c|=m.subtreeFlags&65011712,c|=m.flags&65011712,m.return=a,m=m.sibling;else for(m=a.child;m!==null;)u|=m.lanes|m.childLanes,c|=m.subtreeFlags,c|=m.flags,m.return=a,m=m.sibling;return a.subtreeFlags|=c,a.childLanes=u,i}function S5(a,i,u){var c=i.pendingProps;switch(yh(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(i),null;case 1:return it(i),null;case 3:return u=i.stateNode,c=null,a!==null&&(c=a.memoizedState.cache),i.memoizedState.cache!==c&&(i.flags|=2048),xr(vt),ce(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(a===null||a.child===null)&&(Ii(i)?Or(i):a===null||a.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,gh())),it(i),null;case 26:var m=i.type,g=i.memoizedState;return a===null?(Or(i),g!==null?(it(i),pw(i,g)):(it(i),up(i,m,null,c,u))):g?g!==a.memoizedState?(Or(i),it(i),pw(i,g)):(it(i),i.flags&=-16777217):(a=a.memoizedProps,a!==c&&Or(i),it(i),up(i,m,a,c,u)),null;case 27:if(Ae(i),u=le.current,m=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==c&&Or(i);else{if(!c){if(i.stateNode===null)throw Error(r(166));return it(i),null}a=fe.current,Ii(i)?V1(i):(a=S_(m,c,u),i.stateNode=a,Or(i))}return it(i),null;case 5:if(Ae(i),m=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==c&&Or(i);else{if(!c){if(i.stateNode===null)throw Error(r(166));return it(i),null}if(g=fe.current,Ii(i))V1(i);else{var A=yc(le.current);switch(g){case 1:g=A.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:g=A.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":g=A.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":g=A.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":g=A.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof c.is=="string"?A.createElement("select",{is:c.is}):A.createElement("select"),c.multiple?g.multiple=!0:c.size&&(g.size=c.size);break;default:g=typeof c.is=="string"?A.createElement(m,{is:c.is}):A.createElement(m)}}g[Dt]=i,g[Xt]=c;e:for(A=i.child;A!==null;){if(A.tag===5||A.tag===6)g.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===i)break e;for(;A.sibling===null;){if(A.return===null||A.return===i)break e;A=A.return}A.sibling.return=A.return,A=A.sibling}i.stateNode=g;e:switch(qt(g,m,c),m){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&Or(i)}}return it(i),up(i,i.type,a===null?null:a.memoizedProps,i.pendingProps,u),null;case 6:if(a&&i.stateNode!=null)a.memoizedProps!==c&&Or(i);else{if(typeof c!="string"&&i.stateNode===null)throw Error(r(166));if(a=le.current,Ii(i)){if(a=i.stateNode,u=i.memoizedProps,c=null,m=kt,m!==null)switch(m.tag){case 27:case 5:c=m.memoizedProps}a[Dt]=i,a=!!(a.nodeValue===u||c!==null&&c.suppressHydrationWarning===!0||c_(a.nodeValue,u)),a||ia(i,!0)}else a=yc(a).createTextNode(c),a[Dt]=i,i.stateNode=a}return it(i),null;case 31:if(u=i.memoizedState,a===null||a.memoizedState!==null){if(c=Ii(i),u!==null){if(a===null){if(!c)throw Error(r(318));if(a=i.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(557));a[Dt]=i}else Ha(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;it(i),a=!1}else u=gh(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=u),a=!0;if(!a)return i.flags&256?(fn(i),i):(fn(i),null);if((i.flags&128)!==0)throw Error(r(558))}return it(i),null;case 13:if(c=i.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(m=Ii(i),c!==null&&c.dehydrated!==null){if(a===null){if(!m)throw Error(r(318));if(m=i.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(r(317));m[Dt]=i}else Ha(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;it(i),m=!1}else m=gh(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=m),m=!0;if(!m)return i.flags&256?(fn(i),i):(fn(i),null)}return fn(i),(i.flags&128)!==0?(i.lanes=u,i):(u=c!==null,a=a!==null&&a.memoizedState!==null,u&&(c=i.child,m=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(m=c.alternate.memoizedState.cachePool.pool),g=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(g=c.memoizedState.cachePool.pool),g!==m&&(c.flags|=2048)),u!==a&&u&&(i.child.flags|=8192),tc(i,i.updateQueue),it(i),null);case 4:return ce(),a===null&&Cp(i.stateNode.containerInfo),it(i),null;case 10:return xr(i.type),it(i),null;case 19:if(K(mt),c=i.memoizedState,c===null)return it(i),null;if(m=(i.flags&128)!==0,g=c.rendering,g===null)if(m)Ll(c,!1);else{if(ht!==0||a!==null&&(a.flags&128)!==0)for(a=i.child;a!==null;){if(g=Is(a),g!==null){for(i.flags|=128,Ll(c,!1),a=g.updateQueue,i.updateQueue=a,tc(i,a),i.subtreeFlags=0,a=u,u=i.child;u!==null;)I1(u,a),u=u.sibling;return re(mt,mt.current&1|2),$e&&gr(i,c.treeForkCount),i.child}a=a.sibling}c.tail!==null&&Ut()>oc&&(i.flags|=128,m=!0,Ll(c,!1),i.lanes=4194304)}else{if(!m)if(a=Is(g),a!==null){if(i.flags|=128,m=!0,a=a.updateQueue,i.updateQueue=a,tc(i,a),Ll(c,!0),c.tail===null&&c.tailMode==="hidden"&&!g.alternate&&!$e)return it(i),null}else 2*Ut()-c.renderingStartTime>oc&&u!==536870912&&(i.flags|=128,m=!0,Ll(c,!1),i.lanes=4194304);c.isBackwards?(g.sibling=i.child,i.child=g):(a=c.last,a!==null?a.sibling=g:i.child=g,c.last=g)}return c.tail!==null?(a=c.tail,c.rendering=a,c.tail=a.sibling,c.renderingStartTime=Ut(),a.sibling=null,u=mt.current,re(mt,m?u&1|2:u&1),$e&&gr(i,c.treeForkCount),a):(it(i),null);case 22:case 23:return fn(i),Mh(),c=i.memoizedState!==null,a!==null?a.memoizedState!==null!==c&&(i.flags|=8192):c&&(i.flags|=8192),c?(u&536870912)!==0&&(i.flags&128)===0&&(it(i),i.subtreeFlags&6&&(i.flags|=8192)):it(i),u=i.updateQueue,u!==null&&tc(i,u.retryQueue),u=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==u&&(i.flags|=2048),a!==null&&K(Ka),null;case 24:return u=null,a!==null&&(u=a.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),xr(vt),it(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function w5(a,i){switch(yh(i),i.tag){case 1:return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 3:return xr(vt),ce(),a=i.flags,(a&65536)!==0&&(a&128)===0?(i.flags=a&-65537|128,i):null;case 26:case 27:case 5:return Ae(i),null;case 31:if(i.memoizedState!==null){if(fn(i),i.alternate===null)throw Error(r(340));Ha()}return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 13:if(fn(i),a=i.memoizedState,a!==null&&a.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Ha()}return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 19:return K(mt),null;case 4:return ce(),null;case 10:return xr(i.type),null;case 22:case 23:return fn(i),Mh(),a!==null&&K(Ka),a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 24:return xr(vt),null;case 25:return null;default:return null}}function mw(a,i){switch(yh(i),i.tag){case 3:xr(vt),ce();break;case 26:case 27:case 5:Ae(i);break;case 4:ce();break;case 31:i.memoizedState!==null&&fn(i);break;case 13:fn(i);break;case 19:K(mt);break;case 10:xr(i.type);break;case 22:case 23:fn(i),Mh(),a!==null&&K(Ka);break;case 24:xr(vt)}}function ql(a,i){try{var u=i.updateQueue,c=u!==null?u.lastEffect:null;if(c!==null){var m=c.next;u=m;do{if((u.tag&a)===a){c=void 0;var g=u.create,A=u.inst;c=g(),A.destroy=c}u=u.next}while(u!==m)}}catch(R){Ke(i,i.return,R)}}function da(a,i,u){try{var c=i.updateQueue,m=c!==null?c.lastEffect:null;if(m!==null){var g=m.next;c=g;do{if((c.tag&a)===a){var A=c.inst,R=A.destroy;if(R!==void 0){A.destroy=void 0,m=i;var U=u,Q=R;try{Q()}catch(te){Ke(m,U,te)}}}c=c.next}while(c!==g)}}catch(te){Ke(i,i.return,te)}}function yw(a){var i=a.updateQueue;if(i!==null){var u=a.stateNode;try{oS(i,u)}catch(c){Ke(a,a.return,c)}}}function vw(a,i,u){u.props=Za(a.type,a.memoizedProps),u.state=a.memoizedState;try{u.componentWillUnmount()}catch(c){Ke(a,i,c)}}function Bl(a,i){try{var u=a.ref;if(u!==null){switch(a.tag){case 26:case 27:case 5:var c=a.stateNode;break;case 30:c=a.stateNode;break;default:c=a.stateNode}typeof u=="function"?a.refCleanup=u(c):u.current=c}}catch(m){Ke(a,i,m)}}function nr(a,i){var u=a.ref,c=a.refCleanup;if(u!==null)if(typeof c=="function")try{c()}catch(m){Ke(a,i,m)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(m){Ke(a,i,m)}else u.current=null}function gw(a){var i=a.type,u=a.memoizedProps,c=a.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":u.autoFocus&&c.focus();break e;case"img":u.src?c.src=u.src:u.srcSet&&(c.srcset=u.srcSet)}}catch(m){Ke(a,a.return,m)}}function sp(a,i,u){try{var c=a.stateNode;G5(c,a.type,u,i),c[Xt]=i}catch(m){Ke(a,a.return,m)}}function bw(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&ba(a.type)||a.tag===4}function cp(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||bw(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&&ba(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 fp(a,i,u){var c=a.tag;if(c===5||c===6)a=a.stateNode,i?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(a,i):(i=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,i.appendChild(a),u=u._reactRootContainer,u!=null||i.onclick!==null||(i.onclick=mr));else if(c!==4&&(c===27&&ba(a.type)&&(u=a.stateNode,i=null),a=a.child,a!==null))for(fp(a,i,u),a=a.sibling;a!==null;)fp(a,i,u),a=a.sibling}function nc(a,i,u){var c=a.tag;if(c===5||c===6)a=a.stateNode,i?u.insertBefore(a,i):u.appendChild(a);else if(c!==4&&(c===27&&ba(a.type)&&(u=a.stateNode),a=a.child,a!==null))for(nc(a,i,u),a=a.sibling;a!==null;)nc(a,i,u),a=a.sibling}function xw(a){var i=a.stateNode,u=a.memoizedProps;try{for(var c=a.type,m=i.attributes;m.length;)i.removeAttributeNode(m[0]);qt(i,c,u),i[Dt]=a,i[Xt]=u}catch(g){Ke(a,a.return,g)}}var Ar=!1,xt=!1,dp=!1,Sw=typeof WeakSet=="function"?WeakSet:Set,Ct=null;function _5(a,i){if(a=a.containerInfo,Pp=_c,a=P1(a),ih(a)){if("selectionStart"in a)var u={start:a.selectionStart,end:a.selectionEnd};else e:{u=(u=a.ownerDocument)&&u.defaultView||window;var c=u.getSelection&&u.getSelection();if(c&&c.rangeCount!==0){u=c.anchorNode;var m=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{u.nodeType,g.nodeType}catch{u=null;break e}var A=0,R=-1,U=-1,Q=0,te=0,ie=a,J=null;t:for(;;){for(var ee;ie!==u||m!==0&&ie.nodeType!==3||(R=A+m),ie!==g||c!==0&&ie.nodeType!==3||(U=A+c),ie.nodeType===3&&(A+=ie.nodeValue.length),(ee=ie.firstChild)!==null;)J=ie,ie=ee;for(;;){if(ie===a)break t;if(J===u&&++Q===m&&(R=A),J===g&&++te===c&&(U=A),(ee=ie.nextSibling)!==null)break;ie=J,J=ie.parentNode}ie=ee}u=R===-1||U===-1?null:{start:R,end:U}}else u=null}u=u||{start:0,end:0}}else u=null;for(Dp={focusedElem:a,selectionRange:u},_c=!1,Ct=i;Ct!==null;)if(i=Ct,a=i.child,(i.subtreeFlags&1028)!==0&&a!==null)a.return=i,Ct=a;else for(;Ct!==null;){switch(i=Ct,g=i.alternate,a=i.flags,i.tag){case 0:if((a&4)!==0&&(a=i.updateQueue,a=a!==null?a.events:null,a!==null))for(u=0;u<a.length;u++)m=a[u],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&g!==null){a=void 0,u=i,m=g.memoizedProps,g=g.memoizedState,c=u.stateNode;try{var me=Za(u.type,m);a=c.getSnapshotBeforeUpdate(me,g),c.__reactInternalSnapshotBeforeUpdate=a}catch(be){Ke(u,u.return,be)}}break;case 3:if((a&1024)!==0){if(a=i.stateNode.containerInfo,u=a.nodeType,u===9)Lp(a);else if(u===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Lp(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=i.sibling,a!==null){a.return=i.return,Ct=a;break}Ct=i.return}}function ww(a,i,u){var c=u.flags;switch(u.tag){case 0:case 11:case 15:Tr(a,u),c&4&&ql(5,u);break;case 1:if(Tr(a,u),c&4)if(a=u.stateNode,i===null)try{a.componentDidMount()}catch(A){Ke(u,u.return,A)}else{var m=Za(u.type,i.memoizedProps);i=i.memoizedState;try{a.componentDidUpdate(m,i,a.__reactInternalSnapshotBeforeUpdate)}catch(A){Ke(u,u.return,A)}}c&64&&yw(u),c&512&&Bl(u,u.return);break;case 3:if(Tr(a,u),c&64&&(a=u.updateQueue,a!==null)){if(i=null,u.child!==null)switch(u.child.tag){case 27:case 5:i=u.child.stateNode;break;case 1:i=u.child.stateNode}try{oS(a,i)}catch(A){Ke(u,u.return,A)}}break;case 27:i===null&&c&4&&xw(u);case 26:case 5:Tr(a,u),i===null&&c&4&&gw(u),c&512&&Bl(u,u.return);break;case 12:Tr(a,u);break;case 31:Tr(a,u),c&4&&Aw(a,u);break;case 13:Tr(a,u),c&4&&jw(a,u),c&64&&(a=u.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(u=R5.bind(null,u),Q5(a,u))));break;case 22:if(c=u.memoizedState!==null||Ar,!c){i=i!==null&&i.memoizedState!==null||xt,m=Ar;var g=xt;Ar=c,(xt=i)&&!g?Er(a,u,(u.subtreeFlags&8772)!==0):Tr(a,u),Ar=m,xt=g}break;case 30:break;default:Tr(a,u)}}function _w(a){var i=a.alternate;i!==null&&(a.alternate=null,_w(i)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(i=a.stateNode,i!==null&&Id(i)),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 lt=null,Wt=!1;function jr(a,i,u){for(u=u.child;u!==null;)Ow(a,i,u),u=u.sibling}function Ow(a,i,u){if(on&&typeof on.onCommitFiberUnmount=="function")try{on.onCommitFiberUnmount(sl,u)}catch{}switch(u.tag){case 26:xt||nr(u,i),jr(a,i,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:xt||nr(u,i);var c=lt,m=Wt;ba(u.type)&&(lt=u.stateNode,Wt=!1),jr(a,i,u),Xl(u.stateNode),lt=c,Wt=m;break;case 5:xt||nr(u,i);case 6:if(c=lt,m=Wt,lt=null,jr(a,i,u),lt=c,Wt=m,lt!==null)if(Wt)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(u.stateNode)}catch(g){Ke(u,i,g)}else try{lt.removeChild(u.stateNode)}catch(g){Ke(u,i,g)}break;case 18:lt!==null&&(Wt?(a=lt,y_(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,u.stateNode),so(a)):y_(lt,u.stateNode));break;case 4:c=lt,m=Wt,lt=u.stateNode.containerInfo,Wt=!0,jr(a,i,u),lt=c,Wt=m;break;case 0:case 11:case 14:case 15:da(2,u,i),xt||da(4,u,i),jr(a,i,u);break;case 1:xt||(nr(u,i),c=u.stateNode,typeof c.componentWillUnmount=="function"&&vw(u,i,c)),jr(a,i,u);break;case 21:jr(a,i,u);break;case 22:xt=(c=xt)||u.memoizedState!==null,jr(a,i,u),xt=c;break;default:jr(a,i,u)}}function Aw(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{so(a)}catch(u){Ke(i,i.return,u)}}}function jw(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{so(a)}catch(u){Ke(i,i.return,u)}}function O5(a){switch(a.tag){case 31:case 13:case 19:var i=a.stateNode;return i===null&&(i=a.stateNode=new Sw),i;case 22:return a=a.stateNode,i=a._retryCache,i===null&&(i=a._retryCache=new Sw),i;default:throw Error(r(435,a.tag))}}function rc(a,i){var u=O5(a);i.forEach(function(c){if(!u.has(c)){u.add(c);var m=P5.bind(null,a,c);c.then(m,m)}})}function Zt(a,i){var u=i.deletions;if(u!==null)for(var c=0;c<u.length;c++){var m=u[c],g=a,A=i,R=A;e:for(;R!==null;){switch(R.tag){case 27:if(ba(R.type)){lt=R.stateNode,Wt=!1;break e}break;case 5:lt=R.stateNode,Wt=!1;break e;case 3:case 4:lt=R.stateNode.containerInfo,Wt=!0;break e}R=R.return}if(lt===null)throw Error(r(160));Ow(g,A,m),lt=null,Wt=!1,g=m.alternate,g!==null&&(g.return=null),m.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)Tw(i,a),i=i.sibling}var Gn=null;function Tw(a,i){var u=a.alternate,c=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:Zt(i,a),Qt(a),c&4&&(da(3,a,a.return),ql(3,a),da(5,a,a.return));break;case 1:Zt(i,a),Qt(a),c&512&&(xt||u===null||nr(u,u.return)),c&64&&Ar&&(a=a.updateQueue,a!==null&&(c=a.callbacks,c!==null&&(u=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=u===null?c:u.concat(c))));break;case 26:var m=Gn;if(Zt(i,a),Qt(a),c&512&&(xt||u===null||nr(u,u.return)),c&4){var g=u!==null?u.memoizedState:null;if(c=a.memoizedState,u===null)if(c===null)if(a.stateNode===null){e:{c=a.type,u=a.memoizedProps,m=m.ownerDocument||m;t:switch(c){case"title":g=m.getElementsByTagName("title")[0],(!g||g[dl]||g[Dt]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=m.createElement(c),m.head.insertBefore(g,m.querySelector("head > title"))),qt(g,c,u),g[Dt]=a,Nt(g),c=g;break e;case"link":var A=T_("link","href",m).get(c+(u.href||""));if(A){for(var R=0;R<A.length;R++)if(g=A[R],g.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&g.getAttribute("rel")===(u.rel==null?null:u.rel)&&g.getAttribute("title")===(u.title==null?null:u.title)&&g.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){A.splice(R,1);break t}}g=m.createElement(c),qt(g,c,u),m.head.appendChild(g);break;case"meta":if(A=T_("meta","content",m).get(c+(u.content||""))){for(R=0;R<A.length;R++)if(g=A[R],g.getAttribute("content")===(u.content==null?null:""+u.content)&&g.getAttribute("name")===(u.name==null?null:u.name)&&g.getAttribute("property")===(u.property==null?null:u.property)&&g.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&g.getAttribute("charset")===(u.charSet==null?null:u.charSet)){A.splice(R,1);break t}}g=m.createElement(c),qt(g,c,u),m.head.appendChild(g);break;default:throw Error(r(468,c))}g[Dt]=a,Nt(g),c=g}a.stateNode=c}else E_(m,a.type,a.stateNode);else a.stateNode=j_(m,c,a.memoizedProps);else g!==c?(g===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):g.count--,c===null?E_(m,a.type,a.stateNode):j_(m,c,a.memoizedProps)):c===null&&a.stateNode!==null&&sp(a,a.memoizedProps,u.memoizedProps)}break;case 27:Zt(i,a),Qt(a),c&512&&(xt||u===null||nr(u,u.return)),u!==null&&c&4&&sp(a,a.memoizedProps,u.memoizedProps);break;case 5:if(Zt(i,a),Qt(a),c&512&&(xt||u===null||nr(u,u.return)),a.flags&32){m=a.stateNode;try{Ri(m,"")}catch(me){Ke(a,a.return,me)}}c&4&&a.stateNode!=null&&(m=a.memoizedProps,sp(a,m,u!==null?u.memoizedProps:m)),c&1024&&(dp=!0);break;case 6:if(Zt(i,a),Qt(a),c&4){if(a.stateNode===null)throw Error(r(162));c=a.memoizedProps,u=a.stateNode;try{u.nodeValue=c}catch(me){Ke(a,a.return,me)}}break;case 3:if(bc=null,m=Gn,Gn=vc(i.containerInfo),Zt(i,a),Gn=m,Qt(a),c&4&&u!==null&&u.memoizedState.isDehydrated)try{so(i.containerInfo)}catch(me){Ke(a,a.return,me)}dp&&(dp=!1,Ew(a));break;case 4:c=Gn,Gn=vc(a.stateNode.containerInfo),Zt(i,a),Qt(a),Gn=c;break;case 12:Zt(i,a),Qt(a);break;case 31:Zt(i,a),Qt(a),c&4&&(c=a.updateQueue,c!==null&&(a.updateQueue=null,rc(a,c)));break;case 13:Zt(i,a),Qt(a),a.child.flags&8192&&a.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(ic=Ut()),c&4&&(c=a.updateQueue,c!==null&&(a.updateQueue=null,rc(a,c)));break;case 22:m=a.memoizedState!==null;var U=u!==null&&u.memoizedState!==null,Q=Ar,te=xt;if(Ar=Q||m,xt=te||U,Zt(i,a),xt=te,Ar=Q,Qt(a),c&8192)e:for(i=a.stateNode,i._visibility=m?i._visibility&-2:i._visibility|1,m&&(u===null||U||Ar||xt||Qa(a)),u=null,i=a;;){if(i.tag===5||i.tag===26){if(u===null){U=u=i;try{if(g=U.stateNode,m)A=g.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none";else{R=U.stateNode;var ie=U.memoizedProps.style,J=ie!=null&&ie.hasOwnProperty("display")?ie.display:null;R.style.display=J==null||typeof J=="boolean"?"":(""+J).trim()}}catch(me){Ke(U,U.return,me)}}}else if(i.tag===6){if(u===null){U=i;try{U.stateNode.nodeValue=m?"":U.memoizedProps}catch(me){Ke(U,U.return,me)}}}else if(i.tag===18){if(u===null){U=i;try{var ee=U.stateNode;m?v_(ee,!0):v_(U.stateNode,!1)}catch(me){Ke(U,U.return,me)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===a)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;u===i&&(u=null),i=i.return}u===i&&(u=null),i.sibling.return=i.return,i=i.sibling}c&4&&(c=a.updateQueue,c!==null&&(u=c.retryQueue,u!==null&&(c.retryQueue=null,rc(a,u))));break;case 19:Zt(i,a),Qt(a),c&4&&(c=a.updateQueue,c!==null&&(a.updateQueue=null,rc(a,c)));break;case 30:break;case 21:break;default:Zt(i,a),Qt(a)}}function Qt(a){var i=a.flags;if(i&2){try{for(var u,c=a.return;c!==null;){if(bw(c)){u=c;break}c=c.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var m=u.stateNode,g=cp(a);nc(a,g,m);break;case 5:var A=u.stateNode;u.flags&32&&(Ri(A,""),u.flags&=-33);var R=cp(a);nc(a,R,A);break;case 3:case 4:var U=u.stateNode.containerInfo,Q=cp(a);fp(a,Q,U);break;default:throw Error(r(161))}}catch(te){Ke(a,a.return,te)}a.flags&=-3}i&4096&&(a.flags&=-4097)}function Ew(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var i=a;Ew(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),a=a.sibling}}function Tr(a,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)ww(a,i.alternate,i),i=i.sibling}function Qa(a){for(a=a.child;a!==null;){var i=a;switch(i.tag){case 0:case 11:case 14:case 15:da(4,i,i.return),Qa(i);break;case 1:nr(i,i.return);var u=i.stateNode;typeof u.componentWillUnmount=="function"&&vw(i,i.return,u),Qa(i);break;case 27:Xl(i.stateNode);case 26:case 5:nr(i,i.return),Qa(i);break;case 22:i.memoizedState===null&&Qa(i);break;case 30:Qa(i);break;default:Qa(i)}a=a.sibling}}function Er(a,i,u){for(u=u&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var c=i.alternate,m=a,g=i,A=g.flags;switch(g.tag){case 0:case 11:case 15:Er(m,g,u),ql(4,g);break;case 1:if(Er(m,g,u),c=g,m=c.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(Q){Ke(c,c.return,Q)}if(c=g,m=c.updateQueue,m!==null){var R=c.stateNode;try{var U=m.shared.hiddenCallbacks;if(U!==null)for(m.shared.hiddenCallbacks=null,m=0;m<U.length;m++)iS(U[m],R)}catch(Q){Ke(c,c.return,Q)}}u&&A&64&&yw(g),Bl(g,g.return);break;case 27:xw(g);case 26:case 5:Er(m,g,u),u&&c===null&&A&4&&gw(g),Bl(g,g.return);break;case 12:Er(m,g,u);break;case 31:Er(m,g,u),u&&A&4&&Aw(m,g);break;case 13:Er(m,g,u),u&&A&4&&jw(m,g);break;case 22:g.memoizedState===null&&Er(m,g,u),Bl(g,g.return);break;case 30:break;default:Er(m,g,u)}i=i.sibling}}function hp(a,i){var u=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),a=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),a!==u&&(a!=null&&a.refCount++,u!=null&&Al(u))}function pp(a,i){a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(i.refCount++,a!=null&&Al(a))}function Yn(a,i,u,c){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Nw(a,i,u,c),i=i.sibling}function Nw(a,i,u,c){var m=i.flags;switch(i.tag){case 0:case 11:case 15:Yn(a,i,u,c),m&2048&&ql(9,i);break;case 1:Yn(a,i,u,c);break;case 3:Yn(a,i,u,c),m&2048&&(a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(i.refCount++,a!=null&&Al(a)));break;case 12:if(m&2048){Yn(a,i,u,c),a=i.stateNode;try{var g=i.memoizedProps,A=g.id,R=g.onPostCommit;typeof R=="function"&&R(A,i.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(U){Ke(i,i.return,U)}}else Yn(a,i,u,c);break;case 31:Yn(a,i,u,c);break;case 13:Yn(a,i,u,c);break;case 23:break;case 22:g=i.stateNode,A=i.alternate,i.memoizedState!==null?g._visibility&2?Yn(a,i,u,c):zl(a,i):g._visibility&2?Yn(a,i,u,c):(g._visibility|=2,Qi(a,i,u,c,(i.subtreeFlags&10256)!==0||!1)),m&2048&&hp(A,i);break;case 24:Yn(a,i,u,c),m&2048&&pp(i.alternate,i);break;default:Yn(a,i,u,c)}}function Qi(a,i,u,c,m){for(m=m&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var g=a,A=i,R=u,U=c,Q=A.flags;switch(A.tag){case 0:case 11:case 15:Qi(g,A,R,U,m),ql(8,A);break;case 23:break;case 22:var te=A.stateNode;A.memoizedState!==null?te._visibility&2?Qi(g,A,R,U,m):zl(g,A):(te._visibility|=2,Qi(g,A,R,U,m)),m&&Q&2048&&hp(A.alternate,A);break;case 24:Qi(g,A,R,U,m),m&&Q&2048&&pp(A.alternate,A);break;default:Qi(g,A,R,U,m)}i=i.sibling}}function zl(a,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var u=a,c=i,m=c.flags;switch(c.tag){case 22:zl(u,c),m&2048&&hp(c.alternate,c);break;case 24:zl(u,c),m&2048&&pp(c.alternate,c);break;default:zl(u,c)}i=i.sibling}}var Ul=8192;function Ji(a,i,u){if(a.subtreeFlags&Ul)for(a=a.child;a!==null;)Cw(a,i,u),a=a.sibling}function Cw(a,i,u){switch(a.tag){case 26:Ji(a,i,u),a.flags&Ul&&a.memoizedState!==null&&cP(u,Gn,a.memoizedState,a.memoizedProps);break;case 5:Ji(a,i,u);break;case 3:case 4:var c=Gn;Gn=vc(a.stateNode.containerInfo),Ji(a,i,u),Gn=c;break;case 22:a.memoizedState===null&&(c=a.alternate,c!==null&&c.memoizedState!==null?(c=Ul,Ul=16777216,Ji(a,i,u),Ul=c):Ji(a,i,u));break;default:Ji(a,i,u)}}function Mw(a){var i=a.alternate;if(i!==null&&(a=i.child,a!==null)){i.child=null;do i=a.sibling,a.sibling=null,a=i;while(a!==null)}}function Il(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var u=0;u<i.length;u++){var c=i[u];Ct=c,Pw(c,a)}Mw(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Rw(a),a=a.sibling}function Rw(a){switch(a.tag){case 0:case 11:case 15:Il(a),a.flags&2048&&da(9,a,a.return);break;case 3:Il(a);break;case 12:Il(a);break;case 22:var i=a.stateNode;a.memoizedState!==null&&i._visibility&2&&(a.return===null||a.return.tag!==13)?(i._visibility&=-3,ac(a)):Il(a);break;default:Il(a)}}function ac(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var u=0;u<i.length;u++){var c=i[u];Ct=c,Pw(c,a)}Mw(a)}for(a=a.child;a!==null;){switch(i=a,i.tag){case 0:case 11:case 15:da(8,i,i.return),ac(i);break;case 22:u=i.stateNode,u._visibility&2&&(u._visibility&=-3,ac(i));break;default:ac(i)}a=a.sibling}}function Pw(a,i){for(;Ct!==null;){var u=Ct;switch(u.tag){case 0:case 11:case 15:da(8,u,i);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var c=u.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Al(u.memoizedState.cache)}if(c=u.child,c!==null)c.return=u,Ct=c;else e:for(u=a;Ct!==null;){c=Ct;var m=c.sibling,g=c.return;if(_w(c),c===u){Ct=null;break e}if(m!==null){m.return=g,Ct=m;break e}Ct=g}}}var A5={getCacheForType:function(a){var i=$t(vt),u=i.data.get(a);return u===void 0&&(u=a(),i.data.set(a,u)),u},cacheSignal:function(){return $t(vt).controller.signal}},j5=typeof WeakMap=="function"?WeakMap:Map,Ie=0,Qe=null,Re=null,De=0,Ye=0,dn=null,ha=!1,eo=!1,mp=!1,Nr=0,ht=0,pa=0,Ja=0,yp=0,hn=0,to=0,Hl=null,Jt=null,vp=!1,ic=0,Dw=0,oc=1/0,lc=null,ma=null,_t=0,ya=null,no=null,Cr=0,gp=0,bp=null,kw=null,Gl=0,xp=null;function pn(){return(Ie&2)!==0&&De!==0?De&-De:k.T!==null?jp():Zx()}function $w(){if(hn===0)if((De&536870912)===0||$e){var a=ms;ms<<=1,(ms&3932160)===0&&(ms=262144),hn=a}else hn=536870912;return a=cn.current,a!==null&&(a.flags|=32),hn}function en(a,i,u){(a===Qe&&(Ye===2||Ye===9)||a.cancelPendingCommit!==null)&&(ro(a,0),va(a,De,hn,!1)),fl(a,u),((Ie&2)===0||a!==Qe)&&(a===Qe&&((Ie&2)===0&&(Ja|=u),ht===4&&va(a,De,hn,!1)),rr(a))}function Lw(a,i,u){if((Ie&6)!==0)throw Error(r(327));var c=!u&&(i&127)===0&&(i&a.expiredLanes)===0||cl(a,i),m=c?N5(a,i):wp(a,i,!0),g=c;do{if(m===0){eo&&!c&&va(a,i,0,!1);break}else{if(u=a.current.alternate,g&&!T5(u)){m=wp(a,i,!1),g=!1;continue}if(m===2){if(g=i,a.errorRecoveryDisabledLanes&g)var A=0;else A=a.pendingLanes&-536870913,A=A!==0?A:A&536870912?536870912:0;if(A!==0){i=A;e:{var R=a;m=Hl;var U=R.current.memoizedState.isDehydrated;if(U&&(ro(R,A).flags|=256),A=wp(R,A,!1),A!==2){if(mp&&!U){R.errorRecoveryDisabledLanes|=g,Ja|=g,m=4;break e}g=Jt,Jt=m,g!==null&&(Jt===null?Jt=g:Jt.push.apply(Jt,g))}m=A}if(g=!1,m!==2)continue}}if(m===1){ro(a,0),va(a,i,0,!0);break}e:{switch(c=a,g=m,g){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:va(c,i,hn,!ha);break e;case 2:Jt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(m=ic+300-Ut(),10<m)){if(va(c,i,hn,!ha),vs(c,0,!0)!==0)break e;Cr=i,c.timeoutHandle=p_(qw.bind(null,c,u,Jt,lc,vp,i,hn,Ja,to,ha,g,"Throttled",-0,0),m);break e}qw(c,u,Jt,lc,vp,i,hn,Ja,to,ha,g,null,-0,0)}}break}while(!0);rr(a)}function qw(a,i,u,c,m,g,A,R,U,Q,te,ie,J,ee){if(a.timeoutHandle=-1,ie=i.subtreeFlags,ie&8192||(ie&16785408)===16785408){ie={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mr},Cw(i,g,ie);var me=(g&62914560)===g?ic-Ut():(g&4194048)===g?Dw-Ut():0;if(me=fP(ie,me),me!==null){Cr=g,a.cancelPendingCommit=me(Kw.bind(null,a,i,g,u,c,m,A,R,U,te,ie,null,J,ee)),va(a,g,A,!Q);return}}Kw(a,i,g,u,c,m,A,R,U)}function T5(a){for(var i=a;;){var u=i.tag;if((u===0||u===11||u===15)&&i.flags&16384&&(u=i.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var c=0;c<u.length;c++){var m=u[c],g=m.getSnapshot;m=m.value;try{if(!un(g(),m))return!1}catch{return!1}}if(u=i.child,i.subtreeFlags&16384&&u!==null)u.return=i,i=u;else{if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function va(a,i,u,c){i&=~yp,i&=~Ja,a.suspendedLanes|=i,a.pingedLanes&=~i,c&&(a.warmLanes|=i),c=a.expirationTimes;for(var m=i;0<m;){var g=31-ln(m),A=1<<g;c[g]=-1,m&=~A}u!==0&&Xx(a,u,i)}function uc(){return(Ie&6)===0?(Yl(0),!1):!0}function Sp(){if(Re!==null){if(Ye===0)var a=Re.return;else a=Re,br=Ga=null,Lh(a),Vi=null,Tl=0,a=Re;for(;a!==null;)mw(a.alternate,a),a=a.return;Re=null}}function ro(a,i){var u=a.timeoutHandle;u!==-1&&(a.timeoutHandle=-1,V5(u)),u=a.cancelPendingCommit,u!==null&&(a.cancelPendingCommit=null,u()),Cr=0,Sp(),Qe=a,Re=u=vr(a.current,null),De=i,Ye=0,dn=null,ha=!1,eo=cl(a,i),mp=!1,to=hn=yp=Ja=pa=ht=0,Jt=Hl=null,vp=!1,(i&8)!==0&&(i|=i&32);var c=a.entangledLanes;if(c!==0)for(a=a.entanglements,c&=i;0<c;){var m=31-ln(c),g=1<<m;i|=a[m],c&=~g}return Nr=i,Ns(),u}function Bw(a,i){Ee=null,k.H=kl,i===Ki||i===Ls?(i=tS(),Ye=3):i===Ah?(i=tS(),Ye=4):Ye=i===Jh?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,dn=i,Re===null&&(ht=1,Zs(a,An(i,a.current)))}function zw(){var a=cn.current;return a===null?!0:(De&4194048)===De?Nn===null:(De&62914560)===De||(De&536870912)!==0?a===Nn:!1}function Uw(){var a=k.H;return k.H=kl,a===null?kl:a}function Iw(){var a=k.A;return k.A=A5,a}function sc(){ht=4,ha||(De&4194048)!==De&&cn.current!==null||(eo=!0),(pa&134217727)===0&&(Ja&134217727)===0||Qe===null||va(Qe,De,hn,!1)}function wp(a,i,u){var c=Ie;Ie|=2;var m=Uw(),g=Iw();(Qe!==a||De!==i)&&(lc=null,ro(a,i)),i=!1;var A=ht;e:do try{if(Ye!==0&&Re!==null){var R=Re,U=dn;switch(Ye){case 8:Sp(),A=6;break e;case 3:case 2:case 9:case 6:cn.current===null&&(i=!0);var Q=Ye;if(Ye=0,dn=null,ao(a,R,U,Q),u&&eo){A=0;break e}break;default:Q=Ye,Ye=0,dn=null,ao(a,R,U,Q)}}E5(),A=ht;break}catch(te){Bw(a,te)}while(!0);return i&&a.shellSuspendCounter++,br=Ga=null,Ie=c,k.H=m,k.A=g,Re===null&&(Qe=null,De=0,Ns()),A}function E5(){for(;Re!==null;)Hw(Re)}function N5(a,i){var u=Ie;Ie|=2;var c=Uw(),m=Iw();Qe!==a||De!==i?(lc=null,oc=Ut()+500,ro(a,i)):eo=cl(a,i);e:do try{if(Ye!==0&&Re!==null){i=Re;var g=dn;t:switch(Ye){case 1:Ye=0,dn=null,ao(a,i,g,1);break;case 2:case 9:if(J1(g)){Ye=0,dn=null,Gw(i);break}i=function(){Ye!==2&&Ye!==9||Qe!==a||(Ye=7),rr(a)},g.then(i,i);break e;case 3:Ye=7;break e;case 4:Ye=5;break e;case 7:J1(g)?(Ye=0,dn=null,Gw(i)):(Ye=0,dn=null,ao(a,i,g,7));break;case 5:var A=null;switch(Re.tag){case 26:A=Re.memoizedState;case 5:case 27:var R=Re;if(A?N_(A):R.stateNode.complete){Ye=0,dn=null;var U=R.sibling;if(U!==null)Re=U;else{var Q=R.return;Q!==null?(Re=Q,cc(Q)):Re=null}break t}}Ye=0,dn=null,ao(a,i,g,5);break;case 6:Ye=0,dn=null,ao(a,i,g,6);break;case 8:Sp(),ht=6;break e;default:throw Error(r(462))}}C5();break}catch(te){Bw(a,te)}while(!0);return br=Ga=null,k.H=c,k.A=m,Ie=u,Re!==null?0:(Qe=null,De=0,Ns(),ht)}function C5(){for(;Re!==null&&!hr();)Hw(Re)}function Hw(a){var i=hw(a.alternate,a,Nr);a.memoizedProps=a.pendingProps,i===null?cc(a):Re=i}function Gw(a){var i=a,u=i.alternate;switch(i.tag){case 15:case 0:i=lw(u,i,i.pendingProps,i.type,void 0,De);break;case 11:i=lw(u,i,i.pendingProps,i.type.render,i.ref,De);break;case 5:Lh(i);default:mw(u,i),i=Re=I1(i,Nr),i=hw(u,i,Nr)}a.memoizedProps=a.pendingProps,i===null?cc(a):Re=i}function ao(a,i,u,c){br=Ga=null,Lh(i),Vi=null,Tl=0;var m=i.return;try{if(g5(a,m,i,u,De)){ht=1,Zs(a,An(u,a.current)),Re=null;return}}catch(g){if(m!==null)throw Re=m,g;ht=1,Zs(a,An(u,a.current)),Re=null;return}i.flags&32768?($e||c===1?a=!0:eo||(De&536870912)!==0?a=!1:(ha=a=!0,(c===2||c===9||c===3||c===6)&&(c=cn.current,c!==null&&c.tag===13&&(c.flags|=16384))),Yw(i,a)):cc(i)}function cc(a){var i=a;do{if((i.flags&32768)!==0){Yw(i,ha);return}a=i.return;var u=S5(i.alternate,i,Nr);if(u!==null){Re=u;return}if(i=i.sibling,i!==null){Re=i;return}Re=i=a}while(i!==null);ht===0&&(ht=5)}function Yw(a,i){do{var u=w5(a.alternate,a);if(u!==null){u.flags&=32767,Re=u;return}if(u=a.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!i&&(a=a.sibling,a!==null)){Re=a;return}Re=a=u}while(a!==null);ht=6,Re=null}function Kw(a,i,u,c,m,g,A,R,U){a.cancelPendingCommit=null;do fc();while(_t!==0);if((Ie&6)!==0)throw Error(r(327));if(i!==null){if(i===a.current)throw Error(r(177));if(g=i.lanes|i.childLanes,g|=ch,s4(a,u,g,A,R,U),a===Qe&&(Re=Qe=null,De=0),no=i,ya=a,Cr=u,gp=g,bp=m,kw=c,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,D5(hs,function(){return Zw(),null})):(a.callbackNode=null,a.callbackPriority=0),c=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||c){c=k.T,k.T=null,m=X.p,X.p=2,A=Ie,Ie|=4;try{_5(a,i,u)}finally{Ie=A,X.p=m,k.T=c}}_t=1,Vw(),Xw(),Fw()}}function Vw(){if(_t===1){_t=0;var a=ya,i=no,u=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||u){u=k.T,k.T=null;var c=X.p;X.p=2;var m=Ie;Ie|=4;try{Tw(i,a);var g=Dp,A=P1(a.containerInfo),R=g.focusedElem,U=g.selectionRange;if(A!==R&&R&&R.ownerDocument&&R1(R.ownerDocument.documentElement,R)){if(U!==null&&ih(R)){var Q=U.start,te=U.end;if(te===void 0&&(te=Q),"selectionStart"in R)R.selectionStart=Q,R.selectionEnd=Math.min(te,R.value.length);else{var ie=R.ownerDocument||document,J=ie&&ie.defaultView||window;if(J.getSelection){var ee=J.getSelection(),me=R.textContent.length,be=Math.min(U.start,me),Fe=U.end===void 0?be:Math.min(U.end,me);!ee.extend&&be>Fe&&(A=Fe,Fe=be,be=A);var V=M1(R,be),G=M1(R,Fe);if(V&&G&&(ee.rangeCount!==1||ee.anchorNode!==V.node||ee.anchorOffset!==V.offset||ee.focusNode!==G.node||ee.focusOffset!==G.offset)){var Z=ie.createRange();Z.setStart(V.node,V.offset),ee.removeAllRanges(),be>Fe?(ee.addRange(Z),ee.extend(G.node,G.offset)):(Z.setEnd(G.node,G.offset),ee.addRange(Z))}}}}for(ie=[],ee=R;ee=ee.parentNode;)ee.nodeType===1&&ie.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<ie.length;R++){var ae=ie[R];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}_c=!!Pp,Dp=Pp=null}finally{Ie=m,X.p=c,k.T=u}}a.current=i,_t=2}}function Xw(){if(_t===2){_t=0;var a=ya,i=no,u=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||u){u=k.T,k.T=null;var c=X.p;X.p=2;var m=Ie;Ie|=4;try{ww(a,i.alternate,i)}finally{Ie=m,X.p=c,k.T=u}}_t=3}}function Fw(){if(_t===4||_t===3){_t=0,ul();var a=ya,i=no,u=Cr,c=kw;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?_t=5:(_t=0,no=ya=null,Ww(a,a.pendingLanes));var m=a.pendingLanes;if(m===0&&(ma=null),zd(u),i=i.stateNode,on&&typeof on.onCommitFiberRoot=="function")try{on.onCommitFiberRoot(sl,i,void 0,(i.current.flags&128)===128)}catch{}if(c!==null){i=k.T,m=X.p,X.p=2,k.T=null;try{for(var g=a.onRecoverableError,A=0;A<c.length;A++){var R=c[A];g(R.value,{componentStack:R.stack})}}finally{k.T=i,X.p=m}}(Cr&3)!==0&&fc(),rr(a),m=a.pendingLanes,(u&261930)!==0&&(m&42)!==0?a===xp?Gl++:(Gl=0,xp=a):Gl=0,Yl(0)}}function Ww(a,i){(a.pooledCacheLanes&=i)===0&&(i=a.pooledCache,i!=null&&(a.pooledCache=null,Al(i)))}function fc(){return Vw(),Xw(),Fw(),Zw()}function Zw(){if(_t!==5)return!1;var a=ya,i=gp;gp=0;var u=zd(Cr),c=k.T,m=X.p;try{X.p=32>u?32:u,k.T=null,u=bp,bp=null;var g=ya,A=Cr;if(_t=0,no=ya=null,Cr=0,(Ie&6)!==0)throw Error(r(331));var R=Ie;if(Ie|=4,Rw(g.current),Nw(g,g.current,A,u),Ie=R,Yl(0,!1),on&&typeof on.onPostCommitFiberRoot=="function")try{on.onPostCommitFiberRoot(sl,g)}catch{}return!0}finally{X.p=m,k.T=c,Ww(a,i)}}function Qw(a,i,u){i=An(u,i),i=Qh(a.stateNode,i,2),a=sa(a,i,2),a!==null&&(fl(a,2),rr(a))}function Ke(a,i,u){if(a.tag===3)Qw(a,a,u);else for(;i!==null;){if(i.tag===3){Qw(i,a,u);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(ma===null||!ma.has(c))){a=An(u,a),u=JS(2),c=sa(i,u,2),c!==null&&(ew(u,c,i,a),fl(c,2),rr(c));break}}i=i.return}}function _p(a,i,u){var c=a.pingCache;if(c===null){c=a.pingCache=new j5;var m=new Set;c.set(i,m)}else m=c.get(i),m===void 0&&(m=new Set,c.set(i,m));m.has(u)||(mp=!0,m.add(u),a=M5.bind(null,a,i,u),i.then(a,a))}function M5(a,i,u){var c=a.pingCache;c!==null&&c.delete(i),a.pingedLanes|=a.suspendedLanes&u,a.warmLanes&=~u,Qe===a&&(De&u)===u&&(ht===4||ht===3&&(De&62914560)===De&&300>Ut()-ic?(Ie&2)===0&&ro(a,0):yp|=u,to===De&&(to=0)),rr(a)}function Jw(a,i){i===0&&(i=Vx()),a=Ua(a,i),a!==null&&(fl(a,i),rr(a))}function R5(a){var i=a.memoizedState,u=0;i!==null&&(u=i.retryLane),Jw(a,u)}function P5(a,i){var u=0;switch(a.tag){case 31:case 13:var c=a.stateNode,m=a.memoizedState;m!==null&&(u=m.retryLane);break;case 19:c=a.stateNode;break;case 22:c=a.stateNode._retryCache;break;default:throw Error(r(314))}c!==null&&c.delete(i),Jw(a,u)}function D5(a,i){return Jr(a,i)}var dc=null,io=null,Op=!1,hc=!1,Ap=!1,ga=0;function rr(a){a!==io&&a.next===null&&(io===null?dc=io=a:io=io.next=a),hc=!0,Op||(Op=!0,$5())}function Yl(a,i){if(!Ap&&hc){Ap=!0;do for(var u=!1,c=dc;c!==null;){if(a!==0){var m=c.pendingLanes;if(m===0)var g=0;else{var A=c.suspendedLanes,R=c.pingedLanes;g=(1<<31-ln(42|a)+1)-1,g&=m&~(A&~R),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(u=!0,r_(c,g))}else g=De,g=vs(c,c===Qe?g:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(g&3)===0||cl(c,g)||(u=!0,r_(c,g));c=c.next}while(u);Ap=!1}}function k5(){e_()}function e_(){hc=Op=!1;var a=0;ga!==0&&K5()&&(a=ga);for(var i=Ut(),u=null,c=dc;c!==null;){var m=c.next,g=t_(c,i);g===0?(c.next=null,u===null?dc=m:u.next=m,m===null&&(io=u)):(u=c,(a!==0||(g&3)!==0)&&(hc=!0)),c=m}_t!==0&&_t!==5||Yl(a),ga!==0&&(ga=0)}function t_(a,i){for(var u=a.suspendedLanes,c=a.pingedLanes,m=a.expirationTimes,g=a.pendingLanes&-62914561;0<g;){var A=31-ln(g),R=1<<A,U=m[A];U===-1?((R&u)===0||(R&c)!==0)&&(m[A]=u4(R,i)):U<=i&&(a.expiredLanes|=R),g&=~R}if(i=Qe,u=De,u=vs(a,a===i?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),c=a.callbackNode,u===0||a===i&&(Ye===2||Ye===9)||a.cancelPendingCommit!==null)return c!==null&&c!==null&&In(c),a.callbackNode=null,a.callbackPriority=0;if((u&3)===0||cl(a,u)){if(i=u&-u,i===a.callbackPriority)return i;switch(c!==null&&In(c),zd(u)){case 2:case 8:u=Yx;break;case 32:u=hs;break;case 268435456:u=Kx;break;default:u=hs}return c=n_.bind(null,a),u=Jr(u,c),a.callbackPriority=i,a.callbackNode=u,i}return c!==null&&c!==null&&In(c),a.callbackPriority=2,a.callbackNode=null,2}function n_(a,i){if(_t!==0&&_t!==5)return a.callbackNode=null,a.callbackPriority=0,null;var u=a.callbackNode;if(fc()&&a.callbackNode!==u)return null;var c=De;return c=vs(a,a===Qe?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),c===0?null:(Lw(a,c,i),t_(a,Ut()),a.callbackNode!=null&&a.callbackNode===u?n_.bind(null,a):null)}function r_(a,i){if(fc())return null;Lw(a,i,!0)}function $5(){X5(function(){(Ie&6)!==0?Jr(Gx,k5):e_()})}function jp(){if(ga===0){var a=Gi;a===0&&(a=ps,ps<<=1,(ps&261888)===0&&(ps=256)),ga=a}return ga}function a_(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:Ss(""+a)}function i_(a,i){var u=i.ownerDocument.createElement("input");return u.name=i.name,u.value=i.value,a.id&&u.setAttribute("form",a.id),i.parentNode.insertBefore(u,i),a=new FormData(a),u.parentNode.removeChild(u),a}function L5(a,i,u,c,m){if(i==="submit"&&u&&u.stateNode===m){var g=a_((m[Xt]||null).action),A=c.submitter;A&&(i=(i=A[Xt]||null)?a_(i.formAction):A.getAttribute("formAction"),i!==null&&(g=i,A=null));var R=new As("action","action",null,c,m);a.push({event:R,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(ga!==0){var U=A?i_(m,A):new FormData(m);Kh(u,{pending:!0,data:U,method:m.method,action:g},null,U)}}else typeof g=="function"&&(R.preventDefault(),U=A?i_(m,A):new FormData(m),Kh(u,{pending:!0,data:U,method:m.method,action:g},g,U))},currentTarget:m}]})}}for(var Tp=0;Tp<sh.length;Tp++){var Ep=sh[Tp],q5=Ep.toLowerCase(),B5=Ep[0].toUpperCase()+Ep.slice(1);Hn(q5,"on"+B5)}Hn($1,"onAnimationEnd"),Hn(L1,"onAnimationIteration"),Hn(q1,"onAnimationStart"),Hn("dblclick","onDoubleClick"),Hn("focusin","onFocus"),Hn("focusout","onBlur"),Hn(t5,"onTransitionRun"),Hn(n5,"onTransitionStart"),Hn(r5,"onTransitionCancel"),Hn(B1,"onTransitionEnd"),Ci("onMouseEnter",["mouseout","mouseover"]),Ci("onMouseLeave",["mouseout","mouseover"]),Ci("onPointerEnter",["pointerout","pointerover"]),Ci("onPointerLeave",["pointerout","pointerover"]),La("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),La("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),La("onBeforeInput",["compositionend","keypress","textInput","paste"]),La("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),La("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),La("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kl="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(" "),z5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kl));function o_(a,i){i=(i&4)!==0;for(var u=0;u<a.length;u++){var c=a[u],m=c.event;c=c.listeners;e:{var g=void 0;if(i)for(var A=c.length-1;0<=A;A--){var R=c[A],U=R.instance,Q=R.currentTarget;if(R=R.listener,U!==g&&m.isPropagationStopped())break e;g=R,m.currentTarget=Q;try{g(m)}catch(te){Es(te)}m.currentTarget=null,g=U}else for(A=0;A<c.length;A++){if(R=c[A],U=R.instance,Q=R.currentTarget,R=R.listener,U!==g&&m.isPropagationStopped())break e;g=R,m.currentTarget=Q;try{g(m)}catch(te){Es(te)}m.currentTarget=null,g=U}}}}function Pe(a,i){var u=i[Ud];u===void 0&&(u=i[Ud]=new Set);var c=a+"__bubble";u.has(c)||(l_(i,a,2,!1),u.add(c))}function Np(a,i,u){var c=0;i&&(c|=4),l_(u,a,c,i)}var pc="_reactListening"+Math.random().toString(36).slice(2);function Cp(a){if(!a[pc]){a[pc]=!0,e1.forEach(function(u){u!=="selectionchange"&&(z5.has(u)||Np(u,!1,a),Np(u,!0,a))});var i=a.nodeType===9?a:a.ownerDocument;i===null||i[pc]||(i[pc]=!0,Np("selectionchange",!1,i))}}function l_(a,i,u,c){switch($_(i)){case 2:var m=pP;break;case 8:m=mP;break;default:m=Yp}u=m.bind(null,i,u,a),m=void 0,!Wd||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(m=!0),c?m!==void 0?a.addEventListener(i,u,{capture:!0,passive:m}):a.addEventListener(i,u,!0):m!==void 0?a.addEventListener(i,u,{passive:m}):a.addEventListener(i,u,!1)}function Mp(a,i,u,c,m){var g=c;if((i&1)===0&&(i&2)===0&&c!==null)e:for(;;){if(c===null)return;var A=c.tag;if(A===3||A===4){var R=c.stateNode.containerInfo;if(R===m)break;if(A===4)for(A=c.return;A!==null;){var U=A.tag;if((U===3||U===4)&&A.stateNode.containerInfo===m)return;A=A.return}for(;R!==null;){if(A=Ti(R),A===null)return;if(U=A.tag,U===5||U===6||U===26||U===27){c=g=A;continue e}R=R.parentNode}}c=c.return}d1(function(){var Q=g,te=Xd(u),ie=[];e:{var J=z1.get(a);if(J!==void 0){var ee=As,me=a;switch(a){case"keypress":if(_s(u)===0)break e;case"keydown":case"keyup":ee=P4;break;case"focusin":me="focus",ee=eh;break;case"focusout":me="blur",ee=eh;break;case"beforeblur":case"afterblur":ee=eh;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=m1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=S4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=$4;break;case $1:case L1:case q1:ee=O4;break;case B1:ee=q4;break;case"scroll":case"scrollend":ee=b4;break;case"wheel":ee=z4;break;case"copy":case"cut":case"paste":ee=j4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=v1;break;case"toggle":case"beforetoggle":ee=I4}var be=(i&4)!==0,Fe=!be&&(a==="scroll"||a==="scrollend"),V=be?J!==null?J+"Capture":null:J;be=[];for(var G=Q,Z;G!==null;){var ae=G;if(Z=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||Z===null||V===null||(ae=pl(G,V),ae!=null&&be.push(Vl(G,ae,Z))),Fe)break;G=G.return}0<be.length&&(J=new ee(J,me,null,u,te),ie.push({event:J,listeners:be}))}}if((i&7)===0){e:{if(J=a==="mouseover"||a==="pointerover",ee=a==="mouseout"||a==="pointerout",J&&u!==Vd&&(me=u.relatedTarget||u.fromElement)&&(Ti(me)||me[ji]))break e;if((ee||J)&&(J=te.window===te?te:(J=te.ownerDocument)?J.defaultView||J.parentWindow:window,ee?(me=u.relatedTarget||u.toElement,ee=Q,me=me?Ti(me):null,me!==null&&(Fe=l(me),be=me.tag,me!==Fe||be!==5&&be!==27&&be!==6)&&(me=null)):(ee=null,me=Q),ee!==me)){if(be=m1,ae="onMouseLeave",V="onMouseEnter",G="mouse",(a==="pointerout"||a==="pointerover")&&(be=v1,ae="onPointerLeave",V="onPointerEnter",G="pointer"),Fe=ee==null?J:hl(ee),Z=me==null?J:hl(me),J=new be(ae,G+"leave",ee,u,te),J.target=Fe,J.relatedTarget=Z,ae=null,Ti(te)===Q&&(be=new be(V,G+"enter",me,u,te),be.target=Z,be.relatedTarget=Fe,ae=be),Fe=ae,ee&&me)t:{for(be=U5,V=ee,G=me,Z=0,ae=V;ae;ae=be(ae))Z++;ae=0;for(var ve=G;ve;ve=be(ve))ae++;for(;0<Z-ae;)V=be(V),Z--;for(;0<ae-Z;)G=be(G),ae--;for(;Z--;){if(V===G||G!==null&&V===G.alternate){be=V;break t}V=be(V),G=be(G)}be=null}else be=null;ee!==null&&u_(ie,J,ee,be,!1),me!==null&&Fe!==null&&u_(ie,Fe,me,be,!0)}}e:{if(J=Q?hl(Q):window,ee=J.nodeName&&J.nodeName.toLowerCase(),ee==="select"||ee==="input"&&J.type==="file")var Be=A1;else if(_1(J))if(j1)Be=Q4;else{Be=W4;var ye=F4}else ee=J.nodeName,!ee||ee.toLowerCase()!=="input"||J.type!=="checkbox"&&J.type!=="radio"?Q&&Kd(Q.elementType)&&(Be=A1):Be=Z4;if(Be&&(Be=Be(a,Q))){O1(ie,Be,u,te);break e}ye&&ye(a,J,Q),a==="focusout"&&Q&&J.type==="number"&&Q.memoizedProps.value!=null&&Yd(J,"number",J.value)}switch(ye=Q?hl(Q):window,a){case"focusin":(_1(ye)||ye.contentEditable==="true")&&($i=ye,oh=Q,wl=null);break;case"focusout":wl=oh=$i=null;break;case"mousedown":lh=!0;break;case"contextmenu":case"mouseup":case"dragend":lh=!1,D1(ie,u,te);break;case"selectionchange":if(e5)break;case"keydown":case"keyup":D1(ie,u,te)}var Ce;if(nh)e:{switch(a){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else ki?S1(a,u)&&(ke="onCompositionEnd"):a==="keydown"&&u.keyCode===229&&(ke="onCompositionStart");ke&&(g1&&u.locale!=="ko"&&(ki||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&ki&&(Ce=h1()):(na=te,Zd="value"in na?na.value:na.textContent,ki=!0)),ye=mc(Q,ke),0<ye.length&&(ke=new y1(ke,a,null,u,te),ie.push({event:ke,listeners:ye}),Ce?ke.data=Ce:(Ce=w1(u),Ce!==null&&(ke.data=Ce)))),(Ce=G4?Y4(a,u):K4(a,u))&&(ke=mc(Q,"onBeforeInput"),0<ke.length&&(ye=new y1("onBeforeInput","beforeinput",null,u,te),ie.push({event:ye,listeners:ke}),ye.data=Ce)),L5(ie,a,Q,u,te)}o_(ie,i)})}function Vl(a,i,u){return{instance:a,listener:i,currentTarget:u}}function mc(a,i){for(var u=i+"Capture",c=[];a!==null;){var m=a,g=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||g===null||(m=pl(a,u),m!=null&&c.unshift(Vl(a,m,g)),m=pl(a,i),m!=null&&c.push(Vl(a,m,g))),a.tag===3)return c;a=a.return}return[]}function U5(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function u_(a,i,u,c,m){for(var g=i._reactName,A=[];u!==null&&u!==c;){var R=u,U=R.alternate,Q=R.stateNode;if(R=R.tag,U!==null&&U===c)break;R!==5&&R!==26&&R!==27||Q===null||(U=Q,m?(Q=pl(u,g),Q!=null&&A.unshift(Vl(u,Q,U))):m||(Q=pl(u,g),Q!=null&&A.push(Vl(u,Q,U)))),u=u.return}A.length!==0&&a.push({event:i,listeners:A})}var I5=/\r\n?/g,H5=/\u0000|\uFFFD/g;function s_(a){return(typeof a=="string"?a:""+a).replace(I5,`
|
|
49
|
+
`).replace(H5,"")}function c_(a,i){return i=s_(i),s_(a)===i}function Xe(a,i,u,c,m,g){switch(u){case"children":typeof c=="string"?i==="body"||i==="textarea"&&c===""||Ri(a,c):(typeof c=="number"||typeof c=="bigint")&&i!=="body"&&Ri(a,""+c);break;case"className":bs(a,"class",c);break;case"tabIndex":bs(a,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":bs(a,u,c);break;case"style":c1(a,c,g);break;case"data":if(i!=="object"){bs(a,"data",c);break}case"src":case"href":if(c===""&&(i!=="a"||u!=="href")){a.removeAttribute(u);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){a.removeAttribute(u);break}c=Ss(""+c),a.setAttribute(u,c);break;case"action":case"formAction":if(typeof c=="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 g=="function"&&(u==="formAction"?(i!=="input"&&Xe(a,i,"name",m.name,m,null),Xe(a,i,"formEncType",m.formEncType,m,null),Xe(a,i,"formMethod",m.formMethod,m,null),Xe(a,i,"formTarget",m.formTarget,m,null)):(Xe(a,i,"encType",m.encType,m,null),Xe(a,i,"method",m.method,m,null),Xe(a,i,"target",m.target,m,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){a.removeAttribute(u);break}c=Ss(""+c),a.setAttribute(u,c);break;case"onClick":c!=null&&(a.onclick=mr);break;case"onScroll":c!=null&&Pe("scroll",a);break;case"onScrollEnd":c!=null&&Pe("scrollend",a);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(u=c.__html,u!=null){if(m.children!=null)throw Error(r(60));a.innerHTML=u}}break;case"multiple":a.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":a.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){a.removeAttribute("xlink:href");break}u=Ss(""+c),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":c!=null&&typeof c!="function"&&typeof c!="symbol"?a.setAttribute(u,""+c):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":c&&typeof c!="function"&&typeof c!="symbol"?a.setAttribute(u,""):a.removeAttribute(u);break;case"capture":case"download":c===!0?a.setAttribute(u,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?a.setAttribute(u,c):a.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?a.setAttribute(u,c):a.removeAttribute(u);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?a.removeAttribute(u):a.setAttribute(u,c);break;case"popover":Pe("beforetoggle",a),Pe("toggle",a),gs(a,"popover",c);break;case"xlinkActuate":pr(a,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":pr(a,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":pr(a,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":pr(a,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":pr(a,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":pr(a,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":pr(a,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":pr(a,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":pr(a,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":gs(a,"is",c);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=v4.get(u)||u,gs(a,u,c))}}function Rp(a,i,u,c,m,g){switch(u){case"style":c1(a,c,g);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(u=c.__html,u!=null){if(m.children!=null)throw Error(r(60));a.innerHTML=u}}break;case"children":typeof c=="string"?Ri(a,c):(typeof c=="number"||typeof c=="bigint")&&Ri(a,""+c);break;case"onScroll":c!=null&&Pe("scroll",a);break;case"onScrollEnd":c!=null&&Pe("scrollend",a);break;case"onClick":c!=null&&(a.onclick=mr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!t1.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(m=u.endsWith("Capture"),i=u.slice(2,m?u.length-7:void 0),g=a[Xt]||null,g=g!=null?g[u]:null,typeof g=="function"&&a.removeEventListener(i,g,m),typeof c=="function")){typeof g!="function"&&g!==null&&(u in a?a[u]=null:a.hasAttribute(u)&&a.removeAttribute(u)),a.addEventListener(i,c,m);break e}u in a?a[u]=c:c===!0?a.setAttribute(u,""):gs(a,u,c)}}}function qt(a,i,u){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pe("error",a),Pe("load",a);var c=!1,m=!1,g;for(g in u)if(u.hasOwnProperty(g)){var A=u[g];if(A!=null)switch(g){case"src":c=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Xe(a,i,g,A,u,null)}}m&&Xe(a,i,"srcSet",u.srcSet,u,null),c&&Xe(a,i,"src",u.src,u,null);return;case"input":Pe("invalid",a);var R=g=A=m=null,U=null,Q=null;for(c in u)if(u.hasOwnProperty(c)){var te=u[c];if(te!=null)switch(c){case"name":m=te;break;case"type":A=te;break;case"checked":U=te;break;case"defaultChecked":Q=te;break;case"value":g=te;break;case"defaultValue":R=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(r(137,i));break;default:Xe(a,i,c,te,u,null)}}o1(a,g,R,U,Q,A,m,!1);return;case"select":Pe("invalid",a),c=A=g=null;for(m in u)if(u.hasOwnProperty(m)&&(R=u[m],R!=null))switch(m){case"value":g=R;break;case"defaultValue":A=R;break;case"multiple":c=R;default:Xe(a,i,m,R,u,null)}i=g,u=A,a.multiple=!!c,i!=null?Mi(a,!!c,i,!1):u!=null&&Mi(a,!!c,u,!0);return;case"textarea":Pe("invalid",a),g=m=c=null;for(A in u)if(u.hasOwnProperty(A)&&(R=u[A],R!=null))switch(A){case"value":c=R;break;case"defaultValue":m=R;break;case"children":g=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(91));break;default:Xe(a,i,A,R,u,null)}u1(a,c,m,g);return;case"option":for(U in u)u.hasOwnProperty(U)&&(c=u[U],c!=null)&&(U==="selected"?a.selected=c&&typeof c!="function"&&typeof c!="symbol":Xe(a,i,U,c,u,null));return;case"dialog":Pe("beforetoggle",a),Pe("toggle",a),Pe("cancel",a),Pe("close",a);break;case"iframe":case"object":Pe("load",a);break;case"video":case"audio":for(c=0;c<Kl.length;c++)Pe(Kl[c],a);break;case"image":Pe("error",a),Pe("load",a);break;case"details":Pe("toggle",a);break;case"embed":case"source":case"link":Pe("error",a),Pe("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(Q in u)if(u.hasOwnProperty(Q)&&(c=u[Q],c!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Xe(a,i,Q,c,u,null)}return;default:if(Kd(i)){for(te in u)u.hasOwnProperty(te)&&(c=u[te],c!==void 0&&Rp(a,i,te,c,u,void 0));return}}for(R in u)u.hasOwnProperty(R)&&(c=u[R],c!=null&&Xe(a,i,R,c,u,null))}function G5(a,i,u,c){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,g=null,A=null,R=null,U=null,Q=null,te=null;for(ee in u){var ie=u[ee];if(u.hasOwnProperty(ee)&&ie!=null)switch(ee){case"checked":break;case"value":break;case"defaultValue":U=ie;default:c.hasOwnProperty(ee)||Xe(a,i,ee,null,c,ie)}}for(var J in c){var ee=c[J];if(ie=u[J],c.hasOwnProperty(J)&&(ee!=null||ie!=null))switch(J){case"type":g=ee;break;case"name":m=ee;break;case"checked":Q=ee;break;case"defaultChecked":te=ee;break;case"value":A=ee;break;case"defaultValue":R=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(137,i));break;default:ee!==ie&&Xe(a,i,J,ee,c,ie)}}Gd(a,A,R,U,Q,te,g,m);return;case"select":ee=A=R=J=null;for(g in u)if(U=u[g],u.hasOwnProperty(g)&&U!=null)switch(g){case"value":break;case"multiple":ee=U;default:c.hasOwnProperty(g)||Xe(a,i,g,null,c,U)}for(m in c)if(g=c[m],U=u[m],c.hasOwnProperty(m)&&(g!=null||U!=null))switch(m){case"value":J=g;break;case"defaultValue":R=g;break;case"multiple":A=g;default:g!==U&&Xe(a,i,m,g,c,U)}i=R,u=A,c=ee,J!=null?Mi(a,!!u,J,!1):!!c!=!!u&&(i!=null?Mi(a,!!u,i,!0):Mi(a,!!u,u?[]:"",!1));return;case"textarea":ee=J=null;for(R in u)if(m=u[R],u.hasOwnProperty(R)&&m!=null&&!c.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:Xe(a,i,R,null,c,m)}for(A in c)if(m=c[A],g=u[A],c.hasOwnProperty(A)&&(m!=null||g!=null))switch(A){case"value":J=m;break;case"defaultValue":ee=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(r(91));break;default:m!==g&&Xe(a,i,A,m,c,g)}l1(a,J,ee);return;case"option":for(var me in u)J=u[me],u.hasOwnProperty(me)&&J!=null&&!c.hasOwnProperty(me)&&(me==="selected"?a.selected=!1:Xe(a,i,me,null,c,J));for(U in c)J=c[U],ee=u[U],c.hasOwnProperty(U)&&J!==ee&&(J!=null||ee!=null)&&(U==="selected"?a.selected=J&&typeof J!="function"&&typeof J!="symbol":Xe(a,i,U,J,c,ee));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var be in u)J=u[be],u.hasOwnProperty(be)&&J!=null&&!c.hasOwnProperty(be)&&Xe(a,i,be,null,c,J);for(Q in c)if(J=c[Q],ee=u[Q],c.hasOwnProperty(Q)&&J!==ee&&(J!=null||ee!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(r(137,i));break;default:Xe(a,i,Q,J,c,ee)}return;default:if(Kd(i)){for(var Fe in u)J=u[Fe],u.hasOwnProperty(Fe)&&J!==void 0&&!c.hasOwnProperty(Fe)&&Rp(a,i,Fe,void 0,c,J);for(te in c)J=c[te],ee=u[te],!c.hasOwnProperty(te)||J===ee||J===void 0&&ee===void 0||Rp(a,i,te,J,c,ee);return}}for(var V in u)J=u[V],u.hasOwnProperty(V)&&J!=null&&!c.hasOwnProperty(V)&&Xe(a,i,V,null,c,J);for(ie in c)J=c[ie],ee=u[ie],!c.hasOwnProperty(ie)||J===ee||J==null&&ee==null||Xe(a,i,ie,J,c,ee)}function f_(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Y5(){if(typeof performance.getEntriesByType=="function"){for(var a=0,i=0,u=performance.getEntriesByType("resource"),c=0;c<u.length;c++){var m=u[c],g=m.transferSize,A=m.initiatorType,R=m.duration;if(g&&R&&f_(A)){for(A=0,R=m.responseEnd,c+=1;c<u.length;c++){var U=u[c],Q=U.startTime;if(Q>R)break;var te=U.transferSize,ie=U.initiatorType;te&&f_(ie)&&(U=U.responseEnd,A+=te*(U<R?1:(R-Q)/(U-Q)))}if(--c,i+=8*(g+A)/(m.duration/1e3),a++,10<a)break}}if(0<a)return i/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var Pp=null,Dp=null;function yc(a){return a.nodeType===9?a:a.ownerDocument}function d_(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 h_(a,i){if(a===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&i==="foreignObject"?0:a}function kp(a,i){return a==="textarea"||a==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var $p=null;function K5(){var a=window.event;return a&&a.type==="popstate"?a===$p?!1:($p=a,!0):($p=null,!1)}var p_=typeof setTimeout=="function"?setTimeout:void 0,V5=typeof clearTimeout=="function"?clearTimeout:void 0,m_=typeof Promise=="function"?Promise:void 0,X5=typeof queueMicrotask=="function"?queueMicrotask:typeof m_<"u"?function(a){return m_.resolve(null).then(a).catch(F5)}:p_;function F5(a){setTimeout(function(){throw a})}function ba(a){return a==="head"}function y_(a,i){var u=i,c=0;do{var m=u.nextSibling;if(a.removeChild(u),m&&m.nodeType===8)if(u=m.data,u==="/$"||u==="/&"){if(c===0){a.removeChild(m),so(i);return}c--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")c++;else if(u==="html")Xl(a.ownerDocument.documentElement);else if(u==="head"){u=a.ownerDocument.head,Xl(u);for(var g=u.firstChild;g;){var A=g.nextSibling,R=g.nodeName;g[dl]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&g.rel.toLowerCase()==="stylesheet"||u.removeChild(g),g=A}}else u==="body"&&Xl(a.ownerDocument.body);u=m}while(u);so(i)}function v_(a,i){var u=a;a=0;do{var c=u.nextSibling;if(u.nodeType===1?i?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(i?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),c&&c.nodeType===8)if(u=c.data,u==="/$"){if(a===0)break;a--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||a++;u=c}while(u)}function Lp(a){var i=a.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var u=i;switch(i=i.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Lp(u),Id(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}a.removeChild(u)}}function W5(a,i,u,c){for(;a.nodeType===1;){var m=u;if(a.nodeName.toLowerCase()!==i.toLowerCase()){if(!c&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(c){if(!a[dl])switch(i){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(g=a.getAttribute("rel"),g==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(g!==m.rel||a.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||a.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||a.getAttribute("title")!==(m.title==null?null:m.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(g=a.getAttribute("src"),(g!==(m.src==null?null:m.src)||a.getAttribute("type")!==(m.type==null?null:m.type)||a.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&g&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(i==="input"&&a.type==="hidden"){var g=m.name==null?null:""+m.name;if(m.type==="hidden"&&a.getAttribute("name")===g)return a}else return a;if(a=Cn(a.nextSibling),a===null)break}return null}function Z5(a,i,u){if(i==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!u||(a=Cn(a.nextSibling),a===null))return null;return a}function g_(a,i){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!i||(a=Cn(a.nextSibling),a===null))return null;return a}function qp(a){return a.data==="$?"||a.data==="$~"}function Bp(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function Q5(a,i){var u=a.ownerDocument;if(a.data==="$~")a._reactRetry=i;else if(a.data!=="$?"||u.readyState!=="loading")i();else{var c=function(){i(),u.removeEventListener("DOMContentLoaded",c)};u.addEventListener("DOMContentLoaded",c),a._reactRetry=c}}function Cn(a){for(;a!=null;a=a.nextSibling){var i=a.nodeType;if(i===1||i===3)break;if(i===8){if(i=a.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return a}var zp=null;function b_(a){a=a.nextSibling;for(var i=0;a;){if(a.nodeType===8){var u=a.data;if(u==="/$"||u==="/&"){if(i===0)return Cn(a.nextSibling);i--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||i++}a=a.nextSibling}return null}function x_(a){a=a.previousSibling;for(var i=0;a;){if(a.nodeType===8){var u=a.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(i===0)return a;i--}else u!=="/$"&&u!=="/&"||i++}a=a.previousSibling}return null}function S_(a,i,u){switch(i=yc(u),a){case"html":if(a=i.documentElement,!a)throw Error(r(452));return a;case"head":if(a=i.head,!a)throw Error(r(453));return a;case"body":if(a=i.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function Xl(a){for(var i=a.attributes;i.length;)a.removeAttributeNode(i[0]);Id(a)}var Mn=new Map,w_=new Set;function vc(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var Mr=X.d;X.d={f:J5,r:eP,D:tP,C:nP,L:rP,m:aP,X:oP,S:iP,M:lP};function J5(){var a=Mr.f(),i=uc();return a||i}function eP(a){var i=Ei(a);i!==null&&i.tag===5&&i.type==="form"?BS(i):Mr.r(a)}var oo=typeof document>"u"?null:document;function __(a,i,u){var c=oo;if(c&&typeof i=="string"&&i){var m=_n(i);m='link[rel="'+a+'"][href="'+m+'"]',typeof u=="string"&&(m+='[crossorigin="'+u+'"]'),w_.has(m)||(w_.add(m),a={rel:a,crossOrigin:u,href:i},c.querySelector(m)===null&&(i=c.createElement("link"),qt(i,"link",a),Nt(i),c.head.appendChild(i)))}}function tP(a){Mr.D(a),__("dns-prefetch",a,null)}function nP(a,i){Mr.C(a,i),__("preconnect",a,i)}function rP(a,i,u){Mr.L(a,i,u);var c=oo;if(c&&a&&i){var m='link[rel="preload"][as="'+_n(i)+'"]';i==="image"&&u&&u.imageSrcSet?(m+='[imagesrcset="'+_n(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(m+='[imagesizes="'+_n(u.imageSizes)+'"]')):m+='[href="'+_n(a)+'"]';var g=m;switch(i){case"style":g=lo(a);break;case"script":g=uo(a)}Mn.has(g)||(a=p({rel:"preload",href:i==="image"&&u&&u.imageSrcSet?void 0:a,as:i},u),Mn.set(g,a),c.querySelector(m)!==null||i==="style"&&c.querySelector(Fl(g))||i==="script"&&c.querySelector(Wl(g))||(i=c.createElement("link"),qt(i,"link",a),Nt(i),c.head.appendChild(i)))}}function aP(a,i){Mr.m(a,i);var u=oo;if(u&&a){var c=i&&typeof i.as=="string"?i.as:"script",m='link[rel="modulepreload"][as="'+_n(c)+'"][href="'+_n(a)+'"]',g=m;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=uo(a)}if(!Mn.has(g)&&(a=p({rel:"modulepreload",href:a},i),Mn.set(g,a),u.querySelector(m)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Wl(g)))return}c=u.createElement("link"),qt(c,"link",a),Nt(c),u.head.appendChild(c)}}}function iP(a,i,u){Mr.S(a,i,u);var c=oo;if(c&&a){var m=Ni(c).hoistableStyles,g=lo(a);i=i||"default";var A=m.get(g);if(!A){var R={loading:0,preload:null};if(A=c.querySelector(Fl(g)))R.loading=5;else{a=p({rel:"stylesheet",href:a,"data-precedence":i},u),(u=Mn.get(g))&&Up(a,u);var U=A=c.createElement("link");Nt(U),qt(U,"link",a),U._p=new Promise(function(Q,te){U.onload=Q,U.onerror=te}),U.addEventListener("load",function(){R.loading|=1}),U.addEventListener("error",function(){R.loading|=2}),R.loading|=4,gc(A,i,c)}A={type:"stylesheet",instance:A,count:1,state:R},m.set(g,A)}}}function oP(a,i){Mr.X(a,i);var u=oo;if(u&&a){var c=Ni(u).hoistableScripts,m=uo(a),g=c.get(m);g||(g=u.querySelector(Wl(m)),g||(a=p({src:a,async:!0},i),(i=Mn.get(m))&&Ip(a,i),g=u.createElement("script"),Nt(g),qt(g,"link",a),u.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(m,g))}}function lP(a,i){Mr.M(a,i);var u=oo;if(u&&a){var c=Ni(u).hoistableScripts,m=uo(a),g=c.get(m);g||(g=u.querySelector(Wl(m)),g||(a=p({src:a,async:!0,type:"module"},i),(i=Mn.get(m))&&Ip(a,i),g=u.createElement("script"),Nt(g),qt(g,"link",a),u.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(m,g))}}function O_(a,i,u,c){var m=(m=le.current)?vc(m):null;if(!m)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(i=lo(u.href),u=Ni(m).hoistableStyles,c=u.get(i),c||(c={type:"style",instance:null,count:0,state:null},u.set(i,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){a=lo(u.href);var g=Ni(m).hoistableStyles,A=g.get(a);if(A||(m=m.ownerDocument||m,A={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(a,A),(g=m.querySelector(Fl(a)))&&!g._p&&(A.instance=g,A.state.loading=5),Mn.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},Mn.set(a,u),g||uP(m,a,u,A.state))),i&&c===null)throw Error(r(528,""));return A}if(i&&c!==null)throw Error(r(529,""));return null;case"script":return i=u.async,u=u.src,typeof u=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=uo(u),u=Ni(m).hoistableScripts,c=u.get(i),c||(c={type:"script",instance:null,count:0,state:null},u.set(i,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function lo(a){return'href="'+_n(a)+'"'}function Fl(a){return'link[rel="stylesheet"]['+a+"]"}function A_(a){return p({},a,{"data-precedence":a.precedence,precedence:null})}function uP(a,i,u,c){a.querySelector('link[rel="preload"][as="style"]['+i+"]")?c.loading=1:(i=a.createElement("link"),c.preload=i,i.addEventListener("load",function(){return c.loading|=1}),i.addEventListener("error",function(){return c.loading|=2}),qt(i,"link",u),Nt(i),a.head.appendChild(i))}function uo(a){return'[src="'+_n(a)+'"]'}function Wl(a){return"script[async]"+a}function j_(a,i,u){if(i.count++,i.instance===null)switch(i.type){case"style":var c=a.querySelector('style[data-href~="'+_n(u.href)+'"]');if(c)return i.instance=c,Nt(c),c;var m=p({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return c=(a.ownerDocument||a).createElement("style"),Nt(c),qt(c,"style",m),gc(c,u.precedence,a),i.instance=c;case"stylesheet":m=lo(u.href);var g=a.querySelector(Fl(m));if(g)return i.state.loading|=4,i.instance=g,Nt(g),g;c=A_(u),(m=Mn.get(m))&&Up(c,m),g=(a.ownerDocument||a).createElement("link"),Nt(g);var A=g;return A._p=new Promise(function(R,U){A.onload=R,A.onerror=U}),qt(g,"link",c),i.state.loading|=4,gc(g,u.precedence,a),i.instance=g;case"script":return g=uo(u.src),(m=a.querySelector(Wl(g)))?(i.instance=m,Nt(m),m):(c=u,(m=Mn.get(g))&&(c=p({},u),Ip(c,m)),a=a.ownerDocument||a,m=a.createElement("script"),Nt(m),qt(m,"link",c),a.head.appendChild(m),i.instance=m);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(c=i.instance,i.state.loading|=4,gc(c,u.precedence,a));return i.instance}function gc(a,i,u){for(var c=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=c.length?c[c.length-1]:null,g=m,A=0;A<c.length;A++){var R=c[A];if(R.dataset.precedence===i)g=R;else if(g!==m)break}g?g.parentNode.insertBefore(a,g.nextSibling):(i=u.nodeType===9?u.head:u,i.insertBefore(a,i.firstChild))}function Up(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.title==null&&(a.title=i.title)}function Ip(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.integrity==null&&(a.integrity=i.integrity)}var bc=null;function T_(a,i,u){if(bc===null){var c=new Map,m=bc=new Map;m.set(u,c)}else m=bc,c=m.get(u),c||(c=new Map,m.set(u,c));if(c.has(a))return c;for(c.set(a,null),u=u.getElementsByTagName(a),m=0;m<u.length;m++){var g=u[m];if(!(g[dl]||g[Dt]||a==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var A=g.getAttribute(i)||"";A=a+A;var R=c.get(A);R?R.push(g):c.set(A,[g])}}return c}function E_(a,i,u){a=a.ownerDocument||a,a.head.insertBefore(u,i==="title"?a.querySelector("head > title"):null)}function sP(a,i,u){if(u===1||i.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;return i.rel==="stylesheet"?(a=i.disabled,typeof i.precedence=="string"&&a==null):!0;case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function N_(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function cP(a,i,u,c){if(u.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var m=lo(c.href),g=i.querySelector(Fl(m));if(g){i=g._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(a.count++,a=xc.bind(a),i.then(a,a)),u.state.loading|=4,u.instance=g,Nt(g);return}g=i.ownerDocument||i,c=A_(c),(m=Mn.get(m))&&Up(c,m),g=g.createElement("link"),Nt(g);var A=g;A._p=new Promise(function(R,U){A.onload=R,A.onerror=U}),qt(g,"link",c),u.instance=g}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(u,i),(i=u.state.preload)&&(u.state.loading&3)===0&&(a.count++,u=xc.bind(a),i.addEventListener("load",u),i.addEventListener("error",u))}}var Hp=0;function fP(a,i){return a.stylesheets&&a.count===0&&wc(a,a.stylesheets),0<a.count||0<a.imgCount?function(u){var c=setTimeout(function(){if(a.stylesheets&&wc(a,a.stylesheets),a.unsuspend){var g=a.unsuspend;a.unsuspend=null,g()}},6e4+i);0<a.imgBytes&&Hp===0&&(Hp=62500*Y5());var m=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&wc(a,a.stylesheets),a.unsuspend)){var g=a.unsuspend;a.unsuspend=null,g()}},(a.imgBytes>Hp?50:800)+i);return a.unsuspend=u,function(){a.unsuspend=null,clearTimeout(c),clearTimeout(m)}}:null}function xc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)wc(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var Sc=null;function wc(a,i){a.stylesheets=null,a.unsuspend!==null&&(a.count++,Sc=new Map,i.forEach(dP,a),Sc=null,xc.call(a))}function dP(a,i){if(!(i.state.loading&4)){var u=Sc.get(a);if(u)var c=u.get(null);else{u=new Map,Sc.set(a,u);for(var m=a.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<m.length;g++){var A=m[g];(A.nodeName==="LINK"||A.getAttribute("media")!=="not all")&&(u.set(A.dataset.precedence,A),c=A)}c&&u.set(null,c)}m=i.instance,A=m.getAttribute("data-precedence"),g=u.get(A)||c,g===c&&u.set(null,m),u.set(A,m),this.count++,c=xc.bind(this),m.addEventListener("load",c),m.addEventListener("error",c),g?g.parentNode.insertBefore(m,g.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(m,a.firstChild)),i.state.loading|=4}}var Zl={$$typeof:E,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function hP(a,i,u,c,m,g,A,R,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=qd(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qd(0),this.hiddenUpdates=qd(null),this.identifierPrefix=c,this.onUncaughtError=m,this.onCaughtError=g,this.onRecoverableError=A,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map}function C_(a,i,u,c,m,g,A,R,U,Q,te,ie){return a=new hP(a,i,u,A,U,Q,te,ie,R),i=1,g===!0&&(i|=24),g=sn(3,null,null,i),a.current=g,g.stateNode=a,i=wh(),i.refCount++,a.pooledCache=i,i.refCount++,g.memoizedState={element:c,isDehydrated:u,cache:i},jh(g),a}function M_(a){return a?(a=Bi,a):Bi}function R_(a,i,u,c,m,g){m=M_(m),c.context===null?c.context=m:c.pendingContext=m,c=ua(i),c.payload={element:u},g=g===void 0?null:g,g!==null&&(c.callback=g),u=sa(a,c,i),u!==null&&(en(u,a,i),Nl(u,a,i))}function P_(a,i){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var u=a.retryLane;a.retryLane=u!==0&&u<i?u:i}}function Gp(a,i){P_(a,i),(a=a.alternate)&&P_(a,i)}function D_(a){if(a.tag===13||a.tag===31){var i=Ua(a,67108864);i!==null&&en(i,a,67108864),Gp(a,67108864)}}function k_(a){if(a.tag===13||a.tag===31){var i=pn();i=Bd(i);var u=Ua(a,i);u!==null&&en(u,a,i),Gp(a,i)}}var _c=!0;function pP(a,i,u,c){var m=k.T;k.T=null;var g=X.p;try{X.p=2,Yp(a,i,u,c)}finally{X.p=g,k.T=m}}function mP(a,i,u,c){var m=k.T;k.T=null;var g=X.p;try{X.p=8,Yp(a,i,u,c)}finally{X.p=g,k.T=m}}function Yp(a,i,u,c){if(_c){var m=Kp(c);if(m===null)Mp(a,i,c,Oc,u),L_(a,c);else if(vP(m,a,i,u,c))c.stopPropagation();else if(L_(a,c),i&4&&-1<yP.indexOf(a)){for(;m!==null;){var g=Ei(m);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var A=$a(g.pendingLanes);if(A!==0){var R=g;for(R.pendingLanes|=2,R.entangledLanes|=2;A;){var U=1<<31-ln(A);R.entanglements[1]|=U,A&=~U}rr(g),(Ie&6)===0&&(oc=Ut()+500,Yl(0))}}break;case 31:case 13:R=Ua(g,2),R!==null&&en(R,g,2),uc(),Gp(g,2)}if(g=Kp(c),g===null&&Mp(a,i,c,Oc,u),g===m)break;m=g}m!==null&&c.stopPropagation()}else Mp(a,i,c,null,u)}}function Kp(a){return a=Xd(a),Vp(a)}var Oc=null;function Vp(a){if(Oc=null,a=Ti(a),a!==null){var i=l(a);if(i===null)a=null;else{var u=i.tag;if(u===13){if(a=s(i),a!==null)return a;a=null}else if(u===31){if(a=f(i),a!==null)return a;a=null}else if(u===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;a=null}else i!==a&&(a=null)}}return Oc=a,null}function $_(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(ds()){case Gx:return 2;case Yx:return 8;case hs:case n4:return 32;case Kx:return 268435456;default:return 32}default:return 32}}var Xp=!1,xa=null,Sa=null,wa=null,Ql=new Map,Jl=new Map,_a=[],yP="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 L_(a,i){switch(a){case"focusin":case"focusout":xa=null;break;case"dragenter":case"dragleave":Sa=null;break;case"mouseover":case"mouseout":wa=null;break;case"pointerover":case"pointerout":Ql.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Jl.delete(i.pointerId)}}function eu(a,i,u,c,m,g){return a===null||a.nativeEvent!==g?(a={blockedOn:i,domEventName:u,eventSystemFlags:c,nativeEvent:g,targetContainers:[m]},i!==null&&(i=Ei(i),i!==null&&D_(i)),a):(a.eventSystemFlags|=c,i=a.targetContainers,m!==null&&i.indexOf(m)===-1&&i.push(m),a)}function vP(a,i,u,c,m){switch(i){case"focusin":return xa=eu(xa,a,i,u,c,m),!0;case"dragenter":return Sa=eu(Sa,a,i,u,c,m),!0;case"mouseover":return wa=eu(wa,a,i,u,c,m),!0;case"pointerover":var g=m.pointerId;return Ql.set(g,eu(Ql.get(g)||null,a,i,u,c,m)),!0;case"gotpointercapture":return g=m.pointerId,Jl.set(g,eu(Jl.get(g)||null,a,i,u,c,m)),!0}return!1}function q_(a){var i=Ti(a.target);if(i!==null){var u=l(i);if(u!==null){if(i=u.tag,i===13){if(i=s(u),i!==null){a.blockedOn=i,Qx(a.priority,function(){k_(u)});return}}else if(i===31){if(i=f(u),i!==null){a.blockedOn=i,Qx(a.priority,function(){k_(u)});return}}else if(i===3&&u.stateNode.current.memoizedState.isDehydrated){a.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Ac(a){if(a.blockedOn!==null)return!1;for(var i=a.targetContainers;0<i.length;){var u=Kp(a.nativeEvent);if(u===null){u=a.nativeEvent;var c=new u.constructor(u.type,u);Vd=c,u.target.dispatchEvent(c),Vd=null}else return i=Ei(u),i!==null&&D_(i),a.blockedOn=u,!1;i.shift()}return!0}function B_(a,i,u){Ac(a)&&u.delete(i)}function gP(){Xp=!1,xa!==null&&Ac(xa)&&(xa=null),Sa!==null&&Ac(Sa)&&(Sa=null),wa!==null&&Ac(wa)&&(wa=null),Ql.forEach(B_),Jl.forEach(B_)}function jc(a,i){a.blockedOn===i&&(a.blockedOn=null,Xp||(Xp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,gP)))}var Tc=null;function z_(a){Tc!==a&&(Tc=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Tc===a&&(Tc=null);for(var i=0;i<a.length;i+=3){var u=a[i],c=a[i+1],m=a[i+2];if(typeof c!="function"){if(Vp(c||u)===null)continue;break}var g=Ei(u);g!==null&&(a.splice(i,3),i-=3,Kh(g,{pending:!0,data:m,method:u.method,action:c},c,m))}}))}function so(a){function i(U){return jc(U,a)}xa!==null&&jc(xa,a),Sa!==null&&jc(Sa,a),wa!==null&&jc(wa,a),Ql.forEach(i),Jl.forEach(i);for(var u=0;u<_a.length;u++){var c=_a[u];c.blockedOn===a&&(c.blockedOn=null)}for(;0<_a.length&&(u=_a[0],u.blockedOn===null);)q_(u),u.blockedOn===null&&_a.shift();if(u=(a.ownerDocument||a).$$reactFormReplay,u!=null)for(c=0;c<u.length;c+=3){var m=u[c],g=u[c+1],A=m[Xt]||null;if(typeof g=="function")A||z_(u);else if(A){var R=null;if(g&&g.hasAttribute("formAction")){if(m=g,A=g[Xt]||null)R=A.formAction;else if(Vp(m)!==null)continue}else R=A.action;typeof R=="function"?u[c+1]=R:(u.splice(c,3),c-=3),z_(u)}}}function U_(){function a(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(A){return m=A})},focusReset:"manual",scroll:"manual"})}function i(){m!==null&&(m(),m=null),c||setTimeout(u,20)}function u(){if(!c&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,m=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(u,100),function(){c=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),m!==null&&(m(),m=null)}}}function Fp(a){this._internalRoot=a}Ec.prototype.render=Fp.prototype.render=function(a){var i=this._internalRoot;if(i===null)throw Error(r(409));var u=i.current,c=pn();R_(u,c,a,i,null,null)},Ec.prototype.unmount=Fp.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var i=a.containerInfo;R_(a.current,2,null,a,null,null),uc(),i[ji]=null}};function Ec(a){this._internalRoot=a}Ec.prototype.unstable_scheduleHydration=function(a){if(a){var i=Zx();a={blockedOn:null,target:a,priority:i};for(var u=0;u<_a.length&&i!==0&&i<_a[u].priority;u++);_a.splice(u,0,a),u===0&&q_(a)}};var I_=t.version;if(I_!=="19.2.4")throw Error(r(527,I_,"19.2.4"));X.findDOMNode=function(a){var i=a._reactInternals;if(i===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=h(i),a=a!==null?y(a):null,a=a===null?null:a.stateNode,a};var bP={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nc.isDisabled&&Nc.supportsFiber)try{sl=Nc.inject(bP),on=Nc}catch{}}return nu.createRoot=function(a,i){if(!o(a))throw Error(r(299));var u=!1,c="",m=FS,g=WS,A=ZS;return i!=null&&(i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(g=i.onCaughtError),i.onRecoverableError!==void 0&&(A=i.onRecoverableError)),i=C_(a,1,!1,null,null,u,c,null,m,g,A,U_),a[ji]=i.current,Cp(a),new Fp(i)},nu.hydrateRoot=function(a,i,u){if(!o(a))throw Error(r(299));var c=!1,m="",g=FS,A=WS,R=ZS,U=null;return u!=null&&(u.unstable_strictMode===!0&&(c=!0),u.identifierPrefix!==void 0&&(m=u.identifierPrefix),u.onUncaughtError!==void 0&&(g=u.onUncaughtError),u.onCaughtError!==void 0&&(A=u.onCaughtError),u.onRecoverableError!==void 0&&(R=u.onRecoverableError),u.formState!==void 0&&(U=u.formState)),i=C_(a,1,!0,i,u??null,c,m,U,g,A,R,U_),i.context=M_(null),u=i.current,c=pn(),c=Bd(c),m=ua(c),m.callback=null,sa(u,m,c),u=c,i.current.lanes=u,fl(i,u),rr(i),a[ji]=i.current,Cp(a),new Ec(i)},nu.version="19.2.4",nu}var Q_;function NP(){if(Q_)return Qp.exports;Q_=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(),Qp.exports=EP(),Qp.exports}var CP=NP();/**
|
|
50
|
+
* react-router v7.13.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 J_="popstate";function MP(e={}){function t(r,o){let{pathname:l,search:s,hash:f}=r.location;return d0("",{pathname:l,search:s,hash:f},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:wu(o)}return PP(t,n,null,e)}function st(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Zn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function RP(){return Math.random().toString(36).substring(2,10)}function eO(e,t){return{usr:e.state,key:e.key,idx:t}}function d0(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Wo(t):t,state:n,key:t&&t.key||r||RP()}}function wu({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 Wo(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 PP(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:l=!1}=r,s=o.history,f="POP",d=null,h=y();h==null&&(h=0,s.replaceState({...s.state,idx:h},""));function y(){return(s.state||{idx:null}).idx}function p(){f="POP";let x=y(),j=x==null?null:x-h;h=x,d&&d({action:f,location:w.location,delta:j})}function b(x,j){f="PUSH";let T=d0(w.location,x,j);h=y()+1;let E=eO(T,h),N=w.createHref(T);try{s.pushState(E,"",N)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;o.location.assign(N)}l&&d&&d({action:f,location:w.location,delta:1})}function S(x,j){f="REPLACE";let T=d0(w.location,x,j);h=y();let E=eO(T,h),N=w.createHref(T);s.replaceState(E,"",N),l&&d&&d({action:f,location:w.location,delta:0})}function _(x){return DP(x)}let w={get action(){return f},get location(){return e(o,s)},listen(x){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(J_,p),d=x,()=>{o.removeEventListener(J_,p),d=null}},createHref(x){return t(o,x)},createURL:_,encodeLocation(x){let j=_(x);return{pathname:j.pathname,search:j.search,hash:j.hash}},push:b,replace:S,go(x){return s.go(x)}};return w}function DP(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),st(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:wu(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function cC(e,t,n="/"){return kP(e,t,n,!1)}function kP(e,t,n,r){let o=typeof t=="string"?Wo(t):t,l=Ur(o.pathname||"/",n);if(l==null)return null;let s=fC(e);$P(s);let f=null;for(let d=0;f==null&&d<s.length;++d){let h=VP(l);f=YP(s[d],h,r)}return f}function fC(e,t=[],n=[],r="",o=!1){let l=(s,f,d=o,h)=>{let y={relativePath:h===void 0?s.path||"":h,caseSensitive:s.caseSensitive===!0,childrenIndex:f,route:s};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(r)&&d)return;st(y.relativePath.startsWith(r),`Absolute route path "${y.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(r.length)}let p=$r([r,y.relativePath]),b=n.concat(y);s.children&&s.children.length>0&&(st(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),fC(s.children,t,b,p,d)),!(s.path==null&&!s.index)&&t.push({path:p,score:HP(p,s.index),routesMeta:b})};return e.forEach((s,f)=>{var d;if(s.path===""||!((d=s.path)!=null&&d.includes("?")))l(s,f);else for(let h of dC(s.path))l(s,f,!0,h)}),t}function dC(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return o?[l,""]:[l];let s=dC(r.join("/")),f=[];return f.push(...s.map(d=>d===""?l:[l,d].join("/"))),o&&f.push(...s),f.map(d=>e.startsWith("/")&&d===""?"/":d)}function $P(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:GP(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var LP=/^:[\w-]+$/,qP=3,BP=2,zP=1,UP=10,IP=-2,tO=e=>e==="*";function HP(e,t){let n=e.split("/"),r=n.length;return n.some(tO)&&(r+=IP),t&&(r+=BP),n.filter(o=>!tO(o)).reduce((o,l)=>o+(LP.test(l)?qP:l===""?zP:UP),r)}function GP(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function YP(e,t,n=!1){let{routesMeta:r}=e,o={},l="/",s=[];for(let f=0;f<r.length;++f){let d=r[f],h=f===r.length-1,y=l==="/"?t:t.slice(l.length)||"/",p=Fc({path:d.relativePath,caseSensitive:d.caseSensitive,end:h},y),b=d.route;if(!p&&h&&n&&!r[r.length-1].route.index&&(p=Fc({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},y)),!p)return null;Object.assign(o,p.params),s.push({params:o,pathname:$r([l,p.pathname]),pathnameBase:ZP($r([l,p.pathnameBase])),route:b}),p.pathnameBase!=="/"&&(l=$r([l,p.pathnameBase]))}return s}function Fc(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=KP(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let l=o[0],s=l.replace(/(.)\/+$/,"$1"),f=o.slice(1);return{params:r.reduce((h,{paramName:y,isOptional:p},b)=>{if(y==="*"){let _=f[b]||"";s=l.slice(0,l.length-_.length).replace(/(.)\/+$/,"$1")}const S=f[b];return p&&!S?h[y]=void 0:h[y]=(S||"").replace(/%2F/g,"/"),h},{}),pathname:l,pathnameBase:s,pattern:e}}function KP(e,t=!1,n=!0){Zn(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,f,d)=>(r.push({paramName:f,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function VP(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Zn(!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 Ur(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 XP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function FP(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Wo(e):e,l;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?l=nO(n.substring(1),"/"):l=nO(n,t)):l=t,{pathname:l,search:QP(r),hash:JP(o)}}function nO(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function nm(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 WP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Lb(e){let t=WP(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function qb(e,t,n,r=!1){let o;typeof e=="string"?o=Wo(e):(o={...e},st(!o.pathname||!o.pathname.includes("?"),nm("?","pathname","search",o)),st(!o.pathname||!o.pathname.includes("#"),nm("#","pathname","hash",o)),st(!o.search||!o.search.includes("#"),nm("#","search","hash",o)));let l=e===""||o.pathname==="",s=l?"/":o.pathname,f;if(s==null)f=n;else{let p=t.length-1;if(!r&&s.startsWith("..")){let b=s.split("/");for(;b[0]==="..";)b.shift(),p-=1;o.pathname=b.join("/")}f=p>=0?t[p]:"/"}let d=FP(o,f),h=s&&s!=="/"&&s.endsWith("/"),y=(l||s===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(h||y)&&(d.pathname+="/"),d}var $r=e=>e.join("/").replace(/\/\/+/g,"/"),ZP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),QP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,JP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,eD=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 tD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function nD(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var hC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function pC(e,t){let n=e;if(typeof n!="string"||!XP.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(hC)try{let l=new URL(window.location.href),s=n.startsWith("//")?new URL(l.protocol+n):new URL(n),f=Ur(s.pathname,t);s.origin===l.origin&&f!=null?n=f+s.search+s.hash:o=!0}catch{Zn(!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:o,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var mC=["POST","PUT","PATCH","DELETE"];new Set(mC);var rD=["GET",...mC];new Set(rD);var Zo=P.createContext(null);Zo.displayName="DataRouter";var Wf=P.createContext(null);Wf.displayName="DataRouterState";var aD=P.createContext(!1),yC=P.createContext({isTransitioning:!1});yC.displayName="ViewTransition";var iD=P.createContext(new Map);iD.displayName="Fetchers";var oD=P.createContext(null);oD.displayName="Await";var Sn=P.createContext(null);Sn.displayName="Navigation";var as=P.createContext(null);as.displayName="Location";var Bn=P.createContext({outlet:null,matches:[],isDataRoute:!1});Bn.displayName="Route";var Bb=P.createContext(null);Bb.displayName="RouteError";var vC="REACT_ROUTER_ERROR",lD="REDIRECT",uD="ROUTE_ERROR_RESPONSE";function sD(e){if(e.startsWith(`${vC}:${lD}:{`))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 cD(e){if(e.startsWith(`${vC}:${uD}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new eD(t.status,t.statusText,t.data)}catch{}}function fD(e,{relative:t}={}){st(Qo(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=P.useContext(Sn),{hash:o,pathname:l,search:s}=is(e,{relative:t}),f=l;return n!=="/"&&(f=l==="/"?n:$r([n,l])),r.createHref({pathname:f,search:s,hash:o})}function Qo(){return P.useContext(as)!=null}function Kr(){return st(Qo(),"useLocation() may be used only in the context of a <Router> component."),P.useContext(as).location}var gC="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function bC(e){P.useContext(Sn).static||P.useLayoutEffect(e)}function Jo(){let{isDataRoute:e}=P.useContext(Bn);return e?jD():dD()}function dD(){st(Qo(),"useNavigate() may be used only in the context of a <Router> component.");let e=P.useContext(Zo),{basename:t,navigator:n}=P.useContext(Sn),{matches:r}=P.useContext(Bn),{pathname:o}=Kr(),l=JSON.stringify(Lb(r)),s=P.useRef(!1);return bC(()=>{s.current=!0}),P.useCallback((d,h={})=>{if(Zn(s.current,gC),!s.current)return;if(typeof d=="number"){n.go(d);return}let y=qb(d,JSON.parse(l),o,h.relative==="path");e==null&&t!=="/"&&(y.pathname=y.pathname==="/"?t:$r([t,y.pathname])),(h.replace?n.replace:n.push)(y,h.state,h)},[t,n,l,o,e])}var hD=P.createContext(null);function pD(e){let t=P.useContext(Bn).outlet;return P.useMemo(()=>t&&P.createElement(hD.Provider,{value:e},t),[t,e])}function xC(){let{matches:e}=P.useContext(Bn),t=e[e.length-1];return t?t.params:{}}function is(e,{relative:t}={}){let{matches:n}=P.useContext(Bn),{pathname:r}=Kr(),o=JSON.stringify(Lb(n));return P.useMemo(()=>qb(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function mD(e,t){return SC(e,t)}function SC(e,t,n,r,o){var T;st(Qo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=P.useContext(Sn),{matches:s}=P.useContext(Bn),f=s[s.length-1],d=f?f.params:{},h=f?f.pathname:"/",y=f?f.pathnameBase:"/",p=f&&f.route;{let E=p&&p.path||"";_C(h,!p||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${E}">) 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="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let b=Kr(),S;if(t){let E=typeof t=="string"?Wo(t):t;st(y==="/"||((T=E.pathname)==null?void 0:T.startsWith(y)),`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 "${y}" but pathname "${E.pathname}" was given in the \`location\` prop.`),S=E}else S=b;let _=S.pathname||"/",w=_;if(y!=="/"){let E=y.replace(/^\//,"").split("/");w="/"+_.replace(/^\//,"").split("/").slice(E.length).join("/")}let x=cC(e,{pathname:w});Zn(p||x!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),Zn(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.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=xD(x&&x.map(E=>Object.assign({},E,{params:Object.assign({},d,E.params),pathname:$r([y,l.encodeLocation?l.encodeLocation(E.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?y:$r([y,l.encodeLocation?l.encodeLocation(E.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),s,n,r,o);return t&&j?P.createElement(as.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...S},navigationType:"POP"}},j):j}function yD(){let e=AD(),t=tD(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)",o={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=P.createElement(P.Fragment,null,P.createElement("p",null,"💿 Hey developer 👋"),P.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",P.createElement("code",{style:l},"ErrorBoundary")," or"," ",P.createElement("code",{style:l},"errorElement")," prop on your route.")),P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:o},n):null,s)}var vD=P.createElement(yD,null),wC=class extends P.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=cD(e.digest);n&&(e=n)}let t=e!==void 0?P.createElement(Bn.Provider,{value:this.props.routeContext},P.createElement(Bb.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?P.createElement(gD,{error:e},t):t}};wC.contextType=aD;var rm=new WeakMap;function gD({children:e,error:t}){let{basename:n}=P.useContext(Sn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=sD(t.digest);if(r){let o=rm.get(t);if(o)throw o;let l=pC(r.location,n);if(hC&&!rm.get(t))if(l.isExternal||r.reloadDocument)window.location.href=l.absoluteURL||l.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(l.to,{replace:r.replace}));throw rm.set(t,s),s}return P.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l.absoluteURL||l.to}`})}}return e}function bD({routeContext:e,match:t,children:n}){let r=P.useContext(Zo);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),P.createElement(Bn.Provider,{value:e},n)}function xD(e,t=[],n=null,r=null,o=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,s=n==null?void 0:n.errors;if(s!=null){let y=l.findIndex(p=>p.route.id&&(s==null?void 0:s[p.route.id])!==void 0);st(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),l=l.slice(0,Math.min(l.length,y+1))}let f=!1,d=-1;if(n)for(let y=0;y<l.length;y++){let p=l[y];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=y),p.route.id){let{loaderData:b,errors:S}=n,_=p.route.loader&&!b.hasOwnProperty(p.route.id)&&(!S||S[p.route.id]===void 0);if(p.route.lazy||_){f=!0,d>=0?l=l.slice(0,d+1):l=[l[0]];break}}}let h=n&&r?(y,p)=>{var b,S;r(y,{location:n.location,params:((S=(b=n.matches)==null?void 0:b[0])==null?void 0:S.params)??{},unstable_pattern:nD(n.matches),errorInfo:p})}:void 0;return l.reduceRight((y,p,b)=>{let S,_=!1,w=null,x=null;n&&(S=s&&p.route.id?s[p.route.id]:void 0,w=p.route.errorElement||vD,f&&(d<0&&b===0?(_C("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,x=null):d===b&&(_=!0,x=p.route.hydrateFallbackElement||null)));let j=t.concat(l.slice(0,b+1)),T=()=>{let E;return S?E=w:_?E=x:p.route.Component?E=P.createElement(p.route.Component,null):p.route.element?E=p.route.element:E=y,P.createElement(bD,{match:p,routeContext:{outlet:y,matches:j,isDataRoute:n!=null},children:E})};return n&&(p.route.ErrorBoundary||p.route.errorElement||b===0)?P.createElement(wC,{location:n.location,revalidation:n.revalidation,component:w,error:S,children:T(),routeContext:{outlet:null,matches:j,isDataRoute:!0},onError:h}):T()},null)}function zb(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function SD(e){let t=P.useContext(Zo);return st(t,zb(e)),t}function wD(e){let t=P.useContext(Wf);return st(t,zb(e)),t}function _D(e){let t=P.useContext(Bn);return st(t,zb(e)),t}function Ub(e){let t=_D(e),n=t.matches[t.matches.length-1];return st(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function OD(){return Ub("useRouteId")}function AD(){var r;let e=P.useContext(Bb),t=wD("useRouteError"),n=Ub("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function jD(){let{router:e}=SD("useNavigate"),t=Ub("useNavigate"),n=P.useRef(!1);return bC(()=>{n.current=!0}),P.useCallback(async(o,l={})=>{Zn(n.current,gC),n.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...l}))},[e,t])}var rO={};function _C(e,t,n){!t&&!rO[e]&&(rO[e]=!0,Zn(!1,n))}P.memo(TD);function TD({routes:e,future:t,state:n,onError:r}){return SC(e,void 0,n,r,t)}function ED({to:e,replace:t,state:n,relative:r}){st(Qo(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=P.useContext(Sn);Zn(!o,"<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:l}=P.useContext(Bn),{pathname:s}=Kr(),f=Jo(),d=qb(e,Lb(l),s,r==="path"),h=JSON.stringify(d);return P.useEffect(()=>{f(JSON.parse(h),{replace:t,state:n,relative:r})},[f,h,r,t,n]),null}function ND(e){return pD(e.context)}function Vn(e){st(!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 CD({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:l=!1,unstable_useTransitions:s}){st(!Qo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),d=P.useMemo(()=>({basename:f,navigator:o,static:l,unstable_useTransitions:s,future:{}}),[f,o,l,s]);typeof n=="string"&&(n=Wo(n));let{pathname:h="/",search:y="",hash:p="",state:b=null,key:S="default"}=n,_=P.useMemo(()=>{let w=Ur(h,f);return w==null?null:{location:{pathname:w,search:y,hash:p,state:b,key:S},navigationType:r}},[f,h,y,p,b,S,r]);return Zn(_!=null,`<Router basename="${f}"> is not able to match the URL "${h}${y}${p}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:P.createElement(Sn.Provider,{value:d},P.createElement(as.Provider,{children:t,value:_}))}function MD({children:e,location:t}){return mD(h0(e),t)}function h0(e,t=[]){let n=[];return P.Children.forEach(e,(r,o)=>{if(!P.isValidElement(r))return;let l=[...t,o];if(r.type===P.Fragment){n.push.apply(n,h0(r.props.children,l));return}st(r.type===Vn,`[${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>`),st(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=h0(r.props.children,l)),n.push(s)}),n}var Kc="get",Vc="application/x-www-form-urlencoded";function Zf(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function RD(e){return Zf(e)&&e.tagName.toLowerCase()==="button"}function PD(e){return Zf(e)&&e.tagName.toLowerCase()==="form"}function DD(e){return Zf(e)&&e.tagName.toLowerCase()==="input"}function kD(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $D(e,t){return e.button===0&&(!t||t==="_self")&&!kD(e)}var Mc=null;function LD(){if(Mc===null)try{new FormData(document.createElement("form"),0),Mc=!1}catch{Mc=!0}return Mc}var qD=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function am(e){return e!=null&&!qD.has(e)?(Zn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Vc}"`),null):e}function BD(e,t){let n,r,o,l,s;if(PD(e)){let f=e.getAttribute("action");r=f?Ur(f,t):null,n=e.getAttribute("method")||Kc,o=am(e.getAttribute("enctype"))||Vc,l=new FormData(e)}else if(RD(e)||DD(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||f.getAttribute("action");if(r=d?Ur(d,t):null,n=e.getAttribute("formmethod")||f.getAttribute("method")||Kc,o=am(e.getAttribute("formenctype"))||am(f.getAttribute("enctype"))||Vc,l=new FormData(f,e),!LD()){let{name:h,type:y,value:p}=e;if(y==="image"){let b=h?`${h}.`:"";l.append(`${b}x`,"0"),l.append(`${b}y`,"0")}else h&&l.append(h,p)}}else{if(Zf(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Kc,r=null,o=Vc,s=e}return l&&o==="text/plain"&&(s=l,l=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:l,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ib(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function zD(e,t,n,r){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:t&&Ur(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function UD(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 ID(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 HD(e,t,n){let r=await Promise.all(e.map(async o=>{let l=t.routes[o.route.id];if(l){let s=await UD(l,n);return s.links?s.links():[]}return[]}));return VD(r.flat(1).filter(ID).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function aO(e,t,n,r,o,l){let s=(d,h)=>n[h]?d.route.id!==n[h].route.id:!0,f=(d,h)=>{var y;return n[h].pathname!==d.pathname||((y=n[h].route.path)==null?void 0:y.endsWith("*"))&&n[h].params["*"]!==d.params["*"]};return l==="assets"?t.filter((d,h)=>s(d,h)||f(d,h)):l==="data"?t.filter((d,h)=>{var p;let y=r.routes[d.route.id];if(!y||!y.hasLoader)return!1;if(s(d,h)||f(d,h))return!0;if(d.route.shouldRevalidate){let b=d.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function GD(e,t,{includeHydrateFallback:n}={}){return YD(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let l=[o.module];return o.clientActionModule&&(l=l.concat(o.clientActionModule)),o.clientLoaderModule&&(l=l.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(l=l.concat(o.hydrateFallbackModule)),o.imports&&(l=l.concat(o.imports)),l}).flat(1))}function YD(e){return[...new Set(e)]}function KD(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function VD(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let l=JSON.stringify(KD(o));return n.has(l)||(n.add(l),r.push({key:l,link:o})),r},[])}function OC(){let e=P.useContext(Zo);return Ib(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function XD(){let e=P.useContext(Wf);return Ib(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Hb=P.createContext(void 0);Hb.displayName="FrameworkContext";function AC(){let e=P.useContext(Hb);return Ib(e,"You must render this element inside a <HydratedRouter> element"),e}function FD(e,t){let n=P.useContext(Hb),[r,o]=P.useState(!1),[l,s]=P.useState(!1),{onFocus:f,onBlur:d,onMouseEnter:h,onMouseLeave:y,onTouchStart:p}=t,b=P.useRef(null);P.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let w=j=>{j.forEach(T=>{s(T.isIntersecting)})},x=new IntersectionObserver(w,{threshold:.5});return b.current&&x.observe(b.current),()=>{x.disconnect()}}},[e]),P.useEffect(()=>{if(r){let w=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(w)}}},[r]);let S=()=>{o(!0)},_=()=>{o(!1),s(!1)};return n?e!=="intent"?[l,b,{}]:[l,b,{onFocus:ru(f,S),onBlur:ru(d,_),onMouseEnter:ru(h,S),onMouseLeave:ru(y,_),onTouchStart:ru(p,S)}]:[!1,b,{}]}function ru(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function WD({page:e,...t}){let{router:n}=OC(),r=P.useMemo(()=>cC(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?P.createElement(QD,{page:e,matches:r,...t}):null}function ZD(e){let{manifest:t,routeModules:n}=AC(),[r,o]=P.useState([]);return P.useEffect(()=>{let l=!1;return HD(e,t,n).then(s=>{l||o(s)}),()=>{l=!0}},[e,t,n]),r}function QD({page:e,matches:t,...n}){let r=Kr(),{future:o,manifest:l,routeModules:s}=AC(),{basename:f}=OC(),{loaderData:d,matches:h}=XD(),y=P.useMemo(()=>aO(e,t,h,l,r,"data"),[e,t,h,l,r]),p=P.useMemo(()=>aO(e,t,h,l,r,"assets"),[e,t,h,l,r]),b=P.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let w=new Set,x=!1;if(t.forEach(T=>{var N;let E=l.routes[T.route.id];!E||!E.hasLoader||(!y.some(O=>O.route.id===T.route.id)&&T.route.id in d&&((N=s[T.route.id])!=null&&N.shouldRevalidate)||E.hasClientLoader?x=!0:w.add(T.route.id))}),w.size===0)return[];let j=zD(e,f,o.unstable_trailingSlashAwareDataRequests,"data");return x&&w.size>0&&j.searchParams.set("_routes",t.filter(T=>w.has(T.route.id)).map(T=>T.route.id).join(",")),[j.pathname+j.search]},[f,o.unstable_trailingSlashAwareDataRequests,d,r,l,y,t,e,s]),S=P.useMemo(()=>GD(p,l),[p,l]),_=ZD(p);return P.createElement(P.Fragment,null,b.map(w=>P.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...n})),S.map(w=>P.createElement("link",{key:w,rel:"modulepreload",href:w,...n})),_.map(({key:w,link:x})=>P.createElement("link",{key:w,nonce:n.nonce,...x,crossOrigin:x.crossOrigin??n.crossOrigin})))}function JD(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var ek=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ek&&(window.__reactRouterVersion="7.13.0")}catch{}function tk({basename:e,children:t,unstable_useTransitions:n,window:r}){let o=P.useRef();o.current==null&&(o.current=MP({window:r,v5Compat:!0}));let l=o.current,[s,f]=P.useState({action:l.action,location:l.location}),d=P.useCallback(h=>{n===!1?f(h):P.startTransition(()=>f(h))},[n]);return P.useLayoutEffect(()=>l.listen(d),[l,d]),P.createElement(CD,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:l,unstable_useTransitions:n})}var jC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Vr=P.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:l,replace:s,state:f,target:d,to:h,preventScrollReset:y,viewTransition:p,unstable_defaultShouldRevalidate:b,...S},_){let{basename:w,unstable_useTransitions:x}=P.useContext(Sn),j=typeof h=="string"&&jC.test(h),T=pC(h,w);h=T.to;let E=fD(h,{relative:o}),[N,O,C]=FD(r,S),M=ik(h,{replace:s,state:f,target:d,preventScrollReset:y,relative:o,viewTransition:p,unstable_defaultShouldRevalidate:b,unstable_useTransitions:x});function D(z){t&&t(z),z.defaultPrevented||M(z)}let $=P.createElement("a",{...S,...C,href:T.absoluteURL||E,onClick:T.isExternal||l?t:D,ref:JD(_,O),target:d,"data-discover":!j&&n==="render"?"true":void 0});return N&&!j?P.createElement(P.Fragment,null,$,P.createElement(WD,{page:E})):$});Vr.displayName="Link";var nk=P.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:l,to:s,viewTransition:f,children:d,...h},y){let p=is(s,{relative:h.relative}),b=Kr(),S=P.useContext(Wf),{navigator:_,basename:w}=P.useContext(Sn),x=S!=null&&ck(p)&&f===!0,j=_.encodeLocation?_.encodeLocation(p).pathname:p.pathname,T=b.pathname,E=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;n||(T=T.toLowerCase(),E=E?E.toLowerCase():null,j=j.toLowerCase()),E&&w&&(E=Ur(E,w)||E);const N=j!=="/"&&j.endsWith("/")?j.length-1:j.length;let O=T===j||!o&&T.startsWith(j)&&T.charAt(N)==="/",C=E!=null&&(E===j||!o&&E.startsWith(j)&&E.charAt(j.length)==="/"),M={isActive:O,isPending:C,isTransitioning:x},D=O?t:void 0,$;typeof r=="function"?$=r(M):$=[r,O?"active":null,C?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let z=typeof l=="function"?l(M):l;return P.createElement(Vr,{...h,"aria-current":D,className:$,ref:y,style:z,to:s,viewTransition:f},typeof d=="function"?d(M):d)});nk.displayName="NavLink";var rk=P.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:l,method:s=Kc,action:f,onSubmit:d,relative:h,preventScrollReset:y,viewTransition:p,unstable_defaultShouldRevalidate:b,...S},_)=>{let{unstable_useTransitions:w}=P.useContext(Sn),x=uk(),j=sk(f,{relative:h}),T=s.toLowerCase()==="get"?"get":"post",E=typeof f=="string"&&jC.test(f),N=O=>{if(d&&d(O),O.defaultPrevented)return;O.preventDefault();let C=O.nativeEvent.submitter,M=(C==null?void 0:C.getAttribute("formmethod"))||s,D=()=>x(C||O.currentTarget,{fetcherKey:t,method:M,navigate:n,replace:o,state:l,relative:h,preventScrollReset:y,viewTransition:p,unstable_defaultShouldRevalidate:b});w&&n!==!1?P.startTransition(()=>D()):D()};return P.createElement("form",{ref:_,method:T,action:j,onSubmit:r?d:N,...S,"data-discover":!E&&e==="render"?"true":void 0})});rk.displayName="Form";function ak(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function TC(e){let t=P.useContext(Zo);return st(t,ak(e)),t}function ik(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:l,viewTransition:s,unstable_defaultShouldRevalidate:f,unstable_useTransitions:d}={}){let h=Jo(),y=Kr(),p=is(e,{relative:l});return P.useCallback(b=>{if($D(b,t)){b.preventDefault();let S=n!==void 0?n:wu(y)===wu(p),_=()=>h(e,{replace:S,state:r,preventScrollReset:o,relative:l,viewTransition:s,unstable_defaultShouldRevalidate:f});d?P.startTransition(()=>_()):_()}},[y,h,p,n,r,t,e,o,l,s,f,d])}var ok=0,lk=()=>`__${String(++ok)}__`;function uk(){let{router:e}=TC("useSubmit"),{basename:t}=P.useContext(Sn),n=OD(),r=e.fetch,o=e.navigate;return P.useCallback(async(l,s={})=>{let{action:f,method:d,encType:h,formData:y,body:p}=BD(l,t);if(s.navigate===!1){let b=s.fetcherKey||lk();await r(b,n,s.action||f,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:y,body:p,formMethod:s.method||d,formEncType:s.encType||h,flushSync:s.flushSync})}else await o(s.action||f,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:y,body:p,formMethod:s.method||d,formEncType:s.encType||h,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,o,t,n])}function sk(e,{relative:t}={}){let{basename:n}=P.useContext(Sn),r=P.useContext(Bn);st(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),l={...is(e||".",{relative:t})},s=Kr();if(e==null){l.search=s.search;let f=new URLSearchParams(l.search),d=f.getAll("index");if(d.some(y=>y==="")){f.delete("index"),d.filter(p=>p).forEach(p=>f.append("index",p));let y=f.toString();l.search=y?`?${y}`:""}}return(!e||e===".")&&o.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:$r([n,l.pathname])),wu(l)}function ck(e,{relative:t}={}){let n=P.useContext(yC);st(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=TC("useViewTransitionState"),o=is(e,{relative:t});if(!n.isTransitioning)return!1;let l=Ur(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Ur(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Fc(o.pathname,s)!=null||Fc(o.pathname,l)!=null}const Gb="agentgazer_token";function EC(){return localStorage.getItem(Gb)}function fk(e){localStorage.setItem(Gb,e)}function NC(){localStorage.removeItem(Gb)}async function co(e,t){const n=EC(),r={"Content-Type":"application/json",...n?{Authorization:`Bearer ${n}`}:{}},o=await fetch(e,{...t,headers:{...r,...t==null?void 0:t.headers}});if(o.status===401)throw NC(),window.location.href="/login",new Error("Unauthorized");if(!o.ok){const l=await o.json().catch(()=>({}));throw new Error(l.error||`Request failed: ${o.status}`)}if(o.status!==204)return o.json()}const _e={get:e=>co(e),post:(e,t)=>co(e,{method:"POST",body:JSON.stringify(t)}),put:(e,t)=>co(e,{method:"PUT",body:JSON.stringify(t)}),patch:(e,t)=>co(e,{method:"PATCH",body:JSON.stringify(t)}),del:e=>co(e,{method:"DELETE"}),delete:e=>co(e,{method:"DELETE"})},yn={getConnectionInfo:()=>_e.get("/api/connection-info"),list:()=>_e.get("/api/providers"),add:(e,t)=>_e.post("/api/providers",{name:e,apiKey:t}),remove:e=>_e.del(`/api/providers/${e}`),toggle:(e,t)=>_e.put(`/api/providers/${e}`,{active:t}),validate:(e,t)=>_e.post(`/api/providers/${e}/validate`,t?{apiKey:t}:{}),getSettings:e=>_e.get(`/api/providers/${e}/settings`),updateSettings:(e,t)=>_e.patch(`/api/providers/${e}/settings`,t),getModels:e=>_e.get(`/api/providers/${e}/models`),addModel:(e,t,n)=>_e.post(`/api/providers/${e}/models`,{modelId:t,displayName:n}),removeModel:(e,t)=>_e.del(`/api/providers/${e}/models/${encodeURIComponent(t)}`),testModel:(e,t)=>_e.post(`/api/providers/${e}/models/${encodeURIComponent(t)}/test`,{}),getStats:(e,t,n)=>{const r=new URLSearchParams;t&&r.set("from",t),n&&r.set("to",n);const o=r.toString();return _e.get(`/api/providers/${e}/stats${o?`?${o}`:""}`)}},iO={getData:()=>_e.get("/api/overview"),getRecentEvents:(e=10)=>_e.get(`/api/events/recent?limit=${e}`)},im={getConfig:()=>_e.get("/api/openclaw/config"),updateConfig:e=>_e.put("/api/openclaw/config",{models:e}),updateDefaultModel:e=>_e.put("/api/openclaw/config",{agents:{defaults:{model:{primary:e}}}})};function dk({children:e}){return EC()?v.jsx(v.Fragment,{children:e}):v.jsx(ED,{to:"/login",replace:!0})}function hk(){const[e,t]=P.useState(""),[n,r]=P.useState(null),[o,l]=P.useState(!1),s=Jo();async function f(d){d.preventDefault(),r(null),l(!0);try{await _e.post("/api/auth/verify",{token:e}),fk(e),s("/",{replace:!0})}catch{r("Invalid token")}finally{l(!1)}}return v.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-950 px-4",children:v.jsxs("form",{onSubmit:f,className:"w-full max-w-sm rounded-lg border border-gray-800 bg-gray-900 p-8 shadow-xl",children:[v.jsx("h1",{className:"text-2xl font-bold text-gray-100",children:"AgentGazer"}),v.jsx("p",{className:"mt-1 text-sm text-gray-400",children:"Enter your token to continue"}),v.jsx("label",{htmlFor:"token",className:"mt-6 block text-sm font-medium text-gray-300",children:"Token"}),v.jsx("input",{id:"token",type:"password",value:e,onChange:d=>t(d.target.value),className:"mt-1 block w-full rounded-md border border-gray-700 bg-gray-800 px-3 py-2 font-mono text-sm text-gray-100 placeholder-gray-500 focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500",placeholder:"paste token here",autoFocus:!0,required:!0}),n&&v.jsx("p",{className:"mt-2 text-sm text-red-400",children:n}),v.jsx("button",{type:"submit",disabled:o,className:"mt-6 w-full rounded-md bg-indigo-600 px-4 py-2 text-sm font-medium text-white hover:bg-indigo-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:ring-offset-gray-900 disabled:opacity-50",children:o?"Verifying...":"Login"})]})})}const pk={sm:{icon:"h-5 w-5",text:"text-sm"},md:{icon:"h-7 w-7",text:"text-lg"},lg:{icon:"h-9 w-9",text:"text-xl"}};function mk({size:e="md"}){const t=pk[e];return v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsxs("svg",{className:`${t.icon} text-blue-500`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:[v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})]}),v.jsx("span",{className:`${t.text} font-semibold text-white`,children:"AgentGazer"})]})}const oO="agentgazer-sidebar-collapsed",yk=[{path:"/",label:"Overview",icon:v.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25a2.25 2.25 0 0 1-2.25-2.25v-2.25Z"})})},{path:"/agents",label:"Agents",icon:v.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 3v1.5M4.5 8.25H3m18 0h-1.5M4.5 12H3m18 0h-1.5m-15 3.75H3m18 0h-1.5M8.25 19.5V21M12 3v1.5m0 15V21m3.75-18v1.5m0 15V21m-9-1.5h10.5a2.25 2.25 0 0 0 2.25-2.25V6.75a2.25 2.25 0 0 0-2.25-2.25H6.75A2.25 2.25 0 0 0 4.5 6.75v10.5a2.25 2.25 0 0 0 2.25 2.25Zm.75-12h9v9h-9v-9Z"})})},{path:"/providers",label:"Providers",icon:v.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 14.25h13.5m-13.5 0a3 3 0 0 1-3-3m3 3a3 3 0 1 0 0 6h13.5a3 3 0 1 0 0-6m-16.5-3a3 3 0 0 1 3-3h13.5a3 3 0 0 1 3 3m-19.5 0a4.5 4.5 0 0 1 .9-2.7L5.737 5.1a3.375 3.375 0 0 1 2.7-1.35h7.126c1.062 0 2.062.5 2.7 1.35l2.587 3.45a4.5 4.5 0 0 1 .9 2.7m0 0a3 3 0 0 1-3 3m0 3h.008v.008h-.008v-.008Zm0-6h.008v.008h-.008v-.008Zm-3 6h.008v.008h-.008v-.008Zm0-6h.008v.008h-.008v-.008Z"})})},{path:"/costs",label:"Costs",icon:v.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v12m-3-2.818.879.659c1.171.879 3.07.879 4.242 0 1.172-.879 1.172-2.303 0-3.182C13.536 12.219 12.768 12 12 12c-.725 0-1.45-.22-2.003-.659-1.106-.879-1.106-2.303 0-3.182s2.9-.879 4.006 0l.415.33M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})})},{path:"/alerts",label:"Alerts",icon:v.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"})})},{path:"/openclaw",label:"OpenClaw",icon:v.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"})})}];function vk(){const e=Kr(),t=Jo(),[n,r]=P.useState(()=>localStorage.getItem(oO)==="true");P.useEffect(()=>{localStorage.setItem(oO,String(n))},[n]);function o(){NC(),t("/login")}function l(d){return d==="/"?e.pathname==="/":e.pathname.startsWith(d)}const s=n?"w-16":"w-64",f=n?"ml-16":"ml-64";return v.jsxs("div",{className:"flex min-h-screen",children:[v.jsxs("aside",{className:`fixed inset-y-0 left-0 flex ${s} flex-col border-r border-gray-800 bg-gray-900 transition-all duration-200`,children:[v.jsxs("div",{className:"flex h-16 items-center justify-between px-3",children:[!n&&v.jsx("div",{className:"pl-3",children:v.jsx(mk,{size:"md"})}),v.jsx("button",{onClick:()=>r(!n),className:`rounded p-2 text-gray-400 transition-colors hover:bg-gray-800 hover:text-white ${n?"mx-auto":""}`,title:n?"Expand sidebar":"Collapse sidebar",children:v.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:n?v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}):v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5M12 17.25h8.25"})})})]}),v.jsx("nav",{className:"flex-1 space-y-1 px-3 py-4",children:yk.map(d=>{const h=l(d.path);return v.jsxs(Vr,{to:d.path,title:n?d.label:void 0,className:`flex items-center ${n?"justify-center":"gap-3"} rounded-md px-3 py-2 text-sm font-medium transition-colors ${h?"bg-gray-700 text-white":"text-gray-400 hover:bg-gray-800 hover:text-white"}`,children:[d.icon,!n&&v.jsx("span",{children:d.label})]},d.path)})}),v.jsx("div",{className:"border-t border-gray-800 p-3",children:v.jsxs("button",{onClick:o,title:n?"Logout":void 0,className:`flex w-full items-center ${n?"justify-center":"gap-3"} rounded-md px-3 py-2 text-sm font-medium text-gray-400 transition-colors hover:bg-gray-800 hover:text-white`,children:[v.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15m3 0 3-3m0 0-3-3m3 3H9"})}),!n&&v.jsx("span",{children:"Logout"})]})})]}),v.jsx("main",{className:`${f} min-h-screen flex-1 bg-gray-950 p-6 transition-all duration-200`,children:v.jsx(ND,{})})]})}function Qf(e){if(!e)return"Never";const t=Date.now(),n=new Date(e).getTime();if(isNaN(n))return"Never";const r=Math.max(0,t-n),o=Math.floor(r/1e3);if(o<60)return`${o}s ago`;const l=Math.floor(o/60);if(l<60)return`${l}m ago`;const s=Math.floor(l/60);return s<24?`${s}h ago`:`${Math.floor(s/24)}d ago`}function rn(e){return`$${e.toFixed(4)}`}function ar(e){return e.toLocaleString("en-US")}function Ir(e,t=3e3){const[n,r]=P.useState(null),[o,l]=P.useState(null),[s,f]=P.useState(!0),d=P.useRef(null),h=P.useRef(e);h.current=e;const y=P.useCallback(async()=>{f(!0);try{const p=await h.current();r(p),l(null)}catch(p){l(p instanceof Error?p.message:String(p))}finally{f(!1)}},[]);return P.useEffect(()=>{y(),d.current=setInterval(y,t);const p=()=>{document.hidden?d.current&&clearInterval(d.current):(y(),d.current=setInterval(y,t))};return document.addEventListener("visibilitychange",p),()=>{d.current&&clearInterval(d.current),document.removeEventListener("visibilitychange",p)}},[y,t]),P.useEffect(()=>{y()},[e,y]),{data:n,error:o,loading:s,refresh:y}}function Ca(){return v.jsx("div",{className:"flex items-center justify-center py-20",children:v.jsxs("svg",{className:"h-8 w-8 animate-spin text-blue-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[v.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),v.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})})}function Wn({message:e,onDismiss:t,onRetry:n}){return v.jsxs("div",{className:"rounded-lg border border-red-800 bg-red-900/30 px-4 py-3 text-sm text-red-300",children:[v.jsx("span",{className:"font-medium",children:"Error:"})," ",e,n&&v.jsx("button",{onClick:n,className:"ml-3 text-red-400 hover:text-red-200",children:"Retry"}),t&&v.jsx("button",{onClick:t,className:"ml-3 text-red-400 hover:text-red-200",children:"Dismiss"})]})}function Rc({title:e,value:t,trend:n,warning:r,warningText:o}){const l=n&&n.value>0,s=n&&n.value<0,f=n&&n.value===0;return v.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:[v.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-gray-400",children:e}),v.jsx("p",{className:"mt-2 text-2xl font-bold text-white",children:t}),n!==void 0&&v.jsxs("div",{className:"mt-2 flex items-center gap-1 text-sm",children:[l&&v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"text-green-400",children:"↑"}),v.jsxs("span",{className:"text-green-400",children:[Math.abs(n.value).toFixed(1),"%"]})]}),s&&v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"text-red-400",children:"↓"}),v.jsxs("span",{className:"text-red-400",children:[Math.abs(n.value).toFixed(1),"%"]})]}),f&&v.jsx("span",{className:"text-gray-400",children:"─ 0%"}),n.label&&v.jsx("span",{className:"text-gray-500",children:n.label})]}),r&&v.jsxs("div",{className:"mt-2 flex items-center gap-1 text-sm",children:[v.jsx("svg",{className:"h-4 w-4 text-yellow-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),v.jsx("span",{className:"text-yellow-400",children:o||"Above threshold"})]})]})}const gk={kill_switch:{icon:"🔴",bg:"bg-red-900/30",text:"text-red-400",border:"border-red-800"},budget_warning:{icon:"💰",bg:"bg-yellow-900/30",text:"text-yellow-400",border:"border-yellow-800"},high_error_rate:{icon:"⚠️",bg:"bg-orange-900/30",text:"text-orange-400",border:"border-orange-800"},new_agent:{icon:"📥",bg:"bg-blue-900/30",text:"text-blue-400",border:"border-blue-800"}};function bk({events:e}){return e.length===0?v.jsx("div",{className:"flex h-full items-center justify-center text-gray-500",children:"No recent events"}):v.jsx("div",{className:"space-y-3",children:e.map((t,n)=>{const r=gk[t.type];return v.jsx("div",{className:`rounded-lg border ${r.border} ${r.bg} p-3`,children:v.jsxs("div",{className:"flex items-start gap-2",children:[v.jsx("span",{className:"text-lg",children:r.icon}),v.jsxs("div",{className:"flex-1 min-w-0",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsxs("span",{className:`font-medium ${r.text}`,children:[t.type==="kill_switch"&&"Kill Switch",t.type==="budget_warning"&&"Budget Warning",t.type==="high_error_rate"&&"High Error Rate",t.type==="new_agent"&&"New Agent"]}),v.jsx(Vr,{to:`/agents/${encodeURIComponent(t.agent_id)}`,className:"text-sm text-blue-400 hover:text-blue-300 truncate",children:t.agent_id})]}),v.jsx("p",{className:"mt-0.5 text-sm text-gray-300",children:t.message}),v.jsx("p",{className:"mt-1 text-xs text-gray-500",children:Qf(t.timestamp)})]})]})},`${t.agent_id}-${t.timestamp}-${n}`)})})}function lO({title:e,items:t,emptyText:n="No data"}){const r=Math.max(...t.map(o=>o.percentage),1);return v.jsxs("div",{children:[v.jsx("h3",{className:"mb-3 text-sm font-medium uppercase tracking-wide text-gray-400",children:e}),t.length===0?v.jsx("div",{className:"flex h-32 items-center justify-center text-gray-500",children:n}):v.jsx("div",{className:"space-y-2",children:t.map((o,l)=>v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsxs("span",{className:"w-4 text-xs text-gray-500",children:[l+1,"."]}),v.jsxs("div",{className:"flex-1 min-w-0",children:[v.jsxs("div",{className:"flex items-center justify-between gap-2",children:[o.link?v.jsx(Vr,{to:o.link,className:"truncate text-sm text-blue-400 hover:text-blue-300",children:o.label}):v.jsx("span",{className:"truncate text-sm text-gray-300",children:o.label}),v.jsx("span",{className:"shrink-0 text-sm font-medium text-white",children:o.formattedValue})]}),v.jsx("div",{className:"mt-1 h-1.5 w-full overflow-hidden rounded-full bg-gray-700",children:v.jsx("div",{className:"h-full rounded-full bg-blue-500 transition-all duration-300",style:{width:`${o.percentage/r*100}%`}})})]})]},o.label))})]})}function CC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=CC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Me(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=CC(e))&&(r&&(r+=" "),r+=t);return r}var om,uO;function an(){if(uO)return om;uO=1;var e=Array.isArray;return om=e,om}var lm,sO;function MC(){if(sO)return lm;sO=1;var e=typeof Cc=="object"&&Cc&&Cc.Object===Object&&Cc;return lm=e,lm}var um,cO;function fr(){if(cO)return um;cO=1;var e=MC(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return um=n,um}var sm,fO;function os(){if(fO)return sm;fO=1;var e=fr(),t=e.Symbol;return sm=t,sm}var cm,dO;function xk(){if(dO)return cm;dO=1;var e=os(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;function l(s){var f=n.call(s,o),d=s[o];try{s[o]=void 0;var h=!0}catch{}var y=r.call(s);return h&&(f?s[o]=d:delete s[o]),y}return cm=l,cm}var fm,hO;function Sk(){if(hO)return fm;hO=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return fm=n,fm}var dm,pO;function Xr(){if(pO)return dm;pO=1;var e=os(),t=xk(),n=Sk(),r="[object Null]",o="[object Undefined]",l=e?e.toStringTag:void 0;function s(f){return f==null?f===void 0?o:r:l&&l in Object(f)?t(f):n(f)}return dm=s,dm}var hm,mO;function Fr(){if(mO)return hm;mO=1;function e(t){return t!=null&&typeof t=="object"}return hm=e,hm}var pm,yO;function el(){if(yO)return pm;yO=1;var e=Xr(),t=Fr(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return pm=r,pm}var mm,vO;function Yb(){if(vO)return mm;vO=1;var e=an(),t=el(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(l,s){if(e(l))return!1;var f=typeof l;return f=="number"||f=="symbol"||f=="boolean"||l==null||t(l)?!0:r.test(l)||!n.test(l)||s!=null&&l in Object(s)}return mm=o,mm}var ym,gO;function Ra(){if(gO)return ym;gO=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return ym=e,ym}var vm,bO;function Kb(){if(bO)return vm;bO=1;var e=Xr(),t=Ra(),n="[object AsyncFunction]",r="[object Function]",o="[object GeneratorFunction]",l="[object Proxy]";function s(f){if(!t(f))return!1;var d=e(f);return d==r||d==o||d==n||d==l}return vm=s,vm}var gm,xO;function wk(){if(xO)return gm;xO=1;var e=fr(),t=e["__core-js_shared__"];return gm=t,gm}var bm,SO;function _k(){if(SO)return bm;SO=1;var e=wk(),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 bm=n,bm}var xm,wO;function RC(){if(wO)return xm;wO=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 xm=n,xm}var Sm,_O;function Ok(){if(_O)return Sm;_O=1;var e=Kb(),t=_k(),n=Ra(),r=RC(),o=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,s=Function.prototype,f=Object.prototype,d=s.toString,h=f.hasOwnProperty,y=RegExp("^"+d.call(h).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(b){if(!n(b)||t(b))return!1;var S=e(b)?y:l;return S.test(r(b))}return Sm=p,Sm}var wm,OO;function Ak(){if(OO)return wm;OO=1;function e(t,n){return t==null?void 0:t[n]}return wm=e,wm}var _m,AO;function bi(){if(AO)return _m;AO=1;var e=Ok(),t=Ak();function n(r,o){var l=t(r,o);return e(l)?l:void 0}return _m=n,_m}var Om,jO;function Jf(){if(jO)return Om;jO=1;var e=bi(),t=e(Object,"create");return Om=t,Om}var Am,TO;function jk(){if(TO)return Am;TO=1;var e=Jf();function t(){this.__data__=e?e(null):{},this.size=0}return Am=t,Am}var jm,EO;function Tk(){if(EO)return jm;EO=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return jm=e,jm}var Tm,NO;function Ek(){if(NO)return Tm;NO=1;var e=Jf(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function o(l){var s=this.__data__;if(e){var f=s[l];return f===t?void 0:f}return r.call(s,l)?s[l]:void 0}return Tm=o,Tm}var Em,CO;function Nk(){if(CO)return Em;CO=1;var e=Jf(),t=Object.prototype,n=t.hasOwnProperty;function r(o){var l=this.__data__;return e?l[o]!==void 0:n.call(l,o)}return Em=r,Em}var Nm,MO;function Ck(){if(MO)return Nm;MO=1;var e=Jf(),t="__lodash_hash_undefined__";function n(r,o){var l=this.__data__;return this.size+=this.has(r)?0:1,l[r]=e&&o===void 0?t:o,this}return Nm=n,Nm}var Cm,RO;function Mk(){if(RO)return Cm;RO=1;var e=jk(),t=Tk(),n=Ek(),r=Nk(),o=Ck();function l(s){var f=-1,d=s==null?0:s.length;for(this.clear();++f<d;){var h=s[f];this.set(h[0],h[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=r,l.prototype.set=o,Cm=l,Cm}var Mm,PO;function Rk(){if(PO)return Mm;PO=1;function e(){this.__data__=[],this.size=0}return Mm=e,Mm}var Rm,DO;function Vb(){if(DO)return Rm;DO=1;function e(t,n){return t===n||t!==t&&n!==n}return Rm=e,Rm}var Pm,kO;function ed(){if(kO)return Pm;kO=1;var e=Vb();function t(n,r){for(var o=n.length;o--;)if(e(n[o][0],r))return o;return-1}return Pm=t,Pm}var Dm,$O;function Pk(){if($O)return Dm;$O=1;var e=ed(),t=Array.prototype,n=t.splice;function r(o){var l=this.__data__,s=e(l,o);if(s<0)return!1;var f=l.length-1;return s==f?l.pop():n.call(l,s,1),--this.size,!0}return Dm=r,Dm}var km,LO;function Dk(){if(LO)return km;LO=1;var e=ed();function t(n){var r=this.__data__,o=e(r,n);return o<0?void 0:r[o][1]}return km=t,km}var $m,qO;function kk(){if(qO)return $m;qO=1;var e=ed();function t(n){return e(this.__data__,n)>-1}return $m=t,$m}var Lm,BO;function $k(){if(BO)return Lm;BO=1;var e=ed();function t(n,r){var o=this.__data__,l=e(o,n);return l<0?(++this.size,o.push([n,r])):o[l][1]=r,this}return Lm=t,Lm}var qm,zO;function td(){if(zO)return qm;zO=1;var e=Rk(),t=Pk(),n=Dk(),r=kk(),o=$k();function l(s){var f=-1,d=s==null?0:s.length;for(this.clear();++f<d;){var h=s[f];this.set(h[0],h[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=r,l.prototype.set=o,qm=l,qm}var Bm,UO;function Xb(){if(UO)return Bm;UO=1;var e=bi(),t=fr(),n=e(t,"Map");return Bm=n,Bm}var zm,IO;function Lk(){if(IO)return zm;IO=1;var e=Mk(),t=td(),n=Xb();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return zm=r,zm}var Um,HO;function qk(){if(HO)return Um;HO=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Um=e,Um}var Im,GO;function nd(){if(GO)return Im;GO=1;var e=qk();function t(n,r){var o=n.__data__;return e(r)?o[typeof r=="string"?"string":"hash"]:o.map}return Im=t,Im}var Hm,YO;function Bk(){if(YO)return Hm;YO=1;var e=nd();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Hm=t,Hm}var Gm,KO;function zk(){if(KO)return Gm;KO=1;var e=nd();function t(n){return e(this,n).get(n)}return Gm=t,Gm}var Ym,VO;function Uk(){if(VO)return Ym;VO=1;var e=nd();function t(n){return e(this,n).has(n)}return Ym=t,Ym}var Km,XO;function Ik(){if(XO)return Km;XO=1;var e=nd();function t(n,r){var o=e(this,n),l=o.size;return o.set(n,r),this.size+=o.size==l?0:1,this}return Km=t,Km}var Vm,FO;function Fb(){if(FO)return Vm;FO=1;var e=Lk(),t=Bk(),n=zk(),r=Uk(),o=Ik();function l(s){var f=-1,d=s==null?0:s.length;for(this.clear();++f<d;){var h=s[f];this.set(h[0],h[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=r,l.prototype.set=o,Vm=l,Vm}var Xm,WO;function PC(){if(WO)return Xm;WO=1;var e=Fb(),t="Expected a function";function n(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var l=function(){var s=arguments,f=o?o.apply(this,s):s[0],d=l.cache;if(d.has(f))return d.get(f);var h=r.apply(this,s);return l.cache=d.set(f,h)||d,h};return l.cache=new(n.Cache||e),l}return n.Cache=e,Xm=n,Xm}var Fm,ZO;function Hk(){if(ZO)return Fm;ZO=1;var e=PC(),t=500;function n(r){var o=e(r,function(s){return l.size===t&&l.clear(),s}),l=o.cache;return o}return Fm=n,Fm}var Wm,QO;function Gk(){if(QO)return Wm;QO=1;var e=Hk(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(o){var l=[];return o.charCodeAt(0)===46&&l.push(""),o.replace(t,function(s,f,d,h){l.push(d?h.replace(n,"$1"):f||s)}),l});return Wm=r,Wm}var Zm,JO;function Wb(){if(JO)return Zm;JO=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,l=Array(o);++r<o;)l[r]=n(t[r],r,t);return l}return Zm=e,Zm}var Qm,eA;function Yk(){if(eA)return Qm;eA=1;var e=os(),t=Wb(),n=an(),r=el(),o=e?e.prototype:void 0,l=o?o.toString:void 0;function s(f){if(typeof f=="string")return f;if(n(f))return t(f,s)+"";if(r(f))return l?l.call(f):"";var d=f+"";return d=="0"&&1/f==-1/0?"-0":d}return Qm=s,Qm}var Jm,tA;function DC(){if(tA)return Jm;tA=1;var e=Yk();function t(n){return n==null?"":e(n)}return Jm=t,Jm}var ey,nA;function kC(){if(nA)return ey;nA=1;var e=an(),t=Yb(),n=Gk(),r=DC();function o(l,s){return e(l)?l:t(l,s)?[l]:n(r(l))}return ey=o,ey}var ty,rA;function rd(){if(rA)return ty;rA=1;var e=el();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return ty=t,ty}var ny,aA;function Zb(){if(aA)return ny;aA=1;var e=kC(),t=rd();function n(r,o){o=e(o,r);for(var l=0,s=o.length;r!=null&&l<s;)r=r[t(o[l++])];return l&&l==s?r:void 0}return ny=n,ny}var ry,iA;function $C(){if(iA)return ry;iA=1;var e=Zb();function t(n,r,o){var l=n==null?void 0:e(n,r);return l===void 0?o:l}return ry=t,ry}var Kk=$C();const xn=Ze(Kk);var ay,oA;function Vk(){if(oA)return ay;oA=1;function e(t){return t==null}return ay=e,ay}var Xk=Vk();const Te=Ze(Xk);var iy,lA;function Fk(){if(lA)return iy;lA=1;var e=Xr(),t=an(),n=Fr(),r="[object String]";function o(l){return typeof l=="string"||!t(l)&&n(l)&&e(l)==r}return iy=o,iy}var Wk=Fk();const pi=Ze(Wk);var Zk=Kb();const Oe=Ze(Zk);var Qk=Ra();const tl=Ze(Qk);var oy={exports:{}},He={};/**
|
|
61
|
+
* @license React
|
|
62
|
+
* react-is.production.min.js
|
|
63
|
+
*
|
|
64
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
65
|
+
*
|
|
66
|
+
* This source code is licensed under the MIT license found in the
|
|
67
|
+
* LICENSE file in the root directory of this source tree.
|
|
68
|
+
*/var uA;function Jk(){if(uA)return He;uA=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),f=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function w(x){if(typeof x=="object"&&x!==null){var j=x.$$typeof;switch(j){case e:switch(x=x.type,x){case n:case o:case r:case h:case y:return x;default:switch(x=x&&x.$$typeof,x){case f:case s:case d:case b:case p:case l:return x;default:return j}}case t:return j}}}return He.ContextConsumer=s,He.ContextProvider=l,He.Element=e,He.ForwardRef=d,He.Fragment=n,He.Lazy=b,He.Memo=p,He.Portal=t,He.Profiler=o,He.StrictMode=r,He.Suspense=h,He.SuspenseList=y,He.isAsyncMode=function(){return!1},He.isConcurrentMode=function(){return!1},He.isContextConsumer=function(x){return w(x)===s},He.isContextProvider=function(x){return w(x)===l},He.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},He.isForwardRef=function(x){return w(x)===d},He.isFragment=function(x){return w(x)===n},He.isLazy=function(x){return w(x)===b},He.isMemo=function(x){return w(x)===p},He.isPortal=function(x){return w(x)===t},He.isProfiler=function(x){return w(x)===o},He.isStrictMode=function(x){return w(x)===r},He.isSuspense=function(x){return w(x)===h},He.isSuspenseList=function(x){return w(x)===y},He.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===o||x===r||x===h||x===y||x===S||typeof x=="object"&&x!==null&&(x.$$typeof===b||x.$$typeof===p||x.$$typeof===l||x.$$typeof===s||x.$$typeof===d||x.$$typeof===_||x.getModuleId!==void 0)},He.typeOf=w,He}var sA;function e6(){return sA||(sA=1,oy.exports=Jk()),oy.exports}var t6=e6(),ly,cA;function LC(){if(cA)return ly;cA=1;var e=Xr(),t=Fr(),n="[object Number]";function r(o){return typeof o=="number"||t(o)&&e(o)==n}return ly=r,ly}var uy,fA;function n6(){if(fA)return uy;fA=1;var e=LC();function t(n){return e(n)&&n!=+n}return uy=t,uy}var r6=n6();const nl=Ze(r6);var a6=LC();const i6=Ze(a6);var Yt=function(t){return t===0?0:t>0?1:-1},oi=function(t){return pi(t)&&t.indexOf("%")===t.length-1},de=function(t){return i6(t)&&!nl(t)},o6=function(t){return Te(t)},Tt=function(t){return de(t)||pi(t)},l6=0,rl=function(t){var n=++l6;return"".concat(t||"").concat(n)},Kt=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!de(t)&&!pi(t))return r;var l;if(oi(t)){var s=t.indexOf("%");l=n*parseFloat(t.slice(0,s))/100}else l=+t;return nl(l)&&(l=r),o&&l>n&&(l=n),l},po=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},u6=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},o=0;o<n;o++)if(!r[t[o]])r[t[o]]=!0;else return!0;return!1},tn=function(t,n){return de(t)&&de(n)?function(r){return t+r*(n-t)}:function(){return n}};function Wc(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):xn(r,t))===n})}var s6=function(t,n){return de(t)&&de(n)?t-n:pi(t)&&pi(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function xo(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 p0(e){"@babel/helpers - typeof";return p0=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},p0(e)}var c6=["viewBox","children"],f6=["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"],dA=["points","pathLength"],sy={svg:c6,polygon:dA,polyline:dA},Qb=["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"],Zc=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(P.isValidElement(t)&&(r=t.props),!tl(r))return null;var o={};return Object.keys(r).forEach(function(l){Qb.includes(l)&&(o[l]=n||function(s){return r[l](r,s)})}),o},d6=function(t,n,r){return function(o){return t(n,r,o),null}},mi=function(t,n,r){if(!tl(t)||p0(t)!=="object")return null;var o=null;return Object.keys(t).forEach(function(l){var s=t[l];Qb.includes(l)&&typeof s=="function"&&(o||(o={}),o[l]=d6(s,n,r))}),o},h6=["children"],p6=["children"];function hA(e,t){if(e==null)return{};var n=m6(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function m6(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 m0(e){"@babel/helpers - typeof";return m0=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},m0(e)}var pA={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"},Lr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},mA=null,cy=null,Jb=function e(t){if(t===mA&&Array.isArray(cy))return cy;var n=[];return P.Children.forEach(t,function(r){Te(r)||(t6.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),cy=n,mA=t,n};function Ln(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(o){return Lr(o)}):r=[Lr(t)],Jb(e).forEach(function(o){var l=xn(o,"type.displayName")||xn(o,"type.name");r.indexOf(l)!==-1&&n.push(o)}),n}function vn(e,t){var n=Ln(e,t);return n&&n[0]}var yA=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,o=n.height;return!(!de(r)||r<=0||!de(o)||o<=0)},y6=["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"],v6=function(t){return t&&t.type&&pi(t.type)&&y6.indexOf(t.type)>=0},g6=function(t){return t&&m0(t)==="object"&&"clipDot"in t},b6=function(t,n,r,o){var l,s=(l=sy==null?void 0:sy[o])!==null&&l!==void 0?l:[];return n.startsWith("data-")||!Oe(t)&&(o&&s.includes(n)||f6.includes(n))||r&&Qb.includes(n)},ge=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(P.isValidElement(t)&&(o=t.props),!tl(o))return null;var l={};return Object.keys(o).forEach(function(s){var f;b6((f=o)===null||f===void 0?void 0:f[s],s,n,r)&&(l[s]=o[s])}),l},y0=function e(t,n){if(t===n)return!0;var r=P.Children.count(t);if(r!==P.Children.count(n))return!1;if(r===0)return!0;if(r===1)return vA(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o<r;o++){var l=t[o],s=n[o];if(Array.isArray(l)||Array.isArray(s)){if(!e(l,s))return!1}else if(!vA(l,s))return!1}return!0},vA=function(t,n){if(Te(t)&&Te(n))return!0;if(!Te(t)&&!Te(n)){var r=t.props||{},o=r.children,l=hA(r,h6),s=n.props||{},f=s.children,d=hA(s,p6);return o&&f?xo(l,d)&&y0(o,f):!o&&!f?xo(l,d):!1}return!1},gA=function(t,n){var r=[],o={};return Jb(t).forEach(function(l,s){if(v6(l))r.push(l);else if(l){var f=Lr(l.type),d=n[f]||{},h=d.handler,y=d.once;if(h&&(!y||!o[f])){var p=h(l,f,s);r.push(p),o[f]=!0}}}),r},x6=function(t){var n=t&&t.type;return n&&pA[n]?pA[n]:null},S6=function(t,n){return Jb(n).indexOf(t)},w6=["children","width","height","viewBox","className","style","title","desc"];function v0(){return v0=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},v0.apply(this,arguments)}function _6(e,t){if(e==null)return{};var n=O6(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function O6(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 g0(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,l=e.className,s=e.style,f=e.title,d=e.desc,h=_6(e,w6),y=o||{width:n,height:r,x:0,y:0},p=Me("recharts-surface",l);return I.createElement("svg",v0({},ge(h,!0,"svg"),{className:p,width:n,height:r,style:s,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height)}),I.createElement("title",null,f),I.createElement("desc",null,d),t)}var A6=["children","className"];function b0(){return b0=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},b0.apply(this,arguments)}function j6(e,t){if(e==null)return{};var n=T6(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function T6(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 Le=I.forwardRef(function(e,t){var n=e.children,r=e.className,o=j6(e,A6),l=Me("recharts-layer",r);return I.createElement("g",b0({className:l},ge(o,!0),{ref:t}),n)}),qr=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),l=2;l<r;l++)o[l-2]=arguments[l]},fy,bA;function E6(){if(bA)return fy;bA=1;function e(t,n,r){var o=-1,l=t.length;n<0&&(n=-n>l?0:l+n),r=r>l?l:r,r<0&&(r+=l),l=n>r?0:r-n>>>0,n>>>=0;for(var s=Array(l);++o<l;)s[o]=t[o+n];return s}return fy=e,fy}var dy,xA;function N6(){if(xA)return dy;xA=1;var e=E6();function t(n,r,o){var l=n.length;return o=o===void 0?l:o,!r&&o>=l?n:e(n,r,o)}return dy=t,dy}var hy,SA;function qC(){if(SA)return hy;SA=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,l="\\ufe0e\\ufe0f",s="\\u200d",f=RegExp("["+s+e+o+l+"]");function d(h){return f.test(h)}return hy=d,hy}var py,wA;function C6(){if(wA)return py;wA=1;function e(t){return t.split("")}return py=e,py}var my,_A;function M6(){if(_A)return my;_A=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,l="\\ufe0e\\ufe0f",s="["+e+"]",f="["+o+"]",d="\\ud83c[\\udffb-\\udfff]",h="(?:"+f+"|"+d+")",y="[^"+e+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",S="\\u200d",_=h+"?",w="["+l+"]?",x="(?:"+S+"(?:"+[y,p,b].join("|")+")"+w+_+")*",j=w+_+x,T="(?:"+[y+f+"?",f,p,b,s].join("|")+")",E=RegExp(d+"(?="+d+")|"+T+j,"g");function N(O){return O.match(E)||[]}return my=N,my}var yy,OA;function R6(){if(OA)return yy;OA=1;var e=C6(),t=qC(),n=M6();function r(o){return t(o)?n(o):e(o)}return yy=r,yy}var vy,AA;function P6(){if(AA)return vy;AA=1;var e=N6(),t=qC(),n=R6(),r=DC();function o(l){return function(s){s=r(s);var f=t(s)?n(s):void 0,d=f?f[0]:s.charAt(0),h=f?e(f,1).join(""):s.slice(1);return d[l]()+h}}return vy=o,vy}var gy,jA;function D6(){if(jA)return gy;jA=1;var e=P6(),t=e("toUpperCase");return gy=t,gy}var k6=D6();const ad=Ze(k6);function tt(e){return function(){return e}}const BC=Math.cos,Qc=Math.sin,Qn=Math.sqrt,Jc=Math.PI,id=2*Jc,x0=Math.PI,S0=2*x0,ri=1e-6,$6=S0-ri;function zC(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function L6(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return zC;const n=10**t;return function(r){this._+=r[0];for(let o=1,l=r.length;o<l;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}class q6{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?zC:L6(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,o){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(t,n,r,o,l,s){this._append`C${+t},${+n},${+r},${+o},${this._x1=+l},${this._y1=+s}`}arcTo(t,n,r,o,l){if(t=+t,n=+n,r=+r,o=+o,l=+l,l<0)throw new Error(`negative radius: ${l}`);let s=this._x1,f=this._y1,d=r-t,h=o-n,y=s-t,p=f-n,b=y*y+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(b>ri)if(!(Math.abs(p*d-h*y)>ri)||!l)this._append`L${this._x1=t},${this._y1=n}`;else{let S=r-s,_=o-f,w=d*d+h*h,x=S*S+_*_,j=Math.sqrt(w),T=Math.sqrt(b),E=l*Math.tan((x0-Math.acos((w+b-x)/(2*j*T)))/2),N=E/T,O=E/j;Math.abs(N-1)>ri&&this._append`L${t+N*y},${n+N*p}`,this._append`A${l},${l},0,0,${+(p*S>y*_)},${this._x1=t+O*d},${this._y1=n+O*h}`}}arc(t,n,r,o,l,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let f=r*Math.cos(o),d=r*Math.sin(o),h=t+f,y=n+d,p=1^s,b=s?o-l:l-o;this._x1===null?this._append`M${h},${y}`:(Math.abs(this._x1-h)>ri||Math.abs(this._y1-y)>ri)&&this._append`L${h},${y}`,r&&(b<0&&(b=b%S0+S0),b>$6?this._append`A${r},${r},0,1,${p},${t-f},${n-d}A${r},${r},0,1,${p},${this._x1=h},${this._y1=y}`:b>ri&&this._append`A${r},${r},0,${+(b>=x0)},${p},${this._x1=t+r*Math.cos(l)},${this._y1=n+r*Math.sin(l)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function ex(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 q6(t)}function tx(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function UC(e){this._context=e}UC.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 od(e){return new UC(e)}function IC(e){return e[0]}function HC(e){return e[1]}function GC(e,t){var n=tt(!0),r=null,o=od,l=null,s=ex(f);e=typeof e=="function"?e:e===void 0?IC:tt(e),t=typeof t=="function"?t:t===void 0?HC:tt(t);function f(d){var h,y=(d=tx(d)).length,p,b=!1,S;for(r==null&&(l=o(S=s())),h=0;h<=y;++h)!(h<y&&n(p=d[h],h,d))===b&&((b=!b)?l.lineStart():l.lineEnd()),b&&l.point(+e(p,h,d),+t(p,h,d));if(S)return l=null,S+""||null}return f.x=function(d){return arguments.length?(e=typeof d=="function"?d:tt(+d),f):e},f.y=function(d){return arguments.length?(t=typeof d=="function"?d:tt(+d),f):t},f.defined=function(d){return arguments.length?(n=typeof d=="function"?d:tt(!!d),f):n},f.curve=function(d){return arguments.length?(o=d,r!=null&&(l=o(r)),f):o},f.context=function(d){return arguments.length?(d==null?r=l=null:l=o(r=d),f):r},f}function Pc(e,t,n){var r=null,o=tt(!0),l=null,s=od,f=null,d=ex(h);e=typeof e=="function"?e:e===void 0?IC:tt(+e),t=typeof t=="function"?t:tt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?HC:tt(+n);function h(p){var b,S,_,w=(p=tx(p)).length,x,j=!1,T,E=new Array(w),N=new Array(w);for(l==null&&(f=s(T=d())),b=0;b<=w;++b){if(!(b<w&&o(x=p[b],b,p))===j)if(j=!j)S=b,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),_=b-1;_>=S;--_)f.point(E[_],N[_]);f.lineEnd(),f.areaEnd()}j&&(E[b]=+e(x,b,p),N[b]=+t(x,b,p),f.point(r?+r(x,b,p):E[b],n?+n(x,b,p):N[b]))}if(T)return f=null,T+""||null}function y(){return GC().defined(o).curve(s).context(l)}return h.x=function(p){return arguments.length?(e=typeof p=="function"?p:tt(+p),r=null,h):e},h.x0=function(p){return arguments.length?(e=typeof p=="function"?p:tt(+p),h):e},h.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:tt(+p),h):r},h.y=function(p){return arguments.length?(t=typeof p=="function"?p:tt(+p),n=null,h):t},h.y0=function(p){return arguments.length?(t=typeof p=="function"?p:tt(+p),h):t},h.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:tt(+p),h):n},h.lineX0=h.lineY0=function(){return y().x(e).y(t)},h.lineY1=function(){return y().x(e).y(n)},h.lineX1=function(){return y().x(r).y(t)},h.defined=function(p){return arguments.length?(o=typeof p=="function"?p:tt(!!p),h):o},h.curve=function(p){return arguments.length?(s=p,l!=null&&(f=s(l)),h):s},h.context=function(p){return arguments.length?(p==null?l=f=null:f=s(l=p),h):l},h}class YC{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 B6(e){return new YC(e,!0)}function z6(e){return new YC(e,!1)}const nx={draw(e,t){const n=Qn(t/Jc);e.moveTo(n,0),e.arc(0,0,n,0,id)}},U6={draw(e,t){const n=Qn(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()}},KC=Qn(1/3),I6=KC*2,H6={draw(e,t){const n=Qn(t/I6),r=n*KC;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},G6={draw(e,t){const n=Qn(t),r=-n/2;e.rect(r,r,n,n)}},Y6=.8908130915292852,VC=Qc(Jc/10)/Qc(7*Jc/10),K6=Qc(id/10)*VC,V6=-BC(id/10)*VC,X6={draw(e,t){const n=Qn(t*Y6),r=K6*n,o=V6*n;e.moveTo(0,-n),e.lineTo(r,o);for(let l=1;l<5;++l){const s=id*l/5,f=BC(s),d=Qc(s);e.lineTo(d*n,-f*n),e.lineTo(f*r-d*o,d*r+f*o)}e.closePath()}},by=Qn(3),F6={draw(e,t){const n=-Qn(t/(by*3));e.moveTo(0,n*2),e.lineTo(-by*n,-n),e.lineTo(by*n,-n),e.closePath()}},Rn=-.5,Pn=Qn(3)/2,w0=1/Qn(12),W6=(w0/2+1)*3,Z6={draw(e,t){const n=Qn(t/W6),r=n/2,o=n*w0,l=r,s=n*w0+n,f=-l,d=s;e.moveTo(r,o),e.lineTo(l,s),e.lineTo(f,d),e.lineTo(Rn*r-Pn*o,Pn*r+Rn*o),e.lineTo(Rn*l-Pn*s,Pn*l+Rn*s),e.lineTo(Rn*f-Pn*d,Pn*f+Rn*d),e.lineTo(Rn*r+Pn*o,Rn*o-Pn*r),e.lineTo(Rn*l+Pn*s,Rn*s-Pn*l),e.lineTo(Rn*f+Pn*d,Rn*d-Pn*f),e.closePath()}};function Q6(e,t){let n=null,r=ex(o);e=typeof e=="function"?e:tt(e||nx),t=typeof t=="function"?t:tt(t===void 0?64:+t);function o(){let l;if(n||(n=l=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),l)return n=null,l+""||null}return o.type=function(l){return arguments.length?(e=typeof l=="function"?l:tt(l),o):e},o.size=function(l){return arguments.length?(t=typeof l=="function"?l:tt(+l),o):t},o.context=function(l){return arguments.length?(n=l??null,o):n},o}function ef(){}function tf(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 XC(e){this._context=e}XC.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:tf(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:tf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function J6(e){return new XC(e)}function FC(e){this._context=e}FC.prototype={areaStart:ef,areaEnd:ef,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:tf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function e$(e){return new FC(e)}function WC(e){this._context=e}WC.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:tf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function t$(e){return new WC(e)}function ZC(e){this._context=e}ZC.prototype={areaStart:ef,areaEnd:ef,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 n$(e){return new ZC(e)}function TA(e){return e<0?-1:1}function EA(e,t,n){var r=e._x1-e._x0,o=t-e._x1,l=(e._y1-e._y0)/(r||o<0&&-0),s=(n-e._y1)/(o||r<0&&-0),f=(l*o+s*r)/(r+o);return(TA(l)+TA(s))*Math.min(Math.abs(l),Math.abs(s),.5*Math.abs(f))||0}function NA(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function xy(e,t,n){var r=e._x0,o=e._y0,l=e._x1,s=e._y1,f=(l-r)/3;e._context.bezierCurveTo(r+f,o+f*t,l-f,s-f*n,l,s)}function nf(e){this._context=e}nf.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:xy(this,this._t0,NA(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,xy(this,NA(this,n=EA(this,e,t)),n);break;default:xy(this,this._t0,n=EA(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function QC(e){this._context=new JC(e)}(QC.prototype=Object.create(nf.prototype)).point=function(e,t){nf.prototype.point.call(this,t,e)};function JC(e){this._context=e}JC.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,o,l){this._context.bezierCurveTo(t,e,r,n,l,o)}};function r$(e){return new nf(e)}function a$(e){return new QC(e)}function eM(e){this._context=e}eM.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=CA(e),o=CA(t),l=0,s=1;s<n;++l,++s)this._context.bezierCurveTo(r[0][l],o[0][l],r[1][l],o[1][l],e[s],t[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function CA(e){var t,n=e.length-1,r,o=new Array(n),l=new Array(n),s=new Array(n);for(o[0]=0,l[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,l[t]=4,s[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,l[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=o[t]/l[t-1],l[t]-=r,s[t]-=r*s[t-1];for(o[n-1]=s[n-1]/l[n-1],t=n-2;t>=0;--t)o[t]=(s[t]-o[t+1])/l[t];for(l[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)l[t]=2*e[t+1]-o[t+1];return[o,l]}function i$(e){return new eM(e)}function ld(e,t){this._context=e,this._t=t}ld.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 o$(e){return new ld(e,.5)}function l$(e){return new ld(e,0)}function u$(e){return new ld(e,1)}function Oo(e,t){if((s=e.length)>1)for(var n=1,r,o,l=e[t[0]],s,f=l.length;n<s;++n)for(o=l,l=e[t[n]],r=0;r<f;++r)l[r][1]+=l[r][0]=isNaN(o[r][1])?o[r][0]:o[r][1]}function _0(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function s$(e,t){return e[t]}function c$(e){const t=[];return t.key=e,t}function f$(){var e=tt([]),t=_0,n=Oo,r=s$;function o(l){var s=Array.from(e.apply(this,arguments),c$),f,d=s.length,h=-1,y;for(const p of l)for(f=0,++h;f<d;++f)(s[f][h]=[0,+r(p,s[f].key,h,l)]).data=p;for(f=0,y=tx(t(s));f<d;++f)s[y[f]].index=f;return n(s,y),s}return o.keys=function(l){return arguments.length?(e=typeof l=="function"?l:tt(Array.from(l)),o):e},o.value=function(l){return arguments.length?(r=typeof l=="function"?l:tt(+l),o):r},o.order=function(l){return arguments.length?(t=l==null?_0:typeof l=="function"?l:tt(Array.from(l)),o):t},o.offset=function(l){return arguments.length?(n=l??Oo,o):n},o}function d$(e,t){if((r=e.length)>0){for(var n,r,o=0,l=e[0].length,s;o<l;++o){for(s=n=0;n<r;++n)s+=e[n][o][1]||0;if(s)for(n=0;n<r;++n)e[n][o][1]/=s}Oo(e,t)}}function h$(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,l=r.length;n<l;++n){for(var s=0,f=0;s<o;++s)f+=e[s][n][1]||0;r[n][1]+=r[n][0]=-f/2}Oo(e,t)}}function p$(e,t){if(!(!((s=e.length)>0)||!((l=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,l,s;r<l;++r){for(var f=0,d=0,h=0;f<s;++f){for(var y=e[t[f]],p=y[r][1]||0,b=y[r-1][1]||0,S=(p-b)/2,_=0;_<f;++_){var w=e[t[_]],x=w[r][1]||0,j=w[r-1][1]||0;S+=x-j}d+=p,h+=S*p}o[r-1][1]+=o[r-1][0]=n,d&&(n-=h/d)}o[r-1][1]+=o[r-1][0]=n,Oo(e,t)}}function _u(e){"@babel/helpers - typeof";return _u=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},_u(e)}var m$=["type","size","sizeType"];function O0(){return O0=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},O0.apply(this,arguments)}function MA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function RA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MA(Object(n),!0).forEach(function(r){y$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function y$(e,t,n){return t=v$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v$(e){var t=g$(e,"string");return _u(t)=="symbol"?t:t+""}function g$(e,t){if(_u(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_u(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b$(e,t){if(e==null)return{};var n=x$(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function x$(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 tM={symbolCircle:nx,symbolCross:U6,symbolDiamond:H6,symbolSquare:G6,symbolStar:X6,symbolTriangle:F6,symbolWye:Z6},S$=Math.PI/180,w$=function(t){var n="symbol".concat(ad(t));return tM[n]||nx},_$=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 o=18*S$;return 1.25*t*t*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),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}},O$=function(t,n){tM["symbol".concat(ad(t))]=n},rx=function(t){var n=t.type,r=n===void 0?"circle":n,o=t.size,l=o===void 0?64:o,s=t.sizeType,f=s===void 0?"area":s,d=b$(t,m$),h=RA(RA({},d),{},{type:r,size:l,sizeType:f}),y=function(){var x=w$(r),j=Q6().type(x).size(_$(l,f,r));return j()},p=h.className,b=h.cx,S=h.cy,_=ge(h,!0);return b===+b&&S===+S&&l===+l?I.createElement("path",O0({},_,{className:Me("recharts-symbols",p),transform:"translate(".concat(b,", ").concat(S,")"),d:y()})):null};rx.registerSymbol=O$;function Ao(e){"@babel/helpers - typeof";return Ao=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},Ao(e)}function A0(){return A0=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},A0.apply(this,arguments)}function PA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function A$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PA(Object(n),!0).forEach(function(r){Ou(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function j$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T$(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,rM(r.key),r)}}function E$(e,t,n){return t&&T$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function N$(e,t,n){return t=rf(t),C$(e,nM()?Reflect.construct(t,n||[],rf(e).constructor):t.apply(e,n))}function C$(e,t){if(t&&(Ao(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return M$(e)}function M$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nM=function(){return!!e})()}function rf(e){return rf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rf(e)}function R$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j0(e,t)}function j0(e,t){return j0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},j0(e,t)}function Ou(e,t,n){return t=rM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rM(e){var t=P$(e,"string");return Ao(t)=="symbol"?t:t+""}function P$(e,t){if(Ao(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ao(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Dn=32,ax=(function(e){function t(){return j$(this,t),N$(this,t,arguments)}return R$(t,e),E$(t,[{key:"renderIcon",value:function(r){var o=this.props.inactiveColor,l=Dn/2,s=Dn/6,f=Dn/3,d=r.inactive?o:r.color;if(r.type==="plainline")return I.createElement("line",{strokeWidth:4,fill:"none",stroke:d,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:l,x2:Dn,y2:l,className:"recharts-legend-icon"});if(r.type==="line")return I.createElement("path",{strokeWidth:4,fill:"none",stroke:d,d:"M0,".concat(l,"h").concat(f,`
|
|
69
|
+
A`).concat(s,",").concat(s,",0,1,1,").concat(2*f,",").concat(l,`
|
|
70
|
+
H`).concat(Dn,"M").concat(2*f,",").concat(l,`
|
|
71
|
+
A`).concat(s,",").concat(s,",0,1,1,").concat(f,",").concat(l),className:"recharts-legend-icon"});if(r.type==="rect")return I.createElement("path",{stroke:"none",fill:d,d:"M0,".concat(Dn/8,"h").concat(Dn,"v").concat(Dn*3/4,"h").concat(-Dn,"z"),className:"recharts-legend-icon"});if(I.isValidElement(r.legendIcon)){var h=A$({},r);return delete h.legendIcon,I.cloneElement(r.legendIcon,h)}return I.createElement(rx,{fill:d,cx:l,cy:l,size:Dn,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,o=this.props,l=o.payload,s=o.iconSize,f=o.layout,d=o.formatter,h=o.inactiveColor,y={x:0,y:0,width:Dn,height:Dn},p={display:f==="horizontal"?"inline-block":"block",marginRight:10},b={display:"inline-block",verticalAlign:"middle",marginRight:4};return l.map(function(S,_){var w=S.formatter||d,x=Me(Ou(Ou({"recharts-legend-item":!0},"legend-item-".concat(_),!0),"inactive",S.inactive));if(S.type==="none")return null;var j=Oe(S.value)?null:S.value;qr(!Oe(S.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var T=S.inactive?h:S.color;return I.createElement("li",A0({className:x,style:p,key:"legend-item-".concat(_)},mi(r.props,S,_)),I.createElement(g0,{width:s,height:s,viewBox:y,style:b},r.renderIcon(S)),I.createElement("span",{className:"recharts-legend-item-text",style:{color:T}},w?w(j,S,_):j))})}},{key:"render",value:function(){var r=this.props,o=r.payload,l=r.layout,s=r.align;if(!o||!o.length)return null;var f={padding:0,margin:0,textAlign:l==="horizontal"?s:"left"};return I.createElement("ul",{className:"recharts-default-legend",style:f},this.renderItems())}}])})(P.PureComponent);Ou(ax,"displayName","Legend");Ou(ax,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Sy,DA;function D$(){if(DA)return Sy;DA=1;var e=td();function t(){this.__data__=new e,this.size=0}return Sy=t,Sy}var wy,kA;function k$(){if(kA)return wy;kA=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return wy=e,wy}var _y,$A;function $$(){if($A)return _y;$A=1;function e(t){return this.__data__.get(t)}return _y=e,_y}var Oy,LA;function L$(){if(LA)return Oy;LA=1;function e(t){return this.__data__.has(t)}return Oy=e,Oy}var Ay,qA;function q$(){if(qA)return Ay;qA=1;var e=td(),t=Xb(),n=Fb(),r=200;function o(l,s){var f=this.__data__;if(f instanceof e){var d=f.__data__;if(!t||d.length<r-1)return d.push([l,s]),this.size=++f.size,this;f=this.__data__=new n(d)}return f.set(l,s),this.size=f.size,this}return Ay=o,Ay}var jy,BA;function aM(){if(BA)return jy;BA=1;var e=td(),t=D$(),n=k$(),r=$$(),o=L$(),l=q$();function s(f){var d=this.__data__=new e(f);this.size=d.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=o,s.prototype.set=l,jy=s,jy}var Ty,zA;function B$(){if(zA)return Ty;zA=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Ty=t,Ty}var Ey,UA;function z$(){if(UA)return Ey;UA=1;function e(t){return this.__data__.has(t)}return Ey=e,Ey}var Ny,IA;function iM(){if(IA)return Ny;IA=1;var e=Fb(),t=B$(),n=z$();function r(o){var l=-1,s=o==null?0:o.length;for(this.__data__=new e;++l<s;)this.add(o[l])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Ny=r,Ny}var Cy,HA;function oM(){if(HA)return Cy;HA=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r<o;)if(n(t[r],r,t))return!0;return!1}return Cy=e,Cy}var My,GA;function lM(){if(GA)return My;GA=1;function e(t,n){return t.has(n)}return My=e,My}var Ry,YA;function uM(){if(YA)return Ry;YA=1;var e=iM(),t=oM(),n=lM(),r=1,o=2;function l(s,f,d,h,y,p){var b=d&r,S=s.length,_=f.length;if(S!=_&&!(b&&_>S))return!1;var w=p.get(s),x=p.get(f);if(w&&x)return w==f&&x==s;var j=-1,T=!0,E=d&o?new e:void 0;for(p.set(s,f),p.set(f,s);++j<S;){var N=s[j],O=f[j];if(h)var C=b?h(O,N,j,f,s,p):h(N,O,j,s,f,p);if(C!==void 0){if(C)continue;T=!1;break}if(E){if(!t(f,function(M,D){if(!n(E,D)&&(N===M||y(N,M,d,h,p)))return E.push(D)})){T=!1;break}}else if(!(N===O||y(N,O,d,h,p))){T=!1;break}}return p.delete(s),p.delete(f),T}return Ry=l,Ry}var Py,KA;function U$(){if(KA)return Py;KA=1;var e=fr(),t=e.Uint8Array;return Py=t,Py}var Dy,VA;function I$(){if(VA)return Dy;VA=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o,l){r[++n]=[l,o]}),r}return Dy=e,Dy}var ky,XA;function ix(){if(XA)return ky;XA=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o){r[++n]=o}),r}return ky=e,ky}var $y,FA;function H$(){if(FA)return $y;FA=1;var e=os(),t=U$(),n=Vb(),r=uM(),o=I$(),l=ix(),s=1,f=2,d="[object Boolean]",h="[object Date]",y="[object Error]",p="[object Map]",b="[object Number]",S="[object RegExp]",_="[object Set]",w="[object String]",x="[object Symbol]",j="[object ArrayBuffer]",T="[object DataView]",E=e?e.prototype:void 0,N=E?E.valueOf:void 0;function O(C,M,D,$,z,L,B){switch(D){case T:if(C.byteLength!=M.byteLength||C.byteOffset!=M.byteOffset)return!1;C=C.buffer,M=M.buffer;case j:return!(C.byteLength!=M.byteLength||!L(new t(C),new t(M)));case d:case h:case b:return n(+C,+M);case y:return C.name==M.name&&C.message==M.message;case S:case w:return C==M+"";case p:var H=o;case _:var Y=$&s;if(H||(H=l),C.size!=M.size&&!Y)return!1;var W=B.get(C);if(W)return W==M;$|=f,B.set(C,M);var k=r(H(C),H(M),$,z,L,B);return B.delete(C),k;case x:if(N)return N.call(C)==N.call(M)}return!1}return $y=O,$y}var Ly,WA;function sM(){if(WA)return Ly;WA=1;function e(t,n){for(var r=-1,o=n.length,l=t.length;++r<o;)t[l+r]=n[r];return t}return Ly=e,Ly}var qy,ZA;function G$(){if(ZA)return qy;ZA=1;var e=sM(),t=an();function n(r,o,l){var s=o(r);return t(r)?s:e(s,l(r))}return qy=n,qy}var By,QA;function Y$(){if(QA)return By;QA=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,l=0,s=[];++r<o;){var f=t[r];n(f,r,t)&&(s[l++]=f)}return s}return By=e,By}var zy,JA;function K$(){if(JA)return zy;JA=1;function e(){return[]}return zy=e,zy}var Uy,e2;function V$(){if(e2)return Uy;e2=1;var e=Y$(),t=K$(),n=Object.prototype,r=n.propertyIsEnumerable,o=Object.getOwnPropertySymbols,l=o?function(s){return s==null?[]:(s=Object(s),e(o(s),function(f){return r.call(s,f)}))}:t;return Uy=l,Uy}var Iy,t2;function X$(){if(t2)return Iy;t2=1;function e(t,n){for(var r=-1,o=Array(t);++r<t;)o[r]=n(r);return o}return Iy=e,Iy}var Hy,n2;function F$(){if(n2)return Hy;n2=1;var e=Xr(),t=Fr(),n="[object Arguments]";function r(o){return t(o)&&e(o)==n}return Hy=r,Hy}var Gy,r2;function ox(){if(r2)return Gy;r2=1;var e=F$(),t=Fr(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,l=e((function(){return arguments})())?e:function(s){return t(s)&&r.call(s,"callee")&&!o.call(s,"callee")};return Gy=l,Gy}var hu={exports:{}},Yy,a2;function W$(){if(a2)return Yy;a2=1;function e(){return!1}return Yy=e,Yy}hu.exports;var i2;function cM(){return i2||(i2=1,(function(e,t){var n=fr(),r=W$(),o=t&&!t.nodeType&&t,l=o&&!0&&e&&!e.nodeType&&e,s=l&&l.exports===o,f=s?n.Buffer:void 0,d=f?f.isBuffer:void 0,h=d||r;e.exports=h})(hu,hu.exports)),hu.exports}var Ky,o2;function lx(){if(o2)return Ky;o2=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,o){var l=typeof r;return o=o??e,!!o&&(l=="number"||l!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<o}return Ky=n,Ky}var Vy,l2;function ux(){if(l2)return Vy;l2=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Vy=t,Vy}var Xy,u2;function Z$(){if(u2)return Xy;u2=1;var e=Xr(),t=ux(),n=Fr(),r="[object Arguments]",o="[object Array]",l="[object Boolean]",s="[object Date]",f="[object Error]",d="[object Function]",h="[object Map]",y="[object Number]",p="[object Object]",b="[object RegExp]",S="[object Set]",_="[object String]",w="[object WeakMap]",x="[object ArrayBuffer]",j="[object DataView]",T="[object Float32Array]",E="[object Float64Array]",N="[object Int8Array]",O="[object Int16Array]",C="[object Int32Array]",M="[object Uint8Array]",D="[object Uint8ClampedArray]",$="[object Uint16Array]",z="[object Uint32Array]",L={};L[T]=L[E]=L[N]=L[O]=L[C]=L[M]=L[D]=L[$]=L[z]=!0,L[r]=L[o]=L[x]=L[l]=L[j]=L[s]=L[f]=L[d]=L[h]=L[y]=L[p]=L[b]=L[S]=L[_]=L[w]=!1;function B(H){return n(H)&&t(H.length)&&!!L[e(H)]}return Xy=B,Xy}var Fy,s2;function fM(){if(s2)return Fy;s2=1;function e(t){return function(n){return t(n)}}return Fy=e,Fy}var pu={exports:{}};pu.exports;var c2;function Q$(){return c2||(c2=1,(function(e,t){var n=MC(),r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,l=o&&o.exports===r,s=l&&n.process,f=(function(){try{var d=o&&o.require&&o.require("util").types;return d||s&&s.binding&&s.binding("util")}catch{}})();e.exports=f})(pu,pu.exports)),pu.exports}var Wy,f2;function dM(){if(f2)return Wy;f2=1;var e=Z$(),t=fM(),n=Q$(),r=n&&n.isTypedArray,o=r?t(r):e;return Wy=o,Wy}var Zy,d2;function J$(){if(d2)return Zy;d2=1;var e=X$(),t=ox(),n=an(),r=cM(),o=lx(),l=dM(),s=Object.prototype,f=s.hasOwnProperty;function d(h,y){var p=n(h),b=!p&&t(h),S=!p&&!b&&r(h),_=!p&&!b&&!S&&l(h),w=p||b||S||_,x=w?e(h.length,String):[],j=x.length;for(var T in h)(y||f.call(h,T))&&!(w&&(T=="length"||S&&(T=="offset"||T=="parent")||_&&(T=="buffer"||T=="byteLength"||T=="byteOffset")||o(T,j)))&&x.push(T);return x}return Zy=d,Zy}var Qy,h2;function eL(){if(h2)return Qy;h2=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,o=typeof r=="function"&&r.prototype||e;return n===o}return Qy=t,Qy}var Jy,p2;function hM(){if(p2)return Jy;p2=1;function e(t,n){return function(r){return t(n(r))}}return Jy=e,Jy}var ev,m2;function tL(){if(m2)return ev;m2=1;var e=hM(),t=e(Object.keys,Object);return ev=t,ev}var tv,y2;function nL(){if(y2)return tv;y2=1;var e=eL(),t=tL(),n=Object.prototype,r=n.hasOwnProperty;function o(l){if(!e(l))return t(l);var s=[];for(var f in Object(l))r.call(l,f)&&f!="constructor"&&s.push(f);return s}return tv=o,tv}var nv,v2;function ls(){if(v2)return nv;v2=1;var e=Kb(),t=ux();function n(r){return r!=null&&t(r.length)&&!e(r)}return nv=n,nv}var rv,g2;function ud(){if(g2)return rv;g2=1;var e=J$(),t=nL(),n=ls();function r(o){return n(o)?e(o):t(o)}return rv=r,rv}var av,b2;function rL(){if(b2)return av;b2=1;var e=G$(),t=V$(),n=ud();function r(o){return e(o,n,t)}return av=r,av}var iv,x2;function aL(){if(x2)return iv;x2=1;var e=rL(),t=1,n=Object.prototype,r=n.hasOwnProperty;function o(l,s,f,d,h,y){var p=f&t,b=e(l),S=b.length,_=e(s),w=_.length;if(S!=w&&!p)return!1;for(var x=S;x--;){var j=b[x];if(!(p?j in s:r.call(s,j)))return!1}var T=y.get(l),E=y.get(s);if(T&&E)return T==s&&E==l;var N=!0;y.set(l,s),y.set(s,l);for(var O=p;++x<S;){j=b[x];var C=l[j],M=s[j];if(d)var D=p?d(M,C,j,s,l,y):d(C,M,j,l,s,y);if(!(D===void 0?C===M||h(C,M,f,d,y):D)){N=!1;break}O||(O=j=="constructor")}if(N&&!O){var $=l.constructor,z=s.constructor;$!=z&&"constructor"in l&&"constructor"in s&&!(typeof $=="function"&&$ instanceof $&&typeof z=="function"&&z instanceof z)&&(N=!1)}return y.delete(l),y.delete(s),N}return iv=o,iv}var ov,S2;function iL(){if(S2)return ov;S2=1;var e=bi(),t=fr(),n=e(t,"DataView");return ov=n,ov}var lv,w2;function oL(){if(w2)return lv;w2=1;var e=bi(),t=fr(),n=e(t,"Promise");return lv=n,lv}var uv,_2;function pM(){if(_2)return uv;_2=1;var e=bi(),t=fr(),n=e(t,"Set");return uv=n,uv}var sv,O2;function lL(){if(O2)return sv;O2=1;var e=bi(),t=fr(),n=e(t,"WeakMap");return sv=n,sv}var cv,A2;function uL(){if(A2)return cv;A2=1;var e=iL(),t=Xb(),n=oL(),r=pM(),o=lL(),l=Xr(),s=RC(),f="[object Map]",d="[object Object]",h="[object Promise]",y="[object Set]",p="[object WeakMap]",b="[object DataView]",S=s(e),_=s(t),w=s(n),x=s(r),j=s(o),T=l;return(e&&T(new e(new ArrayBuffer(1)))!=b||t&&T(new t)!=f||n&&T(n.resolve())!=h||r&&T(new r)!=y||o&&T(new o)!=p)&&(T=function(E){var N=l(E),O=N==d?E.constructor:void 0,C=O?s(O):"";if(C)switch(C){case S:return b;case _:return f;case w:return h;case x:return y;case j:return p}return N}),cv=T,cv}var fv,j2;function sL(){if(j2)return fv;j2=1;var e=aM(),t=uM(),n=H$(),r=aL(),o=uL(),l=an(),s=cM(),f=dM(),d=1,h="[object Arguments]",y="[object Array]",p="[object Object]",b=Object.prototype,S=b.hasOwnProperty;function _(w,x,j,T,E,N){var O=l(w),C=l(x),M=O?y:o(w),D=C?y:o(x);M=M==h?p:M,D=D==h?p:D;var $=M==p,z=D==p,L=M==D;if(L&&s(w)){if(!s(x))return!1;O=!0,$=!1}if(L&&!$)return N||(N=new e),O||f(w)?t(w,x,j,T,E,N):n(w,x,M,j,T,E,N);if(!(j&d)){var B=$&&S.call(w,"__wrapped__"),H=z&&S.call(x,"__wrapped__");if(B||H){var Y=B?w.value():w,W=H?x.value():x;return N||(N=new e),E(Y,W,j,T,N)}}return L?(N||(N=new e),r(w,x,j,T,E,N)):!1}return fv=_,fv}var dv,T2;function sx(){if(T2)return dv;T2=1;var e=sL(),t=Fr();function n(r,o,l,s,f){return r===o?!0:r==null||o==null||!t(r)&&!t(o)?r!==r&&o!==o:e(r,o,l,s,n,f)}return dv=n,dv}var hv,E2;function cL(){if(E2)return hv;E2=1;var e=aM(),t=sx(),n=1,r=2;function o(l,s,f,d){var h=f.length,y=h,p=!d;if(l==null)return!y;for(l=Object(l);h--;){var b=f[h];if(p&&b[2]?b[1]!==l[b[0]]:!(b[0]in l))return!1}for(;++h<y;){b=f[h];var S=b[0],_=l[S],w=b[1];if(p&&b[2]){if(_===void 0&&!(S in l))return!1}else{var x=new e;if(d)var j=d(_,w,S,l,s,x);if(!(j===void 0?t(w,_,n|r,d,x):j))return!1}}return!0}return hv=o,hv}var pv,N2;function mM(){if(N2)return pv;N2=1;var e=Ra();function t(n){return n===n&&!e(n)}return pv=t,pv}var mv,C2;function fL(){if(C2)return mv;C2=1;var e=mM(),t=ud();function n(r){for(var o=t(r),l=o.length;l--;){var s=o[l],f=r[s];o[l]=[s,f,e(f)]}return o}return mv=n,mv}var yv,M2;function yM(){if(M2)return yv;M2=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return yv=e,yv}var vv,R2;function dL(){if(R2)return vv;R2=1;var e=cL(),t=fL(),n=yM();function r(o){var l=t(o);return l.length==1&&l[0][2]?n(l[0][0],l[0][1]):function(s){return s===o||e(s,o,l)}}return vv=r,vv}var gv,P2;function hL(){if(P2)return gv;P2=1;function e(t,n){return t!=null&&n in Object(t)}return gv=e,gv}var bv,D2;function pL(){if(D2)return bv;D2=1;var e=kC(),t=ox(),n=an(),r=lx(),o=ux(),l=rd();function s(f,d,h){d=e(d,f);for(var y=-1,p=d.length,b=!1;++y<p;){var S=l(d[y]);if(!(b=f!=null&&h(f,S)))break;f=f[S]}return b||++y!=p?b:(p=f==null?0:f.length,!!p&&o(p)&&r(S,p)&&(n(f)||t(f)))}return bv=s,bv}var xv,k2;function mL(){if(k2)return xv;k2=1;var e=hL(),t=pL();function n(r,o){return r!=null&&t(r,o,e)}return xv=n,xv}var Sv,$2;function yL(){if($2)return Sv;$2=1;var e=sx(),t=$C(),n=mL(),r=Yb(),o=mM(),l=yM(),s=rd(),f=1,d=2;function h(y,p){return r(y)&&o(p)?l(s(y),p):function(b){var S=t(b,y);return S===void 0&&S===p?n(b,y):e(p,S,f|d)}}return Sv=h,Sv}var wv,L2;function al(){if(L2)return wv;L2=1;function e(t){return t}return wv=e,wv}var _v,q2;function vL(){if(q2)return _v;q2=1;function e(t){return function(n){return n==null?void 0:n[t]}}return _v=e,_v}var Ov,B2;function gL(){if(B2)return Ov;B2=1;var e=Zb();function t(n){return function(r){return e(r,n)}}return Ov=t,Ov}var Av,z2;function bL(){if(z2)return Av;z2=1;var e=vL(),t=gL(),n=Yb(),r=rd();function o(l){return n(l)?e(r(l)):t(l)}return Av=o,Av}var jv,U2;function dr(){if(U2)return jv;U2=1;var e=dL(),t=yL(),n=al(),r=an(),o=bL();function l(s){return typeof s=="function"?s:s==null?n:typeof s=="object"?r(s)?t(s[0],s[1]):e(s):o(s)}return jv=l,jv}var Tv,I2;function vM(){if(I2)return Tv;I2=1;function e(t,n,r,o){for(var l=t.length,s=r+(o?1:-1);o?s--:++s<l;)if(n(t[s],s,t))return s;return-1}return Tv=e,Tv}var Ev,H2;function xL(){if(H2)return Ev;H2=1;function e(t){return t!==t}return Ev=e,Ev}var Nv,G2;function SL(){if(G2)return Nv;G2=1;function e(t,n,r){for(var o=r-1,l=t.length;++o<l;)if(t[o]===n)return o;return-1}return Nv=e,Nv}var Cv,Y2;function wL(){if(Y2)return Cv;Y2=1;var e=vM(),t=xL(),n=SL();function r(o,l,s){return l===l?n(o,l,s):e(o,t,s)}return Cv=r,Cv}var Mv,K2;function _L(){if(K2)return Mv;K2=1;var e=wL();function t(n,r){var o=n==null?0:n.length;return!!o&&e(n,r,0)>-1}return Mv=t,Mv}var Rv,V2;function OL(){if(V2)return Rv;V2=1;function e(t,n,r){for(var o=-1,l=t==null?0:t.length;++o<l;)if(r(n,t[o]))return!0;return!1}return Rv=e,Rv}var Pv,X2;function AL(){if(X2)return Pv;X2=1;function e(){}return Pv=e,Pv}var Dv,F2;function jL(){if(F2)return Dv;F2=1;var e=pM(),t=AL(),n=ix(),r=1/0,o=e&&1/n(new e([,-0]))[1]==r?function(l){return new e(l)}:t;return Dv=o,Dv}var kv,W2;function TL(){if(W2)return kv;W2=1;var e=iM(),t=_L(),n=OL(),r=lM(),o=jL(),l=ix(),s=200;function f(d,h,y){var p=-1,b=t,S=d.length,_=!0,w=[],x=w;if(y)_=!1,b=n;else if(S>=s){var j=h?null:o(d);if(j)return l(j);_=!1,b=r,x=new e}else x=h?[]:w;e:for(;++p<S;){var T=d[p],E=h?h(T):T;if(T=y||T!==0?T:0,_&&E===E){for(var N=x.length;N--;)if(x[N]===E)continue e;h&&x.push(E),w.push(T)}else b(x,E,y)||(x!==w&&x.push(E),w.push(T))}return w}return kv=f,kv}var $v,Z2;function EL(){if(Z2)return $v;Z2=1;var e=dr(),t=TL();function n(r,o){return r&&r.length?t(r,e(o,2)):[]}return $v=n,$v}var NL=EL();const Q2=Ze(NL);function gM(e,t,n){return t===!0?Q2(e,n):Oe(t)?Q2(e,t):e}function jo(e){"@babel/helpers - typeof";return jo=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},jo(e)}var CL=["ref"];function J2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Rr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J2(Object(n),!0).forEach(function(r){sd(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 ML(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ej(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,xM(r.key),r)}}function RL(e,t,n){return t&&ej(e.prototype,t),n&&ej(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function PL(e,t,n){return t=af(t),DL(e,bM()?Reflect.construct(t,n||[],af(e).constructor):t.apply(e,n))}function DL(e,t){if(t&&(jo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kL(e)}function kL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bM=function(){return!!e})()}function af(e){return af=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},af(e)}function $L(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&&T0(e,t)}function T0(e,t){return T0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},T0(e,t)}function sd(e,t,n){return t=xM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xM(e){var t=LL(e,"string");return jo(t)=="symbol"?t:t+""}function LL(e,t){if(jo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function qL(e,t){if(e==null)return{};var n=BL(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function BL(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 zL(e){return e.value}function UL(e,t){if(I.isValidElement(e))return I.cloneElement(e,t);if(typeof e=="function")return I.createElement(e,t);t.ref;var n=qL(t,CL);return I.createElement(ax,n)}var tj=1,fi=(function(e){function t(){var n;ML(this,t);for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];return n=PL(this,t,[].concat(o)),sd(n,"lastBoundingBox",{width:-1,height:-1}),n}return $L(t,e),RL(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,o=this.getBBox();o?(Math.abs(o.width-this.lastBoundingBox.width)>tj||Math.abs(o.height-this.lastBoundingBox.height)>tj)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,r&&r(o)):(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?Rr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var o=this.props,l=o.layout,s=o.align,f=o.verticalAlign,d=o.margin,h=o.chartWidth,y=o.chartHeight,p,b;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(s==="center"&&l==="vertical"){var S=this.getBBoxSnapshot();p={left:((h||0)-S.width)/2}}else p=s==="right"?{right:d&&d.right||0}:{left:d&&d.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(f==="middle"){var _=this.getBBoxSnapshot();b={top:((y||0)-_.height)/2}}else b=f==="bottom"?{bottom:d&&d.bottom||0}:{top:d&&d.top||0};return Rr(Rr({},p),b)}},{key:"render",value:function(){var r=this,o=this.props,l=o.content,s=o.width,f=o.height,d=o.wrapperStyle,h=o.payloadUniqBy,y=o.payload,p=Rr(Rr({position:"absolute",width:s||"auto",height:f||"auto"},this.getDefaultPosition(d)),d);return I.createElement("div",{className:"recharts-legend-wrapper",style:p,ref:function(S){r.wrapperNode=S}},UL(l,Rr(Rr({},this.props),{},{payload:gM(y,h,zL)})))}}],[{key:"getWithHeight",value:function(r,o){var l=Rr(Rr({},this.defaultProps),r.props),s=l.layout;return s==="vertical"&&de(r.props.height)?{height:r.props.height}:s==="horizontal"?{width:r.props.width||o}:null}}])})(P.PureComponent);sd(fi,"displayName","Legend");sd(fi,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Lv,nj;function IL(){if(nj)return Lv;nj=1;var e=os(),t=ox(),n=an(),r=e?e.isConcatSpreadable:void 0;function o(l){return n(l)||t(l)||!!(r&&l&&l[r])}return Lv=o,Lv}var qv,rj;function SM(){if(rj)return qv;rj=1;var e=sM(),t=IL();function n(r,o,l,s,f){var d=-1,h=r.length;for(l||(l=t),f||(f=[]);++d<h;){var y=r[d];o>0&&l(y)?o>1?n(y,o-1,l,s,f):e(f,y):s||(f[f.length]=y)}return f}return qv=n,qv}var Bv,aj;function HL(){if(aj)return Bv;aj=1;function e(t){return function(n,r,o){for(var l=-1,s=Object(n),f=o(n),d=f.length;d--;){var h=f[t?d:++l];if(r(s[h],h,s)===!1)break}return n}}return Bv=e,Bv}var zv,ij;function GL(){if(ij)return zv;ij=1;var e=HL(),t=e();return zv=t,zv}var Uv,oj;function wM(){if(oj)return Uv;oj=1;var e=GL(),t=ud();function n(r,o){return r&&e(r,o,t)}return Uv=n,Uv}var Iv,lj;function YL(){if(lj)return Iv;lj=1;var e=ls();function t(n,r){return function(o,l){if(o==null)return o;if(!e(o))return n(o,l);for(var s=o.length,f=r?s:-1,d=Object(o);(r?f--:++f<s)&&l(d[f],f,d)!==!1;);return o}}return Iv=t,Iv}var Hv,uj;function cx(){if(uj)return Hv;uj=1;var e=wM(),t=YL(),n=t(e);return Hv=n,Hv}var Gv,sj;function _M(){if(sj)return Gv;sj=1;var e=cx(),t=ls();function n(r,o){var l=-1,s=t(r)?Array(r.length):[];return e(r,function(f,d,h){s[++l]=o(f,d,h)}),s}return Gv=n,Gv}var Yv,cj;function KL(){if(cj)return Yv;cj=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return Yv=e,Yv}var Kv,fj;function VL(){if(fj)return Kv;fj=1;var e=el();function t(n,r){if(n!==r){var o=n!==void 0,l=n===null,s=n===n,f=e(n),d=r!==void 0,h=r===null,y=r===r,p=e(r);if(!h&&!p&&!f&&n>r||f&&d&&y&&!h&&!p||l&&d&&y||!o&&y||!s)return 1;if(!l&&!f&&!p&&n<r||p&&o&&s&&!l&&!f||h&&o&&s||!d&&s||!y)return-1}return 0}return Kv=t,Kv}var Vv,dj;function XL(){if(dj)return Vv;dj=1;var e=VL();function t(n,r,o){for(var l=-1,s=n.criteria,f=r.criteria,d=s.length,h=o.length;++l<d;){var y=e(s[l],f[l]);if(y){if(l>=h)return y;var p=o[l];return y*(p=="desc"?-1:1)}}return n.index-r.index}return Vv=t,Vv}var Xv,hj;function FL(){if(hj)return Xv;hj=1;var e=Wb(),t=Zb(),n=dr(),r=_M(),o=KL(),l=fM(),s=XL(),f=al(),d=an();function h(y,p,b){p.length?p=e(p,function(w){return d(w)?function(x){return t(x,w.length===1?w[0]:w)}:w}):p=[f];var S=-1;p=e(p,l(n));var _=r(y,function(w,x,j){var T=e(p,function(E){return E(w)});return{criteria:T,index:++S,value:w}});return o(_,function(w,x){return s(w,x,b)})}return Xv=h,Xv}var Fv,pj;function WL(){if(pj)return Fv;pj=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 Fv=e,Fv}var Wv,mj;function ZL(){if(mj)return Wv;mj=1;var e=WL(),t=Math.max;function n(r,o,l){return o=t(o===void 0?r.length-1:o,0),function(){for(var s=arguments,f=-1,d=t(s.length-o,0),h=Array(d);++f<d;)h[f]=s[o+f];f=-1;for(var y=Array(o+1);++f<o;)y[f]=s[f];return y[o]=l(h),e(r,this,y)}}return Wv=n,Wv}var Zv,yj;function QL(){if(yj)return Zv;yj=1;function e(t){return function(){return t}}return Zv=e,Zv}var Qv,vj;function OM(){if(vj)return Qv;vj=1;var e=bi(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return Qv=t,Qv}var Jv,gj;function JL(){if(gj)return Jv;gj=1;var e=QL(),t=OM(),n=al(),r=t?function(o,l){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(l),writable:!0})}:n;return Jv=r,Jv}var eg,bj;function e8(){if(bj)return eg;bj=1;var e=800,t=16,n=Date.now;function r(o){var l=0,s=0;return function(){var f=n(),d=t-(f-s);if(s=f,d>0){if(++l>=e)return arguments[0]}else l=0;return o.apply(void 0,arguments)}}return eg=r,eg}var tg,xj;function t8(){if(xj)return tg;xj=1;var e=JL(),t=e8(),n=t(e);return tg=n,tg}var ng,Sj;function n8(){if(Sj)return ng;Sj=1;var e=al(),t=ZL(),n=t8();function r(o,l){return n(t(o,l,e),o+"")}return ng=r,ng}var rg,wj;function cd(){if(wj)return rg;wj=1;var e=Vb(),t=ls(),n=lx(),r=Ra();function o(l,s,f){if(!r(f))return!1;var d=typeof s;return(d=="number"?t(f)&&n(s,f.length):d=="string"&&s in f)?e(f[s],l):!1}return rg=o,rg}var ag,_j;function r8(){if(_j)return ag;_j=1;var e=SM(),t=FL(),n=n8(),r=cd(),o=n(function(l,s){if(l==null)return[];var f=s.length;return f>1&&r(l,s[0],s[1])?s=[]:f>2&&r(s[0],s[1],s[2])&&(s=[s[0]]),t(l,e(s,1),[])});return ag=o,ag}var a8=r8();const fx=Ze(a8);function Au(e){"@babel/helpers - typeof";return Au=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},Au(e)}function E0(){return E0=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},E0.apply(this,arguments)}function i8(e,t){return s8(e)||u8(e,t)||l8(e,t)||o8()}function o8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
72
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l8(e,t){if(e){if(typeof e=="string")return Oj(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 Oj(e,t)}}function Oj(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 u8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(y){h=!0,o=y}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function s8(e){if(Array.isArray(e))return e}function Aj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ig(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Aj(Object(n),!0).forEach(function(r){c8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Aj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c8(e,t,n){return t=f8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f8(e){var t=d8(e,"string");return Au(t)=="symbol"?t:t+""}function d8(e,t){if(Au(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Au(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function h8(e){return Array.isArray(e)&&Tt(e[0])&&Tt(e[1])?e.join(" ~ "):e}var p8=function(t){var n=t.separator,r=n===void 0?" : ":n,o=t.contentStyle,l=o===void 0?{}:o,s=t.itemStyle,f=s===void 0?{}:s,d=t.labelStyle,h=d===void 0?{}:d,y=t.payload,p=t.formatter,b=t.itemSorter,S=t.wrapperClassName,_=t.labelClassName,w=t.label,x=t.labelFormatter,j=t.accessibilityLayer,T=j===void 0?!1:j,E=function(){if(y&&y.length){var B={padding:0,margin:0},H=(b?fx(y,b):y).map(function(Y,W){if(Y.type==="none")return null;var k=ig({display:"block",paddingTop:4,paddingBottom:4,color:Y.color||"#000"},f),X=Y.formatter||p||h8,F=Y.value,oe=Y.name,se=F,q=oe;if(X&&se!=null&&q!=null){var K=X(F,oe,Y,W,y);if(Array.isArray(K)){var re=i8(K,2);se=re[0],q=re[1]}else se=K}return I.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(W),style:k},Tt(q)?I.createElement("span",{className:"recharts-tooltip-item-name"},q):null,Tt(q)?I.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,I.createElement("span",{className:"recharts-tooltip-item-value"},se),I.createElement("span",{className:"recharts-tooltip-item-unit"},Y.unit||""))});return I.createElement("ul",{className:"recharts-tooltip-item-list",style:B},H)}return null},N=ig({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},l),O=ig({margin:0},h),C=!Te(w),M=C?w:"",D=Me("recharts-default-tooltip",S),$=Me("recharts-tooltip-label",_);C&&x&&y!==void 0&&y!==null&&(M=x(w,y));var z=T?{role:"status","aria-live":"assertive"}:{};return I.createElement("div",E0({className:D,style:N},z),I.createElement("p",{className:$,style:O},I.isValidElement(M)?M:"".concat(M)),E())};function ju(e){"@babel/helpers - typeof";return ju=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},ju(e)}function Dc(e,t,n){return t=m8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m8(e){var t=y8(e,"string");return ju(t)=="symbol"?t:t+""}function y8(e,t){if(ju(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ju(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var au="recharts-tooltip-wrapper",v8={visibility:"hidden"};function g8(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Me(au,Dc(Dc(Dc(Dc({},"".concat(au,"-right"),de(n)&&t&&de(t.x)&&n>=t.x),"".concat(au,"-left"),de(n)&&t&&de(t.x)&&n<t.x),"".concat(au,"-bottom"),de(r)&&t&&de(t.y)&&r>=t.y),"".concat(au,"-top"),de(r)&&t&&de(t.y)&&r<t.y))}function jj(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,l=e.position,s=e.reverseDirection,f=e.tooltipDimension,d=e.viewBox,h=e.viewBoxDimension;if(l&&de(l[r]))return l[r];var y=n[r]-f-o,p=n[r]+o;if(t[r])return s[r]?y:p;if(s[r]){var b=y,S=d[r];return b<S?Math.max(p,d[r]):Math.max(y,d[r])}var _=p+f,w=d[r]+h;return _>w?Math.max(y,d[r]):Math.max(p,d[r])}function b8(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 x8(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,o=e.position,l=e.reverseDirection,s=e.tooltipBox,f=e.useTranslate3d,d=e.viewBox,h,y,p;return s.height>0&&s.width>0&&n?(y=jj({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:l,tooltipDimension:s.width,viewBox:d,viewBoxDimension:d.width}),p=jj({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:l,tooltipDimension:s.height,viewBox:d,viewBoxDimension:d.height}),h=b8({translateX:y,translateY:p,useTranslate3d:f})):h=v8,{cssProperties:h,cssClasses:g8({translateX:y,translateY:p,coordinate:n})}}function To(e){"@babel/helpers - typeof";return To=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},To(e)}function Tj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ej(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tj(Object(n),!0).forEach(function(r){C0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function S8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w8(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,jM(r.key),r)}}function _8(e,t,n){return t&&w8(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function O8(e,t,n){return t=of(t),A8(e,AM()?Reflect.construct(t,n||[],of(e).constructor):t.apply(e,n))}function A8(e,t){if(t&&(To(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return j8(e)}function j8(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AM=function(){return!!e})()}function of(e){return of=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},of(e)}function T8(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&&N0(e,t)}function N0(e,t){return N0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},N0(e,t)}function C0(e,t,n){return t=jM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jM(e){var t=E8(e,"string");return To(t)=="symbol"?t:t+""}function E8(e,t){if(To(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(To(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Nj=1,N8=(function(e){function t(){var n;S8(this,t);for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];return n=O8(this,t,[].concat(o)),C0(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),C0(n,"handleKeyDown",function(s){if(s.key==="Escape"){var f,d,h,y;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(f=(d=n.props.coordinate)===null||d===void 0?void 0:d.x)!==null&&f!==void 0?f:0,y:(h=(y=n.props.coordinate)===null||y===void 0?void 0:y.y)!==null&&h!==void 0?h:0}})}}),n}return T8(t,e),_8(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>Nj||Math.abs(r.height-this.state.lastBoundingBox.height)>Nj)&&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,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,o=this.props,l=o.active,s=o.allowEscapeViewBox,f=o.animationDuration,d=o.animationEasing,h=o.children,y=o.coordinate,p=o.hasPayload,b=o.isAnimationActive,S=o.offset,_=o.position,w=o.reverseDirection,x=o.useTranslate3d,j=o.viewBox,T=o.wrapperStyle,E=x8({allowEscapeViewBox:s,coordinate:y,offsetTopLeft:S,position:_,reverseDirection:w,tooltipBox:this.state.lastBoundingBox,useTranslate3d:x,viewBox:j}),N=E.cssClasses,O=E.cssProperties,C=Ej(Ej({transition:b&&l?"transform ".concat(f,"ms ").concat(d):void 0},O),{},{pointerEvents:"none",visibility:!this.state.dismissed&&l&&p?"visible":"hidden",position:"absolute",top:0,left:0},T);return I.createElement("div",{tabIndex:-1,className:N,style:C,ref:function(D){r.wrapperNode=D}},h)}}])})(P.PureComponent),C8=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},xi={isSsr:C8()};function Eo(e){"@babel/helpers - typeof";return Eo=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},Eo(e)}function Cj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Mj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cj(Object(n),!0).forEach(function(r){dx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R8(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,EM(r.key),r)}}function P8(e,t,n){return t&&R8(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function D8(e,t,n){return t=lf(t),k8(e,TM()?Reflect.construct(t,n||[],lf(e).constructor):t.apply(e,n))}function k8(e,t){if(t&&(Eo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $8(e)}function $8(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TM=function(){return!!e})()}function lf(e){return lf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},lf(e)}function L8(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&&M0(e,t)}function M0(e,t){return M0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},M0(e,t)}function dx(e,t,n){return t=EM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EM(e){var t=q8(e,"string");return Eo(t)=="symbol"?t:t+""}function q8(e,t){if(Eo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Eo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function B8(e){return e.dataKey}function z8(e,t){return I.isValidElement(e)?I.cloneElement(e,t):typeof e=="function"?I.createElement(e,t):I.createElement(p8,t)}var gn=(function(e){function t(){return M8(this,t),D8(this,t,arguments)}return L8(t,e),P8(t,[{key:"render",value:function(){var r=this,o=this.props,l=o.active,s=o.allowEscapeViewBox,f=o.animationDuration,d=o.animationEasing,h=o.content,y=o.coordinate,p=o.filterNull,b=o.isAnimationActive,S=o.offset,_=o.payload,w=o.payloadUniqBy,x=o.position,j=o.reverseDirection,T=o.useTranslate3d,E=o.viewBox,N=o.wrapperStyle,O=_??[];p&&O.length&&(O=gM(_.filter(function(M){return M.value!=null&&(M.hide!==!0||r.props.includeHidden)}),w,B8));var C=O.length>0;return I.createElement(N8,{allowEscapeViewBox:s,animationDuration:f,animationEasing:d,isAnimationActive:b,active:l,coordinate:y,hasPayload:C,offset:S,position:x,reverseDirection:j,useTranslate3d:T,viewBox:E,wrapperStyle:N},z8(h,Mj(Mj({},this.props),{},{payload:O})))}}])})(P.PureComponent);dx(gn,"displayName","Tooltip");dx(gn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!xi.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 og,Rj;function U8(){if(Rj)return og;Rj=1;var e=fr(),t=function(){return e.Date.now()};return og=t,og}var lg,Pj;function I8(){if(Pj)return lg;Pj=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return lg=t,lg}var ug,Dj;function H8(){if(Dj)return ug;Dj=1;var e=I8(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return ug=n,ug}var sg,kj;function NM(){if(kj)return sg;kj=1;var e=H8(),t=Ra(),n=el(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,f=parseInt;function d(h){if(typeof h=="number")return h;if(n(h))return r;if(t(h)){var y=typeof h.valueOf=="function"?h.valueOf():h;h=t(y)?y+"":y}if(typeof h!="string")return h===0?h:+h;h=e(h);var p=l.test(h);return p||s.test(h)?f(h.slice(2),p?2:8):o.test(h)?r:+h}return sg=d,sg}var cg,$j;function G8(){if($j)return cg;$j=1;var e=Ra(),t=U8(),n=NM(),r="Expected a function",o=Math.max,l=Math.min;function s(f,d,h){var y,p,b,S,_,w,x=0,j=!1,T=!1,E=!0;if(typeof f!="function")throw new TypeError(r);d=n(d)||0,e(h)&&(j=!!h.leading,T="maxWait"in h,b=T?o(n(h.maxWait)||0,d):b,E="trailing"in h?!!h.trailing:E);function N(H){var Y=y,W=p;return y=p=void 0,x=H,S=f.apply(W,Y),S}function O(H){return x=H,_=setTimeout(D,d),j?N(H):S}function C(H){var Y=H-w,W=H-x,k=d-Y;return T?l(k,b-W):k}function M(H){var Y=H-w,W=H-x;return w===void 0||Y>=d||Y<0||T&&W>=b}function D(){var H=t();if(M(H))return $(H);_=setTimeout(D,C(H))}function $(H){return _=void 0,E&&y?N(H):(y=p=void 0,S)}function z(){_!==void 0&&clearTimeout(_),x=0,y=w=p=_=void 0}function L(){return _===void 0?S:$(t())}function B(){var H=t(),Y=M(H);if(y=arguments,p=this,w=H,Y){if(_===void 0)return O(w);if(T)return clearTimeout(_),_=setTimeout(D,d),N(w)}return _===void 0&&(_=setTimeout(D,d)),S}return B.cancel=z,B.flush=L,B}return cg=s,cg}var fg,Lj;function Y8(){if(Lj)return fg;Lj=1;var e=G8(),t=Ra(),n="Expected a function";function r(o,l,s){var f=!0,d=!0;if(typeof o!="function")throw new TypeError(n);return t(s)&&(f="leading"in s?!!s.leading:f,d="trailing"in s?!!s.trailing:d),e(o,l,{leading:f,maxWait:l,trailing:d})}return fg=r,fg}var K8=Y8();const CM=Ze(K8);function Tu(e){"@babel/helpers - typeof";return Tu=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},Tu(e)}function qj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function kc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qj(Object(n),!0).forEach(function(r){V8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function V8(e,t,n){return t=X8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X8(e){var t=F8(e,"string");return Tu(t)=="symbol"?t:t+""}function F8(e,t){if(Tu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function W8(e,t){return eq(e)||J8(e,t)||Q8(e,t)||Z8()}function Z8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
73
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q8(e,t){if(e){if(typeof e=="string")return Bj(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 Bj(e,t)}}function Bj(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 J8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(y){h=!0,o=y}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function eq(e){if(Array.isArray(e))return e}var fd=P.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,o=r===void 0?{width:-1,height:-1}:r,l=e.width,s=l===void 0?"100%":l,f=e.height,d=f===void 0?"100%":f,h=e.minWidth,y=h===void 0?0:h,p=e.minHeight,b=e.maxHeight,S=e.children,_=e.debounce,w=_===void 0?0:_,x=e.id,j=e.className,T=e.onResize,E=e.style,N=E===void 0?{}:E,O=P.useRef(null),C=P.useRef();C.current=T,P.useImperativeHandle(t,function(){return Object.defineProperty(O.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),O.current},configurable:!0})});var M=P.useState({containerWidth:o.width,containerHeight:o.height}),D=W8(M,2),$=D[0],z=D[1],L=P.useCallback(function(H,Y){z(function(W){var k=Math.round(H),X=Math.round(Y);return W.containerWidth===k&&W.containerHeight===X?W:{containerWidth:k,containerHeight:X}})},[]);P.useEffect(function(){var H=function(oe){var se,q=oe[0].contentRect,K=q.width,re=q.height;L(K,re),(se=C.current)===null||se===void 0||se.call(C,K,re)};w>0&&(H=CM(H,w,{trailing:!0,leading:!1}));var Y=new ResizeObserver(H),W=O.current.getBoundingClientRect(),k=W.width,X=W.height;return L(k,X),Y.observe(O.current),function(){Y.disconnect()}},[L,w]);var B=P.useMemo(function(){var H=$.containerWidth,Y=$.containerHeight;if(H<0||Y<0)return null;qr(oi(s)||oi(d),`The width(%s) and height(%s) are both fixed numbers,
|
|
74
|
+
maybe you don't need to use a ResponsiveContainer.`,s,d),qr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var W=oi(s)?H:s,k=oi(d)?Y:d;n&&n>0&&(W?k=W/n:k&&(W=k*n),b&&k>b&&(k=b)),qr(W>0||k>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
75
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
76
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
77
|
+
height and width.`,W,k,s,d,y,p,n);var X=!Array.isArray(S)&&Lr(S.type).endsWith("Chart");return I.Children.map(S,function(F){return I.isValidElement(F)?P.cloneElement(F,kc({width:W,height:k},X?{style:kc({height:"100%",width:"100%",maxHeight:k,maxWidth:W},F.props.style)}:{})):F})},[n,S,d,b,p,y,$,s]);return I.createElement("div",{id:x?"".concat(x):void 0,className:Me("recharts-responsive-container",j),style:kc(kc({},N),{},{width:s,height:d,minWidth:y,minHeight:p,maxHeight:b}),ref:O},B)}),dd=function(t){return null};dd.displayName="Cell";function Eu(e){"@babel/helpers - typeof";return Eu=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},Eu(e)}function zj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function R0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zj(Object(n),!0).forEach(function(r){tq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tq(e,t,n){return t=nq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nq(e){var t=rq(e,"string");return Eu(t)=="symbol"?t:t+""}function rq(e,t){if(Eu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Eu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fo={widthCache:{},cacheCount:0},aq=2e3,iq={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Uj="recharts_measurement_span";function oq(e){var t=R0({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var yu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||xi.isSsr)return{width:0,height:0};var r=oq(n),o=JSON.stringify({text:t,copyStyle:r});if(fo.widthCache[o])return fo.widthCache[o];try{var l=document.getElementById(Uj);l||(l=document.createElement("span"),l.setAttribute("id",Uj),l.setAttribute("aria-hidden","true"),document.body.appendChild(l));var s=R0(R0({},iq),r);Object.assign(l.style,s),l.textContent="".concat(t);var f=l.getBoundingClientRect(),d={width:f.width,height:f.height};return fo.widthCache[o]=d,++fo.cacheCount>aq&&(fo.cacheCount=0,fo.widthCache={}),d}catch{return{width:0,height:0}}},lq=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Nu(e){"@babel/helpers - typeof";return Nu=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},Nu(e)}function uf(e,t){return fq(e)||cq(e,t)||sq(e,t)||uq()}function uq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
78
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sq(e,t){if(e){if(typeof e=="string")return Ij(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 Ij(e,t)}}function Ij(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 cq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(y){h=!0,o=y}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function fq(e){if(Array.isArray(e))return e}function dq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hj(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,pq(r.key),r)}}function hq(e,t,n){return t&&Hj(e.prototype,t),n&&Hj(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pq(e){var t=mq(e,"string");return Nu(t)=="symbol"?t:t+""}function mq(e,t){if(Nu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Gj=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Yj=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,yq=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,vq=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,MM={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},gq=Object.keys(MM),mo="NaN";function bq(e,t){return e*MM[t]}var $c=(function(){function e(t,n){dq(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!yq.test(n)&&(this.num=NaN,this.unit=""),gq.includes(n)&&(this.num=bq(t,n),this.unit="px")}return hq(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,o=(r=vq.exec(n))!==null&&r!==void 0?r:[],l=uf(o,3),s=l[1],f=l[2];return new e(parseFloat(s),f??"")}}])})();function RM(e){if(e.includes(mo))return mo;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=Gj.exec(t))!==null&&n!==void 0?n:[],o=uf(r,4),l=o[1],s=o[2],f=o[3],d=$c.parse(l??""),h=$c.parse(f??""),y=s==="*"?d.multiply(h):d.divide(h);if(y.isNaN())return mo;t=t.replace(Gj,y.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var p,b=(p=Yj.exec(t))!==null&&p!==void 0?p:[],S=uf(b,4),_=S[1],w=S[2],x=S[3],j=$c.parse(_??""),T=$c.parse(x??""),E=w==="+"?j.add(T):j.subtract(T);if(E.isNaN())return mo;t=t.replace(Yj,E.toString())}return t}var Kj=/\(([^()]*)\)/;function xq(e){for(var t=e;t.includes("(");){var n=Kj.exec(t),r=uf(n,2),o=r[1];t=t.replace(Kj,RM(o))}return t}function Sq(e){var t=e.replace(/\s+/g,"");return t=xq(t),t=RM(t),t}function wq(e){try{return Sq(e)}catch{return mo}}function dg(e){var t=wq(e.slice(5,-1));return t===mo?"":t}var _q=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Oq=["dx","dy","angle","className","breakAll"];function P0(){return P0=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},P0.apply(this,arguments)}function Vj(e,t){if(e==null)return{};var n=Aq(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Aq(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Xj(e,t){return Nq(e)||Eq(e,t)||Tq(e,t)||jq()}function jq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
79
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tq(e,t){if(e){if(typeof e=="string")return Fj(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 Fj(e,t)}}function Fj(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 Eq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(y){h=!0,o=y}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function Nq(e){if(Array.isArray(e))return e}var PM=/[ \f\n\r\t\v\u2028\u2029]+/,DM=function(t){var n=t.children,r=t.breakAll,o=t.style;try{var l=[];Te(n)||(r?l=n.toString().split(""):l=n.toString().split(PM));var s=l.map(function(d){return{word:d,width:yu(d,o).width}}),f=r?0:yu(" ",o).width;return{wordsWithComputedWidth:s,spaceWidth:f}}catch{return null}},Cq=function(t,n,r,o,l){var s=t.maxLines,f=t.children,d=t.style,h=t.breakAll,y=de(s),p=f,b=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return W.reduce(function(k,X){var F=X.word,oe=X.width,se=k[k.length-1];if(se&&(o==null||l||se.width+oe+r<Number(o)))se.words.push(F),se.width+=oe+r;else{var q={words:[F],width:oe};k.push(q)}return k},[])},S=b(n),_=function(W){return W.reduce(function(k,X){return k.width>X.width?k:X})};if(!y)return S;for(var w="…",x=function(W){var k=p.slice(0,W),X=DM({breakAll:h,style:d,children:k+w}).wordsWithComputedWidth,F=b(X),oe=F.length>s||_(F).width>Number(o);return[oe,F]},j=0,T=p.length-1,E=0,N;j<=T&&E<=p.length-1;){var O=Math.floor((j+T)/2),C=O-1,M=x(C),D=Xj(M,2),$=D[0],z=D[1],L=x(O),B=Xj(L,1),H=B[0];if(!$&&!H&&(j=O+1),$&&H&&(T=O-1),!$&&H){N=z;break}E++}return N||S},Wj=function(t){var n=Te(t)?[]:t.toString().split(PM);return[{words:n}]},Mq=function(t){var n=t.width,r=t.scaleToFit,o=t.children,l=t.style,s=t.breakAll,f=t.maxLines;if((n||r)&&!xi.isSsr){var d,h,y=DM({breakAll:s,children:o,style:l});if(y){var p=y.wordsWithComputedWidth,b=y.spaceWidth;d=p,h=b}else return Wj(o);return Cq({breakAll:s,children:o,maxLines:f,style:l},d,h,n,r)}return Wj(o)},Zj="#808080",yi=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,l=o===void 0?0:o,s=t.lineHeight,f=s===void 0?"1em":s,d=t.capHeight,h=d===void 0?"0.71em":d,y=t.scaleToFit,p=y===void 0?!1:y,b=t.textAnchor,S=b===void 0?"start":b,_=t.verticalAnchor,w=_===void 0?"end":_,x=t.fill,j=x===void 0?Zj:x,T=Vj(t,_q),E=P.useMemo(function(){return Mq({breakAll:T.breakAll,children:T.children,maxLines:T.maxLines,scaleToFit:p,style:T.style,width:T.width})},[T.breakAll,T.children,T.maxLines,p,T.style,T.width]),N=T.dx,O=T.dy,C=T.angle,M=T.className,D=T.breakAll,$=Vj(T,Oq);if(!Tt(r)||!Tt(l))return null;var z=r+(de(N)?N:0),L=l+(de(O)?O:0),B;switch(w){case"start":B=dg("calc(".concat(h,")"));break;case"middle":B=dg("calc(".concat((E.length-1)/2," * -").concat(f," + (").concat(h," / 2))"));break;default:B=dg("calc(".concat(E.length-1," * -").concat(f,")"));break}var H=[];if(p){var Y=E[0].width,W=T.width;H.push("scale(".concat((de(W)?W/Y:1)/Y,")"))}return C&&H.push("rotate(".concat(C,", ").concat(z,", ").concat(L,")")),H.length&&($.transform=H.join(" ")),I.createElement("text",P0({},ge($,!0),{x:z,y:L,className:Me("recharts-text",M),textAnchor:S,fill:j.includes("url")?Zj:j}),E.map(function(k,X){var F=k.words.join(D?"":" ");return I.createElement("tspan",{x:z,dy:X===0?B:f,key:"".concat(F,"-").concat(X)},F)}))};function Na(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Rq(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function hx(e){let t,n,r;e.length!==2?(t=Na,n=(f,d)=>Na(e(f),d),r=(f,d)=>e(f)-d):(t=e===Na||e===Rq?e:Pq,n=e,r=e);function o(f,d,h=0,y=f.length){if(h<y){if(t(d,d)!==0)return y;do{const p=h+y>>>1;n(f[p],d)<0?h=p+1:y=p}while(h<y)}return h}function l(f,d,h=0,y=f.length){if(h<y){if(t(d,d)!==0)return y;do{const p=h+y>>>1;n(f[p],d)<=0?h=p+1:y=p}while(h<y)}return h}function s(f,d,h=0,y=f.length){const p=o(f,d,h,y-1);return p>h&&r(f[p-1],d)>-r(f[p],d)?p-1:p}return{left:o,center:s,right:l}}function Pq(){return 0}function kM(e){return e===null?NaN:+e}function*Dq(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const kq=hx(Na),us=kq.right;hx(kM).center;class Qj extends Map{constructor(t,n=qq){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(Jj(this,t))}has(t){return super.has(Jj(this,t))}set(t,n){return super.set($q(this,t),n)}delete(t){return super.delete(Lq(this,t))}}function Jj({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function $q({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Lq({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function qq(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Bq(e=Na){if(e===Na)return $M;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 $M(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const zq=Math.sqrt(50),Uq=Math.sqrt(10),Iq=Math.sqrt(2);function sf(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),l=r/Math.pow(10,o),s=l>=zq?10:l>=Uq?5:l>=Iq?2:1;let f,d,h;return o<0?(h=Math.pow(10,-o)/s,f=Math.round(e*h),d=Math.round(t*h),f/h<e&&++f,d/h>t&&--d,h=-h):(h=Math.pow(10,o)*s,f=Math.round(e/h),d=Math.round(t/h),f*h<e&&++f,d*h>t&&--d),d<f&&.5<=n&&n<2?sf(e,t,n*2):[f,d,h]}function D0(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[o,l,s]=r?sf(t,e,n):sf(e,t,n);if(!(l>=o))return[];const f=l-o+1,d=new Array(f);if(r)if(s<0)for(let h=0;h<f;++h)d[h]=(l-h)/-s;else for(let h=0;h<f;++h)d[h]=(l-h)*s;else if(s<0)for(let h=0;h<f;++h)d[h]=(o+h)/-s;else for(let h=0;h<f;++h)d[h]=(o+h)*s;return d}function k0(e,t,n){return t=+t,e=+e,n=+n,sf(e,t,n)[2]}function $0(e,t,n){t=+t,e=+e,n=+n;const r=t<e,o=r?k0(t,e,n):k0(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function eT(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function tT(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function LM(e,t,n=0,r=1/0,o){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(o=o===void 0?$M:Bq(o);r>n;){if(r-n>600){const d=r-n+1,h=t-n+1,y=Math.log(d),p=.5*Math.exp(2*y/3),b=.5*Math.sqrt(y*p*(d-p)/d)*(h-d/2<0?-1:1),S=Math.max(n,Math.floor(t-h*p/d+b)),_=Math.min(r,Math.floor(t+(d-h)*p/d+b));LM(e,t,S,_,o)}const l=e[t];let s=n,f=r;for(iu(e,n,t),o(e[r],l)>0&&iu(e,n,r);s<f;){for(iu(e,s,f),++s,--f;o(e[s],l)<0;)++s;for(;o(e[f],l)>0;)--f}o(e[n],l)===0?iu(e,n,f):(++f,iu(e,f,r)),f<=t&&(n=f+1),t<=f&&(r=f-1)}return e}function iu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Hq(e,t,n){if(e=Float64Array.from(Dq(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return tT(e);if(t>=1)return eT(e);var r,o=(r-1)*t,l=Math.floor(o),s=eT(LM(e,l).subarray(0,l+1)),f=tT(e.subarray(l+1));return s+(f-s)*(o-l)}}function Gq(e,t,n=kM){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,o=(r-1)*t,l=Math.floor(o),s=+n(e[l],l,e),f=+n(e[l+1],l+1,e);return s+(f-s)*(o-l)}}function Yq(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,l=new Array(o);++r<o;)l[r]=e+r*n;return l}function zn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Wr(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 L0=Symbol("implicit");function px(){var e=new Qj,t=[],n=[],r=L0;function o(l){let s=e.get(l);if(s===void 0){if(r!==L0)return r;e.set(l,s=t.push(l)-1)}return n[s%n.length]}return o.domain=function(l){if(!arguments.length)return t.slice();t=[],e=new Qj;for(const s of l)e.has(s)||e.set(s,t.push(s)-1);return o},o.range=function(l){return arguments.length?(n=Array.from(l),o):n.slice()},o.unknown=function(l){return arguments.length?(r=l,o):r},o.copy=function(){return px(t,n).unknown(r)},zn.apply(o,arguments),o}function Cu(){var e=px().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,l,s,f=!1,d=0,h=0,y=.5;delete e.unknown;function p(){var b=t().length,S=o<r,_=S?o:r,w=S?r:o;l=(w-_)/Math.max(1,b-d+h*2),f&&(l=Math.floor(l)),_+=(w-_-l*(b-d))*y,s=l*(1-d),f&&(_=Math.round(_),s=Math.round(s));var x=Yq(b).map(function(j){return _+l*j});return n(S?x.reverse():x)}return e.domain=function(b){return arguments.length?(t(b),p()):t()},e.range=function(b){return arguments.length?([r,o]=b,r=+r,o=+o,p()):[r,o]},e.rangeRound=function(b){return[r,o]=b,r=+r,o=+o,f=!0,p()},e.bandwidth=function(){return s},e.step=function(){return l},e.round=function(b){return arguments.length?(f=!!b,p()):f},e.padding=function(b){return arguments.length?(d=Math.min(1,h=+b),p()):d},e.paddingInner=function(b){return arguments.length?(d=Math.min(1,b),p()):d},e.paddingOuter=function(b){return arguments.length?(h=+b,p()):h},e.align=function(b){return arguments.length?(y=Math.max(0,Math.min(1,b)),p()):y},e.copy=function(){return Cu(t(),[r,o]).round(f).paddingInner(d).paddingOuter(h).align(y)},zn.apply(p(),arguments)}function qM(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return qM(t())},e}function vu(){return qM(Cu.apply(null,arguments).paddingInner(1))}function mx(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function BM(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ss(){}var Mu=.7,cf=1/Mu,So="\\s*([+-]?\\d+)\\s*",Ru="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",lr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Kq=/^#([0-9a-f]{3,8})$/,Vq=new RegExp(`^rgb\\(${So},${So},${So}\\)$`),Xq=new RegExp(`^rgb\\(${lr},${lr},${lr}\\)$`),Fq=new RegExp(`^rgba\\(${So},${So},${So},${Ru}\\)$`),Wq=new RegExp(`^rgba\\(${lr},${lr},${lr},${Ru}\\)$`),Zq=new RegExp(`^hsl\\(${Ru},${lr},${lr}\\)$`),Qq=new RegExp(`^hsla\\(${Ru},${lr},${lr},${Ru}\\)$`),nT={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};mx(ss,Pu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:rT,formatHex:rT,formatHex8:Jq,formatHsl:eB,formatRgb:aT,toString:aT});function rT(){return this.rgb().formatHex()}function Jq(){return this.rgb().formatHex8()}function eB(){return zM(this).formatHsl()}function aT(){return this.rgb().formatRgb()}function Pu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Kq.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?iT(t):n===3?new nn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Lc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Lc(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=Vq.exec(e))?new nn(t[1],t[2],t[3],1):(t=Xq.exec(e))?new nn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Fq.exec(e))?Lc(t[1],t[2],t[3],t[4]):(t=Wq.exec(e))?Lc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Zq.exec(e))?uT(t[1],t[2]/100,t[3]/100,1):(t=Qq.exec(e))?uT(t[1],t[2]/100,t[3]/100,t[4]):nT.hasOwnProperty(e)?iT(nT[e]):e==="transparent"?new nn(NaN,NaN,NaN,0):null}function iT(e){return new nn(e>>16&255,e>>8&255,e&255,1)}function Lc(e,t,n,r){return r<=0&&(e=t=n=NaN),new nn(e,t,n,r)}function tB(e){return e instanceof ss||(e=Pu(e)),e?(e=e.rgb(),new nn(e.r,e.g,e.b,e.opacity)):new nn}function q0(e,t,n,r){return arguments.length===1?tB(e):new nn(e,t,n,r??1)}function nn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}mx(nn,q0,BM(ss,{brighter(e){return e=e==null?cf:Math.pow(cf,e),new nn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Mu:Math.pow(Mu,e),new nn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new nn(di(this.r),di(this.g),di(this.b),ff(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:oT,formatHex:oT,formatHex8:nB,formatRgb:lT,toString:lT}));function oT(){return`#${li(this.r)}${li(this.g)}${li(this.b)}`}function nB(){return`#${li(this.r)}${li(this.g)}${li(this.b)}${li((isNaN(this.opacity)?1:this.opacity)*255)}`}function lT(){const e=ff(this.opacity);return`${e===1?"rgb(":"rgba("}${di(this.r)}, ${di(this.g)}, ${di(this.b)}${e===1?")":`, ${e})`}`}function ff(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function di(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function li(e){return e=di(e),(e<16?"0":"")+e.toString(16)}function uT(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Fn(e,t,n,r)}function zM(e){if(e instanceof Fn)return new Fn(e.h,e.s,e.l,e.opacity);if(e instanceof ss||(e=Pu(e)),!e)return new Fn;if(e instanceof Fn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),l=Math.max(t,n,r),s=NaN,f=l-o,d=(l+o)/2;return f?(t===l?s=(n-r)/f+(n<r)*6:n===l?s=(r-t)/f+2:s=(t-n)/f+4,f/=d<.5?l+o:2-l-o,s*=60):f=d>0&&d<1?0:s,new Fn(s,f,d,e.opacity)}function rB(e,t,n,r){return arguments.length===1?zM(e):new Fn(e,t,n,r??1)}function Fn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}mx(Fn,rB,BM(ss,{brighter(e){return e=e==null?cf:Math.pow(cf,e),new Fn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Mu:Math.pow(Mu,e),new Fn(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,o=2*n-r;return new nn(hg(e>=240?e-240:e+120,o,r),hg(e,o,r),hg(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Fn(sT(this.h),qc(this.s),qc(this.l),ff(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=ff(this.opacity);return`${e===1?"hsl(":"hsla("}${sT(this.h)}, ${qc(this.s)*100}%, ${qc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function sT(e){return e=(e||0)%360,e<0?e+360:e}function qc(e){return Math.max(0,Math.min(1,e||0))}function hg(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 yx=e=>()=>e;function aB(e,t){return function(n){return e+n*t}}function iB(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 oB(e){return(e=+e)==1?UM:function(t,n){return n-t?iB(t,n,e):yx(isNaN(t)?n:t)}}function UM(e,t){var n=t-e;return n?aB(e,n):yx(isNaN(e)?t:e)}const cT=(function e(t){var n=oB(t);function r(o,l){var s=n((o=q0(o)).r,(l=q0(l)).r),f=n(o.g,l.g),d=n(o.b,l.b),h=UM(o.opacity,l.opacity);return function(y){return o.r=s(y),o.g=f(y),o.b=d(y),o.opacity=h(y),o+""}}return r.gamma=e,r})(1);function lB(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(l){for(o=0;o<n;++o)r[o]=e[o]*(1-l)+t[o]*l;return r}}function uB(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function sB(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),l=new Array(n),s;for(s=0;s<r;++s)o[s]=il(e[s],t[s]);for(;s<n;++s)l[s]=t[s];return function(f){for(s=0;s<r;++s)l[s]=o[s](f);return l}}function cB(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function df(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function fB(e,t){var n={},r={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=il(e[o],t[o]):r[o]=t[o];return function(l){for(o in n)r[o]=n[o](l);return r}}var B0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pg=new RegExp(B0.source,"g");function dB(e){return function(){return e}}function hB(e){return function(t){return e(t)+""}}function pB(e,t){var n=B0.lastIndex=pg.lastIndex=0,r,o,l,s=-1,f=[],d=[];for(e=e+"",t=t+"";(r=B0.exec(e))&&(o=pg.exec(t));)(l=o.index)>n&&(l=t.slice(n,l),f[s]?f[s]+=l:f[++s]=l),(r=r[0])===(o=o[0])?f[s]?f[s]+=o:f[++s]=o:(f[++s]=null,d.push({i:s,x:df(r,o)})),n=pg.lastIndex;return n<t.length&&(l=t.slice(n),f[s]?f[s]+=l:f[++s]=l),f.length<2?d[0]?hB(d[0].x):dB(t):(t=d.length,function(h){for(var y=0,p;y<t;++y)f[(p=d[y]).i]=p.x(h);return f.join("")})}function il(e,t){var n=typeof t,r;return t==null||n==="boolean"?yx(t):(n==="number"?df:n==="string"?(r=Pu(t))?(t=r,cT):pB:t instanceof Pu?cT:t instanceof Date?cB:uB(t)?lB:Array.isArray(t)?sB:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?fB:df)(e,t)}function vx(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function mB(e,t){t===void 0&&(t=e,e=il);for(var n=0,r=t.length-1,o=t[0],l=new Array(r<0?0:r);n<r;)l[n]=e(o,o=t[++n]);return function(s){var f=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return l[f](s-f)}}function yB(e){return function(){return e}}function hf(e){return+e}var fT=[0,1];function Vt(e){return e}function z0(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:yB(isNaN(t)?NaN:.5)}function vB(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function gB(e,t,n){var r=e[0],o=e[1],l=t[0],s=t[1];return o<r?(r=z0(o,r),l=n(s,l)):(r=z0(r,o),l=n(l,s)),function(f){return l(r(f))}}function bB(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),l=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)o[s]=z0(e[s],e[s+1]),l[s]=n(t[s],t[s+1]);return function(f){var d=us(e,f,1,r)-1;return l[d](o[d](f))}}function cs(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function hd(){var e=fT,t=fT,n=il,r,o,l,s=Vt,f,d,h;function y(){var b=Math.min(e.length,t.length);return s!==Vt&&(s=vB(e[0],e[b-1])),f=b>2?bB:gB,d=h=null,p}function p(b){return b==null||isNaN(b=+b)?l:(d||(d=f(e.map(r),t,n)))(r(s(b)))}return p.invert=function(b){return s(o((h||(h=f(t,e.map(r),df)))(b)))},p.domain=function(b){return arguments.length?(e=Array.from(b,hf),y()):e.slice()},p.range=function(b){return arguments.length?(t=Array.from(b),y()):t.slice()},p.rangeRound=function(b){return t=Array.from(b),n=vx,y()},p.clamp=function(b){return arguments.length?(s=b?!0:Vt,y()):s!==Vt},p.interpolate=function(b){return arguments.length?(n=b,y()):n},p.unknown=function(b){return arguments.length?(l=b,p):l},function(b,S){return r=b,o=S,y()}}function gx(){return hd()(Vt,Vt)}function xB(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function pf(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function No(e){return e=pf(Math.abs(e)),e?e[1]:NaN}function SB(e,t){return function(n,r){for(var o=n.length,l=[],s=0,f=e[0],d=0;o>0&&f>0&&(d+f+1>r&&(f=Math.max(1,r-d)),l.push(n.substring(o-=f,o+f)),!((d+=f+1)>r));)f=e[s=(s+1)%e.length];return l.reverse().join(t)}}function wB(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var _B=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Du(e){if(!(t=_B.exec(e)))throw new Error("invalid format: "+e);var t;return new bx({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]})}Du.prototype=bx.prototype;function bx(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+""}bx.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 OB(e){e:for(var t=e.length,n=1,r=-1,o;n<t;++n)switch(e[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var mf;function AB(e,t){var n=pf(e,t);if(!n)return mf=void 0,e.toPrecision(t);var r=n[0],o=n[1],l=o-(mf=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,s=r.length;return l===s?r:l>s?r+new Array(l-s+1).join("0"):l>0?r.slice(0,l)+"."+r.slice(l):"0."+new Array(1-l).join("0")+pf(e,Math.max(0,t+l-1))[0]}function dT(e,t){var n=pf(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const hT={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:xB,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)=>dT(e*100,t),r:dT,s:AB,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function pT(e){return e}var mT=Array.prototype.map,yT=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function jB(e){var t=e.grouping===void 0||e.thousands===void 0?pT:SB(mT.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",l=e.numerals===void 0?pT:wB(mT.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",f=e.minus===void 0?"−":e.minus+"",d=e.nan===void 0?"NaN":e.nan+"";function h(p,b){p=Du(p);var S=p.fill,_=p.align,w=p.sign,x=p.symbol,j=p.zero,T=p.width,E=p.comma,N=p.precision,O=p.trim,C=p.type;C==="n"?(E=!0,C="g"):hT[C]||(N===void 0&&(N=12),O=!0,C="g"),(j||S==="0"&&_==="=")&&(j=!0,S="0",_="=");var M=(b&&b.prefix!==void 0?b.prefix:"")+(x==="$"?n:x==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():""),D=(x==="$"?r:/[%p]/.test(C)?s:"")+(b&&b.suffix!==void 0?b.suffix:""),$=hT[C],z=/[defgprs%]/.test(C);N=N===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,N)):Math.max(0,Math.min(20,N));function L(B){var H=M,Y=D,W,k,X;if(C==="c")Y=$(B)+Y,B="";else{B=+B;var F=B<0||1/B<0;if(B=isNaN(B)?d:$(Math.abs(B),N),O&&(B=OB(B)),F&&+B==0&&w!=="+"&&(F=!1),H=(F?w==="("?w:f:w==="-"||w==="("?"":w)+H,Y=(C==="s"&&!isNaN(B)&&mf!==void 0?yT[8+mf/3]:"")+Y+(F&&w==="("?")":""),z){for(W=-1,k=B.length;++W<k;)if(X=B.charCodeAt(W),48>X||X>57){Y=(X===46?o+B.slice(W+1):B.slice(W))+Y,B=B.slice(0,W);break}}}E&&!j&&(B=t(B,1/0));var oe=H.length+B.length+Y.length,se=oe<T?new Array(T-oe+1).join(S):"";switch(E&&j&&(B=t(se+B,se.length?T-Y.length:1/0),se=""),_){case"<":B=H+B+Y+se;break;case"=":B=H+se+B+Y;break;case"^":B=se.slice(0,oe=se.length>>1)+H+B+Y+se.slice(oe);break;default:B=se+H+B+Y;break}return l(B)}return L.toString=function(){return p+""},L}function y(p,b){var S=Math.max(-8,Math.min(8,Math.floor(No(b)/3)))*3,_=Math.pow(10,-S),w=h((p=Du(p),p.type="f",p),{suffix:yT[8+S/3]});return function(x){return w(_*x)}}return{format:h,formatPrefix:y}}var Bc,xx,IM;TB({thousands:",",grouping:[3],currency:["$",""]});function TB(e){return Bc=jB(e),xx=Bc.format,IM=Bc.formatPrefix,Bc}function EB(e){return Math.max(0,-No(Math.abs(e)))}function NB(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(No(t)/3)))*3-No(Math.abs(e)))}function CB(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,No(t)-No(e))+1}function HM(e,t,n,r){var o=$0(e,t,n),l;switch(r=Du(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(l=NB(o,s))&&(r.precision=l),IM(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(l=CB(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=l-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(l=EB(o))&&(r.precision=l-(r.type==="%")*2);break}}return xx(r)}function Pa(e){var t=e.domain;return e.ticks=function(n){var r=t();return D0(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return HM(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,l=r.length-1,s=r[o],f=r[l],d,h,y=10;for(f<s&&(h=s,s=f,f=h,h=o,o=l,l=h);y-- >0;){if(h=k0(s,f,n),h===d)return r[o]=s,r[l]=f,t(r);if(h>0)s=Math.floor(s/h)*h,f=Math.ceil(f/h)*h;else if(h<0)s=Math.ceil(s*h)/h,f=Math.floor(f*h)/h;else break;d=h}return e},e}function yf(){var e=gx();return e.copy=function(){return cs(e,yf())},zn.apply(e,arguments),Pa(e)}function GM(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,hf),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return GM(e).unknown(t)},e=arguments.length?Array.from(e,hf):[0,1],Pa(n)}function YM(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],l=e[r],s;return l<o&&(s=n,n=r,r=s,s=o,o=l,l=s),e[n]=t.floor(o),e[r]=t.ceil(l),e}function vT(e){return Math.log(e)}function gT(e){return Math.exp(e)}function MB(e){return-Math.log(-e)}function RB(e){return-Math.exp(-e)}function PB(e){return isFinite(e)?+("1e"+e):e<0?0:e}function DB(e){return e===10?PB:e===Math.E?Math.exp:t=>Math.pow(e,t)}function kB(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 bT(e){return(t,n)=>-e(-t,n)}function Sx(e){const t=e(vT,gT),n=t.domain;let r=10,o,l;function s(){return o=kB(r),l=DB(r),n()[0]<0?(o=bT(o),l=bT(l),e(MB,RB)):e(vT,gT),t}return t.base=function(f){return arguments.length?(r=+f,s()):r},t.domain=function(f){return arguments.length?(n(f),s()):n()},t.ticks=f=>{const d=n();let h=d[0],y=d[d.length-1];const p=y<h;p&&([h,y]=[y,h]);let b=o(h),S=o(y),_,w;const x=f==null?10:+f;let j=[];if(!(r%1)&&S-b<x){if(b=Math.floor(b),S=Math.ceil(S),h>0){for(;b<=S;++b)for(_=1;_<r;++_)if(w=b<0?_/l(-b):_*l(b),!(w<h)){if(w>y)break;j.push(w)}}else for(;b<=S;++b)for(_=r-1;_>=1;--_)if(w=b>0?_/l(-b):_*l(b),!(w<h)){if(w>y)break;j.push(w)}j.length*2<x&&(j=D0(h,y,x))}else j=D0(b,S,Math.min(S-b,x)).map(l);return p?j.reverse():j},t.tickFormat=(f,d)=>{if(f==null&&(f=10),d==null&&(d=r===10?"s":","),typeof d!="function"&&(!(r%1)&&(d=Du(d)).precision==null&&(d.trim=!0),d=xx(d)),f===1/0)return d;const h=Math.max(1,r*f/t.ticks().length);return y=>{let p=y/l(Math.round(o(y)));return p*r<r-.5&&(p*=r),p<=h?d(y):""}},t.nice=()=>n(YM(n(),{floor:f=>l(Math.floor(o(f))),ceil:f=>l(Math.ceil(o(f)))})),t}function KM(){const e=Sx(hd()).domain([1,10]);return e.copy=()=>cs(e,KM()).base(e.base()),zn.apply(e,arguments),e}function xT(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function ST(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function wx(e){var t=1,n=e(xT(t),ST(t));return n.constant=function(r){return arguments.length?e(xT(t=+r),ST(t)):t},Pa(n)}function VM(){var e=wx(hd());return e.copy=function(){return cs(e,VM()).constant(e.constant())},zn.apply(e,arguments)}function wT(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function $B(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function LB(e){return e<0?-e*e:e*e}function _x(e){var t=e(Vt,Vt),n=1;function r(){return n===1?e(Vt,Vt):n===.5?e($B,LB):e(wT(n),wT(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},Pa(t)}function Ox(){var e=_x(hd());return e.copy=function(){return cs(e,Ox()).exponent(e.exponent())},zn.apply(e,arguments),e}function qB(){return Ox.apply(null,arguments).exponent(.5)}function _T(e){return Math.sign(e)*e*e}function BB(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function XM(){var e=gx(),t=[0,1],n=!1,r;function o(l){var s=BB(e(l));return isNaN(s)?r:n?Math.round(s):s}return o.invert=function(l){return e.invert(_T(l))},o.domain=function(l){return arguments.length?(e.domain(l),o):e.domain()},o.range=function(l){return arguments.length?(e.range((t=Array.from(l,hf)).map(_T)),o):t.slice()},o.rangeRound=function(l){return o.range(l).round(!0)},o.round=function(l){return arguments.length?(n=!!l,o):n},o.clamp=function(l){return arguments.length?(e.clamp(l),o):e.clamp()},o.unknown=function(l){return arguments.length?(r=l,o):r},o.copy=function(){return XM(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},zn.apply(o,arguments),Pa(o)}function FM(){var e=[],t=[],n=[],r;function o(){var s=0,f=Math.max(1,t.length);for(n=new Array(f-1);++s<f;)n[s-1]=Gq(e,s/f);return l}function l(s){return s==null||isNaN(s=+s)?r:t[us(n,s)]}return l.invertExtent=function(s){var f=t.indexOf(s);return f<0?[NaN,NaN]:[f>0?n[f-1]:e[0],f<n.length?n[f]:e[e.length-1]]},l.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let f of s)f!=null&&!isNaN(f=+f)&&e.push(f);return e.sort(Na),o()},l.range=function(s){return arguments.length?(t=Array.from(s),o()):t.slice()},l.unknown=function(s){return arguments.length?(r=s,l):r},l.quantiles=function(){return n.slice()},l.copy=function(){return FM().domain(e).range(t).unknown(r)},zn.apply(l,arguments)}function WM(){var e=0,t=1,n=1,r=[.5],o=[0,1],l;function s(d){return d!=null&&d<=d?o[us(r,d,0,n)]:l}function f(){var d=-1;for(r=new Array(n);++d<n;)r[d]=((d+1)*t-(d-n)*e)/(n+1);return s}return s.domain=function(d){return arguments.length?([e,t]=d,e=+e,t=+t,f()):[e,t]},s.range=function(d){return arguments.length?(n=(o=Array.from(d)).length-1,f()):o.slice()},s.invertExtent=function(d){var h=o.indexOf(d);return h<0?[NaN,NaN]:h<1?[e,r[0]]:h>=n?[r[n-1],t]:[r[h-1],r[h]]},s.unknown=function(d){return arguments.length&&(l=d),s},s.thresholds=function(){return r.slice()},s.copy=function(){return WM().domain([e,t]).range(o).unknown(l)},zn.apply(Pa(s),arguments)}function ZM(){var e=[.5],t=[0,1],n,r=1;function o(l){return l!=null&&l<=l?t[us(e,l,0,r)]:n}return o.domain=function(l){return arguments.length?(e=Array.from(l),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(l){return arguments.length?(t=Array.from(l),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(l){var s=t.indexOf(l);return[e[s-1],e[s]]},o.unknown=function(l){return arguments.length?(n=l,o):n},o.copy=function(){return ZM().domain(e).range(t).unknown(n)},zn.apply(o,arguments)}const mg=new Date,yg=new Date;function Et(e,t,n,r){function o(l){return e(l=arguments.length===0?new Date:new Date(+l)),l}return o.floor=l=>(e(l=new Date(+l)),l),o.ceil=l=>(e(l=new Date(l-1)),t(l,1),e(l),l),o.round=l=>{const s=o(l),f=o.ceil(l);return l-s<f-l?s:f},o.offset=(l,s)=>(t(l=new Date(+l),s==null?1:Math.floor(s)),l),o.range=(l,s,f)=>{const d=[];if(l=o.ceil(l),f=f==null?1:Math.floor(f),!(l<s)||!(f>0))return d;let h;do d.push(h=new Date(+l)),t(l,f),e(l);while(h<l&&l<s);return d},o.filter=l=>Et(s=>{if(s>=s)for(;e(s),!l(s);)s.setTime(s-1)},(s,f)=>{if(s>=s)if(f<0)for(;++f<=0;)for(;t(s,-1),!l(s););else for(;--f>=0;)for(;t(s,1),!l(s););}),n&&(o.count=(l,s)=>(mg.setTime(+l),yg.setTime(+s),e(mg),e(yg),Math.floor(n(mg,yg))),o.every=l=>(l=Math.floor(l),!isFinite(l)||!(l>0)?null:l>1?o.filter(r?s=>r(s)%l===0:s=>o.count(0,s)%l===0):o)),o}const vf=Et(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);vf.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Et(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):vf);vf.range;const Dr=1e3,$n=Dr*60,kr=$n*60,Hr=kr*24,Ax=Hr*7,OT=Hr*30,vg=Hr*365,ui=Et(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Dr)},(e,t)=>(t-e)/Dr,e=>e.getUTCSeconds());ui.range;const jx=Et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Dr)},(e,t)=>{e.setTime(+e+t*$n)},(e,t)=>(t-e)/$n,e=>e.getMinutes());jx.range;const Tx=Et(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*$n)},(e,t)=>(t-e)/$n,e=>e.getUTCMinutes());Tx.range;const Ex=Et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Dr-e.getMinutes()*$n)},(e,t)=>{e.setTime(+e+t*kr)},(e,t)=>(t-e)/kr,e=>e.getHours());Ex.range;const Nx=Et(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*kr)},(e,t)=>(t-e)/kr,e=>e.getUTCHours());Nx.range;const fs=Et(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*$n)/Hr,e=>e.getDate()-1);fs.range;const pd=Et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Hr,e=>e.getUTCDate()-1);pd.range;const QM=Et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Hr,e=>Math.floor(e/Hr));QM.range;function Si(e){return Et(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())*$n)/Ax)}const md=Si(0),gf=Si(1),zB=Si(2),UB=Si(3),Co=Si(4),IB=Si(5),HB=Si(6);md.range;gf.range;zB.range;UB.range;Co.range;IB.range;HB.range;function wi(e){return Et(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)/Ax)}const yd=wi(0),bf=wi(1),GB=wi(2),YB=wi(3),Mo=wi(4),KB=wi(5),VB=wi(6);yd.range;bf.range;GB.range;YB.range;Mo.range;KB.range;VB.range;const Cx=Et(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());Cx.range;const Mx=Et(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());Mx.range;const Gr=Et(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());Gr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Et(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)});Gr.range;const Yr=Et(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());Yr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Et(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)});Yr.range;function JM(e,t,n,r,o,l){const s=[[ui,1,Dr],[ui,5,5*Dr],[ui,15,15*Dr],[ui,30,30*Dr],[l,1,$n],[l,5,5*$n],[l,15,15*$n],[l,30,30*$n],[o,1,kr],[o,3,3*kr],[o,6,6*kr],[o,12,12*kr],[r,1,Hr],[r,2,2*Hr],[n,1,Ax],[t,1,OT],[t,3,3*OT],[e,1,vg]];function f(h,y,p){const b=y<h;b&&([h,y]=[y,h]);const S=p&&typeof p.range=="function"?p:d(h,y,p),_=S?S.range(h,+y+1):[];return b?_.reverse():_}function d(h,y,p){const b=Math.abs(y-h)/p,S=hx(([,,x])=>x).right(s,b);if(S===s.length)return e.every($0(h/vg,y/vg,p));if(S===0)return vf.every(Math.max($0(h,y,p),1));const[_,w]=s[b/s[S-1][2]<s[S][2]/b?S-1:S];return _.every(w)}return[f,d]}const[XB,FB]=JM(Yr,Mx,yd,QM,Nx,Tx),[WB,ZB]=JM(Gr,Cx,md,fs,Ex,jx);function gg(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 bg(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 ou(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function QB(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,l=e.days,s=e.shortDays,f=e.months,d=e.shortMonths,h=lu(o),y=uu(o),p=lu(l),b=uu(l),S=lu(s),_=uu(s),w=lu(f),x=uu(f),j=lu(d),T=uu(d),E={a:X,A:F,b:oe,B:se,c:null,d:CT,e:CT,f:Sz,g:Mz,G:Pz,H:gz,I:bz,j:xz,L:e3,m:wz,M:_z,p:q,q:K,Q:PT,s:DT,S:Oz,u:Az,U:jz,V:Tz,w:Ez,W:Nz,x:null,X:null,y:Cz,Y:Rz,Z:Dz,"%":RT},N={a:re,A:fe,b:pe,B:le,c:null,d:MT,e:MT,f:qz,g:Xz,G:Wz,H:kz,I:$z,j:Lz,L:n3,m:Bz,M:zz,p:Se,q:qe,Q:PT,s:DT,S:Uz,u:Iz,U:Hz,V:Gz,w:Yz,W:Kz,x:null,X:null,y:Vz,Y:Fz,Z:Zz,"%":RT},O={a:z,A:L,b:B,B:H,c:Y,d:ET,e:ET,f:pz,g:TT,G:jT,H:NT,I:NT,j:cz,L:hz,m:sz,M:fz,p:$,q:uz,Q:yz,s:vz,S:dz,u:rz,U:az,V:iz,w:nz,W:oz,x:W,X:k,y:TT,Y:jT,Z:lz,"%":mz};E.x=C(n,E),E.X=C(r,E),E.c=C(t,E),N.x=C(n,N),N.X=C(r,N),N.c=C(t,N);function C(ce,we){return function(Ae){var ue=[],rt=-1,Ne=0,ct=ce.length,ft,zt,Un;for(Ae instanceof Date||(Ae=new Date(+Ae));++rt<ct;)ce.charCodeAt(rt)===37&&(ue.push(ce.slice(Ne,rt)),(zt=AT[ft=ce.charAt(++rt)])!=null?ft=ce.charAt(++rt):zt=ft==="e"?" ":"0",(Un=we[ft])&&(ft=Un(Ae,zt)),ue.push(ft),Ne=rt+1);return ue.push(ce.slice(Ne,rt)),ue.join("")}}function M(ce,we){return function(Ae){var ue=ou(1900,void 0,1),rt=D(ue,ce,Ae+="",0),Ne,ct;if(rt!=Ae.length)return null;if("Q"in ue)return new Date(ue.Q);if("s"in ue)return new Date(ue.s*1e3+("L"in ue?ue.L:0));if(we&&!("Z"in ue)&&(ue.Z=0),"p"in ue&&(ue.H=ue.H%12+ue.p*12),ue.m===void 0&&(ue.m="q"in ue?ue.q:0),"V"in ue){if(ue.V<1||ue.V>53)return null;"w"in ue||(ue.w=1),"Z"in ue?(Ne=bg(ou(ue.y,0,1)),ct=Ne.getUTCDay(),Ne=ct>4||ct===0?bf.ceil(Ne):bf(Ne),Ne=pd.offset(Ne,(ue.V-1)*7),ue.y=Ne.getUTCFullYear(),ue.m=Ne.getUTCMonth(),ue.d=Ne.getUTCDate()+(ue.w+6)%7):(Ne=gg(ou(ue.y,0,1)),ct=Ne.getDay(),Ne=ct>4||ct===0?gf.ceil(Ne):gf(Ne),Ne=fs.offset(Ne,(ue.V-1)*7),ue.y=Ne.getFullYear(),ue.m=Ne.getMonth(),ue.d=Ne.getDate()+(ue.w+6)%7)}else("W"in ue||"U"in ue)&&("w"in ue||(ue.w="u"in ue?ue.u%7:"W"in ue?1:0),ct="Z"in ue?bg(ou(ue.y,0,1)).getUTCDay():gg(ou(ue.y,0,1)).getDay(),ue.m=0,ue.d="W"in ue?(ue.w+6)%7+ue.W*7-(ct+5)%7:ue.w+ue.U*7-(ct+6)%7);return"Z"in ue?(ue.H+=ue.Z/100|0,ue.M+=ue.Z%100,bg(ue)):gg(ue)}}function D(ce,we,Ae,ue){for(var rt=0,Ne=we.length,ct=Ae.length,ft,zt;rt<Ne;){if(ue>=ct)return-1;if(ft=we.charCodeAt(rt++),ft===37){if(ft=we.charAt(rt++),zt=O[ft in AT?we.charAt(rt++):ft],!zt||(ue=zt(ce,Ae,ue))<0)return-1}else if(ft!=Ae.charCodeAt(ue++))return-1}return ue}function $(ce,we,Ae){var ue=h.exec(we.slice(Ae));return ue?(ce.p=y.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function z(ce,we,Ae){var ue=S.exec(we.slice(Ae));return ue?(ce.w=_.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function L(ce,we,Ae){var ue=p.exec(we.slice(Ae));return ue?(ce.w=b.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function B(ce,we,Ae){var ue=j.exec(we.slice(Ae));return ue?(ce.m=T.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function H(ce,we,Ae){var ue=w.exec(we.slice(Ae));return ue?(ce.m=x.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function Y(ce,we,Ae){return D(ce,t,we,Ae)}function W(ce,we,Ae){return D(ce,n,we,Ae)}function k(ce,we,Ae){return D(ce,r,we,Ae)}function X(ce){return s[ce.getDay()]}function F(ce){return l[ce.getDay()]}function oe(ce){return d[ce.getMonth()]}function se(ce){return f[ce.getMonth()]}function q(ce){return o[+(ce.getHours()>=12)]}function K(ce){return 1+~~(ce.getMonth()/3)}function re(ce){return s[ce.getUTCDay()]}function fe(ce){return l[ce.getUTCDay()]}function pe(ce){return d[ce.getUTCMonth()]}function le(ce){return f[ce.getUTCMonth()]}function Se(ce){return o[+(ce.getUTCHours()>=12)]}function qe(ce){return 1+~~(ce.getUTCMonth()/3)}return{format:function(ce){var we=C(ce+="",E);return we.toString=function(){return ce},we},parse:function(ce){var we=M(ce+="",!1);return we.toString=function(){return ce},we},utcFormat:function(ce){var we=C(ce+="",N);return we.toString=function(){return ce},we},utcParse:function(ce){var we=M(ce+="",!0);return we.toString=function(){return ce},we}}}var AT={"-":"",_:" ",0:"0"},Pt=/^\s*\d+/,JB=/^%/,ez=/[\\^$*+?|[\]().{}]/g;function Ue(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",l=o.length;return r+(l<n?new Array(n-l+1).join(t)+o:o)}function tz(e){return e.replace(ez,"\\$&")}function lu(e){return new RegExp("^(?:"+e.map(tz).join("|")+")","i")}function uu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function nz(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function rz(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function az(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function iz(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function oz(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function jT(e,t,n){var r=Pt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function TT(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function lz(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 uz(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function sz(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ET(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function cz(e,t,n){var r=Pt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function NT(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function fz(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function dz(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function hz(e,t,n){var r=Pt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function pz(e,t,n){var r=Pt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function mz(e,t,n){var r=JB.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function yz(e,t,n){var r=Pt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function vz(e,t,n){var r=Pt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function CT(e,t){return Ue(e.getDate(),t,2)}function gz(e,t){return Ue(e.getHours(),t,2)}function bz(e,t){return Ue(e.getHours()%12||12,t,2)}function xz(e,t){return Ue(1+fs.count(Gr(e),e),t,3)}function e3(e,t){return Ue(e.getMilliseconds(),t,3)}function Sz(e,t){return e3(e,t)+"000"}function wz(e,t){return Ue(e.getMonth()+1,t,2)}function _z(e,t){return Ue(e.getMinutes(),t,2)}function Oz(e,t){return Ue(e.getSeconds(),t,2)}function Az(e){var t=e.getDay();return t===0?7:t}function jz(e,t){return Ue(md.count(Gr(e)-1,e),t,2)}function t3(e){var t=e.getDay();return t>=4||t===0?Co(e):Co.ceil(e)}function Tz(e,t){return e=t3(e),Ue(Co.count(Gr(e),e)+(Gr(e).getDay()===4),t,2)}function Ez(e){return e.getDay()}function Nz(e,t){return Ue(gf.count(Gr(e)-1,e),t,2)}function Cz(e,t){return Ue(e.getFullYear()%100,t,2)}function Mz(e,t){return e=t3(e),Ue(e.getFullYear()%100,t,2)}function Rz(e,t){return Ue(e.getFullYear()%1e4,t,4)}function Pz(e,t){var n=e.getDay();return e=n>=4||n===0?Co(e):Co.ceil(e),Ue(e.getFullYear()%1e4,t,4)}function Dz(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ue(t/60|0,"0",2)+Ue(t%60,"0",2)}function MT(e,t){return Ue(e.getUTCDate(),t,2)}function kz(e,t){return Ue(e.getUTCHours(),t,2)}function $z(e,t){return Ue(e.getUTCHours()%12||12,t,2)}function Lz(e,t){return Ue(1+pd.count(Yr(e),e),t,3)}function n3(e,t){return Ue(e.getUTCMilliseconds(),t,3)}function qz(e,t){return n3(e,t)+"000"}function Bz(e,t){return Ue(e.getUTCMonth()+1,t,2)}function zz(e,t){return Ue(e.getUTCMinutes(),t,2)}function Uz(e,t){return Ue(e.getUTCSeconds(),t,2)}function Iz(e){var t=e.getUTCDay();return t===0?7:t}function Hz(e,t){return Ue(yd.count(Yr(e)-1,e),t,2)}function r3(e){var t=e.getUTCDay();return t>=4||t===0?Mo(e):Mo.ceil(e)}function Gz(e,t){return e=r3(e),Ue(Mo.count(Yr(e),e)+(Yr(e).getUTCDay()===4),t,2)}function Yz(e){return e.getUTCDay()}function Kz(e,t){return Ue(bf.count(Yr(e)-1,e),t,2)}function Vz(e,t){return Ue(e.getUTCFullYear()%100,t,2)}function Xz(e,t){return e=r3(e),Ue(e.getUTCFullYear()%100,t,2)}function Fz(e,t){return Ue(e.getUTCFullYear()%1e4,t,4)}function Wz(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Mo(e):Mo.ceil(e),Ue(e.getUTCFullYear()%1e4,t,4)}function Zz(){return"+0000"}function RT(){return"%"}function PT(e){return+e}function DT(e){return Math.floor(+e/1e3)}var ho,a3,i3;Qz({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 Qz(e){return ho=QB(e),a3=ho.format,ho.parse,i3=ho.utcFormat,ho.utcParse,ho}function Jz(e){return new Date(e)}function e7(e){return e instanceof Date?+e:+new Date(+e)}function Rx(e,t,n,r,o,l,s,f,d,h){var y=gx(),p=y.invert,b=y.domain,S=h(".%L"),_=h(":%S"),w=h("%I:%M"),x=h("%I %p"),j=h("%a %d"),T=h("%b %d"),E=h("%B"),N=h("%Y");function O(C){return(d(C)<C?S:f(C)<C?_:s(C)<C?w:l(C)<C?x:r(C)<C?o(C)<C?j:T:n(C)<C?E:N)(C)}return y.invert=function(C){return new Date(p(C))},y.domain=function(C){return arguments.length?b(Array.from(C,e7)):b().map(Jz)},y.ticks=function(C){var M=b();return e(M[0],M[M.length-1],C??10)},y.tickFormat=function(C,M){return M==null?O:h(M)},y.nice=function(C){var M=b();return(!C||typeof C.range!="function")&&(C=t(M[0],M[M.length-1],C??10)),C?b(YM(M,C)):y},y.copy=function(){return cs(y,Rx(e,t,n,r,o,l,s,f,d,h))},y}function t7(){return zn.apply(Rx(WB,ZB,Gr,Cx,md,fs,Ex,jx,ui,a3).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function n7(){return zn.apply(Rx(XB,FB,Yr,Mx,yd,pd,Nx,Tx,ui,i3).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function vd(){var e=0,t=1,n,r,o,l,s=Vt,f=!1,d;function h(p){return p==null||isNaN(p=+p)?d:s(o===0?.5:(p=(l(p)-n)*o,f?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t]=p,n=l(e=+e),r=l(t=+t),o=n===r?0:1/(r-n),h):[e,t]},h.clamp=function(p){return arguments.length?(f=!!p,h):f},h.interpolator=function(p){return arguments.length?(s=p,h):s};function y(p){return function(b){var S,_;return arguments.length?([S,_]=b,s=p(S,_),h):[s(0),s(1)]}}return h.range=y(il),h.rangeRound=y(vx),h.unknown=function(p){return arguments.length?(d=p,h):d},function(p){return l=p,n=p(e),r=p(t),o=n===r?0:1/(r-n),h}}function Da(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function o3(){var e=Pa(vd()(Vt));return e.copy=function(){return Da(e,o3())},Wr.apply(e,arguments)}function l3(){var e=Sx(vd()).domain([1,10]);return e.copy=function(){return Da(e,l3()).base(e.base())},Wr.apply(e,arguments)}function u3(){var e=wx(vd());return e.copy=function(){return Da(e,u3()).constant(e.constant())},Wr.apply(e,arguments)}function Px(){var e=_x(vd());return e.copy=function(){return Da(e,Px()).exponent(e.exponent())},Wr.apply(e,arguments)}function r7(){return Px.apply(null,arguments).exponent(.5)}function s3(){var e=[],t=Vt;function n(r){if(r!=null&&!isNaN(r=+r))return t((us(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let o of r)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(Na),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,o)=>t(o/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(o,l)=>Hq(e,l/r))},n.copy=function(){return s3(t).domain(e)},Wr.apply(n,arguments)}function gd(){var e=0,t=.5,n=1,r=1,o,l,s,f,d,h=Vt,y,p=!1,b;function S(w){return isNaN(w=+w)?b:(w=.5+((w=+y(w))-l)*(r*w<r*l?f:d),h(p?Math.max(0,Math.min(1,w)):w))}S.domain=function(w){return arguments.length?([e,t,n]=w,o=y(e=+e),l=y(t=+t),s=y(n=+n),f=o===l?0:.5/(l-o),d=l===s?0:.5/(s-l),r=l<o?-1:1,S):[e,t,n]},S.clamp=function(w){return arguments.length?(p=!!w,S):p},S.interpolator=function(w){return arguments.length?(h=w,S):h};function _(w){return function(x){var j,T,E;return arguments.length?([j,T,E]=x,h=mB(w,[j,T,E]),S):[h(0),h(.5),h(1)]}}return S.range=_(il),S.rangeRound=_(vx),S.unknown=function(w){return arguments.length?(b=w,S):b},function(w){return y=w,o=w(e),l=w(t),s=w(n),f=o===l?0:.5/(l-o),d=l===s?0:.5/(s-l),r=l<o?-1:1,S}}function c3(){var e=Pa(gd()(Vt));return e.copy=function(){return Da(e,c3())},Wr.apply(e,arguments)}function f3(){var e=Sx(gd()).domain([.1,1,10]);return e.copy=function(){return Da(e,f3()).base(e.base())},Wr.apply(e,arguments)}function d3(){var e=wx(gd());return e.copy=function(){return Da(e,d3()).constant(e.constant())},Wr.apply(e,arguments)}function Dx(){var e=_x(gd());return e.copy=function(){return Da(e,Dx()).exponent(e.exponent())},Wr.apply(e,arguments)}function a7(){return Dx.apply(null,arguments).exponent(.5)}const kT=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Cu,scaleDiverging:c3,scaleDivergingLog:f3,scaleDivergingPow:Dx,scaleDivergingSqrt:a7,scaleDivergingSymlog:d3,scaleIdentity:GM,scaleImplicit:L0,scaleLinear:yf,scaleLog:KM,scaleOrdinal:px,scalePoint:vu,scalePow:Ox,scaleQuantile:FM,scaleQuantize:WM,scaleRadial:XM,scaleSequential:o3,scaleSequentialLog:l3,scaleSequentialPow:Px,scaleSequentialQuantile:s3,scaleSequentialSqrt:r7,scaleSequentialSymlog:u3,scaleSqrt:qB,scaleSymlog:VM,scaleThreshold:ZM,scaleTime:t7,scaleUtc:n7,tickFormat:HM},Symbol.toStringTag,{value:"Module"}));var xg,$T;function bd(){if($T)return xg;$T=1;var e=el();function t(n,r,o){for(var l=-1,s=n.length;++l<s;){var f=n[l],d=r(f);if(d!=null&&(h===void 0?d===d&&!e(d):o(d,h)))var h=d,y=f}return y}return xg=t,xg}var Sg,LT;function h3(){if(LT)return Sg;LT=1;function e(t,n){return t>n}return Sg=e,Sg}var wg,qT;function i7(){if(qT)return wg;qT=1;var e=bd(),t=h3(),n=al();function r(o){return o&&o.length?e(o,n,t):void 0}return wg=r,wg}var o7=i7();const Ta=Ze(o7);var _g,BT;function p3(){if(BT)return _g;BT=1;function e(t,n){return t<n}return _g=e,_g}var Og,zT;function l7(){if(zT)return Og;zT=1;var e=bd(),t=p3(),n=al();function r(o){return o&&o.length?e(o,n,t):void 0}return Og=r,Og}var u7=l7();const xd=Ze(u7);var Ag,UT;function s7(){if(UT)return Ag;UT=1;var e=Wb(),t=dr(),n=_M(),r=an();function o(l,s){var f=r(l)?e:n;return f(l,t(s,3))}return Ag=o,Ag}var jg,IT;function c7(){if(IT)return jg;IT=1;var e=SM(),t=s7();function n(r,o){return e(t(r,o),1)}return jg=n,jg}var f7=c7();const d7=Ze(f7);var Tg,HT;function h7(){if(HT)return Tg;HT=1;var e=sx();function t(n,r){return e(n,r)}return Tg=t,Tg}var p7=h7();const Ro=Ze(p7);var ol=1e9,m7={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},$x,ut=!0,qn="[DecimalError] ",hi=qn+"Invalid argument: ",kx=qn+"Exponent out of range: ",ll=Math.floor,ai=Math.pow,y7=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,bn,Mt=1e7,ot=7,m3=9007199254740991,xf=ll(m3/ot),he={};he.absoluteValue=he.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};he.comparedTo=he.cmp=function(e){var t,n,r,o,l=this;if(e=new l.constructor(e),l.s!==e.s)return l.s||-e.s;if(l.e!==e.e)return l.e>e.e^l.s<0?1:-1;for(r=l.d.length,o=e.d.length,t=0,n=r<o?r:o;t<n;++t)if(l.d[t]!==e.d[t])return l.d[t]>e.d[t]^l.s<0?1:-1;return r===o?0:r>o^l.s<0?1:-1};he.decimalPlaces=he.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*ot;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};he.dividedBy=he.div=function(e){return Br(this,new this.constructor(e))};he.dividedToIntegerBy=he.idiv=function(e){var t=this,n=t.constructor;return Je(Br(t,new n(e),0,1),n.precision)};he.equals=he.eq=function(e){return!this.cmp(e)};he.exponent=function(){return wt(this)};he.greaterThan=he.gt=function(e){return this.cmp(e)>0};he.greaterThanOrEqualTo=he.gte=function(e){return this.cmp(e)>=0};he.isInteger=he.isint=function(){return this.e>this.d.length-2};he.isNegative=he.isneg=function(){return this.s<0};he.isPositive=he.ispos=function(){return this.s>0};he.isZero=function(){return this.s===0};he.lessThan=he.lt=function(e){return this.cmp(e)<0};he.lessThanOrEqualTo=he.lte=function(e){return this.cmp(e)<1};he.logarithm=he.log=function(e){var t,n=this,r=n.constructor,o=r.precision,l=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(bn))throw Error(qn+"NaN");if(n.s<1)throw Error(qn+(n.s?"NaN":"-Infinity"));return n.eq(bn)?new r(0):(ut=!1,t=Br(ku(n,l),ku(e,l),l),ut=!0,Je(t,o))};he.minus=he.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?g3(t,e):y3(t,(e.s=-e.s,e))};he.modulo=he.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(qn+"NaN");return n.s?(ut=!1,t=Br(n,e,0,1).times(e),ut=!0,n.minus(t)):Je(new r(n),o)};he.naturalExponential=he.exp=function(){return v3(this)};he.naturalLogarithm=he.ln=function(){return ku(this)};he.negated=he.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};he.plus=he.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?y3(t,e):g3(t,(e.s=-e.s,e))};he.precision=he.sd=function(e){var t,n,r,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(hi+e);if(t=wt(o)+1,r=o.d.length-1,n=r*ot+1,r=o.d[r],r){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};he.squareRoot=he.sqrt=function(){var e,t,n,r,o,l,s,f=this,d=f.constructor;if(f.s<1){if(!f.s)return new d(0);throw Error(qn+"NaN")}for(e=wt(f),ut=!1,o=Math.sqrt(+f),o==0||o==1/0?(t=ir(f.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=ll((e+1)/2)-(e<0||e%2),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new d(t)):r=new d(o.toString()),n=d.precision,o=s=n+3;;)if(l=r,r=l.plus(Br(f,l,s+2)).times(.5),ir(l.d).slice(0,s)===(t=ir(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),o==s&&t=="4999"){if(Je(l,n+1,0),l.times(l).eq(f)){r=l;break}}else if(t!="9999")break;s+=4}return ut=!0,Je(r,n)};he.times=he.mul=function(e){var t,n,r,o,l,s,f,d,h,y=this,p=y.constructor,b=y.d,S=(e=new p(e)).d;if(!y.s||!e.s)return new p(0);for(e.s*=y.s,n=y.e+e.e,d=b.length,h=S.length,d<h&&(l=b,b=S,S=l,s=d,d=h,h=s),l=[],s=d+h,r=s;r--;)l.push(0);for(r=h;--r>=0;){for(t=0,o=d+r;o>r;)f=l[o]+S[r]*b[o-r-1]+t,l[o--]=f%Mt|0,t=f/Mt|0;l[o]=(l[o]+t)%Mt|0}for(;!l[--s];)l.pop();return t?++n:l.shift(),e.d=l,e.e=n,ut?Je(e,p.precision):e};he.toDecimalPlaces=he.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(sr(e,0,ol),t===void 0?t=r.rounding:sr(t,0,8),Je(n,e+wt(n)+1,t))};he.toExponential=function(e,t){var n,r=this,o=r.constructor;return e===void 0?n=vi(r,!0):(sr(e,0,ol),t===void 0?t=o.rounding:sr(t,0,8),r=Je(new o(r),e+1,t),n=vi(r,!0,e+1)),n};he.toFixed=function(e,t){var n,r,o=this,l=o.constructor;return e===void 0?vi(o):(sr(e,0,ol),t===void 0?t=l.rounding:sr(t,0,8),r=Je(new l(o),e+wt(o)+1,t),n=vi(r.abs(),!1,e+wt(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)};he.toInteger=he.toint=function(){var e=this,t=e.constructor;return Je(new t(e),wt(e)+1,t.rounding)};he.toNumber=function(){return+this};he.toPower=he.pow=function(e){var t,n,r,o,l,s,f=this,d=f.constructor,h=12,y=+(e=new d(e));if(!e.s)return new d(bn);if(f=new d(f),!f.s){if(e.s<1)throw Error(qn+"Infinity");return f}if(f.eq(bn))return f;if(r=d.precision,e.eq(bn))return Je(f,r);if(t=e.e,n=e.d.length-1,s=t>=n,l=f.s,s){if((n=y<0?-y:y)<=m3){for(o=new d(bn),t=Math.ceil(r/ot+4),ut=!1;n%2&&(o=o.times(f),YT(o.d,t)),n=ll(n/2),n!==0;)f=f.times(f),YT(f.d,t);return ut=!0,e.s<0?new d(bn).div(o):Je(o,r)}}else if(l<0)throw Error(qn+"NaN");return l=l<0&&e.d[Math.max(t,n)]&1?-1:1,f.s=1,ut=!1,o=e.times(ku(f,r+h)),ut=!0,o=v3(o),o.s=l,o};he.toPrecision=function(e,t){var n,r,o=this,l=o.constructor;return e===void 0?(n=wt(o),r=vi(o,n<=l.toExpNeg||n>=l.toExpPos)):(sr(e,1,ol),t===void 0?t=l.rounding:sr(t,0,8),o=Je(new l(o),e,t),n=wt(o),r=vi(o,e<=n||n<=l.toExpNeg,e)),r};he.toSignificantDigits=he.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(sr(e,1,ol),t===void 0?t=r.rounding:sr(t,0,8)),Je(new r(n),e,t)};he.toString=he.valueOf=he.val=he.toJSON=he[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=wt(e),n=e.constructor;return vi(e,t<=n.toExpNeg||t>=n.toExpPos)};function y3(e,t){var n,r,o,l,s,f,d,h,y=e.constructor,p=y.precision;if(!e.s||!t.s)return t.s||(t=new y(e)),ut?Je(t,p):t;if(d=e.d,h=t.d,s=e.e,o=t.e,d=d.slice(),l=s-o,l){for(l<0?(r=d,l=-l,f=h.length):(r=h,o=s,f=d.length),s=Math.ceil(p/ot),f=s>f?s+1:f+1,l>f&&(l=f,r.length=1),r.reverse();l--;)r.push(0);r.reverse()}for(f=d.length,l=h.length,f-l<0&&(l=f,r=h,h=d,d=r),n=0;l;)n=(d[--l]=d[l]+h[l]+n)/Mt|0,d[l]%=Mt;for(n&&(d.unshift(n),++o),f=d.length;d[--f]==0;)d.pop();return t.d=d,t.e=o,ut?Je(t,p):t}function sr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(hi+e)}function ir(e){var t,n,r,o=e.length-1,l="",s=e[0];if(o>0){for(l+=s,t=1;t<o;t++)r=e[t]+"",n=ot-r.length,n&&(l+=ja(n)),l+=r;s=e[t],r=s+"",n=ot-r.length,n&&(l+=ja(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return l+s}var Br=(function(){function e(r,o){var l,s=0,f=r.length;for(r=r.slice();f--;)l=r[f]*o+s,r[f]=l%Mt|0,s=l/Mt|0;return s&&r.unshift(s),r}function t(r,o,l,s){var f,d;if(l!=s)d=l>s?1:-1;else for(f=d=0;f<l;f++)if(r[f]!=o[f]){d=r[f]>o[f]?1:-1;break}return d}function n(r,o,l){for(var s=0;l--;)r[l]-=s,s=r[l]<o[l]?1:0,r[l]=s*Mt+r[l]-o[l];for(;!r[0]&&r.length>1;)r.shift()}return function(r,o,l,s){var f,d,h,y,p,b,S,_,w,x,j,T,E,N,O,C,M,D,$=r.constructor,z=r.s==o.s?1:-1,L=r.d,B=o.d;if(!r.s)return new $(r);if(!o.s)throw Error(qn+"Division by zero");for(d=r.e-o.e,M=B.length,O=L.length,S=new $(z),_=S.d=[],h=0;B[h]==(L[h]||0);)++h;if(B[h]>(L[h]||0)&&--d,l==null?T=l=$.precision:s?T=l+(wt(r)-wt(o))+1:T=l,T<0)return new $(0);if(T=T/ot+2|0,h=0,M==1)for(y=0,B=B[0],T++;(h<O||y)&&T--;h++)E=y*Mt+(L[h]||0),_[h]=E/B|0,y=E%B|0;else{for(y=Mt/(B[0]+1)|0,y>1&&(B=e(B,y),L=e(L,y),M=B.length,O=L.length),N=M,w=L.slice(0,M),x=w.length;x<M;)w[x++]=0;D=B.slice(),D.unshift(0),C=B[0],B[1]>=Mt/2&&++C;do y=0,f=t(B,w,M,x),f<0?(j=w[0],M!=x&&(j=j*Mt+(w[1]||0)),y=j/C|0,y>1?(y>=Mt&&(y=Mt-1),p=e(B,y),b=p.length,x=w.length,f=t(p,w,b,x),f==1&&(y--,n(p,M<b?D:B,b))):(y==0&&(f=y=1),p=B.slice()),b=p.length,b<x&&p.unshift(0),n(w,p,x),f==-1&&(x=w.length,f=t(B,w,M,x),f<1&&(y++,n(w,M<x?D:B,x))),x=w.length):f===0&&(y++,w=[0]),_[h++]=y,f&&w[0]?w[x++]=L[N]||0:(w=[L[N]],x=1);while((N++<O||w[0]!==void 0)&&T--)}return _[0]||_.shift(),S.e=d,Je(S,s?l+wt(S)+1:l)}})();function v3(e,t){var n,r,o,l,s,f,d=0,h=0,y=e.constructor,p=y.precision;if(wt(e)>16)throw Error(kx+wt(e));if(!e.s)return new y(bn);for(ut=!1,f=p,s=new y(.03125);e.abs().gte(.1);)e=e.times(s),h+=5;for(r=Math.log(ai(2,h))/Math.LN10*2+5|0,f+=r,n=o=l=new y(bn),y.precision=f;;){if(o=Je(o.times(e),f),n=n.times(++d),s=l.plus(Br(o,n,f)),ir(s.d).slice(0,f)===ir(l.d).slice(0,f)){for(;h--;)l=Je(l.times(l),f);return y.precision=p,t==null?(ut=!0,Je(l,p)):l}l=s}}function wt(e){for(var t=e.e*ot,n=e.d[0];n>=10;n/=10)t++;return t}function Eg(e,t,n){if(t>e.LN10.sd())throw ut=!0,n&&(e.precision=n),Error(qn+"LN10 precision limit exceeded");return Je(new e(e.LN10),t)}function ja(e){for(var t="";e--;)t+="0";return t}function ku(e,t){var n,r,o,l,s,f,d,h,y,p=1,b=10,S=e,_=S.d,w=S.constructor,x=w.precision;if(S.s<1)throw Error(qn+(S.s?"NaN":"-Infinity"));if(S.eq(bn))return new w(0);if(t==null?(ut=!1,h=x):h=t,S.eq(10))return t==null&&(ut=!0),Eg(w,h);if(h+=b,w.precision=h,n=ir(_),r=n.charAt(0),l=wt(S),Math.abs(l)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)S=S.times(e),n=ir(S.d),r=n.charAt(0),p++;l=wt(S),r>1?(S=new w("0."+n),l++):S=new w(r+"."+n.slice(1))}else return d=Eg(w,h+2,x).times(l+""),S=ku(new w(r+"."+n.slice(1)),h-b).plus(d),w.precision=x,t==null?(ut=!0,Je(S,x)):S;for(f=s=S=Br(S.minus(bn),S.plus(bn),h),y=Je(S.times(S),h),o=3;;){if(s=Je(s.times(y),h),d=f.plus(Br(s,new w(o),h)),ir(d.d).slice(0,h)===ir(f.d).slice(0,h))return f=f.times(2),l!==0&&(f=f.plus(Eg(w,h+2,x).times(l+""))),f=Br(f,new w(p),h),w.precision=x,t==null?(ut=!0,Je(f,x)):f;f=d,o+=2}}function GT(e,t){var n,r,o;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(o=t.length;t.charCodeAt(o-1)===48;)--o;if(t=t.slice(r,o),t){if(o-=r,n=n-r-1,e.e=ll(n/ot),e.d=[],r=(n+1)%ot,n<0&&(r+=ot),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=ot;r<o;)e.d.push(+t.slice(r,r+=ot));t=t.slice(r),r=ot-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),ut&&(e.e>xf||e.e<-xf))throw Error(kx+n)}else e.s=0,e.e=0,e.d=[0];return e}function Je(e,t,n){var r,o,l,s,f,d,h,y,p=e.d;for(s=1,l=p[0];l>=10;l/=10)s++;if(r=t-s,r<0)r+=ot,o=t,h=p[y=0];else{if(y=Math.ceil((r+1)/ot),l=p.length,y>=l)return e;for(h=l=p[y],s=1;l>=10;l/=10)s++;r%=ot,o=r-ot+s}if(n!==void 0&&(l=ai(10,s-o-1),f=h/l%10|0,d=t<0||p[y+1]!==void 0||h%l,d=n<4?(f||d)&&(n==0||n==(e.s<0?3:2)):f>5||f==5&&(n==4||d||n==6&&(r>0?o>0?h/ai(10,s-o):0:p[y-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return d?(l=wt(e),p.length=1,t=t-l-1,p[0]=ai(10,(ot-t%ot)%ot),e.e=ll(-t/ot)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=y,l=1,y--):(p.length=y+1,l=ai(10,ot-r),p[y]=o>0?(h/ai(10,s-o)%ai(10,o)|0)*l:0),d)for(;;)if(y==0){(p[0]+=l)==Mt&&(p[0]=1,++e.e);break}else{if(p[y]+=l,p[y]!=Mt)break;p[y--]=0,l=1}for(r=p.length;p[--r]===0;)p.pop();if(ut&&(e.e>xf||e.e<-xf))throw Error(kx+wt(e));return e}function g3(e,t){var n,r,o,l,s,f,d,h,y,p,b=e.constructor,S=b.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new b(e),ut?Je(t,S):t;if(d=e.d,p=t.d,r=t.e,h=e.e,d=d.slice(),s=h-r,s){for(y=s<0,y?(n=d,s=-s,f=p.length):(n=p,r=h,f=d.length),o=Math.max(Math.ceil(S/ot),f)+2,s>o&&(s=o,n.length=1),n.reverse(),o=s;o--;)n.push(0);n.reverse()}else{for(o=d.length,f=p.length,y=o<f,y&&(f=o),o=0;o<f;o++)if(d[o]!=p[o]){y=d[o]<p[o];break}s=0}for(y&&(n=d,d=p,p=n,t.s=-t.s),f=d.length,o=p.length-f;o>0;--o)d[f++]=0;for(o=p.length;o>s;){if(d[--o]<p[o]){for(l=o;l&&d[--l]===0;)d[l]=Mt-1;--d[l],d[o]+=Mt}d[o]-=p[o]}for(;d[--f]===0;)d.pop();for(;d[0]===0;d.shift())--r;return d[0]?(t.d=d,t.e=r,ut?Je(t,S):t):new b(0)}function vi(e,t,n){var r,o=wt(e),l=ir(e.d),s=l.length;return t?(n&&(r=n-s)>0?l=l.charAt(0)+"."+l.slice(1)+ja(r):s>1&&(l=l.charAt(0)+"."+l.slice(1)),l=l+(o<0?"e":"e+")+o):o<0?(l="0."+ja(-o-1)+l,n&&(r=n-s)>0&&(l+=ja(r))):o>=s?(l+=ja(o+1-s),n&&(r=n-o-1)>0&&(l=l+"."+ja(r))):((r=o+1)<s&&(l=l.slice(0,r)+"."+l.slice(r)),n&&(r=n-s)>0&&(o+1===s&&(l+="."),l+=ja(r))),e.s<0?"-"+l:l}function YT(e,t){if(e.length>t)return e.length=t,!0}function b3(e){var t,n,r;function o(l){var s=this;if(!(s instanceof o))return new o(l);if(s.constructor=o,l instanceof o){s.s=l.s,s.e=l.e,s.d=(l=l.d)?l.slice():l;return}if(typeof l=="number"){if(l*0!==0)throw Error(hi+l);if(l>0)s.s=1;else if(l<0)l=-l,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(l===~~l&&l<1e7){s.e=0,s.d=[l];return}return GT(s,l.toString())}else if(typeof l!="string")throw Error(hi+l);if(l.charCodeAt(0)===45?(l=l.slice(1),s.s=-1):s.s=1,y7.test(l))GT(s,l);else throw Error(hi+l)}if(o.prototype=he,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=b3,o.config=o.set=v7,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 o.config(e),o}function v7(e){if(!e||typeof e!="object")throw Error(qn+"Object expected");var t,n,r,o=["precision",1,ol,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if((r=e[n=o[t]])!==void 0)if(ll(r)===r&&r>=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(hi+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(hi+n+": "+r);return this}var $x=b3(m7);bn=new $x(1);const We=$x;function g7(e){return w7(e)||S7(e)||x7(e)||b7()}function b7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
80
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x7(e,t){if(e){if(typeof e=="string")return U0(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 U0(e,t)}}function S7(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function w7(e){if(Array.isArray(e))return U0(e)}function U0(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 _7=function(t){return t},x3={},S3=function(t){return t===x3},KT=function(t){return function n(){return arguments.length===0||arguments.length===1&&S3(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},O7=function e(t,n){return t===1?n:KT(function(){for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];var s=o.filter(function(f){return f!==x3}).length;return s>=t?n.apply(void 0,o):e(t-s,KT(function(){for(var f=arguments.length,d=new Array(f),h=0;h<f;h++)d[h]=arguments[h];var y=o.map(function(p){return S3(p)?d.shift():p});return n.apply(void 0,g7(y).concat(d))}))})},Sd=function(t){return O7(t.length,t)},I0=function(t,n){for(var r=[],o=t;o<n;++o)r[o-t]=o;return r},A7=Sd(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),j7=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return _7;var o=n.reverse(),l=o[0],s=o.slice(1);return function(){return s.reduce(function(f,d){return d(f)},l.apply(void 0,arguments))}},H0=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},w3=function(t){var n=null,r=null;return function(){for(var o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];return n&&l.every(function(f,d){return f===n[d]})||(n=l,r=t.apply(void 0,l)),r}};function T7(e){var t;return e===0?t=1:t=Math.floor(new We(e).abs().log(10).toNumber())+1,t}function E7(e,t,n){for(var r=new We(e),o=0,l=[];r.lt(t)&&o<1e5;)l.push(r.toNumber()),r=r.add(n),o++;return l}var N7=Sd(function(e,t,n){var r=+e,o=+t;return r+n*(o-r)}),C7=Sd(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),M7=Sd(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const wd={rangeStep:E7,getDigitCount:T7,interpolateNumber:N7,uninterpolateNumber:C7,uninterpolateTruncation:M7};function G0(e){return D7(e)||P7(e)||_3(e)||R7()}function R7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
81
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P7(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function D7(e){if(Array.isArray(e))return Y0(e)}function $u(e,t){return L7(e)||$7(e,t)||_3(e,t)||k7()}function k7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
82
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _3(e,t){if(e){if(typeof e=="string")return Y0(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 Y0(e,t)}}function Y0(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 $7(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,o=!1,l=void 0;try{for(var s=e[Symbol.iterator](),f;!(r=(f=s.next()).done)&&(n.push(f.value),!(t&&n.length===t));r=!0);}catch(d){o=!0,l=d}finally{try{!r&&s.return!=null&&s.return()}finally{if(o)throw l}}return n}}function L7(e){if(Array.isArray(e))return e}function O3(e){var t=$u(e,2),n=t[0],r=t[1],o=n,l=r;return n>r&&(o=r,l=n),[o,l]}function A3(e,t,n){if(e.lte(0))return new We(0);var r=wd.getDigitCount(e.toNumber()),o=new We(10).pow(r),l=e.div(o),s=r!==1?.05:.1,f=new We(Math.ceil(l.div(s).toNumber())).add(n).mul(s),d=f.mul(o);return t?d:new We(Math.ceil(d))}function q7(e,t,n){var r=1,o=new We(e);if(!o.isint()&&n){var l=Math.abs(e);l<1?(r=new We(10).pow(wd.getDigitCount(e)-1),o=new We(Math.floor(o.div(r).toNumber())).mul(r)):l>1&&(o=new We(Math.floor(e)))}else e===0?o=new We(Math.floor((t-1)/2)):n||(o=new We(Math.floor(e)));var s=Math.floor((t-1)/2),f=j7(A7(function(d){return o.add(new We(d-s).mul(r)).toNumber()}),I0);return f(0,t)}function j3(e,t,n,r){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new We(0),tickMin:new We(0),tickMax:new We(0)};var l=A3(new We(t).sub(e).div(n-1),r,o),s;e<=0&&t>=0?s=new We(0):(s=new We(e).add(t).div(2),s=s.sub(new We(s).mod(l)));var f=Math.ceil(s.sub(e).div(l).toNumber()),d=Math.ceil(new We(t).sub(s).div(l).toNumber()),h=f+d+1;return h>n?j3(e,t,n,r,o+1):(h<n&&(d=t>0?d+(n-h):d,f=t>0?f:f+(n-h)),{step:l,tickMin:s.sub(new We(f).mul(l)),tickMax:s.add(new We(d).mul(l))})}function B7(e){var t=$u(e,2),n=t[0],r=t[1],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Math.max(o,2),f=O3([n,r]),d=$u(f,2),h=d[0],y=d[1];if(h===-1/0||y===1/0){var p=y===1/0?[h].concat(G0(I0(0,o-1).map(function(){return 1/0}))):[].concat(G0(I0(0,o-1).map(function(){return-1/0})),[y]);return n>r?H0(p):p}if(h===y)return q7(h,o,l);var b=j3(h,y,s,l),S=b.step,_=b.tickMin,w=b.tickMax,x=wd.rangeStep(_,w.add(new We(.1).mul(S)),S);return n>r?H0(x):x}function z7(e,t){var n=$u(e,2),r=n[0],o=n[1],l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=O3([r,o]),f=$u(s,2),d=f[0],h=f[1];if(d===-1/0||h===1/0)return[r,o];if(d===h)return[d];var y=Math.max(t,2),p=A3(new We(h).sub(d).div(y-1),l,0),b=[].concat(G0(wd.rangeStep(new We(d),new We(h).sub(new We(.99).mul(p)),p)),[h]);return r>o?H0(b):b}var U7=w3(B7),I7=w3(z7),H7="Invariant failed";function gi(e,t){throw new Error(H7)}var G7=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Po(e){"@babel/helpers - typeof";return Po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Po(e)}function Sf(){return Sf=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},Sf.apply(this,arguments)}function Y7(e,t){return F7(e)||X7(e,t)||V7(e,t)||K7()}function K7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
83
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V7(e,t){if(e){if(typeof e=="string")return VT(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 VT(e,t)}}function VT(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 X7(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(y){h=!0,o=y}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function F7(e){if(Array.isArray(e))return e}function W7(e,t){if(e==null)return{};var n=Z7(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Z7(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 Q7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,N3(r.key),r)}}function eU(e,t,n){return t&&J7(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tU(e,t,n){return t=wf(t),nU(e,T3()?Reflect.construct(t,n||[],wf(e).constructor):t.apply(e,n))}function nU(e,t){if(t&&(Po(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rU(e)}function rU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(T3=function(){return!!e})()}function wf(e){return wf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},wf(e)}function aU(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&&K0(e,t)}function K0(e,t){return K0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},K0(e,t)}function E3(e,t,n){return t=N3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N3(e){var t=iU(e,"string");return Po(t)=="symbol"?t:t+""}function iU(e,t){if(Po(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Po(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _d=(function(e){function t(){return Q7(this,t),tU(this,t,arguments)}return aU(t,e),eU(t,[{key:"render",value:function(){var r=this.props,o=r.offset,l=r.layout,s=r.width,f=r.dataKey,d=r.data,h=r.dataPointFormatter,y=r.xAxis,p=r.yAxis,b=W7(r,G7),S=ge(b,!1);this.props.direction==="x"&&y.type!=="number"&&gi();var _=d.map(function(w){var x=h(w,f),j=x.x,T=x.y,E=x.value,N=x.errorVal;if(!N)return null;var O=[],C,M;if(Array.isArray(N)){var D=Y7(N,2);C=D[0],M=D[1]}else C=M=N;if(l==="vertical"){var $=y.scale,z=T+o,L=z+s,B=z-s,H=$(E-C),Y=$(E+M);O.push({x1:Y,y1:L,x2:Y,y2:B}),O.push({x1:H,y1:z,x2:Y,y2:z}),O.push({x1:H,y1:L,x2:H,y2:B})}else if(l==="horizontal"){var W=p.scale,k=j+o,X=k-s,F=k+s,oe=W(E-C),se=W(E+M);O.push({x1:X,y1:se,x2:F,y2:se}),O.push({x1:k,y1:oe,x2:k,y2:se}),O.push({x1:X,y1:oe,x2:F,y2:oe})}return I.createElement(Le,Sf({className:"recharts-errorBar",key:"bar-".concat(O.map(function(q){return"".concat(q.x1,"-").concat(q.x2,"-").concat(q.y1,"-").concat(q.y2)}))},S),O.map(function(q){return I.createElement("line",Sf({},q,{key:"line-".concat(q.x1,"-").concat(q.x2,"-").concat(q.y1,"-").concat(q.y2)}))}))});return I.createElement(Le,{className:"recharts-errorBars"},_)}}])})(I.Component);E3(_d,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});E3(_d,"displayName","ErrorBar");function Lu(e){"@babel/helpers - typeof";return Lu=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},Lu(e)}function XT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ei(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XT(Object(n),!0).forEach(function(r){oU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oU(e,t,n){return t=lU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lU(e){var t=uU(e,"string");return Lu(t)=="symbol"?t:t+""}function uU(e,t){if(Lu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var C3=function(t){var n=t.children,r=t.formattedGraphicalItems,o=t.legendWidth,l=t.legendContent,s=vn(n,fi);if(!s)return null;var f=fi.defaultProps,d=f!==void 0?ei(ei({},f),s.props):{},h;return s.props&&s.props.payload?h=s.props&&s.props.payload:l==="children"?h=(r||[]).reduce(function(y,p){var b=p.item,S=p.props,_=S.sectors||S.data||[];return y.concat(_.map(function(w){return{type:s.props.iconType||b.props.legendType,value:w.name,color:w.fill,payload:w}}))},[]):h=(r||[]).map(function(y){var p=y.item,b=p.type.defaultProps,S=b!==void 0?ei(ei({},b),p.props):{},_=S.dataKey,w=S.name,x=S.legendType,j=S.hide;return{inactive:j,dataKey:_,type:d.iconType||x||"square",color:Lx(p),value:w||_,payload:S}}),ei(ei(ei({},d),fi.getWithHeight(s,o)),{},{payload:h,item:s})};function qu(e){"@babel/helpers - typeof";return qu=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},qu(e)}function FT(e){return dU(e)||fU(e)||cU(e)||sU()}function sU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
84
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cU(e,t){if(e){if(typeof e=="string")return V0(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 V0(e,t)}}function fU(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dU(e){if(Array.isArray(e))return V0(e)}function V0(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 WT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).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?WT(Object(n),!0).forEach(function(r){wo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wo(e,t,n){return t=hU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hU(e){var t=pU(e,"string");return qu(t)=="symbol"?t:t+""}function pU(e,t){if(qu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jt(e,t,n){return Te(e)||Te(t)?n:Tt(t)?xn(e,t,n):Oe(t)?t(e):n}function gu(e,t,n,r){var o=d7(e,function(f){return jt(f,t)});if(n==="number"){var l=o.filter(function(f){return de(f)||parseFloat(f)});return l.length?[xd(l),Ta(l)]:[1/0,-1/0]}var s=r?o.filter(function(f){return!Te(f)}):o;return s.map(function(f){return Tt(f)||f instanceof Date?f:""})}var mU=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0,l=arguments.length>3?arguments[3]:void 0,s=-1,f=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(f<=1)return 0;if(l&&l.axisType==="angleAxis"&&Math.abs(Math.abs(l.range[1]-l.range[0])-360)<=1e-6)for(var d=l.range,h=0;h<f;h++){var y=h>0?o[h-1].coordinate:o[f-1].coordinate,p=o[h].coordinate,b=h>=f-1?o[0].coordinate:o[h+1].coordinate,S=void 0;if(Yt(p-y)!==Yt(b-p)){var _=[];if(Yt(b-p)===Yt(d[1]-d[0])){S=b;var w=p+d[1]-d[0];_[0]=Math.min(w,(w+y)/2),_[1]=Math.max(w,(w+y)/2)}else{S=y;var x=b+d[1]-d[0];_[0]=Math.min(p,(x+p)/2),_[1]=Math.max(p,(x+p)/2)}var j=[Math.min(p,(S+p)/2),Math.max(p,(S+p)/2)];if(t>j[0]&&t<=j[1]||t>=_[0]&&t<=_[1]){s=o[h].index;break}}else{var T=Math.min(y,b),E=Math.max(y,b);if(t>(T+p)/2&&t<=(E+p)/2){s=o[h].index;break}}}else for(var N=0;N<f;N++)if(N===0&&t<=(r[N].coordinate+r[N+1].coordinate)/2||N>0&&N<f-1&&t>(r[N].coordinate+r[N-1].coordinate)/2&&t<=(r[N].coordinate+r[N+1].coordinate)/2||N===f-1&&t>(r[N].coordinate+r[N-1].coordinate)/2){s=r[N].index;break}return s},Lx=function(t){var n,r=t,o=r.type.displayName,l=(n=t.type)!==null&&n!==void 0&&n.defaultProps?pt(pt({},t.type.defaultProps),t.props):t.props,s=l.stroke,f=l.fill,d;switch(o){case"Line":d=s;break;case"Area":case"Radar":d=s&&s!=="none"?s:f;break;default:d=f;break}return d},yU=function(t){var n=t.barSize,r=t.totalSize,o=t.stackGroups,l=o===void 0?{}:o;if(!l)return{};for(var s={},f=Object.keys(l),d=0,h=f.length;d<h;d++)for(var y=l[f[d]].stackGroups,p=Object.keys(y),b=0,S=p.length;b<S;b++){var _=y[p[b]],w=_.items,x=_.cateAxisId,j=w.filter(function(M){return Lr(M.type).indexOf("Bar")>=0});if(j&&j.length){var T=j[0].type.defaultProps,E=T!==void 0?pt(pt({},T),j[0].props):j[0].props,N=E.barSize,O=E[x];s[O]||(s[O]=[]);var C=Te(N)?n:N;s[O].push({item:j[0],stackList:j.slice(1),barSize:Te(C)?void 0:Kt(C,r,0)})}}return s},vU=function(t){var n=t.barGap,r=t.barCategoryGap,o=t.bandSize,l=t.sizeList,s=l===void 0?[]:l,f=t.maxBarSize,d=s.length;if(d<1)return null;var h=Kt(n,o,0,!0),y,p=[];if(s[0].barSize===+s[0].barSize){var b=!1,S=o/d,_=s.reduce(function(N,O){return N+O.barSize||0},0);_+=(d-1)*h,_>=o&&(_-=(d-1)*h,h=0),_>=o&&S>0&&(b=!0,S*=.9,_=d*S);var w=(o-_)/2>>0,x={offset:w-h,size:0};y=s.reduce(function(N,O){var C={item:O.item,position:{offset:x.offset+x.size+h,size:b?S:O.barSize}},M=[].concat(FT(N),[C]);return x=M[M.length-1].position,O.stackList&&O.stackList.length&&O.stackList.forEach(function(D){M.push({item:D,position:x})}),M},p)}else{var j=Kt(r,o,0,!0);o-2*j-(d-1)*h<=0&&(h=0);var T=(o-2*j-(d-1)*h)/d;T>1&&(T>>=0);var E=f===+f?Math.min(T,f):T;y=s.reduce(function(N,O,C){var M=[].concat(FT(N),[{item:O.item,position:{offset:j+(T+h)*C+(T-E)/2,size:E}}]);return O.stackList&&O.stackList.length&&O.stackList.forEach(function(D){M.push({item:D,position:M[M.length-1].position})}),M},p)}return y},gU=function(t,n,r,o){var l=r.children,s=r.width,f=r.margin,d=s-(f.left||0)-(f.right||0),h=C3({children:l,legendWidth:d});if(h){var y=o||{},p=y.width,b=y.height,S=h.align,_=h.verticalAlign,w=h.layout;if((w==="vertical"||w==="horizontal"&&_==="middle")&&S!=="center"&&de(t[S]))return pt(pt({},t),{},wo({},S,t[S]+(p||0)));if((w==="horizontal"||w==="vertical"&&S==="center")&&_!=="middle"&&de(t[_]))return pt(pt({},t),{},wo({},_,t[_]+(b||0)))}return t},bU=function(t,n,r){return Te(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},M3=function(t,n,r,o,l){var s=n.props.children,f=Ln(s,_d).filter(function(h){return bU(o,l,h.props.direction)});if(f&&f.length){var d=f.map(function(h){return h.props.dataKey});return t.reduce(function(h,y){var p=jt(y,r);if(Te(p))return h;var b=Array.isArray(p)?[xd(p),Ta(p)]:[p,p],S=d.reduce(function(_,w){var x=jt(y,w,0),j=b[0]-Math.abs(Array.isArray(x)?x[0]:x),T=b[1]+Math.abs(Array.isArray(x)?x[1]:x);return[Math.min(j,_[0]),Math.max(T,_[1])]},[1/0,-1/0]);return[Math.min(S[0],h[0]),Math.max(S[1],h[1])]},[1/0,-1/0])}return null},xU=function(t,n,r,o,l){var s=n.map(function(f){return M3(t,f,r,l,o)}).filter(function(f){return!Te(f)});return s&&s.length?s.reduce(function(f,d){return[Math.min(f[0],d[0]),Math.max(f[1],d[1])]},[1/0,-1/0]):null},R3=function(t,n,r,o,l){var s=n.map(function(d){var h=d.props.dataKey;return r==="number"&&h&&M3(t,d,h,o)||gu(t,h,r,l)});if(r==="number")return s.reduce(function(d,h){return[Math.min(d[0],h[0]),Math.max(d[1],h[1])]},[1/0,-1/0]);var f={};return s.reduce(function(d,h){for(var y=0,p=h.length;y<p;y++)f[h[y]]||(f[h[y]]=!0,d.push(h[y]));return d},[])},P3=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},si=function(t,n,r){if(!t)return null;var o=t.scale,l=t.duplicateDomain,s=t.type,f=t.range,d=t.realScaleType==="scaleBand"?o.bandwidth()/2:2,h=(n||r)&&s==="category"&&o.bandwidth?o.bandwidth()/d:0;if(h=t.axisType==="angleAxis"&&(f==null?void 0:f.length)>=2?Yt(f[0]-f[1])*2*h:h,n&&(t.ticks||t.niceTicks)){var y=(t.ticks||t.niceTicks).map(function(p){var b=l?l.indexOf(p):p;return{coordinate:o(b)+h,value:p,offset:h}});return y.filter(function(p){return!nl(p.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(p,b){return{coordinate:o(p)+h,value:p,index:b,offset:h}}):o.ticks&&!r?o.ticks(t.tickCount).map(function(p){return{coordinate:o(p)+h,value:p,offset:h}}):o.domain().map(function(p,b){return{coordinate:o(p)+h,value:l?l[p]:p,index:b,offset:h}})},Ng=new WeakMap,zc=function(t,n){if(typeof n!="function")return t;Ng.has(t)||Ng.set(t,new WeakMap);var r=Ng.get(t);if(r.has(n))return r.get(n);var o=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,o),o},D3=function(t,n,r){var o=t.scale,l=t.type,s=t.layout,f=t.axisType;if(o==="auto")return s==="radial"&&f==="radiusAxis"?{scale:Cu(),realScaleType:"band"}:s==="radial"&&f==="angleAxis"?{scale:yf(),realScaleType:"linear"}:l==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:vu(),realScaleType:"point"}:l==="category"?{scale:Cu(),realScaleType:"band"}:{scale:yf(),realScaleType:"linear"};if(pi(o)){var d="scale".concat(ad(o));return{scale:(kT[d]||vu)(),realScaleType:kT[d]?d:"point"}}return Oe(o)?{scale:o}:{scale:vu(),realScaleType:"point"}},ZT=1e-4,k3=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,o=t.range(),l=Math.min(o[0],o[1])-ZT,s=Math.max(o[0],o[1])+ZT,f=t(n[0]),d=t(n[r-1]);(f<l||f>s||d<l||d>s)&&t.domain([n[0],n[r-1]])}},SU=function(t,n){if(!t)return null;for(var r=0,o=t.length;r<o;r++)if(t[r].item===n)return t[r].position;return null},wU=function(t,n){if(!n||n.length!==2||!de(n[0])||!de(n[1]))return t;var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]),l=[t[0],t[1]];return(!de(t[0])||t[0]<r)&&(l[0]=r),(!de(t[1])||t[1]>o)&&(l[1]=o),l[0]>o&&(l[0]=o),l[1]<r&&(l[1]=r),l},_U=function(t){var n=t.length;if(!(n<=0))for(var r=0,o=t[0].length;r<o;++r)for(var l=0,s=0,f=0;f<n;++f){var d=nl(t[f][r][1])?t[f][r][0]:t[f][r][1];d>=0?(t[f][r][0]=l,t[f][r][1]=l+d,l=t[f][r][1]):(t[f][r][0]=s,t[f][r][1]=s+d,s=t[f][r][1])}},OU=function(t){var n=t.length;if(!(n<=0))for(var r=0,o=t[0].length;r<o;++r)for(var l=0,s=0;s<n;++s){var f=nl(t[s][r][1])?t[s][r][0]:t[s][r][1];f>=0?(t[s][r][0]=l,t[s][r][1]=l+f,l=t[s][r][1]):(t[s][r][0]=0,t[s][r][1]=0)}},AU={sign:_U,expand:d$,none:Oo,silhouette:h$,wiggle:p$,positive:OU},jU=function(t,n,r){var o=n.map(function(f){return f.props.dataKey}),l=AU[r],s=f$().keys(o).value(function(f,d){return+jt(f,d,0)}).order(_0).offset(l);return s(t)},TU=function(t,n,r,o,l,s){if(!t)return null;var f=s?n.reverse():n,d={},h=f.reduce(function(p,b){var S,_=(S=b.type)!==null&&S!==void 0&&S.defaultProps?pt(pt({},b.type.defaultProps),b.props):b.props,w=_.stackId,x=_.hide;if(x)return p;var j=_[r],T=p[j]||{hasStack:!1,stackGroups:{}};if(Tt(w)){var E=T.stackGroups[w]||{numericAxisId:r,cateAxisId:o,items:[]};E.items.push(b),T.hasStack=!0,T.stackGroups[w]=E}else T.stackGroups[rl("_stackId_")]={numericAxisId:r,cateAxisId:o,items:[b]};return pt(pt({},p),{},wo({},j,T))},d),y={};return Object.keys(h).reduce(function(p,b){var S=h[b];if(S.hasStack){var _={};S.stackGroups=Object.keys(S.stackGroups).reduce(function(w,x){var j=S.stackGroups[x];return pt(pt({},w),{},wo({},x,{numericAxisId:r,cateAxisId:o,items:j.items,stackedData:jU(t,j.items,l)}))},_)}return pt(pt({},p),{},wo({},b,S))},y)},$3=function(t,n){var r=n.realScaleType,o=n.type,l=n.tickCount,s=n.originalDomain,f=n.allowDecimals,d=r||n.scale;if(d!=="auto"&&d!=="linear")return null;if(l&&o==="number"&&s&&(s[0]==="auto"||s[1]==="auto")){var h=t.domain();if(!h.length)return null;var y=U7(h,l,f);return t.domain([xd(y),Ta(y)]),{niceTicks:y}}if(l&&o==="number"){var p=t.domain(),b=I7(p,l,f);return{niceTicks:b}}return null};function QT(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,l=e.index,s=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Te(o[t.dataKey])){var f=Wc(n,"value",o[t.dataKey]);if(f)return f.coordinate+r/2}return n[l]?n[l].coordinate+r/2:null}var d=jt(o,Te(s)?t.dataKey:s);return Te(d)?null:t.scale(d)}var JT=function(t){var n=t.axis,r=t.ticks,o=t.offset,l=t.bandSize,s=t.entry,f=t.index;if(n.type==="category")return r[f]?r[f].coordinate+o:null;var d=jt(s,n.dataKey,n.domain[f]);return Te(d)?null:n.scale(d)-l/2+o},EU=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var o=Math.min(r[0],r[1]),l=Math.max(r[0],r[1]);return o<=0&&l>=0?0:l<0?l:o}return r[0]},NU=function(t,n){var r,o=(r=t.type)!==null&&r!==void 0&&r.defaultProps?pt(pt({},t.type.defaultProps),t.props):t.props,l=o.stackId;if(Tt(l)){var s=n[l];if(s){var f=s.items.indexOf(t);return f>=0?s.stackedData[f]:null}}return null},CU=function(t){return t.reduce(function(n,r){return[xd(r.concat([n[0]]).filter(de)),Ta(r.concat([n[1]]).filter(de))]},[1/0,-1/0])},L3=function(t,n,r){return Object.keys(t).reduce(function(o,l){var s=t[l],f=s.stackedData,d=f.reduce(function(h,y){var p=CU(y.slice(n,r+1));return[Math.min(h[0],p[0]),Math.max(h[1],p[1])]},[1/0,-1/0]);return[Math.min(d[0],o[0]),Math.max(d[1],o[1])]},[1/0,-1/0]).map(function(o){return o===1/0||o===-1/0?0:o})},eE=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,tE=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,X0=function(t,n,r){if(Oe(t))return t(n,r);if(!Array.isArray(t))return n;var o=[];if(de(t[0]))o[0]=r?t[0]:Math.min(t[0],n[0]);else if(eE.test(t[0])){var l=+eE.exec(t[0])[1];o[0]=n[0]-l}else Oe(t[0])?o[0]=t[0](n[0]):o[0]=n[0];if(de(t[1]))o[1]=r?t[1]:Math.max(t[1],n[1]);else if(tE.test(t[1])){var s=+tE.exec(t[1])[1];o[1]=n[1]+s}else Oe(t[1])?o[1]=t[1](n[1]):o[1]=n[1];return o},_f=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var o=t.scale.bandwidth();if(!r||o>0)return o}if(t&&n&&n.length>=2){for(var l=fx(n,function(p){return p.coordinate}),s=1/0,f=1,d=l.length;f<d;f++){var h=l[f],y=l[f-1];s=Math.min((h.coordinate||0)-(y.coordinate||0),s)}return s===1/0?0:s}return r?void 0:0},nE=function(t,n,r){return!t||!t.length||Ro(t,xn(r,"type.defaultProps.domain"))?n:t},q3=function(t,n){var r=t.type.defaultProps?pt(pt({},t.type.defaultProps),t.props):t.props,o=r.dataKey,l=r.name,s=r.unit,f=r.formatter,d=r.tooltipType,h=r.chartType,y=r.hide;return pt(pt({},ge(t,!1)),{},{dataKey:o,unit:s,formatter:f,name:l||o,color:Lx(t),value:jt(n,o),type:d,payload:n,chartType:h,hide:y})};function Bu(e){"@babel/helpers - typeof";return Bu=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},Bu(e)}function rE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Pr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rE(Object(n),!0).forEach(function(r){B3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function B3(e,t,n){return t=MU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MU(e){var t=RU(e,"string");return Bu(t)=="symbol"?t:t+""}function RU(e,t){if(Bu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PU(e,t){return LU(e)||$U(e,t)||kU(e,t)||DU()}function DU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
85
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kU(e,t){if(e){if(typeof e=="string")return aE(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 aE(e,t)}}function aE(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 $U(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(y){h=!0,o=y}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function LU(e){if(Array.isArray(e))return e}var Of=Math.PI/180,qU=function(t){return t*180/Math.PI},nt=function(t,n,r,o){return{x:t+Math.cos(-Of*o)*r,y:n+Math.sin(-Of*o)*r}},z3=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},BU=function(t,n,r,o,l){var s=t.width,f=t.height,d=t.startAngle,h=t.endAngle,y=Kt(t.cx,s,s/2),p=Kt(t.cy,f,f/2),b=z3(s,f,r),S=Kt(t.innerRadius,b,0),_=Kt(t.outerRadius,b,b*.8),w=Object.keys(n);return w.reduce(function(x,j){var T=n[j],E=T.domain,N=T.reversed,O;if(Te(T.range))o==="angleAxis"?O=[d,h]:o==="radiusAxis"&&(O=[S,_]),N&&(O=[O[1],O[0]]);else{O=T.range;var C=O,M=PU(C,2);d=M[0],h=M[1]}var D=D3(T,l),$=D.realScaleType,z=D.scale;z.domain(E).range(O),k3(z);var L=$3(z,Pr(Pr({},T),{},{realScaleType:$})),B=Pr(Pr(Pr({},T),L),{},{range:O,radius:_,realScaleType:$,scale:z,cx:y,cy:p,innerRadius:S,outerRadius:_,startAngle:d,endAngle:h});return Pr(Pr({},x),{},B3({},j,B))},{})},zU=function(t,n){var r=t.x,o=t.y,l=n.x,s=n.y;return Math.sqrt(Math.pow(r-l,2)+Math.pow(o-s,2))},UU=function(t,n){var r=t.x,o=t.y,l=n.cx,s=n.cy,f=zU({x:r,y:o},{x:l,y:s});if(f<=0)return{radius:f};var d=(r-l)/f,h=Math.acos(d);return o>s&&(h=2*Math.PI-h),{radius:f,angle:qU(h),angleInRadian:h}},IU=function(t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),l=Math.floor(r/360),s=Math.min(o,l);return{startAngle:n-s*360,endAngle:r-s*360}},HU=function(t,n){var r=n.startAngle,o=n.endAngle,l=Math.floor(r/360),s=Math.floor(o/360),f=Math.min(l,s);return t+f*360},iE=function(t,n){var r=t.x,o=t.y,l=UU({x:r,y:o},n),s=l.radius,f=l.angle,d=n.innerRadius,h=n.outerRadius;if(s<d||s>h)return!1;if(s===0)return!0;var y=IU(n),p=y.startAngle,b=y.endAngle,S=f,_;if(p<=b){for(;S>b;)S-=360;for(;S<p;)S+=360;_=S>=p&&S<=b}else{for(;S>p;)S-=360;for(;S<b;)S+=360;_=S>=b&&S<=p}return _?Pr(Pr({},n),{},{radius:s,angle:HU(S,n)}):null},U3=function(t){return!P.isValidElement(t)&&!Oe(t)&&typeof t!="boolean"?t.className:""};function zu(e){"@babel/helpers - typeof";return zu=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},zu(e)}var GU=["offset"];function YU(e){return FU(e)||XU(e)||VU(e)||KU()}function KU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
86
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VU(e,t){if(e){if(typeof e=="string")return F0(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 F0(e,t)}}function XU(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function FU(e){if(Array.isArray(e))return F0(e)}function F0(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 WU(e,t){if(e==null)return{};var n=ZU(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ZU(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 oE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function At(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oE(Object(n),!0).forEach(function(r){QU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QU(e,t,n){return t=JU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JU(e){var t=e9(e,"string");return zu(t)=="symbol"?t:t+""}function e9(e,t){if(zu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Uu(){return Uu=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},Uu.apply(this,arguments)}var t9=function(t){var n=t.value,r=t.formatter,o=Te(t.children)?n:t.children;return Oe(r)?r(o):o},n9=function(t,n){var r=Yt(n-t),o=Math.min(Math.abs(n-t),360);return r*o},r9=function(t,n,r){var o=t.position,l=t.viewBox,s=t.offset,f=t.className,d=l,h=d.cx,y=d.cy,p=d.innerRadius,b=d.outerRadius,S=d.startAngle,_=d.endAngle,w=d.clockWise,x=(p+b)/2,j=n9(S,_),T=j>=0?1:-1,E,N;o==="insideStart"?(E=S+T*s,N=w):o==="insideEnd"?(E=_-T*s,N=!w):o==="end"&&(E=_+T*s,N=w),N=j<=0?N:!N;var O=nt(h,y,x,E),C=nt(h,y,x,E+(N?1:-1)*359),M="M".concat(O.x,",").concat(O.y,`
|
|
87
|
+
A`).concat(x,",").concat(x,",0,1,").concat(N?0:1,`,
|
|
88
|
+
`).concat(C.x,",").concat(C.y),D=Te(t.id)?rl("recharts-radial-line-"):t.id;return I.createElement("text",Uu({},r,{dominantBaseline:"central",className:Me("recharts-radial-bar-label",f)}),I.createElement("defs",null,I.createElement("path",{id:D,d:M})),I.createElement("textPath",{xlinkHref:"#".concat(D)},n))},a9=function(t){var n=t.viewBox,r=t.offset,o=t.position,l=n,s=l.cx,f=l.cy,d=l.innerRadius,h=l.outerRadius,y=l.startAngle,p=l.endAngle,b=(y+p)/2;if(o==="outside"){var S=nt(s,f,h+r,b),_=S.x,w=S.y;return{x:_,y:w,textAnchor:_>=s?"start":"end",verticalAnchor:"middle"}}if(o==="center")return{x:s,y:f,textAnchor:"middle",verticalAnchor:"middle"};if(o==="centerTop")return{x:s,y:f,textAnchor:"middle",verticalAnchor:"start"};if(o==="centerBottom")return{x:s,y:f,textAnchor:"middle",verticalAnchor:"end"};var x=(d+h)/2,j=nt(s,f,x,b),T=j.x,E=j.y;return{x:T,y:E,textAnchor:"middle",verticalAnchor:"middle"}},i9=function(t){var n=t.viewBox,r=t.parentViewBox,o=t.offset,l=t.position,s=n,f=s.x,d=s.y,h=s.width,y=s.height,p=y>=0?1:-1,b=p*o,S=p>0?"end":"start",_=p>0?"start":"end",w=h>=0?1:-1,x=w*o,j=w>0?"end":"start",T=w>0?"start":"end";if(l==="top"){var E={x:f+h/2,y:d-p*o,textAnchor:"middle",verticalAnchor:S};return At(At({},E),r?{height:Math.max(d-r.y,0),width:h}:{})}if(l==="bottom"){var N={x:f+h/2,y:d+y+b,textAnchor:"middle",verticalAnchor:_};return At(At({},N),r?{height:Math.max(r.y+r.height-(d+y),0),width:h}:{})}if(l==="left"){var O={x:f-x,y:d+y/2,textAnchor:j,verticalAnchor:"middle"};return At(At({},O),r?{width:Math.max(O.x-r.x,0),height:y}:{})}if(l==="right"){var C={x:f+h+x,y:d+y/2,textAnchor:T,verticalAnchor:"middle"};return At(At({},C),r?{width:Math.max(r.x+r.width-C.x,0),height:y}:{})}var M=r?{width:h,height:y}:{};return l==="insideLeft"?At({x:f+x,y:d+y/2,textAnchor:T,verticalAnchor:"middle"},M):l==="insideRight"?At({x:f+h-x,y:d+y/2,textAnchor:j,verticalAnchor:"middle"},M):l==="insideTop"?At({x:f+h/2,y:d+b,textAnchor:"middle",verticalAnchor:_},M):l==="insideBottom"?At({x:f+h/2,y:d+y-b,textAnchor:"middle",verticalAnchor:S},M):l==="insideTopLeft"?At({x:f+x,y:d+b,textAnchor:T,verticalAnchor:_},M):l==="insideTopRight"?At({x:f+h-x,y:d+b,textAnchor:j,verticalAnchor:_},M):l==="insideBottomLeft"?At({x:f+x,y:d+y-b,textAnchor:T,verticalAnchor:S},M):l==="insideBottomRight"?At({x:f+h-x,y:d+y-b,textAnchor:j,verticalAnchor:S},M):tl(l)&&(de(l.x)||oi(l.x))&&(de(l.y)||oi(l.y))?At({x:f+Kt(l.x,h),y:d+Kt(l.y,y),textAnchor:"end",verticalAnchor:"end"},M):At({x:f+h/2,y:d+y/2,textAnchor:"middle",verticalAnchor:"middle"},M)},o9=function(t){return"cx"in t&&de(t.cx)};function Rt(e){var t=e.offset,n=t===void 0?5:t,r=WU(e,GU),o=At({offset:n},r),l=o.viewBox,s=o.position,f=o.value,d=o.children,h=o.content,y=o.className,p=y===void 0?"":y,b=o.textBreakAll;if(!l||Te(f)&&Te(d)&&!P.isValidElement(h)&&!Oe(h))return null;if(P.isValidElement(h))return P.cloneElement(h,o);var S;if(Oe(h)){if(S=P.createElement(h,o),P.isValidElement(S))return S}else S=t9(o);var _=o9(l),w=ge(o,!0);if(_&&(s==="insideStart"||s==="insideEnd"||s==="end"))return r9(o,S,w);var x=_?a9(o):i9(o);return I.createElement(yi,Uu({className:Me("recharts-label",p)},w,x,{breakAll:b}),S)}Rt.displayName="Label";var I3=function(t){var n=t.cx,r=t.cy,o=t.angle,l=t.startAngle,s=t.endAngle,f=t.r,d=t.radius,h=t.innerRadius,y=t.outerRadius,p=t.x,b=t.y,S=t.top,_=t.left,w=t.width,x=t.height,j=t.clockWise,T=t.labelViewBox;if(T)return T;if(de(w)&&de(x)){if(de(p)&&de(b))return{x:p,y:b,width:w,height:x};if(de(S)&&de(_))return{x:S,y:_,width:w,height:x}}return de(p)&&de(b)?{x:p,y:b,width:0,height:0}:de(n)&&de(r)?{cx:n,cy:r,startAngle:l||o||0,endAngle:s||o||0,innerRadius:h||0,outerRadius:y||d||f||0,clockWise:j}:t.viewBox?t.viewBox:{}},l9=function(t,n){return t?t===!0?I.createElement(Rt,{key:"label-implicit",viewBox:n}):Tt(t)?I.createElement(Rt,{key:"label-implicit",viewBox:n,value:t}):P.isValidElement(t)?t.type===Rt?P.cloneElement(t,{key:"label-implicit",viewBox:n}):I.createElement(Rt,{key:"label-implicit",content:t,viewBox:n}):Oe(t)?I.createElement(Rt,{key:"label-implicit",content:t,viewBox:n}):tl(t)?I.createElement(Rt,Uu({viewBox:n},t,{key:"label-implicit"})):null:null},u9=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 o=t.children,l=I3(t),s=Ln(o,Rt).map(function(d,h){return P.cloneElement(d,{viewBox:n||l,key:"label-".concat(h)})});if(!r)return s;var f=l9(t.label,n||l);return[f].concat(YU(s))};Rt.parseViewBox=I3;Rt.renderCallByParent=u9;var Cg,lE;function s9(){if(lE)return Cg;lE=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return Cg=e,Cg}var c9=s9();const f9=Ze(c9);function Iu(e){"@babel/helpers - typeof";return Iu=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},Iu(e)}var d9=["valueAccessor"],h9=["data","dataKey","clockWise","id","textBreakAll"];function p9(e){return g9(e)||v9(e)||y9(e)||m9()}function m9(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
89
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y9(e,t){if(e){if(typeof e=="string")return W0(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 W0(e,t)}}function v9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function g9(e){if(Array.isArray(e))return W0(e)}function W0(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 Af(){return Af=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},Af.apply(this,arguments)}function uE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function sE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uE(Object(n),!0).forEach(function(r){b9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function b9(e,t,n){return t=x9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x9(e){var t=S9(e,"string");return Iu(t)=="symbol"?t:t+""}function S9(e,t){if(Iu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Iu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cE(e,t){if(e==null)return{};var n=w9(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function w9(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 _9=function(t){return Array.isArray(t.value)?f9(t.value):t.value};function zr(e){var t=e.valueAccessor,n=t===void 0?_9:t,r=cE(e,d9),o=r.data,l=r.dataKey,s=r.clockWise,f=r.id,d=r.textBreakAll,h=cE(r,h9);return!o||!o.length?null:I.createElement(Le,{className:"recharts-label-list"},o.map(function(y,p){var b=Te(l)?n(y,p):jt(y&&y.payload,l),S=Te(f)?{}:{id:"".concat(f,"-").concat(p)};return I.createElement(Rt,Af({},ge(y,!0),h,S,{parentViewBox:y.parentViewBox,value:b,textBreakAll:d,viewBox:Rt.parseViewBox(Te(s)?y:sE(sE({},y),{},{clockWise:s})),key:"label-".concat(p),index:p}))}))}zr.displayName="LabelList";function O9(e,t){return e?e===!0?I.createElement(zr,{key:"labelList-implicit",data:t}):I.isValidElement(e)||Oe(e)?I.createElement(zr,{key:"labelList-implicit",data:t,content:e}):tl(e)?I.createElement(zr,Af({data:t},e,{key:"labelList-implicit"})):null:null}function A9(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,o=Ln(r,zr).map(function(s,f){return P.cloneElement(s,{data:t,key:"labelList-".concat(f)})});if(!n)return o;var l=O9(e.label,t);return[l].concat(p9(o))}zr.renderCallByParent=A9;function Hu(e){"@babel/helpers - typeof";return Hu=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},Hu(e)}function Z0(){return Z0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z0.apply(this,arguments)}function fE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function dE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fE(Object(n),!0).forEach(function(r){j9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function j9(e,t,n){return t=T9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T9(e){var t=E9(e,"string");return Hu(t)=="symbol"?t:t+""}function E9(e,t){if(Hu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var N9=function(t,n){var r=Yt(n-t),o=Math.min(Math.abs(n-t),359.999);return r*o},Uc=function(t){var n=t.cx,r=t.cy,o=t.radius,l=t.angle,s=t.sign,f=t.isExternal,d=t.cornerRadius,h=t.cornerIsExternal,y=d*(f?1:-1)+o,p=Math.asin(d/y)/Of,b=h?l:l+s*p,S=nt(n,r,y,b),_=nt(n,r,o,b),w=h?l-s*p:l,x=nt(n,r,y*Math.cos(p*Of),w);return{center:S,circleTangency:_,lineTangency:x,theta:p}},H3=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,l=t.outerRadius,s=t.startAngle,f=t.endAngle,d=N9(s,f),h=s+d,y=nt(n,r,l,s),p=nt(n,r,l,h),b="M ".concat(y.x,",").concat(y.y,`
|
|
90
|
+
A `).concat(l,",").concat(l,`,0,
|
|
91
|
+
`).concat(+(Math.abs(d)>180),",").concat(+(s>h),`,
|
|
92
|
+
`).concat(p.x,",").concat(p.y,`
|
|
93
|
+
`);if(o>0){var S=nt(n,r,o,s),_=nt(n,r,o,h);b+="L ".concat(_.x,",").concat(_.y,`
|
|
94
|
+
A `).concat(o,",").concat(o,`,0,
|
|
95
|
+
`).concat(+(Math.abs(d)>180),",").concat(+(s<=h),`,
|
|
96
|
+
`).concat(S.x,",").concat(S.y," Z")}else b+="L ".concat(n,",").concat(r," Z");return b},C9=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,l=t.outerRadius,s=t.cornerRadius,f=t.forceCornerRadius,d=t.cornerIsExternal,h=t.startAngle,y=t.endAngle,p=Yt(y-h),b=Uc({cx:n,cy:r,radius:l,angle:h,sign:p,cornerRadius:s,cornerIsExternal:d}),S=b.circleTangency,_=b.lineTangency,w=b.theta,x=Uc({cx:n,cy:r,radius:l,angle:y,sign:-p,cornerRadius:s,cornerIsExternal:d}),j=x.circleTangency,T=x.lineTangency,E=x.theta,N=d?Math.abs(h-y):Math.abs(h-y)-w-E;if(N<0)return f?"M ".concat(_.x,",").concat(_.y,`
|
|
97
|
+
a`).concat(s,",").concat(s,",0,0,1,").concat(s*2,`,0
|
|
98
|
+
a`).concat(s,",").concat(s,",0,0,1,").concat(-s*2,`,0
|
|
99
|
+
`):H3({cx:n,cy:r,innerRadius:o,outerRadius:l,startAngle:h,endAngle:y});var O="M ".concat(_.x,",").concat(_.y,`
|
|
100
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(S.x,",").concat(S.y,`
|
|
101
|
+
A`).concat(l,",").concat(l,",0,").concat(+(N>180),",").concat(+(p<0),",").concat(j.x,",").concat(j.y,`
|
|
102
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(T.x,",").concat(T.y,`
|
|
103
|
+
`);if(o>0){var C=Uc({cx:n,cy:r,radius:o,angle:h,sign:p,isExternal:!0,cornerRadius:s,cornerIsExternal:d}),M=C.circleTangency,D=C.lineTangency,$=C.theta,z=Uc({cx:n,cy:r,radius:o,angle:y,sign:-p,isExternal:!0,cornerRadius:s,cornerIsExternal:d}),L=z.circleTangency,B=z.lineTangency,H=z.theta,Y=d?Math.abs(h-y):Math.abs(h-y)-$-H;if(Y<0&&s===0)return"".concat(O,"L").concat(n,",").concat(r,"Z");O+="L".concat(B.x,",").concat(B.y,`
|
|
104
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(L.x,",").concat(L.y,`
|
|
105
|
+
A`).concat(o,",").concat(o,",0,").concat(+(Y>180),",").concat(+(p>0),",").concat(M.x,",").concat(M.y,`
|
|
106
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(D.x,",").concat(D.y,"Z")}else O+="L".concat(n,",").concat(r,"Z");return O},M9={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},G3=function(t){var n=dE(dE({},M9),t),r=n.cx,o=n.cy,l=n.innerRadius,s=n.outerRadius,f=n.cornerRadius,d=n.forceCornerRadius,h=n.cornerIsExternal,y=n.startAngle,p=n.endAngle,b=n.className;if(s<l||y===p)return null;var S=Me("recharts-sector",b),_=s-l,w=Kt(f,_,0,!0),x;return w>0&&Math.abs(y-p)<360?x=C9({cx:r,cy:o,innerRadius:l,outerRadius:s,cornerRadius:Math.min(w,_/2),forceCornerRadius:d,cornerIsExternal:h,startAngle:y,endAngle:p}):x=H3({cx:r,cy:o,innerRadius:l,outerRadius:s,startAngle:y,endAngle:p}),I.createElement("path",Z0({},ge(n,!0),{className:S,d:x,role:"img"}))};function Gu(e){"@babel/helpers - typeof";return Gu=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},Gu(e)}function Q0(){return Q0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q0.apply(this,arguments)}function hE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function pE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hE(Object(n),!0).forEach(function(r){R9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function R9(e,t,n){return t=P9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P9(e){var t=D9(e,"string");return Gu(t)=="symbol"?t:t+""}function D9(e,t){if(Gu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mE={curveBasisClosed:e$,curveBasisOpen:t$,curveBasis:J6,curveBumpX:B6,curveBumpY:z6,curveLinearClosed:n$,curveLinear:od,curveMonotoneX:r$,curveMonotoneY:a$,curveNatural:i$,curveStep:o$,curveStepAfter:u$,curveStepBefore:l$},Ic=function(t){return t.x===+t.x&&t.y===+t.y},su=function(t){return t.x},cu=function(t){return t.y},k9=function(t,n){if(Oe(t))return t;var r="curve".concat(ad(t));return(r==="curveMonotone"||r==="curveBump")&&n?mE["".concat(r).concat(n==="vertical"?"Y":"X")]:mE[r]||od},$9=function(t){var n=t.type,r=n===void 0?"linear":n,o=t.points,l=o===void 0?[]:o,s=t.baseLine,f=t.layout,d=t.connectNulls,h=d===void 0?!1:d,y=k9(r,f),p=h?l.filter(function(w){return Ic(w)}):l,b;if(Array.isArray(s)){var S=h?s.filter(function(w){return Ic(w)}):s,_=p.map(function(w,x){return pE(pE({},w),{},{base:S[x]})});return f==="vertical"?b=Pc().y(cu).x1(su).x0(function(w){return w.base.x}):b=Pc().x(su).y1(cu).y0(function(w){return w.base.y}),b.defined(Ic).curve(y),b(_)}return f==="vertical"&&de(s)?b=Pc().y(cu).x1(su).x0(s):de(s)?b=Pc().x(su).y1(cu).y0(s):b=GC().x(su).y(cu),b.defined(Ic).curve(y),b(p)},_o=function(t){var n=t.className,r=t.points,o=t.path,l=t.pathRef;if((!r||!r.length)&&!o)return null;var s=r&&r.length?$9(t):o;return P.createElement("path",Q0({},ge(t,!1),Zc(t),{className:Me("recharts-curve",n),d:s,ref:l}))},Mg={exports:{}},Rg,yE;function L9(){if(yE)return Rg;yE=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Rg=e,Rg}var Pg,vE;function q9(){if(vE)return Pg;vE=1;var e=L9();function t(){}function n(){}return n.resetWarningCache=t,Pg=function(){function r(s,f,d,h,y,p){if(p!==e){var b=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 b.name="Invariant Violation",b}}r.isRequired=r;function o(){return r}var l={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return l.PropTypes=l,l},Pg}var gE;function B9(){return gE||(gE=1,Mg.exports=q9()()),Mg.exports}var z9=B9();const Ge=Ze(z9),{getOwnPropertyNames:U9,getOwnPropertySymbols:I9}=Object,{hasOwnProperty:H9}=Object.prototype;function Dg(e,t){return function(r,o,l){return e(r,o,l)&&t(r,o,l)}}function Hc(e){return function(n,r,o){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,o);const{cache:l}=o,s=l.get(n),f=l.get(r);if(s&&f)return s===r&&f===n;l.set(n,r),l.set(r,n);const d=e(n,r,o);return l.delete(n),l.delete(r),d}}function G9(e){return e!=null?e[Symbol.toStringTag]:void 0}function bE(e){return U9(e).concat(I9(e))}const Y9=Object.hasOwn||((e,t)=>H9.call(e,t));function _i(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const K9="__v",V9="__o",X9="_owner",{getOwnPropertyDescriptor:xE,keys:SE}=Object;function F9(e,t){return e.byteLength===t.byteLength&&jf(new Uint8Array(e),new Uint8Array(t))}function W9(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 Z9(e,t){return e.byteLength===t.byteLength&&jf(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Q9(e,t){return _i(e.getTime(),t.getTime())}function J9(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function eI(e,t){return e===t}function wE(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const o=new Array(r),l=e.entries();let s,f,d=0;for(;(s=l.next())&&!s.done;){const h=t.entries();let y=!1,p=0;for(;(f=h.next())&&!f.done;){if(o[p]){p++;continue}const b=s.value,S=f.value;if(n.equals(b[0],S[0],d,p,e,t,n)&&n.equals(b[1],S[1],b[0],S[0],e,t,n)){y=o[p]=!0;break}p++}if(!y)return!1;d++}return!0}const tI=_i;function nI(e,t,n){const r=SE(e);let o=r.length;if(SE(t).length!==o)return!1;for(;o-- >0;)if(!Y3(e,t,n,r[o]))return!1;return!0}function fu(e,t,n){const r=bE(e);let o=r.length;if(bE(t).length!==o)return!1;let l,s,f;for(;o-- >0;)if(l=r[o],!Y3(e,t,n,l)||(s=xE(e,l),f=xE(t,l),(s||f)&&(!s||!f||s.configurable!==f.configurable||s.enumerable!==f.enumerable||s.writable!==f.writable)))return!1;return!0}function rI(e,t){return _i(e.valueOf(),t.valueOf())}function aI(e,t){return e.source===t.source&&e.flags===t.flags}function _E(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const o=new Array(r),l=e.values();let s,f;for(;(s=l.next())&&!s.done;){const d=t.values();let h=!1,y=0;for(;(f=d.next())&&!f.done;){if(!o[y]&&n.equals(s.value,f.value,s.value,f.value,e,t,n)){h=o[y]=!0;break}y++}if(!h)return!1}return!0}function jf(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 iI(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 Y3(e,t,n,r){return(r===X9||r===V9||r===K9)&&(e.$$typeof||t.$$typeof)?!0:Y9(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const oI="[object ArrayBuffer]",lI="[object Arguments]",uI="[object Boolean]",sI="[object DataView]",cI="[object Date]",fI="[object Error]",dI="[object Map]",hI="[object Number]",pI="[object Object]",mI="[object RegExp]",yI="[object Set]",vI="[object String]",gI={"[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},bI="[object URL]",xI=Object.prototype.toString;function SI({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:o,areFunctionsEqual:l,areMapsEqual:s,areNumbersEqual:f,areObjectsEqual:d,arePrimitiveWrappersEqual:h,areRegExpsEqual:y,areSetsEqual:p,areTypedArraysEqual:b,areUrlsEqual:S,unknownTagComparators:_}){return function(x,j,T){if(x===j)return!0;if(x==null||j==null)return!1;const E=typeof x;if(E!==typeof j)return!1;if(E!=="object")return E==="number"?f(x,j,T):E==="function"?l(x,j,T):!1;const N=x.constructor;if(N!==j.constructor)return!1;if(N===Object)return d(x,j,T);if(Array.isArray(x))return t(x,j,T);if(N===Date)return r(x,j,T);if(N===RegExp)return y(x,j,T);if(N===Map)return s(x,j,T);if(N===Set)return p(x,j,T);const O=xI.call(x);if(O===cI)return r(x,j,T);if(O===mI)return y(x,j,T);if(O===dI)return s(x,j,T);if(O===yI)return p(x,j,T);if(O===pI)return typeof x.then!="function"&&typeof j.then!="function"&&d(x,j,T);if(O===bI)return S(x,j,T);if(O===fI)return o(x,j,T);if(O===lI)return d(x,j,T);if(gI[O])return b(x,j,T);if(O===oI)return e(x,j,T);if(O===sI)return n(x,j,T);if(O===uI||O===hI||O===vI)return h(x,j,T);if(_){let C=_[O];if(!C){const M=G9(x);M&&(C=_[M])}if(C)return C(x,j,T)}return!1}}function wI({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:F9,areArraysEqual:n?fu:W9,areDataViewsEqual:Z9,areDatesEqual:Q9,areErrorsEqual:J9,areFunctionsEqual:eI,areMapsEqual:n?Dg(wE,fu):wE,areNumbersEqual:tI,areObjectsEqual:n?fu:nI,arePrimitiveWrappersEqual:rI,areRegExpsEqual:aI,areSetsEqual:n?Dg(_E,fu):_E,areTypedArraysEqual:n?Dg(jf,fu):jf,areUrlsEqual:iI,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const o=Hc(r.areArraysEqual),l=Hc(r.areMapsEqual),s=Hc(r.areObjectsEqual),f=Hc(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:o,areMapsEqual:l,areObjectsEqual:s,areSetsEqual:f})}return r}function _I(e){return function(t,n,r,o,l,s,f){return e(t,n,f)}}function OI({circular:e,comparator:t,createState:n,equals:r,strict:o}){if(n)return function(f,d){const{cache:h=e?new WeakMap:void 0,meta:y}=n();return t(f,d,{cache:h,equals:r,meta:y,strict:o})};if(e)return function(f,d){return t(f,d,{cache:new WeakMap,equals:r,meta:void 0,strict:o})};const l={cache:void 0,equals:r,meta:void 0,strict:o};return function(f,d){return t(f,d,l)}}const AI=ka();ka({strict:!0});ka({circular:!0});ka({circular:!0,strict:!0});ka({createInternalComparator:()=>_i});ka({strict:!0,createInternalComparator:()=>_i});ka({circular:!0,createInternalComparator:()=>_i});ka({circular:!0,createInternalComparator:()=>_i,strict:!0});function ka(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:o=!1}=e,l=wI(e),s=SI(l),f=n?n(s):_I(s);return OI({circular:t,comparator:s,createState:r,equals:f,strict:o})}function jI(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function OE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function o(l){n<0&&(n=l),l-n>t?(e(l),n=-1):jI(o)};requestAnimationFrame(r)}function J0(e){"@babel/helpers - typeof";return J0=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},J0(e)}function TI(e){return MI(e)||CI(e)||NI(e)||EI()}function EI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
107
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NI(e,t){if(e){if(typeof e=="string")return AE(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 AE(e,t)}}function AE(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 CI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MI(e){if(Array.isArray(e))return e}function RI(){var e={},t=function(){return null},n=!1,r=function o(l){if(!n){if(Array.isArray(l)){if(!l.length)return;var s=l,f=TI(s),d=f[0],h=f.slice(1);if(typeof d=="number"){OE(o.bind(null,h),d);return}o(d),OE(o.bind(null,h));return}J0(l)==="object"&&(e=l,t(e)),typeof l=="function"&&l()}};return{stop:function(){n=!0},start:function(l){n=!1,r(l)},subscribe:function(l){return t=l,function(){t=function(){return null}}}}}function Yu(e){"@babel/helpers - typeof";return Yu=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},Yu(e)}function jE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function TE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jE(Object(n),!0).forEach(function(r){K3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function K3(e,t,n){return t=PI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PI(e){var t=DI(e,"string");return Yu(t)==="symbol"?t:String(t)}function DI(e,t){if(Yu(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yu(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kI=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,o){return r.filter(function(l){return o.includes(l)})})},$I=function(t){return t},LI=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},bu=function(t,n){return Object.keys(n).reduce(function(r,o){return TE(TE({},r),{},K3({},o,t(o,n[o])))},{})},EE=function(t,n,r){return t.map(function(o){return"".concat(LI(o)," ").concat(n,"ms ").concat(r)}).join(",")};function qI(e,t){return UI(e)||zI(e,t)||V3(e,t)||BI()}function BI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
108
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zI(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(y){h=!0,o=y}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function UI(e){if(Array.isArray(e))return e}function II(e){return YI(e)||GI(e)||V3(e)||HI()}function HI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
109
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V3(e,t){if(e){if(typeof e=="string")return eb(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 eb(e,t)}}function GI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YI(e){if(Array.isArray(e))return eb(e)}function eb(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 Tf=1e-4,X3=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},F3=function(t,n){return t.map(function(r,o){return r*Math.pow(n,o)}).reduce(function(r,o){return r+o})},NE=function(t,n){return function(r){var o=X3(t,n);return F3(o,r)}},KI=function(t,n){return function(r){var o=X3(t,n),l=[].concat(II(o.map(function(s,f){return s*f}).slice(1)),[0]);return F3(l,r)}},CE=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0],l=n[1],s=n[2],f=n[3];if(n.length===1)switch(n[0]){case"linear":o=0,l=0,s=1,f=1;break;case"ease":o=.25,l=.1,s=.25,f=1;break;case"ease-in":o=.42,l=0,s=1,f=1;break;case"ease-out":o=.42,l=0,s=.58,f=1;break;case"ease-in-out":o=0,l=0,s=.58,f=1;break;default:{var d=n[0].split("(");if(d[0]==="cubic-bezier"&&d[1].split(")")[0].split(",").length===4){var h=d[1].split(")")[0].split(",").map(function(x){return parseFloat(x)}),y=qI(h,4);o=y[0],l=y[1],s=y[2],f=y[3]}}}var p=NE(o,s),b=NE(l,f),S=KI(o,s),_=function(j){return j>1?1:j<0?0:j},w=function(j){for(var T=j>1?1:j,E=T,N=0;N<8;++N){var O=p(E)-T,C=S(E);if(Math.abs(O-T)<Tf||C<Tf)return b(E);E=_(E-O/C)}return b(E)};return w.isStepper=!1,w},VI=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,o=t.damping,l=o===void 0?8:o,s=t.dt,f=s===void 0?17:s,d=function(y,p,b){var S=-(y-p)*r,_=b*l,w=b+(S-_)*f/1e3,x=b*f/1e3+y;return Math.abs(x-p)<Tf&&Math.abs(w)<Tf?[p,0]:[x,w]};return d.isStepper=!0,d.dt=f,d},XI=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0];if(typeof o=="string")switch(o){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return CE(o);case"spring":return VI();default:if(o.split("(")[0]==="cubic-bezier")return CE(o)}return typeof o=="function"?o:null};function Ku(e){"@babel/helpers - typeof";return Ku=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},Ku(e)}function ME(e){return ZI(e)||WI(e)||W3(e)||FI()}function FI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
110
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZI(e){if(Array.isArray(e))return nb(e)}function RE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RE(Object(n),!0).forEach(function(r){tb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tb(e,t,n){return t=QI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QI(e){var t=JI(e,"string");return Ku(t)==="symbol"?t:String(t)}function JI(e,t){if(Ku(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ku(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eH(e,t){return rH(e)||nH(e,t)||W3(e,t)||tH()}function tH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
111
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W3(e,t){if(e){if(typeof e=="string")return nb(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 nb(e,t)}}function nb(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 nH(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(y){h=!0,o=y}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function rH(e){if(Array.isArray(e))return e}var Ef=function(t,n,r){return t+(n-t)*r},rb=function(t){var n=t.from,r=t.to;return n!==r},aH=function e(t,n,r){var o=bu(function(l,s){if(rb(s)){var f=t(s.from,s.to,s.velocity),d=eH(f,2),h=d[0],y=d[1];return Bt(Bt({},s),{},{from:h,velocity:y})}return s},n);return r<1?bu(function(l,s){return rb(s)?Bt(Bt({},s),{},{velocity:Ef(s.velocity,o[l].velocity,r),from:Ef(s.from,o[l].from,r)}):s},n):e(t,o,r-1)};const iH=(function(e,t,n,r,o){var l=kI(e,t),s=l.reduce(function(x,j){return Bt(Bt({},x),{},tb({},j,[e[j],t[j]]))},{}),f=l.reduce(function(x,j){return Bt(Bt({},x),{},tb({},j,{from:e[j],velocity:0,to:t[j]}))},{}),d=-1,h,y,p=function(){return null},b=function(){return bu(function(j,T){return T.from},f)},S=function(){return!Object.values(f).filter(rb).length},_=function(j){h||(h=j);var T=j-h,E=T/n.dt;f=aH(n,f,E),o(Bt(Bt(Bt({},e),t),b())),h=j,S()||(d=requestAnimationFrame(p))},w=function(j){y||(y=j);var T=(j-y)/r,E=bu(function(O,C){return Ef.apply(void 0,ME(C).concat([n(T)]))},s);if(o(Bt(Bt(Bt({},e),t),E)),T<1)d=requestAnimationFrame(p);else{var N=bu(function(O,C){return Ef.apply(void 0,ME(C).concat([n(1)]))},s);o(Bt(Bt(Bt({},e),t),N))}};return p=n.isStepper?_:w,function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(d)}}});function Do(e){"@babel/helpers - typeof";return Do=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},Do(e)}var oH=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function lH(e,t){if(e==null)return{};var n=uH(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uH(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,l;for(l=0;l<r.length;l++)o=r[l],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function kg(e){return dH(e)||fH(e)||cH(e)||sH()}function sH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
112
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cH(e,t){if(e){if(typeof e=="string")return ab(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 ab(e,t)}}function fH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dH(e){if(Array.isArray(e))return ab(e)}function ab(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 PE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Kn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PE(Object(n),!0).forEach(function(r){mu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mu(e,t,n){return t=Z3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pH(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,Z3(r.key),r)}}function mH(e,t,n){return t&&pH(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Z3(e){var t=yH(e,"string");return Do(t)==="symbol"?t:String(t)}function yH(e,t){if(Do(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Do(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vH(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&&ib(e,t)}function ib(e,t){return ib=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ib(e,t)}function gH(e){var t=bH();return function(){var r=Nf(e),o;if(t){var l=Nf(this).constructor;o=Reflect.construct(r,arguments,l)}else o=r.apply(this,arguments);return ob(this,o)}}function ob(e,t){if(t&&(Do(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lb(e)}function lb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bH(){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 Nf(e){return Nf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nf(e)}var cr=(function(e){vH(n,e);var t=gH(n);function n(r,o){var l;hH(this,n),l=t.call(this,r,o);var s=l.props,f=s.isActive,d=s.attributeName,h=s.from,y=s.to,p=s.steps,b=s.children,S=s.duration;if(l.handleStyleChange=l.handleStyleChange.bind(lb(l)),l.changeStyle=l.changeStyle.bind(lb(l)),!f||S<=0)return l.state={style:{}},typeof b=="function"&&(l.state={style:y}),ob(l);if(p&&p.length)l.state={style:p[0].style};else if(h){if(typeof b=="function")return l.state={style:h},ob(l);l.state={style:d?mu({},d,h):h}}else l.state={style:{}};return l}return mH(n,[{key:"componentDidMount",value:function(){var o=this.props,l=o.isActive,s=o.canBegin;this.mounted=!0,!(!l||!s)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(o){var l=this.props,s=l.isActive,f=l.canBegin,d=l.attributeName,h=l.shouldReAnimate,y=l.to,p=l.from,b=this.state.style;if(f){if(!s){var S={style:d?mu({},d,y):y};this.state&&b&&(d&&b[d]!==y||!d&&b!==y)&&this.setState(S);return}if(!(AI(o.to,y)&&o.canBegin&&o.isActive)){var _=!o.canBegin||!o.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var w=_||h?p:o.to;if(this.state&&b){var x={style:d?mu({},d,w):w};(d&&b[d]!==w||!d&&b!==w)&&this.setState(x)}this.runAnimation(Kn(Kn({},this.props),{},{from:w,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var o=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),o&&o()}},{key:"handleStyleChange",value:function(o){this.changeStyle(o)}},{key:"changeStyle",value:function(o){this.mounted&&this.setState({style:o})}},{key:"runJSAnimation",value:function(o){var l=this,s=o.from,f=o.to,d=o.duration,h=o.easing,y=o.begin,p=o.onAnimationEnd,b=o.onAnimationStart,S=iH(s,f,XI(h),d,this.changeStyle),_=function(){l.stopJSAnimation=S()};this.manager.start([b,y,_,d,p])}},{key:"runStepAnimation",value:function(o){var l=this,s=o.steps,f=o.begin,d=o.onAnimationStart,h=s[0],y=h.style,p=h.duration,b=p===void 0?0:p,S=function(w,x,j){if(j===0)return w;var T=x.duration,E=x.easing,N=E===void 0?"ease":E,O=x.style,C=x.properties,M=x.onAnimationEnd,D=j>0?s[j-1]:x,$=C||Object.keys(O);if(typeof N=="function"||N==="spring")return[].concat(kg(w),[l.runJSAnimation.bind(l,{from:D.style,to:O,duration:T,easing:N}),T]);var z=EE($,T,N),L=Kn(Kn(Kn({},D.style),O),{},{transition:z});return[].concat(kg(w),[L,T,M]).filter($I)};return this.manager.start([d].concat(kg(s.reduce(S,[y,Math.max(b,f)])),[o.onAnimationEnd]))}},{key:"runAnimation",value:function(o){this.manager||(this.manager=RI());var l=o.begin,s=o.duration,f=o.attributeName,d=o.to,h=o.easing,y=o.onAnimationStart,p=o.onAnimationEnd,b=o.steps,S=o.children,_=this.manager;if(this.unSubscribe=_.subscribe(this.handleStyleChange),typeof h=="function"||typeof S=="function"||h==="spring"){this.runJSAnimation(o);return}if(b.length>1){this.runStepAnimation(o);return}var w=f?mu({},f,d):d,x=EE(Object.keys(w),s,h);_.start([y,l,Kn(Kn({},w),{},{transition:x}),s,p])}},{key:"render",value:function(){var o=this.props,l=o.children;o.begin;var s=o.duration;o.attributeName,o.easing;var f=o.isActive;o.steps,o.from,o.to,o.canBegin,o.onAnimationEnd,o.shouldReAnimate,o.onAnimationReStart;var d=lH(o,oH),h=P.Children.count(l),y=this.state.style;if(typeof l=="function")return l(y);if(!f||h===0||s<=0)return l;var p=function(S){var _=S.props,w=_.style,x=w===void 0?{}:w,j=_.className,T=P.cloneElement(S,Kn(Kn({},d),{},{style:Kn(Kn({},x),y),className:j}));return T};return h===1?p(P.Children.only(l)):I.createElement("div",null,P.Children.map(l,function(b){return p(b)}))}}]),n})(P.PureComponent);cr.displayName="Animate";cr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};cr.propTypes={from:Ge.oneOfType([Ge.object,Ge.string]),to:Ge.oneOfType([Ge.object,Ge.string]),attributeName:Ge.string,duration:Ge.number,begin:Ge.number,easing:Ge.oneOfType([Ge.string,Ge.func]),steps:Ge.arrayOf(Ge.shape({duration:Ge.number.isRequired,style:Ge.object.isRequired,easing:Ge.oneOfType([Ge.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Ge.func]),properties:Ge.arrayOf("string"),onAnimationEnd:Ge.func})),children:Ge.oneOfType([Ge.node,Ge.func]),isActive:Ge.bool,canBegin:Ge.bool,onAnimationEnd:Ge.func,shouldReAnimate:Ge.bool,onAnimationStart:Ge.func,onAnimationReStart:Ge.func};function Vu(e){"@babel/helpers - typeof";return Vu=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},Vu(e)}function Cf(){return Cf=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},Cf.apply(this,arguments)}function xH(e,t){return OH(e)||_H(e,t)||wH(e,t)||SH()}function SH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
113
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wH(e,t){if(e){if(typeof e=="string")return DE(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 DE(e,t)}}function DE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _H(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(y){h=!0,o=y}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function OH(e){if(Array.isArray(e))return e}function kE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $E(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kE(Object(n),!0).forEach(function(r){AH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AH(e,t,n){return t=jH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jH(e){var t=TH(e,"string");return Vu(t)=="symbol"?t:t+""}function TH(e,t){if(Vu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LE=function(t,n,r,o,l){var s=Math.min(Math.abs(r)/2,Math.abs(o)/2),f=o>=0?1:-1,d=r>=0?1:-1,h=o>=0&&r>=0||o<0&&r<0?1:0,y;if(s>0&&l instanceof Array){for(var p=[0,0,0,0],b=0,S=4;b<S;b++)p[b]=l[b]>s?s:l[b];y="M".concat(t,",").concat(n+f*p[0]),p[0]>0&&(y+="A ".concat(p[0],",").concat(p[0],",0,0,").concat(h,",").concat(t+d*p[0],",").concat(n)),y+="L ".concat(t+r-d*p[1],",").concat(n),p[1]>0&&(y+="A ".concat(p[1],",").concat(p[1],",0,0,").concat(h,`,
|
|
114
|
+
`).concat(t+r,",").concat(n+f*p[1])),y+="L ".concat(t+r,",").concat(n+o-f*p[2]),p[2]>0&&(y+="A ".concat(p[2],",").concat(p[2],",0,0,").concat(h,`,
|
|
115
|
+
`).concat(t+r-d*p[2],",").concat(n+o)),y+="L ".concat(t+d*p[3],",").concat(n+o),p[3]>0&&(y+="A ".concat(p[3],",").concat(p[3],",0,0,").concat(h,`,
|
|
116
|
+
`).concat(t,",").concat(n+o-f*p[3])),y+="Z"}else if(s>0&&l===+l&&l>0){var _=Math.min(s,l);y="M ".concat(t,",").concat(n+f*_,`
|
|
117
|
+
A `).concat(_,",").concat(_,",0,0,").concat(h,",").concat(t+d*_,",").concat(n,`
|
|
118
|
+
L `).concat(t+r-d*_,",").concat(n,`
|
|
119
|
+
A `).concat(_,",").concat(_,",0,0,").concat(h,",").concat(t+r,",").concat(n+f*_,`
|
|
120
|
+
L `).concat(t+r,",").concat(n+o-f*_,`
|
|
121
|
+
A `).concat(_,",").concat(_,",0,0,").concat(h,",").concat(t+r-d*_,",").concat(n+o,`
|
|
122
|
+
L `).concat(t+d*_,",").concat(n+o,`
|
|
123
|
+
A `).concat(_,",").concat(_,",0,0,").concat(h,",").concat(t,",").concat(n+o-f*_," Z")}else y="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(o," h ").concat(-r," Z");return y},EH=function(t,n){if(!t||!n)return!1;var r=t.x,o=t.y,l=n.x,s=n.y,f=n.width,d=n.height;if(Math.abs(f)>0&&Math.abs(d)>0){var h=Math.min(l,l+f),y=Math.max(l,l+f),p=Math.min(s,s+d),b=Math.max(s,s+d);return r>=h&&r<=y&&o>=p&&o<=b}return!1},NH={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},qx=function(t){var n=$E($E({},NH),t),r=P.useRef(),o=P.useState(-1),l=xH(o,2),s=l[0],f=l[1];P.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var N=r.current.getTotalLength();N&&f(N)}catch{}},[]);var d=n.x,h=n.y,y=n.width,p=n.height,b=n.radius,S=n.className,_=n.animationEasing,w=n.animationDuration,x=n.animationBegin,j=n.isAnimationActive,T=n.isUpdateAnimationActive;if(d!==+d||h!==+h||y!==+y||p!==+p||y===0||p===0)return null;var E=Me("recharts-rectangle",S);return T?I.createElement(cr,{canBegin:s>0,from:{width:y,height:p,x:d,y:h},to:{width:y,height:p,x:d,y:h},duration:w,animationEasing:_,isActive:T},function(N){var O=N.width,C=N.height,M=N.x,D=N.y;return I.createElement(cr,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:w,isActive:j,easing:_},I.createElement("path",Cf({},ge(n,!0),{className:E,d:LE(M,D,O,C,b),ref:r})))}):I.createElement("path",Cf({},ge(n,!0),{className:E,d:LE(d,h,y,p,b)}))},CH=["points","className","baseLinePoints","connectNulls"];function yo(){return yo=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},yo.apply(this,arguments)}function MH(e,t){if(e==null)return{};var n=RH(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function RH(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 qE(e){return $H(e)||kH(e)||DH(e)||PH()}function PH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
124
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DH(e,t){if(e){if(typeof e=="string")return ub(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 ub(e,t)}}function kH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $H(e){if(Array.isArray(e))return ub(e)}function ub(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 BE=function(t){return t&&t.x===+t.x&&t.y===+t.y},LH=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){BE(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),BE(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},xu=function(t,n){var r=LH(t);n&&(r=[r.reduce(function(l,s){return[].concat(qE(l),qE(s))},[])]);var o=r.map(function(l){return l.reduce(function(s,f,d){return"".concat(s).concat(d===0?"M":"L").concat(f.x,",").concat(f.y)},"")}).join("");return r.length===1?"".concat(o,"Z"):o},qH=function(t,n,r){var o=xu(t,r);return"".concat(o.slice(-1)==="Z"?o.slice(0,-1):o,"L").concat(xu(n.reverse(),r).slice(1))},BH=function(t){var n=t.points,r=t.className,o=t.baseLinePoints,l=t.connectNulls,s=MH(t,CH);if(!n||!n.length)return null;var f=Me("recharts-polygon",r);if(o&&o.length){var d=s.stroke&&s.stroke!=="none",h=qH(n,o,l);return I.createElement("g",{className:f},I.createElement("path",yo({},ge(s,!0),{fill:h.slice(-1)==="Z"?s.fill:"none",stroke:"none",d:h})),d?I.createElement("path",yo({},ge(s,!0),{fill:"none",d:xu(n,l)})):null,d?I.createElement("path",yo({},ge(s,!0),{fill:"none",d:xu(o,l)})):null)}var y=xu(n,l);return I.createElement("path",yo({},ge(s,!0),{fill:y.slice(-1)==="Z"?s.fill:"none",className:f,d:y}))};function sb(){return sb=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},sb.apply(this,arguments)}var Od=function(t){var n=t.cx,r=t.cy,o=t.r,l=t.className,s=Me("recharts-dot",l);return n===+n&&r===+r&&o===+o?P.createElement("circle",sb({},ge(t,!1),Zc(t),{className:s,cx:n,cy:r,r:o})):null};function Xu(e){"@babel/helpers - typeof";return Xu=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},Xu(e)}var zH=["x","y","top","left","width","height","className"];function cb(){return cb=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},cb.apply(this,arguments)}function zE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function UH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zE(Object(n),!0).forEach(function(r){IH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IH(e,t,n){return t=HH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HH(e){var t=GH(e,"string");return Xu(t)=="symbol"?t:t+""}function GH(e,t){if(Xu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function YH(e,t){if(e==null)return{};var n=KH(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KH(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 VH=function(t,n,r,o,l,s){return"M".concat(t,",").concat(l,"v").concat(o,"M").concat(s,",").concat(n,"h").concat(r)},XH=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,l=o===void 0?0:o,s=t.top,f=s===void 0?0:s,d=t.left,h=d===void 0?0:d,y=t.width,p=y===void 0?0:y,b=t.height,S=b===void 0?0:b,_=t.className,w=YH(t,zH),x=UH({x:r,y:l,top:f,left:h,width:p,height:S},w);return!de(r)||!de(l)||!de(p)||!de(S)||!de(f)||!de(h)?null:I.createElement("path",cb({},ge(x,!0),{className:Me("recharts-cross",_),d:VH(r,l,p,S,f,h)}))},$g,UE;function FH(){if(UE)return $g;UE=1;var e=bd(),t=h3(),n=dr();function r(o,l){return o&&o.length?e(o,n(l,2),t):void 0}return $g=r,$g}var WH=FH();const ZH=Ze(WH);var Lg,IE;function QH(){if(IE)return Lg;IE=1;var e=bd(),t=dr(),n=p3();function r(o,l){return o&&o.length?e(o,t(l,2),n):void 0}return Lg=r,Lg}var JH=QH();const eG=Ze(JH);var tG=["cx","cy","angle","ticks","axisLine"],nG=["ticks","tick","angle","tickFormatter","stroke"];function ko(e){"@babel/helpers - typeof";return ko=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},ko(e)}function Su(){return Su=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},Su.apply(this,arguments)}function HE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ti(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HE(Object(n),!0).forEach(function(r){Ad(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function GE(e,t){if(e==null)return{};var n=rG(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rG(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 aG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YE(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,J3(r.key),r)}}function iG(e,t,n){return t&&YE(e.prototype,t),n&&YE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function oG(e,t,n){return t=Mf(t),lG(e,Q3()?Reflect.construct(t,n||[],Mf(e).constructor):t.apply(e,n))}function lG(e,t){if(t&&(ko(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uG(e)}function uG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Q3=function(){return!!e})()}function Mf(e){return Mf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mf(e)}function sG(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&&fb(e,t)}function fb(e,t){return fb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},fb(e,t)}function Ad(e,t,n){return t=J3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J3(e){var t=cG(e,"string");return ko(t)=="symbol"?t:t+""}function cG(e,t){if(ko(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ko(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jd=(function(e){function t(){return aG(this,t),oG(this,t,arguments)}return sG(t,e),iG(t,[{key:"getTickValueCoord",value:function(r){var o=r.coordinate,l=this.props,s=l.angle,f=l.cx,d=l.cy;return nt(f,d,o,s)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,o;switch(r){case"left":o="end";break;case"right":o="start";break;default:o="middle";break}return o}},{key:"getViewBox",value:function(){var r=this.props,o=r.cx,l=r.cy,s=r.angle,f=r.ticks,d=ZH(f,function(y){return y.coordinate||0}),h=eG(f,function(y){return y.coordinate||0});return{cx:o,cy:l,startAngle:s,endAngle:s,innerRadius:h.coordinate||0,outerRadius:d.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.cx,l=r.cy,s=r.angle,f=r.ticks,d=r.axisLine,h=GE(r,tG),y=f.reduce(function(_,w){return[Math.min(_[0],w.coordinate),Math.max(_[1],w.coordinate)]},[1/0,-1/0]),p=nt(o,l,y[0],s),b=nt(o,l,y[1],s),S=ti(ti(ti({},ge(h,!1)),{},{fill:"none"},ge(d,!1)),{},{x1:p.x,y1:p.y,x2:b.x,y2:b.y});return I.createElement("line",Su({className:"recharts-polar-radius-axis-line"},S))}},{key:"renderTicks",value:function(){var r=this,o=this.props,l=o.ticks,s=o.tick,f=o.angle,d=o.tickFormatter,h=o.stroke,y=GE(o,nG),p=this.getTickTextAnchor(),b=ge(y,!1),S=ge(s,!1),_=l.map(function(w,x){var j=r.getTickValueCoord(w),T=ti(ti(ti(ti({textAnchor:p,transform:"rotate(".concat(90-f,", ").concat(j.x,", ").concat(j.y,")")},b),{},{stroke:"none",fill:h},S),{},{index:x},j),{},{payload:w});return I.createElement(Le,Su({className:Me("recharts-polar-radius-axis-tick",U3(s)),key:"tick-".concat(w.coordinate)},mi(r.props,w,x)),t.renderTickItem(s,T,d?d(w.value,x):w.value))});return I.createElement(Le,{className:"recharts-polar-radius-axis-ticks"},_)}},{key:"render",value:function(){var r=this.props,o=r.ticks,l=r.axisLine,s=r.tick;return!o||!o.length?null:I.createElement(Le,{className:Me("recharts-polar-radius-axis",this.props.className)},l&&this.renderAxisLine(),s&&this.renderTicks(),Rt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,o,l){var s;return I.isValidElement(r)?s=I.cloneElement(r,o):Oe(r)?s=r(o):s=I.createElement(yi,Su({},o,{className:"recharts-polar-radius-axis-tick-value"}),l),s}}])})(P.PureComponent);Ad(jd,"displayName","PolarRadiusAxis");Ad(jd,"axisType","radiusAxis");Ad(jd,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function $o(e){"@babel/helpers - typeof";return $o=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},$o(e)}function ii(){return ii=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},ii.apply(this,arguments)}function KE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ni(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KE(Object(n),!0).forEach(function(r){Td(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VE(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,tR(r.key),r)}}function dG(e,t,n){return t&&VE(e.prototype,t),n&&VE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function hG(e,t,n){return t=Rf(t),pG(e,eR()?Reflect.construct(t,n||[],Rf(e).constructor):t.apply(e,n))}function pG(e,t){if(t&&($o(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mG(e)}function mG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eR=function(){return!!e})()}function Rf(e){return Rf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rf(e)}function yG(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&&db(e,t)}function db(e,t){return db=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},db(e,t)}function Td(e,t,n){return t=tR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tR(e){var t=vG(e,"string");return $o(t)=="symbol"?t:t+""}function vG(e,t){if($o(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($o(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gG=Math.PI/180,XE=1e-5,Ed=(function(e){function t(){return fG(this,t),hG(this,t,arguments)}return yG(t,e),dG(t,[{key:"getTickLineCoord",value:function(r){var o=this.props,l=o.cx,s=o.cy,f=o.radius,d=o.orientation,h=o.tickSize,y=h||8,p=nt(l,s,f,r.coordinate),b=nt(l,s,f+(d==="inner"?-1:1)*y,r.coordinate);return{x1:p.x,y1:p.y,x2:b.x,y2:b.y}}},{key:"getTickTextAnchor",value:function(r){var o=this.props.orientation,l=Math.cos(-r.coordinate*gG),s;return l>XE?s=o==="outer"?"start":"end":l<-XE?s=o==="outer"?"end":"start":s="middle",s}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.cx,l=r.cy,s=r.radius,f=r.axisLine,d=r.axisLineType,h=ni(ni({},ge(this.props,!1)),{},{fill:"none"},ge(f,!1));if(d==="circle")return I.createElement(Od,ii({className:"recharts-polar-angle-axis-line"},h,{cx:o,cy:l,r:s}));var y=this.props.ticks,p=y.map(function(b){return nt(o,l,s,b.coordinate)});return I.createElement(BH,ii({className:"recharts-polar-angle-axis-line"},h,{points:p}))}},{key:"renderTicks",value:function(){var r=this,o=this.props,l=o.ticks,s=o.tick,f=o.tickLine,d=o.tickFormatter,h=o.stroke,y=ge(this.props,!1),p=ge(s,!1),b=ni(ni({},y),{},{fill:"none"},ge(f,!1)),S=l.map(function(_,w){var x=r.getTickLineCoord(_),j=r.getTickTextAnchor(_),T=ni(ni(ni({textAnchor:j},y),{},{stroke:"none",fill:h},p),{},{index:w,payload:_,x:x.x2,y:x.y2});return I.createElement(Le,ii({className:Me("recharts-polar-angle-axis-tick",U3(s)),key:"tick-".concat(_.coordinate)},mi(r.props,_,w)),f&&I.createElement("line",ii({className:"recharts-polar-angle-axis-tick-line"},b,x)),s&&t.renderTickItem(s,T,d?d(_.value,w):_.value))});return I.createElement(Le,{className:"recharts-polar-angle-axis-ticks"},S)}},{key:"render",value:function(){var r=this.props,o=r.ticks,l=r.radius,s=r.axisLine;return l<=0||!o||!o.length?null:I.createElement(Le,{className:Me("recharts-polar-angle-axis",this.props.className)},s&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,o,l){var s;return I.isValidElement(r)?s=I.cloneElement(r,o):Oe(r)?s=r(o):s=I.createElement(yi,ii({},o,{className:"recharts-polar-angle-axis-tick-value"}),l),s}}])})(P.PureComponent);Td(Ed,"displayName","PolarAngleAxis");Td(Ed,"axisType","angleAxis");Td(Ed,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var qg,FE;function bG(){if(FE)return qg;FE=1;var e=hM(),t=e(Object.getPrototypeOf,Object);return qg=t,qg}var Bg,WE;function xG(){if(WE)return Bg;WE=1;var e=Xr(),t=bG(),n=Fr(),r="[object Object]",o=Function.prototype,l=Object.prototype,s=o.toString,f=l.hasOwnProperty,d=s.call(Object);function h(y){if(!n(y)||e(y)!=r)return!1;var p=t(y);if(p===null)return!0;var b=f.call(p,"constructor")&&p.constructor;return typeof b=="function"&&b instanceof b&&s.call(b)==d}return Bg=h,Bg}var SG=xG();const wG=Ze(SG);var zg,ZE;function _G(){if(ZE)return zg;ZE=1;var e=Xr(),t=Fr(),n="[object Boolean]";function r(o){return o===!0||o===!1||t(o)&&e(o)==n}return zg=r,zg}var OG=_G();const AG=Ze(OG);function Fu(e){"@babel/helpers - typeof";return Fu=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},Fu(e)}function Pf(){return Pf=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},Pf.apply(this,arguments)}function jG(e,t){return CG(e)||NG(e,t)||EG(e,t)||TG()}function TG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
125
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EG(e,t){if(e){if(typeof e=="string")return QE(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 QE(e,t)}}function QE(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 NG(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(y){h=!0,o=y}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function CG(e){if(Array.isArray(e))return e}function JE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function eN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JE(Object(n),!0).forEach(function(r){MG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function MG(e,t,n){return t=RG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RG(e){var t=PG(e,"string");return Fu(t)=="symbol"?t:t+""}function PG(e,t){if(Fu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tN=function(t,n,r,o,l){var s=r-o,f;return f="M ".concat(t,",").concat(n),f+="L ".concat(t+r,",").concat(n),f+="L ".concat(t+r-s/2,",").concat(n+l),f+="L ".concat(t+r-s/2-o,",").concat(n+l),f+="L ".concat(t,",").concat(n," Z"),f},DG={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},kG=function(t){var n=eN(eN({},DG),t),r=P.useRef(),o=P.useState(-1),l=jG(o,2),s=l[0],f=l[1];P.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var E=r.current.getTotalLength();E&&f(E)}catch{}},[]);var d=n.x,h=n.y,y=n.upperWidth,p=n.lowerWidth,b=n.height,S=n.className,_=n.animationEasing,w=n.animationDuration,x=n.animationBegin,j=n.isUpdateAnimationActive;if(d!==+d||h!==+h||y!==+y||p!==+p||b!==+b||y===0&&p===0||b===0)return null;var T=Me("recharts-trapezoid",S);return j?I.createElement(cr,{canBegin:s>0,from:{upperWidth:0,lowerWidth:0,height:b,x:d,y:h},to:{upperWidth:y,lowerWidth:p,height:b,x:d,y:h},duration:w,animationEasing:_,isActive:j},function(E){var N=E.upperWidth,O=E.lowerWidth,C=E.height,M=E.x,D=E.y;return I.createElement(cr,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:w,easing:_},I.createElement("path",Pf({},ge(n,!0),{className:T,d:tN(M,D,N,O,C),ref:r})))}):I.createElement("g",null,I.createElement("path",Pf({},ge(n,!0),{className:T,d:tN(d,h,y,p,b)})))},$G=["option","shapeType","propTransformer","activeClassName","isActive"];function Wu(e){"@babel/helpers - typeof";return Wu=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},Wu(e)}function LG(e,t){if(e==null)return{};var n=qG(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qG(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 nN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Df(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nN(Object(n),!0).forEach(function(r){BG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function BG(e,t,n){return t=zG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zG(e){var t=UG(e,"string");return Wu(t)=="symbol"?t:t+""}function UG(e,t){if(Wu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function IG(e,t){return Df(Df({},t),e)}function HG(e,t){return e==="symbols"}function rN(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return I.createElement(qx,n);case"trapezoid":return I.createElement(kG,n);case"sector":return I.createElement(G3,n);case"symbols":if(HG(t))return I.createElement(rx,n);break;default:return null}}function GG(e){return P.isValidElement(e)?e.props:e}function nR(e){var t=e.option,n=e.shapeType,r=e.propTransformer,o=r===void 0?IG:r,l=e.activeClassName,s=l===void 0?"recharts-active-shape":l,f=e.isActive,d=LG(e,$G),h;if(P.isValidElement(t))h=P.cloneElement(t,Df(Df({},d),GG(t)));else if(Oe(t))h=t(d);else if(wG(t)&&!AG(t)){var y=o(t,d);h=I.createElement(rN,{shapeType:n,elementProps:y})}else{var p=d;h=I.createElement(rN,{shapeType:n,elementProps:p})}return f?I.createElement(Le,{className:s},h):h}function Nd(e,t){return t!=null&&"trapezoids"in e.props}function Cd(e,t){return t!=null&&"sectors"in e.props}function Zu(e,t){return t!=null&&"points"in e.props}function YG(e,t){var n,r,o=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,l=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return o&&l}function KG(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function VG(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function XG(e,t){var n;return Nd(e,t)?n=YG:Cd(e,t)?n=KG:Zu(e,t)&&(n=VG),n}function FG(e,t){var n;return Nd(e,t)?n="trapezoids":Cd(e,t)?n="sectors":Zu(e,t)&&(n="points"),n}function WG(e,t){if(Nd(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(Cd(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 Zu(e,t)?t.payload:{}}function ZG(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=FG(n,t),l=WG(n,t),s=r.filter(function(d,h){var y=Ro(l,d),p=n.props[o].filter(function(_){var w=XG(n,t);return w(_,t)}),b=n.props[o].indexOf(p[p.length-1]),S=h===b;return y&&S}),f=r.indexOf(s[s.length-1]);return f}var Xc;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 vo(){return vo=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},vo.apply(this,arguments)}function aN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aN(Object(n),!0).forEach(function(r){kn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iN(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,aR(r.key),r)}}function JG(e,t,n){return t&&iN(e.prototype,t),n&&iN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function eY(e,t,n){return t=kf(t),tY(e,rR()?Reflect.construct(t,n||[],kf(e).constructor):t.apply(e,n))}function tY(e,t){if(t&&(Lo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nY(e)}function nY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rR=function(){return!!e})()}function kf(e){return kf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kf(e)}function rY(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&&hb(e,t)}function hb(e,t){return hb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},hb(e,t)}function kn(e,t,n){return t=aR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aR(e){var t=aY(e,"string");return Lo(t)=="symbol"?t:t+""}function aY(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 String(e)}var Zr=(function(e){function t(n){var r;return QG(this,t),r=eY(this,t,[n]),kn(r,"pieRef",null),kn(r,"sectorRefs",[]),kn(r,"id",rl("recharts-pie-")),kn(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Oe(o)&&o()}),kn(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Oe(o)&&o()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return rY(t,e),JG(t,[{key:"isActiveIndex",value:function(r){var o=this.props.activeIndex;return Array.isArray(o)?o.indexOf(r)!==-1:r===o}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var l=this.props,s=l.label,f=l.labelLine,d=l.dataKey,h=l.valueKey,y=ge(this.props,!1),p=ge(s,!1),b=ge(f,!1),S=s&&s.offsetRadius||20,_=r.map(function(w,x){var j=(w.startAngle+w.endAngle)/2,T=nt(w.cx,w.cy,w.outerRadius+S,j),E=et(et(et(et({},y),w),{},{stroke:"none"},p),{},{index:x,textAnchor:t.getTextAnchor(T.x,w.cx)},T),N=et(et(et(et({},y),w),{},{fill:"none",stroke:w.fill},b),{},{index:x,points:[nt(w.cx,w.cy,w.outerRadius,j),T]}),O=d;return Te(d)&&Te(h)?O="value":Te(d)&&(O=h),I.createElement(Le,{key:"label-".concat(w.startAngle,"-").concat(w.endAngle,"-").concat(w.midAngle,"-").concat(x)},f&&t.renderLabelLineItem(f,N,"line"),t.renderLabelItem(s,E,jt(w,O)))});return I.createElement(Le,{className:"recharts-pie-labels"},_)}},{key:"renderSectorsStatically",value:function(r){var o=this,l=this.props,s=l.activeShape,f=l.blendStroke,d=l.inactiveShape;return r.map(function(h,y){if((h==null?void 0:h.startAngle)===0&&(h==null?void 0:h.endAngle)===0&&r.length!==1)return null;var p=o.isActiveIndex(y),b=d&&o.hasActiveIndex()?d:null,S=p?s:b,_=et(et({},h),{},{stroke:f?h.fill:h.stroke,tabIndex:-1});return I.createElement(Le,vo({ref:function(x){x&&!o.sectorRefs.includes(x)&&o.sectorRefs.push(x)},tabIndex:-1,className:"recharts-pie-sector"},mi(o.props,h,y),{key:"sector-".concat(h==null?void 0:h.startAngle,"-").concat(h==null?void 0:h.endAngle,"-").concat(h.midAngle,"-").concat(y)}),I.createElement(nR,vo({option:S,isActive:p,shapeType:"sector"},_)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,o=this.props,l=o.sectors,s=o.isAnimationActive,f=o.animationBegin,d=o.animationDuration,h=o.animationEasing,y=o.animationId,p=this.state,b=p.prevSectors,S=p.prevIsAnimationActive;return I.createElement(cr,{begin:f,duration:d,isActive:s,easing:h,from:{t:0},to:{t:1},key:"pie-".concat(y,"-").concat(S),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(_){var w=_.t,x=[],j=l&&l[0],T=j.startAngle;return l.forEach(function(E,N){var O=b&&b[N],C=N>0?xn(E,"paddingAngle",0):0;if(O){var M=tn(O.endAngle-O.startAngle,E.endAngle-E.startAngle),D=et(et({},E),{},{startAngle:T+C,endAngle:T+M(w)+C});x.push(D),T=D.endAngle}else{var $=E.endAngle,z=E.startAngle,L=tn(0,$-z),B=L(w),H=et(et({},E),{},{startAngle:T+C,endAngle:T+B+C});x.push(H),T=H.endAngle}}),I.createElement(Le,null,r.renderSectorsStatically(x))})}},{key:"attachKeyboardHandlers",value:function(r){var o=this;r.onkeydown=function(l){if(!l.altKey)switch(l.key){case"ArrowLeft":{var s=++o.state.sectorToFocus%o.sectorRefs.length;o.sectorRefs[s].focus(),o.setState({sectorToFocus:s});break}case"ArrowRight":{var f=--o.state.sectorToFocus<0?o.sectorRefs.length-1:o.state.sectorToFocus%o.sectorRefs.length;o.sectorRefs[f].focus(),o.setState({sectorToFocus:f});break}case"Escape":{o.sectorRefs[o.state.sectorToFocus].blur(),o.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,o=r.sectors,l=r.isAnimationActive,s=this.state.prevSectors;return l&&o&&o.length&&(!s||!Ro(s,o))?this.renderSectorsWithAnimation():this.renderSectorsStatically(o)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,o=this.props,l=o.hide,s=o.sectors,f=o.className,d=o.label,h=o.cx,y=o.cy,p=o.innerRadius,b=o.outerRadius,S=o.isAnimationActive,_=this.state.isAnimationFinished;if(l||!s||!s.length||!de(h)||!de(y)||!de(p)||!de(b))return null;var w=Me("recharts-pie",f);return I.createElement(Le,{tabIndex:this.props.rootTabIndex,className:w,ref:function(j){r.pieRef=j}},this.renderSectors(),d&&this.renderLabels(s),Rt.renderCallByParent(this.props,null,!1),(!S||_)&&zr.renderCallByParent(this.props,s,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return o.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:o.curSectors,isAnimationFinished:!0}:r.sectors!==o.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,o){return r>o?"start":r<o?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,o,l){if(I.isValidElement(r))return I.cloneElement(r,o);if(Oe(r))return r(o);var s=Me("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return I.createElement(_o,vo({},o,{key:l,type:"linear",className:s}))}},{key:"renderLabelItem",value:function(r,o,l){if(I.isValidElement(r))return I.cloneElement(r,o);var s=l;if(Oe(r)&&(s=r(o),I.isValidElement(s)))return s;var f=Me("recharts-pie-label-text",typeof r!="boolean"&&!Oe(r)?r.className:"");return I.createElement(yi,vo({},o,{alignmentBaseline:"middle",className:f}),s)}}])})(P.PureComponent);Xc=Zr;kn(Zr,"displayName","Pie");kn(Zr,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!xi.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});kn(Zr,"parseDeltaAngle",function(e,t){var n=Yt(t-e),r=Math.min(Math.abs(t-e),360);return n*r});kn(Zr,"getRealPieData",function(e){var t=e.data,n=e.children,r=ge(e,!1),o=Ln(n,dd);return t&&t.length?t.map(function(l,s){return et(et(et({payload:l},r),l),o&&o[s]&&o[s].props)}):o&&o.length?o.map(function(l){return et(et({},r),l.props)}):[]});kn(Zr,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,o=t.width,l=t.height,s=z3(o,l),f=r+Kt(e.cx,o,o/2),d=n+Kt(e.cy,l,l/2),h=Kt(e.innerRadius,s,0),y=Kt(e.outerRadius,s,s*.8),p=e.maxRadius||Math.sqrt(o*o+l*l)/2;return{cx:f,cy:d,innerRadius:h,outerRadius:y,maxRadius:p}});kn(Zr,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?et(et({},t.type.defaultProps),t.props):t.props,o=Xc.getRealPieData(r);if(!o||!o.length)return null;var l=r.cornerRadius,s=r.startAngle,f=r.endAngle,d=r.paddingAngle,h=r.dataKey,y=r.nameKey,p=r.valueKey,b=r.tooltipType,S=Math.abs(r.minAngle),_=Xc.parseCoordinateOfPie(r,n),w=Xc.parseDeltaAngle(s,f),x=Math.abs(w),j=h;Te(h)&&Te(p)?(qr(!1,`Use "dataKey" to specify the value of pie,
|
|
126
|
+
the props "valueKey" will be deprecated in 1.1.0`),j="value"):Te(h)&&(qr(!1,`Use "dataKey" to specify the value of pie,
|
|
127
|
+
the props "valueKey" will be deprecated in 1.1.0`),j=p);var T=o.filter(function(D){return jt(D,j,0)!==0}).length,E=(x>=360?T:T-1)*d,N=x-T*S-E,O=o.reduce(function(D,$){var z=jt($,j,0);return D+(de(z)?z:0)},0),C;if(O>0){var M;C=o.map(function(D,$){var z=jt(D,j,0),L=jt(D,y,$),B=(de(z)?z:0)/O,H;$?H=M.endAngle+Yt(w)*d*(z!==0?1:0):H=s;var Y=H+Yt(w)*((z!==0?S:0)+B*N),W=(H+Y)/2,k=(_.innerRadius+_.outerRadius)/2,X=[{name:L,value:z,payload:D,dataKey:j,type:b}],F=nt(_.cx,_.cy,k,W);return M=et(et(et({percent:B,cornerRadius:l,name:L,tooltipPayload:X,midAngle:W,middleRadius:k,tooltipPosition:F},D),_),{},{value:jt(D,j),startAngle:H,endAngle:Y,payload:D,paddingAngle:Yt(w)*d}),M})}return et(et({},_),{},{sectors:C,data:o})});var Ug,oN;function iY(){if(oN)return Ug;oN=1;var e=Math.ceil,t=Math.max;function n(r,o,l,s){for(var f=-1,d=t(e((o-r)/(l||1)),0),h=Array(d);d--;)h[s?d:++f]=r,r+=l;return h}return Ug=n,Ug}var Ig,lN;function iR(){if(lN)return Ig;lN=1;var e=NM(),t=1/0,n=17976931348623157e292;function r(o){if(!o)return o===0?o:0;if(o=e(o),o===t||o===-t){var l=o<0?-1:1;return l*n}return o===o?o:0}return Ig=r,Ig}var Hg,uN;function oY(){if(uN)return Hg;uN=1;var e=iY(),t=cd(),n=iR();function r(o){return function(l,s,f){return f&&typeof f!="number"&&t(l,s,f)&&(s=f=void 0),l=n(l),s===void 0?(s=l,l=0):s=n(s),f=f===void 0?l<s?1:-1:n(f),e(l,s,f,o)}}return Hg=r,Hg}var Gg,sN;function lY(){if(sN)return Gg;sN=1;var e=oY(),t=e();return Gg=t,Gg}var uY=lY();const $f=Ze(uY);function Qu(e){"@babel/helpers - typeof";return Qu=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},Qu(e)}function cN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function fN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cN(Object(n),!0).forEach(function(r){oR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oR(e,t,n){return t=sY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sY(e){var t=cY(e,"string");return Qu(t)=="symbol"?t:t+""}function cY(e,t){if(Qu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fY=["Webkit","Moz","O","ms"],dY=function(t,n){var r=t.replace(/(\w)/,function(l){return l.toUpperCase()}),o=fY.reduce(function(l,s){return fN(fN({},l),{},oR({},s+r,n))},{});return o[t]=n,o};function qo(e){"@babel/helpers - typeof";return qo=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},qo(e)}function Lf(){return Lf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lf.apply(this,arguments)}function dN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Yg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dN(Object(n),!0).forEach(function(r){mn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hN(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,uR(r.key),r)}}function pY(e,t,n){return t&&hN(e.prototype,t),n&&hN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function mY(e,t,n){return t=qf(t),yY(e,lR()?Reflect.construct(t,n||[],qf(e).constructor):t.apply(e,n))}function yY(e,t){if(t&&(qo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vY(e)}function vY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lR=function(){return!!e})()}function qf(e){return qf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qf(e)}function gY(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&&pb(e,t)}function pb(e,t){return pb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},pb(e,t)}function mn(e,t,n){return t=uR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uR(e){var t=bY(e,"string");return qo(t)=="symbol"?t:t+""}function bY(e,t){if(qo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xY=function(t){var n=t.data,r=t.startIndex,o=t.endIndex,l=t.x,s=t.width,f=t.travellerWidth;if(!n||!n.length)return{};var d=n.length,h=vu().domain($f(0,d)).range([l,l+s-f]),y=h.domain().map(function(p){return h(p)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:h(r),endX:h(o),scale:h,scaleValues:y}},pN=function(t){return t.changedTouches&&!!t.changedTouches.length},Bo=(function(e){function t(n){var r;return hY(this,t),r=mY(this,t,[n]),mn(r,"handleDrag",function(o){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(o):r.state.isSlideMoving&&r.handleSlideDrag(o)}),mn(r,"handleTouchMove",function(o){o.changedTouches!=null&&o.changedTouches.length>0&&r.handleDrag(o.changedTouches[0])}),mn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var o=r.props,l=o.endIndex,s=o.onDragEnd,f=o.startIndex;s==null||s({endIndex:l,startIndex:f})}),r.detachDragEndListener()}),mn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),mn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),mn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),mn(r,"handleSlideDragStart",function(o){var l=pN(o)?o.changedTouches[0]:o;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:l.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return gY(t,e),pY(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var o=r.startX,l=r.endX,s=this.state.scaleValues,f=this.props,d=f.gap,h=f.data,y=h.length-1,p=Math.min(o,l),b=Math.max(o,l),S=t.getIndexInRange(s,p),_=t.getIndexInRange(s,b);return{startIndex:S-S%d,endIndex:_===y?y:_-_%d}}},{key:"getTextOfTick",value:function(r){var o=this.props,l=o.data,s=o.tickFormatter,f=o.dataKey,d=jt(l[r],f,r);return Oe(s)?s(d,r):d}},{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 o=this.state,l=o.slideMoveStartX,s=o.startX,f=o.endX,d=this.props,h=d.x,y=d.width,p=d.travellerWidth,b=d.startIndex,S=d.endIndex,_=d.onChange,w=r.pageX-l;w>0?w=Math.min(w,h+y-p-f,h+y-p-s):w<0&&(w=Math.max(w,h-s,h-f));var x=this.getIndex({startX:s+w,endX:f+w});(x.startIndex!==b||x.endIndex!==S)&&_&&_(x),this.setState({startX:s+w,endX:f+w,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,o){var l=pN(o)?o.changedTouches[0]:o;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:l.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var o=this.state,l=o.brushMoveStartX,s=o.movingTravellerId,f=o.endX,d=o.startX,h=this.state[s],y=this.props,p=y.x,b=y.width,S=y.travellerWidth,_=y.onChange,w=y.gap,x=y.data,j={startX:this.state.startX,endX:this.state.endX},T=r.pageX-l;T>0?T=Math.min(T,p+b-S-h):T<0&&(T=Math.max(T,p-h)),j[s]=h+T;var E=this.getIndex(j),N=E.startIndex,O=E.endIndex,C=function(){var D=x.length-1;return s==="startX"&&(f>d?N%w===0:O%w===0)||f<d&&O===D||s==="endX"&&(f>d?O%w===0:N%w===0)||f>d&&O===D};this.setState(mn(mn({},s,h+T),"brushMoveStartX",r.pageX),function(){_&&C()&&_(E)})}},{key:"handleTravellerMoveKeyboard",value:function(r,o){var l=this,s=this.state,f=s.scaleValues,d=s.startX,h=s.endX,y=this.state[o],p=f.indexOf(y);if(p!==-1){var b=p+r;if(!(b===-1||b>=f.length)){var S=f[b];o==="startX"&&S>=h||o==="endX"&&S<=d||this.setState(mn({},o,S),function(){l.props.onChange(l.getIndex({startX:l.state.startX,endX:l.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,o=r.x,l=r.y,s=r.width,f=r.height,d=r.fill,h=r.stroke;return I.createElement("rect",{stroke:h,fill:d,x:o,y:l,width:s,height:f})}},{key:"renderPanorama",value:function(){var r=this.props,o=r.x,l=r.y,s=r.width,f=r.height,d=r.data,h=r.children,y=r.padding,p=P.Children.only(h);return p?I.cloneElement(p,{x:o,y:l,width:s,height:f,margin:y,compact:!0,data:d}):null}},{key:"renderTravellerLayer",value:function(r,o){var l,s,f=this,d=this.props,h=d.y,y=d.travellerWidth,p=d.height,b=d.traveller,S=d.ariaLabel,_=d.data,w=d.startIndex,x=d.endIndex,j=Math.max(r,this.props.x),T=Yg(Yg({},ge(this.props,!1)),{},{x:j,y:h,width:y,height:p}),E=S||"Min value: ".concat((l=_[w])===null||l===void 0?void 0:l.name,", Max value: ").concat((s=_[x])===null||s===void 0?void 0:s.name);return I.createElement(Le,{tabIndex:0,role:"slider","aria-label":E,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[o],onTouchStart:this.travellerDragStartHandlers[o],onKeyDown:function(O){["ArrowLeft","ArrowRight"].includes(O.key)&&(O.preventDefault(),O.stopPropagation(),f.handleTravellerMoveKeyboard(O.key==="ArrowRight"?1:-1,o))},onFocus:function(){f.setState({isTravellerFocused:!0})},onBlur:function(){f.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(b,T))}},{key:"renderSlide",value:function(r,o){var l=this.props,s=l.y,f=l.height,d=l.stroke,h=l.travellerWidth,y=Math.min(r,o)+h,p=Math.max(Math.abs(o-r)-h,0);return I.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:d,fillOpacity:.2,x:y,y:s,width:p,height:f})}},{key:"renderText",value:function(){var r=this.props,o=r.startIndex,l=r.endIndex,s=r.y,f=r.height,d=r.travellerWidth,h=r.stroke,y=this.state,p=y.startX,b=y.endX,S=5,_={pointerEvents:"none",fill:h};return I.createElement(Le,{className:"recharts-brush-texts"},I.createElement(yi,Lf({textAnchor:"end",verticalAnchor:"middle",x:Math.min(p,b)-S,y:s+f/2},_),this.getTextOfTick(o)),I.createElement(yi,Lf({textAnchor:"start",verticalAnchor:"middle",x:Math.max(p,b)+d+S,y:s+f/2},_),this.getTextOfTick(l)))}},{key:"render",value:function(){var r=this.props,o=r.data,l=r.className,s=r.children,f=r.x,d=r.y,h=r.width,y=r.height,p=r.alwaysShowText,b=this.state,S=b.startX,_=b.endX,w=b.isTextActive,x=b.isSlideMoving,j=b.isTravellerMoving,T=b.isTravellerFocused;if(!o||!o.length||!de(f)||!de(d)||!de(h)||!de(y)||h<=0||y<=0)return null;var E=Me("recharts-brush",l),N=I.Children.count(s)===1,O=dY("userSelect","none");return I.createElement(Le,{className:E,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),N&&this.renderPanorama(),this.renderSlide(S,_),this.renderTravellerLayer(S,"startX"),this.renderTravellerLayer(_,"endX"),(w||x||j||T||p)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var o=r.x,l=r.y,s=r.width,f=r.height,d=r.stroke,h=Math.floor(l+f/2)-1;return I.createElement(I.Fragment,null,I.createElement("rect",{x:o,y:l,width:s,height:f,fill:d,stroke:"none"}),I.createElement("line",{x1:o+1,y1:h,x2:o+s-1,y2:h,fill:"none",stroke:"#fff"}),I.createElement("line",{x1:o+1,y1:h+2,x2:o+s-1,y2:h+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,o){var l;return I.isValidElement(r)?l=I.cloneElement(r,o):Oe(r)?l=r(o):l=t.renderDefaultTraveller(o),l}},{key:"getDerivedStateFromProps",value:function(r,o){var l=r.data,s=r.width,f=r.x,d=r.travellerWidth,h=r.updateId,y=r.startIndex,p=r.endIndex;if(l!==o.prevData||h!==o.prevUpdateId)return Yg({prevData:l,prevTravellerWidth:d,prevUpdateId:h,prevX:f,prevWidth:s},l&&l.length?xY({data:l,width:s,x:f,travellerWidth:d,startIndex:y,endIndex:p}):{scale:null,scaleValues:null});if(o.scale&&(s!==o.prevWidth||f!==o.prevX||d!==o.prevTravellerWidth)){o.scale.range([f,f+s-d]);var b=o.scale.domain().map(function(S){return o.scale(S)});return{prevData:l,prevTravellerWidth:d,prevUpdateId:h,prevX:f,prevWidth:s,startX:o.scale(r.startIndex),endX:o.scale(r.endIndex),scaleValues:b}}return null}},{key:"getIndexInRange",value:function(r,o){for(var l=r.length,s=0,f=l-1;f-s>1;){var d=Math.floor((s+f)/2);r[d]>o?f=d:s=d}return o>=r[f]?f:s}}])})(P.PureComponent);mn(Bo,"displayName","Brush");mn(Bo,"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 Kg,mN;function SY(){if(mN)return Kg;mN=1;var e=cx();function t(n,r){var o;return e(n,function(l,s,f){return o=r(l,s,f),!o}),!!o}return Kg=t,Kg}var Vg,yN;function wY(){if(yN)return Vg;yN=1;var e=oM(),t=dr(),n=SY(),r=an(),o=cd();function l(s,f,d){var h=r(s)?e:n;return d&&o(s,f,d)&&(f=void 0),h(s,t(f,3))}return Vg=l,Vg}var _Y=wY();const OY=Ze(_Y);var ur=function(t,n){var r=t.alwaysShow,o=t.ifOverflow;return r&&(o="extendDomain"),o===n},Xg,vN;function AY(){if(vN)return Xg;vN=1;var e=OM();function t(n,r,o){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:o,writable:!0}):n[r]=o}return Xg=t,Xg}var Fg,gN;function jY(){if(gN)return Fg;gN=1;var e=AY(),t=wM(),n=dr();function r(o,l){var s={};return l=n(l,3),t(o,function(f,d,h){e(s,d,l(f,d,h))}),s}return Fg=r,Fg}var TY=jY();const EY=Ze(TY);var Wg,bN;function NY(){if(bN)return Wg;bN=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r<o;)if(!n(t[r],r,t))return!1;return!0}return Wg=e,Wg}var Zg,xN;function CY(){if(xN)return Zg;xN=1;var e=cx();function t(n,r){var o=!0;return e(n,function(l,s,f){return o=!!r(l,s,f),o}),o}return Zg=t,Zg}var Qg,SN;function MY(){if(SN)return Qg;SN=1;var e=NY(),t=CY(),n=dr(),r=an(),o=cd();function l(s,f,d){var h=r(s)?e:t;return d&&o(s,f,d)&&(f=void 0),h(s,n(f,3))}return Qg=l,Qg}var RY=MY();const PY=Ze(RY);var DY=["x","y"];function Ju(e){"@babel/helpers - typeof";return Ju=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},Ju(e)}function mb(){return mb=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},mb.apply(this,arguments)}function wN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function du(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wN(Object(n),!0).forEach(function(r){kY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kY(e,t,n){return t=$Y(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Y(e){var t=LY(e,"string");return Ju(t)=="symbol"?t:t+""}function LY(e,t){if(Ju(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ju(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qY(e,t){if(e==null)return{};var n=BY(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function BY(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 zY(e,t){var n=e.x,r=e.y,o=qY(e,DY),l="".concat(n),s=parseInt(l,10),f="".concat(r),d=parseInt(f,10),h="".concat(t.height||o.height),y=parseInt(h,10),p="".concat(t.width||o.width),b=parseInt(p,10);return du(du(du(du(du({},t),o),s?{x:s}:{}),d?{y:d}:{}),{},{height:y,width:b,name:t.name,radius:t.radius})}function _N(e){return I.createElement(nR,mb({shapeType:"rectangle",propTransformer:zY,activeClassName:"recharts-active-bar"},e))}var UY=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,o){if(typeof t=="number")return t;var l=de(r)||o6(r);return l?t(r,o):(l||gi(),n)}},IY=["value","background"],sR;function zo(e){"@babel/helpers - typeof";return zo=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},zo(e)}function HY(e,t){if(e==null)return{};var n=GY(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function GY(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 Bf(){return Bf=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},Bf.apply(this,arguments)}function ON(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ON(Object(n),!0).forEach(function(r){Ea(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ON(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AN(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,fR(r.key),r)}}function KY(e,t,n){return t&&AN(e.prototype,t),n&&AN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function VY(e,t,n){return t=zf(t),XY(e,cR()?Reflect.construct(t,n||[],zf(e).constructor):t.apply(e,n))}function XY(e,t){if(t&&(zo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return FY(e)}function FY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cR=function(){return!!e})()}function zf(e){return zf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zf(e)}function WY(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&&yb(e,t)}function yb(e,t){return yb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},yb(e,t)}function Ea(e,t,n){return t=fR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fR(e){var t=ZY(e,"string");return zo(t)=="symbol"?t:t+""}function ZY(e,t){if(zo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ma=(function(e){function t(){var n;YY(this,t);for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];return n=VY(this,t,[].concat(o)),Ea(n,"state",{isAnimationFinished:!1}),Ea(n,"id",rl("recharts-bar-")),Ea(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),s&&s()}),Ea(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),s&&s()}),n}return WY(t,e),KY(t,[{key:"renderRectanglesStatically",value:function(r){var o=this,l=this.props,s=l.shape,f=l.dataKey,d=l.activeIndex,h=l.activeBar,y=ge(this.props,!1);return r&&r.map(function(p,b){var S=b===d,_=S?h:s,w=St(St(St({},y),p),{},{isActive:S,option:_,index:b,dataKey:f,onAnimationStart:o.handleAnimationStart,onAnimationEnd:o.handleAnimationEnd});return I.createElement(Le,Bf({className:"recharts-bar-rectangle"},mi(o.props,p,b),{key:"rectangle-".concat(p==null?void 0:p.x,"-").concat(p==null?void 0:p.y,"-").concat(p==null?void 0:p.value,"-").concat(b)}),I.createElement(_N,w))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,o=this.props,l=o.data,s=o.layout,f=o.isAnimationActive,d=o.animationBegin,h=o.animationDuration,y=o.animationEasing,p=o.animationId,b=this.state.prevData;return I.createElement(cr,{begin:d,duration:h,isActive:f,easing:y,from:{t:0},to:{t:1},key:"bar-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(S){var _=S.t,w=l.map(function(x,j){var T=b&&b[j];if(T){var E=tn(T.x,x.x),N=tn(T.y,x.y),O=tn(T.width,x.width),C=tn(T.height,x.height);return St(St({},x),{},{x:E(_),y:N(_),width:O(_),height:C(_)})}if(s==="horizontal"){var M=tn(0,x.height),D=M(_);return St(St({},x),{},{y:x.y+x.height-D,height:D})}var $=tn(0,x.width),z=$(_);return St(St({},x),{},{width:z})});return I.createElement(Le,null,r.renderRectanglesStatically(w))})}},{key:"renderRectangles",value:function(){var r=this.props,o=r.data,l=r.isAnimationActive,s=this.state.prevData;return l&&o&&o.length&&(!s||!Ro(s,o))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(o)}},{key:"renderBackground",value:function(){var r=this,o=this.props,l=o.data,s=o.dataKey,f=o.activeIndex,d=ge(this.props.background,!1);return l.map(function(h,y){h.value;var p=h.background,b=HY(h,IY);if(!p)return null;var S=St(St(St(St(St({},b),{},{fill:"#eee"},p),d),mi(r.props,h,y)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:s,index:y,className:"recharts-bar-background-rectangle"});return I.createElement(_N,Bf({key:"background-bar-".concat(y),option:r.props.background,isActive:y===f},S))})}},{key:"renderErrorBar",value:function(r,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var l=this.props,s=l.data,f=l.xAxis,d=l.yAxis,h=l.layout,y=l.children,p=Ln(y,_d);if(!p)return null;var b=h==="vertical"?s[0].height/2:s[0].width/2,S=function(x,j){var T=Array.isArray(x.value)?x.value[1]:x.value;return{x:x.x,y:x.y,value:T,errorVal:jt(x,j)}},_={clipPath:r?"url(#clipPath-".concat(o,")"):null};return I.createElement(Le,_,p.map(function(w){return I.cloneElement(w,{key:"error-bar-".concat(o,"-").concat(w.props.dataKey),data:s,xAxis:f,yAxis:d,layout:h,offset:b,dataPointFormatter:S})}))}},{key:"render",value:function(){var r=this.props,o=r.hide,l=r.data,s=r.className,f=r.xAxis,d=r.yAxis,h=r.left,y=r.top,p=r.width,b=r.height,S=r.isAnimationActive,_=r.background,w=r.id;if(o||!l||!l.length)return null;var x=this.state.isAnimationFinished,j=Me("recharts-bar",s),T=f&&f.allowDataOverflow,E=d&&d.allowDataOverflow,N=T||E,O=Te(w)?this.id:w;return I.createElement(Le,{className:j},T||E?I.createElement("defs",null,I.createElement("clipPath",{id:"clipPath-".concat(O)},I.createElement("rect",{x:T?h:h-p/2,y:E?y:y-b/2,width:T?p:p*2,height:E?b:b*2}))):null,I.createElement(Le,{className:"recharts-bar-rectangles",clipPath:N?"url(#clipPath-".concat(O,")"):null},_?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(N,O),(!S||x)&&zr.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:o.curData}:r.data!==o.curData?{curData:r.data}:null}}])})(P.PureComponent);sR=Ma;Ea(Ma,"displayName","Bar");Ea(Ma,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!xi.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ea(Ma,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,l=e.xAxis,s=e.yAxis,f=e.xAxisTicks,d=e.yAxisTicks,h=e.stackedData,y=e.dataStartIndex,p=e.displayedData,b=e.offset,S=SU(r,n);if(!S)return null;var _=t.layout,w=n.type.defaultProps,x=w!==void 0?St(St({},w),n.props):n.props,j=x.dataKey,T=x.children,E=x.minPointSize,N=_==="horizontal"?s:l,O=h?N.scale.domain():null,C=EU({numericAxis:N}),M=Ln(T,dd),D=p.map(function($,z){var L,B,H,Y,W,k;h?L=wU(h[y+z],O):(L=jt($,j),Array.isArray(L)||(L=[C,L]));var X=UY(E,sR.defaultProps.minPointSize)(L[1],z);if(_==="horizontal"){var F,oe=[s.scale(L[0]),s.scale(L[1])],se=oe[0],q=oe[1];B=JT({axis:l,ticks:f,bandSize:o,offset:S.offset,entry:$,index:z}),H=(F=q??se)!==null&&F!==void 0?F:void 0,Y=S.size;var K=se-q;if(W=Number.isNaN(K)?0:K,k={x:B,y:s.y,width:Y,height:s.height},Math.abs(X)>0&&Math.abs(W)<Math.abs(X)){var re=Yt(W||X)*(Math.abs(X)-Math.abs(W));H-=re,W+=re}}else{var fe=[l.scale(L[0]),l.scale(L[1])],pe=fe[0],le=fe[1];if(B=pe,H=JT({axis:s,ticks:d,bandSize:o,offset:S.offset,entry:$,index:z}),Y=le-pe,W=S.size,k={x:l.x,y:H,width:l.width,height:W},Math.abs(X)>0&&Math.abs(Y)<Math.abs(X)){var Se=Yt(Y||X)*(Math.abs(X)-Math.abs(Y));Y+=Se}}return St(St(St({},$),{},{x:B,y:H,width:Y,height:W,value:h?L:L[1],payload:$,background:k},M&&M[z]&&M[z].props),{},{tooltipPayload:[q3(n,$)],tooltipPosition:{x:B+Y/2,y:H+W/2}})});return St({data:D,layout:_},b)});function es(e){"@babel/helpers - typeof";return es=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},es(e)}function QY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jN(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,dR(r.key),r)}}function JY(e,t,n){return t&&jN(e.prototype,t),n&&jN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function TN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Xn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TN(Object(n),!0).forEach(function(r){Md(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Md(e,t,n){return t=dR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dR(e){var t=eK(e,"string");return es(t)=="symbol"?t:t+""}function eK(e,t){if(es(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(es(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hR=function(t,n,r,o,l){var s=t.width,f=t.height,d=t.layout,h=t.children,y=Object.keys(n),p={left:r.left,leftMirror:r.left,right:s-r.right,rightMirror:s-r.right,top:r.top,topMirror:r.top,bottom:f-r.bottom,bottomMirror:f-r.bottom},b=!!vn(h,Ma);return y.reduce(function(S,_){var w=n[_],x=w.orientation,j=w.domain,T=w.padding,E=T===void 0?{}:T,N=w.mirror,O=w.reversed,C="".concat(x).concat(N?"Mirror":""),M,D,$,z,L;if(w.type==="number"&&(w.padding==="gap"||w.padding==="no-gap")){var B=j[1]-j[0],H=1/0,Y=w.categoricalDomain.sort(s6);if(Y.forEach(function(fe,pe){pe>0&&(H=Math.min((fe||0)-(Y[pe-1]||0),H))}),Number.isFinite(H)){var W=H/B,k=w.layout==="vertical"?r.height:r.width;if(w.padding==="gap"&&(M=W*k/2),w.padding==="no-gap"){var X=Kt(t.barCategoryGap,W*k),F=W*k/2;M=F-X-(F-X)/k*X}}}o==="xAxis"?D=[r.left+(E.left||0)+(M||0),r.left+r.width-(E.right||0)-(M||0)]:o==="yAxis"?D=d==="horizontal"?[r.top+r.height-(E.bottom||0),r.top+(E.top||0)]:[r.top+(E.top||0)+(M||0),r.top+r.height-(E.bottom||0)-(M||0)]:D=w.range,O&&(D=[D[1],D[0]]);var oe=D3(w,l,b),se=oe.scale,q=oe.realScaleType;se.domain(j).range(D),k3(se);var K=$3(se,Xn(Xn({},w),{},{realScaleType:q}));o==="xAxis"?(L=x==="top"&&!N||x==="bottom"&&N,$=r.left,z=p[C]-L*w.height):o==="yAxis"&&(L=x==="left"&&!N||x==="right"&&N,$=p[C]-L*w.width,z=r.top);var re=Xn(Xn(Xn({},w),K),{},{realScaleType:q,x:$,y:z,scale:se,width:o==="xAxis"?r.width:w.width,height:o==="yAxis"?r.height:w.height});return re.bandSize=_f(re,K),!w.hide&&o==="xAxis"?p[C]+=(L?-1:1)*re.height:w.hide||(p[C]+=(L?-1:1)*re.width),Xn(Xn({},S),{},Md({},_,re))},{})},pR=function(t,n){var r=t.x,o=t.y,l=n.x,s=n.y;return{x:Math.min(r,l),y:Math.min(o,s),width:Math.abs(l-r),height:Math.abs(s-o)}},tK=function(t){var n=t.x1,r=t.y1,o=t.x2,l=t.y2;return pR({x:n,y:r},{x:o,y:l})},mR=(function(){function e(t){QY(this,e),this.scale=t}return JY(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]:{},o=r.bandAware,l=r.position;if(n!==void 0){if(l)switch(l){case"start":return this.scale(n);case"middle":{var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+s}case"end":{var f=this.bandwidth?this.bandwidth():0;return this.scale(n)+f}default:return this.scale(n)}if(o){var d=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+d}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),o=r[0],l=r[r.length-1];return o<=l?n>=o&&n<=l:n>=l&&n<=o}}],[{key:"create",value:function(n){return new e(n)}}])})();Md(mR,"EPS",1e-4);var Bx=function(t){var n=Object.keys(t).reduce(function(r,o){return Xn(Xn({},r),{},Md({},o,mR.create(t[o])))},{});return Xn(Xn({},n),{},{apply:function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=l.bandAware,f=l.position;return EY(o,function(d,h){return n[h].apply(d,{bandAware:s,position:f})})},isInRange:function(o){return PY(o,function(l,s){return n[s].isInRange(l)})}})};function nK(e){return(e%180+180)%180}var rK=function(t){var n=t.width,r=t.height,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=nK(o),s=l*Math.PI/180,f=Math.atan(r/n),d=s>f&&s<Math.PI-f?r/Math.sin(s):n/Math.cos(s);return Math.abs(d)},Jg,EN;function aK(){if(EN)return Jg;EN=1;var e=dr(),t=ls(),n=ud();function r(o){return function(l,s,f){var d=Object(l);if(!t(l)){var h=e(s,3);l=n(l),s=function(p){return h(d[p],p,d)}}var y=o(l,s,f);return y>-1?d[h?l[y]:y]:void 0}}return Jg=r,Jg}var e0,NN;function iK(){if(NN)return e0;NN=1;var e=iR();function t(n){var r=e(n),o=r%1;return r===r?o?r-o:r:0}return e0=t,e0}var t0,CN;function oK(){if(CN)return t0;CN=1;var e=vM(),t=dr(),n=iK(),r=Math.max;function o(l,s,f){var d=l==null?0:l.length;if(!d)return-1;var h=f==null?0:n(f);return h<0&&(h=r(d+h,0)),e(l,t(s,3),h)}return t0=o,t0}var n0,MN;function lK(){if(MN)return n0;MN=1;var e=aK(),t=oK(),n=e(t);return n0=n,n0}lK();var uK=PC();const sK=Ze(uK);var cK=sK(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("")}),yR=P.createContext(void 0),vR=P.createContext(void 0),gR=P.createContext(void 0),fK=P.createContext({}),bR=P.createContext(void 0),xR=P.createContext(0),SR=P.createContext(0),RN=function(t){var n=t.state,r=n.xAxisMap,o=n.yAxisMap,l=n.offset,s=t.clipPathId,f=t.children,d=t.width,h=t.height,y=cK(l);return I.createElement(yR.Provider,{value:r},I.createElement(vR.Provider,{value:o},I.createElement(fK.Provider,{value:l},I.createElement(gR.Provider,{value:y},I.createElement(bR.Provider,{value:s},I.createElement(xR.Provider,{value:h},I.createElement(SR.Provider,{value:d},f)))))))},dK=function(){return P.useContext(bR)},wR=function(t){var n=P.useContext(yR);n==null&&gi();var r=n[t];return r==null&&gi(),r},_R=function(t){var n=P.useContext(vR);n==null&&gi();var r=n[t];return r==null&&gi(),r},hK=function(){var t=P.useContext(gR);return t},OR=function(){return P.useContext(SR)},AR=function(){return P.useContext(xR)};function Uo(e){"@babel/helpers - typeof";return Uo=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},Uo(e)}function pK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mK(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,TR(r.key),r)}}function yK(e,t,n){return t&&mK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vK(e,t,n){return t=Uf(t),gK(e,jR()?Reflect.construct(t,n||[],Uf(e).constructor):t.apply(e,n))}function gK(e,t){if(t&&(Uo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bK(e)}function bK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jR=function(){return!!e})()}function Uf(e){return Uf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Uf(e)}function xK(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&&vb(e,t)}function vb(e,t){return vb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},vb(e,t)}function PN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function DN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PN(Object(n),!0).forEach(function(r){zx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zx(e,t,n){return t=TR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TR(e){var t=SK(e,"string");return Uo(t)=="symbol"?t:t+""}function SK(e,t){if(Uo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function wK(e,t){return jK(e)||AK(e,t)||OK(e,t)||_K()}function _K(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
128
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OK(e,t){if(e){if(typeof e=="string")return kN(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 kN(e,t)}}function kN(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 AK(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(y){h=!0,o=y}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function jK(e){if(Array.isArray(e))return e}function gb(){return gb=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},gb.apply(this,arguments)}var TK=function(t,n){var r;return I.isValidElement(t)?r=I.cloneElement(t,n):Oe(t)?r=t(n):r=I.createElement("line",gb({},n,{className:"recharts-reference-line-line"})),r},EK=function(t,n,r,o,l,s,f,d,h){var y=l.x,p=l.y,b=l.width,S=l.height;if(r){var _=h.y,w=t.y.apply(_,{position:s});if(ur(h,"discard")&&!t.y.isInRange(w))return null;var x=[{x:y+b,y:w},{x:y,y:w}];return d==="left"?x.reverse():x}if(n){var j=h.x,T=t.x.apply(j,{position:s});if(ur(h,"discard")&&!t.x.isInRange(T))return null;var E=[{x:T,y:p+S},{x:T,y:p}];return f==="top"?E.reverse():E}if(o){var N=h.segment,O=N.map(function(C){return t.apply(C,{position:s})});return ur(h,"discard")&&OY(O,function(C){return!t.isInRange(C)})?null:O}return null};function NK(e){var t=e.x,n=e.y,r=e.segment,o=e.xAxisId,l=e.yAxisId,s=e.shape,f=e.className,d=e.alwaysShow,h=dK(),y=wR(o),p=_R(l),b=hK();if(!h||!b)return null;qr(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var S=Bx({x:y.scale,y:p.scale}),_=Tt(t),w=Tt(n),x=r&&r.length===2,j=EK(S,_,w,x,b,e.position,y.orientation,p.orientation,e);if(!j)return null;var T=wK(j,2),E=T[0],N=E.x,O=E.y,C=T[1],M=C.x,D=C.y,$=ur(e,"hidden")?"url(#".concat(h,")"):void 0,z=DN(DN({clipPath:$},ge(e,!0)),{},{x1:N,y1:O,x2:M,y2:D});return I.createElement(Le,{className:Me("recharts-reference-line",f)},TK(s,z),Rt.renderCallByParent(e,tK({x1:N,y1:O,x2:M,y2:D})))}var Ux=(function(e){function t(){return pK(this,t),vK(this,t,arguments)}return xK(t,e),yK(t,[{key:"render",value:function(){return I.createElement(NK,this.props)}}])})(I.Component);zx(Ux,"displayName","ReferenceLine");zx(Ux,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function bb(){return bb=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},bb.apply(this,arguments)}function Io(e){"@babel/helpers - typeof";return Io=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},Io(e)}function $N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function LN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$N(Object(n),!0).forEach(function(r){Rd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$N(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MK(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,NR(r.key),r)}}function RK(e,t,n){return t&&MK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function PK(e,t,n){return t=If(t),DK(e,ER()?Reflect.construct(t,n||[],If(e).constructor):t.apply(e,n))}function DK(e,t){if(t&&(Io(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kK(e)}function kK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ER(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ER=function(){return!!e})()}function If(e){return If=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},If(e)}function $K(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&&xb(e,t)}function xb(e,t){return xb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},xb(e,t)}function Rd(e,t,n){return t=NR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NR(e){var t=LK(e,"string");return Io(t)=="symbol"?t:t+""}function LK(e,t){if(Io(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Io(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qK=function(t){var n=t.x,r=t.y,o=t.xAxis,l=t.yAxis,s=Bx({x:o.scale,y:l.scale}),f=s.apply({x:n,y:r},{bandAware:!0});return ur(t,"discard")&&!s.isInRange(f)?null:f},Pd=(function(e){function t(){return CK(this,t),PK(this,t,arguments)}return $K(t,e),RK(t,[{key:"render",value:function(){var r=this.props,o=r.x,l=r.y,s=r.r,f=r.alwaysShow,d=r.clipPathId,h=Tt(o),y=Tt(l);if(qr(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!h||!y)return null;var p=qK(this.props);if(!p)return null;var b=p.x,S=p.y,_=this.props,w=_.shape,x=_.className,j=ur(this.props,"hidden")?"url(#".concat(d,")"):void 0,T=LN(LN({clipPath:j},ge(this.props,!0)),{},{cx:b,cy:S});return I.createElement(Le,{className:Me("recharts-reference-dot",x)},t.renderDot(w,T),Rt.renderCallByParent(this.props,{x:b-s,y:S-s,width:2*s,height:2*s}))}}])})(I.Component);Rd(Pd,"displayName","ReferenceDot");Rd(Pd,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Rd(Pd,"renderDot",function(e,t){var n;return I.isValidElement(e)?n=I.cloneElement(e,t):Oe(e)?n=e(t):n=I.createElement(Od,bb({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function Sb(){return Sb=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},Sb.apply(this,arguments)}function Ho(e){"@babel/helpers - typeof";return Ho=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},Ho(e)}function qN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function BN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qN(Object(n),!0).forEach(function(r){Dd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function BK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zK(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,MR(r.key),r)}}function UK(e,t,n){return t&&zK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function IK(e,t,n){return t=Hf(t),HK(e,CR()?Reflect.construct(t,n||[],Hf(e).constructor):t.apply(e,n))}function HK(e,t){if(t&&(Ho(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GK(e)}function GK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CR=function(){return!!e})()}function Hf(e){return Hf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hf(e)}function YK(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&&wb(e,t)}function wb(e,t){return wb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},wb(e,t)}function Dd(e,t,n){return t=MR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MR(e){var t=KK(e,"string");return Ho(t)=="symbol"?t:t+""}function KK(e,t){if(Ho(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ho(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var VK=function(t,n,r,o,l){var s=l.x1,f=l.x2,d=l.y1,h=l.y2,y=l.xAxis,p=l.yAxis;if(!y||!p)return null;var b=Bx({x:y.scale,y:p.scale}),S={x:t?b.x.apply(s,{position:"start"}):b.x.rangeMin,y:r?b.y.apply(d,{position:"start"}):b.y.rangeMin},_={x:n?b.x.apply(f,{position:"end"}):b.x.rangeMax,y:o?b.y.apply(h,{position:"end"}):b.y.rangeMax};return ur(l,"discard")&&(!b.isInRange(S)||!b.isInRange(_))?null:pR(S,_)},kd=(function(e){function t(){return BK(this,t),IK(this,t,arguments)}return YK(t,e),UK(t,[{key:"render",value:function(){var r=this.props,o=r.x1,l=r.x2,s=r.y1,f=r.y2,d=r.className,h=r.alwaysShow,y=r.clipPathId;qr(h===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Tt(o),b=Tt(l),S=Tt(s),_=Tt(f),w=this.props.shape;if(!p&&!b&&!S&&!_&&!w)return null;var x=VK(p,b,S,_,this.props);if(!x&&!w)return null;var j=ur(this.props,"hidden")?"url(#".concat(y,")"):void 0;return I.createElement(Le,{className:Me("recharts-reference-area",d)},t.renderRect(w,BN(BN({clipPath:j},ge(this.props,!0)),x)),Rt.renderCallByParent(this.props,x))}}])})(I.Component);Dd(kd,"displayName","ReferenceArea");Dd(kd,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Dd(kd,"renderRect",function(e,t){var n;return I.isValidElement(e)?n=I.cloneElement(e,t):Oe(e)?n=e(t):n=I.createElement(qx,Sb({},t,{className:"recharts-reference-area-rect"})),n});function RR(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],o=0;o<e.length;o+=t)r.push(e[o]);return r}function XK(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return rK(r,n)}function FK(e,t,n){var r=n==="width",o=e.x,l=e.y,s=e.width,f=e.height;return t===1?{start:r?o:l,end:r?o+s:l+f}:{start:r?o+s:l+f,end:r?o:l}}function Gf(e,t,n,r,o){if(e*t<e*r||e*t>e*o)return!1;var l=n();return e*(t-e*l/2-r)>=0&&e*(t+e*l/2-o)<=0}function WK(e,t){return RR(e,t+1)}function ZK(e,t,n,r,o){for(var l=(r||[]).slice(),s=t.start,f=t.end,d=0,h=1,y=s,p=function(){var _=r==null?void 0:r[d];if(_===void 0)return{v:RR(r,h)};var w=d,x,j=function(){return x===void 0&&(x=n(_,w)),x},T=_.coordinate,E=d===0||Gf(e,T,j,y,f);E||(d=0,y=s,h+=1),E&&(y=T+e*(j()/2+o),d+=h)},b;h<=l.length;)if(b=p(),b)return b.v;return[]}function ts(e){"@babel/helpers - typeof";return ts=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},ts(e)}function zN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zN(Object(n),!0).forEach(function(r){QK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QK(e,t,n){return t=JK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JK(e){var t=eV(e,"string");return ts(t)=="symbol"?t:t+""}function eV(e,t){if(ts(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tV(e,t,n,r,o){for(var l=(r||[]).slice(),s=l.length,f=t.start,d=t.end,h=function(b){var S=l[b],_,w=function(){return _===void 0&&(_=n(S,b)),_};if(b===s-1){var x=e*(S.coordinate+e*w()/2-d);l[b]=S=Ht(Ht({},S),{},{tickCoord:x>0?S.coordinate-x*e:S.coordinate})}else l[b]=S=Ht(Ht({},S),{},{tickCoord:S.coordinate});var j=Gf(e,S.tickCoord,w,f,d);j&&(d=S.tickCoord-e*(w()/2+o),l[b]=Ht(Ht({},S),{},{isShow:!0}))},y=s-1;y>=0;y--)h(y);return l}function nV(e,t,n,r,o,l){var s=(r||[]).slice(),f=s.length,d=t.start,h=t.end;if(l){var y=r[f-1],p=n(y,f-1),b=e*(y.coordinate+e*p/2-h);s[f-1]=y=Ht(Ht({},y),{},{tickCoord:b>0?y.coordinate-b*e:y.coordinate});var S=Gf(e,y.tickCoord,function(){return p},d,h);S&&(h=y.tickCoord-e*(p/2+o),s[f-1]=Ht(Ht({},y),{},{isShow:!0}))}for(var _=l?f-1:f,w=function(T){var E=s[T],N,O=function(){return N===void 0&&(N=n(E,T)),N};if(T===0){var C=e*(E.coordinate-e*O()/2-d);s[T]=E=Ht(Ht({},E),{},{tickCoord:C<0?E.coordinate-C*e:E.coordinate})}else s[T]=E=Ht(Ht({},E),{},{tickCoord:E.coordinate});var M=Gf(e,E.tickCoord,O,d,h);M&&(d=E.tickCoord+e*(O()/2+o),s[T]=Ht(Ht({},E),{},{isShow:!0}))},x=0;x<_;x++)w(x);return s}function rV(e,t,n){var r=e.tick,o=e.ticks,l=e.viewBox,s=e.minTickGap,f=e.orientation,d=e.interval,h=e.tickFormatter,y=e.unit,p=e.angle;if(!o||!o.length||!r)return[];if(de(d)||xi.isSsr)return WK(o,typeof d=="number"&&de(d)?d:0);var b=[],S=f==="top"||f==="bottom"?"width":"height",_=y&&S==="width"?yu(y,{fontSize:t,letterSpacing:n}):{width:0,height:0},w=function(E,N){var O=Oe(h)?h(E.value,N):E.value;return S==="width"?XK(yu(O,{fontSize:t,letterSpacing:n}),_,p):yu(O,{fontSize:t,letterSpacing:n})[S]},x=o.length>=2?Yt(o[1].coordinate-o[0].coordinate):1,j=FK(l,x,S);return d==="equidistantPreserveStart"?ZK(x,j,w,o,s):(d==="preserveStart"||d==="preserveStartEnd"?b=nV(x,j,w,o,s,d==="preserveStartEnd"):b=tV(x,j,w,o,s),b.filter(function(T){return T.isShow}))}var aV=["viewBox"],iV=["viewBox"],oV=["ticks"];function Go(e){"@babel/helpers - typeof";return Go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Go(e)}function go(){return go=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},go.apply(this,arguments)}function UN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ot(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UN(Object(n),!0).forEach(function(r){Ix(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function r0(e,t){if(e==null)return{};var n=lV(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lV(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 uV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IN(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,DR(r.key),r)}}function sV(e,t,n){return t&&IN(e.prototype,t),n&&IN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function cV(e,t,n){return t=Yf(t),fV(e,PR()?Reflect.construct(t,n||[],Yf(e).constructor):t.apply(e,n))}function fV(e,t){if(t&&(Go(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dV(e)}function dV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PR=function(){return!!e})()}function Yf(e){return Yf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yf(e)}function hV(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&&_b(e,t)}function _b(e,t){return _b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},_b(e,t)}function Ix(e,t,n){return t=DR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DR(e){var t=pV(e,"string");return Go(t)=="symbol"?t:t+""}function pV(e,t){if(Go(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Go(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $d=(function(e){function t(n){var r;return uV(this,t),r=cV(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return hV(t,e),sV(t,[{key:"shouldComponentUpdate",value:function(r,o){var l=r.viewBox,s=r0(r,aV),f=this.props,d=f.viewBox,h=r0(f,iV);return!xo(l,d)||!xo(s,h)||!xo(o,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var o=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];o&&this.setState({fontSize:window.getComputedStyle(o).fontSize,letterSpacing:window.getComputedStyle(o).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var o=this.props,l=o.x,s=o.y,f=o.width,d=o.height,h=o.orientation,y=o.tickSize,p=o.mirror,b=o.tickMargin,S,_,w,x,j,T,E=p?-1:1,N=r.tickSize||y,O=de(r.tickCoord)?r.tickCoord:r.coordinate;switch(h){case"top":S=_=r.coordinate,x=s+ +!p*d,w=x-E*N,T=w-E*b,j=O;break;case"left":w=x=r.coordinate,_=l+ +!p*f,S=_-E*N,j=S-E*b,T=O;break;case"right":w=x=r.coordinate,_=l+ +p*f,S=_+E*N,j=S+E*b,T=O;break;default:S=_=r.coordinate,x=s+ +p*d,w=x+E*N,T=w+E*b,j=O;break}return{line:{x1:S,y1:w,x2:_,y2:x},tick:{x:j,y:T}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,o=r.orientation,l=r.mirror,s;switch(o){case"left":s=l?"start":"end";break;case"right":s=l?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,o=r.orientation,l=r.mirror,s="end";switch(o){case"left":case"right":s="middle";break;case"top":s=l?"start":"end";break;default:s=l?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.x,l=r.y,s=r.width,f=r.height,d=r.orientation,h=r.mirror,y=r.axisLine,p=Ot(Ot(Ot({},ge(this.props,!1)),ge(y,!1)),{},{fill:"none"});if(d==="top"||d==="bottom"){var b=+(d==="top"&&!h||d==="bottom"&&h);p=Ot(Ot({},p),{},{x1:o,y1:l+b*f,x2:o+s,y2:l+b*f})}else{var S=+(d==="left"&&!h||d==="right"&&h);p=Ot(Ot({},p),{},{x1:o+S*s,y1:l,x2:o+S*s,y2:l+f})}return I.createElement("line",go({},p,{className:Me("recharts-cartesian-axis-line",xn(y,"className"))}))}},{key:"renderTicks",value:function(r,o,l){var s=this,f=this.props,d=f.tickLine,h=f.stroke,y=f.tick,p=f.tickFormatter,b=f.unit,S=rV(Ot(Ot({},this.props),{},{ticks:r}),o,l),_=this.getTickTextAnchor(),w=this.getTickVerticalAnchor(),x=ge(this.props,!1),j=ge(y,!1),T=Ot(Ot({},x),{},{fill:"none"},ge(d,!1)),E=S.map(function(N,O){var C=s.getTickLineCoord(N),M=C.line,D=C.tick,$=Ot(Ot(Ot(Ot({textAnchor:_,verticalAnchor:w},x),{},{stroke:"none",fill:h},j),D),{},{index:O,payload:N,visibleTicksCount:S.length,tickFormatter:p});return I.createElement(Le,go({className:"recharts-cartesian-axis-tick",key:"tick-".concat(N.value,"-").concat(N.coordinate,"-").concat(N.tickCoord)},mi(s.props,N,O)),d&&I.createElement("line",go({},T,M,{className:Me("recharts-cartesian-axis-tick-line",xn(d,"className"))})),y&&t.renderTickItem(y,$,"".concat(Oe(p)?p(N.value,O):N.value).concat(b||"")))});return I.createElement("g",{className:"recharts-cartesian-axis-ticks"},E)}},{key:"render",value:function(){var r=this,o=this.props,l=o.axisLine,s=o.width,f=o.height,d=o.ticksGenerator,h=o.className,y=o.hide;if(y)return null;var p=this.props,b=p.ticks,S=r0(p,oV),_=b;return Oe(d)&&(_=b&&b.length>0?d(this.props):d(S)),s<=0||f<=0||!_||!_.length?null:I.createElement(Le,{className:Me("recharts-cartesian-axis",h),ref:function(x){r.layerReference=x}},l&&this.renderAxisLine(),this.renderTicks(_,this.state.fontSize,this.state.letterSpacing),Rt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,o,l){var s,f=Me(o.className,"recharts-cartesian-axis-tick-value");return I.isValidElement(r)?s=I.cloneElement(r,Ot(Ot({},o),{},{className:f})):Oe(r)?s=r(Ot(Ot({},o),{},{className:f})):s=I.createElement(yi,go({},o,{className:"recharts-cartesian-axis-tick-value"}),l),s}}])})(P.Component);Ix($d,"displayName","CartesianAxis");Ix($d,"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 mV=["layout","type","stroke","connectNulls","isRange","ref"],yV=["key"],kR;function Yo(e){"@babel/helpers - typeof";return Yo=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},Yo(e)}function $R(e,t){if(e==null)return{};var n=vV(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vV(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 ci(){return ci=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},ci.apply(this,arguments)}function HN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Aa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HN(Object(n),!0).forEach(function(r){or(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GN(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,qR(r.key),r)}}function bV(e,t,n){return t&&GN(e.prototype,t),n&&GN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xV(e,t,n){return t=Kf(t),SV(e,LR()?Reflect.construct(t,n||[],Kf(e).constructor):t.apply(e,n))}function SV(e,t){if(t&&(Yo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wV(e)}function wV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LR=function(){return!!e})()}function Kf(e){return Kf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kf(e)}function _V(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&&Ob(e,t)}function Ob(e,t){return Ob=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Ob(e,t)}function or(e,t,n){return t=qR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qR(e){var t=OV(e,"string");return Yo(t)=="symbol"?t:t+""}function OV(e,t){if(Yo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Qr=(function(e){function t(){var n;gV(this,t);for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];return n=xV(this,t,[].concat(o)),or(n,"state",{isAnimationFinished:!0}),or(n,"id",rl("recharts-area-")),or(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Oe(s)&&s()}),or(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Oe(s)&&s()}),n}return _V(t,e),bV(t,[{key:"renderDots",value:function(r,o,l){var s=this.props.isAnimationActive,f=this.state.isAnimationFinished;if(s&&!f)return null;var d=this.props,h=d.dot,y=d.points,p=d.dataKey,b=ge(this.props,!1),S=ge(h,!0),_=y.map(function(x,j){var T=Aa(Aa(Aa({key:"dot-".concat(j),r:3},b),S),{},{index:j,cx:x.x,cy:x.y,dataKey:p,value:x.value,payload:x.payload,points:y});return t.renderDotItem(h,T)}),w={clipPath:r?"url(#clipPath-".concat(o?"":"dots-").concat(l,")"):null};return I.createElement(Le,ci({className:"recharts-area-dots"},w),_)}},{key:"renderHorizontalRect",value:function(r){var o=this.props,l=o.baseLine,s=o.points,f=o.strokeWidth,d=s[0].x,h=s[s.length-1].x,y=r*Math.abs(d-h),p=Ta(s.map(function(b){return b.y||0}));return de(l)&&typeof l=="number"?p=Math.max(l,p):l&&Array.isArray(l)&&l.length&&(p=Math.max(Ta(l.map(function(b){return b.y||0})),p)),de(p)?I.createElement("rect",{x:d<h?d:d-y,y:0,width:y,height:Math.floor(p+(f?parseInt("".concat(f),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var o=this.props,l=o.baseLine,s=o.points,f=o.strokeWidth,d=s[0].y,h=s[s.length-1].y,y=r*Math.abs(d-h),p=Ta(s.map(function(b){return b.x||0}));return de(l)&&typeof l=="number"?p=Math.max(l,p):l&&Array.isArray(l)&&l.length&&(p=Math.max(Ta(l.map(function(b){return b.x||0})),p)),de(p)?I.createElement("rect",{x:0,y:d<h?d:d-y,width:p+(f?parseInt("".concat(f),10):1),height:Math.floor(y)}):null}},{key:"renderClipRect",value:function(r){var o=this.props.layout;return o==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,o,l,s){var f=this.props,d=f.layout,h=f.type,y=f.stroke,p=f.connectNulls,b=f.isRange;f.ref;var S=$R(f,mV);return I.createElement(Le,{clipPath:l?"url(#clipPath-".concat(s,")"):null},I.createElement(_o,ci({},ge(S,!0),{points:r,connectNulls:p,type:h,baseLine:o,layout:d,stroke:"none",className:"recharts-area-area"})),y!=="none"&&I.createElement(_o,ci({},ge(this.props,!1),{className:"recharts-area-curve",layout:d,type:h,connectNulls:p,fill:"none",points:r})),y!=="none"&&b&&I.createElement(_o,ci({},ge(this.props,!1),{className:"recharts-area-curve",layout:d,type:h,connectNulls:p,fill:"none",points:o})))}},{key:"renderAreaWithAnimation",value:function(r,o){var l=this,s=this.props,f=s.points,d=s.baseLine,h=s.isAnimationActive,y=s.animationBegin,p=s.animationDuration,b=s.animationEasing,S=s.animationId,_=this.state,w=_.prevPoints,x=_.prevBaseLine;return I.createElement(cr,{begin:y,duration:p,isActive:h,easing:b,from:{t:0},to:{t:1},key:"area-".concat(S),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(j){var T=j.t;if(w){var E=w.length/f.length,N=f.map(function(D,$){var z=Math.floor($*E);if(w[z]){var L=w[z],B=tn(L.x,D.x),H=tn(L.y,D.y);return Aa(Aa({},D),{},{x:B(T),y:H(T)})}return D}),O;if(de(d)&&typeof d=="number"){var C=tn(x,d);O=C(T)}else if(Te(d)||nl(d)){var M=tn(x,0);O=M(T)}else O=d.map(function(D,$){var z=Math.floor($*E);if(x[z]){var L=x[z],B=tn(L.x,D.x),H=tn(L.y,D.y);return Aa(Aa({},D),{},{x:B(T),y:H(T)})}return D});return l.renderAreaStatically(N,O,r,o)}return I.createElement(Le,null,I.createElement("defs",null,I.createElement("clipPath",{id:"animationClipPath-".concat(o)},l.renderClipRect(T))),I.createElement(Le,{clipPath:"url(#animationClipPath-".concat(o,")")},l.renderAreaStatically(f,d,r,o)))})}},{key:"renderArea",value:function(r,o){var l=this.props,s=l.points,f=l.baseLine,d=l.isAnimationActive,h=this.state,y=h.prevPoints,p=h.prevBaseLine,b=h.totalLength;return d&&s&&s.length&&(!y&&b>0||!Ro(y,s)||!Ro(p,f))?this.renderAreaWithAnimation(r,o):this.renderAreaStatically(s,f,r,o)}},{key:"render",value:function(){var r,o=this.props,l=o.hide,s=o.dot,f=o.points,d=o.className,h=o.top,y=o.left,p=o.xAxis,b=o.yAxis,S=o.width,_=o.height,w=o.isAnimationActive,x=o.id;if(l||!f||!f.length)return null;var j=this.state.isAnimationFinished,T=f.length===1,E=Me("recharts-area",d),N=p&&p.allowDataOverflow,O=b&&b.allowDataOverflow,C=N||O,M=Te(x)?this.id:x,D=(r=ge(s,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},$=D.r,z=$===void 0?3:$,L=D.strokeWidth,B=L===void 0?2:L,H=g6(s)?s:{},Y=H.clipDot,W=Y===void 0?!0:Y,k=z*2+B;return I.createElement(Le,{className:E},N||O?I.createElement("defs",null,I.createElement("clipPath",{id:"clipPath-".concat(M)},I.createElement("rect",{x:N?y:y-S/2,y:O?h:h-_/2,width:N?S:S*2,height:O?_:_*2})),!W&&I.createElement("clipPath",{id:"clipPath-dots-".concat(M)},I.createElement("rect",{x:y-k/2,y:h-k/2,width:S+k,height:_+k}))):null,T?null:this.renderArea(C,M),(s||T)&&this.renderDots(C,W,M),(!w||j)&&zr.renderCallByParent(this.props,f))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:o.curPoints,prevBaseLine:o.curBaseLine}:r.points!==o.curPoints||r.baseLine!==o.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])})(P.PureComponent);kR=Qr;or(Qr,"displayName","Area");or(Qr,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!xi.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});or(Qr,"getBaseValue",function(e,t,n,r){var o=e.layout,l=e.baseValue,s=t.props.baseValue,f=s??l;if(de(f)&&typeof f=="number")return f;var d=o==="horizontal"?r:n,h=d.scale.domain();if(d.type==="number"){var y=Math.max(h[0],h[1]),p=Math.min(h[0],h[1]);return f==="dataMin"?p:f==="dataMax"||y<0?y:Math.max(Math.min(h[0],h[1]),0)}return f==="dataMin"?h[0]:f==="dataMax"?h[1]:h[0]});or(Qr,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,o=e.yAxis,l=e.xAxisTicks,s=e.yAxisTicks,f=e.bandSize,d=e.dataKey,h=e.stackedData,y=e.dataStartIndex,p=e.displayedData,b=e.offset,S=t.layout,_=h&&h.length,w=kR.getBaseValue(t,n,r,o),x=S==="horizontal",j=!1,T=p.map(function(N,O){var C;_?C=h[y+O]:(C=jt(N,d),Array.isArray(C)?j=!0:C=[w,C]);var M=C[1]==null||_&&jt(N,d)==null;return x?{x:QT({axis:r,ticks:l,bandSize:f,entry:N,index:O}),y:M?null:o.scale(C[1]),value:C,payload:N}:{x:M?null:r.scale(C[1]),y:QT({axis:o,ticks:s,bandSize:f,entry:N,index:O}),value:C,payload:N}}),E;return _||j?E=T.map(function(N){var O=Array.isArray(N.value)?N.value[0]:null;return x?{x:N.x,y:O!=null&&N.y!=null?o.scale(O):null}:{x:O!=null?r.scale(O):null,y:N.y}}):E=x?o.scale(w):r.scale(w),Aa({points:T,baseLine:E,layout:S,isRange:j},b)});or(Qr,"renderDotItem",function(e,t){var n;if(I.isValidElement(e))n=I.cloneElement(e,t);else if(Oe(e))n=e(t);else{var r=Me("recharts-area-dot",typeof e!="boolean"?e.className:""),o=t.key,l=$R(t,yV);n=I.createElement(Od,ci({},l,{key:o,className:r}))}return n});function Ko(e){"@babel/helpers - typeof";return Ko=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},Ko(e)}function AV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jV(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,UR(r.key),r)}}function TV(e,t,n){return t&&jV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function EV(e,t,n){return t=Vf(t),NV(e,BR()?Reflect.construct(t,n||[],Vf(e).constructor):t.apply(e,n))}function NV(e,t){if(t&&(Ko(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CV(e)}function CV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BR=function(){return!!e})()}function Vf(e){return Vf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vf(e)}function MV(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&&Ab(e,t)}function Ab(e,t){return Ab=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Ab(e,t)}function zR(e,t,n){return t=UR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UR(e){var t=RV(e,"string");return Ko(t)=="symbol"?t:t+""}function RV(e,t){if(Ko(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ko(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function jb(){return jb=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},jb.apply(this,arguments)}function PV(e){var t=e.xAxisId,n=OR(),r=AR(),o=wR(t);return o==null?null:P.createElement($d,jb({},o,{className:Me("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(s){return si(s,!0)}}))}var Oi=(function(e){function t(){return AV(this,t),EV(this,t,arguments)}return MV(t,e),TV(t,[{key:"render",value:function(){return P.createElement(PV,this.props)}}])})(P.Component);zR(Oi,"displayName","XAxis");zR(Oi,"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 Vo(e){"@babel/helpers - typeof";return Vo=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},Vo(e)}function DV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kV(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,GR(r.key),r)}}function $V(e,t,n){return t&&kV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function LV(e,t,n){return t=Xf(t),qV(e,IR()?Reflect.construct(t,n||[],Xf(e).constructor):t.apply(e,n))}function qV(e,t){if(t&&(Vo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BV(e)}function BV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IR=function(){return!!e})()}function Xf(e){return Xf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xf(e)}function zV(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&&Tb(e,t)}function Tb(e,t){return Tb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Tb(e,t)}function HR(e,t,n){return t=GR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GR(e){var t=UV(e,"string");return Vo(t)=="symbol"?t:t+""}function UV(e,t){if(Vo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Eb(){return Eb=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},Eb.apply(this,arguments)}var IV=function(t){var n=t.yAxisId,r=OR(),o=AR(),l=_R(n);return l==null?null:P.createElement($d,Eb({},l,{className:Me("recharts-".concat(l.axisType," ").concat(l.axisType),l.className),viewBox:{x:0,y:0,width:r,height:o},ticksGenerator:function(f){return si(f,!0)}}))},Ai=(function(e){function t(){return DV(this,t),LV(this,t,arguments)}return zV(t,e),$V(t,[{key:"render",value:function(){return P.createElement(IV,this.props)}}])})(P.Component);HR(Ai,"displayName","YAxis");HR(Ai,"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 YN(e){return KV(e)||YV(e)||GV(e)||HV()}function HV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
129
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GV(e,t){if(e){if(typeof e=="string")return Nb(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 Nb(e,t)}}function YV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KV(e){if(Array.isArray(e))return Nb(e)}function Nb(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 Cb=function(t,n,r,o,l){var s=Ln(t,Ux),f=Ln(t,Pd),d=[].concat(YN(s),YN(f)),h=Ln(t,kd),y="".concat(o,"Id"),p=o[0],b=n;if(d.length&&(b=d.reduce(function(w,x){if(x.props[y]===r&&ur(x.props,"extendDomain")&&de(x.props[p])){var j=x.props[p];return[Math.min(w[0],j),Math.max(w[1],j)]}return w},b)),h.length){var S="".concat(p,"1"),_="".concat(p,"2");b=h.reduce(function(w,x){if(x.props[y]===r&&ur(x.props,"extendDomain")&&de(x.props[S])&&de(x.props[_])){var j=x.props[S],T=x.props[_];return[Math.min(w[0],j,T),Math.max(w[1],j,T)]}return w},b)}return l&&l.length&&(b=l.reduce(function(w,x){return de(x)?[Math.min(w[0],x),Math.max(w[1],x)]:w},b)),b},a0={exports:{}},KN;function VV(){return KN||(KN=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(d,h,y){this.fn=d,this.context=h,this.once=y||!1}function l(d,h,y,p,b){if(typeof y!="function")throw new TypeError("The listener must be a function");var S=new o(y,p||d,b),_=n?n+h:h;return d._events[_]?d._events[_].fn?d._events[_]=[d._events[_],S]:d._events[_].push(S):(d._events[_]=S,d._eventsCount++),d}function s(d,h){--d._eventsCount===0?d._events=new r:delete d._events[h]}function f(){this._events=new r,this._eventsCount=0}f.prototype.eventNames=function(){var h=[],y,p;if(this._eventsCount===0)return h;for(p in y=this._events)t.call(y,p)&&h.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(y)):h},f.prototype.listeners=function(h){var y=n?n+h:h,p=this._events[y];if(!p)return[];if(p.fn)return[p.fn];for(var b=0,S=p.length,_=new Array(S);b<S;b++)_[b]=p[b].fn;return _},f.prototype.listenerCount=function(h){var y=n?n+h:h,p=this._events[y];return p?p.fn?1:p.length:0},f.prototype.emit=function(h,y,p,b,S,_){var w=n?n+h:h;if(!this._events[w])return!1;var x=this._events[w],j=arguments.length,T,E;if(x.fn){switch(x.once&&this.removeListener(h,x.fn,void 0,!0),j){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,y),!0;case 3:return x.fn.call(x.context,y,p),!0;case 4:return x.fn.call(x.context,y,p,b),!0;case 5:return x.fn.call(x.context,y,p,b,S),!0;case 6:return x.fn.call(x.context,y,p,b,S,_),!0}for(E=1,T=new Array(j-1);E<j;E++)T[E-1]=arguments[E];x.fn.apply(x.context,T)}else{var N=x.length,O;for(E=0;E<N;E++)switch(x[E].once&&this.removeListener(h,x[E].fn,void 0,!0),j){case 1:x[E].fn.call(x[E].context);break;case 2:x[E].fn.call(x[E].context,y);break;case 3:x[E].fn.call(x[E].context,y,p);break;case 4:x[E].fn.call(x[E].context,y,p,b);break;default:if(!T)for(O=1,T=new Array(j-1);O<j;O++)T[O-1]=arguments[O];x[E].fn.apply(x[E].context,T)}}return!0},f.prototype.on=function(h,y,p){return l(this,h,y,p,!1)},f.prototype.once=function(h,y,p){return l(this,h,y,p,!0)},f.prototype.removeListener=function(h,y,p,b){var S=n?n+h:h;if(!this._events[S])return this;if(!y)return s(this,S),this;var _=this._events[S];if(_.fn)_.fn===y&&(!b||_.once)&&(!p||_.context===p)&&s(this,S);else{for(var w=0,x=[],j=_.length;w<j;w++)(_[w].fn!==y||b&&!_[w].once||p&&_[w].context!==p)&&x.push(_[w]);x.length?this._events[S]=x.length===1?x[0]:x:s(this,S)}return this},f.prototype.removeAllListeners=function(h){var y;return h?(y=n?n+h:h,this._events[y]&&s(this,y)):(this._events=new r,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=n,f.EventEmitter=f,e.exports=f})(a0)),a0.exports}var XV=VV();const FV=Ze(XV);var i0=new FV,o0="recharts.syncMouseEvents";function ns(e){"@babel/helpers - typeof";return ns=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},ns(e)}function WV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZV(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,YR(r.key),r)}}function QV(e,t,n){return t&&ZV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function l0(e,t,n){return t=YR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YR(e){var t=JV(e,"string");return ns(t)=="symbol"?t:t+""}function JV(e,t){if(ns(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var eX=(function(){function e(){WV(this,e),l0(this,"activeIndex",0),l0(this,"coordinateList",[]),l0(this,"layout","horizontal")}return QV(e,[{key:"setDetails",value:function(n){var r,o=n.coordinateList,l=o===void 0?null:o,s=n.container,f=s===void 0?null:s,d=n.layout,h=d===void 0?null:d,y=n.offset,p=y===void 0?null:y,b=n.mouseHandlerCallback,S=b===void 0?null:b;this.coordinateList=(r=l??this.coordinateList)!==null&&r!==void 0?r:[],this.container=f??this.container,this.layout=h??this.layout,this.offset=p??this.offset,this.mouseHandlerCallback=S??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var o=this.container.getBoundingClientRect(),l=o.x,s=o.y,f=o.height,d=this.coordinateList[this.activeIndex].coordinate,h=((n=window)===null||n===void 0?void 0:n.scrollX)||0,y=((r=window)===null||r===void 0?void 0:r.scrollY)||0,p=l+d+h,b=s+this.offset.top+f/2+y;this.mouseHandlerCallback({pageX:p,pageY:b})}}}])})();function tX(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],o=e==null?void 0:e[1];if(r&&o&&de(r)&&de(o))return!0}return!1}function nX(e,t,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-o:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-o,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function KR(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,l=e.endAngle,s=nt(t,n,r,o),f=nt(t,n,r,l);return{points:[s,f],cx:t,cy:n,radius:r,startAngle:o,endAngle:l}}function rX(e,t,n){var r,o,l,s;if(e==="horizontal")r=t.x,l=r,o=n.top,s=n.top+n.height;else if(e==="vertical")o=t.y,s=o,r=n.left,l=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var f=t.cx,d=t.cy,h=t.innerRadius,y=t.outerRadius,p=t.angle,b=nt(f,d,h,p),S=nt(f,d,y,p);r=b.x,o=b.y,l=S.x,s=S.y}else return KR(t);return[{x:r,y:o},{x:l,y:s}]}function rs(e){"@babel/helpers - typeof";return rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rs(e)}function VN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Gc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VN(Object(n),!0).forEach(function(r){aX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aX(e,t,n){return t=iX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iX(e){var t=oX(e,"string");return rs(t)=="symbol"?t:t+""}function oX(e,t){if(rs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lX(e){var t,n,r=e.element,o=e.tooltipEventType,l=e.isActive,s=e.activeCoordinate,f=e.activePayload,d=e.offset,h=e.activeTooltipIndex,y=e.tooltipAxisBandSize,p=e.layout,b=e.chartName,S=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!S||!l||!s||b!=="ScatterChart"&&o!=="axis")return null;var _,w=_o;if(b==="ScatterChart")_=s,w=XH;else if(b==="BarChart")_=nX(p,s,d,y),w=qx;else if(p==="radial"){var x=KR(s),j=x.cx,T=x.cy,E=x.radius,N=x.startAngle,O=x.endAngle;_={cx:j,cy:T,startAngle:N,endAngle:O,innerRadius:E,outerRadius:E},w=G3}else _={points:rX(p,s,d)},w=_o;var C=Gc(Gc(Gc(Gc({stroke:"#ccc",pointerEvents:"none"},d),_),ge(S,!1)),{},{payload:f,payloadIndex:h,className:Me("recharts-tooltip-cursor",S.className)});return P.isValidElement(S)?P.cloneElement(S,C):P.createElement(w,C)}var uX=["item"],sX=["children","className","width","height","style","compact","title","desc"];function Xo(e){"@babel/helpers - typeof";return Xo=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},Xo(e)}function bo(){return bo=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},bo.apply(this,arguments)}function XN(e,t){return dX(e)||fX(e,t)||XR(e,t)||cX()}function cX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
130
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(y){h=!0,o=y}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function dX(e){if(Array.isArray(e))return e}function FN(e,t){if(e==null)return{};var n=hX(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hX(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 pX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mX(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,FR(r.key),r)}}function yX(e,t,n){return t&&mX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vX(e,t,n){return t=Ff(t),gX(e,VR()?Reflect.construct(t,n||[],Ff(e).constructor):t.apply(e,n))}function gX(e,t){if(t&&(Xo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bX(e)}function bX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VR=function(){return!!e})()}function Ff(e){return Ff=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ff(e)}function xX(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&&Mb(e,t)}function Mb(e,t){return Mb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Mb(e,t)}function Fo(e){return _X(e)||wX(e)||XR(e)||SX()}function SX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
131
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XR(e,t){if(e){if(typeof e=="string")return Rb(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 Rb(e,t)}}function wX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _X(e){if(Array.isArray(e))return Rb(e)}function Rb(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 WN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WN(Object(n),!0).forEach(function(r){xe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xe(e,t,n){return t=FR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FR(e){var t=OX(e,"string");return Xo(t)=="symbol"?t:t+""}function OX(e,t){if(Xo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var AX={xAxis:["bottom","top"],yAxis:["left","right"]},jX={width:"100%",height:"100%"},WR={x:0,y:0};function Yc(e){return e}var TX=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},EX=function(t,n,r,o){var l=n.find(function(y){return y&&y.index===r});if(l){if(t==="horizontal")return{x:l.coordinate,y:o.y};if(t==="vertical")return{x:o.x,y:l.coordinate};if(t==="centric"){var s=l.coordinate,f=o.radius;return ne(ne(ne({},o),nt(o.cx,o.cy,f,s)),{},{angle:s,radius:f})}var d=l.coordinate,h=o.angle;return ne(ne(ne({},o),nt(o.cx,o.cy,d,h)),{},{angle:h,radius:d})}return WR},Ld=function(t,n){var r=n.graphicalItems,o=n.dataStartIndex,l=n.dataEndIndex,s=(r??[]).reduce(function(f,d){var h=d.props.data;return h&&h.length?[].concat(Fo(f),Fo(h)):f},[]);return s.length>0?s:t&&t.length&&de(o)&&de(l)?t.slice(o,l+1):[]};function ZR(e){return e==="number"?[0,"auto"]:void 0}var Pb=function(t,n,r,o){var l=t.graphicalItems,s=t.tooltipAxis,f=Ld(n,t);return r<0||!l||!l.length||r>=f.length?null:l.reduce(function(d,h){var y,p=(y=h.props.data)!==null&&y!==void 0?y:n;p&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(p=p.slice(t.dataStartIndex,t.dataEndIndex+1));var b;if(s.dataKey&&!s.allowDuplicatedCategory){var S=p===void 0?f:p;b=Wc(S,s.dataKey,o)}else b=p&&p[r]||f[r];return b?[].concat(Fo(d),[q3(h,b)]):d},[])},ZN=function(t,n,r,o){var l=o||{x:t.chartX,y:t.chartY},s=TX(l,r),f=t.orderedTooltipTicks,d=t.tooltipAxis,h=t.tooltipTicks,y=mU(s,f,h,d);if(y>=0&&h){var p=h[y]&&h[y].value,b=Pb(t,n,y,p),S=EX(r,f,y,l);return{activeTooltipIndex:y,activeLabel:p,activePayload:b,activeCoordinate:S}}return null},NX=function(t,n){var r=n.axes,o=n.graphicalItems,l=n.axisType,s=n.axisIdKey,f=n.stackGroups,d=n.dataStartIndex,h=n.dataEndIndex,y=t.layout,p=t.children,b=t.stackOffset,S=P3(y,l);return r.reduce(function(_,w){var x,j=w.type.defaultProps!==void 0?ne(ne({},w.type.defaultProps),w.props):w.props,T=j.type,E=j.dataKey,N=j.allowDataOverflow,O=j.allowDuplicatedCategory,C=j.scale,M=j.ticks,D=j.includeHidden,$=j[s];if(_[$])return _;var z=Ld(t.data,{graphicalItems:o.filter(function(K){var re,fe=s in K.props?K.props[s]:(re=K.type.defaultProps)===null||re===void 0?void 0:re[s];return fe===$}),dataStartIndex:d,dataEndIndex:h}),L=z.length,B,H,Y;tX(j.domain,N,T)&&(B=X0(j.domain,null,N),S&&(T==="number"||C!=="auto")&&(Y=gu(z,E,"category")));var W=ZR(T);if(!B||B.length===0){var k,X=(k=j.domain)!==null&&k!==void 0?k:W;if(E){if(B=gu(z,E,T),T==="category"&&S){var F=u6(B);O&&F?(H=B,B=$f(0,L)):O||(B=nE(X,B,w).reduce(function(K,re){return K.indexOf(re)>=0?K:[].concat(Fo(K),[re])},[]))}else if(T==="category")O?B=B.filter(function(K){return K!==""&&!Te(K)}):B=nE(X,B,w).reduce(function(K,re){return K.indexOf(re)>=0||re===""||Te(re)?K:[].concat(Fo(K),[re])},[]);else if(T==="number"){var oe=xU(z,o.filter(function(K){var re,fe,pe=s in K.props?K.props[s]:(re=K.type.defaultProps)===null||re===void 0?void 0:re[s],le="hide"in K.props?K.props.hide:(fe=K.type.defaultProps)===null||fe===void 0?void 0:fe.hide;return pe===$&&(D||!le)}),E,l,y);oe&&(B=oe)}S&&(T==="number"||C!=="auto")&&(Y=gu(z,E,"category"))}else S?B=$f(0,L):f&&f[$]&&f[$].hasStack&&T==="number"?B=b==="expand"?[0,1]:L3(f[$].stackGroups,d,h):B=R3(z,o.filter(function(K){var re=s in K.props?K.props[s]:K.type.defaultProps[s],fe="hide"in K.props?K.props.hide:K.type.defaultProps.hide;return re===$&&(D||!fe)}),T,y,!0);if(T==="number")B=Cb(p,B,$,l,M),X&&(B=X0(X,B,N));else if(T==="category"&&X){var se=X,q=B.every(function(K){return se.indexOf(K)>=0});q&&(B=se)}}return ne(ne({},_),{},xe({},$,ne(ne({},j),{},{axisType:l,domain:B,categoricalDomain:Y,duplicateDomain:H,originalDomain:(x=j.domain)!==null&&x!==void 0?x:W,isCategorical:S,layout:y})))},{})},CX=function(t,n){var r=n.graphicalItems,o=n.Axis,l=n.axisType,s=n.axisIdKey,f=n.stackGroups,d=n.dataStartIndex,h=n.dataEndIndex,y=t.layout,p=t.children,b=Ld(t.data,{graphicalItems:r,dataStartIndex:d,dataEndIndex:h}),S=b.length,_=P3(y,l),w=-1;return r.reduce(function(x,j){var T=j.type.defaultProps!==void 0?ne(ne({},j.type.defaultProps),j.props):j.props,E=T[s],N=ZR("number");if(!x[E]){w++;var O;return _?O=$f(0,S):f&&f[E]&&f[E].hasStack?(O=L3(f[E].stackGroups,d,h),O=Cb(p,O,E,l)):(O=X0(N,R3(b,r.filter(function(C){var M,D,$=s in C.props?C.props[s]:(M=C.type.defaultProps)===null||M===void 0?void 0:M[s],z="hide"in C.props?C.props.hide:(D=C.type.defaultProps)===null||D===void 0?void 0:D.hide;return $===E&&!z}),"number",y),o.defaultProps.allowDataOverflow),O=Cb(p,O,E,l)),ne(ne({},x),{},xe({},E,ne(ne({axisType:l},o.defaultProps),{},{hide:!0,orientation:xn(AX,"".concat(l,".").concat(w%2),null),domain:O,originalDomain:N,isCategorical:_,layout:y})))}return x},{})},MX=function(t,n){var r=n.axisType,o=r===void 0?"xAxis":r,l=n.AxisComp,s=n.graphicalItems,f=n.stackGroups,d=n.dataStartIndex,h=n.dataEndIndex,y=t.children,p="".concat(o,"Id"),b=Ln(y,l),S={};return b&&b.length?S=NX(t,{axes:b,graphicalItems:s,axisType:o,axisIdKey:p,stackGroups:f,dataStartIndex:d,dataEndIndex:h}):s&&s.length&&(S=CX(t,{Axis:l,graphicalItems:s,axisType:o,axisIdKey:p,stackGroups:f,dataStartIndex:d,dataEndIndex:h})),S},RX=function(t){var n=po(t),r=si(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:fx(r,function(o){return o.coordinate}),tooltipAxis:n,tooltipAxisBandSize:_f(n,r)}},QN=function(t){var n=t.children,r=t.defaultShowTooltip,o=vn(n,Bo),l=0,s=0;return t.data&&t.data.length!==0&&(s=t.data.length-1),o&&o.props&&(o.props.startIndex>=0&&(l=o.props.startIndex),o.props.endIndex>=0&&(s=o.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:l,dataEndIndex:s,activeTooltipIndex:-1,isTooltipActive:!!r}},PX=function(t){return!t||!t.length?!1:t.some(function(n){var r=Lr(n&&n.type);return r&&r.indexOf("Bar")>=0})},JN=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"}},DX=function(t,n){var r=t.props,o=t.graphicalItems,l=t.xAxisMap,s=l===void 0?{}:l,f=t.yAxisMap,d=f===void 0?{}:f,h=r.width,y=r.height,p=r.children,b=r.margin||{},S=vn(p,Bo),_=vn(p,fi),w=Object.keys(d).reduce(function(O,C){var M=d[C],D=M.orientation;return!M.mirror&&!M.hide?ne(ne({},O),{},xe({},D,O[D]+M.width)):O},{left:b.left||0,right:b.right||0}),x=Object.keys(s).reduce(function(O,C){var M=s[C],D=M.orientation;return!M.mirror&&!M.hide?ne(ne({},O),{},xe({},D,xn(O,"".concat(D))+M.height)):O},{top:b.top||0,bottom:b.bottom||0}),j=ne(ne({},x),w),T=j.bottom;S&&(j.bottom+=S.props.height||Bo.defaultProps.height),_&&n&&(j=gU(j,o,r,n));var E=h-j.left-j.right,N=y-j.top-j.bottom;return ne(ne({brushBottom:T},j),{},{width:Math.max(E,0),height:Math.max(N,0)})},kX=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},Hx=function(t){var n=t.chartName,r=t.GraphicalChild,o=t.defaultTooltipEventType,l=o===void 0?"axis":o,s=t.validateTooltipEventTypes,f=s===void 0?["axis"]:s,d=t.axisComponents,h=t.legendContent,y=t.formatAxisMap,p=t.defaultProps,b=function(j,T){var E=T.graphicalItems,N=T.stackGroups,O=T.offset,C=T.updateId,M=T.dataStartIndex,D=T.dataEndIndex,$=j.barSize,z=j.layout,L=j.barGap,B=j.barCategoryGap,H=j.maxBarSize,Y=JN(z),W=Y.numericAxisName,k=Y.cateAxisName,X=PX(E),F=[];return E.forEach(function(oe,se){var q=Ld(j.data,{graphicalItems:[oe],dataStartIndex:M,dataEndIndex:D}),K=oe.type.defaultProps!==void 0?ne(ne({},oe.type.defaultProps),oe.props):oe.props,re=K.dataKey,fe=K.maxBarSize,pe=K["".concat(W,"Id")],le=K["".concat(k,"Id")],Se={},qe=d.reduce(function(In,hr){var ul=T["".concat(hr.axisType,"Map")],Ut=K["".concat(hr.axisType,"Id")];ul&&ul[Ut]||hr.axisType==="zAxis"||gi();var ds=ul[Ut];return ne(ne({},In),{},xe(xe({},hr.axisType,ds),"".concat(hr.axisType,"Ticks"),si(ds)))},Se),ce=qe[k],we=qe["".concat(k,"Ticks")],Ae=N&&N[pe]&&N[pe].hasStack&&NU(oe,N[pe].stackGroups),ue=Lr(oe.type).indexOf("Bar")>=0,rt=_f(ce,we),Ne=[],ct=X&&yU({barSize:$,stackGroups:N,totalSize:kX(qe,k)});if(ue){var ft,zt,Un=Te(fe)?H:fe,Jn=(ft=(zt=_f(ce,we,!0))!==null&&zt!==void 0?zt:Un)!==null&&ft!==void 0?ft:0;Ne=vU({barGap:L,barCategoryGap:B,bandSize:Jn!==rt?Jn:rt,sizeList:ct[le],maxBarSize:Un}),Jn!==rt&&(Ne=Ne.map(function(In){return ne(ne({},In),{},{position:ne(ne({},In.position),{},{offset:In.position.offset-Jn/2})})}))}var Jr=oe&&oe.type&&oe.type.getComposedData;Jr&&F.push({props:ne(ne({},Jr(ne(ne({},qe),{},{displayedData:q,props:j,dataKey:re,item:oe,bandSize:rt,barPosition:Ne,offset:O,stackedData:Ae,layout:z,dataStartIndex:M,dataEndIndex:D}))),{},xe(xe(xe({key:oe.key||"item-".concat(se)},W,qe[W]),k,qe[k]),"animationId",C)),childIndex:S6(oe,j.children),item:oe})}),F},S=function(j,T){var E=j.props,N=j.dataStartIndex,O=j.dataEndIndex,C=j.updateId;if(!yA({props:E}))return null;var M=E.children,D=E.layout,$=E.stackOffset,z=E.data,L=E.reverseStackOrder,B=JN(D),H=B.numericAxisName,Y=B.cateAxisName,W=Ln(M,r),k=TU(z,W,"".concat(H,"Id"),"".concat(Y,"Id"),$,L),X=d.reduce(function(K,re){var fe="".concat(re.axisType,"Map");return ne(ne({},K),{},xe({},fe,MX(E,ne(ne({},re),{},{graphicalItems:W,stackGroups:re.axisType===H&&k,dataStartIndex:N,dataEndIndex:O}))))},{}),F=DX(ne(ne({},X),{},{props:E,graphicalItems:W}),T==null?void 0:T.legendBBox);Object.keys(X).forEach(function(K){X[K]=y(E,X[K],F,K.replace("Map",""),n)});var oe=X["".concat(Y,"Map")],se=RX(oe),q=b(E,ne(ne({},X),{},{dataStartIndex:N,dataEndIndex:O,updateId:C,graphicalItems:W,stackGroups:k,offset:F}));return ne(ne({formattedGraphicalItems:q,graphicalItems:W,offset:F,stackGroups:k},se),X)},_=(function(x){function j(T){var E,N,O;return pX(this,j),O=vX(this,j,[T]),xe(O,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),xe(O,"accessibilityManager",new eX),xe(O,"handleLegendBBoxUpdate",function(C){if(C){var M=O.state,D=M.dataStartIndex,$=M.dataEndIndex,z=M.updateId;O.setState(ne({legendBBox:C},S({props:O.props,dataStartIndex:D,dataEndIndex:$,updateId:z},ne(ne({},O.state),{},{legendBBox:C}))))}}),xe(O,"handleReceiveSyncEvent",function(C,M,D){if(O.props.syncId===C){if(D===O.eventEmitterSymbol&&typeof O.props.syncMethod!="function")return;O.applySyncEvent(M)}}),xe(O,"handleBrushChange",function(C){var M=C.startIndex,D=C.endIndex;if(M!==O.state.dataStartIndex||D!==O.state.dataEndIndex){var $=O.state.updateId;O.setState(function(){return ne({dataStartIndex:M,dataEndIndex:D},S({props:O.props,dataStartIndex:M,dataEndIndex:D,updateId:$},O.state))}),O.triggerSyncEvent({dataStartIndex:M,dataEndIndex:D})}}),xe(O,"handleMouseEnter",function(C){var M=O.getMouseInfo(C);if(M){var D=ne(ne({},M),{},{isTooltipActive:!0});O.setState(D),O.triggerSyncEvent(D);var $=O.props.onMouseEnter;Oe($)&&$(D,C)}}),xe(O,"triggeredAfterMouseMove",function(C){var M=O.getMouseInfo(C),D=M?ne(ne({},M),{},{isTooltipActive:!0}):{isTooltipActive:!1};O.setState(D),O.triggerSyncEvent(D);var $=O.props.onMouseMove;Oe($)&&$(D,C)}),xe(O,"handleItemMouseEnter",function(C){O.setState(function(){return{isTooltipActive:!0,activeItem:C,activePayload:C.tooltipPayload,activeCoordinate:C.tooltipPosition||{x:C.cx,y:C.cy}}})}),xe(O,"handleItemMouseLeave",function(){O.setState(function(){return{isTooltipActive:!1}})}),xe(O,"handleMouseMove",function(C){C.persist(),O.throttleTriggeredAfterMouseMove(C)}),xe(O,"handleMouseLeave",function(C){O.throttleTriggeredAfterMouseMove.cancel();var M={isTooltipActive:!1};O.setState(M),O.triggerSyncEvent(M);var D=O.props.onMouseLeave;Oe(D)&&D(M,C)}),xe(O,"handleOuterEvent",function(C){var M=x6(C),D=xn(O.props,"".concat(M));if(M&&Oe(D)){var $,z;/.*touch.*/i.test(M)?z=O.getMouseInfo(C.changedTouches[0]):z=O.getMouseInfo(C),D(($=z)!==null&&$!==void 0?$:{},C)}}),xe(O,"handleClick",function(C){var M=O.getMouseInfo(C);if(M){var D=ne(ne({},M),{},{isTooltipActive:!0});O.setState(D),O.triggerSyncEvent(D);var $=O.props.onClick;Oe($)&&$(D,C)}}),xe(O,"handleMouseDown",function(C){var M=O.props.onMouseDown;if(Oe(M)){var D=O.getMouseInfo(C);M(D,C)}}),xe(O,"handleMouseUp",function(C){var M=O.props.onMouseUp;if(Oe(M)){var D=O.getMouseInfo(C);M(D,C)}}),xe(O,"handleTouchMove",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&O.throttleTriggeredAfterMouseMove(C.changedTouches[0])}),xe(O,"handleTouchStart",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&O.handleMouseDown(C.changedTouches[0])}),xe(O,"handleTouchEnd",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&O.handleMouseUp(C.changedTouches[0])}),xe(O,"handleDoubleClick",function(C){var M=O.props.onDoubleClick;if(Oe(M)){var D=O.getMouseInfo(C);M(D,C)}}),xe(O,"handleContextMenu",function(C){var M=O.props.onContextMenu;if(Oe(M)){var D=O.getMouseInfo(C);M(D,C)}}),xe(O,"triggerSyncEvent",function(C){O.props.syncId!==void 0&&i0.emit(o0,O.props.syncId,C,O.eventEmitterSymbol)}),xe(O,"applySyncEvent",function(C){var M=O.props,D=M.layout,$=M.syncMethod,z=O.state.updateId,L=C.dataStartIndex,B=C.dataEndIndex;if(C.dataStartIndex!==void 0||C.dataEndIndex!==void 0)O.setState(ne({dataStartIndex:L,dataEndIndex:B},S({props:O.props,dataStartIndex:L,dataEndIndex:B,updateId:z},O.state)));else if(C.activeTooltipIndex!==void 0){var H=C.chartX,Y=C.chartY,W=C.activeTooltipIndex,k=O.state,X=k.offset,F=k.tooltipTicks;if(!X)return;if(typeof $=="function")W=$(F,C);else if($==="value"){W=-1;for(var oe=0;oe<F.length;oe++)if(F[oe].value===C.activeLabel){W=oe;break}}var se=ne(ne({},X),{},{x:X.left,y:X.top}),q=Math.min(H,se.x+se.width),K=Math.min(Y,se.y+se.height),re=F[W]&&F[W].value,fe=Pb(O.state,O.props.data,W),pe=F[W]?{x:D==="horizontal"?F[W].coordinate:q,y:D==="horizontal"?K:F[W].coordinate}:WR;O.setState(ne(ne({},C),{},{activeLabel:re,activeCoordinate:pe,activePayload:fe,activeTooltipIndex:W}))}else O.setState(C)}),xe(O,"renderCursor",function(C){var M,D=O.state,$=D.isTooltipActive,z=D.activeCoordinate,L=D.activePayload,B=D.offset,H=D.activeTooltipIndex,Y=D.tooltipAxisBandSize,W=O.getTooltipEventType(),k=(M=C.props.active)!==null&&M!==void 0?M:$,X=O.props.layout,F=C.key||"_recharts-cursor";return I.createElement(lX,{key:F,activeCoordinate:z,activePayload:L,activeTooltipIndex:H,chartName:n,element:C,isActive:k,layout:X,offset:B,tooltipAxisBandSize:Y,tooltipEventType:W})}),xe(O,"renderPolarAxis",function(C,M,D){var $=xn(C,"type.axisType"),z=xn(O.state,"".concat($,"Map")),L=C.type.defaultProps,B=L!==void 0?ne(ne({},L),C.props):C.props,H=z&&z[B["".concat($,"Id")]];return P.cloneElement(C,ne(ne({},H),{},{className:Me($,H.className),key:C.key||"".concat(M,"-").concat(D),ticks:si(H,!0)}))}),xe(O,"renderPolarGrid",function(C){var M=C.props,D=M.radialLines,$=M.polarAngles,z=M.polarRadius,L=O.state,B=L.radiusAxisMap,H=L.angleAxisMap,Y=po(B),W=po(H),k=W.cx,X=W.cy,F=W.innerRadius,oe=W.outerRadius;return P.cloneElement(C,{polarAngles:Array.isArray($)?$:si(W,!0).map(function(se){return se.coordinate}),polarRadius:Array.isArray(z)?z:si(Y,!0).map(function(se){return se.coordinate}),cx:k,cy:X,innerRadius:F,outerRadius:oe,key:C.key||"polar-grid",radialLines:D})}),xe(O,"renderLegend",function(){var C=O.state.formattedGraphicalItems,M=O.props,D=M.children,$=M.width,z=M.height,L=O.props.margin||{},B=$-(L.left||0)-(L.right||0),H=C3({children:D,formattedGraphicalItems:C,legendWidth:B,legendContent:h});if(!H)return null;var Y=H.item,W=FN(H,uX);return P.cloneElement(Y,ne(ne({},W),{},{chartWidth:$,chartHeight:z,margin:L,onBBoxUpdate:O.handleLegendBBoxUpdate}))}),xe(O,"renderTooltip",function(){var C,M=O.props,D=M.children,$=M.accessibilityLayer,z=vn(D,gn);if(!z)return null;var L=O.state,B=L.isTooltipActive,H=L.activeCoordinate,Y=L.activePayload,W=L.activeLabel,k=L.offset,X=(C=z.props.active)!==null&&C!==void 0?C:B;return P.cloneElement(z,{viewBox:ne(ne({},k),{},{x:k.left,y:k.top}),active:X,label:W,payload:X?Y:[],coordinate:H,accessibilityLayer:$})}),xe(O,"renderBrush",function(C){var M=O.props,D=M.margin,$=M.data,z=O.state,L=z.offset,B=z.dataStartIndex,H=z.dataEndIndex,Y=z.updateId;return P.cloneElement(C,{key:C.key||"_recharts-brush",onChange:zc(O.handleBrushChange,C.props.onChange),data:$,x:de(C.props.x)?C.props.x:L.left,y:de(C.props.y)?C.props.y:L.top+L.height+L.brushBottom-(D.bottom||0),width:de(C.props.width)?C.props.width:L.width,startIndex:B,endIndex:H,updateId:"brush-".concat(Y)})}),xe(O,"renderReferenceElement",function(C,M,D){if(!C)return null;var $=O,z=$.clipPathId,L=O.state,B=L.xAxisMap,H=L.yAxisMap,Y=L.offset,W=C.type.defaultProps||{},k=C.props,X=k.xAxisId,F=X===void 0?W.xAxisId:X,oe=k.yAxisId,se=oe===void 0?W.yAxisId:oe;return P.cloneElement(C,{key:C.key||"".concat(M,"-").concat(D),xAxis:B[F],yAxis:H[se],viewBox:{x:Y.left,y:Y.top,width:Y.width,height:Y.height},clipPathId:z})}),xe(O,"renderActivePoints",function(C){var M=C.item,D=C.activePoint,$=C.basePoint,z=C.childIndex,L=C.isRange,B=[],H=M.props.key,Y=M.item.type.defaultProps!==void 0?ne(ne({},M.item.type.defaultProps),M.item.props):M.item.props,W=Y.activeDot,k=Y.dataKey,X=ne(ne({index:z,dataKey:k,cx:D.x,cy:D.y,r:4,fill:Lx(M.item),strokeWidth:2,stroke:"#fff",payload:D.payload,value:D.value},ge(W,!1)),Zc(W));return B.push(j.renderActiveDot(W,X,"".concat(H,"-activePoint-").concat(z))),$?B.push(j.renderActiveDot(W,ne(ne({},X),{},{cx:$.x,cy:$.y}),"".concat(H,"-basePoint-").concat(z))):L&&B.push(null),B}),xe(O,"renderGraphicChild",function(C,M,D){var $=O.filterFormatItem(C,M,D);if(!$)return null;var z=O.getTooltipEventType(),L=O.state,B=L.isTooltipActive,H=L.tooltipAxis,Y=L.activeTooltipIndex,W=L.activeLabel,k=O.props.children,X=vn(k,gn),F=$.props,oe=F.points,se=F.isRange,q=F.baseLine,K=$.item.type.defaultProps!==void 0?ne(ne({},$.item.type.defaultProps),$.item.props):$.item.props,re=K.activeDot,fe=K.hide,pe=K.activeBar,le=K.activeShape,Se=!!(!fe&&B&&X&&(re||pe||le)),qe={};z!=="axis"&&X&&X.props.trigger==="click"?qe={onClick:zc(O.handleItemMouseEnter,C.props.onClick)}:z!=="axis"&&(qe={onMouseLeave:zc(O.handleItemMouseLeave,C.props.onMouseLeave),onMouseEnter:zc(O.handleItemMouseEnter,C.props.onMouseEnter)});var ce=P.cloneElement(C,ne(ne({},$.props),qe));function we(hr){return typeof H.dataKey=="function"?H.dataKey(hr.payload):null}if(Se)if(Y>=0){var Ae,ue;if(H.dataKey&&!H.allowDuplicatedCategory){var rt=typeof H.dataKey=="function"?we:"payload.".concat(H.dataKey.toString());Ae=Wc(oe,rt,W),ue=se&&q&&Wc(q,rt,W)}else Ae=oe==null?void 0:oe[Y],ue=se&&q&&q[Y];if(le||pe){var Ne=C.props.activeIndex!==void 0?C.props.activeIndex:Y;return[P.cloneElement(C,ne(ne(ne({},$.props),qe),{},{activeIndex:Ne})),null,null]}if(!Te(Ae))return[ce].concat(Fo(O.renderActivePoints({item:$,activePoint:Ae,basePoint:ue,childIndex:Y,isRange:se})))}else{var ct,ft=(ct=O.getItemByXY(O.state.activeCoordinate))!==null&&ct!==void 0?ct:{graphicalItem:ce},zt=ft.graphicalItem,Un=zt.item,Jn=Un===void 0?C:Un,Jr=zt.childIndex,In=ne(ne(ne({},$.props),qe),{},{activeIndex:Jr});return[P.cloneElement(Jn,In),null,null]}return se?[ce,null,null]:[ce,null]}),xe(O,"renderCustomized",function(C,M,D){return P.cloneElement(C,ne(ne({key:"recharts-customized-".concat(D)},O.props),O.state))}),xe(O,"renderMap",{CartesianGrid:{handler:Yc,once:!0},ReferenceArea:{handler:O.renderReferenceElement},ReferenceLine:{handler:Yc},ReferenceDot:{handler:O.renderReferenceElement},XAxis:{handler:Yc},YAxis:{handler:Yc},Brush:{handler:O.renderBrush,once:!0},Bar:{handler:O.renderGraphicChild},Line:{handler:O.renderGraphicChild},Area:{handler:O.renderGraphicChild},Radar:{handler:O.renderGraphicChild},RadialBar:{handler:O.renderGraphicChild},Scatter:{handler:O.renderGraphicChild},Pie:{handler:O.renderGraphicChild},Funnel:{handler:O.renderGraphicChild},Tooltip:{handler:O.renderCursor,once:!0},PolarGrid:{handler:O.renderPolarGrid,once:!0},PolarAngleAxis:{handler:O.renderPolarAxis},PolarRadiusAxis:{handler:O.renderPolarAxis},Customized:{handler:O.renderCustomized}}),O.clipPathId="".concat((E=T.id)!==null&&E!==void 0?E:rl("recharts"),"-clip"),O.throttleTriggeredAfterMouseMove=CM(O.triggeredAfterMouseMove,(N=T.throttleDelay)!==null&&N!==void 0?N:1e3/60),O.state={},O}return xX(j,x),yX(j,[{key:"componentDidMount",value:function(){var E,N;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(E=this.props.margin.left)!==null&&E!==void 0?E:0,top:(N=this.props.margin.top)!==null&&N!==void 0?N:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var E=this.props,N=E.children,O=E.data,C=E.height,M=E.layout,D=vn(N,gn);if(D){var $=D.props.defaultIndex;if(!(typeof $!="number"||$<0||$>this.state.tooltipTicks.length-1)){var z=this.state.tooltipTicks[$]&&this.state.tooltipTicks[$].value,L=Pb(this.state,O,$,z),B=this.state.tooltipTicks[$].coordinate,H=(this.state.offset.top+C)/2,Y=M==="horizontal",W=Y?{x:B,y:H}:{y:B,x:H},k=this.state.formattedGraphicalItems.find(function(F){var oe=F.item;return oe.type.name==="Scatter"});k&&(W=ne(ne({},W),k.props.points[$].tooltipPosition),L=k.props.points[$].tooltipPayload);var X={activeTooltipIndex:$,isTooltipActive:!0,activeLabel:z,activePayload:L,activeCoordinate:W};this.setState(X),this.renderCursor(D),this.accessibilityManager.setIndex($)}}}},{key:"getSnapshotBeforeUpdate",value:function(E,N){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==N.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==E.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==E.margin){var O,C;this.accessibilityManager.setDetails({offset:{left:(O=this.props.margin.left)!==null&&O!==void 0?O:0,top:(C=this.props.margin.top)!==null&&C!==void 0?C:0}})}return null}},{key:"componentDidUpdate",value:function(E){y0([vn(E.children,gn)],[vn(this.props.children,gn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var E=vn(this.props.children,gn);if(E&&typeof E.props.shared=="boolean"){var N=E.props.shared?"axis":"item";return f.indexOf(N)>=0?N:l}return l}},{key:"getMouseInfo",value:function(E){if(!this.container)return null;var N=this.container,O=N.getBoundingClientRect(),C=lq(O),M={chartX:Math.round(E.pageX-C.left),chartY:Math.round(E.pageY-C.top)},D=O.width/N.offsetWidth||1,$=this.inRange(M.chartX,M.chartY,D);if(!$)return null;var z=this.state,L=z.xAxisMap,B=z.yAxisMap,H=this.getTooltipEventType(),Y=ZN(this.state,this.props.data,this.props.layout,$);if(H!=="axis"&&L&&B){var W=po(L).scale,k=po(B).scale,X=W&&W.invert?W.invert(M.chartX):null,F=k&&k.invert?k.invert(M.chartY):null;return ne(ne({},M),{},{xValue:X,yValue:F},Y)}return Y?ne(ne({},M),Y):null}},{key:"inRange",value:function(E,N){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,C=this.props.layout,M=E/O,D=N/O;if(C==="horizontal"||C==="vertical"){var $=this.state.offset,z=M>=$.left&&M<=$.left+$.width&&D>=$.top&&D<=$.top+$.height;return z?{x:M,y:D}:null}var L=this.state,B=L.angleAxisMap,H=L.radiusAxisMap;if(B&&H){var Y=po(B);return iE({x:M,y:D},Y)}return null}},{key:"parseEventsOfWrapper",value:function(){var E=this.props.children,N=this.getTooltipEventType(),O=vn(E,gn),C={};O&&N==="axis"&&(O.props.trigger==="click"?C={onClick:this.handleClick}:C={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var M=Zc(this.props,this.handleOuterEvent);return ne(ne({},M),C)}},{key:"addListener",value:function(){i0.on(o0,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){i0.removeListener(o0,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(E,N,O){for(var C=this.state.formattedGraphicalItems,M=0,D=C.length;M<D;M++){var $=C[M];if($.item===E||$.props.key===E.key||N===Lr($.item.type)&&O===$.childIndex)return $}return null}},{key:"renderClipPath",value:function(){var E=this.clipPathId,N=this.state.offset,O=N.left,C=N.top,M=N.height,D=N.width;return I.createElement("defs",null,I.createElement("clipPath",{id:E},I.createElement("rect",{x:O,y:C,height:M,width:D})))}},{key:"getXScales",value:function(){var E=this.state.xAxisMap;return E?Object.entries(E).reduce(function(N,O){var C=XN(O,2),M=C[0],D=C[1];return ne(ne({},N),{},xe({},M,D.scale))},{}):null}},{key:"getYScales",value:function(){var E=this.state.yAxisMap;return E?Object.entries(E).reduce(function(N,O){var C=XN(O,2),M=C[0],D=C[1];return ne(ne({},N),{},xe({},M,D.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(E){var N;return(N=this.state.xAxisMap)===null||N===void 0||(N=N[E])===null||N===void 0?void 0:N.scale}},{key:"getYScaleByAxisId",value:function(E){var N;return(N=this.state.yAxisMap)===null||N===void 0||(N=N[E])===null||N===void 0?void 0:N.scale}},{key:"getItemByXY",value:function(E){var N=this.state,O=N.formattedGraphicalItems,C=N.activeItem;if(O&&O.length)for(var M=0,D=O.length;M<D;M++){var $=O[M],z=$.props,L=$.item,B=L.type.defaultProps!==void 0?ne(ne({},L.type.defaultProps),L.props):L.props,H=Lr(L.type);if(H==="Bar"){var Y=(z.data||[]).find(function(F){return EH(E,F)});if(Y)return{graphicalItem:$,payload:Y}}else if(H==="RadialBar"){var W=(z.data||[]).find(function(F){return iE(E,F)});if(W)return{graphicalItem:$,payload:W}}else if(Nd($,C)||Cd($,C)||Zu($,C)){var k=ZG({graphicalItem:$,activeTooltipItem:C,itemData:B.data}),X=B.activeIndex===void 0?k:B.activeIndex;return{graphicalItem:ne(ne({},$),{},{childIndex:X}),payload:Zu($,C)?B.data[k]:$.props.data[k]}}}return null}},{key:"render",value:function(){var E=this;if(!yA(this))return null;var N=this.props,O=N.children,C=N.className,M=N.width,D=N.height,$=N.style,z=N.compact,L=N.title,B=N.desc,H=FN(N,sX),Y=ge(H,!1);if(z)return I.createElement(RN,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},I.createElement(g0,bo({},Y,{width:M,height:D,title:L,desc:B}),this.renderClipPath(),gA(O,this.renderMap)));if(this.props.accessibilityLayer){var W,k;Y.tabIndex=(W=this.props.tabIndex)!==null&&W!==void 0?W:0,Y.role=(k=this.props.role)!==null&&k!==void 0?k:"application",Y.onKeyDown=function(F){E.accessibilityManager.keyboardEvent(F)},Y.onFocus=function(){E.accessibilityManager.focus()}}var X=this.parseEventsOfWrapper();return I.createElement(RN,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},I.createElement("div",bo({className:Me("recharts-wrapper",C),style:ne({position:"relative",cursor:"default",width:M,height:D},$)},X,{ref:function(oe){E.container=oe}}),I.createElement(g0,bo({},Y,{width:M,height:D,title:L,desc:B,style:jX}),this.renderClipPath(),gA(O,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(P.Component);xe(_,"displayName",n),xe(_,"defaultProps",ne({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),xe(_,"getDerivedStateFromProps",function(x,j){var T=x.dataKey,E=x.data,N=x.children,O=x.width,C=x.height,M=x.layout,D=x.stackOffset,$=x.margin,z=j.dataStartIndex,L=j.dataEndIndex;if(j.updateId===void 0){var B=QN(x);return ne(ne(ne({},B),{},{updateId:0},S(ne(ne({props:x},B),{},{updateId:0}),j)),{},{prevDataKey:T,prevData:E,prevWidth:O,prevHeight:C,prevLayout:M,prevStackOffset:D,prevMargin:$,prevChildren:N})}if(T!==j.prevDataKey||E!==j.prevData||O!==j.prevWidth||C!==j.prevHeight||M!==j.prevLayout||D!==j.prevStackOffset||!xo($,j.prevMargin)){var H=QN(x),Y={chartX:j.chartX,chartY:j.chartY,isTooltipActive:j.isTooltipActive},W=ne(ne({},ZN(j,E,M)),{},{updateId:j.updateId+1}),k=ne(ne(ne({},H),Y),W);return ne(ne(ne({},k),S(ne({props:x},k),j)),{},{prevDataKey:T,prevData:E,prevWidth:O,prevHeight:C,prevLayout:M,prevStackOffset:D,prevMargin:$,prevChildren:N})}if(!y0(N,j.prevChildren)){var X,F,oe,se,q=vn(N,Bo),K=q&&(X=(F=q.props)===null||F===void 0?void 0:F.startIndex)!==null&&X!==void 0?X:z,re=q&&(oe=(se=q.props)===null||se===void 0?void 0:se.endIndex)!==null&&oe!==void 0?oe:L,fe=K!==z||re!==L,pe=!Te(E),le=pe&&!fe?j.updateId:j.updateId+1;return ne(ne({updateId:le},S(ne(ne({props:x},j),{},{updateId:le,dataStartIndex:K,dataEndIndex:re}),j)),{},{prevChildren:N,dataStartIndex:K,dataEndIndex:re})}return null}),xe(_,"renderActiveDot",function(x,j,T){var E;return P.isValidElement(x)?E=P.cloneElement(x,j):Oe(x)?E=x(j):E=I.createElement(Od,j),I.createElement(Le,{className:"recharts-active-dot",key:T},E)});var w=P.forwardRef(function(j,T){return I.createElement(_,bo({},j,{ref:T}))});return w.displayName=_.displayName,w},$X=Hx({chartName:"BarChart",GraphicalChild:Ma,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Oi},{axisType:"yAxis",AxisComp:Ai}],formatAxisMap:hR}),LX=Hx({chartName:"PieChart",GraphicalChild:Zr,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Ed},{axisType:"radiusAxis",AxisComp:jd}],formatAxisMap:BU,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),QR=Hx({chartName:"AreaChart",GraphicalChild:Qr,axisComponents:[{axisType:"xAxis",AxisComp:Oi},{axisType:"yAxis",AxisComp:Ai}],formatAxisMap:hR});function qX(e){const t=new Date(e);return["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][t.getUTCDay()]}function eC({title:e,data:t,color:n="#3b82f6",formatValue:r=o=>o.toLocaleString()}){const o=t.map(l=>({...l,dayLabel:qX(l.date)}));return v.jsxs("div",{children:[v.jsx("h3",{className:"mb-3 text-sm font-medium uppercase tracking-wide text-gray-400",children:e}),v.jsx("div",{className:"h-40",children:v.jsx(fd,{width:"100%",height:"100%",children:v.jsxs(QR,{data:o,margin:{top:5,right:5,left:5,bottom:5},children:[v.jsx("defs",{children:v.jsxs("linearGradient",{id:`gradient-${e}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[v.jsx("stop",{offset:"5%",stopColor:n,stopOpacity:.3}),v.jsx("stop",{offset:"95%",stopColor:n,stopOpacity:0})]})}),v.jsx(Oi,{dataKey:"dayLabel",axisLine:!1,tickLine:!1,tick:{fill:"#6b7280",fontSize:12}}),v.jsx(Ai,{axisLine:!1,tickLine:!1,tick:{fill:"#6b7280",fontSize:12},tickFormatter:l=>l>=1e3?`${(l/1e3).toFixed(0)}k`:l.toString(),width:40}),v.jsx(gn,{contentStyle:{backgroundColor:"#1f2937",border:"1px solid #374151",borderRadius:"0.375rem",color:"#fff"},labelStyle:{color:"#9ca3af"},formatter:l=>[r(l),e],labelFormatter:l=>l}),v.jsx(Qr,{type:"monotone",dataKey:"value",stroke:n,strokeWidth:2,fill:`url(#gradient-${e})`})]})})})]})}function tC(e,t){return t===0?e>0?100:0:(e-t)/t*100}function BX(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(0)}K`:e.toString()}function zX(){const e=P.useCallback(()=>iO.getData(),[]),t=P.useCallback(()=>iO.getRecentEvents(10),[]),{data:n,error:r,loading:o}=Ir(e,3e3),{data:l,error:s,loading:f}=Ir(t,3e3);if(o&&!n)return v.jsx(Ca,{});const h=n?tC(n.today_cost,n.yesterday_cost):0,y=n?tC(n.today_requests,n.yesterday_requests):0,p=((n==null?void 0:n.top_agents)??[]).map(S=>({label:S.agent_id,value:S.cost,formattedValue:rn(S.cost),percentage:S.percentage,link:`/agents/${encodeURIComponent(S.agent_id)}`})),b=((n==null?void 0:n.top_models)??[]).map(S=>({label:S.model,value:S.tokens,formattedValue:BX(S.tokens),percentage:S.percentage}));return v.jsxs("div",{className:"space-y-6",children:[v.jsx("h1",{className:"text-2xl font-bold text-white",children:"Overview"}),r&&v.jsx(Wn,{message:`Overview: ${r}`}),s&&v.jsx(Wn,{message:`Events: ${s}`}),v.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[v.jsx(Rc,{title:"Active Agents",value:(n==null?void 0:n.active_agents.toString())??"0"}),v.jsx(Rc,{title:"Today's Cost",value:rn((n==null?void 0:n.today_cost)??0),trend:{value:h,label:"vs yesterday"}}),v.jsx(Rc,{title:"Requests (24h)",value:((n==null?void 0:n.today_requests)??0).toLocaleString(),trend:{value:y,label:"vs yesterday"}}),v.jsx(Rc,{title:"Error Rate",value:`${((n==null?void 0:n.error_rate)??0).toFixed(1)}%`,warning:((n==null?void 0:n.error_rate)??0)>5,warningText:"Above 5% threshold"})]}),v.jsxs("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-2",children:[v.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:[v.jsx("h3",{className:"mb-4 text-sm font-medium uppercase tracking-wide text-gray-400",children:"Recent Events"}),f&&!l?v.jsx("div",{className:"flex h-48 items-center justify-center",children:v.jsx("div",{className:"h-6 w-6 animate-spin rounded-full border-2 border-gray-600 border-t-blue-500"})}):v.jsx(bk,{events:(l==null?void 0:l.events)??[]})]}),v.jsxs("div",{className:"space-y-6",children:[v.jsx("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:v.jsx(lO,{title:"Top Agents (by cost)",items:p,emptyText:"No agent data"})}),v.jsx("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:v.jsx(lO,{title:"Top Models (by tokens)",items:b,emptyText:"No model data"})})]})]}),v.jsxs("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-2",children:[v.jsx("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:v.jsx(eC,{title:"Cost Trend (7 days)",data:(n==null?void 0:n.cost_trend)??[],color:"#10b981",formatValue:S=>rn(S)})}),v.jsx("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:v.jsx(eC,{title:"Requests Trend (7 days)",data:(n==null?void 0:n.requests_trend)??[],color:"#3b82f6",formatValue:S=>S.toLocaleString()})})]})]})}function Db({currentPage:e,totalPages:t,onPageChange:n}){if(t<=1)return null;function r(){if(t<=7)return Array.from({length:t},(s,f)=>f+1);const l=[];if(e<=4){for(let s=1;s<=5;s++)l.push(s);l.push("...",t)}else if(e>=t-3){l.push(1,"...");for(let s=t-4;s<=t;s++)l.push(s)}else l.push(1,"...",e-1,e,e+1,"...",t);return l}const o=r();return v.jsxs("div",{className:"flex items-center justify-center gap-1 pt-4",children:[v.jsx("button",{onClick:()=>n(e-1),disabled:e===1,className:"rounded-md bg-gray-700 px-2.5 py-1.5 text-sm font-medium text-gray-300 transition-colors hover:bg-gray-600 disabled:opacity-40 disabled:hover:bg-gray-700",children:"<"}),o.map((l,s)=>l==="..."?v.jsx("span",{className:"px-2 text-sm text-gray-500",children:"..."},`ellipsis-${s}`):v.jsx("button",{onClick:()=>n(l),className:`rounded-md px-3 py-1.5 text-sm font-medium transition-colors ${l===e?"bg-blue-600 text-white":"bg-gray-700 text-gray-300 hover:bg-gray-600"}`,children:l},l)),v.jsx("button",{onClick:()=>n(e+1),disabled:e===t,className:"rounded-md bg-gray-700 px-2.5 py-1.5 text-sm font-medium text-gray-300 transition-colors hover:bg-gray-600 disabled:opacity-40 disabled:hover:bg-gray-700",children:">"})]})}function UX({value:e,onChange:t,placeholder:n="Search..."}){const[r,o]=P.useState(e),l=P.useRef(null);P.useEffect(()=>{o(e)},[e]),P.useEffect(()=>()=>{l.current&&clearTimeout(l.current)},[]);function s(d){o(d),l.current&&clearTimeout(l.current),l.current=setTimeout(()=>t(d),300)}function f(){o(""),l.current&&clearTimeout(l.current),t("")}return v.jsxs("div",{className:"relative",children:[v.jsx("svg",{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})}),v.jsx("input",{type:"text",value:r,onChange:d=>s(d.target.value),placeholder:n,className:"block w-full rounded-md border border-gray-600 bg-gray-900 py-2 pl-9 pr-8 text-sm text-gray-100 placeholder-gray-500 focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500"}),r&&v.jsx("button",{onClick:f,className:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-500 hover:text-gray-300",children:v.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"})})})]})}const u0=20;function IX(){const[e,t]=P.useState(1),[n,r]=P.useState(""),[o,l]=P.useState(null),s=P.useCallback(()=>{const _=new URLSearchParams;return _.set("limit",String(u0)),_.set("offset",String((e-1)*u0)),n&&_.set("search",n),_e.get(`/api/agents?${_.toString()}`)},[e,n]),{data:f,error:d,loading:h,refresh:y}=Ir(s,3e3),p=(f==null?void 0:f.total)!=null?Math.ceil(f.total/u0):1;function b(_){r(_),t(1)}async function S(_){l(_.agent_id);try{await _e.put(`/api/agents/${encodeURIComponent(_.agent_id)}/policy`,{active:_.active===0}),y()}catch(w){console.error("Failed to toggle agent active state:",w)}finally{l(null)}}return h&&!f?v.jsx(Ca,{}):v.jsxs("div",{children:[v.jsx("h1",{className:"text-2xl font-bold text-white",children:"Agents"}),d&&v.jsx("div",{className:"mt-4",children:v.jsx(Wn,{message:d})}),v.jsx("div",{className:"mt-6 flex flex-wrap items-center gap-3",children:v.jsx("div",{className:"w-64",children:v.jsx(UX,{value:n,onChange:b,placeholder:"Search agents..."})})}),f&&f.agents.length===0&&v.jsx("div",{className:"mt-8 rounded-lg border border-gray-700 bg-gray-800 px-6 py-12 text-center",children:v.jsx("p",{className:"text-gray-400",children:"No agents found."})}),f&&f.agents.length>0&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"mt-4 overflow-hidden rounded-lg border border-gray-700",children:v.jsxs("table",{className:"w-full text-left text-sm",children:[v.jsx("thead",{children:v.jsxs("tr",{className:"bg-gray-800 text-xs uppercase text-gray-400",children:[v.jsx("th",{className:"px-4 py-3 font-medium",children:"Agent ID"}),v.jsx("th",{className:"px-4 py-3 font-medium text-center",children:"Active"}),v.jsx("th",{className:"px-4 py-3 font-medium",children:"Providers"}),v.jsx("th",{className:"px-4 py-3 font-medium",children:"Last Activity"}),v.jsx("th",{className:"px-4 py-3 font-medium text-right",children:"Tokens"}),v.jsx("th",{className:"px-4 py-3 font-medium text-right",children:"Total Cost"}),v.jsx("th",{className:"px-4 py-3 font-medium text-right",children:"Today"})]})}),v.jsx("tbody",{className:"divide-y divide-gray-700",children:f.agents.map(_=>{const w=o===_.agent_id;return v.jsxs("tr",{className:"bg-gray-900 transition-colors hover:bg-gray-800",children:[v.jsx("td",{className:"px-4 py-3",children:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Vr,{to:`/agents/${encodeURIComponent(_.agent_id)}`,className:"font-medium text-blue-400 hover:text-blue-300",children:_.agent_id}),_.kill_switch_enabled===1&&v.jsx("span",{className:"inline-flex items-center rounded-full bg-red-900/50 px-2 py-0.5 text-xs font-medium text-red-400",title:"Kill switch enabled for loop detection",children:"Kill Switch"})]})}),v.jsx("td",{className:"px-4 py-3 text-center",children:v.jsxs("div",{className:"flex items-center justify-center gap-2",children:[v.jsx("button",{onClick:()=>S(_),disabled:w,className:`relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors focus:outline-none disabled:opacity-50 ${_.active?"bg-green-600":"bg-gray-600"}`,role:"switch","aria-checked":_.active===1,children:v.jsx("span",{className:`pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition-transform ${_.active?"translate-x-5":"translate-x-0"}`})}),!_.active&&_.deactivated_by==="kill_switch"&&v.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-red-900/70 px-2 py-0.5 text-xs font-medium text-red-300",title:"Deactivated by Kill Switch due to loop detection",children:[v.jsx("svg",{className:"h-3 w-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),"Kill Switch"]})]})}),v.jsx("td",{className:"px-4 py-3 text-gray-300",children:_.providers&&_.providers.length>0?v.jsx("div",{className:"flex flex-wrap gap-1",children:_.providers.map(x=>v.jsxs("span",{className:`inline-flex items-center rounded px-2 py-0.5 text-xs ${x.has_override?"bg-indigo-900 text-indigo-200":"bg-gray-700 text-gray-300"}`,children:[x.provider,x.has_override&&v.jsxs("svg",{className:"ml-1 h-3 w-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:[v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})]},x.provider))}):v.jsx("span",{className:"text-gray-500",children:"-"})}),v.jsx("td",{className:"px-4 py-3 text-gray-300",children:Qf(_.updated_at)}),v.jsx("td",{className:"px-4 py-3 text-right text-gray-300",children:_.total_tokens.toLocaleString()}),v.jsx("td",{className:"px-4 py-3 text-right text-gray-300",children:rn(_.total_cost)}),v.jsx("td",{className:"px-4 py-3 text-right text-gray-300",children:rn(_.today_cost)})]},_.agent_id)})})]})}),v.jsx(Db,{currentPage:e,totalPages:p,onPageChange:t})]})]})}const HX=["1h","24h","7d","30d"];function JR({value:e,onChange:t,customFrom:n,customTo:r,onCustomFromChange:o,onCustomToChange:l,showCustom:s=!0}){return v.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[HX.map(f=>v.jsx("button",{onClick:()=>t(f),className:`rounded-md px-3 py-1.5 text-sm font-medium transition-colors ${f===e?"bg-blue-600 text-white":"bg-gray-700 text-gray-300 hover:bg-gray-600 hover:text-white"}`,children:f},f)),s&&v.jsxs(v.Fragment,{children:[v.jsx("button",{onClick:()=>t("custom"),className:`rounded-md px-3 py-1.5 text-sm font-medium transition-colors ${e==="custom"?"bg-blue-600 text-white":"bg-gray-700 text-gray-300 hover:bg-gray-600 hover:text-white"}`,children:"Custom"}),e==="custom"&&o&&l&&v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("input",{type:"date",value:n??"",onChange:f=>o(f.target.value),className:"rounded-md border border-gray-600 bg-gray-700 px-2 py-1 text-sm text-gray-200"}),v.jsx("span",{className:"text-sm text-gray-400",children:"to"}),v.jsx("input",{type:"date",value:r??"",onChange:f=>l(f.target.value),className:"rounded-md border border-gray-600 bg-gray-700 px-2 py-1 text-sm text-gray-200"})]})]})]})}function GX(e,t){const n=new Date(e);return t<=10?n.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):n.toLocaleDateString([],{month:"short",day:"numeric"})}function YX({series:e}){const t=e.slice(-50).map(n=>({timestamp:n.timestamp,tokens_in:n.tokens_in??0,tokens_out:n.tokens_out??0}));return t.length===0?v.jsx("div",{className:"flex h-48 items-center justify-center text-sm text-gray-500",children:"No token data available"}):v.jsx(fd,{width:"100%",height:220,children:v.jsxs($X,{data:t,margin:{top:4,right:4,bottom:0,left:0},children:[v.jsx(Oi,{dataKey:"timestamp",tickFormatter:n=>GX(n,t.length),tick:{fill:"#6b7280",fontSize:11},axisLine:{stroke:"#374151"},tickLine:{stroke:"#374151"},interval:"preserveStartEnd"}),v.jsx(Ai,{tick:{fill:"#6b7280",fontSize:11},axisLine:{stroke:"#374151"},tickLine:{stroke:"#374151"},tickFormatter:n=>ar(n),width:60}),v.jsx(gn,{contentStyle:{backgroundColor:"#1f2937",border:"1px solid #374151",borderRadius:6,color:"#e5e7eb",fontSize:12},formatter:(n,r)=>[ar(n),r==="tokens_in"?"Tokens In":"Tokens Out"],labelFormatter:n=>new Date(n).toLocaleString()}),v.jsx(fi,{formatter:n=>n==="tokens_in"?"Tokens In":"Tokens Out",wrapperStyle:{fontSize:12,color:"#9ca3af"}}),v.jsx(Ma,{dataKey:"tokens_in",fill:"#3b82f6",radius:[2,2,0,0],opacity:.85}),v.jsx(Ma,{dataKey:"tokens_out",fill:"#8b5cf6",radius:[2,2,0,0],opacity:.85})]})})}function KX({agentId:e}){const[t,n]=P.useState(null),[r,o]=P.useState(!0),[l,s]=P.useState(null),[f,d]=P.useState(!1),[h,y]=P.useState(!0),[p,b]=P.useState(!1),[S,_]=P.useState(""),[w,x]=P.useState(!1),[j,T]=P.useState("9"),[E,N]=P.useState("17"),O=P.useCallback(async()=>{var H,Y,W;try{const k=await _e.get(`/api/agents/${encodeURIComponent(e)}/policy`);n(k),y(k.active),b(k.budget_limit!==null),_(((H=k.budget_limit)==null?void 0:H.toString())??""),x(k.allowed_hours_start!==null&&k.allowed_hours_end!==null),T(((Y=k.allowed_hours_start)==null?void 0:Y.toString())??"9"),N(((W=k.allowed_hours_end)==null?void 0:W.toString())??"17"),s(null)}catch(k){s(k instanceof Error?k.message:"Failed to load policy")}finally{o(!1)}},[e]);P.useEffect(()=>{O()},[O]);const C=async()=>{d(!0),s(null);try{const H={active:h,budget_limit:p&&parseFloat(S)||null,allowed_hours_start:w?parseInt(j,10):null,allowed_hours_end:w?parseInt(E,10):null},Y=await _e.put(`/api/agents/${encodeURIComponent(e)}/policy`,H);n(Y)}catch(H){s(H instanceof Error?H.message:"Failed to save policy")}finally{d(!1)}},M=async()=>{const H=!h;y(H),d(!0);try{const Y=await _e.put(`/api/agents/${encodeURIComponent(e)}/policy`,{active:H});n(Y),s(null)}catch(Y){y(!H),s(Y instanceof Error?Y.message:"Failed to update")}finally{d(!1)}};if(r)return v.jsx("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:v.jsx("div",{className:"animate-pulse text-gray-400",children:"Loading policy..."})});const D=new Date().getTimezoneOffset(),$=Math.abs(Math.floor(D/60)),z=Math.abs(D%60),B=`UTC${D<=0?"+":"-"}${$}${z>0?`:${z.toString().padStart(2,"0")}`:""}`;return v.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:[v.jsx("h2",{className:"mb-4 text-sm font-semibold text-gray-300",children:"Agent Policy Settings"}),l&&v.jsx("div",{className:"mb-4 rounded-md border border-red-800 bg-red-900/20 px-3 py-2 text-sm text-red-400",children:l}),v.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-sm font-medium text-white",children:"Agent Active"}),v.jsx("p",{className:"text-xs text-gray-400",children:"When disabled, all requests will be blocked"}),!h&&(t==null?void 0:t.deactivated_by)==="kill_switch"&&v.jsxs("div",{className:"mt-2 flex items-center gap-2 rounded-md border border-red-800 bg-red-900/30 px-3 py-2",children:[v.jsx("svg",{className:"h-4 w-4 text-red-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),v.jsx("span",{className:"text-sm text-red-300",children:"Deactivated by Kill Switch due to loop detection"})]})]}),v.jsx("button",{onClick:M,disabled:f,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${h?"bg-green-600":"bg-gray-600"} ${f?"opacity-50 cursor-not-allowed":""}`,children:v.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${h?"translate-x-6":"translate-x-1"}`})})]}),v.jsxs("div",{className:"mb-6",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("input",{type:"checkbox",id:"budget-enabled",checked:p,onChange:H=>b(H.target.checked),className:"h-4 w-4 rounded border-gray-600 bg-gray-700 text-blue-600 focus:ring-blue-500"}),v.jsx("label",{htmlFor:"budget-enabled",className:"text-sm font-medium text-white",children:"Daily Budget Limit"})]}),p&&v.jsxs("div",{className:"mt-3 ml-7",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-gray-400",children:"$"}),v.jsx("input",{type:"number",value:S,onChange:H=>_(H.target.value),min:"0",step:"0.01",className:"w-24 rounded-md border border-gray-600 bg-gray-700 px-3 py-1.5 text-sm text-white focus:border-blue-500 focus:outline-none",placeholder:"10.00"}),v.jsx("span",{className:"text-sm text-gray-400",children:"per day"})]}),t&&v.jsxs("p",{className:"mt-2 text-xs text-gray-400",children:["Today's spend:"," ",v.jsx("span",{className:"font-medium text-white",children:rn(t.daily_spend)}),t.budget_limit!==null&&v.jsxs(v.Fragment,{children:[" ","/ $",t.budget_limit.toFixed(2),t.daily_spend>=t.budget_limit&&v.jsx("span",{className:"ml-2 text-red-400",children:"(Limit reached)"})]})]})]})]}),v.jsxs("div",{className:"mb-6",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("input",{type:"checkbox",id:"hours-enabled",checked:w,onChange:H=>x(H.target.checked),className:"h-4 w-4 rounded border-gray-600 bg-gray-700 text-blue-600 focus:ring-blue-500"}),v.jsx("label",{htmlFor:"hours-enabled",className:"text-sm font-medium text-white",children:"Allowed Operating Hours"})]}),w&&v.jsxs("div",{className:"mt-3 ml-7",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("select",{value:j,onChange:H=>T(H.target.value),className:"rounded-md border border-gray-600 bg-gray-700 px-3 py-1.5 text-sm text-white focus:border-blue-500 focus:outline-none",children:Array.from({length:24},(H,Y)=>v.jsxs("option",{value:Y,children:[Y.toString().padStart(2,"0"),":00"]},Y))}),v.jsx("span",{className:"text-gray-400",children:"to"}),v.jsx("select",{value:E,onChange:H=>N(H.target.value),className:"rounded-md border border-gray-600 bg-gray-700 px-3 py-1.5 text-sm text-white focus:border-blue-500 focus:outline-none",children:Array.from({length:24},(H,Y)=>v.jsxs("option",{value:Y,children:[Y.toString().padStart(2,"0"),":00"]},Y))})]}),v.jsxs("p",{className:"mt-2 text-xs text-gray-400",children:["Server timezone: ",B]})]})]}),v.jsx("div",{className:"flex justify-end border-t border-gray-700 pt-4",children:v.jsx("button",{onClick:C,disabled:f,className:`rounded-md bg-blue-600 px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-blue-500 ${f?"opacity-50 cursor-not-allowed":""}`,children:f?"Saving...":"Save Policy"})})]})}function VX({agentId:e}){const[t,n]=P.useState(null),[r,o]=P.useState(!0),[l,s]=P.useState(null),[f,d]=P.useState(!1),[h,y]=P.useState(!1),[p,b]=P.useState(!1),[S,_]=P.useState(!1),[w,x]=P.useState(20),[j,T]=P.useState(10),E=P.useCallback(async()=>{try{const $=await _e.get(`/api/agents/${encodeURIComponent(e)}/kill-switch`);n($),_($.enabled),x($.window_size),T($.threshold),s(null)}catch($){s($ instanceof Error?$.message:"Failed to load kill switch config")}finally{o(!1)}},[e]),N=P.useCallback(async()=>{try{const $=await _e.get(`/api/alerts?agent_id=${encodeURIComponent(e)}&rule_type=kill_switch`);y($.alerts.some(z=>z.enabled))}catch{}},[e]);P.useEffect(()=>{E(),N()},[E,N]);const O=async()=>{const $=!S;if($&&!h){b(!0);return}await M({enabled:$})},C=async()=>{b(!1),await M({enabled:!0})},M=async $=>{d(!0),s(null);try{const z={enabled:$.enabled??S,window_size:$.window_size??w,threshold:$.threshold??j},L=await _e.patch(`/api/agents/${encodeURIComponent(e)}/kill-switch`,z);n(L),_(L.enabled),x(L.window_size),T(L.threshold)}catch(z){s(z instanceof Error?z.message:"Failed to save config"),t&&(_(t.enabled),x(t.window_size),T(t.threshold))}finally{d(!1)}},D=async()=>{await M({enabled:S,window_size:w,threshold:j})};return r?v.jsx("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:v.jsx("div",{className:"animate-pulse text-gray-400",children:"Loading kill switch settings..."})}):v.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:[v.jsxs("h2",{className:"mb-4 flex items-center gap-2 text-sm font-semibold text-gray-300",children:[v.jsx("span",{className:"inline-flex h-5 w-5 items-center justify-center rounded-full bg-red-600 text-xs",children:"!"}),"Kill Switch (Loop Detection)"]}),l&&v.jsx("div",{className:"mb-4 rounded-md border border-red-800 bg-red-900/20 px-3 py-2 text-sm text-red-400",children:l}),p&&v.jsxs("div",{className:"mb-4 rounded-md border border-yellow-700 bg-yellow-900/20 p-4",children:[v.jsx("p",{className:"text-sm font-medium text-yellow-400",children:"No Alert Rule Configured"}),v.jsx("p",{className:"mt-1 text-xs text-yellow-300/80",children:`The kill switch will block loops but you won't receive notifications. Consider adding a "kill_switch" alert rule on the Alerts page first.`}),v.jsxs("div",{className:"mt-3 flex gap-2",children:[v.jsx("button",{onClick:C,className:"rounded-md bg-yellow-600 px-3 py-1.5 text-xs font-medium text-white hover:bg-yellow-500",children:"Enable Anyway"}),v.jsx("button",{onClick:()=>b(!1),className:"rounded-md bg-gray-600 px-3 py-1.5 text-xs font-medium text-white hover:bg-gray-500",children:"Cancel"})]})]}),v.jsx("p",{className:"mb-4 text-xs text-gray-400",children:"Automatically detect and block infinite loops to prevent wasting API credits. When triggered, requests return HTTP 429 and an alert is sent."}),v.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-sm font-medium text-white",children:"Kill Switch Enabled"}),v.jsx("p",{className:"text-xs text-gray-400",children:S?"Loop detection is active":"Loop detection is disabled"})]}),v.jsx("button",{onClick:O,disabled:f,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${S?"bg-red-600":"bg-gray-600"} ${f?"opacity-50 cursor-not-allowed":""}`,children:v.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${S?"translate-x-6":"translate-x-1"}`})})]}),S&&v.jsxs("div",{className:"space-y-4 border-t border-gray-700 pt-4",children:[v.jsxs("div",{children:[v.jsx("label",{htmlFor:"window-size",className:"block text-sm font-medium text-white",children:"Detection Window Size"}),v.jsx("p",{className:"text-xs text-gray-400",children:"Number of recent requests to analyze for patterns (5-100)"}),v.jsx("input",{type:"number",id:"window-size",value:w,onChange:$=>x(Math.max(5,Math.min(100,parseInt($.target.value)||20))),min:5,max:100,className:"mt-2 w-24 rounded-md border border-gray-600 bg-gray-700 px-3 py-1.5 text-sm text-white focus:border-blue-500 focus:outline-none"})]}),v.jsxs("div",{children:[v.jsx("label",{htmlFor:"threshold",className:"block text-sm font-medium text-white",children:"Loop Score Threshold"}),v.jsx("p",{className:"text-xs text-gray-400",children:"Minimum score to trigger kill switch (1-50). Lower = more sensitive."}),v.jsx("input",{type:"number",id:"threshold",value:j,onChange:$=>T(Math.max(1,Math.min(50,parseFloat($.target.value)||10))),min:1,max:50,step:.5,className:"mt-2 w-24 rounded-md border border-gray-600 bg-gray-700 px-3 py-1.5 text-sm text-white focus:border-blue-500 focus:outline-none"})]}),v.jsxs("div",{className:"rounded-md border border-gray-700 bg-gray-900 p-3",children:[v.jsx("p",{className:"text-xs font-medium text-gray-300",children:"How scoring works:"}),v.jsxs("ul",{className:"mt-1 list-inside list-disc text-xs text-gray-400",children:[v.jsx("li",{children:"Similar prompts: +1.0 per match"}),v.jsx("li",{children:"Similar responses: +2.0 per pair"}),v.jsx("li",{children:"Repeated tool calls: +1.5 per match"})]})]}),v.jsx("div",{className:"flex justify-end border-t border-gray-700 pt-4",children:v.jsx("button",{onClick:D,disabled:f,className:`rounded-md bg-blue-600 px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-blue-500 ${f?"opacity-50 cursor-not-allowed":""}`,children:f?"Saving...":"Save Settings"})})]}),S&&v.jsx("div",{className:"mt-4 flex items-center gap-2 text-xs",children:h?v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"inline-block h-2 w-2 rounded-full bg-green-500"}),v.jsx("span",{className:"text-green-400",children:"Alert rule configured"})]}):v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"inline-block h-2 w-2 rounded-full bg-yellow-500"}),v.jsx("span",{className:"text-yellow-400",children:"No alert rule - loops will be blocked silently"})]})})]})}function XX({agentId:e}){const[t,n]=P.useState([]),[r,o]=P.useState({}),[l,s]=P.useState(!0),[f,d]=P.useState(null),[h,y]=P.useState(null),[p,b]=P.useState({});P.useEffect(()=>{async function x(){try{const[j,T]=await Promise.all([_e.get(`/api/agents/${encodeURIComponent(e)}/providers`),_e.get("/api/models")]);n(j.providers),o(T),b({}),y(null)}catch(j){y("Failed to load model settings"),console.error(j)}finally{s(!1)}}x()},[e]);function S(x,j){b(T=>({...T,[x]:j}))}async function _(x){const j=p[x];if(j!==void 0){d(x);try{j?await _e.put(`/api/agents/${encodeURIComponent(e)}/model-rules/${encodeURIComponent(x)}`,{model_override:j}):await _e.del(`/api/agents/${encodeURIComponent(e)}/model-rules/${encodeURIComponent(x)}`),n(T=>T.map(E=>E.provider===x?{...E,model_override:j}:E)),b(T=>{const E={...T};return delete E[x],E}),y(null)}catch(T){y("Failed to update model override"),console.error(T)}finally{d(null)}}}function w(x){b(j=>{const T={...j};return delete T[x],T})}return l?v.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:[v.jsx("h2",{className:"text-sm font-semibold text-gray-300",children:"Model Settings"}),v.jsx("p",{className:"mt-2 text-sm text-gray-400",children:"Loading..."})]}):t.length===0?v.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:[v.jsx("h2",{className:"text-sm font-semibold text-gray-300",children:"Model Settings"}),v.jsx("p",{className:"mt-2 text-sm text-gray-400",children:"No providers detected yet. Make some LLM calls through the proxy to see provider options here."})]}):v.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:[v.jsx("h2",{className:"text-sm font-semibold text-gray-300",children:"Model Settings"}),v.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"Override the model for requests to each provider. The agent's original model request will be replaced."}),h&&v.jsx("div",{className:"mt-2 rounded bg-red-900/50 px-3 py-2 text-sm text-red-300",children:h}),v.jsx("div",{className:"mt-4 space-y-4",children:t.map(x=>{const j=r[x.provider]??[],T=f===x.provider,E=x.provider in p,N=E?p[x.provider]:x.model_override;return v.jsxs("div",{className:"rounded-lg border border-gray-600 bg-gray-900 p-3",children:[v.jsx("div",{className:"flex items-center justify-between",children:v.jsxs("div",{children:[v.jsx("span",{className:"font-medium capitalize text-white",children:x.provider}),x.model_override&&!E&&v.jsx("span",{className:"ml-2 rounded bg-indigo-900 px-2 py-0.5 text-xs text-indigo-200",children:"Override active"}),E&&v.jsx("span",{className:"ml-2 rounded bg-yellow-900 px-2 py-0.5 text-xs text-yellow-200",children:"Unsaved"})]})}),v.jsxs("div",{className:"mt-2",children:[v.jsx("label",{className:"text-xs text-gray-400",children:"Model Override"}),v.jsxs("div",{className:"mt-1 flex gap-2",children:[v.jsxs("select",{className:"block flex-1 rounded-md border border-gray-600 bg-gray-800 px-3 py-2 text-sm text-white focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 disabled:opacity-50",value:N??"",onChange:O=>S(x.provider,O.target.value||null),disabled:T,children:[v.jsx("option",{value:"",children:"None (use agent default)"}),j.map(O=>v.jsx("option",{value:O,children:O},O))]}),E&&v.jsxs(v.Fragment,{children:[v.jsx("button",{type:"button",onClick:()=>_(x.provider),disabled:T,className:"rounded-md bg-indigo-600 px-3 py-2 text-sm font-medium text-white hover:bg-indigo-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 disabled:opacity-50",children:T?"Applying...":"Apply"}),v.jsx("button",{type:"button",onClick:()=>w(x.provider),disabled:T,className:"rounded-md border border-gray-600 px-3 py-2 text-sm font-medium text-gray-300 hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-gray-500 disabled:opacity-50",children:"Cancel"})]})]})]})]},x.provider)})})]})}const FX=["openai","anthropic","google","mistral","cohere","deepseek","moonshot","zhipu","minimax","yi"];function WX({agentId:e}){const[t,n]=P.useState([]),[r,o]=P.useState(!0),[l,s]=P.useState(null),[f,d]=P.useState(null),[h,y]=P.useState({}),[p,b]=P.useState(!1),[S,_]=P.useState(""),[w,x]=P.useState("100"),[j,T]=P.useState("60");P.useEffect(()=>{async function z(){try{const L=await _e.get(`/api/agents/${encodeURIComponent(e)}/rate-limits`);n(L.rate_limits),y({}),d(null)}catch(L){d("Failed to load rate limit settings"),console.error(L)}finally{o(!1)}}z()},[e]);const E=new Set(t.map(z=>z.provider)),N=FX.filter(z=>!E.has(z));function O(z,L,B){const H=parseInt(B,10);if(isNaN(H)||H<=0)return;const Y=t.find(k=>k.provider===z),W=h[z]??{max_requests:(Y==null?void 0:Y.max_requests)??100,window_seconds:(Y==null?void 0:Y.window_seconds)??60};y(k=>({...k,[z]:{...W,[L]:H}}))}async function C(z){const L=h[z];if(L){s(z);try{await _e.put(`/api/agents/${encodeURIComponent(e)}/rate-limits/${encodeURIComponent(z)}`,L),n(B=>{const H=B.findIndex(Y=>Y.provider===z);if(H>=0){const Y=[...B];return Y[H]={...Y[H],...L},Y}return[...B,{agent_id:e,provider:z,...L}]}),y(B=>{const H={...B};return delete H[z],H}),d(null)}catch(B){d("Failed to update rate limit"),console.error(B)}finally{s(null)}}}function M(z){y(L=>{const B={...L};return delete B[z],B})}async function D(z){s(z);try{await _e.del(`/api/agents/${encodeURIComponent(e)}/rate-limits/${encodeURIComponent(z)}`),n(L=>L.filter(B=>B.provider!==z)),y(L=>{const B={...L};return delete B[z],B}),d(null)}catch(L){d("Failed to remove rate limit"),console.error(L)}finally{s(null)}}async function $(){if(!S)return;const z=parseInt(w,10),L=parseInt(j,10);if(isNaN(z)||z<=0||isNaN(L)||L<=0){d("Invalid rate limit values");return}s(S);try{await _e.put(`/api/agents/${encodeURIComponent(e)}/rate-limits/${encodeURIComponent(S)}`,{max_requests:z,window_seconds:L}),n(B=>[...B,{agent_id:e,provider:S,max_requests:z,window_seconds:L}]),b(!1),_(""),x("100"),T("60"),d(null)}catch(B){d("Failed to add rate limit"),console.error(B)}finally{s(null)}}return r?v.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:[v.jsx("h2",{className:"text-sm font-semibold text-gray-300",children:"Rate Limits"}),v.jsx("p",{className:"mt-2 text-sm text-gray-400",children:"Loading..."})]}):v.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:[v.jsx("h2",{className:"text-sm font-semibold text-gray-300",children:"Rate Limits"}),v.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"Limit requests per provider for this agent. Requests exceeding the limit will receive a 429 response."}),f&&v.jsx("div",{className:"mt-2 rounded bg-red-900/50 px-3 py-2 text-sm text-red-300",children:f}),v.jsxs("div",{className:"mt-4 space-y-4",children:[t.map(z=>{const L=l===z.provider,B=z.provider in h,H=B?h[z.provider].max_requests:z.max_requests,Y=B?h[z.provider].window_seconds:z.window_seconds;return v.jsxs("div",{className:"rounded-lg border border-gray-600 bg-gray-900 p-3",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx("span",{className:"font-medium capitalize text-white",children:z.provider}),B&&v.jsx("span",{className:"ml-2 rounded bg-yellow-900 px-2 py-0.5 text-xs text-yellow-200",children:"Unsaved"})]}),v.jsx("button",{onClick:()=>D(z.provider),disabled:L,className:"text-xs text-red-400 hover:text-red-300 disabled:opacity-50",children:"Remove"})]}),v.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[v.jsx("input",{type:"number",min:"1",className:"w-20 rounded-md border border-gray-600 bg-gray-800 px-2 py-1 text-sm text-white focus:border-indigo-500 focus:outline-none disabled:opacity-50",value:H,onChange:W=>O(z.provider,"max_requests",W.target.value),disabled:L}),v.jsx("span",{className:"text-xs text-gray-400",children:"requests per"}),v.jsx("input",{type:"number",min:"1",className:"w-20 rounded-md border border-gray-600 bg-gray-800 px-2 py-1 text-sm text-white focus:border-indigo-500 focus:outline-none disabled:opacity-50",value:Y,onChange:W=>O(z.provider,"window_seconds",W.target.value),disabled:L}),v.jsx("span",{className:"text-xs text-gray-400",children:"seconds"}),B&&v.jsxs(v.Fragment,{children:[v.jsx("button",{type:"button",onClick:()=>C(z.provider),disabled:L,className:"ml-2 rounded-md bg-indigo-600 px-3 py-1 text-xs font-medium text-white hover:bg-indigo-500 disabled:opacity-50",children:L?"Applying...":"Apply"}),v.jsx("button",{type:"button",onClick:()=>M(z.provider),disabled:L,className:"rounded-md border border-gray-600 px-3 py-1 text-xs font-medium text-gray-300 hover:bg-gray-700 disabled:opacity-50",children:"Cancel"})]})]})]},z.provider)}),t.length===0&&!p&&v.jsx("p",{className:"text-sm text-gray-400",children:"No rate limits configured. Add one to limit request frequency."}),p&&v.jsx("div",{className:"rounded-lg border border-gray-600 bg-gray-900 p-3",children:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsxs("select",{className:"rounded-md border border-gray-600 bg-gray-800 px-2 py-1 text-sm text-white focus:border-indigo-500 focus:outline-none",value:S,onChange:z=>_(z.target.value),children:[v.jsx("option",{value:"",children:"Select provider"}),N.map(z=>v.jsx("option",{value:z,children:z},z))]}),v.jsx("input",{type:"number",min:"1",placeholder:"Max requests",className:"w-20 rounded-md border border-gray-600 bg-gray-800 px-2 py-1 text-sm text-white focus:border-indigo-500 focus:outline-none",value:w,onChange:z=>x(z.target.value)}),v.jsx("span",{className:"text-xs text-gray-400",children:"per"}),v.jsx("input",{type:"number",min:"1",placeholder:"Seconds",className:"w-20 rounded-md border border-gray-600 bg-gray-800 px-2 py-1 text-sm text-white focus:border-indigo-500 focus:outline-none",value:j,onChange:z=>T(z.target.value)}),v.jsx("span",{className:"text-xs text-gray-400",children:"sec"}),v.jsx("button",{type:"button",onClick:$,disabled:!S||l===S,className:"rounded-md bg-indigo-600 px-3 py-1 text-xs font-medium text-white hover:bg-indigo-500 disabled:opacity-50",children:"Add"}),v.jsx("button",{type:"button",onClick:()=>b(!1),className:"rounded-md border border-gray-600 px-3 py-1 text-xs font-medium text-gray-300 hover:bg-gray-700",children:"Cancel"})]})}),!p&&N.length>0&&v.jsxs("button",{type:"button",onClick:()=>b(!0),className:"flex items-center gap-1 text-sm text-indigo-400 hover:text-indigo-300",children:[v.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),"Add Rate Limit"]})]})]})}function ZX({agentId:e}){const[t]=P.useState(20),n=P.useCallback(()=>_e.get(`/api/events?agent_id=${encodeURIComponent(e)}&event_type=llm_call&limit=${t}`),[e,t]),{data:r,loading:o,error:l,refresh:s}=Ir(n,5e3);if(o&&!r)return v.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:[v.jsx("h2",{className:"text-sm font-semibold text-gray-300",children:"Request Log"}),v.jsx("p",{className:"mt-2 text-sm text-gray-400",children:"Loading..."})]});const f=(r==null?void 0:r.events)??[];return v.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800",children:[v.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[v.jsx("h2",{className:"text-sm font-semibold text-gray-300",children:"Request Log"}),v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsxs("span",{className:"text-xs text-gray-500",children:["Last ",t," LLM calls"]}),v.jsx("button",{onClick:s,disabled:o,className:"rounded p-1 text-gray-400 transition-colors hover:bg-gray-700 hover:text-gray-200 disabled:opacity-50",title:"Reload",children:v.jsx("svg",{className:`h-4 w-4 ${o?"animate-spin":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})})]})]}),l&&v.jsx("div",{className:"mx-4 mb-3 rounded bg-red-900/50 px-3 py-2 text-sm text-red-300",children:l}),f.length===0?v.jsx("div",{className:"px-4 pb-4 text-sm text-gray-400",children:"No LLM calls recorded yet."}):v.jsx("div",{className:"overflow-x-auto",children:v.jsxs("table",{className:"w-full text-left text-sm",children:[v.jsx("thead",{children:v.jsxs("tr",{className:"border-t border-gray-700 bg-gray-900 text-xs uppercase text-gray-400",children:[v.jsx("th",{className:"px-4 py-2 font-medium",children:"Time"}),v.jsx("th",{className:"px-4 py-2 font-medium",children:"Provider"}),v.jsx("th",{className:"px-4 py-2 font-medium",children:"Model"}),v.jsx("th",{className:"px-4 py-2 font-medium text-right",children:"Tokens"}),v.jsx("th",{className:"px-4 py-2 font-medium text-right",children:"Cost"}),v.jsx("th",{className:"px-4 py-2 font-medium text-right",children:"Latency"})]})}),v.jsx("tbody",{className:"divide-y divide-gray-700",children:f.map(d=>{var y;const h=d.requested_model&&d.model&&d.requested_model!==d.model;return v.jsxs("tr",{className:"bg-gray-900 transition-colors hover:bg-gray-800",children:[v.jsx("td",{className:"whitespace-nowrap px-4 py-2 text-gray-300",children:Qf(d.timestamp)}),v.jsx("td",{className:"px-4 py-2 text-gray-300",children:d.provider??"-"}),v.jsx("td",{className:"px-4 py-2",children:h?v.jsxs("div",{className:"flex items-center gap-1",children:[v.jsx("span",{className:"text-gray-500 line-through",children:d.requested_model}),v.jsx("span",{className:"text-gray-400",children:"→"}),v.jsx("span",{className:"font-medium text-indigo-300",children:d.model})]}):v.jsx("span",{className:"text-gray-300",children:d.model??"-"})}),v.jsx("td",{className:"px-4 py-2 text-right text-gray-300",children:((y=d.tokens_total)==null?void 0:y.toLocaleString())??"-"}),v.jsx("td",{className:"px-4 py-2 text-right text-gray-300",children:d.cost_usd!=null?rn(d.cost_usd):"-"}),v.jsx("td",{className:"px-4 py-2 text-right text-gray-300",children:d.latency_ms!=null?`${d.latency_ms}ms`:"-"})]},d.id)})})]})})]})}function nC(e){return e===null?"--":`${e.toFixed(1)}`}function QX(e){return`${e.toFixed(2)}`}function JX(){const{agentId:e}=xC(),t=Jo(),[n,r]=P.useState("24h"),[o,l]=P.useState(""),[s,f]=P.useState(""),[d,h]=P.useState(!1),y=async()=>{if(!(!e||!window.confirm(`Are you sure you want to delete agent "${e}"?
|
|
132
|
+
|
|
133
|
+
This action cannot be undone. All related data (events, alerts, rate limits, model rules) will be permanently deleted.`))){h(!0);try{await _e.delete(`/api/agents/${encodeURIComponent(e)}`),t("/agents")}catch(j){alert(`Failed to delete agent: ${j}`),h(!1)}}},p=P.useCallback(()=>{if(!e)return Promise.reject(new Error("Missing agentId"));let x=`/api/stats/${encodeURIComponent(e)}?range=${n}`;return n==="custom"&&o&&s&&(x+=`&from=${encodeURIComponent(o+"T00:00:00Z")}&to=${encodeURIComponent(s+"T23:59:59Z")}`),_e.get(x)},[e,n,o,s]),{data:b,error:S,loading:_}=Ir(p,3e3),w=P.useMemo(()=>{if(!b)return[];const x=[{label:"Total Requests",value:ar(b.total_requests)},{label:"Total Errors",value:ar(b.total_errors)},{label:"Error Rate (%)",value:QX(b.error_rate)},{label:"Total Cost ($)",value:rn(b.total_cost)},{label:"Tokens Used",value:ar(b.total_tokens)},{label:"P50 Latency (ms)",value:nC(b.p50_latency)},{label:"P99 Latency (ms)",value:nC(b.p99_latency)}];return b.blocked_count>0&&x.push({label:"Blocked Requests",value:ar(b.blocked_count)}),x},[b]);return _&&!b?v.jsx(Ca,{}):v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx(Vr,{to:"/agents",className:"rounded-md bg-gray-700 px-3 py-1.5 text-sm font-medium text-gray-300 transition-colors hover:bg-gray-600 hover:text-white",children:"← Back"}),v.jsx("h1",{className:"text-2xl font-bold text-white",children:e})]}),v.jsx("button",{onClick:y,disabled:d,className:"rounded-md bg-red-600 px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-red-700 disabled:opacity-50",children:d?"Deleting...":"Delete Agent"})]}),S&&v.jsx("div",{className:"mt-4",children:v.jsx(Wn,{message:S})}),v.jsx("div",{className:"mt-6",children:v.jsx(KX,{agentId:e})}),v.jsx("div",{className:"mt-6",children:v.jsx(VX,{agentId:e})}),v.jsx("div",{className:"mt-6",children:v.jsx(XX,{agentId:e})}),v.jsx("div",{className:"mt-6",children:v.jsx(WX,{agentId:e})}),v.jsx("div",{className:"mt-6",children:v.jsx(ZX,{agentId:e})}),v.jsx("div",{className:"mt-6",children:v.jsx(JR,{value:n,onChange:r,customFrom:o,customTo:s,onCustomFromChange:l,onCustomToChange:f})}),b&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"mt-6 grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-7",children:w.map(x=>v.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 px-4 py-3",children:[v.jsx("p",{className:"text-xs text-gray-400",children:x.label}),v.jsx("p",{className:"mt-1 text-2xl font-bold text-white",children:x.value})]},x.label))}),v.jsxs("div",{className:"mt-8 rounded-lg border border-gray-700 bg-gray-800 p-4",children:[v.jsx("h2",{className:"mb-4 text-sm font-semibold text-gray-300",children:"Token Usage Over Time"}),v.jsx(YX,{series:b.token_series})]}),b.cost_by_model.length>0&&v.jsxs("div",{className:"mt-8 overflow-hidden rounded-lg border border-gray-700",children:[v.jsx("h2",{className:"bg-gray-800 px-4 py-3 text-sm font-semibold text-gray-300",children:"Cost Breakdown by Model"}),v.jsxs("table",{className:"w-full text-left text-sm",children:[v.jsx("thead",{children:v.jsxs("tr",{className:"bg-gray-800 text-xs uppercase text-gray-400",children:[v.jsx("th",{className:"px-4 py-3 font-medium",children:"Model"}),v.jsx("th",{className:"px-4 py-3 font-medium",children:"Provider"}),v.jsx("th",{className:"px-4 py-3 font-medium text-right",children:"Cost ($)"}),v.jsx("th",{className:"px-4 py-3 font-medium text-right",children:"Count"})]})}),v.jsx("tbody",{className:"divide-y divide-gray-700",children:b.cost_by_model.map(x=>v.jsxs("tr",{className:"bg-gray-900 transition-colors hover:bg-gray-800",children:[v.jsx("td",{className:"px-4 py-3 font-medium text-white",children:x.model}),v.jsx("td",{className:"px-4 py-3 text-gray-300",children:x.provider}),v.jsx("td",{className:"px-4 py-3 text-right text-gray-300",children:rn(x.cost)}),v.jsx("td",{className:"px-4 py-3 text-right text-gray-300",children:ar(x.count)})]},`${x.model}-${x.provider}`))})]})]}),b.blocked_count>0&&Object.keys(b.block_reasons).length>0&&v.jsxs("div",{className:"mt-8 overflow-hidden rounded-lg border border-gray-700",children:[v.jsx("h2",{className:"bg-gray-800 px-4 py-3 text-sm font-semibold text-gray-300",children:"Blocked Requests by Reason"}),v.jsx("div",{className:"bg-gray-900 p-4",children:v.jsx("div",{className:"flex flex-wrap gap-4",children:Object.entries(b.block_reasons).map(([x,j])=>v.jsxs("div",{className:"flex items-center gap-2 rounded-lg border border-red-800 bg-red-900/20 px-3 py-2",children:[v.jsx("span",{className:"text-sm font-medium text-red-400",children:x.replace(/_/g," ")}),v.jsx("span",{className:"rounded-full bg-red-800 px-2 py-0.5 text-xs font-medium text-white",children:ar(j)})]},x))})})]})]})]})}const e4=P.createContext({isLoopback:!1,loading:!0});function eF({children:e}){const[t,n]=P.useState(!1),[r,o]=P.useState(!0);return P.useEffect(()=>{yn.getConnectionInfo().then(l=>{n(l.isLoopback)}).catch(()=>{n(!1)}).finally(()=>{o(!1)})},[]),v.jsx(e4.Provider,{value:{isLoopback:t,loading:r},children:e})}function t4(){return P.useContext(e4)}const tF={openai:"O",anthropic:"A",google:"G",mistral:"M",cohere:"C",deepseek:"D",moonshot:"m",zhipu:"Z",minimax:"X",yi:"Y"},nF={openai:"OpenAI (GPT-4o, o1, o3)",anthropic:"Anthropic (Claude Opus, Sonnet, Haiku)",google:"Google (Gemini)",mistral:"Mistral (Mistral Large, Codestral)",cohere:"Cohere (Command R+)",deepseek:"DeepSeek (V3, R1)",moonshot:"Moonshot (Kimi K2.5)",zhipu:"Zhipu / Z.ai (GLM-4.7)",minimax:"MiniMax (M2)",yi:"Yi / 01.ai (Yi-Large)"};function rF(){const{isLoopback:e}=t4(),[t,n]=P.useState(!1),[r,o]=P.useState(null),l=P.useCallback(()=>yn.list(),[]),{data:s,error:f,loading:d,refresh:h}=Ir(l,3e3),y=(s==null?void 0:s.providers.filter(b=>b.configured))??[];async function p(b){o(b.name);try{await yn.toggle(b.name,!b.active),h()}catch(S){console.error("Failed to toggle provider active state:",S)}finally{o(null)}}return d&&!s?v.jsx(Ca,{}):v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx("h1",{className:"text-2xl font-bold text-white",children:"Providers"}),v.jsx("p",{className:"text-sm text-gray-400",children:"Manage LLM provider connections and settings"})]}),v.jsxs("div",{className:"relative",children:[v.jsx("button",{onClick:()=>n(!0),disabled:!e,className:`rounded-md px-4 py-2 text-sm font-medium transition-colors ${e?"bg-blue-600 text-white hover:bg-blue-700":"cursor-not-allowed bg-gray-700 text-gray-500"}`,title:e?"Add a new provider":"Only available from localhost for API key security",children:"+ Add Provider"}),!e&&v.jsx("div",{className:"absolute right-0 top-full mt-1 w-64 rounded bg-gray-800 p-2 text-xs text-gray-400 shadow-lg",children:"Only available from localhost for API key security"})]})]}),f&&v.jsx("div",{className:"mt-4",children:v.jsx(Wn,{message:f})}),y.length===0&&v.jsxs("div",{className:"mt-8 rounded-lg border border-gray-700 bg-gray-800 px-6 py-12 text-center",children:[v.jsx("p",{className:"text-gray-400",children:"No providers configured yet."}),v.jsx("p",{className:"mt-1 text-sm text-gray-500",children:'Click "Add Provider" to get started.'})]}),y.length>0&&v.jsx("div",{className:"mt-4 overflow-hidden rounded-lg border border-gray-700",children:v.jsxs("table",{className:"w-full text-left text-sm",children:[v.jsx("thead",{children:v.jsxs("tr",{className:"bg-gray-800 text-xs uppercase text-gray-400",children:[v.jsx("th",{className:"px-4 py-3 font-medium",children:"Provider"}),v.jsx("th",{className:"px-4 py-3 font-medium text-center",children:"Active"}),v.jsx("th",{className:"px-4 py-3 font-medium text-right",children:"Agents"}),v.jsx("th",{className:"px-4 py-3 font-medium text-right",children:"Total Tokens"}),v.jsx("th",{className:"px-4 py-3 font-medium text-right",children:"Total Cost"}),v.jsx("th",{className:"px-4 py-3 font-medium text-right",children:"Today"})]})}),v.jsx("tbody",{className:"divide-y divide-gray-700",children:y.map(b=>{const S=r===b.name,_=tF[b.name]||b.name[0].toUpperCase();return v.jsxs("tr",{className:"bg-gray-900 transition-colors hover:bg-gray-800",children:[v.jsx("td",{className:"px-4 py-3",children:v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-gray-800 text-sm font-bold text-white",children:_}),v.jsx(Vr,{to:`/providers/${b.name}`,className:"font-medium capitalize text-blue-400 hover:text-blue-300",children:b.name})]})}),v.jsx("td",{className:"px-4 py-3 text-center",children:v.jsx("button",{onClick:()=>p(b),disabled:S,className:`relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors focus:outline-none disabled:opacity-50 ${b.active?"bg-green-600":"bg-gray-600"}`,role:"switch","aria-checked":b.active,children:v.jsx("span",{className:`pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition-transform ${b.active?"translate-x-5":"translate-x-0"}`})})}),v.jsx("td",{className:"px-4 py-3 text-right text-gray-300",children:b.agent_count.toLocaleString()}),v.jsx("td",{className:"px-4 py-3 text-right text-gray-300",children:b.total_tokens.toLocaleString()}),v.jsx("td",{className:"px-4 py-3 text-right text-gray-300",children:rn(b.total_cost)}),v.jsx("td",{className:"px-4 py-3 text-right text-gray-300",children:rn(b.today_cost)})]},b.name)})})]})}),t&&v.jsx(aF,{onClose:()=>n(!1),onSuccess:()=>{n(!1),h()}})]})}function aF({onClose:e,onSuccess:t}){const[n,r]=P.useState(""),[o,l]=P.useState(""),[s,f]=P.useState(!1),[d,h]=P.useState(null),[y,p]=P.useState(null),b=["openai","anthropic","google","mistral","cohere","deepseek","moonshot","zhipu","minimax","yi"];async function S(_){if(_.preventDefault(),!(!n||!o)){f(!0),h(null),p(null);try{const w=await yn.add(n,o);p({validated:w.validated,error:w.error}),w.success&&setTimeout(t,1500)}catch(w){h(String(w))}finally{f(!1)}}}return v.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",children:v.jsxs("div",{className:"w-full max-w-md rounded-lg bg-gray-900 p-6 shadow-xl",children:[v.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[v.jsx("h2",{className:"text-lg font-medium text-white",children:"Add Provider"}),v.jsx("button",{onClick:e,className:"text-gray-400 hover:text-white",children:v.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),v.jsxs("form",{onSubmit:S,className:"space-y-4",children:[v.jsxs("div",{children:[v.jsx("label",{className:"block text-sm font-medium text-gray-300",children:"Provider"}),v.jsxs("select",{value:n,onChange:_=>r(_.target.value),className:"mt-1 block w-full rounded-md border border-gray-700 bg-gray-800 px-3 py-2 text-white focus:border-blue-500 focus:outline-none",required:!0,children:[v.jsx("option",{value:"",children:"Select a provider..."}),b.map(_=>v.jsx("option",{value:_,children:nF[_]||_.charAt(0).toUpperCase()+_.slice(1)},_))]})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block text-sm font-medium text-gray-300",children:"API Key"}),v.jsx("input",{type:"password",value:o,onChange:_=>l(_.target.value),placeholder:"sk-...",className:"mt-1 block w-full rounded-md border border-gray-700 bg-gray-800 px-3 py-2 text-white placeholder-gray-500 focus:border-blue-500 focus:outline-none",required:!0})]}),d&&v.jsx("div",{className:"rounded bg-red-900/20 p-2 text-sm text-red-400",children:d}),y&&v.jsx("div",{className:`rounded p-2 text-sm ${y.validated?"bg-green-900/20 text-green-400":"bg-yellow-900/20 text-yellow-400"}`,children:y.validated?"API key validated successfully! Provider saved.":`Provider saved, but validation failed: ${y.error}`}),v.jsxs("div",{className:"flex justify-end gap-3 pt-2",children:[v.jsx("button",{type:"button",onClick:e,className:"rounded-md px-4 py-2 text-sm text-gray-400 hover:text-white",children:"Cancel"}),v.jsx("button",{type:"submit",disabled:s||!n||!o,className:"rounded-md bg-blue-600 px-4 py-2 text-sm font-medium text-white hover:bg-blue-700 disabled:opacity-50",children:s?"Testing...":"Test & Save"})]})]})]})})}const rC=[{label:"1h",value:"1h",ms:3600*1e3},{label:"24h",value:"24h",ms:1440*60*1e3},{label:"7d",value:"7d",ms:10080*60*1e3},{label:"30d",value:"30d",ms:720*60*60*1e3}],aC=["#3b82f6","#10b981","#f59e0b","#ef4444","#8b5cf6","#ec4899"];function iF(){const{name:e}=xC(),t=Jo(),[n,r]=P.useState(null),[o,l]=P.useState([]),[s,f]=P.useState(null),[d,h]=P.useState("24h"),[y,p]=P.useState(!0),[b,S]=P.useState(null),[_,w]=P.useState(!1),[x,j]=P.useState(!0),[T,E]=P.useState(!1),[N,O]=P.useState(100),[C,M]=P.useState(60),[D,$]=P.useState(!1),[z,L]=P.useState(""),[B,H]=P.useState(!1),[Y,W]=P.useState(null),[k,X]=P.useState(!1),[F,oe]=P.useState(null);P.useEffect(()=>{e&&se()},[e,d]);async function se(){if(e)try{p(!0);const[le,Se,qe]=await Promise.all([yn.getSettings(e),yn.getModels(e),yn.getStats(e,new Date(Date.now()-rC.find(ce=>ce.value===d).ms).toISOString())]);r(le),l(Se.models),f(qe),j(le.active),E(!!le.rate_limit),le.rate_limit&&(O(le.rate_limit.max_requests),M(le.rate_limit.window_seconds)),S(null)}catch(le){S(String(le))}finally{p(!1)}}async function q(){if(e){$(!0);try{await yn.updateSettings(e,{active:x,rate_limit:T?{max_requests:N,window_seconds:C}:null}),await se()}catch(le){S(String(le))}finally{$(!1)}}}async function K(){if(e){X(!0),oe(null);try{const le=await yn.validate(e);oe(le)}catch(le){oe({valid:!1,error:String(le)})}finally{X(!1)}}}async function re(){if(!(!e||!z.trim())){H(!0),W(null);try{const le=await yn.testModel(e,z.trim());le.exists?(W({success:!0}),L(""),await se()):W({success:!1,error:le.error||"Model not found"})}catch(le){W({success:!1,error:String(le)})}finally{H(!1)}}}async function fe(le){if(e)try{await yn.removeModel(e,le),await se()}catch(Se){S(String(Se))}}async function pe(){if(!(!e||!window.confirm(`Are you sure you want to delete provider "${e}"?
|
|
134
|
+
|
|
135
|
+
This will remove the API key and all provider settings.`))){w(!0);try{await yn.remove(e),t("/providers")}catch(Se){S(String(Se)),w(!1)}}}return y?v.jsx("div",{className:"flex h-64 items-center justify-center",children:v.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-gray-600 border-t-blue-500"})}):b?v.jsxs("div",{className:"rounded-lg bg-red-900/20 p-4 text-red-400",children:["Error: ",b]}):v.jsxs("div",{className:"space-y-6",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx(Vr,{to:"/providers",className:"text-gray-400 hover:text-white",children:v.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}),v.jsxs("div",{children:[v.jsx("h1",{className:"text-2xl font-bold capitalize text-white",children:e}),v.jsx("p",{className:"text-sm text-gray-400",children:"Provider configuration and statistics"})]})]}),v.jsxs("div",{className:"flex gap-2",children:[v.jsx("button",{onClick:K,disabled:k,className:"rounded-md bg-gray-700 px-4 py-2 text-sm font-medium text-white hover:bg-gray-600 disabled:opacity-50",children:k?"Testing...":"Test Connection"}),v.jsx("button",{onClick:pe,disabled:_,className:"rounded-md bg-red-600 px-4 py-2 text-sm font-medium text-white hover:bg-red-700 disabled:opacity-50",children:_?"Deleting...":"Delete Provider"})]})]}),F&&v.jsx("div",{className:`rounded-lg p-3 ${F.valid?"bg-green-900/20 text-green-400":"bg-red-900/20 text-red-400"}`,children:F.valid?"Connection successful!":`Connection failed: ${F.error}`}),v.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6",children:[v.jsx("h2",{className:"mb-4 text-lg font-medium text-white",children:"Settings"}),v.jsxs("div",{className:"space-y-4",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx("label",{className:"font-medium text-white",children:"Active"}),v.jsx("p",{className:"text-sm text-gray-400",children:"Deactivated providers block all requests"})]}),v.jsx("button",{onClick:()=>j(!x),className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${x?"bg-blue-600":"bg-gray-600"}`,children:v.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${x?"translate-x-6":"translate-x-1"}`})})]}),v.jsxs("div",{className:"space-y-2",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx("label",{className:"font-medium text-white",children:"Rate Limit"}),v.jsx("p",{className:"text-sm text-gray-400",children:"Limit requests per time window"})]}),v.jsx("button",{onClick:()=>E(!T),className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${T?"bg-blue-600":"bg-gray-600"}`,children:v.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${T?"translate-x-6":"translate-x-1"}`})})]}),T&&v.jsxs("div",{className:"mt-2 flex gap-4",children:[v.jsxs("div",{children:[v.jsx("label",{className:"block text-sm text-gray-400",children:"Max Requests"}),v.jsx("input",{type:"number",value:N,onChange:le=>O(Number(le.target.value)),className:"mt-1 w-24 rounded border border-gray-700 bg-gray-800 px-2 py-1 text-white",min:1})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block text-sm text-gray-400",children:"Window (seconds)"}),v.jsx("input",{type:"number",value:C,onChange:le=>M(Number(le.target.value)),className:"mt-1 w-24 rounded border border-gray-700 bg-gray-800 px-2 py-1 text-white",min:1})]})]})]}),v.jsx("div",{className:"pt-2",children:v.jsx("button",{onClick:q,disabled:D,className:"rounded-md bg-blue-600 px-4 py-2 text-sm font-medium text-white hover:bg-blue-700 disabled:opacity-50",children:D?"Saving...":"Save Settings"})})]})]}),v.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6",children:[v.jsx("h2",{className:"mb-4 text-lg font-medium text-white",children:"Models"}),v.jsxs("div",{className:"mb-4 flex gap-2",children:[v.jsx("input",{type:"text",value:z,onChange:le=>L(le.target.value),placeholder:"Enter model ID (e.g., gpt-4o-mini)",className:"flex-1 rounded border border-gray-700 bg-gray-800 px-3 py-2 text-white placeholder-gray-500"}),v.jsx("button",{onClick:re,disabled:B||!z.trim(),className:"rounded-md bg-blue-600 px-4 py-2 text-sm font-medium text-white hover:bg-blue-700 disabled:opacity-50",children:B?"Testing...":"Test & Add"})]}),Y&&v.jsx("div",{className:`mb-4 rounded p-2 text-sm ${Y.success?"bg-green-900/20 text-green-400":"bg-red-900/20 text-red-400"}`,children:Y.success?"Model verified and added!":`Failed: ${Y.error}`}),v.jsxs("div",{className:"space-y-2",children:[o.map(le=>v.jsxs("div",{className:"flex items-center justify-between rounded border border-gray-800 bg-gray-800/50 px-3 py-2",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-white",children:le.id}),le.verified&&v.jsx("span",{className:"rounded-full bg-green-900/30 px-2 py-0.5 text-xs text-green-400",children:"Verified"}),le.custom&&v.jsx("span",{className:"rounded-full bg-blue-900/30 px-2 py-0.5 text-xs text-blue-400",children:"Custom"})]}),le.custom&&v.jsx("button",{onClick:()=>fe(le.id),className:"text-gray-400 hover:text-red-400",children:v.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},le.id)),o.length===0&&v.jsx("p",{className:"text-center text-gray-500",children:"No models available"})]})]}),v.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6",children:[v.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[v.jsx("h2",{className:"text-lg font-medium text-white",children:"Usage Statistics"}),v.jsx("div",{className:"flex gap-1",children:rC.map(le=>v.jsx("button",{onClick:()=>h(le.value),className:`rounded px-3 py-1 text-sm ${d===le.value?"bg-blue-600 text-white":"bg-gray-800 text-gray-400 hover:bg-gray-700"}`,children:le.label},le.value))})]}),v.jsxs("div",{className:"mb-6 grid gap-4 sm:grid-cols-3",children:[v.jsx(s0,{label:"Total Requests",value:(s==null?void 0:s.total_requests)??0}),v.jsx(s0,{label:"Total Tokens",value:(s==null?void 0:s.total_tokens)??0,format:le=>le.toLocaleString()}),v.jsx(s0,{label:"Total Cost",value:(s==null?void 0:s.total_cost)??0,format:le=>`$${le.toFixed(4)}`})]}),(s==null?void 0:s.by_model)&&s.by_model.length>0&&v.jsxs("div",{children:[v.jsx("h3",{className:"mb-2 text-sm font-medium text-gray-400",children:"Cost by Model"}),v.jsx("div",{className:"h-64",children:v.jsx(fd,{width:"100%",height:"100%",children:v.jsxs(LX,{children:[v.jsx(Zr,{data:s.by_model,dataKey:"cost",nameKey:"model",cx:"50%",cy:"50%",outerRadius:80,label:({model:le,cost:Se})=>`${le}: $${Se.toFixed(4)}`,children:s.by_model.map((le,Se)=>v.jsx(dd,{fill:aC[Se%aC.length]},Se))}),v.jsx(gn,{contentStyle:{backgroundColor:"#1f2937",border:"1px solid #374151"},formatter:le=>[`$${le.toFixed(4)}`,"Cost"]})]})})})]})]})]})}function s0({label:e,value:t,format:n}){return v.jsxs("div",{className:"rounded-lg bg-gray-800 p-4",children:[v.jsx("p",{className:"text-sm text-gray-400",children:e}),v.jsx("p",{className:"mt-1 text-2xl font-bold text-white",children:n?n(t):t})]})}function kb({value:e,onChange:t,options:n,label:r}){return v.jsxs("select",{value:e,onChange:o=>t(o.target.value),className:"rounded-md border border-gray-600 bg-gray-900 px-3 py-2 text-sm text-gray-100 focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500",children:[v.jsxs("option",{value:"",children:["All ",r]}),n.map(o=>v.jsx("option",{value:o.value,children:o.label},o.value))]})}function oF({series:e,range:t="24h"}){return e.length===0?v.jsx("div",{className:"flex h-[300px] items-center justify-center text-sm text-gray-500",children:"No cost data available"}):v.jsx(fd,{width:"100%",height:300,children:v.jsxs(QR,{data:e,margin:{top:4,right:4,bottom:0,left:0},children:[v.jsx("defs",{children:v.jsxs("linearGradient",{id:"costGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[v.jsx("stop",{offset:"5%",stopColor:"#3b82f6",stopOpacity:.3}),v.jsx("stop",{offset:"95%",stopColor:"#3b82f6",stopOpacity:0})]})}),v.jsx(Oi,{dataKey:"timestamp",tickFormatter:n=>{const r=new Date(n);return t==="1h"?r.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):t==="24h"?r.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):r.toLocaleDateString([],{month:"short",day:"numeric"})},tick:{fill:"#6b7280",fontSize:11},axisLine:{stroke:"#374151"},tickLine:{stroke:"#374151"},interval:"preserveStartEnd"}),v.jsx(Ai,{tick:{fill:"#6b7280",fontSize:11},axisLine:{stroke:"#374151"},tickLine:{stroke:"#374151"},tickFormatter:n=>`$${n.toFixed(2)}`,width:65}),v.jsx(gn,{contentStyle:{backgroundColor:"#1f2937",border:"1px solid #374151",borderRadius:6,color:"#e5e7eb",fontSize:12},formatter:(n,r)=>[r==="cost"?`$${n.toFixed(4)}`:n.toLocaleString(),r==="cost"?"Cost":"Tokens"],labelFormatter:n=>{const r=new Date(n);return t==="1h"||t==="24h"?r.toLocaleString([],{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):r.toLocaleDateString([],{weekday:"short",month:"short",day:"numeric"})}}),v.jsx(Qr,{type:"monotone",dataKey:"cost",stroke:"#3b82f6",fill:"url(#costGradient)",strokeWidth:2})]})})}function lF(){const[e,t]=P.useState("24h"),[n,r]=P.useState(""),o=P.useCallback(()=>{const h=new URLSearchParams;return h.set("range",e),n&&h.set("model",n),_e.get(`/api/stats/overview?${h.toString()}`)},[e,n]),{data:l,error:s,loading:f}=Ir(o,1e4),d=((l==null?void 0:l.available_models)??[]).map(h=>({value:h,label:h}));return f&&!l?v.jsx(Ca,{}):v.jsxs("div",{children:[v.jsx("h1",{className:"text-2xl font-bold text-white",children:"Costs"}),s&&v.jsx("div",{className:"mt-4",children:v.jsx(Wn,{message:s})}),v.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-3",children:[v.jsx(JR,{value:e,onChange:h=>t(h),showCustom:!1}),d.length>0&&v.jsx(kb,{value:n,onChange:r,options:d,label:"Models"})]}),l&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"mt-6 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[v.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 px-4 py-3",children:[v.jsx("p",{className:"text-xs text-gray-400",children:"Total Cost"}),v.jsx("p",{className:"mt-1 text-2xl font-bold text-white",children:rn(l.total_cost)})]}),v.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 px-4 py-3",children:[v.jsx("p",{className:"text-xs text-gray-400",children:"Avg Cost / Request"}),v.jsx("p",{className:"mt-1 text-2xl font-bold text-white",children:rn(l.avg_cost_per_request)})]}),v.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 px-4 py-3",children:[v.jsx("p",{className:"text-xs text-gray-400",children:"Total Tokens"}),v.jsx("p",{className:"mt-1 text-2xl font-bold text-white",children:ar(l.total_tokens)})]}),v.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 px-4 py-3",children:[v.jsx("p",{className:"text-xs text-gray-400",children:"Active Models"}),v.jsx("p",{className:"mt-1 text-2xl font-bold text-white",children:l.active_models})]})]}),v.jsxs("div",{className:"mt-8 rounded-lg border border-gray-700 bg-gray-800 p-4",children:[v.jsx("h2",{className:"mb-4 text-sm font-semibold text-gray-300",children:"Cost Trend"}),v.jsx(oF,{series:l.cost_series,range:e})]}),l.cost_by_model.length>0&&v.jsxs("div",{className:"mt-8 overflow-hidden rounded-lg border border-gray-700",children:[v.jsx("h2",{className:"bg-gray-800 px-4 py-3 text-sm font-semibold text-gray-300",children:"Cost by Model"}),v.jsxs("table",{className:"w-full text-left text-sm",children:[v.jsx("thead",{children:v.jsxs("tr",{className:"bg-gray-800 text-xs uppercase text-gray-400",children:[v.jsx("th",{className:"px-4 py-3 font-medium",children:"Model"}),v.jsx("th",{className:"px-4 py-3 font-medium",children:"Provider"}),v.jsx("th",{className:"px-4 py-3 font-medium text-right",children:"Cost"}),v.jsx("th",{className:"px-4 py-3 font-medium text-right",children:"Requests"})]})}),v.jsx("tbody",{className:"divide-y divide-gray-700",children:l.cost_by_model.map(h=>v.jsxs("tr",{className:"bg-gray-900 transition-colors hover:bg-gray-800",children:[v.jsx("td",{className:"px-4 py-3 font-medium text-white",children:h.model}),v.jsx("td",{className:"px-4 py-3 text-gray-300",children:h.provider}),v.jsx("td",{className:"px-4 py-3 text-right text-gray-300",children:rn(h.cost)}),v.jsx("td",{className:"px-4 py-3 text-right text-gray-300",children:ar(h.count)})]},`${h.model}-${h.provider}`))})]})]}),l.cost_by_model.length===0&&v.jsx("div",{className:"mt-8 rounded-lg border border-gray-700 bg-gray-800 px-6 py-12 text-center",children:v.jsx("p",{className:"text-gray-400",children:"No cost data available for this period."})})]})]})}function uF(e,t){switch(e){case"agent_down":return`Inactive > ${t.duration_minutes??"?"}min`;case"error_rate":return`Errors > ${t.threshold??"?"}% / ${t.window_minutes??"?"}min`;case"budget":return`Cost > $${(t.threshold??0).toFixed(2)}`;case"kill_switch":return"Loop detected";default:return JSON.stringify(t)}}function iC(e){switch(e){case"agent_down":return{duration_minutes:5};case"error_rate":return{threshold:10,window_minutes:15};case"budget":return{threshold:100};case"kill_switch":return{}}}function oC(){return{host:"",port:587,secure:!1,user:"",pass:"",from:"",to:""}}function lC(){return{bot_token:"",chat_id:"",message_template:"[From AgentGazer] Alert: {rule_type} - Agent: {agent_id} - {message}"}}const sF={agent_down:"bg-red-900/50 text-red-400 border-red-700",error_rate:"bg-yellow-900/50 text-yellow-400 border-yellow-700",budget:"bg-blue-900/50 text-blue-400 border-blue-700",kill_switch:"bg-purple-900/50 text-purple-400 border-purple-700"};function uC({type:e}){const t=sF[e]??"bg-gray-800 text-gray-400 border-gray-600",n=fF[e]??e.replace("_"," ");return v.jsx("span",{className:`inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium ${t}`,children:n})}function cF({type:e}){const t={webhook:v.jsx("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"})}),email:v.jsx("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75"})}),telegram:v.jsx("svg",{className:"h-3.5 w-3.5",fill:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{d:"M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"})})},n={webhook:"webhook",email:"email",telegram:"telegram"},r=e??"webhook";return v.jsxs("span",{className:"inline-flex items-center gap-1 text-xs text-gray-500",children:[t[r],n[r]]})}const sC=[{value:"agent_down",label:"Agent Inactive"},{value:"error_rate",label:"Error Rate"},{value:"budget",label:"Budget Exceeded"},{value:"kill_switch",label:"Kill Switch (Loop)"}],fF={agent_down:"Agent Inactive",error_rate:"Error Rate",budget:"Budget Exceeded",kill_switch:"Kill Switch"},dF=[{value:"webhook",label:"Webhook"},{value:"email",label:"Email (SMTP)"},{value:"telegram",label:"Telegram Bot"}],c0=20,f0=20;function hF({initial:e,editId:t,onSave:n,onCancel:r}){const[o,l]=P.useState([]),[s,f]=P.useState(!0),[d,h]=P.useState(()=>e?{agent_id:e.agent_id,rule_type:e.rule_type,config:{...e.config},notification_type:e.notification_type??"webhook",webhook_url:e.webhook_url??"",smtp_config:e.smtp_config??oC(),telegram_config:e.telegram_config??lC()}:{agent_id:"",rule_type:"agent_down",config:iC("agent_down"),notification_type:"webhook",webhook_url:"",smtp_config:oC(),telegram_config:lC()}),[y,p]=P.useState(!1),[b,S]=P.useState(null);P.useEffect(()=>{_e.get("/api/agents?limit=1000").then(N=>{l(N.agents),!t&&!d.agent_id&&N.agents.length>0&&h(O=>({...O,agent_id:N.agents[0].agent_id}))}).catch(()=>l([])).finally(()=>f(!1))},[t,d.agent_id]);function _(N){h(O=>({...O,rule_type:N,config:iC(N)}))}function w(N,O){const C=parseFloat(O);h(M=>({...M,config:{...M.config,[N]:isNaN(C)?0:C}}))}function x(N,O){h(C=>({...C,smtp_config:{...C.smtp_config,[N]:O}}))}function j(N,O){h(C=>({...C,telegram_config:{...C.telegram_config,[N]:O}}))}async function T(N){N.preventDefault(),p(!0),S(null);const O={agent_id:d.agent_id,rule_type:d.rule_type,config:d.config,notification_type:d.notification_type};d.notification_type==="webhook"?O.webhook_url=d.webhook_url||void 0:d.notification_type==="email"?O.smtp_config=d.smtp_config:d.notification_type==="telegram"&&(O.telegram_config=d.telegram_config);try{t?await _e.put(`/api/alerts/${t}`,O):await _e.post("/api/alerts",O),n()}catch(C){S(C instanceof Error?C.message:"Failed to save")}finally{p(!1)}}const E="mt-1 block w-full rounded-md border border-gray-600 bg-gray-900 px-3 py-2 text-sm text-gray-100 placeholder-gray-500 focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500";return v.jsxs("form",{onSubmit:T,className:"rounded-lg border border-gray-700 bg-gray-800 p-5",children:[v.jsx("h3",{className:"text-sm font-semibold text-white",children:t?"Edit Alert Rule":"New Alert Rule"}),b&&v.jsx("div",{className:"mt-3",children:v.jsx(Wn,{message:b})}),v.jsxs("div",{className:"mt-4 grid grid-cols-1 gap-4 sm:grid-cols-2",children:[v.jsxs("div",{children:[v.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"Agent"}),s?v.jsx("div",{className:"mt-1 text-sm text-gray-500",children:"Loading agents..."}):o.length===0?v.jsxs("div",{className:"mt-1",children:[v.jsx("input",{type:"text",value:d.agent_id,onChange:N=>h(O=>({...O,agent_id:N.target.value})),className:E,placeholder:"my-agent",required:!0}),v.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"No agents found. Enter agent ID manually."})]}):v.jsxs("select",{value:d.agent_id,onChange:N=>h(O=>({...O,agent_id:N.target.value})),className:E,required:!0,children:[v.jsx("option",{value:"",children:"Select an agent..."}),o.map(N=>v.jsx("option",{value:N.agent_id,children:N.agent_id},N.agent_id))]})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"Rule Type"}),v.jsxs("select",{value:d.rule_type,onChange:N=>_(N.target.value),className:E,children:[v.jsx("option",{value:"agent_down",children:"Agent Inactive (no activity for X minutes)"}),v.jsx("option",{value:"error_rate",children:"Error Rate (% errors in time window)"}),v.jsx("option",{value:"budget",children:"Budget Exceeded (daily spend threshold)"}),v.jsx("option",{value:"kill_switch",children:"Kill Switch (notify when loop detected)"})]})]})]}),v.jsxs("div",{className:"mt-4 grid grid-cols-1 gap-4 sm:grid-cols-2",children:[d.rule_type==="agent_down"&&v.jsxs("div",{children:[v.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"Inactive Duration (minutes)"}),v.jsx("input",{type:"number",min:1,value:d.config.duration_minutes??5,onChange:N=>w("duration_minutes",N.target.value),className:E}),v.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"Alert when agent has no activity for this many minutes"})]}),d.rule_type==="error_rate"&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{children:[v.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"Error Threshold (%)"}),v.jsx("input",{type:"number",min:0,max:100,step:.1,value:d.config.threshold??10,onChange:N=>w("threshold",N.target.value),className:E})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"Time Window (minutes)"}),v.jsx("input",{type:"number",min:1,value:d.config.window_minutes??15,onChange:N=>w("window_minutes",N.target.value),className:E})]})]}),d.rule_type==="budget"&&v.jsxs("div",{children:[v.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"Daily Budget Threshold (USD)"}),v.jsx("input",{type:"number",min:0,step:.01,value:d.config.threshold??100,onChange:N=>w("threshold",N.target.value),className:E}),v.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"Alert when daily spend exceeds this amount"})]}),d.rule_type==="kill_switch"&&v.jsx("div",{className:"sm:col-span-2",children:v.jsxs("div",{className:"rounded-md border border-purple-700 bg-purple-900/20 p-4",children:[v.jsx("p",{className:"text-sm font-medium text-purple-300",children:"Kill Switch Alert"}),v.jsx("p",{className:"mt-1 text-xs text-purple-300/80",children:"This alert fires automatically when the kill switch detects an agent stuck in an infinite loop. Enable Kill Switch in the agent's detail page first, then create this alert rule to receive notifications."}),v.jsx("p",{className:"mt-2 text-xs text-gray-400",children:"No additional configuration required - the alert triggers on any loop detection event."})]})})]}),v.jsxs("div",{className:"mt-6 border-t border-gray-700 pt-4",children:[v.jsx("h4",{className:"text-sm font-medium text-white",children:"Notification Settings"}),v.jsxs("div",{className:"mt-3",children:[v.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"Notification Method"}),v.jsx("select",{value:d.notification_type,onChange:N=>h(O=>({...O,notification_type:N.target.value})),className:E,children:dF.map(N=>v.jsx("option",{value:N.value,children:N.label},N.value))})]})]}),d.notification_type==="webhook"&&v.jsxs("div",{className:"mt-4 space-y-3",children:[v.jsxs("div",{children:[v.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"Webhook URL"}),v.jsx("input",{type:"url",value:d.webhook_url,onChange:N=>h(O=>({...O,webhook_url:N.target.value})),className:E,placeholder:"https://hooks.example.com/webhook",required:!0})]}),v.jsxs("div",{className:"rounded-md bg-gray-900 p-3",children:[v.jsx("p",{className:"text-xs font-medium text-gray-400",children:"Webhook Payload Format"}),v.jsx("pre",{className:"mt-2 overflow-x-auto text-xs text-gray-300",children:`POST <your-webhook-url>
|
|
136
|
+
Content-Type: application/json
|
|
137
|
+
|
|
138
|
+
{
|
|
139
|
+
"agent_id": "my-agent",
|
|
140
|
+
"rule_type": "agent_down",
|
|
141
|
+
"message": "Agent \\"my-agent\\" last heartbeat was 10 minutes ago",
|
|
142
|
+
"timestamp": "2026-02-06T12:00:00.000Z"
|
|
143
|
+
}`})]})]}),d.notification_type==="email"&&v.jsxs("div",{className:"mt-4 space-y-3",children:[v.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[v.jsxs("div",{children:[v.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"SMTP Host"}),v.jsx("input",{type:"text",value:d.smtp_config.host,onChange:N=>x("host",N.target.value),className:E,placeholder:"smtp.gmail.com",required:!0})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"SMTP Port"}),v.jsx("input",{type:"number",value:d.smtp_config.port,onChange:N=>x("port",parseInt(N.target.value)||587),className:E,placeholder:"587",required:!0})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"SMTP User"}),v.jsx("input",{type:"text",value:d.smtp_config.user,onChange:N=>x("user",N.target.value),className:E,placeholder:"user@example.com"})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"SMTP Password"}),v.jsx("input",{type:"password",value:d.smtp_config.pass,onChange:N=>x("pass",N.target.value),className:E,placeholder:"••••••••"})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"From Address"}),v.jsx("input",{type:"email",value:d.smtp_config.from,onChange:N=>x("from",N.target.value),className:E,placeholder:"alerts@example.com",required:!0})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"To Address"}),v.jsx("input",{type:"email",value:d.smtp_config.to,onChange:N=>x("to",N.target.value),className:E,placeholder:"admin@example.com",required:!0})]})]}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("input",{type:"checkbox",id:"smtp-secure",checked:d.smtp_config.secure,onChange:N=>x("secure",N.target.checked),className:"h-4 w-4 rounded border-gray-600 bg-gray-900 text-blue-600 focus:ring-blue-500"}),v.jsx("label",{htmlFor:"smtp-secure",className:"text-xs text-gray-400",children:"Use TLS/SSL (secure connection)"})]})]}),d.notification_type==="telegram"&&v.jsxs("div",{className:"mt-4 space-y-3",children:[v.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[v.jsxs("div",{children:[v.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"Bot Token"}),v.jsx("input",{type:"password",value:d.telegram_config.bot_token,onChange:N=>j("bot_token",N.target.value),className:E,placeholder:"123456789:ABCdefGHIjklMNOpqrsTUVwxyz",required:!0}),v.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"Get from @BotFather on Telegram"})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"Chat ID"}),v.jsx("input",{type:"text",value:d.telegram_config.chat_id,onChange:N=>j("chat_id",N.target.value),className:E,placeholder:"-1001234567890",required:!0}),v.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"User ID, group ID, or channel ID"})]})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"Message Template"}),v.jsx("textarea",{value:d.telegram_config.message_template,onChange:N=>j("message_template",N.target.value),className:E+" h-20 resize-none",placeholder:"[From AgentGazer] Alert: {rule_type} - Agent: {agent_id} - {message}"}),v.jsxs("p",{className:"mt-1 text-xs text-gray-500",children:["Available variables: ","{agent_id}",", ","{rule_type}",", ","{message}",", ","{timestamp}"]})]})]}),v.jsxs("div",{className:"mt-5 flex gap-3",children:[v.jsx("button",{type:"submit",disabled:y,className:"rounded-md bg-blue-600 px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-blue-700 disabled:opacity-50",children:y?"Saving...":"Save"}),v.jsx("button",{type:"button",onClick:r,className:"rounded-md bg-gray-700 px-4 py-2 text-sm font-medium text-gray-300 transition-colors hover:bg-gray-600 hover:text-white",children:"Cancel"})]})]})}function pF(){const[e,t]=P.useState("rules"),[n,r]=P.useState(!1),[o,l]=P.useState(null),[s,f]=P.useState(1),[d,h]=P.useState(""),[y,p]=P.useState(1),[b,S]=P.useState(""),_=P.useCallback(()=>{const F=new URLSearchParams;return F.set("limit",String(c0)),F.set("offset",String((s-1)*c0)),d&&F.set("rule_type",d),_e.get(`/api/alerts?${F.toString()}`)},[s,d]),{data:w,error:x,loading:j,refresh:T}=Ir(_,5e3),E=P.useCallback(()=>{const F=new URLSearchParams;return F.set("limit",String(f0)),F.set("offset",String((y-1)*f0)),b&&F.set("rule_type",b),_e.get(`/api/alert-history?${F.toString()}`)},[y,b]),{data:N,error:O,loading:C}=Ir(E,5e3),M=(w==null?void 0:w.total)!=null?Math.ceil(w.total/c0):1,D=(N==null?void 0:N.total)!=null?Math.ceil(N.total/f0):1,[$,z]=P.useState(null);async function L(F){z(null);try{await _e.patch(`/api/alerts/${F.id}/toggle`,{enabled:!F.enabled}),T()}catch(oe){z(oe instanceof Error?oe.message:"Failed to toggle rule")}}async function B(F){if(confirm(`Delete alert rule for "${F.agent_id}"?`)){z(null);try{await _e.del(`/api/alerts/${F.id}`),T()}catch(oe){z(oe instanceof Error?oe.message:"Failed to delete rule")}}}function H(F){l(F),r(!0)}function Y(){r(!1),l(null),T()}function W(){r(!1),l(null)}function k(F){h(F),f(1)}function X(F){S(F),p(1)}return v.jsxs("div",{children:[v.jsx("h1",{className:"text-2xl font-bold text-white",children:"Alerts"}),v.jsxs("div",{className:"mt-6 flex border-b border-gray-700",children:[v.jsx("button",{onClick:()=>t("rules"),className:`px-4 py-2 text-sm font-medium transition-colors ${e==="rules"?"border-b-2 border-blue-500 text-white":"text-gray-400 hover:text-gray-200"}`,children:"Rules"}),v.jsx("button",{onClick:()=>t("history"),className:`px-4 py-2 text-sm font-medium transition-colors ${e==="history"?"border-b-2 border-blue-500 text-white":"text-gray-400 hover:text-gray-200"}`,children:"History"})]}),e==="rules"&&v.jsxs("div",{className:"mt-6",children:[x&&v.jsx(Wn,{message:x}),$&&v.jsx(Wn,{message:$}),v.jsxs("div",{className:"mb-4 flex flex-wrap items-center gap-3",children:[!n&&v.jsx("button",{onClick:()=>{l(null),r(!0)},className:"rounded-md bg-blue-600 px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-blue-700",children:"New Alert Rule"}),v.jsx(kb,{value:d,onChange:k,options:sC,label:"Types"})]}),n&&v.jsx("div",{className:"mb-6",children:v.jsx(hF,{initial:o??void 0,editId:o==null?void 0:o.id,onSave:Y,onCancel:W})}),j&&!w&&v.jsx(Ca,{}),w&&w.alerts.length===0&&!n&&v.jsx("div",{className:"rounded-lg border border-gray-700 bg-gray-800 px-6 py-12 text-center",children:v.jsx("p",{className:"text-gray-400",children:"No alert rules configured. Create one to get started."})}),w&&w.alerts.length>0&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"space-y-3",children:w.alerts.map(F=>v.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4 rounded-lg border border-gray-700 bg-gray-800 px-5 py-4",children:[v.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[v.jsx("span",{className:"text-sm font-medium text-white",children:F.agent_id}),v.jsx(uC,{type:F.rule_type}),v.jsx("span",{className:"text-xs text-gray-400",children:uF(F.rule_type,F.config)}),v.jsx(cF,{type:F.notification_type})]}),v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("button",{onClick:()=>L(F),className:`relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors focus:outline-none ${F.enabled?"bg-blue-600":"bg-gray-600"}`,role:"switch","aria-checked":F.enabled,children:v.jsx("span",{className:`pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition-transform ${F.enabled?"translate-x-5":"translate-x-0"}`})}),v.jsx("button",{onClick:()=>H(F),className:"rounded-md bg-gray-700 px-3 py-1.5 text-xs font-medium text-gray-300 transition-colors hover:bg-gray-600 hover:text-white",children:"Edit"}),v.jsx("button",{onClick:()=>B(F),className:"rounded-md bg-red-900/50 px-3 py-1.5 text-xs font-medium text-red-400 transition-colors hover:bg-red-800 hover:text-red-200",children:"Delete"})]})]},F.id))}),v.jsx(Db,{currentPage:s,totalPages:M,onPageChange:f})]})]}),e==="history"&&v.jsxs("div",{className:"mt-6",children:[O&&v.jsx(Wn,{message:O}),v.jsx("div",{className:"mb-4",children:v.jsx(kb,{value:b,onChange:X,options:sC,label:"Types"})}),C&&!N&&v.jsx(Ca,{}),N&&N.history.length===0&&v.jsx("div",{className:"rounded-lg border border-gray-700 bg-gray-800 px-6 py-12 text-center",children:v.jsx("p",{className:"text-gray-400",children:"No alert history yet."})}),N&&N.history.length>0&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-700",children:v.jsxs("table",{className:"w-full text-left text-sm",children:[v.jsx("thead",{children:v.jsxs("tr",{className:"bg-gray-800 text-xs uppercase text-gray-400",children:[v.jsx("th",{className:"px-4 py-3 font-medium",children:"Timestamp"}),v.jsx("th",{className:"px-4 py-3 font-medium",children:"Agent"}),v.jsx("th",{className:"px-4 py-3 font-medium",children:"Type"}),v.jsx("th",{className:"px-4 py-3 font-medium",children:"Message"}),v.jsx("th",{className:"px-4 py-3 font-medium",children:"Delivered Via"})]})}),v.jsx("tbody",{className:"divide-y divide-gray-700",children:N.history.map(F=>v.jsxs("tr",{className:"bg-gray-900 transition-colors hover:bg-gray-800",children:[v.jsx("td",{className:"whitespace-nowrap px-4 py-3 text-gray-300",children:Qf(F.timestamp)}),v.jsx("td",{className:"px-4 py-3 font-medium text-white",children:F.agent_id}),v.jsx("td",{className:"px-4 py-3",children:v.jsx(uC,{type:F.rule_type})}),v.jsx("td",{className:"max-w-xs truncate px-4 py-3 text-gray-300",children:F.message}),v.jsx("td",{className:"px-4 py-3 text-gray-400",children:F.delivered_via})]},F.id))})]})}),v.jsx(Db,{currentPage:y,totalPages:D,onPageChange:p})]})]})]})}const mF={openai:["gpt-4o","gpt-4o-mini","gpt-4-turbo","o1","o1-mini","o3-mini"],anthropic:["claude-opus-4-5-20251101","claude-sonnet-4-5-20250929","claude-sonnet-4-20250514","claude-haiku-4-5-20251001"],google:["gemini-3-pro-preview","gemini-3-flash-preview","gemini-2.5-pro","gemini-2.5-flash"],mistral:["mistral-large-latest","mistral-medium-latest","codestral-latest"],cohere:["command-r-plus","command-r"],deepseek:["deepseek-chat","deepseek-coder","deepseek-reasoner"],moonshot:["kimi-k2.5","kimi-k2-thinking","moonshot-v1-128k"],zhipu:["glm-4.7","glm-4.7-flash","glm-4.5"],minimax:["MiniMax-M2.1","MiniMax-M2.1-lightning","MiniMax-M2"],yi:["yi-large","yi-medium","yi-spark"]},yF={anthropic:"anthropic-messages",openai:"openai-completions",google:"google-ai",mistral:"mistral",cohere:"cohere",deepseek:"openai-completions",moonshot:"openai-completions",zhipu:"openai-completions",minimax:"openai-completions",yi:"openai-completions"};function vF(e,t=4e3){const n=e.filter(o=>o.configured&&o.active),r={};for(const o of n){const l=yF[o.name]||"openai-completions";r[`${o.name}-traced`]={baseUrl:`http://localhost:${t}/${o.name}`,api:l}}return{mode:"merge",providers:r}}function gF(){const{isLoopback:e}=t4(),[t,n]=P.useState([]),[r,o]=P.useState(null),[l,s]=P.useState(!0),[f,d]=P.useState(!1),[h,y]=P.useState(!1),[p,b]=P.useState(null),[S,_]=P.useState(null),[w]=P.useState(4e3),[x,j]=P.useState(""),[T,E]=P.useState(!1),N=P.useCallback(async()=>{var L,B,H;s(!0),b(null);try{const[Y,W]=await Promise.all([yn.list(),im.getConfig()]);n(Y.providers),o(W),(H=(B=(L=W.agents)==null?void 0:L.defaults)==null?void 0:B.model)!=null&&H.primary&&j(W.agents.defaults.model.primary)}catch(Y){b(String(Y))}finally{s(!1)}},[]);P.useEffect(()=>{N()},[N]);const O=t.filter(L=>L.configured&&L.active),C=vF(t,w),M=[];for(const L of O){const B=`${L.name}-traced`,H=mF[L.name]||[];for(const Y of H)M.push({value:`${B}/${Y}`,label:`${B}/${Y}`})}async function D(){if(x){y(!0),b(null),_(null);try{await im.updateDefaultModel(x),_("Default model applied successfully! Restart OpenClaw to use the new settings."),await N()}catch(L){b(String(L))}finally{y(!1)}}}function $(){const L=`openclaw config set agents.defaults.model.primary "${x}"`;navigator.clipboard.writeText(L),E(!0),setTimeout(()=>E(!1),2e3)}async function z(){d(!0),b(null),_(null);try{await im.updateConfig(C),_("Configuration applied successfully! Restart OpenClaw to use the new settings."),await N()}catch(L){b(String(L))}finally{d(!1)}}return l?v.jsx(Ca,{}):v.jsxs("div",{className:"mx-auto max-w-4xl",children:[v.jsxs("div",{className:"mb-6",children:[v.jsx("h1",{className:"text-2xl font-bold text-white",children:"OpenClaw Integration"}),v.jsx("p",{className:"text-sm text-gray-400",children:"Configure OpenClaw to route LLM requests through AgentGazer proxy"})]}),p&&v.jsx("div",{className:"mb-4",children:v.jsx(Wn,{message:p})}),S&&v.jsx("div",{className:"mb-4 rounded-lg border border-green-800 bg-green-900/20 p-4 text-green-300",children:S}),!e&&v.jsx("div",{className:"mb-4 rounded-lg border border-yellow-800 bg-yellow-900/20 p-4 text-yellow-300",children:"Configuration is only available from localhost for security."}),v.jsxs("div",{className:"mb-6 rounded-lg border border-gray-700 bg-gray-800 p-4",children:[v.jsx("h2",{className:"mb-2 font-medium text-white",children:"Prerequisites"}),v.jsxs("ul",{className:"space-y-2 text-sm text-gray-400",children:[v.jsxs("li",{className:"flex items-center gap-2",children:[O.length>0?v.jsx("span",{className:"text-green-400",children:"✓"}):v.jsx("span",{className:"text-yellow-400",children:"○"}),v.jsx("span",{children:O.length>0?`${O.length} provider(s) configured: ${O.map(L=>L.name).join(", ")}`:"No providers configured. Add providers in the Providers page first."})]}),v.jsxs("li",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-gray-500",children:"○"}),v.jsxs("span",{children:["OpenClaw installed (",v.jsx("a",{href:"https://openclaw.ai",target:"_blank",rel:"noopener noreferrer",className:"text-blue-400 hover:underline",children:"openclaw.ai"}),")"]})]})]})]}),v.jsxs("div",{className:"mb-6 rounded-lg border border-gray-700 bg-gray-800 p-4",children:[v.jsx("h2",{className:"mb-2 font-medium text-white",children:"Current OpenClaw Config"}),v.jsx("p",{className:"mb-2 text-xs text-gray-500",children:"~/.openclaw/openclaw.json"}),r!=null&&r.exists?r.parseError?v.jsxs("div",{className:"text-sm text-yellow-400",children:[v.jsx("p",{children:"Config file exists but has invalid JSON."}),v.jsxs("details",{className:"mt-2",children:[v.jsx("summary",{className:"cursor-pointer text-gray-500",children:"Show raw content"}),v.jsx("pre",{className:"mt-2 overflow-auto rounded bg-gray-900 p-2 text-xs text-gray-400",children:r.raw})]})]}):r.models?v.jsx("pre",{className:"overflow-auto rounded bg-gray-900 p-3 text-xs text-gray-300",children:JSON.stringify({models:r.models},null,2)}):v.jsx("p",{className:"text-sm text-gray-500",children:'Config exists but has no "models" key.'}):v.jsx("p",{className:"text-sm text-gray-500",children:"No OpenClaw config file found. A new one will be created."})]}),v.jsxs("div",{className:"mb-6 rounded-lg border border-gray-700 bg-gray-800 p-4",children:[v.jsx("h2",{className:"mb-2 font-medium text-white",children:"Generated Configuration"}),v.jsxs("p",{className:"mb-3 text-sm text-gray-400",children:["This configuration will route your OpenClaw LLM requests through AgentGazer proxy (port ",w,")."]}),O.length===0?v.jsx("div",{className:"rounded bg-gray-900 p-4 text-center text-sm text-gray-500",children:"No providers configured. Please add providers first."}):v.jsx("pre",{className:"overflow-auto rounded bg-gray-900 p-3 text-xs text-gray-300",children:JSON.stringify({models:C},null,2)})]}),v.jsxs("div",{className:"flex items-center justify-between rounded-lg border border-gray-700 bg-gray-800 p-4",children:[v.jsxs("div",{children:[v.jsx("h3",{className:"font-medium text-white",children:"Apply Configuration"}),v.jsx("p",{className:"text-sm text-gray-400",children:r!=null&&r.exists?"Updates only the 'models' key, preserving other settings.":"Creates ~/.openclaw/openclaw.json with the generated config."})]}),v.jsx("button",{onClick:z,disabled:f||!e||O.length===0,className:`rounded-md px-6 py-2 font-medium transition-colors ${e&&O.length>0?"bg-blue-600 text-white hover:bg-blue-700 disabled:opacity-50":"cursor-not-allowed bg-gray-700 text-gray-500"}`,children:f?"Applying...":"Apply Configuration"})]}),v.jsxs("div",{className:"mt-6 rounded-lg border border-gray-700 bg-gray-800 p-4",children:[v.jsx("h2",{className:"mb-1 font-medium text-white",children:"Step 2: Set Default Model"}),v.jsx("p",{className:"mb-4 text-sm text-gray-400",children:"Choose which model OpenClaw should use by default."}),O.length===0?v.jsx("p",{className:"text-sm text-gray-500",children:"Configure providers first to select a default model."}):v.jsxs("div",{className:"space-y-4",children:[v.jsxs("div",{children:[v.jsx("label",{className:"block text-sm font-medium text-gray-300",children:"Default Model"}),v.jsxs("select",{value:x,onChange:L=>j(L.target.value),className:"mt-1 block w-full rounded-md border border-gray-700 bg-gray-900 px-3 py-2 text-white focus:border-blue-500 focus:outline-none",children:[v.jsx("option",{value:"",children:"Select a model..."}),M.map(L=>v.jsx("option",{value:L.value,children:L.label},L.value))]})]}),v.jsx("button",{onClick:D,disabled:h||!e||!x,className:`w-full rounded-md px-4 py-2 font-medium transition-colors ${e&&x?"bg-blue-600 text-white hover:bg-blue-700 disabled:opacity-50":"cursor-not-allowed bg-gray-700 text-gray-500"}`,children:h?"Applying...":"Apply Default Model"}),v.jsxs("div",{className:"flex items-center gap-3 text-gray-500",children:[v.jsx("div",{className:"flex-1 border-t border-gray-700"}),v.jsx("span",{className:"text-xs",children:"or run manually"}),v.jsx("div",{className:"flex-1 border-t border-gray-700"})]}),x&&v.jsxs("div",{className:"relative rounded bg-gray-900 p-3",children:[v.jsx("pre",{className:"overflow-auto text-xs text-gray-300",children:`openclaw config set agents.defaults.model.primary "${x}"`}),v.jsx("button",{onClick:$,className:"absolute right-2 top-2 rounded bg-gray-700 px-2 py-1 text-xs text-gray-300 hover:bg-gray-600",children:T?"Copied!":"Copy"})]})]})]}),v.jsxs("div",{className:"mt-6 rounded-lg border border-gray-700 bg-gray-800 p-4",children:[v.jsx("h2",{className:"mb-2 font-medium text-white",children:"After Applying"}),v.jsxs("ol",{className:"list-inside list-decimal space-y-2 text-sm text-gray-400",children:[v.jsx("li",{children:"Restart OpenClaw to load the new configuration"}),v.jsx("li",{children:"Send a test message through OpenClaw (Discord, Telegram, etc.)"}),v.jsx("li",{children:"Check the Agents page to see your OpenClaw agent appear"})]})]})]})}function bF(){return v.jsx(tk,{children:v.jsx(eF,{children:v.jsxs(MD,{children:[v.jsx(Vn,{path:"/login",element:v.jsx(hk,{})}),v.jsxs(Vn,{element:v.jsx(dk,{children:v.jsx(vk,{})}),children:[v.jsx(Vn,{path:"/",element:v.jsx(zX,{})}),v.jsx(Vn,{path:"/agents",element:v.jsx(IX,{})}),v.jsx(Vn,{path:"/agents/:agentId",element:v.jsx(JX,{})}),v.jsx(Vn,{path:"/providers",element:v.jsx(rF,{})}),v.jsx(Vn,{path:"/providers/:name",element:v.jsx(iF,{})}),v.jsx(Vn,{path:"/costs",element:v.jsx(lF,{})}),v.jsx(Vn,{path:"/alerts",element:v.jsx(pF,{})}),v.jsx(Vn,{path:"/openclaw",element:v.jsx(gF,{})})]})]})})})}CP.createRoot(document.getElementById("root")).render(v.jsx(P.StrictMode,{children:v.jsx(bF,{})}));
|