agentic-ui-libs 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(ke,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],O):(ke=typeof globalThis<"u"?globalThis:ke||self,O(ke.AgenticUILibs={},ke.React))})(this,function(ke,O){"use strict";var j6=Object.defineProperty;var C6=(ke,O,zr)=>O in ke?j6(ke,O,{enumerable:!0,configurable:!0,writable:!0,value:zr}):ke[O]=zr;var Mt=(ke,O,zr)=>C6(ke,typeof O!="symbol"?O+"":O,zr);function zr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const dt=zr(O);var ua=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Te(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fs={exports:{}},Yn={};/**
1
+ (function(me,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],S):(me=typeof globalThis<"u"?globalThis:me||self,S(me.AgenticUILibs={},me.React,me.ReactDOM))})(this,function(me,S,Zr){"use strict";var HU=Object.defineProperty;var YU=(me,S,Zr)=>S in me?HU(me,S,{enumerable:!0,configurable:!0,writable:!0,value:Zr}):me[S]=Zr;var Bt=(me,S,Zr)=>YU(me,typeof S!="symbol"?S+"":S,Zr);function Lb(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const bt=Lb(S);var _i=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ls={exports:{}},ia={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Lc;function Vm(){if(Lc)return Yn;Lc=1;var e=O,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(s,l,u){var c,f={},d=null,p=null;u!==void 0&&(d=""+u),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(p=l.ref);for(c in l)n.call(l,c)&&!a.hasOwnProperty(c)&&(f[c]=l[c]);if(s&&s.defaultProps)for(c in l=s.defaultProps,l)f[c]===void 0&&(f[c]=l[c]);return{$$typeof:t,type:s,key:d,ref:p,props:f,_owner:i.current}}return Yn.Fragment=r,Yn.jsx=o,Yn.jsxs=o,Yn}var Xn={};/**
9
+ */var ff;function Rb(){if(ff)return ia;ff=1;var e=S,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(s,l,u){var c,f={},d=null,h=null;u!==void 0&&(d=""+u),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(h=l.ref);for(c in l)n.call(l,c)&&!i.hasOwnProperty(c)&&(f[c]=l[c]);if(s&&s.defaultProps)for(c in l=s.defaultProps,l)f[c]===void 0&&(f[c]=l[c]);return{$$typeof:t,type:s,key:d,ref:h,props:f,_owner:a.current}}return ia.Fragment=r,ia.jsx=o,ia.jsxs=o,ia}var oa={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,20 +14,20 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Rc;function Ym(){return Rc||(Rc=1,process.env.NODE_ENV!=="production"&&function(){var e=O,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g=Symbol.iterator,h="@@iterator";function v($){if($===null||typeof $!="object")return null;var q=g&&$[g]||$[h];return typeof q=="function"?q:null}var m=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w($){{for(var q=arguments.length,Z=new Array(q>1?q-1:0),ae=1;ae<q;ae++)Z[ae-1]=arguments[ae];x("error",$,Z)}}function x($,q,Z){{var ae=m.ReactDebugCurrentFrame,Se=ae.getStackAddendum();Se!==""&&(q+="%s",Z=Z.concat([Se]));var _e=Z.map(function(pe){return String(pe)});_e.unshift("Warning: "+q),Function.prototype.apply.call(console[$],console,_e)}}var S=!1,y=!1,b=!1,A=!1,T=!1,j;j=Symbol.for("react.module.reference");function N($){return!!(typeof $=="string"||typeof $=="function"||$===n||$===a||T||$===i||$===u||$===c||A||$===p||S||y||b||typeof $=="object"&&$!==null&&($.$$typeof===d||$.$$typeof===f||$.$$typeof===o||$.$$typeof===s||$.$$typeof===l||$.$$typeof===j||$.getModuleId!==void 0))}function _($,q,Z){var ae=$.displayName;if(ae)return ae;var Se=q.displayName||q.name||"";return Se!==""?Z+"("+Se+")":Z}function E($){return $.displayName||"Context"}function k($){if($==null)return null;if(typeof $.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof $=="function")return $.displayName||$.name||null;if(typeof $=="string")return $;switch($){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case c:return"SuspenseList"}if(typeof $=="object")switch($.$$typeof){case s:var q=$;return E(q)+".Consumer";case o:var Z=$;return E(Z._context)+".Provider";case l:return _($,$.render,"ForwardRef");case f:var ae=$.displayName||null;return ae!==null?ae:k($.type)||"Memo";case d:{var Se=$,_e=Se._payload,pe=Se._init;try{return k(pe(_e))}catch{return null}}}return null}var M=Object.assign,D=0,L,F,G,U,I,R,z;function H(){}H.__reactDisabledLog=!0;function X(){{if(D===0){L=console.log,F=console.info,G=console.warn,U=console.error,I=console.group,R=console.groupCollapsed,z=console.groupEnd;var $={configurable:!0,enumerable:!0,value:H,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}D++}}function ee(){{if(D--,D===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},$,{value:L}),info:M({},$,{value:F}),warn:M({},$,{value:G}),error:M({},$,{value:U}),group:M({},$,{value:I}),groupCollapsed:M({},$,{value:R}),groupEnd:M({},$,{value:z})})}D<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var te=m.ReactCurrentDispatcher,ie;function re($,q,Z){{if(ie===void 0)try{throw Error()}catch(Se){var ae=Se.stack.trim().match(/\n( *(at )?)/);ie=ae&&ae[1]||""}return`
18
- `+ie+$}}var W=!1,Y;{var Q=typeof WeakMap=="function"?WeakMap:Map;Y=new Q}function C($,q){if(!$||W)return"";{var Z=Y.get($);if(Z!==void 0)return Z}var ae;W=!0;var Se=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _e;_e=te.current,te.current=null,X();try{if(q){var pe=function(){throw Error()};if(Object.defineProperty(pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pe,[])}catch(ot){ae=ot}Reflect.construct($,[],pe)}else{try{pe.call()}catch(ot){ae=ot}$.call(pe.prototype)}}else{try{throw Error()}catch(ot){ae=ot}$()}}catch(ot){if(ot&&ae&&typeof ot.stack=="string"){for(var de=ot.stack.split(`
19
- `),tt=ae.stack.split(`
20
- `),Le=de.length-1,ze=tt.length-1;Le>=1&&ze>=0&&de[Le]!==tt[ze];)ze--;for(;Le>=1&&ze>=0;Le--,ze--)if(de[Le]!==tt[ze]){if(Le!==1||ze!==1)do if(Le--,ze--,ze<0||de[Le]!==tt[ze]){var wt=`
21
- `+de[Le].replace(" at new "," at ");return $.displayName&&wt.includes("<anonymous>")&&(wt=wt.replace("<anonymous>",$.displayName)),typeof $=="function"&&Y.set($,wt),wt}while(Le>=1&&ze>=0);break}}}finally{W=!1,te.current=_e,ee(),Error.prepareStackTrace=Se}var Vn=$?$.displayName||$.name:"",Fr=Vn?re(Vn):"";return typeof $=="function"&&Y.set($,Fr),Fr}function fe($,q,Z){return C($,!1)}function K($){var q=$.prototype;return!!(q&&q.isReactComponent)}function ye($,q,Z){if($==null)return"";if(typeof $=="function")return C($,K($));if(typeof $=="string")return re($);switch($){case u:return re("Suspense");case c:return re("SuspenseList")}if(typeof $=="object")switch($.$$typeof){case l:return fe($.render);case f:return ye($.type,q,Z);case d:{var ae=$,Se=ae._payload,_e=ae._init;try{return ye(_e(Se),q,Z)}catch{}}}return""}var Oe=Object.prototype.hasOwnProperty,Fe={},jt=m.ReactDebugCurrentFrame;function Ct($){if($){var q=$._owner,Z=ye($.type,$._source,q?q.type:null);jt.setExtraStackFrame(Z)}else jt.setExtraStackFrame(null)}function qn($,q,Z,ae,Se){{var _e=Function.call.bind(Oe);for(var pe in $)if(_e($,pe)){var de=void 0;try{if(typeof $[pe]!="function"){var tt=Error((ae||"React class")+": "+Z+" type `"+pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof $[pe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw tt.name="Invariant Violation",tt}de=$[pe](q,pe,ae,Z,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Le){de=Le}de&&!(de instanceof Error)&&(Ct(Se),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ae||"React class",Z,pe,typeof de),Ct(null)),de instanceof Error&&!(de.message in Fe)&&(Fe[de.message]=!0,Ct(Se),w("Failed %s type: %s",Z,de.message),Ct(null))}}}var tr=Array.isArray;function ft($){return tr($)}function aa($){{var q=typeof Symbol=="function"&&Symbol.toStringTag,Z=q&&$[Symbol.toStringTag]||$.constructor.name||"Object";return Z}}function oa($){try{return Kn($),!1}catch{return!0}}function Kn($){return""+$}function sa($){if(oa($))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",aa($)),Kn($)}var la=m.ReactCurrentOwner,d6={key:!0,ref:!0,__self:!0,__source:!0},Bm,Fm;function p6($){if(Oe.call($,"ref")){var q=Object.getOwnPropertyDescriptor($,"ref").get;if(q&&q.isReactWarning)return!1}return $.ref!==void 0}function h6($){if(Oe.call($,"key")){var q=Object.getOwnPropertyDescriptor($,"key").get;if(q&&q.isReactWarning)return!1}return $.key!==void 0}function v6($,q){typeof $.ref=="string"&&la.current}function y6($,q){{var Z=function(){Bm||(Bm=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",q))};Z.isReactWarning=!0,Object.defineProperty($,"key",{get:Z,configurable:!0})}}function g6($,q){{var Z=function(){Fm||(Fm=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",q))};Z.isReactWarning=!0,Object.defineProperty($,"ref",{get:Z,configurable:!0})}}var m6=function($,q,Z,ae,Se,_e,pe){var de={$$typeof:t,type:$,key:q,ref:Z,props:pe,_owner:_e};return de._store={},Object.defineProperty(de._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(de,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ae}),Object.defineProperty(de,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Se}),Object.freeze&&(Object.freeze(de.props),Object.freeze(de)),de};function b6($,q,Z,ae,Se){{var _e,pe={},de=null,tt=null;Z!==void 0&&(sa(Z),de=""+Z),h6(q)&&(sa(q.key),de=""+q.key),p6(q)&&(tt=q.ref,v6(q,Se));for(_e in q)Oe.call(q,_e)&&!d6.hasOwnProperty(_e)&&(pe[_e]=q[_e]);if($&&$.defaultProps){var Le=$.defaultProps;for(_e in Le)pe[_e]===void 0&&(pe[_e]=Le[_e])}if(de||tt){var ze=typeof $=="function"?$.displayName||$.name||"Unknown":$;de&&y6(pe,ze),tt&&g6(pe,ze)}return m6($,de,tt,Se,ae,la.current,pe)}}var kc=m.ReactCurrentOwner,zm=m.ReactDebugCurrentFrame;function Hn($){if($){var q=$._owner,Z=ye($.type,$._source,q?q.type:null);zm.setExtraStackFrame(Z)}else zm.setExtraStackFrame(null)}var Ic;Ic=!1;function Nc($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function Wm(){{if(kc.current){var $=k(kc.current.type);if($)return`
17
+ */var df;function Bb(){return df||(df=1,process.env.NODE_ENV!=="production"&&function(){var e=S,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),y=Symbol.iterator,p="@@iterator";function v(C){if(C===null||typeof C!="object")return null;var H=y&&C[y]||C[p];return typeof H=="function"?H:null}var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(C){{for(var H=arguments.length,re=new Array(H>1?H-1:0),le=1;le<H;le++)re[le-1]=arguments[le];x("error",C,re)}}function x(C,H,re){{var le=g.ReactDebugCurrentFrame,Pe=le.getStackAddendum();Pe!==""&&(H+="%s",re=re.concat([Pe]));var Me=re.map(function(ye){return String(ye)});Me.unshift("Warning: "+H),Function.prototype.apply.call(console[C],console,Me)}}var A=!1,m=!1,w=!1,T=!1,_=!1,$;$=Symbol.for("react.module.reference");function R(C){return!!(typeof C=="string"||typeof C=="function"||C===n||C===i||_||C===a||C===u||C===c||T||C===h||A||m||w||typeof C=="object"&&C!==null&&(C.$$typeof===d||C.$$typeof===f||C.$$typeof===o||C.$$typeof===s||C.$$typeof===l||C.$$typeof===$||C.getModuleId!==void 0))}function P(C,H,re){var le=C.displayName;if(le)return le;var Pe=H.displayName||H.name||"";return Pe!==""?re+"("+Pe+")":re}function j(C){return C.displayName||"Context"}function L(C){if(C==null)return null;if(typeof C.tag=="number"&&O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof C=="function")return C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case a:return"StrictMode";case u:return"Suspense";case c:return"SuspenseList"}if(typeof C=="object")switch(C.$$typeof){case s:var H=C;return j(H)+".Consumer";case o:var re=C;return j(re._context)+".Provider";case l:return P(C,C.render,"ForwardRef");case f:var le=C.displayName||null;return le!==null?le:L(C.type)||"Memo";case d:{var Pe=C,Me=Pe._payload,ye=Pe._init;try{return L(ye(Me))}catch{return null}}}return null}var B=Object.assign,M=0,E,F,U,k,N,I,W;function z(){}z.__reactDisabledLog=!0;function V(){{if(M===0){E=console.log,F=console.info,U=console.warn,k=console.error,N=console.group,I=console.groupCollapsed,W=console.groupEnd;var C={configurable:!0,enumerable:!0,value:z,writable:!0};Object.defineProperties(console,{info:C,log:C,warn:C,error:C,group:C,groupCollapsed:C,groupEnd:C})}M++}}function Z(){{if(M--,M===0){var C={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:B({},C,{value:E}),info:B({},C,{value:F}),warn:B({},C,{value:U}),error:B({},C,{value:k}),group:B({},C,{value:N}),groupCollapsed:B({},C,{value:I}),groupEnd:B({},C,{value:W})})}M<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q=g.ReactCurrentDispatcher,ae;function te(C,H,re){{if(ae===void 0)try{throw Error()}catch(Pe){var le=Pe.stack.trim().match(/\n( *(at )?)/);ae=le&&le[1]||""}return`
18
+ `+ae+C}}var q=!1,Y;{var J=typeof WeakMap=="function"?WeakMap:Map;Y=new J}function D(C,H){if(!C||q)return"";{var re=Y.get(C);if(re!==void 0)return re}var le;q=!0;var Pe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Me;Me=Q.current,Q.current=null,V();try{if(H){var ye=function(){throw Error()};if(Object.defineProperty(ye.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ye,[])}catch(dt){le=dt}Reflect.construct(C,[],ye)}else{try{ye.call()}catch(dt){le=dt}C.call(ye.prototype)}}else{try{throw Error()}catch(dt){le=dt}C()}}catch(dt){if(dt&&le&&typeof dt.stack=="string"){for(var ve=dt.stack.split(`
19
+ `),st=le.stack.split(`
20
+ `),ze=ve.length-1,Ke=st.length-1;ze>=1&&Ke>=0&&ve[ze]!==st[Ke];)Ke--;for(;ze>=1&&Ke>=0;ze--,Ke--)if(ve[ze]!==st[Ke]){if(ze!==1||Ke!==1)do if(ze--,Ke--,Ke<0||ve[ze]!==st[Ke]){var jt=`
21
+ `+ve[ze].replace(" at new "," at ");return C.displayName&&jt.includes("<anonymous>")&&(jt=jt.replace("<anonymous>",C.displayName)),typeof C=="function"&&Y.set(C,jt),jt}while(ze>=1&&Ke>=0);break}}}finally{q=!1,Q.current=Me,Z(),Error.prepareStackTrace=Pe}var aa=C?C.displayName||C.name:"",Jr=aa?te(aa):"";return typeof C=="function"&&Y.set(C,Jr),Jr}function ie(C,H,re){return D(C,!1)}function K(C){var H=C.prototype;return!!(H&&H.isReactComponent)}function ee(C,H,re){if(C==null)return"";if(typeof C=="function")return D(C,K(C));if(typeof C=="string")return te(C);switch(C){case u:return te("Suspense");case c:return te("SuspenseList")}if(typeof C=="object")switch(C.$$typeof){case l:return ie(C.render);case f:return ee(C.type,H,re);case d:{var le=C,Pe=le._payload,Me=le._init;try{return ee(Me(Pe),H,re)}catch{}}}return""}var oe=Object.prototype.hasOwnProperty,Ce={},Te=g.ReactDebugCurrentFrame;function Ee(C){if(C){var H=C._owner,re=ee(C.type,C._source,H?H.type:null);Te.setExtraStackFrame(re)}else Te.setExtraStackFrame(null)}function et(C,H,re,le,Pe){{var Me=Function.call.bind(oe);for(var ye in C)if(Me(C,ye)){var ve=void 0;try{if(typeof C[ye]!="function"){var st=Error((le||"React class")+": "+re+" type `"+ye+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof C[ye]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw st.name="Invariant Violation",st}ve=C[ye](H,ye,le,re,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ze){ve=ze}ve&&!(ve instanceof Error)&&(Ee(Pe),O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",le||"React class",re,ye,typeof ve),Ee(null)),ve instanceof Error&&!(ve.message in Ce)&&(Ce[ve.message]=!0,Ee(Pe),O("Failed %s type: %s",re,ve.message),Ee(null))}}}var Rt=Array.isArray;function gt(C){return Rt(C)}function Si(C){{var H=typeof Symbol=="function"&&Symbol.toStringTag,re=H&&C[Symbol.toStringTag]||C.constructor.name||"Object";return re}}function Ai(C){try{return ra(C),!1}catch{return!0}}function ra(C){return""+C}function Ti(C){if(Ai(C))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Si(C)),ra(C)}var Pi=g.ReactCurrentOwner,$U={key:!0,ref:!0,__self:!0,__source:!0},Eb,jb;function CU(C){if(oe.call(C,"ref")){var H=Object.getOwnPropertyDescriptor(C,"ref").get;if(H&&H.isReactWarning)return!1}return C.ref!==void 0}function MU(C){if(oe.call(C,"key")){var H=Object.getOwnPropertyDescriptor(C,"key").get;if(H&&H.isReactWarning)return!1}return C.key!==void 0}function kU(C,H){typeof C.ref=="string"&&Pi.current}function NU(C,H){{var re=function(){Eb||(Eb=!0,O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",H))};re.isReactWarning=!0,Object.defineProperty(C,"key",{get:re,configurable:!0})}}function DU(C,H){{var re=function(){jb||(jb=!0,O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",H))};re.isReactWarning=!0,Object.defineProperty(C,"ref",{get:re,configurable:!0})}}var IU=function(C,H,re,le,Pe,Me,ye){var ve={$$typeof:t,type:C,key:H,ref:re,props:ye,_owner:Me};return ve._store={},Object.defineProperty(ve._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ve,"_self",{configurable:!1,enumerable:!1,writable:!1,value:le}),Object.defineProperty(ve,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Pe}),Object.freeze&&(Object.freeze(ve.props),Object.freeze(ve)),ve};function LU(C,H,re,le,Pe){{var Me,ye={},ve=null,st=null;re!==void 0&&(Ti(re),ve=""+re),MU(H)&&(Ti(H.key),ve=""+H.key),CU(H)&&(st=H.ref,kU(H,Pe));for(Me in H)oe.call(H,Me)&&!$U.hasOwnProperty(Me)&&(ye[Me]=H[Me]);if(C&&C.defaultProps){var ze=C.defaultProps;for(Me in ze)ye[Me]===void 0&&(ye[Me]=ze[Me])}if(ve||st){var Ke=typeof C=="function"?C.displayName||C.name||"Unknown":C;ve&&NU(ye,Ke),st&&DU(ye,Ke)}return IU(C,ve,st,Pe,le,Pi.current,ye)}}var sf=g.ReactCurrentOwner,$b=g.ReactDebugCurrentFrame;function na(C){if(C){var H=C._owner,re=ee(C.type,C._source,H?H.type:null);$b.setExtraStackFrame(re)}else $b.setExtraStackFrame(null)}var lf;lf=!1;function uf(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function Cb(){{if(sf.current){var C=L(sf.current.type);if(C)return`
22
22
 
23
- Check the render method of \``+$+"`."}return""}}function x6($){return""}var Um={};function w6($){{var q=Wm();if(!q){var Z=typeof $=="string"?$:$.displayName||$.name;Z&&(q=`
23
+ Check the render method of \``+C+"`."}return""}}function RU(C){return""}var Mb={};function BU(C){{var H=Cb();if(!H){var re=typeof C=="string"?C:C.displayName||C.name;re&&(H=`
24
24
 
25
- Check the top-level render call using <`+Z+">.")}return q}}function Gm($,q){{if(!$._store||$._store.validated||$.key!=null)return;$._store.validated=!0;var Z=w6(q);if(Um[Z])return;Um[Z]=!0;var ae="";$&&$._owner&&$._owner!==kc.current&&(ae=" It was passed a child from "+k($._owner.type)+"."),Hn($),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Z,ae),Hn(null)}}function qm($,q){{if(typeof $!="object")return;if(ft($))for(var Z=0;Z<$.length;Z++){var ae=$[Z];Nc(ae)&&Gm(ae,q)}else if(Nc($))$._store&&($._store.validated=!0);else if($){var Se=v($);if(typeof Se=="function"&&Se!==$.entries)for(var _e=Se.call($),pe;!(pe=_e.next()).done;)Nc(pe.value)&&Gm(pe.value,q)}}}function O6($){{var q=$.type;if(q==null||typeof q=="string")return;var Z;if(typeof q=="function")Z=q.propTypes;else if(typeof q=="object"&&(q.$$typeof===l||q.$$typeof===f))Z=q.propTypes;else return;if(Z){var ae=k(q);qn(Z,$.props,"prop",ae,$)}else if(q.PropTypes!==void 0&&!Ic){Ic=!0;var Se=k(q);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Se||"Unknown")}typeof q.getDefaultProps=="function"&&!q.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function S6($){{for(var q=Object.keys($.props),Z=0;Z<q.length;Z++){var ae=q[Z];if(ae!=="children"&&ae!=="key"){Hn($),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ae),Hn(null);break}}$.ref!==null&&(Hn($),w("Invalid attribute `ref` supplied to `React.Fragment`."),Hn(null))}}var Km={};function Hm($,q,Z,ae,Se,_e){{var pe=N($);if(!pe){var de="";($===void 0||typeof $=="object"&&$!==null&&Object.keys($).length===0)&&(de+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var tt=x6();tt?de+=tt:de+=Wm();var Le;$===null?Le="null":ft($)?Le="array":$!==void 0&&$.$$typeof===t?(Le="<"+(k($.type)||"Unknown")+" />",de=" Did you accidentally export a JSX literal instead of a component?"):Le=typeof $,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Le,de)}var ze=b6($,q,Z,Se,_e);if(ze==null)return ze;if(pe){var wt=q.children;if(wt!==void 0)if(ae)if(ft(wt)){for(var Vn=0;Vn<wt.length;Vn++)qm(wt[Vn],$);Object.freeze&&Object.freeze(wt)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else qm(wt,$)}if(Oe.call(q,"key")){var Fr=k($),ot=Object.keys(q).filter(function($6){return $6!=="key"}),Dc=ot.length>0?"{key: someKey, "+ot.join(": ..., ")+": ...}":"{key: someKey}";if(!Km[Fr+Dc]){var E6=ot.length>0?"{"+ot.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+re+">.")}return H}}function kb(C,H){{if(!C._store||C._store.validated||C.key!=null)return;C._store.validated=!0;var re=BU(H);if(Mb[re])return;Mb[re]=!0;var le="";C&&C._owner&&C._owner!==sf.current&&(le=" It was passed a child from "+L(C._owner.type)+"."),na(C),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',re,le),na(null)}}function Nb(C,H){{if(typeof C!="object")return;if(gt(C))for(var re=0;re<C.length;re++){var le=C[re];uf(le)&&kb(le,H)}else if(uf(C))C._store&&(C._store.validated=!0);else if(C){var Pe=v(C);if(typeof Pe=="function"&&Pe!==C.entries)for(var Me=Pe.call(C),ye;!(ye=Me.next()).done;)uf(ye.value)&&kb(ye.value,H)}}}function FU(C){{var H=C.type;if(H==null||typeof H=="string")return;var re;if(typeof H=="function")re=H.propTypes;else if(typeof H=="object"&&(H.$$typeof===l||H.$$typeof===f))re=H.propTypes;else return;if(re){var le=L(H);et(re,C.props,"prop",le,C)}else if(H.PropTypes!==void 0&&!lf){lf=!0;var Pe=L(H);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Pe||"Unknown")}typeof H.getDefaultProps=="function"&&!H.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function WU(C){{for(var H=Object.keys(C.props),re=0;re<H.length;re++){var le=H[re];if(le!=="children"&&le!=="key"){na(C),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",le),na(null);break}}C.ref!==null&&(na(C),O("Invalid attribute `ref` supplied to `React.Fragment`."),na(null))}}var Db={};function Ib(C,H,re,le,Pe,Me){{var ye=R(C);if(!ye){var ve="";(C===void 0||typeof C=="object"&&C!==null&&Object.keys(C).length===0)&&(ve+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var st=RU();st?ve+=st:ve+=Cb();var ze;C===null?ze="null":gt(C)?ze="array":C!==void 0&&C.$$typeof===t?(ze="<"+(L(C.type)||"Unknown")+" />",ve=" Did you accidentally export a JSX literal instead of a component?"):ze=typeof C,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ze,ve)}var Ke=LU(C,H,re,Pe,Me);if(Ke==null)return Ke;if(ye){var jt=H.children;if(jt!==void 0)if(le)if(gt(jt)){for(var aa=0;aa<jt.length;aa++)Nb(jt[aa],C);Object.freeze&&Object.freeze(jt)}else O("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Nb(jt,C)}if(oe.call(H,"key")){var Jr=L(C),dt=Object.keys(H).filter(function(VU){return VU!=="key"}),cf=dt.length>0?"{key: someKey, "+dt.join(": ..., ")+": ...}":"{key: someKey}";if(!Db[Jr+cf]){var KU=dt.length>0?"{"+dt.join(": ..., ")+": ...}":"{}";O(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Dc,Fr,E6,Fr),Km[Fr+Dc]=!0}}return $===n?S6(ze):O6(ze),ze}}function A6($,q,Z){return Hm($,q,Z,!0)}function P6($,q,Z){return Hm($,q,Z,!1)}var _6=P6,T6=A6;Xn.Fragment=n,Xn.jsx=_6,Xn.jsxs=T6}()),Xn}process.env.NODE_ENV==="production"?fs.exports=Vm():fs.exports=Ym();var P=fs.exports;function Bc(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Bc(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ce(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Bc(e))&&(n&&(n+=" "),n+=t);return n}var Xm=Array.isArray,rt=Xm,Zm=typeof ua=="object"&&ua&&ua.Object===Object&&ua,Fc=Zm,Jm=Fc,Qm=typeof self=="object"&&self&&self.Object===Object&&self,eb=Jm||Qm||Function("return this")(),kt=eb,tb=kt,rb=tb.Symbol,Zn=rb,zc=Zn,Wc=Object.prototype,nb=Wc.hasOwnProperty,ib=Wc.toString,Jn=zc?zc.toStringTag:void 0;function ab(e){var t=nb.call(e,Jn),r=e[Jn];try{e[Jn]=void 0;var n=!0}catch{}var i=ib.call(e);return n&&(t?e[Jn]=r:delete e[Jn]),i}var ob=ab,sb=Object.prototype,lb=sb.toString;function ub(e){return lb.call(e)}var cb=ub,Uc=Zn,fb=ob,db=cb,pb="[object Null]",hb="[object Undefined]",Gc=Uc?Uc.toStringTag:void 0;function vb(e){return e==null?e===void 0?hb:pb:Gc&&Gc in Object(e)?fb(e):db(e)}var zt=vb;function yb(e){return e!=null&&typeof e=="object"}var Wt=yb,gb=zt,mb=Wt,bb="[object Symbol]";function xb(e){return typeof e=="symbol"||mb(e)&&gb(e)==bb}var Wr=xb,wb=rt,Ob=Wr,Sb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ab=/^\w*$/;function Pb(e,t){if(wb(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ob(e)?!0:Ab.test(e)||!Sb.test(e)||t!=null&&e in Object(t)}var ds=Pb;function _b(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var rr=_b;const Ur=Te(rr);var Tb=zt,Eb=rr,$b="[object AsyncFunction]",jb="[object Function]",Cb="[object GeneratorFunction]",Mb="[object Proxy]";function kb(e){if(!Eb(e))return!1;var t=Tb(e);return t==jb||t==Cb||t==$b||t==Mb}var ps=kb;const le=Te(ps);var Ib=kt,Nb=Ib["__core-js_shared__"],Db=Nb,hs=Db,qc=function(){var e=/[^.]+$/.exec(hs&&hs.keys&&hs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Lb(e){return!!qc&&qc in e}var Rb=Lb,Bb=Function.prototype,Fb=Bb.toString;function zb(e){if(e!=null){try{return Fb.call(e)}catch{}try{return e+""}catch{}}return""}var Kc=zb,Wb=ps,Ub=Rb,Gb=rr,qb=Kc,Kb=/[\\^$.*+?()[\]{}|]/g,Hb=/^\[object .+?Constructor\]$/,Vb=Function.prototype,Yb=Object.prototype,Xb=Vb.toString,Zb=Yb.hasOwnProperty,Jb=RegExp("^"+Xb.call(Zb).replace(Kb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Qb(e){if(!Gb(e)||Ub(e))return!1;var t=Wb(e)?Jb:Hb;return t.test(qb(e))}var e0=Qb;function t0(e,t){return e==null?void 0:e[t]}var r0=t0,n0=e0,i0=r0;function a0(e,t){var r=i0(e,t);return n0(r)?r:void 0}var mr=a0,o0=mr,s0=o0(Object,"create"),ca=s0,Hc=ca;function l0(){this.__data__=Hc?Hc(null):{},this.size=0}var u0=l0;function c0(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var f0=c0,d0=ca,p0="__lodash_hash_undefined__",h0=Object.prototype,v0=h0.hasOwnProperty;function y0(e){var t=this.__data__;if(d0){var r=t[e];return r===p0?void 0:r}return v0.call(t,e)?t[e]:void 0}var g0=y0,m0=ca,b0=Object.prototype,x0=b0.hasOwnProperty;function w0(e){var t=this.__data__;return m0?t[e]!==void 0:x0.call(t,e)}var O0=w0,S0=ca,A0="__lodash_hash_undefined__";function P0(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=S0&&t===void 0?A0:t,this}var _0=P0,T0=u0,E0=f0,$0=g0,j0=O0,C0=_0;function Gr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Gr.prototype.clear=T0,Gr.prototype.delete=E0,Gr.prototype.get=$0,Gr.prototype.has=j0,Gr.prototype.set=C0;var M0=Gr;function k0(){this.__data__=[],this.size=0}var I0=k0;function N0(e,t){return e===t||e!==e&&t!==t}var vs=N0,D0=vs;function L0(e,t){for(var r=e.length;r--;)if(D0(e[r][0],t))return r;return-1}var fa=L0,R0=fa,B0=Array.prototype,F0=B0.splice;function z0(e){var t=this.__data__,r=R0(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():F0.call(t,r,1),--this.size,!0}var W0=z0,U0=fa;function G0(e){var t=this.__data__,r=U0(t,e);return r<0?void 0:t[r][1]}var q0=G0,K0=fa;function H0(e){return K0(this.__data__,e)>-1}var V0=H0,Y0=fa;function X0(e,t){var r=this.__data__,n=Y0(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Z0=X0,J0=I0,Q0=W0,ex=q0,tx=V0,rx=Z0;function qr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}qr.prototype.clear=J0,qr.prototype.delete=Q0,qr.prototype.get=ex,qr.prototype.has=tx,qr.prototype.set=rx;var da=qr,nx=mr,ix=kt,ax=nx(ix,"Map"),ys=ax,Vc=M0,ox=da,sx=ys;function lx(){this.size=0,this.__data__={hash:new Vc,map:new(sx||ox),string:new Vc}}var ux=lx;function cx(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var fx=cx,dx=fx;function px(e,t){var r=e.__data__;return dx(t)?r[typeof t=="string"?"string":"hash"]:r.map}var pa=px,hx=pa;function vx(e){var t=hx(this,e).delete(e);return this.size-=t?1:0,t}var yx=vx,gx=pa;function mx(e){return gx(this,e).get(e)}var bx=mx,xx=pa;function wx(e){return xx(this,e).has(e)}var Ox=wx,Sx=pa;function Ax(e,t){var r=Sx(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Px=Ax,_x=ux,Tx=yx,Ex=bx,$x=Ox,jx=Px;function Kr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Kr.prototype.clear=_x,Kr.prototype.delete=Tx,Kr.prototype.get=Ex,Kr.prototype.has=$x,Kr.prototype.set=jx;var gs=Kr,Yc=gs,Cx="Expected a function";function ms(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Cx);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(ms.Cache||Yc),r}ms.Cache=Yc;var Xc=ms;const Mx=Te(Xc);var kx=Xc,Ix=500;function Nx(e){var t=kx(e,function(n){return r.size===Ix&&r.clear(),n}),r=t.cache;return t}var Dx=Nx,Lx=Dx,Rx=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Bx=/\\(\\)?/g,Fx=Lx(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Rx,function(r,n,i,a){t.push(i?a.replace(Bx,"$1"):n||r)}),t}),zx=Fx;function Wx(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var bs=Wx,Zc=Zn,Ux=bs,Gx=rt,qx=Wr,Jc=Zc?Zc.prototype:void 0,Qc=Jc?Jc.toString:void 0;function ef(e){if(typeof e=="string")return e;if(Gx(e))return Ux(e,ef)+"";if(qx(e))return Qc?Qc.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Kx=ef,Hx=Kx;function Vx(e){return e==null?"":Hx(e)}var tf=Vx,Yx=rt,Xx=ds,Zx=zx,Jx=tf;function Qx(e,t){return Yx(e)?e:Xx(e,t)?[e]:Zx(Jx(e))}var rf=Qx,ew=Wr;function tw(e){if(typeof e=="string"||ew(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var ha=tw,rw=rf,nw=ha;function iw(e,t){t=rw(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[nw(t[r++])];return r&&r==n?e:void 0}var xs=iw,aw=xs;function ow(e,t,r){var n=e==null?void 0:aw(e,t);return n===void 0?r:n}var nf=ow;const pt=Te(nf);function sw(e){return e==null}var lw=sw;const oe=Te(lw);var uw=zt,cw=rt,fw=Wt,dw="[object String]";function pw(e){return typeof e=="string"||!cw(e)&&fw(e)&&uw(e)==dw}var hw=pw;const br=Te(hw);var ws={exports:{}},ge={};/**
30
+ <%s key={someKey} {...props} />`,cf,Jr,KU,Jr),Db[Jr+cf]=!0}}return C===n?WU(Ke):FU(Ke),Ke}}function UU(C,H,re){return Ib(C,H,re,!0)}function zU(C,H,re){return Ib(C,H,re,!1)}var GU=zU,qU=UU;oa.Fragment=n,oa.jsx=GU,oa.jsxs=qU}()),oa}process.env.NODE_ENV==="production"?Ls.exports=Rb():Ls.exports=Bb();var b=Ls.exports;function hf(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=hf(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function pe(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=hf(e))&&(n&&(n+=" "),n+=t);return n}var Fb=Array.isArray,lt=Fb,Wb=typeof _i=="object"&&_i&&_i.Object===Object&&_i,pf=Wb,Ub=pf,zb=typeof self=="object"&&self&&self.Object===Object&&self,Gb=Ub||zb||Function("return this")(),Ft=Gb,qb=Ft,Kb=qb.Symbol,sa=Kb,vf=sa,yf=Object.prototype,Vb=yf.hasOwnProperty,Hb=yf.toString,la=vf?vf.toStringTag:void 0;function Yb(e){var t=Vb.call(e,la),r=e[la];try{e[la]=void 0;var n=!0}catch{}var a=Hb.call(e);return n&&(t?e[la]=r:delete e[la]),a}var Xb=Yb,Jb=Object.prototype,Zb=Jb.toString;function Qb(e){return Zb.call(e)}var e0=Qb,mf=sa,t0=Xb,r0=e0,n0="[object Null]",a0="[object Undefined]",gf=mf?mf.toStringTag:void 0;function i0(e){return e==null?e===void 0?a0:n0:gf&&gf in Object(e)?t0(e):r0(e)}var Ht=i0;function o0(e){return e!=null&&typeof e=="object"}var Yt=o0,s0=Ht,l0=Yt,u0="[object Symbol]";function c0(e){return typeof e=="symbol"||l0(e)&&s0(e)==u0}var Qr=c0,f0=lt,d0=Qr,h0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,p0=/^\w*$/;function v0(e,t){if(f0(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||d0(e)?!0:p0.test(e)||!h0.test(e)||t!=null&&e in Object(t)}var Rs=v0;function y0(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ur=y0;const en=ke(ur);var m0=Ht,g0=ur,b0="[object AsyncFunction]",x0="[object Function]",w0="[object GeneratorFunction]",O0="[object Proxy]";function S0(e){if(!g0(e))return!1;var t=m0(e);return t==x0||t==w0||t==b0||t==O0}var Bs=S0;const de=ke(Bs);var A0=Ft,T0=A0["__core-js_shared__"],P0=T0,Fs=P0,bf=function(){var e=/[^.]+$/.exec(Fs&&Fs.keys&&Fs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function _0(e){return!!bf&&bf in e}var E0=_0,j0=Function.prototype,$0=j0.toString;function C0(e){if(e!=null){try{return $0.call(e)}catch{}try{return e+""}catch{}}return""}var xf=C0,M0=Bs,k0=E0,N0=ur,D0=xf,I0=/[\\^$.*+?()[\]{}|]/g,L0=/^\[object .+?Constructor\]$/,R0=Function.prototype,B0=Object.prototype,F0=R0.toString,W0=B0.hasOwnProperty,U0=RegExp("^"+F0.call(W0).replace(I0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function z0(e){if(!N0(e)||k0(e))return!1;var t=M0(e)?U0:L0;return t.test(D0(e))}var G0=z0;function q0(e,t){return e==null?void 0:e[t]}var K0=q0,V0=G0,H0=K0;function Y0(e,t){var r=H0(e,t);return V0(r)?r:void 0}var Pr=Y0,X0=Pr,J0=X0(Object,"create"),Ei=J0,wf=Ei;function Z0(){this.__data__=wf?wf(null):{},this.size=0}var Q0=Z0;function ex(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var tx=ex,rx=Ei,nx="__lodash_hash_undefined__",ax=Object.prototype,ix=ax.hasOwnProperty;function ox(e){var t=this.__data__;if(rx){var r=t[e];return r===nx?void 0:r}return ix.call(t,e)?t[e]:void 0}var sx=ox,lx=Ei,ux=Object.prototype,cx=ux.hasOwnProperty;function fx(e){var t=this.__data__;return lx?t[e]!==void 0:cx.call(t,e)}var dx=fx,hx=Ei,px="__lodash_hash_undefined__";function vx(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=hx&&t===void 0?px:t,this}var yx=vx,mx=Q0,gx=tx,bx=sx,xx=dx,wx=yx;function tn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}tn.prototype.clear=mx,tn.prototype.delete=gx,tn.prototype.get=bx,tn.prototype.has=xx,tn.prototype.set=wx;var Ox=tn;function Sx(){this.__data__=[],this.size=0}var Ax=Sx;function Tx(e,t){return e===t||e!==e&&t!==t}var Ws=Tx,Px=Ws;function _x(e,t){for(var r=e.length;r--;)if(Px(e[r][0],t))return r;return-1}var ji=_x,Ex=ji,jx=Array.prototype,$x=jx.splice;function Cx(e){var t=this.__data__,r=Ex(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():$x.call(t,r,1),--this.size,!0}var Mx=Cx,kx=ji;function Nx(e){var t=this.__data__,r=kx(t,e);return r<0?void 0:t[r][1]}var Dx=Nx,Ix=ji;function Lx(e){return Ix(this.__data__,e)>-1}var Rx=Lx,Bx=ji;function Fx(e,t){var r=this.__data__,n=Bx(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Wx=Fx,Ux=Ax,zx=Mx,Gx=Dx,qx=Rx,Kx=Wx;function rn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}rn.prototype.clear=Ux,rn.prototype.delete=zx,rn.prototype.get=Gx,rn.prototype.has=qx,rn.prototype.set=Kx;var $i=rn,Vx=Pr,Hx=Ft,Yx=Vx(Hx,"Map"),Us=Yx,Of=Ox,Xx=$i,Jx=Us;function Zx(){this.size=0,this.__data__={hash:new Of,map:new(Jx||Xx),string:new Of}}var Qx=Zx;function ew(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var tw=ew,rw=tw;function nw(e,t){var r=e.__data__;return rw(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Ci=nw,aw=Ci;function iw(e){var t=aw(this,e).delete(e);return this.size-=t?1:0,t}var ow=iw,sw=Ci;function lw(e){return sw(this,e).get(e)}var uw=lw,cw=Ci;function fw(e){return cw(this,e).has(e)}var dw=fw,hw=Ci;function pw(e,t){var r=hw(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var vw=pw,yw=Qx,mw=ow,gw=uw,bw=dw,xw=vw;function nn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}nn.prototype.clear=yw,nn.prototype.delete=mw,nn.prototype.get=gw,nn.prototype.has=bw,nn.prototype.set=xw;var zs=nn,Sf=zs,ww="Expected a function";function Gs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ww);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(Gs.Cache||Sf),r}Gs.Cache=Sf;var Af=Gs;const Ow=ke(Af);var Sw=Af,Aw=500;function Tw(e){var t=Sw(e,function(n){return r.size===Aw&&r.clear(),n}),r=t.cache;return t}var Pw=Tw,_w=Pw,Ew=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jw=/\\(\\)?/g,$w=_w(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ew,function(r,n,a,i){t.push(a?i.replace(jw,"$1"):n||r)}),t}),Cw=$w;function Mw(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var qs=Mw,Tf=sa,kw=qs,Nw=lt,Dw=Qr,Pf=Tf?Tf.prototype:void 0,_f=Pf?Pf.toString:void 0;function Ef(e){if(typeof e=="string")return e;if(Nw(e))return kw(e,Ef)+"";if(Dw(e))return _f?_f.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Iw=Ef,Lw=Iw;function Rw(e){return e==null?"":Lw(e)}var jf=Rw,Bw=lt,Fw=Rs,Ww=Cw,Uw=jf;function zw(e,t){return Bw(e)?e:Fw(e,t)?[e]:Ww(Uw(e))}var $f=zw,Gw=Qr;function qw(e){if(typeof e=="string"||Gw(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Mi=qw,Kw=$f,Vw=Mi;function Hw(e,t){t=Kw(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Vw(t[r++])];return r&&r==n?e:void 0}var Ks=Hw,Yw=Ks;function Xw(e,t,r){var n=e==null?void 0:Yw(e,t);return n===void 0?r:n}var Cf=Xw;const xt=ke(Cf);function Jw(e){return e==null}var Zw=Jw;const ue=ke(Zw);var Qw=Ht,e1=lt,t1=Yt,r1="[object String]";function n1(e){return typeof e=="string"||!e1(e)&&t1(e)&&Qw(e)==r1}var a1=n1;const _r=ke(a1);var Vs={exports:{}},xe={};/**
31
31
  * @license React
32
32
  * react-is.production.min.js
33
33
  *
@@ -35,7 +35,7 @@ React keys must be passed directly to JSX without using spread:
35
35
  *
36
36
  * This source code is licensed under the MIT license found in the
37
37
  * LICENSE file in the root directory of this source tree.
38
- */var af;function vw(){if(af)return ge;af=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function h(v){if(typeof v=="object"&&v!==null){var m=v.$$typeof;switch(m){case e:switch(v=v.type,v){case r:case i:case n:case u:case c:return v;default:switch(v=v&&v.$$typeof,v){case s:case o:case l:case d:case f:case a:return v;default:return m}}case t:return m}}}return ge.ContextConsumer=o,ge.ContextProvider=a,ge.Element=e,ge.ForwardRef=l,ge.Fragment=r,ge.Lazy=d,ge.Memo=f,ge.Portal=t,ge.Profiler=i,ge.StrictMode=n,ge.Suspense=u,ge.SuspenseList=c,ge.isAsyncMode=function(){return!1},ge.isConcurrentMode=function(){return!1},ge.isContextConsumer=function(v){return h(v)===o},ge.isContextProvider=function(v){return h(v)===a},ge.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},ge.isForwardRef=function(v){return h(v)===l},ge.isFragment=function(v){return h(v)===r},ge.isLazy=function(v){return h(v)===d},ge.isMemo=function(v){return h(v)===f},ge.isPortal=function(v){return h(v)===t},ge.isProfiler=function(v){return h(v)===i},ge.isStrictMode=function(v){return h(v)===n},ge.isSuspense=function(v){return h(v)===u},ge.isSuspenseList=function(v){return h(v)===c},ge.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===i||v===n||v===u||v===c||v===p||typeof v=="object"&&v!==null&&(v.$$typeof===d||v.$$typeof===f||v.$$typeof===a||v.$$typeof===o||v.$$typeof===l||v.$$typeof===g||v.getModuleId!==void 0)},ge.typeOf=h,ge}var me={};/**
38
+ */var Mf;function i1(){if(Mf)return xe;Mf=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function p(v){if(typeof v=="object"&&v!==null){var g=v.$$typeof;switch(g){case e:switch(v=v.type,v){case r:case a:case n:case u:case c:return v;default:switch(v=v&&v.$$typeof,v){case s:case o:case l:case d:case f:case i:return v;default:return g}}case t:return g}}}return xe.ContextConsumer=o,xe.ContextProvider=i,xe.Element=e,xe.ForwardRef=l,xe.Fragment=r,xe.Lazy=d,xe.Memo=f,xe.Portal=t,xe.Profiler=a,xe.StrictMode=n,xe.Suspense=u,xe.SuspenseList=c,xe.isAsyncMode=function(){return!1},xe.isConcurrentMode=function(){return!1},xe.isContextConsumer=function(v){return p(v)===o},xe.isContextProvider=function(v){return p(v)===i},xe.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},xe.isForwardRef=function(v){return p(v)===l},xe.isFragment=function(v){return p(v)===r},xe.isLazy=function(v){return p(v)===d},xe.isMemo=function(v){return p(v)===f},xe.isPortal=function(v){return p(v)===t},xe.isProfiler=function(v){return p(v)===a},xe.isStrictMode=function(v){return p(v)===n},xe.isSuspense=function(v){return p(v)===u},xe.isSuspenseList=function(v){return p(v)===c},xe.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===a||v===n||v===u||v===c||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===d||v.$$typeof===f||v.$$typeof===i||v.$$typeof===o||v.$$typeof===l||v.$$typeof===y||v.getModuleId!==void 0)},xe.typeOf=p,xe}var we={};/**
39
39
  * @license React
40
40
  * react-is.development.js
41
41
  *
@@ -43,111 +43,161 @@ React keys must be passed directly to JSX without using spread:
43
43
  *
44
44
  * This source code is licensed under the MIT license found in the
45
45
  * LICENSE file in the root directory of this source tree.
46
- */var of;function yw(){return of||(of=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g=!1,h=!1,v=!1,m=!1,w=!1,x;x=Symbol.for("react.module.reference");function S(K){return!!(typeof K=="string"||typeof K=="function"||K===r||K===i||w||K===n||K===u||K===c||m||K===p||g||h||v||typeof K=="object"&&K!==null&&(K.$$typeof===d||K.$$typeof===f||K.$$typeof===a||K.$$typeof===o||K.$$typeof===l||K.$$typeof===x||K.getModuleId!==void 0))}function y(K){if(typeof K=="object"&&K!==null){var ye=K.$$typeof;switch(ye){case e:var Oe=K.type;switch(Oe){case r:case i:case n:case u:case c:return Oe;default:var Fe=Oe&&Oe.$$typeof;switch(Fe){case s:case o:case l:case d:case f:case a:return Fe;default:return ye}}case t:return ye}}}var b=o,A=a,T=e,j=l,N=r,_=d,E=f,k=t,M=i,D=n,L=u,F=c,G=!1,U=!1;function I(K){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function R(K){return U||(U=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function z(K){return y(K)===o}function H(K){return y(K)===a}function X(K){return typeof K=="object"&&K!==null&&K.$$typeof===e}function ee(K){return y(K)===l}function te(K){return y(K)===r}function ie(K){return y(K)===d}function re(K){return y(K)===f}function W(K){return y(K)===t}function Y(K){return y(K)===i}function Q(K){return y(K)===n}function C(K){return y(K)===u}function fe(K){return y(K)===c}me.ContextConsumer=b,me.ContextProvider=A,me.Element=T,me.ForwardRef=j,me.Fragment=N,me.Lazy=_,me.Memo=E,me.Portal=k,me.Profiler=M,me.StrictMode=D,me.Suspense=L,me.SuspenseList=F,me.isAsyncMode=I,me.isConcurrentMode=R,me.isContextConsumer=z,me.isContextProvider=H,me.isElement=X,me.isForwardRef=ee,me.isFragment=te,me.isLazy=ie,me.isMemo=re,me.isPortal=W,me.isProfiler=Y,me.isStrictMode=Q,me.isSuspense=C,me.isSuspenseList=fe,me.isValidElementType=S,me.typeOf=y}()),me}process.env.NODE_ENV==="production"?ws.exports=vw():ws.exports=yw();var gw=ws.exports,mw=zt,bw=Wt,xw="[object Number]";function ww(e){return typeof e=="number"||bw(e)&&mw(e)==xw}var sf=ww;const Ow=Te(sf);var Sw=sf;function Aw(e){return Sw(e)&&e!=+e}var Pw=Aw;const Hr=Te(Pw);var Ot=function(t){return t===0?0:t>0?1:-1},xr=function(t){return br(t)&&t.indexOf("%")===t.length-1},V=function(t){return Ow(t)&&!Hr(t)},_w=function(t){return oe(t)},We=function(t){return V(t)||br(t)},Tw=0,wr=function(t){var r=++Tw;return"".concat(t||"").concat(r)},Or=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!V(t)&&!br(t))return n;var a;if(xr(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Hr(a)&&(a=n),i&&a>r&&(a=r),a},nr=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Ew=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},De=function(t,r){return V(t)&&V(r)?function(n){return t+n*(r-t)}:function(){return r}};function va(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):pt(n,t))===r})}var $w=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,i=0,a=0,o=0,s=1/0,l=-1/0,u=0,c=0,f=0;f<r;f++)u=t[f].cx||0,c=t[f].cy||0,n+=u,i+=c,a+=u*c,o+=u*u,s=Math.min(s,u),l=Math.max(l,u);var d=r*o!==n*n?(r*a-n*i)/(r*o-n*n):0;return{xmin:s,xmax:l,a:d,b:(i-d*n)/r}},jw=function(t,r){return V(t)&&V(r)?t-r:br(t)&&br(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Vr(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Os(e){"@babel/helpers - typeof";return Os=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},Os(e)}var Cw=["viewBox","children"],Mw=["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"],lf=["points","pathLength"],Ss={svg:Cw,polygon:lf,polyline:lf},As=["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"],ya=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(O.isValidElement(t)&&(n=t.props),!Ur(n))return null;var i={};return Object.keys(n).forEach(function(a){As.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},kw=function(t,r,n){return function(i){return t(r,n,i),null}},Qn=function(t,r,n){if(!Ur(t)||Os(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];As.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=kw(o,r,n))}),i},Iw=["children"],Nw=["children"];function uf(e,t){if(e==null)return{};var r=Dw(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Dw(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ps(e){"@babel/helpers - typeof";return Ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ps(e)}var cf={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"},Ut=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},ff=null,_s=null,Ts=function e(t){if(t===ff&&Array.isArray(_s))return _s;var r=[];return O.Children.forEach(t,function(n){oe(n)||(gw.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),_s=r,ff=t,r};function nt(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Ut(i)}):n=[Ut(t)],Ts(e).forEach(function(i){var a=pt(i,"type.displayName")||pt(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function st(e,t){var r=nt(e,t);return r&&r[0]}var df=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!V(n)||n<=0||!V(i)||i<=0)},Lw=["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"],Rw=function(t){return t&&t.type&&br(t.type)&&Lw.indexOf(t.type)>=0},pf=function(t){return t&&Ps(t)==="object"&&"clipDot"in t},Bw=function(t,r,n,i){var a,o=(a=Ss==null?void 0:Ss[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!le(t)&&(i&&o.includes(r)||Mw.includes(r))||n&&As.includes(r)},se=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(O.isValidElement(t)&&(i=t.props),!Ur(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;Bw((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},Es=function e(t,r){if(t===r)return!0;var n=O.Children.count(t);if(n!==O.Children.count(r))return!1;if(n===0)return!0;if(n===1)return hf(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!hf(a,o))return!1}return!0},hf=function(t,r){if(oe(t)&&oe(r))return!0;if(!oe(t)&&!oe(r)){var n=t.props||{},i=n.children,a=uf(n,Iw),o=r.props||{},s=o.children,l=uf(o,Nw);return i&&s?Vr(a,l)&&Es(i,s):!i&&!s?Vr(a,l):!1}return!1},vf=function(t,r){var n=[],i={};return Ts(t).forEach(function(a,o){if(Rw(a))n.push(a);else if(a){var s=Ut(a.type),l=r[s]||{},u=l.handler,c=l.once;if(u&&(!c||!i[s])){var f=u(a,s,o);n.push(f),i[s]=!0}}}),n},Fw=function(t){var r=t&&t.type;return r&&cf[r]?cf[r]:null},zw=function(t,r){return Ts(r).indexOf(t)},Ww=["children","width","height","viewBox","className","style","title","desc"];function $s(){return $s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$s.apply(this,arguments)}function Uw(e,t){if(e==null)return{};var r=Gw(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Gw(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function js(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,u=Uw(e,Ww),c=i||{width:r,height:n,x:0,y:0},f=ce("recharts-surface",a);return O.createElement("svg",$s({},se(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),O.createElement("title",null,s),O.createElement("desc",null,l),t)}var qw=["children","className"];function Cs(){return Cs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cs.apply(this,arguments)}function Kw(e,t){if(e==null)return{};var r=Hw(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Hw(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ve=O.forwardRef(function(e,t){var r=e.children,n=e.className,i=Kw(e,qw),a=ce("recharts-layer",n);return O.createElement("g",Cs({className:a},se(i,!0),{ref:t}),r)}),Vw=process.env.NODE_ENV!=="production",Gt=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(Vw&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return i[o++]}))}};function Yw(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}var Xw=Yw,Zw=Xw;function Jw(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:Zw(e,t,r)}var Qw=Jw,e1="\\ud800-\\udfff",t1="\\u0300-\\u036f",r1="\\ufe20-\\ufe2f",n1="\\u20d0-\\u20ff",i1=t1+r1+n1,a1="\\ufe0e\\ufe0f",o1="\\u200d",s1=RegExp("["+o1+e1+i1+a1+"]");function l1(e){return s1.test(e)}var yf=l1;function u1(e){return e.split("")}var c1=u1,gf="\\ud800-\\udfff",f1="\\u0300-\\u036f",d1="\\ufe20-\\ufe2f",p1="\\u20d0-\\u20ff",h1=f1+d1+p1,v1="\\ufe0e\\ufe0f",y1="["+gf+"]",Ms="["+h1+"]",ks="\\ud83c[\\udffb-\\udfff]",g1="(?:"+Ms+"|"+ks+")",mf="[^"+gf+"]",bf="(?:\\ud83c[\\udde6-\\uddff]){2}",xf="[\\ud800-\\udbff][\\udc00-\\udfff]",m1="\\u200d",wf=g1+"?",Of="["+v1+"]?",b1="(?:"+m1+"(?:"+[mf,bf,xf].join("|")+")"+Of+wf+")*",x1=Of+wf+b1,w1="(?:"+[mf+Ms+"?",Ms,bf,xf,y1].join("|")+")",O1=RegExp(ks+"(?="+ks+")|"+w1+x1,"g");function S1(e){return e.match(O1)||[]}var A1=S1,P1=c1,_1=yf,T1=A1;function E1(e){return _1(e)?T1(e):P1(e)}var $1=E1,j1=Qw,C1=yf,M1=$1,k1=tf;function I1(e){return function(t){t=k1(t);var r=C1(t)?M1(t):void 0,n=r?r[0]:t.charAt(0),i=r?j1(r,1).join(""):t.slice(1);return n[e]()+i}}var N1=I1,D1=N1,L1=D1("toUpperCase"),R1=L1;const ga=Te(R1);function Ee(e){return function(){return e}}const Sf=Math.cos,ma=Math.sin,St=Math.sqrt,ba=Math.PI,xa=2*ba,Is=Math.PI,Ns=2*Is,Sr=1e-6,B1=Ns-Sr;function Af(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function F1(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Af;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class z1{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Af:F1(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=n-t,u=i-r,c=o-t,f=s-r,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Sr)if(!(Math.abs(f*l-u*c)>Sr)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,g=i-s,h=l*l+u*u,v=p*p+g*g,m=Math.sqrt(h),w=Math.sqrt(d),x=a*Math.tan((Is-Math.acos((h+d-v)/(2*m*w)))/2),S=x/w,y=x/m;Math.abs(S-1)>Sr&&this._append`L${t+S*c},${r+S*f}`,this._append`A${a},${a},0,0,${+(f*p>c*g)},${this._x1=t+y*l},${this._y1=r+y*u}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),u=t+s,c=r+l,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Sr||Math.abs(this._y1-c)>Sr)&&this._append`L${u},${c}`,n&&(d<0&&(d=d%Ns+Ns),d>B1?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=u},${this._y1=c}`:d>Sr&&this._append`A${n},${n},0,${+(d>=Is)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Ds(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new z1(t)}function Ls(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Pf(e){this._context=e}Pf.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 wa(e){return new Pf(e)}function _f(e){return e[0]}function Tf(e){return e[1]}function Ef(e,t){var r=Ee(!0),n=null,i=wa,a=null,o=Ds(s);e=typeof e=="function"?e:e===void 0?_f:Ee(e),t=typeof t=="function"?t:t===void 0?Tf:Ee(t);function s(l){var u,c=(l=Ls(l)).length,f,d=!1,p;for(n==null&&(a=i(p=o())),u=0;u<=c;++u)!(u<c&&r(f=l[u],u,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,u,l),+t(f,u,l));if(p)return a=null,p+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Ee(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Ee(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Ee(!!l),s):r},s.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),s):i},s.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),s):n},s}function Oa(e,t,r){var n=null,i=Ee(!0),a=null,o=wa,s=null,l=Ds(u);e=typeof e=="function"?e:e===void 0?_f:Ee(+e),t=typeof t=="function"?t:Ee(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Tf:Ee(+r);function u(f){var d,p,g,h=(f=Ls(f)).length,v,m=!1,w,x=new Array(h),S=new Array(h);for(a==null&&(s=o(w=l())),d=0;d<=h;++d){if(!(d<h&&i(v=f[d],d,f))===m)if(m=!m)p=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=d-1;g>=p;--g)s.point(x[g],S[g]);s.lineEnd(),s.areaEnd()}m&&(x[d]=+e(v,d,f),S[d]=+t(v,d,f),s.point(n?+n(v,d,f):x[d],r?+r(v,d,f):S[d]))}if(w)return s=null,w+""||null}function c(){return Ef().defined(i).curve(o).context(a)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Ee(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Ee(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Ee(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Ee(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Ee(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Ee(+f),u):r},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(r)},u.lineX1=function(){return c().x(n).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Ee(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),u):o},u.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),u):a},u}class $f{constructor(t,r){this._context=t,this._x=r}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,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function W1(e){return new $f(e,!0)}function U1(e){return new $f(e,!1)}const Rs={draw(e,t){const r=St(t/ba);e.moveTo(r,0),e.arc(0,0,r,0,xa)}},G1={draw(e,t){const r=St(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},jf=St(1/3),q1=jf*2,K1={draw(e,t){const r=St(t/q1),n=r*jf;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},H1={draw(e,t){const r=St(t),n=-r/2;e.rect(n,n,r,r)}},V1=.8908130915292852,Cf=ma(ba/10)/ma(7*ba/10),Y1=ma(xa/10)*Cf,X1=-Sf(xa/10)*Cf,Z1={draw(e,t){const r=St(t*V1),n=Y1*r,i=X1*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=xa*a/5,s=Sf(o),l=ma(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},Bs=St(3),J1={draw(e,t){const r=-St(t/(Bs*3));e.moveTo(0,r*2),e.lineTo(-Bs*r,-r),e.lineTo(Bs*r,-r),e.closePath()}},ht=-.5,vt=St(3)/2,Fs=1/St(12),Q1=(Fs/2+1)*3,eO={draw(e,t){const r=St(t/Q1),n=r/2,i=r*Fs,a=n,o=r*Fs+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(ht*n-vt*i,vt*n+ht*i),e.lineTo(ht*a-vt*o,vt*a+ht*o),e.lineTo(ht*s-vt*l,vt*s+ht*l),e.lineTo(ht*n+vt*i,ht*i-vt*n),e.lineTo(ht*a+vt*o,ht*o-vt*a),e.lineTo(ht*s+vt*l,ht*l-vt*s),e.closePath()}};function tO(e,t){let r=null,n=Ds(i);e=typeof e=="function"?e:Ee(e||Rs),t=typeof t=="function"?t:Ee(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Ee(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Ee(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Sa(){}function Aa(e,t,r){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+r)/6)}function Mf(e){this._context=e}Mf.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:Aa(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:Aa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function rO(e){return new Mf(e)}function kf(e){this._context=e}kf.prototype={areaStart:Sa,areaEnd:Sa,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:Aa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function nO(e){return new kf(e)}function If(e){this._context=e}If.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 r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Aa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function iO(e){return new If(e)}function Nf(e){this._context=e}Nf.prototype={areaStart:Sa,areaEnd:Sa,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 aO(e){return new Nf(e)}function Df(e){return e<0?-1:1}function Lf(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(Df(a)+Df(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Rf(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function zs(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function Pa(e){this._context=e}Pa.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:zs(this,this._t0,Rf(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 r=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,zs(this,Rf(this,r=Lf(this,e,t)),r);break;default:zs(this,this._t0,r=Lf(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Bf(e){this._context=new Ff(e)}(Bf.prototype=Object.create(Pa.prototype)).point=function(e,t){Pa.prototype.point.call(this,t,e)};function Ff(e){this._context=e}Ff.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,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function oO(e){return new Pa(e)}function sO(e){return new Bf(e)}function zf(e){this._context=e}zf.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,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Wf(e),i=Wf(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===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 Wf(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function lO(e){return new zf(e)}function _a(e,t){this._context=e,this._t=t}_a.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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function uO(e){return new _a(e,.5)}function cO(e){return new _a(e,0)}function fO(e){return new _a(e,1)}function Yr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Ws(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function dO(e,t){return e[t]}function pO(e){const t=[];return t.key=e,t}function hO(){var e=Ee([]),t=Ws,r=Yr,n=dO;function i(a){var o=Array.from(e.apply(this,arguments),pO),s,l=o.length,u=-1,c;for(const f of a)for(s=0,++u;s<l;++s)(o[s][u]=[0,+n(f,o[s].key,u,a)]).data=f;for(s=0,c=Ls(t(o));s<l;++s)o[c[s]].index=s;return r(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Ee(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Ee(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Ws:typeof a=="function"?a:Ee(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Yr,i):r},i}function vO(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Yr(e,t)}}function yO(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}Yr(e,t)}}function gO(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,l=0,u=0;s<o;++s){for(var c=e[t[s]],f=c[n][1]||0,d=c[n-1][1]||0,p=(f-d)/2,g=0;g<s;++g){var h=e[t[g]],v=h[n][1]||0,m=h[n-1][1]||0;p+=v-m}l+=f,u+=p*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=u/l)}i[n-1][1]+=i[n-1][0]=r,Yr(e,t)}}function ei(e){"@babel/helpers - typeof";return ei=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},ei(e)}var mO=["type","size","sizeType"];function Us(){return Us=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Us.apply(this,arguments)}function Uf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uf(Object(r),!0).forEach(function(n){bO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bO(e,t,r){return t=xO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xO(e){var t=wO(e,"string");return ei(t)=="symbol"?t:t+""}function wO(e,t){if(ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OO(e,t){if(e==null)return{};var r=SO(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function SO(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var qf={symbolCircle:Rs,symbolCross:G1,symbolDiamond:K1,symbolSquare:H1,symbolStar:Z1,symbolTriangle:J1,symbolWye:eO},AO=Math.PI/180,PO=function(t){var r="symbol".concat(ga(t));return qf[r]||Rs},_O=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*AO;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},TO=function(t,r){qf["symbol".concat(ga(t))]=r},Ta=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=OO(t,mO),u=Gf(Gf({},l),{},{type:n,size:a,sizeType:s}),c=function(){var v=PO(n),m=tO().type(v).size(_O(a,s,n));return m()},f=u.className,d=u.cx,p=u.cy,g=se(u,!0);return d===+d&&p===+p&&a===+a?O.createElement("path",Us({},g,{className:ce("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:c()})):null};Ta.registerSymbol=TO;function Xr(e){"@babel/helpers - typeof";return Xr=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},Xr(e)}function Gs(){return Gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gs.apply(this,arguments)}function Kf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function EO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kf(Object(r),!0).forEach(function(n){ti(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Vf(n.key),n)}}function CO(e,t,r){return t&&jO(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function MO(e,t,r){return t=Ea(t),kO(e,Hf()?Reflect.construct(t,r||[],Ea(e).constructor):t.apply(e,r))}function kO(e,t){if(t&&(Xr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IO(e)}function IO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hf=function(){return!!e})()}function Ea(e){return Ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ea(e)}function NO(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&&qs(e,t)}function qs(e,t){return qs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qs(e,t)}function ti(e,t,r){return t=Vf(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vf(e){var t=DO(e,"string");return Xr(t)=="symbol"?t:t+""}function DO(e,t){if(Xr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var yt=32,Ks=function(e){function t(){return $O(this,t),MO(this,t,arguments)}return NO(t,e),CO(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=yt/2,o=yt/6,s=yt/3,l=n.inactive?i:n.color;if(n.type==="plainline")return O.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:yt,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return O.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,`
47
- A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,`
48
- H`).concat(yt,"M").concat(2*s,",").concat(a,`
49
- A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return O.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(yt/8,"h").concat(yt,"v").concat(yt*3/4,"h").concat(-yt,"z"),className:"recharts-legend-icon"});if(O.isValidElement(n.legendIcon)){var u=EO({},n);return delete u.legendIcon,O.cloneElement(n.legendIcon,u)}return O.createElement(Ta,{fill:l,cx:a,cy:a,size:yt,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,l=i.formatter,u=i.inactiveColor,c={x:0,y:0,width:yt,height:yt},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,g){var h=p.formatter||l,v=ce(ti(ti({"recharts-legend-item":!0},"legend-item-".concat(g),!0),"inactive",p.inactive));if(p.type==="none")return null;var m=le(p.value)?null:p.value;Gt(!le(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var w=p.inactive?u:p.color;return O.createElement("li",Gs({className:v,style:f,key:"legend-item-".concat(g)},Qn(n.props,p,g)),O.createElement(js,{width:o,height:o,viewBox:c,style:d},n.renderIcon(p)),O.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},h?h(m,p,g):m))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return O.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(O.PureComponent);ti(Ks,"displayName","Legend"),ti(Ks,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var LO=da;function RO(){this.__data__=new LO,this.size=0}var BO=RO;function FO(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var zO=FO;function WO(e){return this.__data__.get(e)}var UO=WO;function GO(e){return this.__data__.has(e)}var qO=GO,KO=da,HO=ys,VO=gs,YO=200;function XO(e,t){var r=this.__data__;if(r instanceof KO){var n=r.__data__;if(!HO||n.length<YO-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new VO(n)}return r.set(e,t),this.size=r.size,this}var ZO=XO,JO=da,QO=BO,eS=zO,tS=UO,rS=qO,nS=ZO;function Zr(e){var t=this.__data__=new JO(e);this.size=t.size}Zr.prototype.clear=QO,Zr.prototype.delete=eS,Zr.prototype.get=tS,Zr.prototype.has=rS,Zr.prototype.set=nS;var Yf=Zr,iS="__lodash_hash_undefined__";function aS(e){return this.__data__.set(e,iS),this}var oS=aS;function sS(e){return this.__data__.has(e)}var lS=sS,uS=gs,cS=oS,fS=lS;function $a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new uS;++t<r;)this.add(e[t])}$a.prototype.add=$a.prototype.push=cS,$a.prototype.has=fS;var Xf=$a;function dS(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Zf=dS;function pS(e,t){return e.has(t)}var Jf=pS,hS=Xf,vS=Zf,yS=Jf,gS=1,mS=2;function bS(e,t,r,n,i,a){var o=r&gS,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,p=r&mS?new hS:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var g=e[f],h=t[f];if(n)var v=o?n(h,g,f,t,e,a):n(g,h,f,e,t,a);if(v!==void 0){if(v)continue;d=!1;break}if(p){if(!vS(t,function(m,w){if(!yS(p,w)&&(g===m||i(g,m,r,n,a)))return p.push(w)})){d=!1;break}}else if(!(g===h||i(g,h,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}var Qf=bS,xS=kt,wS=xS.Uint8Array,OS=wS;function SS(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var AS=SS;function PS(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Hs=PS,ed=Zn,td=OS,_S=vs,TS=Qf,ES=AS,$S=Hs,jS=1,CS=2,MS="[object Boolean]",kS="[object Date]",IS="[object Error]",NS="[object Map]",DS="[object Number]",LS="[object RegExp]",RS="[object Set]",BS="[object String]",FS="[object Symbol]",zS="[object ArrayBuffer]",WS="[object DataView]",rd=ed?ed.prototype:void 0,Vs=rd?rd.valueOf:void 0;function US(e,t,r,n,i,a,o){switch(r){case WS:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case zS:return!(e.byteLength!=t.byteLength||!a(new td(e),new td(t)));case MS:case kS:case DS:return _S(+e,+t);case IS:return e.name==t.name&&e.message==t.message;case LS:case BS:return e==t+"";case NS:var s=ES;case RS:var l=n&jS;if(s||(s=$S),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;n|=CS,o.set(e,t);var c=TS(s(e),s(t),n,i,a,o);return o.delete(e),c;case FS:if(Vs)return Vs.call(e)==Vs.call(t)}return!1}var GS=US;function qS(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var nd=qS,KS=nd,HS=rt;function VS(e,t,r){var n=t(e);return HS(e)?n:KS(n,r(e))}var YS=VS;function XS(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}var ZS=XS;function JS(){return[]}var QS=JS,eA=ZS,tA=QS,rA=Object.prototype,nA=rA.propertyIsEnumerable,id=Object.getOwnPropertySymbols,iA=id?function(e){return e==null?[]:(e=Object(e),eA(id(e),function(t){return nA.call(e,t)}))}:tA,aA=iA;function oA(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var sA=oA,lA=zt,uA=Wt,cA="[object Arguments]";function fA(e){return uA(e)&&lA(e)==cA}var dA=fA,ad=dA,pA=Wt,od=Object.prototype,hA=od.hasOwnProperty,vA=od.propertyIsEnumerable,yA=ad(function(){return arguments}())?ad:function(e){return pA(e)&&hA.call(e,"callee")&&!vA.call(e,"callee")},Ys=yA,ja={exports:{}};function gA(){return!1}var mA=gA;ja.exports,function(e,t){var r=kt,n=mA,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u}(ja,ja.exports);var sd=ja.exports,bA=9007199254740991,xA=/^(?:0|[1-9]\d*)$/;function wA(e,t){var r=typeof e;return t=t??bA,!!t&&(r=="number"||r!="symbol"&&xA.test(e))&&e>-1&&e%1==0&&e<t}var Xs=wA,OA=9007199254740991;function SA(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=OA}var Zs=SA,AA=zt,PA=Zs,_A=Wt,TA="[object Arguments]",EA="[object Array]",$A="[object Boolean]",jA="[object Date]",CA="[object Error]",MA="[object Function]",kA="[object Map]",IA="[object Number]",NA="[object Object]",DA="[object RegExp]",LA="[object Set]",RA="[object String]",BA="[object WeakMap]",FA="[object ArrayBuffer]",zA="[object DataView]",WA="[object Float32Array]",UA="[object Float64Array]",GA="[object Int8Array]",qA="[object Int16Array]",KA="[object Int32Array]",HA="[object Uint8Array]",VA="[object Uint8ClampedArray]",YA="[object Uint16Array]",XA="[object Uint32Array]",je={};je[WA]=je[UA]=je[GA]=je[qA]=je[KA]=je[HA]=je[VA]=je[YA]=je[XA]=!0,je[TA]=je[EA]=je[FA]=je[$A]=je[zA]=je[jA]=je[CA]=je[MA]=je[kA]=je[IA]=je[NA]=je[DA]=je[LA]=je[RA]=je[BA]=!1;function ZA(e){return _A(e)&&PA(e.length)&&!!je[AA(e)]}var JA=ZA;function QA(e){return function(t){return e(t)}}var ld=QA,Ca={exports:{}};Ca.exports,function(e,t){var r=Fc,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s}(Ca,Ca.exports);var eP=Ca.exports,tP=JA,rP=ld,ud=eP,cd=ud&&ud.isTypedArray,nP=cd?rP(cd):tP,fd=nP,iP=sA,aP=Ys,oP=rt,sP=sd,lP=Xs,uP=fd,cP=Object.prototype,fP=cP.hasOwnProperty;function dP(e,t){var r=oP(e),n=!r&&aP(e),i=!r&&!n&&sP(e),a=!r&&!n&&!i&&uP(e),o=r||n||i||a,s=o?iP(e.length,String):[],l=s.length;for(var u in e)(t||fP.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||lP(u,l)))&&s.push(u);return s}var pP=dP,hP=Object.prototype;function vP(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||hP;return e===r}var yP=vP;function gP(e,t){return function(r){return e(t(r))}}var dd=gP,mP=dd,bP=mP(Object.keys,Object),xP=bP,wP=yP,OP=xP,SP=Object.prototype,AP=SP.hasOwnProperty;function PP(e){if(!wP(e))return OP(e);var t=[];for(var r in Object(e))AP.call(e,r)&&r!="constructor"&&t.push(r);return t}var _P=PP,TP=ps,EP=Zs;function $P(e){return e!=null&&EP(e.length)&&!TP(e)}var ri=$P,jP=pP,CP=_P,MP=ri;function kP(e){return MP(e)?jP(e):CP(e)}var Ma=kP,IP=YS,NP=aA,DP=Ma;function LP(e){return IP(e,DP,NP)}var RP=LP,pd=RP,BP=1,FP=Object.prototype,zP=FP.hasOwnProperty;function WP(e,t,r,n,i,a){var o=r&BP,s=pd(e),l=s.length,u=pd(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var d=s[f];if(!(o?d in t:zP.call(t,d)))return!1}var p=a.get(e),g=a.get(t);if(p&&g)return p==t&&g==e;var h=!0;a.set(e,t),a.set(t,e);for(var v=o;++f<l;){d=s[f];var m=e[d],w=t[d];if(n)var x=o?n(w,m,d,t,e,a):n(m,w,d,e,t,a);if(!(x===void 0?m===w||i(m,w,r,n,a):x)){h=!1;break}v||(v=d=="constructor")}if(h&&!v){var S=e.constructor,y=t.constructor;S!=y&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof y=="function"&&y instanceof y)&&(h=!1)}return a.delete(e),a.delete(t),h}var UP=WP,GP=mr,qP=kt,KP=GP(qP,"DataView"),HP=KP,VP=mr,YP=kt,XP=VP(YP,"Promise"),ZP=XP,JP=mr,QP=kt,e_=JP(QP,"Set"),hd=e_,t_=mr,r_=kt,n_=t_(r_,"WeakMap"),i_=n_,Js=HP,Qs=ys,el=ZP,tl=hd,rl=i_,vd=zt,Jr=Kc,yd="[object Map]",a_="[object Object]",gd="[object Promise]",md="[object Set]",bd="[object WeakMap]",xd="[object DataView]",o_=Jr(Js),s_=Jr(Qs),l_=Jr(el),u_=Jr(tl),c_=Jr(rl),Ar=vd;(Js&&Ar(new Js(new ArrayBuffer(1)))!=xd||Qs&&Ar(new Qs)!=yd||el&&Ar(el.resolve())!=gd||tl&&Ar(new tl)!=md||rl&&Ar(new rl)!=bd)&&(Ar=function(e){var t=vd(e),r=t==a_?e.constructor:void 0,n=r?Jr(r):"";if(n)switch(n){case o_:return xd;case s_:return yd;case l_:return gd;case u_:return md;case c_:return bd}return t});var f_=Ar,nl=Yf,d_=Qf,p_=GS,h_=UP,wd=f_,Od=rt,Sd=sd,v_=fd,y_=1,Ad="[object Arguments]",Pd="[object Array]",ka="[object Object]",g_=Object.prototype,_d=g_.hasOwnProperty;function m_(e,t,r,n,i,a){var o=Od(e),s=Od(t),l=o?Pd:wd(e),u=s?Pd:wd(t);l=l==Ad?ka:l,u=u==Ad?ka:u;var c=l==ka,f=u==ka,d=l==u;if(d&&Sd(e)){if(!Sd(t))return!1;o=!0,c=!1}if(d&&!c)return a||(a=new nl),o||v_(e)?d_(e,t,r,n,i,a):p_(e,t,l,r,n,i,a);if(!(r&y_)){var p=c&&_d.call(e,"__wrapped__"),g=f&&_d.call(t,"__wrapped__");if(p||g){var h=p?e.value():e,v=g?t.value():t;return a||(a=new nl),i(h,v,r,n,a)}}return d?(a||(a=new nl),h_(e,t,r,n,i,a)):!1}var b_=m_,x_=b_,Td=Wt;function Ed(e,t,r,n,i){return e===t?!0:e==null||t==null||!Td(e)&&!Td(t)?e!==e&&t!==t:x_(e,t,r,n,Ed,i)}var il=Ed,w_=Yf,O_=il,S_=1,A_=2;function P_(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=r[i];var l=s[0],u=e[l],c=s[1];if(o&&s[2]){if(u===void 0&&!(l in e))return!1}else{var f=new w_;if(n)var d=n(u,c,l,e,t,f);if(!(d===void 0?O_(c,u,S_|A_,n,f):d))return!1}}return!0}var __=P_,T_=rr;function E_(e){return e===e&&!T_(e)}var $d=E_,$_=$d,j_=Ma;function C_(e){for(var t=j_(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,$_(i)]}return t}var M_=C_;function k_(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var jd=k_,I_=__,N_=M_,D_=jd;function L_(e){var t=N_(e);return t.length==1&&t[0][2]?D_(t[0][0],t[0][1]):function(r){return r===e||I_(r,e,t)}}var R_=L_;function B_(e,t){return e!=null&&t in Object(e)}var F_=B_,z_=rf,W_=Ys,U_=rt,G_=Xs,q_=Zs,K_=ha;function H_(e,t,r){t=z_(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=K_(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&q_(i)&&G_(o,i)&&(U_(e)||W_(e)))}var V_=H_,Y_=F_,X_=V_;function Z_(e,t){return e!=null&&X_(e,t,Y_)}var J_=Z_,Q_=il,eT=nf,tT=J_,rT=ds,nT=$d,iT=jd,aT=ha,oT=1,sT=2;function lT(e,t){return rT(e)&&nT(t)?iT(aT(e),t):function(r){var n=eT(r,e);return n===void 0&&n===t?tT(r,e):Q_(t,n,oT|sT)}}var uT=lT;function cT(e){return e}var Qr=cT;function fT(e){return function(t){return t==null?void 0:t[e]}}var dT=fT,pT=xs;function hT(e){return function(t){return pT(t,e)}}var vT=hT,yT=dT,gT=vT,mT=ds,bT=ha;function xT(e){return mT(e)?yT(bT(e)):gT(e)}var wT=xT,OT=R_,ST=uT,AT=Qr,PT=rt,_T=wT;function TT(e){return typeof e=="function"?e:e==null?AT:typeof e=="object"?PT(e)?ST(e[0],e[1]):OT(e):_T(e)}var ir=TT;function ET(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var Cd=ET;function $T(e){return e!==e}var jT=$T;function CT(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var MT=CT,kT=Cd,IT=jT,NT=MT;function DT(e,t,r){return t===t?NT(e,t,r):kT(e,IT,r)}var LT=DT,RT=LT;function BT(e,t){var r=e==null?0:e.length;return!!r&&RT(e,t,0)>-1}var FT=BT;function zT(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var WT=zT;function UT(){}var GT=UT,al=hd,qT=GT,KT=Hs,HT=1/0,VT=al&&1/KT(new al([,-0]))[1]==HT?function(e){return new al(e)}:qT,YT=VT,XT=Xf,ZT=FT,JT=WT,QT=Jf,eE=YT,tE=Hs,rE=200;function nE(e,t,r){var n=-1,i=ZT,a=e.length,o=!0,s=[],l=s;if(r)o=!1,i=JT;else if(a>=rE){var u=t?null:eE(e);if(u)return tE(u);o=!1,i=QT,l=new XT}else l=t?[]:s;e:for(;++n<a;){var c=e[n],f=t?t(c):c;if(c=r||c!==0?c:0,o&&f===f){for(var d=l.length;d--;)if(l[d]===f)continue e;t&&l.push(f),s.push(c)}else i(l,f,r)||(l!==s&&l.push(f),s.push(c))}return s}var iE=nE,aE=ir,oE=iE;function sE(e,t){return e&&e.length?oE(e,aE(t)):[]}var lE=sE;const Md=Te(lE);function kd(e,t,r){return t===!0?Md(e,r):le(t)?Md(e,t):e}function en(e){"@babel/helpers - typeof";return en=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},en(e)}var uE=["ref"];function Id(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Id(Object(r),!0).forEach(function(n){Na(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Id(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ld(n.key),n)}}function fE(e,t,r){return t&&Nd(e.prototype,t),r&&Nd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dE(e,t,r){return t=Ia(t),pE(e,Dd()?Reflect.construct(t,r||[],Ia(e).constructor):t.apply(e,r))}function pE(e,t){if(t&&(en(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hE(e)}function hE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Dd=function(){return!!e})()}function Ia(e){return Ia=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ia(e)}function vE(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&&ol(e,t)}function ol(e,t){return ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ol(e,t)}function Na(e,t,r){return t=Ld(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ld(e){var t=yE(e,"string");return en(t)=="symbol"?t:t+""}function yE(e,t){if(en(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(en(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function gE(e,t){if(e==null)return{};var r=mE(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mE(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function bE(e){return e.value}function xE(e,t){if(O.isValidElement(e))return O.cloneElement(e,t);if(typeof e=="function")return O.createElement(e,t);t.ref;var r=gE(t,uE);return O.createElement(Ks,r)}var Rd=1,tn=function(e){function t(){var r;cE(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=dE(this,t,[].concat(i)),Na(r,"lastBoundingBox",{width:-1,height:-1}),r}return vE(t,e),fE(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Rd||Math.abs(i.height-this.lastBoundingBox.height)>Rd)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?qt({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,c=i.chartHeight,f,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();f={left:((u||0)-p.width)/2}}else f=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var g=this.getBBoxSnapshot();d={top:((c||0)-g.height)/2}}else d=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return qt(qt({},f),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,c=i.payload,f=qt(qt({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return O.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){n.wrapperNode=p}},xE(a,qt(qt({},this.props),{},{payload:kd(c,u,bE)})))}}],[{key:"getWithHeight",value:function(n,i){var a=qt(qt({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&V(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(O.PureComponent);Na(tn,"displayName","Legend"),Na(tn,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Bd=Zn,wE=Ys,OE=rt,Fd=Bd?Bd.isConcatSpreadable:void 0;function SE(e){return OE(e)||wE(e)||!!(Fd&&e&&e[Fd])}var AE=SE,PE=nd,_E=AE;function zd(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=_E),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?zd(s,t-1,r,n,i):PE(i,s):n||(i[i.length]=s)}return i}var Wd=zd;function TE(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(r(a[l],l,a)===!1)break}return t}}var EE=TE,$E=EE,jE=$E(),CE=jE,ME=CE,kE=Ma;function IE(e,t){return e&&ME(e,t,kE)}var Ud=IE,NE=ri;function DE(e,t){return function(r,n){if(r==null)return r;if(!NE(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var LE=DE,RE=Ud,BE=LE,FE=BE(RE),sl=FE,zE=sl,WE=ri;function UE(e,t){var r=-1,n=WE(e)?Array(e.length):[];return zE(e,function(i,a,o){n[++r]=t(i,a,o)}),n}var Gd=UE;function GE(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var qE=GE,qd=Wr;function KE(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,a=qd(e),o=t!==void 0,s=t===null,l=t===t,u=qd(t);if(!s&&!u&&!a&&e>t||a&&o&&l&&!s&&!u||n&&o&&l||!r&&l||!i)return 1;if(!n&&!a&&!u&&e<t||u&&r&&i&&!n&&!a||s&&r&&i||!o&&i||!l)return-1}return 0}var HE=KE,VE=HE;function YE(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,o=i.length,s=r.length;++n<o;){var l=VE(i[n],a[n]);if(l){if(n>=s)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return e.index-t.index}var XE=YE,ll=bs,ZE=xs,JE=ir,QE=Gd,e$=qE,t$=ld,r$=XE,n$=Qr,i$=rt;function a$(e,t,r){t.length?t=ll(t,function(a){return i$(a)?function(o){return ZE(o,a.length===1?a[0]:a)}:a}):t=[n$];var n=-1;t=ll(t,t$(JE));var i=QE(e,function(a,o,s){var l=ll(t,function(u){return u(a)});return{criteria:l,index:++n,value:a}});return e$(i,function(a,o){return r$(a,o,r)})}var o$=a$;function s$(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var l$=s$,u$=l$,Kd=Math.max;function c$(e,t,r){return t=Kd(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Kd(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),u$(e,this,s)}}var f$=c$;function d$(e){return function(){return e}}var p$=d$,h$=mr,v$=function(){try{var e=h$(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Hd=v$,y$=p$,Vd=Hd,g$=Qr,m$=Vd?function(e,t){return Vd(e,"toString",{configurable:!0,enumerable:!1,value:y$(t),writable:!0})}:g$,b$=m$,x$=800,w$=16,O$=Date.now;function S$(e){var t=0,r=0;return function(){var n=O$(),i=w$-(n-r);if(r=n,i>0){if(++t>=x$)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var A$=S$,P$=b$,_$=A$,T$=_$(P$),E$=T$,$$=Qr,j$=f$,C$=E$;function M$(e,t){return C$(j$(e,t,$$),e+"")}var k$=M$,I$=vs,N$=ri,D$=Xs,L$=rr;function R$(e,t,r){if(!L$(r))return!1;var n=typeof t;return(n=="number"?N$(r)&&D$(t,r.length):n=="string"&&t in r)?I$(r[t],e):!1}var Da=R$,B$=Wd,F$=o$,z$=k$,Yd=Da,W$=z$(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Yd(e,t[0],t[1])?t=[]:r>2&&Yd(t[0],t[1],t[2])&&(t=[t[0]]),F$(e,B$(t,1),[])}),U$=W$;const ul=Te(U$);function ni(e){"@babel/helpers - typeof";return ni=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},ni(e)}function cl(){return cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cl.apply(this,arguments)}function G$(e,t){return V$(e)||H$(e,t)||K$(e,t)||q$()}function q$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
50
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K$(e,t){if(e){if(typeof e=="string")return Xd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xd(e,t)}}function Xd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function H$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function V$(e){if(Array.isArray(e))return e}function Zd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zd(Object(r),!0).forEach(function(n){Y$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y$(e,t,r){return t=X$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X$(e){var t=Z$(e,"string");return ni(t)=="symbol"?t:t+""}function Z$(e,t){if(ni(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ni(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function J$(e){return Array.isArray(e)&&We(e[0])&&We(e[1])?e.join(" ~ "):e}var Q$=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,l=t.labelStyle,u=l===void 0?{}:l,c=t.payload,f=t.formatter,d=t.itemSorter,p=t.wrapperClassName,g=t.labelClassName,h=t.label,v=t.labelFormatter,m=t.accessibilityLayer,w=m===void 0?!1:m,x=function(){if(c&&c.length){var E={padding:0,margin:0},k=(d?ul(c,d):c).map(function(M,D){if(M.type==="none")return null;var L=fl({display:"block",paddingTop:4,paddingBottom:4,color:M.color||"#000"},s),F=M.formatter||f||J$,G=M.value,U=M.name,I=G,R=U;if(F&&I!=null&&R!=null){var z=F(G,U,M,D,c);if(Array.isArray(z)){var H=G$(z,2);I=H[0],R=H[1]}else I=z}return O.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(D),style:L},We(R)?O.createElement("span",{className:"recharts-tooltip-item-name"},R):null,We(R)?O.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,O.createElement("span",{className:"recharts-tooltip-item-value"},I),O.createElement("span",{className:"recharts-tooltip-item-unit"},M.unit||""))});return O.createElement("ul",{className:"recharts-tooltip-item-list",style:E},k)}return null},S=fl({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),y=fl({margin:0},u),b=!oe(h),A=b?h:"",T=ce("recharts-default-tooltip",p),j=ce("recharts-tooltip-label",g);b&&v&&c!==void 0&&c!==null&&(A=v(h,c));var N=w?{role:"status","aria-live":"assertive"}:{};return O.createElement("div",cl({className:T,style:S},N),O.createElement("p",{className:j,style:y},O.isValidElement(A)?A:"".concat(A)),x())};function ii(e){"@babel/helpers - typeof";return ii=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},ii(e)}function La(e,t,r){return t=ej(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ej(e){var t=tj(e,"string");return ii(t)=="symbol"?t:t+""}function tj(e,t){if(ii(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ii(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ai="recharts-tooltip-wrapper",rj={visibility:"hidden"};function nj(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ce(ai,La(La(La(La({},"".concat(ai,"-right"),V(r)&&t&&V(t.x)&&r>=t.x),"".concat(ai,"-left"),V(r)&&t&&V(t.x)&&r<t.x),"".concat(ai,"-bottom"),V(n)&&t&&V(t.y)&&n>=t.y),"".concat(ai,"-top"),V(n)&&t&&V(t.y)&&n<t.y))}function Jd(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(a&&V(a[n]))return a[n];var c=r[n]-s-i,f=r[n]+i;if(t[n])return o[n]?c:f;if(o[n]){var d=c,p=l[n];return d<p?Math.max(f,l[n]):Math.max(c,l[n])}var g=f+s,h=l[n]+u;return g>h?Math.max(c,l[n]):Math.max(f,l[n])}function ij(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function aj(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,c,f;return o.height>0&&o.width>0&&r?(c=Jd({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=Jd({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=ij({translateX:c,translateY:f,useTranslate3d:s})):u=rj,{cssProperties:u,cssClasses:nj({translateX:c,translateY:f,coordinate:r})}}function rn(e){"@babel/helpers - typeof";return rn=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},rn(e)}function Qd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ep(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qd(Object(r),!0).forEach(function(n){pl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sj(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rp(n.key),n)}}function lj(e,t,r){return t&&sj(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uj(e,t,r){return t=Ra(t),cj(e,tp()?Reflect.construct(t,r||[],Ra(e).constructor):t.apply(e,r))}function cj(e,t){if(t&&(rn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fj(e)}function fj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tp=function(){return!!e})()}function Ra(e){return Ra=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ra(e)}function dj(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&&dl(e,t)}function dl(e,t){return dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dl(e,t)}function pl(e,t,r){return t=rp(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rp(e){var t=pj(e,"string");return rn(t)=="symbol"?t:t+""}function pj(e,t){if(rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var np=1,hj=function(e){function t(){var r;oj(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=uj(this,t,[].concat(i)),pl(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),pl(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,l,u,c;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(u=(c=r.props.coordinate)===null||c===void 0?void 0:c.y)!==null&&u!==void 0?u:0}})}}),r}return dj(t,e),lj(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>np||Math.abs(n.height-this.state.lastBoundingBox.height)>np)&&this.setState({lastBoundingBox:{width:n.width,height:n.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 n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,c=i.coordinate,f=i.hasPayload,d=i.isAnimationActive,p=i.offset,g=i.position,h=i.reverseDirection,v=i.useTranslate3d,m=i.viewBox,w=i.wrapperStyle,x=aj({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:p,position:g,reverseDirection:h,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:m}),S=x.cssClasses,y=x.cssProperties,b=ep(ep({transition:d&&a?"transform ".concat(s,"ms ").concat(l):void 0},y),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},w);return O.createElement("div",{tabIndex:-1,className:S,style:b,ref:function(T){n.wrapperNode=T}},u)}}])}(O.PureComponent),vj=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ar={isSsr:vj()};function nn(e){"@babel/helpers - typeof";return nn=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},nn(e)}function ip(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ap(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ip(Object(r),!0).forEach(function(n){vl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ip(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gj(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sp(n.key),n)}}function mj(e,t,r){return t&&gj(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bj(e,t,r){return t=Ba(t),xj(e,op()?Reflect.construct(t,r||[],Ba(e).constructor):t.apply(e,r))}function xj(e,t){if(t&&(nn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wj(e)}function wj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function op(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(op=function(){return!!e})()}function Ba(e){return Ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ba(e)}function Oj(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&&hl(e,t)}function hl(e,t){return hl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hl(e,t)}function vl(e,t,r){return t=sp(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sp(e){var t=Sj(e,"string");return nn(t)=="symbol"?t:t+""}function Sj(e,t){if(nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Aj(e){return e.dataKey}function Pj(e,t){return O.isValidElement(e)?O.cloneElement(e,t):typeof e=="function"?O.createElement(e,t):O.createElement(Q$,t)}var It=function(e){function t(){return yj(this,t),bj(this,t,arguments)}return Oj(t,e),mj(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.content,c=i.coordinate,f=i.filterNull,d=i.isAnimationActive,p=i.offset,g=i.payload,h=i.payloadUniqBy,v=i.position,m=i.reverseDirection,w=i.useTranslate3d,x=i.viewBox,S=i.wrapperStyle,y=g??[];f&&y.length&&(y=kd(g.filter(function(A){return A.value!=null&&(A.hide!==!0||n.props.includeHidden)}),h,Aj));var b=y.length>0;return O.createElement(hj,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:d,active:a,coordinate:c,hasPayload:b,offset:p,position:v,reverseDirection:m,useTranslate3d:w,viewBox:x,wrapperStyle:S},Pj(u,ap(ap({},this.props),{},{payload:y})))}}])}(O.PureComponent);vl(It,"displayName","Tooltip"),vl(It,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ar.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 _j=kt,Tj=function(){return _j.Date.now()},Ej=Tj,$j=/\s/;function jj(e){for(var t=e.length;t--&&$j.test(e.charAt(t)););return t}var Cj=jj,Mj=Cj,kj=/^\s+/;function Ij(e){return e&&e.slice(0,Mj(e)+1).replace(kj,"")}var Nj=Ij,Dj=Nj,lp=rr,Lj=Wr,up=NaN,Rj=/^[-+]0x[0-9a-f]+$/i,Bj=/^0b[01]+$/i,Fj=/^0o[0-7]+$/i,zj=parseInt;function Wj(e){if(typeof e=="number")return e;if(Lj(e))return up;if(lp(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=lp(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Dj(e);var r=Bj.test(e);return r||Fj.test(e)?zj(e.slice(2),r?2:8):Rj.test(e)?up:+e}var cp=Wj,Uj=rr,yl=Ej,fp=cp,Gj="Expected a function",qj=Math.max,Kj=Math.min;function Hj(e,t,r){var n,i,a,o,s,l,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(Gj);t=fp(t)||0,Uj(r)&&(c=!!r.leading,f="maxWait"in r,a=f?qj(fp(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function p(b){var A=n,T=i;return n=i=void 0,u=b,o=e.apply(T,A),o}function g(b){return u=b,s=setTimeout(m,t),c?p(b):o}function h(b){var A=b-l,T=b-u,j=t-A;return f?Kj(j,a-T):j}function v(b){var A=b-l,T=b-u;return l===void 0||A>=t||A<0||f&&T>=a}function m(){var b=yl();if(v(b))return w(b);s=setTimeout(m,h(b))}function w(b){return s=void 0,d&&n?p(b):(n=i=void 0,o)}function x(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function S(){return s===void 0?o:w(yl())}function y(){var b=yl(),A=v(b);if(n=arguments,i=this,l=b,A){if(s===void 0)return g(l);if(f)return clearTimeout(s),s=setTimeout(m,t),p(l)}return s===void 0&&(s=setTimeout(m,t)),o}return y.cancel=x,y.flush=S,y}var Vj=Hj,Yj=Vj,Xj=rr,Zj="Expected a function";function Jj(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(Zj);return Xj(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Yj(e,t,{leading:n,maxWait:t,trailing:i})}var Qj=Jj;const dp=Te(Qj);function oi(e){"@babel/helpers - typeof";return oi=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},oi(e)}function pp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pp(Object(r),!0).forEach(function(n){eC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eC(e,t,r){return t=tC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tC(e){var t=rC(e,"string");return oi(t)=="symbol"?t:t+""}function rC(e,t){if(oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nC(e,t){return sC(e)||oC(e,t)||aC(e,t)||iC()}function iC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
51
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aC(e,t){if(e){if(typeof e=="string")return hp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hp(e,t)}}function hp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function oC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function sC(e){if(Array.isArray(e))return e}var lC=O.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,u=e.minWidth,c=u===void 0?0:u,f=e.minHeight,d=e.maxHeight,p=e.children,g=e.debounce,h=g===void 0?0:g,v=e.id,m=e.className,w=e.onResize,x=e.style,S=x===void 0?{}:x,y=O.useRef(null),b=O.useRef();b.current=w,O.useImperativeHandle(t,function(){return Object.defineProperty(y.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),y.current},configurable:!0})});var A=O.useState({containerWidth:i.width,containerHeight:i.height}),T=nC(A,2),j=T[0],N=T[1],_=O.useCallback(function(k,M){N(function(D){var L=Math.round(k),F=Math.round(M);return D.containerWidth===L&&D.containerHeight===F?D:{containerWidth:L,containerHeight:F}})},[]);O.useEffect(function(){var k=function(U){var I,R=U[0].contentRect,z=R.width,H=R.height;_(z,H),(I=b.current)===null||I===void 0||I.call(b,z,H)};h>0&&(k=dp(k,h,{trailing:!0,leading:!1}));var M=new ResizeObserver(k),D=y.current.getBoundingClientRect(),L=D.width,F=D.height;return _(L,F),M.observe(y.current),function(){M.disconnect()}},[_,h]);var E=O.useMemo(function(){var k=j.containerWidth,M=j.containerHeight;if(k<0||M<0)return null;Gt(xr(o)||xr(l),`The width(%s) and height(%s) are both fixed numbers,
52
- maybe you don't need to use a ResponsiveContainer.`,o,l),Gt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var D=xr(o)?k:o,L=xr(l)?M:l;r&&r>0&&(D?L=D/r:L&&(D=L*r),d&&L>d&&(L=d)),Gt(D>0||L>0,`The width(%s) and height(%s) of chart should be greater than 0,
46
+ */var kf;function o1(){return kf||(kf=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),y=!1,p=!1,v=!1,g=!1,O=!1,x;x=Symbol.for("react.module.reference");function A(K){return!!(typeof K=="string"||typeof K=="function"||K===r||K===a||O||K===n||K===u||K===c||g||K===h||y||p||v||typeof K=="object"&&K!==null&&(K.$$typeof===d||K.$$typeof===f||K.$$typeof===i||K.$$typeof===o||K.$$typeof===l||K.$$typeof===x||K.getModuleId!==void 0))}function m(K){if(typeof K=="object"&&K!==null){var ee=K.$$typeof;switch(ee){case e:var oe=K.type;switch(oe){case r:case a:case n:case u:case c:return oe;default:var Ce=oe&&oe.$$typeof;switch(Ce){case s:case o:case l:case d:case f:case i:return Ce;default:return ee}}case t:return ee}}}var w=o,T=i,_=e,$=l,R=r,P=d,j=f,L=t,B=a,M=n,E=u,F=c,U=!1,k=!1;function N(K){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function I(K){return k||(k=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(K){return m(K)===o}function z(K){return m(K)===i}function V(K){return typeof K=="object"&&K!==null&&K.$$typeof===e}function Z(K){return m(K)===l}function Q(K){return m(K)===r}function ae(K){return m(K)===d}function te(K){return m(K)===f}function q(K){return m(K)===t}function Y(K){return m(K)===a}function J(K){return m(K)===n}function D(K){return m(K)===u}function ie(K){return m(K)===c}we.ContextConsumer=w,we.ContextProvider=T,we.Element=_,we.ForwardRef=$,we.Fragment=R,we.Lazy=P,we.Memo=j,we.Portal=L,we.Profiler=B,we.StrictMode=M,we.Suspense=E,we.SuspenseList=F,we.isAsyncMode=N,we.isConcurrentMode=I,we.isContextConsumer=W,we.isContextProvider=z,we.isElement=V,we.isForwardRef=Z,we.isFragment=Q,we.isLazy=ae,we.isMemo=te,we.isPortal=q,we.isProfiler=Y,we.isStrictMode=J,we.isSuspense=D,we.isSuspenseList=ie,we.isValidElementType=A,we.typeOf=m}()),we}process.env.NODE_ENV==="production"?Vs.exports=i1():Vs.exports=o1();var s1=Vs.exports,l1=Ht,u1=Yt,c1="[object Number]";function f1(e){return typeof e=="number"||u1(e)&&l1(e)==c1}var Nf=f1;const d1=ke(Nf);var h1=Nf;function p1(e){return h1(e)&&e!=+e}var v1=p1;const an=ke(v1);var $t=function(t){return t===0?0:t>0?1:-1},Er=function(t){return _r(t)&&t.indexOf("%")===t.length-1},X=function(t){return d1(t)&&!an(t)},y1=function(t){return ue(t)},Ve=function(t){return X(t)||_r(t)},m1=0,jr=function(t){var r=++m1;return"".concat(t||"").concat(r)},$r=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!X(t)&&!_r(t))return n;var i;if(Er(t)){var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return an(i)&&(i=n),a&&i>r&&(i=r),i},cr=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},g1=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},a=0;a<r;a++)if(!n[t[a]])n[t[a]]=!0;else return!0;return!1},We=function(t,r){return X(t)&&X(r)?function(n){return t+n*(r-t)}:function(){return r}};function ki(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):xt(n,t))===r})}var b1=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,a=0,i=0,o=0,s=1/0,l=-1/0,u=0,c=0,f=0;f<r;f++)u=t[f].cx||0,c=t[f].cy||0,n+=u,a+=c,i+=u*c,o+=u*u,s=Math.min(s,u),l=Math.max(l,u);var d=r*o!==n*n?(r*i-n*a)/(r*o-n*n):0;return{xmin:s,xmax:l,a:d,b:(a-d*n)/r}},x1=function(t,r){return X(t)&&X(r)?t-r:_r(t)&&_r(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function on(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Hs(e){"@babel/helpers - typeof";return Hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hs(e)}var w1=["viewBox","children"],O1=["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"],Df=["points","pathLength"],Ys={svg:w1,polygon:Df,polyline:Df},Xs=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Ni=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(S.isValidElement(t)&&(n=t.props),!en(n))return null;var a={};return Object.keys(n).forEach(function(i){Xs.includes(i)&&(a[i]=r||function(o){return n[i](n,o)})}),a},S1=function(t,r,n){return function(a){return t(r,n,a),null}},ua=function(t,r,n){if(!en(t)||Hs(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var o=t[i];Xs.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=S1(o,r,n))}),a},A1=["children"],T1=["children"];function If(e,t){if(e==null)return{};var r=P1(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function P1(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Js(e){"@babel/helpers - typeof";return Js=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},Js(e)}var Lf={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"},Xt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Rf=null,Zs=null,Qs=function e(t){if(t===Rf&&Array.isArray(Zs))return Zs;var r=[];return S.Children.forEach(t,function(n){ue(n)||(s1.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Zs=r,Rf=t,r};function ut(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(a){return Xt(a)}):n=[Xt(t)],Qs(e).forEach(function(a){var i=xt(a,"type.displayName")||xt(a,"type.name");n.indexOf(i)!==-1&&r.push(a)}),r}function ht(e,t){var r=ut(e,t);return r&&r[0]}var Bf=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,a=r.height;return!(!X(n)||n<=0||!X(a)||a<=0)},_1=["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"],E1=function(t){return t&&t.type&&_r(t.type)&&_1.indexOf(t.type)>=0},Ff=function(t){return t&&Js(t)==="object"&&"clipDot"in t},j1=function(t,r,n,a){var i,o=(i=Ys==null?void 0:Ys[a])!==null&&i!==void 0?i:[];return r.startsWith("data-")||!de(t)&&(a&&o.includes(r)||O1.includes(r))||n&&Xs.includes(r)},fe=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(S.isValidElement(t)&&(a=t.props),!en(a))return null;var i={};return Object.keys(a).forEach(function(o){var s;j1((s=a)===null||s===void 0?void 0:s[o],o,r,n)&&(i[o]=a[o])}),i},el=function e(t,r){if(t===r)return!0;var n=S.Children.count(t);if(n!==S.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Wf(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var a=0;a<n;a++){var i=t[a],o=r[a];if(Array.isArray(i)||Array.isArray(o)){if(!e(i,o))return!1}else if(!Wf(i,o))return!1}return!0},Wf=function(t,r){if(ue(t)&&ue(r))return!0;if(!ue(t)&&!ue(r)){var n=t.props||{},a=n.children,i=If(n,A1),o=r.props||{},s=o.children,l=If(o,T1);return a&&s?on(i,l)&&el(a,s):!a&&!s?on(i,l):!1}return!1},Uf=function(t,r){var n=[],a={};return Qs(t).forEach(function(i,o){if(E1(i))n.push(i);else if(i){var s=Xt(i.type),l=r[s]||{},u=l.handler,c=l.once;if(u&&(!c||!a[s])){var f=u(i,s,o);n.push(f),a[s]=!0}}}),n},$1=function(t){var r=t&&t.type;return r&&Lf[r]?Lf[r]:null},C1=function(t,r){return Qs(r).indexOf(t)},M1=["children","width","height","viewBox","className","style","title","desc"];function tl(){return tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tl.apply(this,arguments)}function k1(e,t){if(e==null)return{};var r=N1(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function N1(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function rl(e){var t=e.children,r=e.width,n=e.height,a=e.viewBox,i=e.className,o=e.style,s=e.title,l=e.desc,u=k1(e,M1),c=a||{width:r,height:n,x:0,y:0},f=pe("recharts-surface",i);return S.createElement("svg",tl({},fe(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),S.createElement("title",null,s),S.createElement("desc",null,l),t)}var D1=["children","className"];function nl(){return nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nl.apply(this,arguments)}function I1(e,t){if(e==null)return{};var r=L1(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function L1(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var be=S.forwardRef(function(e,t){var r=e.children,n=e.className,a=I1(e,D1),i=pe("recharts-layer",n);return S.createElement("g",nl({className:i},fe(a,!0),{ref:t}),r)}),R1=process.env.NODE_ENV!=="production",Jt=function(t,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i];if(R1&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return a[o++]}))}};function B1(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(a);++n<a;)i[n]=e[n+t];return i}var F1=B1,W1=F1;function U1(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:W1(e,t,r)}var z1=U1,G1="\\ud800-\\udfff",q1="\\u0300-\\u036f",K1="\\ufe20-\\ufe2f",V1="\\u20d0-\\u20ff",H1=q1+K1+V1,Y1="\\ufe0e\\ufe0f",X1="\\u200d",J1=RegExp("["+X1+G1+H1+Y1+"]");function Z1(e){return J1.test(e)}var zf=Z1;function Q1(e){return e.split("")}var eO=Q1,Gf="\\ud800-\\udfff",tO="\\u0300-\\u036f",rO="\\ufe20-\\ufe2f",nO="\\u20d0-\\u20ff",aO=tO+rO+nO,iO="\\ufe0e\\ufe0f",oO="["+Gf+"]",al="["+aO+"]",il="\\ud83c[\\udffb-\\udfff]",sO="(?:"+al+"|"+il+")",qf="[^"+Gf+"]",Kf="(?:\\ud83c[\\udde6-\\uddff]){2}",Vf="[\\ud800-\\udbff][\\udc00-\\udfff]",lO="\\u200d",Hf=sO+"?",Yf="["+iO+"]?",uO="(?:"+lO+"(?:"+[qf,Kf,Vf].join("|")+")"+Yf+Hf+")*",cO=Yf+Hf+uO,fO="(?:"+[qf+al+"?",al,Kf,Vf,oO].join("|")+")",dO=RegExp(il+"(?="+il+")|"+fO+cO,"g");function hO(e){return e.match(dO)||[]}var pO=hO,vO=eO,yO=zf,mO=pO;function gO(e){return yO(e)?mO(e):vO(e)}var bO=gO,xO=z1,wO=zf,OO=bO,SO=jf;function AO(e){return function(t){t=SO(t);var r=wO(t)?OO(t):void 0,n=r?r[0]:t.charAt(0),a=r?xO(r,1).join(""):t.slice(1);return n[e]()+a}}var TO=AO,PO=TO,_O=PO("toUpperCase"),EO=_O;const Di=ke(EO);function Ne(e){return function(){return e}}const Xf=Math.cos,Ii=Math.sin,Ct=Math.sqrt,Li=Math.PI,Ri=2*Li,ol=Math.PI,sl=2*ol,Cr=1e-6,jO=sl-Cr;function Jf(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function $O(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Jf;const r=10**t;return function(n){this._+=n[0];for(let a=1,i=n.length;a<i;++a)this._+=Math.round(arguments[a]*r)/r+n[a]}}class CO{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Jf:$O(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,a){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+a}`}bezierCurveTo(t,r,n,a,i,o){this._append`C${+t},${+r},${+n},${+a},${this._x1=+i},${this._y1=+o}`}arcTo(t,r,n,a,i){if(t=+t,r=+r,n=+n,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,s=this._y1,l=n-t,u=a-r,c=o-t,f=s-r,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Cr)if(!(Math.abs(f*l-u*c)>Cr)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,y=a-s,p=l*l+u*u,v=h*h+y*y,g=Math.sqrt(p),O=Math.sqrt(d),x=i*Math.tan((ol-Math.acos((p+d-v)/(2*g*O)))/2),A=x/O,m=x/g;Math.abs(A-1)>Cr&&this._append`L${t+A*c},${r+A*f}`,this._append`A${i},${i},0,0,${+(f*h>c*y)},${this._x1=t+m*l},${this._y1=r+m*u}`}}arc(t,r,n,a,i,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(a),l=n*Math.sin(a),u=t+s,c=r+l,f=1^o,d=o?a-i:i-a;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Cr||Math.abs(this._y1-c)>Cr)&&this._append`L${u},${c}`,n&&(d<0&&(d=d%sl+sl),d>jO?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=u},${this._y1=c}`:d>Cr&&this._append`A${n},${n},0,${+(d>=ol)},${f},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}}function ll(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new CO(t)}function ul(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Zf(e){this._context=e}Zf.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 Bi(e){return new Zf(e)}function Qf(e){return e[0]}function ed(e){return e[1]}function td(e,t){var r=Ne(!0),n=null,a=Bi,i=null,o=ll(s);e=typeof e=="function"?e:e===void 0?Qf:Ne(e),t=typeof t=="function"?t:t===void 0?ed:Ne(t);function s(l){var u,c=(l=ul(l)).length,f,d=!1,h;for(n==null&&(i=a(h=o())),u=0;u<=c;++u)!(u<c&&r(f=l[u],u,l))===d&&((d=!d)?i.lineStart():i.lineEnd()),d&&i.point(+e(f,u,l),+t(f,u,l));if(h)return i=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Ne(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Ne(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Ne(!!l),s):r},s.curve=function(l){return arguments.length?(a=l,n!=null&&(i=a(n)),s):a},s.context=function(l){return arguments.length?(l==null?n=i=null:i=a(n=l),s):n},s}function Fi(e,t,r){var n=null,a=Ne(!0),i=null,o=Bi,s=null,l=ll(u);e=typeof e=="function"?e:e===void 0?Qf:Ne(+e),t=typeof t=="function"?t:Ne(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?ed:Ne(+r);function u(f){var d,h,y,p=(f=ul(f)).length,v,g=!1,O,x=new Array(p),A=new Array(p);for(i==null&&(s=o(O=l())),d=0;d<=p;++d){if(!(d<p&&a(v=f[d],d,f))===g)if(g=!g)h=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),y=d-1;y>=h;--y)s.point(x[y],A[y]);s.lineEnd(),s.areaEnd()}g&&(x[d]=+e(v,d,f),A[d]=+t(v,d,f),s.point(n?+n(v,d,f):x[d],r?+r(v,d,f):A[d]))}if(O)return s=null,O+""||null}function c(){return td().defined(a).curve(o).context(i)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Ne(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Ne(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Ne(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Ne(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Ne(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Ne(+f),u):r},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(r)},u.lineX1=function(){return c().x(n).y(t)},u.defined=function(f){return arguments.length?(a=typeof f=="function"?f:Ne(!!f),u):a},u.curve=function(f){return arguments.length?(o=f,i!=null&&(s=o(i)),u):o},u.context=function(f){return arguments.length?(f==null?i=s=null:s=o(i=f),u):i},u}class rd{constructor(t,r){this._context=t,this._x=r}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,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function MO(e){return new rd(e,!0)}function kO(e){return new rd(e,!1)}const cl={draw(e,t){const r=Ct(t/Li);e.moveTo(r,0),e.arc(0,0,r,0,Ri)}},NO={draw(e,t){const r=Ct(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},nd=Ct(1/3),DO=nd*2,IO={draw(e,t){const r=Ct(t/DO),n=r*nd;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},LO={draw(e,t){const r=Ct(t),n=-r/2;e.rect(n,n,r,r)}},RO=.8908130915292852,ad=Ii(Li/10)/Ii(7*Li/10),BO=Ii(Ri/10)*ad,FO=-Xf(Ri/10)*ad,WO={draw(e,t){const r=Ct(t*RO),n=BO*r,a=FO*r;e.moveTo(0,-r),e.lineTo(n,a);for(let i=1;i<5;++i){const o=Ri*i/5,s=Xf(o),l=Ii(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*a,l*n+s*a)}e.closePath()}},fl=Ct(3),UO={draw(e,t){const r=-Ct(t/(fl*3));e.moveTo(0,r*2),e.lineTo(-fl*r,-r),e.lineTo(fl*r,-r),e.closePath()}},wt=-.5,Ot=Ct(3)/2,dl=1/Ct(12),zO=(dl/2+1)*3,GO={draw(e,t){const r=Ct(t/zO),n=r/2,a=r*dl,i=n,o=r*dl+r,s=-i,l=o;e.moveTo(n,a),e.lineTo(i,o),e.lineTo(s,l),e.lineTo(wt*n-Ot*a,Ot*n+wt*a),e.lineTo(wt*i-Ot*o,Ot*i+wt*o),e.lineTo(wt*s-Ot*l,Ot*s+wt*l),e.lineTo(wt*n+Ot*a,wt*a-Ot*n),e.lineTo(wt*i+Ot*o,wt*o-Ot*i),e.lineTo(wt*s+Ot*l,wt*l-Ot*s),e.closePath()}};function qO(e,t){let r=null,n=ll(a);e=typeof e=="function"?e:Ne(e||cl),t=typeof t=="function"?t:Ne(t===void 0?64:+t);function a(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:Ne(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Ne(+i),a):t},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function Wi(){}function Ui(e,t,r){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+r)/6)}function id(e){this._context=e}id.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:Ui(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:Ui(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function KO(e){return new id(e)}function od(e){this._context=e}od.prototype={areaStart:Wi,areaEnd:Wi,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:Ui(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function VO(e){return new od(e)}function sd(e){this._context=e}sd.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 r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Ui(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function HO(e){return new sd(e)}function ld(e){this._context=e}ld.prototype={areaStart:Wi,areaEnd:Wi,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 YO(e){return new ld(e)}function ud(e){return e<0?-1:1}function cd(e,t,r){var n=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(n||a<0&&-0),o=(r-e._y1)/(a||n<0&&-0),s=(i*a+o*n)/(n+a);return(ud(i)+ud(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function fd(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function hl(e,t,r){var n=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-n)/3;e._context.bezierCurveTo(n+s,a+s*t,i-s,o-s*r,i,o)}function zi(e){this._context=e}zi.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:hl(this,this._t0,fd(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 r=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,hl(this,fd(this,r=cd(this,e,t)),r);break;default:hl(this,this._t0,r=cd(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function dd(e){this._context=new hd(e)}(dd.prototype=Object.create(zi.prototype)).point=function(e,t){zi.prototype.point.call(this,t,e)};function hd(e){this._context=e}hd.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,r,n,a,i){this._context.bezierCurveTo(t,e,n,r,i,a)}};function XO(e){return new zi(e)}function JO(e){return new dd(e)}function pd(e){this._context=e}pd.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,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=vd(e),a=vd(t),i=0,o=1;o<r;++i,++o)this._context.bezierCurveTo(n[0][i],a[0][i],n[1][i],a[1][i],e[o],t[o]);(this._line||this._line!==0&&r===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 vd(e){var t,r=e.length-1,n,a=new Array(r),i=new Array(r),o=new Array(r);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[r-1]=2,i[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=a[t]/i[t-1],i[t]-=n,o[t]-=n*o[t-1];for(a[r-1]=o[r-1]/i[r-1],t=r-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[r-1]=(e[r]+a[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function ZO(e){return new pd(e)}function Gi(e,t){this._context=e,this._t=t}Gi.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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function QO(e){return new Gi(e,.5)}function eS(e){return new Gi(e,0)}function tS(e){return new Gi(e,1)}function sn(e,t){if((o=e.length)>1)for(var r=1,n,a,i=e[t[0]],o,s=i.length;r<o;++r)for(a=i,i=e[t[r]],n=0;n<s;++n)i[n][1]+=i[n][0]=isNaN(a[n][1])?a[n][0]:a[n][1]}function pl(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function rS(e,t){return e[t]}function nS(e){const t=[];return t.key=e,t}function aS(){var e=Ne([]),t=pl,r=sn,n=rS;function a(i){var o=Array.from(e.apply(this,arguments),nS),s,l=o.length,u=-1,c;for(const f of i)for(s=0,++u;s<l;++s)(o[s][u]=[0,+n(f,o[s].key,u,i)]).data=f;for(s=0,c=ul(t(o));s<l;++s)o[c[s]].index=s;return r(o,c),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:Ne(Array.from(i)),a):e},a.value=function(i){return arguments.length?(n=typeof i=="function"?i:Ne(+i),a):n},a.order=function(i){return arguments.length?(t=i==null?pl:typeof i=="function"?i:Ne(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(r=i??sn,a):r},a}function iS(e,t){if((n=e.length)>0){for(var r,n,a=0,i=e[0].length,o;a<i;++a){for(o=r=0;r<n;++r)o+=e[r][a][1]||0;if(o)for(r=0;r<n;++r)e[r][a][1]/=o}sn(e,t)}}function oS(e,t){if((a=e.length)>0){for(var r=0,n=e[t[0]],a,i=n.length;r<i;++r){for(var o=0,s=0;o<a;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}sn(e,t)}}function sS(e,t){if(!(!((o=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,i,o;n<i;++n){for(var s=0,l=0,u=0;s<o;++s){for(var c=e[t[s]],f=c[n][1]||0,d=c[n-1][1]||0,h=(f-d)/2,y=0;y<s;++y){var p=e[t[y]],v=p[n][1]||0,g=p[n-1][1]||0;h+=v-g}l+=f,u+=h*f}a[n-1][1]+=a[n-1][0]=r,l&&(r-=u/l)}a[n-1][1]+=a[n-1][0]=r,sn(e,t)}}function ca(e){"@babel/helpers - typeof";return ca=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},ca(e)}var lS=["type","size","sizeType"];function vl(){return vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vl.apply(this,arguments)}function yd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function md(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yd(Object(r),!0).forEach(function(n){uS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uS(e,t,r){return t=cS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cS(e){var t=fS(e,"string");return ca(t)=="symbol"?t:t+""}function fS(e,t){if(ca(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ca(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dS(e,t){if(e==null)return{};var r=hS(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hS(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var gd={symbolCircle:cl,symbolCross:NO,symbolDiamond:IO,symbolSquare:LO,symbolStar:WO,symbolTriangle:UO,symbolWye:GO},pS=Math.PI/180,vS=function(t){var r="symbol".concat(Di(t));return gd[r]||cl},yS=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*pS;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},mS=function(t,r){gd["symbol".concat(Di(t))]=r},qi=function(t){var r=t.type,n=r===void 0?"circle":r,a=t.size,i=a===void 0?64:a,o=t.sizeType,s=o===void 0?"area":o,l=dS(t,lS),u=md(md({},l),{},{type:n,size:i,sizeType:s}),c=function(){var v=vS(n),g=qO().type(v).size(yS(i,s,n));return g()},f=u.className,d=u.cx,h=u.cy,y=fe(u,!0);return d===+d&&h===+h&&i===+i?S.createElement("path",vl({},y,{className:pe("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(h,")"),d:c()})):null};qi.registerSymbol=mS;function ln(e){"@babel/helpers - typeof";return ln=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},ln(e)}function yl(){return yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yl.apply(this,arguments)}function bd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function gS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bd(Object(r),!0).forEach(function(n){fa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wd(n.key),n)}}function wS(e,t,r){return t&&xS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function OS(e,t,r){return t=Ki(t),SS(e,xd()?Reflect.construct(t,r||[],Ki(e).constructor):t.apply(e,r))}function SS(e,t){if(t&&(ln(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AS(e)}function AS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xd=function(){return!!e})()}function Ki(e){return Ki=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ki(e)}function TS(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&&ml(e,t)}function ml(e,t){return ml=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},ml(e,t)}function fa(e,t,r){return t=wd(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wd(e){var t=PS(e,"string");return ln(t)=="symbol"?t:t+""}function PS(e,t){if(ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var St=32,gl=function(e){function t(){return bS(this,t),OS(this,t,arguments)}return TS(t,e),wS(t,[{key:"renderIcon",value:function(n){var a=this.props.inactiveColor,i=St/2,o=St/6,s=St/3,l=n.inactive?a:n.color;if(n.type==="plainline")return S.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:i,x2:St,y2:i,className:"recharts-legend-icon"});if(n.type==="line")return S.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(i,"h").concat(s,`
47
+ A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(i,`
48
+ H`).concat(St,"M").concat(2*s,",").concat(i,`
49
+ A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(i),className:"recharts-legend-icon"});if(n.type==="rect")return S.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(St/8,"h").concat(St,"v").concat(St*3/4,"h").concat(-St,"z"),className:"recharts-legend-icon"});if(S.isValidElement(n.legendIcon)){var u=gS({},n);return delete u.legendIcon,S.cloneElement(n.legendIcon,u)}return S.createElement(qi,{fill:l,cx:i,cy:i,size:St,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,a=this.props,i=a.payload,o=a.iconSize,s=a.layout,l=a.formatter,u=a.inactiveColor,c={x:0,y:0,width:St,height:St},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(h,y){var p=h.formatter||l,v=pe(fa(fa({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",h.inactive));if(h.type==="none")return null;var g=de(h.value)?null:h.value;Jt(!de(h.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 O=h.inactive?u:h.color;return S.createElement("li",yl({className:v,style:f,key:"legend-item-".concat(y)},ua(n.props,h,y)),S.createElement(rl,{width:o,height:o,viewBox:c,style:d},n.renderIcon(h)),S.createElement("span",{className:"recharts-legend-item-text",style:{color:O}},p?p(g,h,y):g))})}},{key:"render",value:function(){var n=this.props,a=n.payload,i=n.layout,o=n.align;if(!a||!a.length)return null;var s={padding:0,margin:0,textAlign:i==="horizontal"?o:"left"};return S.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(S.PureComponent);fa(gl,"displayName","Legend"),fa(gl,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var _S=$i;function ES(){this.__data__=new _S,this.size=0}var jS=ES;function $S(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var CS=$S;function MS(e){return this.__data__.get(e)}var kS=MS;function NS(e){return this.__data__.has(e)}var DS=NS,IS=$i,LS=Us,RS=zs,BS=200;function FS(e,t){var r=this.__data__;if(r instanceof IS){var n=r.__data__;if(!LS||n.length<BS-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new RS(n)}return r.set(e,t),this.size=r.size,this}var WS=FS,US=$i,zS=jS,GS=CS,qS=kS,KS=DS,VS=WS;function un(e){var t=this.__data__=new US(e);this.size=t.size}un.prototype.clear=zS,un.prototype.delete=GS,un.prototype.get=qS,un.prototype.has=KS,un.prototype.set=VS;var Od=un,HS="__lodash_hash_undefined__";function YS(e){return this.__data__.set(e,HS),this}var XS=YS;function JS(e){return this.__data__.has(e)}var ZS=JS,QS=zs,eA=XS,tA=ZS;function Vi(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new QS;++t<r;)this.add(e[t])}Vi.prototype.add=Vi.prototype.push=eA,Vi.prototype.has=tA;var Sd=Vi;function rA(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Ad=rA;function nA(e,t){return e.has(t)}var Td=nA,aA=Sd,iA=Ad,oA=Td,sA=1,lA=2;function uA(e,t,r,n,a,i){var o=r&sA,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=r&lA?new aA:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var y=e[f],p=t[f];if(n)var v=o?n(p,y,f,t,e,i):n(y,p,f,e,t,i);if(v!==void 0){if(v)continue;d=!1;break}if(h){if(!iA(t,function(g,O){if(!oA(h,O)&&(y===g||a(y,g,r,n,i)))return h.push(O)})){d=!1;break}}else if(!(y===p||a(y,p,r,n,i))){d=!1;break}}return i.delete(e),i.delete(t),d}var Pd=uA,cA=Ft,fA=cA.Uint8Array,dA=fA;function hA(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var pA=hA;function vA(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var bl=vA,_d=sa,Ed=dA,yA=Ws,mA=Pd,gA=pA,bA=bl,xA=1,wA=2,OA="[object Boolean]",SA="[object Date]",AA="[object Error]",TA="[object Map]",PA="[object Number]",_A="[object RegExp]",EA="[object Set]",jA="[object String]",$A="[object Symbol]",CA="[object ArrayBuffer]",MA="[object DataView]",jd=_d?_d.prototype:void 0,xl=jd?jd.valueOf:void 0;function kA(e,t,r,n,a,i,o){switch(r){case MA:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case CA:return!(e.byteLength!=t.byteLength||!i(new Ed(e),new Ed(t)));case OA:case SA:case PA:return yA(+e,+t);case AA:return e.name==t.name&&e.message==t.message;case _A:case jA:return e==t+"";case TA:var s=gA;case EA:var l=n&xA;if(s||(s=bA),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;n|=wA,o.set(e,t);var c=mA(s(e),s(t),n,a,i,o);return o.delete(e),c;case $A:if(xl)return xl.call(e)==xl.call(t)}return!1}var NA=kA;function DA(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var $d=DA,IA=$d,LA=lt;function RA(e,t,r){var n=t(e);return LA(e)?n:IA(n,r(e))}var BA=RA;function FA(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}var WA=FA;function UA(){return[]}var zA=UA,GA=WA,qA=zA,KA=Object.prototype,VA=KA.propertyIsEnumerable,Cd=Object.getOwnPropertySymbols,HA=Cd?function(e){return e==null?[]:(e=Object(e),GA(Cd(e),function(t){return VA.call(e,t)}))}:qA,YA=HA;function XA(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var JA=XA,ZA=Ht,QA=Yt,eT="[object Arguments]";function tT(e){return QA(e)&&ZA(e)==eT}var rT=tT,Md=rT,nT=Yt,kd=Object.prototype,aT=kd.hasOwnProperty,iT=kd.propertyIsEnumerable,oT=Md(function(){return arguments}())?Md:function(e){return nT(e)&&aT.call(e,"callee")&&!iT.call(e,"callee")},wl=oT,Hi={exports:{}};function sT(){return!1}var lT=sT;Hi.exports,function(e,t){var r=Ft,n=lT,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u}(Hi,Hi.exports);var Nd=Hi.exports,uT=9007199254740991,cT=/^(?:0|[1-9]\d*)$/;function fT(e,t){var r=typeof e;return t=t??uT,!!t&&(r=="number"||r!="symbol"&&cT.test(e))&&e>-1&&e%1==0&&e<t}var Ol=fT,dT=9007199254740991;function hT(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=dT}var Sl=hT,pT=Ht,vT=Sl,yT=Yt,mT="[object Arguments]",gT="[object Array]",bT="[object Boolean]",xT="[object Date]",wT="[object Error]",OT="[object Function]",ST="[object Map]",AT="[object Number]",TT="[object Object]",PT="[object RegExp]",_T="[object Set]",ET="[object String]",jT="[object WeakMap]",$T="[object ArrayBuffer]",CT="[object DataView]",MT="[object Float32Array]",kT="[object Float64Array]",NT="[object Int8Array]",DT="[object Int16Array]",IT="[object Int32Array]",LT="[object Uint8Array]",RT="[object Uint8ClampedArray]",BT="[object Uint16Array]",FT="[object Uint32Array]",Ie={};Ie[MT]=Ie[kT]=Ie[NT]=Ie[DT]=Ie[IT]=Ie[LT]=Ie[RT]=Ie[BT]=Ie[FT]=!0,Ie[mT]=Ie[gT]=Ie[$T]=Ie[bT]=Ie[CT]=Ie[xT]=Ie[wT]=Ie[OT]=Ie[ST]=Ie[AT]=Ie[TT]=Ie[PT]=Ie[_T]=Ie[ET]=Ie[jT]=!1;function WT(e){return yT(e)&&vT(e.length)&&!!Ie[pT(e)]}var UT=WT;function zT(e){return function(t){return e(t)}}var Dd=zT,Yi={exports:{}};Yi.exports,function(e,t){var r=pf,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&r.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s}(Yi,Yi.exports);var GT=Yi.exports,qT=UT,KT=Dd,Id=GT,Ld=Id&&Id.isTypedArray,VT=Ld?KT(Ld):qT,Rd=VT,HT=JA,YT=wl,XT=lt,JT=Nd,ZT=Ol,QT=Rd,eP=Object.prototype,tP=eP.hasOwnProperty;function rP(e,t){var r=XT(e),n=!r&&YT(e),a=!r&&!n&&JT(e),i=!r&&!n&&!a&&QT(e),o=r||n||a||i,s=o?HT(e.length,String):[],l=s.length;for(var u in e)(t||tP.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ZT(u,l)))&&s.push(u);return s}var nP=rP,aP=Object.prototype;function iP(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||aP;return e===r}var oP=iP;function sP(e,t){return function(r){return e(t(r))}}var Bd=sP,lP=Bd,uP=lP(Object.keys,Object),cP=uP,fP=oP,dP=cP,hP=Object.prototype,pP=hP.hasOwnProperty;function vP(e){if(!fP(e))return dP(e);var t=[];for(var r in Object(e))pP.call(e,r)&&r!="constructor"&&t.push(r);return t}var yP=vP,mP=Bs,gP=Sl;function bP(e){return e!=null&&gP(e.length)&&!mP(e)}var da=bP,xP=nP,wP=yP,OP=da;function SP(e){return OP(e)?xP(e):wP(e)}var Xi=SP,AP=BA,TP=YA,PP=Xi;function _P(e){return AP(e,PP,TP)}var EP=_P,Fd=EP,jP=1,$P=Object.prototype,CP=$P.hasOwnProperty;function MP(e,t,r,n,a,i){var o=r&jP,s=Fd(e),l=s.length,u=Fd(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var d=s[f];if(!(o?d in t:CP.call(t,d)))return!1}var h=i.get(e),y=i.get(t);if(h&&y)return h==t&&y==e;var p=!0;i.set(e,t),i.set(t,e);for(var v=o;++f<l;){d=s[f];var g=e[d],O=t[d];if(n)var x=o?n(O,g,d,t,e,i):n(g,O,d,e,t,i);if(!(x===void 0?g===O||a(g,O,r,n,i):x)){p=!1;break}v||(v=d=="constructor")}if(p&&!v){var A=e.constructor,m=t.constructor;A!=m&&"constructor"in e&&"constructor"in t&&!(typeof A=="function"&&A instanceof A&&typeof m=="function"&&m instanceof m)&&(p=!1)}return i.delete(e),i.delete(t),p}var kP=MP,NP=Pr,DP=Ft,IP=NP(DP,"DataView"),LP=IP,RP=Pr,BP=Ft,FP=RP(BP,"Promise"),WP=FP,UP=Pr,zP=Ft,GP=UP(zP,"Set"),Wd=GP,qP=Pr,KP=Ft,VP=qP(KP,"WeakMap"),HP=VP,Al=LP,Tl=Us,Pl=WP,_l=Wd,El=HP,Ud=Ht,cn=xf,zd="[object Map]",YP="[object Object]",Gd="[object Promise]",qd="[object Set]",Kd="[object WeakMap]",Vd="[object DataView]",XP=cn(Al),JP=cn(Tl),ZP=cn(Pl),QP=cn(_l),e_=cn(El),Mr=Ud;(Al&&Mr(new Al(new ArrayBuffer(1)))!=Vd||Tl&&Mr(new Tl)!=zd||Pl&&Mr(Pl.resolve())!=Gd||_l&&Mr(new _l)!=qd||El&&Mr(new El)!=Kd)&&(Mr=function(e){var t=Ud(e),r=t==YP?e.constructor:void 0,n=r?cn(r):"";if(n)switch(n){case XP:return Vd;case JP:return zd;case ZP:return Gd;case QP:return qd;case e_:return Kd}return t});var t_=Mr,jl=Od,r_=Pd,n_=NA,a_=kP,Hd=t_,Yd=lt,Xd=Nd,i_=Rd,o_=1,Jd="[object Arguments]",Zd="[object Array]",Ji="[object Object]",s_=Object.prototype,Qd=s_.hasOwnProperty;function l_(e,t,r,n,a,i){var o=Yd(e),s=Yd(t),l=o?Zd:Hd(e),u=s?Zd:Hd(t);l=l==Jd?Ji:l,u=u==Jd?Ji:u;var c=l==Ji,f=u==Ji,d=l==u;if(d&&Xd(e)){if(!Xd(t))return!1;o=!0,c=!1}if(d&&!c)return i||(i=new jl),o||i_(e)?r_(e,t,r,n,a,i):n_(e,t,l,r,n,a,i);if(!(r&o_)){var h=c&&Qd.call(e,"__wrapped__"),y=f&&Qd.call(t,"__wrapped__");if(h||y){var p=h?e.value():e,v=y?t.value():t;return i||(i=new jl),a(p,v,r,n,i)}}return d?(i||(i=new jl),a_(e,t,r,n,a,i)):!1}var u_=l_,c_=u_,eh=Yt;function th(e,t,r,n,a){return e===t?!0:e==null||t==null||!eh(e)&&!eh(t)?e!==e&&t!==t:c_(e,t,r,n,th,a)}var $l=th,f_=Od,d_=$l,h_=1,p_=2;function v_(e,t,r,n){var a=r.length,i=a,o=!n;if(e==null)return!i;for(e=Object(e);a--;){var s=r[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){s=r[a];var l=s[0],u=e[l],c=s[1];if(o&&s[2]){if(u===void 0&&!(l in e))return!1}else{var f=new f_;if(n)var d=n(u,c,l,e,t,f);if(!(d===void 0?d_(c,u,h_|p_,n,f):d))return!1}}return!0}var y_=v_,m_=ur;function g_(e){return e===e&&!m_(e)}var rh=g_,b_=rh,x_=Xi;function w_(e){for(var t=x_(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,b_(a)]}return t}var O_=w_;function S_(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var nh=S_,A_=y_,T_=O_,P_=nh;function __(e){var t=T_(e);return t.length==1&&t[0][2]?P_(t[0][0],t[0][1]):function(r){return r===e||A_(r,e,t)}}var E_=__;function j_(e,t){return e!=null&&t in Object(e)}var $_=j_,C_=$f,M_=wl,k_=lt,N_=Ol,D_=Sl,I_=Mi;function L_(e,t,r){t=C_(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=I_(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&D_(a)&&N_(o,a)&&(k_(e)||M_(e)))}var R_=L_,B_=$_,F_=R_;function W_(e,t){return e!=null&&F_(e,t,B_)}var U_=W_,z_=$l,G_=Cf,q_=U_,K_=Rs,V_=rh,H_=nh,Y_=Mi,X_=1,J_=2;function Z_(e,t){return K_(e)&&V_(t)?H_(Y_(e),t):function(r){var n=G_(r,e);return n===void 0&&n===t?q_(r,e):z_(t,n,X_|J_)}}var Q_=Z_;function eE(e){return e}var fn=eE;function tE(e){return function(t){return t==null?void 0:t[e]}}var rE=tE,nE=Ks;function aE(e){return function(t){return nE(t,e)}}var iE=aE,oE=rE,sE=iE,lE=Rs,uE=Mi;function cE(e){return lE(e)?oE(uE(e)):sE(e)}var fE=cE,dE=E_,hE=Q_,pE=fn,vE=lt,yE=fE;function mE(e){return typeof e=="function"?e:e==null?pE:typeof e=="object"?vE(e)?hE(e[0],e[1]):dE(e):yE(e)}var fr=mE;function gE(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var ah=gE;function bE(e){return e!==e}var xE=bE;function wE(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}var OE=wE,SE=ah,AE=xE,TE=OE;function PE(e,t,r){return t===t?TE(e,t,r):SE(e,AE,r)}var _E=PE,EE=_E;function jE(e,t){var r=e==null?0:e.length;return!!r&&EE(e,t,0)>-1}var $E=jE;function CE(e,t,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(r(t,e[n]))return!0;return!1}var ME=CE;function kE(){}var NE=kE,Cl=Wd,DE=NE,IE=bl,LE=1/0,RE=Cl&&1/IE(new Cl([,-0]))[1]==LE?function(e){return new Cl(e)}:DE,BE=RE,FE=Sd,WE=$E,UE=ME,zE=Td,GE=BE,qE=bl,KE=200;function VE(e,t,r){var n=-1,a=WE,i=e.length,o=!0,s=[],l=s;if(r)o=!1,a=UE;else if(i>=KE){var u=t?null:GE(e);if(u)return qE(u);o=!1,a=zE,l=new FE}else l=t?[]:s;e:for(;++n<i;){var c=e[n],f=t?t(c):c;if(c=r||c!==0?c:0,o&&f===f){for(var d=l.length;d--;)if(l[d]===f)continue e;t&&l.push(f),s.push(c)}else a(l,f,r)||(l!==s&&l.push(f),s.push(c))}return s}var HE=VE,YE=fr,XE=HE;function JE(e,t){return e&&e.length?XE(e,YE(t)):[]}var ZE=JE;const ih=ke(ZE);function oh(e,t,r){return t===!0?ih(e,r):de(t)?ih(e,t):e}function dn(e){"@babel/helpers - typeof";return dn=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},dn(e)}var QE=["ref"];function sh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Zt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sh(Object(r),!0).forEach(function(n){Qi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ej(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ch(n.key),n)}}function tj(e,t,r){return t&&lh(e.prototype,t),r&&lh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function rj(e,t,r){return t=Zi(t),nj(e,uh()?Reflect.construct(t,r||[],Zi(e).constructor):t.apply(e,r))}function nj(e,t){if(t&&(dn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aj(e)}function aj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uh=function(){return!!e})()}function Zi(e){return Zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zi(e)}function ij(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&&Ml(e,t)}function Ml(e,t){return Ml=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Ml(e,t)}function Qi(e,t,r){return t=ch(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ch(e){var t=oj(e,"string");return dn(t)=="symbol"?t:t+""}function oj(e,t){if(dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function sj(e,t){if(e==null)return{};var r=lj(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lj(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function uj(e){return e.value}function cj(e,t){if(S.isValidElement(e))return S.cloneElement(e,t);if(typeof e=="function")return S.createElement(e,t);t.ref;var r=sj(t,QE);return S.createElement(gl,r)}var fh=1,hn=function(e){function t(){var r;ej(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=rj(this,t,[].concat(a)),Qi(r,"lastBoundingBox",{width:-1,height:-1}),r}return ij(t,e),tj(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>fh||Math.abs(a.height-this.lastBoundingBox.height)>fh)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,n&&n(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Zt({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var a=this.props,i=a.layout,o=a.align,s=a.verticalAlign,l=a.margin,u=a.chartWidth,c=a.chartHeight,f,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&i==="vertical"){var h=this.getBBoxSnapshot();f={left:((u||0)-h.width)/2}}else f=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var y=this.getBBoxSnapshot();d={top:((c||0)-y.height)/2}}else d=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Zt(Zt({},f),d)}},{key:"render",value:function(){var n=this,a=this.props,i=a.content,o=a.width,s=a.height,l=a.wrapperStyle,u=a.payloadUniqBy,c=a.payload,f=Zt(Zt({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return S.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(h){n.wrapperNode=h}},cj(i,Zt(Zt({},this.props),{},{payload:oh(c,u,uj)})))}}],[{key:"getWithHeight",value:function(n,a){var i=Zt(Zt({},this.defaultProps),n.props),o=i.layout;return o==="vertical"&&X(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||a}:null}}])}(S.PureComponent);Qi(hn,"displayName","Legend"),Qi(hn,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var dh=sa,fj=wl,dj=lt,hh=dh?dh.isConcatSpreadable:void 0;function hj(e){return dj(e)||fj(e)||!!(hh&&e&&e[hh])}var pj=hj,vj=$d,yj=pj;function ph(e,t,r,n,a){var i=-1,o=e.length;for(r||(r=yj),a||(a=[]);++i<o;){var s=e[i];t>0&&r(s)?t>1?ph(s,t-1,r,n,a):vj(a,s):n||(a[a.length]=s)}return a}var vh=ph;function mj(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++a];if(r(i[l],l,i)===!1)break}return t}}var gj=mj,bj=gj,xj=bj(),wj=xj,Oj=wj,Sj=Xi;function Aj(e,t){return e&&Oj(e,t,Sj)}var yh=Aj,Tj=da;function Pj(e,t){return function(r,n){if(r==null)return r;if(!Tj(r))return e(r,n);for(var a=r.length,i=t?a:-1,o=Object(r);(t?i--:++i<a)&&n(o[i],i,o)!==!1;);return r}}var _j=Pj,Ej=yh,jj=_j,$j=jj(Ej),kl=$j,Cj=kl,Mj=da;function kj(e,t){var r=-1,n=Mj(e)?Array(e.length):[];return Cj(e,function(a,i,o){n[++r]=t(a,i,o)}),n}var mh=kj;function Nj(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var Dj=Nj,gh=Qr;function Ij(e,t){if(e!==t){var r=e!==void 0,n=e===null,a=e===e,i=gh(e),o=t!==void 0,s=t===null,l=t===t,u=gh(t);if(!s&&!u&&!i&&e>t||i&&o&&l&&!s&&!u||n&&o&&l||!r&&l||!a)return 1;if(!n&&!i&&!u&&e<t||u&&r&&a&&!n&&!i||s&&r&&a||!o&&a||!l)return-1}return 0}var Lj=Ij,Rj=Lj;function Bj(e,t,r){for(var n=-1,a=e.criteria,i=t.criteria,o=a.length,s=r.length;++n<o;){var l=Rj(a[n],i[n]);if(l){if(n>=s)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return e.index-t.index}var Fj=Bj,Nl=qs,Wj=Ks,Uj=fr,zj=mh,Gj=Dj,qj=Dd,Kj=Fj,Vj=fn,Hj=lt;function Yj(e,t,r){t.length?t=Nl(t,function(i){return Hj(i)?function(o){return Wj(o,i.length===1?i[0]:i)}:i}):t=[Vj];var n=-1;t=Nl(t,qj(Uj));var a=zj(e,function(i,o,s){var l=Nl(t,function(u){return u(i)});return{criteria:l,index:++n,value:i}});return Gj(a,function(i,o){return Kj(i,o,r)})}var Xj=Yj;function Jj(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Zj=Jj,Qj=Zj,bh=Math.max;function e$(e,t,r){return t=bh(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=bh(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=n[a];return s[t]=r(o),Qj(e,this,s)}}var t$=e$;function r$(e){return function(){return e}}var n$=r$,a$=Pr,i$=function(){try{var e=a$(Object,"defineProperty");return e({},"",{}),e}catch{}}(),xh=i$,o$=n$,wh=xh,s$=fn,l$=wh?function(e,t){return wh(e,"toString",{configurable:!0,enumerable:!1,value:o$(t),writable:!0})}:s$,u$=l$,c$=800,f$=16,d$=Date.now;function h$(e){var t=0,r=0;return function(){var n=d$(),a=f$-(n-r);if(r=n,a>0){if(++t>=c$)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var p$=h$,v$=u$,y$=p$,m$=y$(v$),g$=m$,b$=fn,x$=t$,w$=g$;function O$(e,t){return w$(x$(e,t,b$),e+"")}var S$=O$,A$=Ws,T$=da,P$=Ol,_$=ur;function E$(e,t,r){if(!_$(r))return!1;var n=typeof t;return(n=="number"?T$(r)&&P$(t,r.length):n=="string"&&t in r)?A$(r[t],e):!1}var eo=E$,j$=vh,$$=Xj,C$=S$,Oh=eo,M$=C$(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Oh(e,t[0],t[1])?t=[]:r>2&&Oh(t[0],t[1],t[2])&&(t=[t[0]]),$$(e,j$(t,1),[])}),k$=M$;const Dl=ke(k$);function ha(e){"@babel/helpers - typeof";return ha=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},ha(e)}function Il(){return Il=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Il.apply(this,arguments)}function N$(e,t){return R$(e)||L$(e,t)||I$(e,t)||D$()}function D$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
50
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I$(e,t){if(e){if(typeof e=="string")return Sh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sh(e,t)}}function Sh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function L$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}function R$(e){if(Array.isArray(e))return e}function Ah(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ll(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ah(Object(r),!0).forEach(function(n){B$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ah(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function B$(e,t,r){return t=F$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F$(e){var t=W$(e,"string");return ha(t)=="symbol"?t:t+""}function W$(e,t){if(ha(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ha(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function U$(e){return Array.isArray(e)&&Ve(e[0])&&Ve(e[1])?e.join(" ~ "):e}var z$=function(t){var r=t.separator,n=r===void 0?" : ":r,a=t.contentStyle,i=a===void 0?{}:a,o=t.itemStyle,s=o===void 0?{}:o,l=t.labelStyle,u=l===void 0?{}:l,c=t.payload,f=t.formatter,d=t.itemSorter,h=t.wrapperClassName,y=t.labelClassName,p=t.label,v=t.labelFormatter,g=t.accessibilityLayer,O=g===void 0?!1:g,x=function(){if(c&&c.length){var j={padding:0,margin:0},L=(d?Dl(c,d):c).map(function(B,M){if(B.type==="none")return null;var E=Ll({display:"block",paddingTop:4,paddingBottom:4,color:B.color||"#000"},s),F=B.formatter||f||U$,U=B.value,k=B.name,N=U,I=k;if(F&&N!=null&&I!=null){var W=F(U,k,B,M,c);if(Array.isArray(W)){var z=N$(W,2);N=z[0],I=z[1]}else N=W}return S.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(M),style:E},Ve(I)?S.createElement("span",{className:"recharts-tooltip-item-name"},I):null,Ve(I)?S.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,S.createElement("span",{className:"recharts-tooltip-item-value"},N),S.createElement("span",{className:"recharts-tooltip-item-unit"},B.unit||""))});return S.createElement("ul",{className:"recharts-tooltip-item-list",style:j},L)}return null},A=Ll({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),m=Ll({margin:0},u),w=!ue(p),T=w?p:"",_=pe("recharts-default-tooltip",h),$=pe("recharts-tooltip-label",y);w&&v&&c!==void 0&&c!==null&&(T=v(p,c));var R=O?{role:"status","aria-live":"assertive"}:{};return S.createElement("div",Il({className:_,style:A},R),S.createElement("p",{className:$,style:m},S.isValidElement(T)?T:"".concat(T)),x())};function pa(e){"@babel/helpers - typeof";return pa=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},pa(e)}function to(e,t,r){return t=G$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G$(e){var t=q$(e,"string");return pa(t)=="symbol"?t:t+""}function q$(e,t){if(pa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var va="recharts-tooltip-wrapper",K$={visibility:"hidden"};function V$(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return pe(va,to(to(to(to({},"".concat(va,"-right"),X(r)&&t&&X(t.x)&&r>=t.x),"".concat(va,"-left"),X(r)&&t&&X(t.x)&&r<t.x),"".concat(va,"-bottom"),X(n)&&t&&X(t.y)&&n>=t.y),"".concat(va,"-top"),X(n)&&t&&X(t.y)&&n<t.y))}function Th(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,a=e.offsetTopLeft,i=e.position,o=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(i&&X(i[n]))return i[n];var c=r[n]-s-a,f=r[n]+a;if(t[n])return o[n]?c:f;if(o[n]){var d=c,h=l[n];return d<h?Math.max(f,l[n]):Math.max(c,l[n])}var y=f+s,p=l[n]+u;return y>p?Math.max(c,l[n]):Math.max(f,l[n])}function H$(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Y$(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,a=e.position,i=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,c,f;return o.height>0&&o.width>0&&r?(c=Th({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=Th({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=H$({translateX:c,translateY:f,useTranslate3d:s})):u=K$,{cssProperties:u,cssClasses:V$({translateX:c,translateY:f,coordinate:r})}}function pn(e){"@babel/helpers - typeof";return pn=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},pn(e)}function Ph(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function _h(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ph(Object(r),!0).forEach(function(n){Bl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ph(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J$(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jh(n.key),n)}}function Z$(e,t,r){return t&&J$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q$(e,t,r){return t=ro(t),eC(e,Eh()?Reflect.construct(t,r||[],ro(e).constructor):t.apply(e,r))}function eC(e,t){if(t&&(pn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tC(e)}function tC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Eh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Eh=function(){return!!e})()}function ro(e){return ro=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ro(e)}function rC(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&&Rl(e,t)}function Rl(e,t){return Rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Rl(e,t)}function Bl(e,t,r){return t=jh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jh(e){var t=nC(e,"string");return pn(t)=="symbol"?t:t+""}function nC(e,t){if(pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $h=1,aC=function(e){function t(){var r;X$(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=Q$(this,t,[].concat(a)),Bl(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Bl(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,l,u,c;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(u=(c=r.props.coordinate)===null||c===void 0?void 0:c.y)!==null&&u!==void 0?u:0}})}}),r}return rC(t,e),Z$(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>$h||Math.abs(n.height-this.state.lastBoundingBox.height)>$h)&&this.setState({lastBoundingBox:{width:n.width,height:n.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 n,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,s=a.animationDuration,l=a.animationEasing,u=a.children,c=a.coordinate,f=a.hasPayload,d=a.isAnimationActive,h=a.offset,y=a.position,p=a.reverseDirection,v=a.useTranslate3d,g=a.viewBox,O=a.wrapperStyle,x=Y$({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:h,position:y,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:g}),A=x.cssClasses,m=x.cssProperties,w=_h(_h({transition:d&&i?"transform ".concat(s,"ms ").concat(l):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&f?"visible":"hidden",position:"absolute",top:0,left:0},O);return S.createElement("div",{tabIndex:-1,className:A,style:w,ref:function(_){n.wrapperNode=_}},u)}}])}(S.PureComponent),iC=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},dr={isSsr:iC()};function vn(e){"@babel/helpers - typeof";return vn=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},vn(e)}function Ch(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Mh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ch(Object(r),!0).forEach(function(n){Wl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ch(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Nh(n.key),n)}}function lC(e,t,r){return t&&sC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uC(e,t,r){return t=no(t),cC(e,kh()?Reflect.construct(t,r||[],no(e).constructor):t.apply(e,r))}function cC(e,t){if(t&&(vn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fC(e)}function fC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kh=function(){return!!e})()}function no(e){return no=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},no(e)}function dC(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&&Fl(e,t)}function Fl(e,t){return Fl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Fl(e,t)}function Wl(e,t,r){return t=Nh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nh(e){var t=hC(e,"string");return vn(t)=="symbol"?t:t+""}function hC(e,t){if(vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function pC(e){return e.dataKey}function vC(e,t){return S.isValidElement(e)?S.cloneElement(e,t):typeof e=="function"?S.createElement(e,t):S.createElement(z$,t)}var Wt=function(e){function t(){return oC(this,t),uC(this,t,arguments)}return dC(t,e),lC(t,[{key:"render",value:function(){var n=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,s=a.animationDuration,l=a.animationEasing,u=a.content,c=a.coordinate,f=a.filterNull,d=a.isAnimationActive,h=a.offset,y=a.payload,p=a.payloadUniqBy,v=a.position,g=a.reverseDirection,O=a.useTranslate3d,x=a.viewBox,A=a.wrapperStyle,m=y??[];f&&m.length&&(m=oh(y.filter(function(T){return T.value!=null&&(T.hide!==!0||n.props.includeHidden)}),p,pC));var w=m.length>0;return S.createElement(aC,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:d,active:i,coordinate:c,hasPayload:w,offset:h,position:v,reverseDirection:g,useTranslate3d:O,viewBox:x,wrapperStyle:A},vC(u,Mh(Mh({},this.props),{},{payload:m})))}}])}(S.PureComponent);Wl(Wt,"displayName","Tooltip"),Wl(Wt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!dr.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 yC=Ft,mC=function(){return yC.Date.now()},gC=mC,bC=/\s/;function xC(e){for(var t=e.length;t--&&bC.test(e.charAt(t)););return t}var wC=xC,OC=wC,SC=/^\s+/;function AC(e){return e&&e.slice(0,OC(e)+1).replace(SC,"")}var TC=AC,PC=TC,Dh=ur,_C=Qr,Ih=NaN,EC=/^[-+]0x[0-9a-f]+$/i,jC=/^0b[01]+$/i,$C=/^0o[0-7]+$/i,CC=parseInt;function MC(e){if(typeof e=="number")return e;if(_C(e))return Ih;if(Dh(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Dh(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=PC(e);var r=jC.test(e);return r||$C.test(e)?CC(e.slice(2),r?2:8):EC.test(e)?Ih:+e}var Lh=MC,kC=ur,Ul=gC,Rh=Lh,NC="Expected a function",DC=Math.max,IC=Math.min;function LC(e,t,r){var n,a,i,o,s,l,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(NC);t=Rh(t)||0,kC(r)&&(c=!!r.leading,f="maxWait"in r,i=f?DC(Rh(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d);function h(w){var T=n,_=a;return n=a=void 0,u=w,o=e.apply(_,T),o}function y(w){return u=w,s=setTimeout(g,t),c?h(w):o}function p(w){var T=w-l,_=w-u,$=t-T;return f?IC($,i-_):$}function v(w){var T=w-l,_=w-u;return l===void 0||T>=t||T<0||f&&_>=i}function g(){var w=Ul();if(v(w))return O(w);s=setTimeout(g,p(w))}function O(w){return s=void 0,d&&n?h(w):(n=a=void 0,o)}function x(){s!==void 0&&clearTimeout(s),u=0,n=l=a=s=void 0}function A(){return s===void 0?o:O(Ul())}function m(){var w=Ul(),T=v(w);if(n=arguments,a=this,l=w,T){if(s===void 0)return y(l);if(f)return clearTimeout(s),s=setTimeout(g,t),h(l)}return s===void 0&&(s=setTimeout(g,t)),o}return m.cancel=x,m.flush=A,m}var RC=LC,BC=RC,FC=ur,WC="Expected a function";function UC(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(WC);return FC(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),BC(e,t,{leading:n,maxWait:t,trailing:a})}var zC=UC;const Bh=ke(zC);function ya(e){"@babel/helpers - typeof";return ya=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},ya(e)}function Fh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ao(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fh(Object(r),!0).forEach(function(n){GC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GC(e,t,r){return t=qC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qC(e){var t=KC(e,"string");return ya(t)=="symbol"?t:t+""}function KC(e,t){if(ya(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ya(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VC(e,t){return JC(e)||XC(e,t)||YC(e,t)||HC()}function HC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
51
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YC(e,t){if(e){if(typeof e=="string")return Wh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wh(e,t)}}function Wh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function XC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}function JC(e){if(Array.isArray(e))return e}var ZC=S.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,a=n===void 0?{width:-1,height:-1}:n,i=e.width,o=i===void 0?"100%":i,s=e.height,l=s===void 0?"100%":s,u=e.minWidth,c=u===void 0?0:u,f=e.minHeight,d=e.maxHeight,h=e.children,y=e.debounce,p=y===void 0?0:y,v=e.id,g=e.className,O=e.onResize,x=e.style,A=x===void 0?{}:x,m=S.useRef(null),w=S.useRef();w.current=O,S.useImperativeHandle(t,function(){return Object.defineProperty(m.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),m.current},configurable:!0})});var T=S.useState({containerWidth:a.width,containerHeight:a.height}),_=VC(T,2),$=_[0],R=_[1],P=S.useCallback(function(L,B){R(function(M){var E=Math.round(L),F=Math.round(B);return M.containerWidth===E&&M.containerHeight===F?M:{containerWidth:E,containerHeight:F}})},[]);S.useEffect(function(){var L=function(k){var N,I=k[0].contentRect,W=I.width,z=I.height;P(W,z),(N=w.current)===null||N===void 0||N.call(w,W,z)};p>0&&(L=Bh(L,p,{trailing:!0,leading:!1}));var B=new ResizeObserver(L),M=m.current.getBoundingClientRect(),E=M.width,F=M.height;return P(E,F),B.observe(m.current),function(){B.disconnect()}},[P,p]);var j=S.useMemo(function(){var L=$.containerWidth,B=$.containerHeight;if(L<0||B<0)return null;Jt(Er(o)||Er(l),`The width(%s) and height(%s) are both fixed numbers,
52
+ maybe you don't need to use a ResponsiveContainer.`,o,l),Jt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var M=Er(o)?L:o,E=Er(l)?B:l;r&&r>0&&(M?E=M/r:E&&(M=E*r),d&&E>d&&(E=d)),Jt(M>0||E>0,`The width(%s) and height(%s) of chart should be greater than 0,
53
53
  please check the style of container, or the props width(%s) and height(%s),
54
54
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
55
- height and width.`,D,L,o,l,c,f,r);var F=!Array.isArray(p)&&Ut(p.type).endsWith("Chart");return O.Children.map(p,function(G){return O.isValidElement(G)?O.cloneElement(G,Fa({width:D,height:L},F?{style:Fa({height:"100%",width:"100%",maxHeight:L,maxWidth:D},G.props.style)}:{})):G})},[r,p,l,d,f,c,j,o]);return O.createElement("div",{id:v?"".concat(v):void 0,className:ce("recharts-responsive-container",m),style:Fa(Fa({},S),{},{width:o,height:l,minWidth:c,minHeight:f,maxHeight:d}),ref:y},E)}),gl=function(t){return null};gl.displayName="Cell";function si(e){"@babel/helpers - typeof";return si=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},si(e)}function vp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ml(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vp(Object(r),!0).forEach(function(n){uC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uC(e,t,r){return t=cC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cC(e){var t=fC(e,"string");return si(t)=="symbol"?t:t+""}function fC(e,t){if(si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var an={widthCache:{},cacheCount:0},dC=2e3,pC={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},yp="recharts_measurement_span";function hC(e){var t=ml({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var li=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ar.isSsr)return{width:0,height:0};var n=hC(r),i=JSON.stringify({text:t,copyStyle:n});if(an.widthCache[i])return an.widthCache[i];try{var a=document.getElementById(yp);a||(a=document.createElement("span"),a.setAttribute("id",yp),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=ml(ml({},pC),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return an.widthCache[i]=l,++an.cacheCount>dC&&(an.cacheCount=0,an.widthCache={}),l}catch{return{width:0,height:0}}},vC=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ui(e){"@babel/helpers - typeof";return ui=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},ui(e)}function za(e,t){return bC(e)||mC(e,t)||gC(e,t)||yC()}function yC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
56
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gC(e,t){if(e){if(typeof e=="string")return gp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gp(e,t)}}function gp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function bC(e){if(Array.isArray(e))return e}function xC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,OC(n.key),n)}}function wC(e,t,r){return t&&mp(e.prototype,t),r&&mp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function OC(e){var t=SC(e,"string");return ui(t)=="symbol"?t:t+""}function SC(e,t){if(ui(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ui(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var bp=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,xp=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,AC=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,PC=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,wp={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},_C=Object.keys(wp),on="NaN";function TC(e,t){return e*wp[t]}var Wa=function(){function e(t,r){xC(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!AC.test(r)&&(this.num=NaN,this.unit=""),_C.includes(r)&&(this.num=TC(t,r),this.unit="px")}return wC(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.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(r){var n,i=(n=PC.exec(r))!==null&&n!==void 0?n:[],a=za(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])}();function Op(e){if(e.includes(on))return on;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=bp.exec(t))!==null&&r!==void 0?r:[],i=za(n,4),a=i[1],o=i[2],s=i[3],l=Wa.parse(a??""),u=Wa.parse(s??""),c=o==="*"?l.multiply(u):l.divide(u);if(c.isNaN())return on;t=t.replace(bp,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,d=(f=xp.exec(t))!==null&&f!==void 0?f:[],p=za(d,4),g=p[1],h=p[2],v=p[3],m=Wa.parse(g??""),w=Wa.parse(v??""),x=h==="+"?m.add(w):m.subtract(w);if(x.isNaN())return on;t=t.replace(xp,x.toString())}return t}var Sp=/\(([^()]*)\)/;function EC(e){for(var t=e;t.includes("(");){var r=Sp.exec(t),n=za(r,2),i=n[1];t=t.replace(Sp,Op(i))}return t}function $C(e){var t=e.replace(/\s+/g,"");return t=EC(t),t=Op(t),t}function jC(e){try{return $C(e)}catch{return on}}function bl(e){var t=jC(e.slice(5,-1));return t===on?"":t}var CC=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],MC=["dx","dy","angle","className","breakAll"];function xl(){return xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xl.apply(this,arguments)}function Ap(e,t){if(e==null)return{};var r=kC(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kC(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Pp(e,t){return LC(e)||DC(e,t)||NC(e,t)||IC()}function IC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NC(e,t){if(e){if(typeof e=="string")return _p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _p(e,t)}}function _p(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function DC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function LC(e){if(Array.isArray(e))return e}var Tp=/[ \f\n\r\t\v\u2028\u2029]+/,Ep=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];oe(r)||(n?a=r.toString().split(""):a=r.toString().split(Tp));var o=a.map(function(l){return{word:l,width:li(l,i).width}}),s=n?0:li(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},RC=function(t,r,n,i,a){var o=t.maxLines,s=t.children,l=t.style,u=t.breakAll,c=V(o),f=s,d=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return D.reduce(function(L,F){var G=F.word,U=F.width,I=L[L.length-1];if(I&&(i==null||a||I.width+U+n<Number(i)))I.words.push(G),I.width+=U+n;else{var R={words:[G],width:U};L.push(R)}return L},[])},p=d(r),g=function(D){return D.reduce(function(L,F){return L.width>F.width?L:F})};if(!c)return p;for(var h="…",v=function(D){var L=f.slice(0,D),F=Ep({breakAll:u,style:l,children:L+h}).wordsWithComputedWidth,G=d(F),U=G.length>o||g(G).width>Number(i);return[U,G]},m=0,w=f.length-1,x=0,S;m<=w&&x<=f.length-1;){var y=Math.floor((m+w)/2),b=y-1,A=v(b),T=Pp(A,2),j=T[0],N=T[1],_=v(y),E=Pp(_,1),k=E[0];if(!j&&!k&&(m=y+1),j&&k&&(w=y-1),!j&&k){S=N;break}x++}return S||p},$p=function(t){var r=oe(t)?[]:t.toString().split(Tp);return[{words:r}]},BC=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!ar.isSsr){var l,u,c=Ep({breakAll:o,children:i,style:a});if(c){var f=c.wordsWithComputedWidth,d=c.spaceWidth;l=f,u=d}else return $p(i);return RC({breakAll:o,children:i,maxLines:s,style:a},l,u,r,n)}return $p(i)},jp="#808080",Ua=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,c=t.scaleToFit,f=c===void 0?!1:c,d=t.textAnchor,p=d===void 0?"start":d,g=t.verticalAnchor,h=g===void 0?"end":g,v=t.fill,m=v===void 0?jp:v,w=Ap(t,CC),x=O.useMemo(function(){return BC({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:f,style:w.style,width:w.width})},[w.breakAll,w.children,w.maxLines,f,w.style,w.width]),S=w.dx,y=w.dy,b=w.angle,A=w.className,T=w.breakAll,j=Ap(w,MC);if(!We(n)||!We(a))return null;var N=n+(V(S)?S:0),_=a+(V(y)?y:0),E;switch(h){case"start":E=bl("calc(".concat(u,")"));break;case"middle":E=bl("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:E=bl("calc(".concat(x.length-1," * -").concat(s,")"));break}var k=[];if(f){var M=x[0].width,D=w.width;k.push("scale(".concat((V(D)?D/M:1)/M,")"))}return b&&k.push("rotate(".concat(b,", ").concat(N,", ").concat(_,")")),k.length&&(j.transform=k.join(" ")),O.createElement("text",xl({},se(j,!0),{x:N,y:_,className:ce("recharts-text",A),textAnchor:p,fill:m.includes("url")?jp:m}),x.map(function(L,F){var G=L.words.join(T?"":" ");return O.createElement("tspan",{x:N,dy:F===0?E:s,key:"".concat(G,"-").concat(F)},G)}))};function or(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function FC(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function wl(e){let t,r,n;e.length!==2?(t=or,r=(s,l)=>or(e(s),l),n=(s,l)=>e(s)-l):(t=e===or||e===FC?e:zC,r=e,n=e);function i(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<0?u=f+1:c=f}while(u<c)}return u}function a(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<=0?u=f+1:c=f}while(u<c)}return u}function o(s,l,u=0,c=s.length){const f=i(s,l,u,c-1);return f>u&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:i,center:o,right:a}}function zC(){return 0}function Cp(e){return e===null?NaN:+e}function*WC(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const ci=wl(or).right;wl(Cp).center;class Mp extends Map{constructor(t,r=qC){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(kp(this,t))}has(t){return super.has(kp(this,t))}set(t,r){return super.set(UC(this,t),r)}delete(t){return super.delete(GC(this,t))}}function kp({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function UC({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function GC({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function qC(e){return e!==null&&typeof e=="object"?e.valueOf():e}function KC(e=or){if(e===or)return Ip;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Ip(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const HC=Math.sqrt(50),VC=Math.sqrt(10),YC=Math.sqrt(2);function Ga(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=HC?10:a>=VC?5:a>=YC?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=r&&r<2?Ga(e,t,r*2):[s,l,u]}function Ol(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Ga(t,e,r):Ga(e,t,r);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let u=0;u<s;++u)l[u]=(a-u)/-o;else for(let u=0;u<s;++u)l[u]=(a-u)*o;else if(o<0)for(let u=0;u<s;++u)l[u]=(i+u)/-o;else for(let u=0;u<s;++u)l[u]=(i+u)*o;return l}function Sl(e,t,r){return t=+t,e=+e,r=+r,Ga(e,t,r)[2]}function Al(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Sl(t,e,r):Sl(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Np(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Dp(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Lp(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?Ip:KC(i);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(l-f)/l)*(u-l/2<0?-1:1),p=Math.max(r,Math.floor(t-u*f/l+d)),g=Math.min(n,Math.floor(t+(l-u)*f/l+d));Lp(e,t,p,g,i)}const a=e[t];let o=r,s=n;for(fi(e,r,t),i(e[n],a)>0&&fi(e,r,n);o<s;){for(fi(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?fi(e,r,s):(++s,fi(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function fi(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function XC(e,t,r){if(e=Float64Array.from(WC(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Dp(e);if(t>=1)return Np(e);var n,i=(n-1)*t,a=Math.floor(i),o=Np(Lp(e,a).subarray(0,a+1)),s=Dp(e.subarray(a+1));return o+(s-o)*(i-a)}}function ZC(e,t,r=Cp){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function JC(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function gt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Kt(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 Pl=Symbol("implicit");function _l(){var e=new Mp,t=[],r=[],n=Pl;function i(a){let o=e.get(a);if(o===void 0){if(n!==Pl)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Mp;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return _l(t,r).unknown(n)},gt.apply(i,arguments),i}function di(){var e=_l().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,l=0,u=0,c=.5;delete e.unknown;function f(){var d=t().length,p=i<n,g=p?i:n,h=p?n:i;a=(h-g)/Math.max(1,d-l+u*2),s&&(a=Math.floor(a)),g+=(h-g-a*(d-l))*c,o=a*(1-l),s&&(g=Math.round(g),o=Math.round(o));var v=JC(d).map(function(m){return g+a*m});return r(p?v.reverse():v)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(s=!!d,f()):s},e.padding=function(d){return arguments.length?(l=Math.min(1,u=+d),f()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),f()):l},e.paddingOuter=function(d){return arguments.length?(u=+d,f()):u},e.align=function(d){return arguments.length?(c=Math.max(0,Math.min(1,d)),f()):c},e.copy=function(){return di(t(),[n,i]).round(s).paddingInner(l).paddingOuter(u).align(c)},gt.apply(f(),arguments)}function Rp(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Rp(t())},e}function pi(){return Rp(di.apply(null,arguments).paddingInner(1))}function Tl(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Bp(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function hi(){}var vi=.7,qa=1/vi,sn="\\s*([+-]?\\d+)\\s*",yi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Nt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",QC=/^#([0-9a-f]{3,8})$/,eM=new RegExp(`^rgb\\(${sn},${sn},${sn}\\)$`),tM=new RegExp(`^rgb\\(${Nt},${Nt},${Nt}\\)$`),rM=new RegExp(`^rgba\\(${sn},${sn},${sn},${yi}\\)$`),nM=new RegExp(`^rgba\\(${Nt},${Nt},${Nt},${yi}\\)$`),iM=new RegExp(`^hsl\\(${yi},${Nt},${Nt}\\)$`),aM=new RegExp(`^hsla\\(${yi},${Nt},${Nt},${yi}\\)$`),Fp={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};Tl(hi,gi,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:zp,formatHex:zp,formatHex8:oM,formatHsl:sM,formatRgb:Wp,toString:Wp});function zp(){return this.rgb().formatHex()}function oM(){return this.rgb().formatHex8()}function sM(){return Hp(this).formatHsl()}function Wp(){return this.rgb().formatRgb()}function gi(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=QC.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Up(t):r===3?new it(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Ka(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Ka(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=eM.exec(e))?new it(t[1],t[2],t[3],1):(t=tM.exec(e))?new it(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=rM.exec(e))?Ka(t[1],t[2],t[3],t[4]):(t=nM.exec(e))?Ka(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=iM.exec(e))?Kp(t[1],t[2]/100,t[3]/100,1):(t=aM.exec(e))?Kp(t[1],t[2]/100,t[3]/100,t[4]):Fp.hasOwnProperty(e)?Up(Fp[e]):e==="transparent"?new it(NaN,NaN,NaN,0):null}function Up(e){return new it(e>>16&255,e>>8&255,e&255,1)}function Ka(e,t,r,n){return n<=0&&(e=t=r=NaN),new it(e,t,r,n)}function lM(e){return e instanceof hi||(e=gi(e)),e?(e=e.rgb(),new it(e.r,e.g,e.b,e.opacity)):new it}function El(e,t,r,n){return arguments.length===1?lM(e):new it(e,t,r,n??1)}function it(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Tl(it,El,Bp(hi,{brighter(e){return e=e==null?qa:Math.pow(qa,e),new it(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?vi:Math.pow(vi,e),new it(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new it(Pr(this.r),Pr(this.g),Pr(this.b),Ha(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:Gp,formatHex:Gp,formatHex8:uM,formatRgb:qp,toString:qp}));function Gp(){return`#${_r(this.r)}${_r(this.g)}${_r(this.b)}`}function uM(){return`#${_r(this.r)}${_r(this.g)}${_r(this.b)}${_r((isNaN(this.opacity)?1:this.opacity)*255)}`}function qp(){const e=Ha(this.opacity);return`${e===1?"rgb(":"rgba("}${Pr(this.r)}, ${Pr(this.g)}, ${Pr(this.b)}${e===1?")":`, ${e})`}`}function Ha(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Pr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function _r(e){return e=Pr(e),(e<16?"0":"")+e.toString(16)}function Kp(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new At(e,t,r,n)}function Hp(e){if(e instanceof At)return new At(e.h,e.s,e.l,e.opacity);if(e instanceof hi||(e=gi(e)),!e)return new At;if(e instanceof At)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new At(o,s,l,e.opacity)}function cM(e,t,r,n){return arguments.length===1?Hp(e):new At(e,t,r,n??1)}function At(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Tl(At,cM,Bp(hi,{brighter(e){return e=e==null?qa:Math.pow(qa,e),new At(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?vi:Math.pow(vi,e),new At(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new it($l(e>=240?e-240:e+120,i,n),$l(e,i,n),$l(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new At(Vp(this.h),Va(this.s),Va(this.l),Ha(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=Ha(this.opacity);return`${e===1?"hsl(":"hsla("}${Vp(this.h)}, ${Va(this.s)*100}%, ${Va(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Vp(e){return e=(e||0)%360,e<0?e+360:e}function Va(e){return Math.max(0,Math.min(1,e||0))}function $l(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const jl=e=>()=>e;function fM(e,t){return function(r){return e+r*t}}function dM(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function pM(e){return(e=+e)==1?Yp:function(t,r){return r-t?dM(t,r,e):jl(isNaN(t)?r:t)}}function Yp(e,t){var r=t-e;return r?fM(e,r):jl(isNaN(e)?t:e)}const Xp=function e(t){var r=pM(t);function n(i,a){var o=r((i=El(i)).r,(a=El(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=Yp(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=e,n}(1);function hM(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function vM(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function yM(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=ln(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function gM(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Ya(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function mM(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=ln(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Cl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ml=new RegExp(Cl.source,"g");function bM(e){return function(){return e}}function xM(e){return function(t){return e(t)+""}}function wM(e,t){var r=Cl.lastIndex=Ml.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=Cl.exec(e))&&(i=Ml.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Ya(n,i)})),r=Ml.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?xM(l[0].x):bM(t):(t=l.length,function(u){for(var c=0,f;c<t;++c)s[(f=l[c]).i]=f.x(u);return s.join("")})}function ln(e,t){var r=typeof t,n;return t==null||r==="boolean"?jl(t):(r==="number"?Ya:r==="string"?(n=gi(t))?(t=n,Xp):wM:t instanceof gi?Xp:t instanceof Date?gM:vM(t)?hM:Array.isArray(t)?yM:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?mM:Ya)(e,t)}function kl(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function OM(e,t){t===void 0&&(t=e,e=ln);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function SM(e){return function(){return e}}function Xa(e){return+e}var Zp=[0,1];function et(e){return e}function Il(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:SM(isNaN(t)?NaN:.5)}function AM(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function PM(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Il(i,n),a=r(o,a)):(n=Il(n,i),a=r(a,o)),function(s){return a(n(s))}}function _M(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=Il(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=ci(e,s,1,n)-1;return a[l](i[l](s))}}function mi(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Za(){var e=Zp,t=Zp,r=ln,n,i,a,o=et,s,l,u;function c(){var d=Math.min(e.length,t.length);return o!==et&&(o=AM(e[0],e[d-1])),s=d>2?_M:PM,l=u=null,f}function f(d){return d==null||isNaN(d=+d)?a:(l||(l=s(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((u||(u=s(t,e.map(n),Ya)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Xa),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=kl,c()},f.clamp=function(d){return arguments.length?(o=d?!0:et,c()):o!==et},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,p){return n=d,i=p,c()}}function Nl(){return Za()(et,et)}function TM(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ja(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function un(e){return e=Ja(Math.abs(e)),e?e[1]:NaN}function EM(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function $M(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var jM=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bi(e){if(!(t=jM.exec(e)))throw new Error("invalid format: "+e);var t;return new Dl({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]})}bi.prototype=Dl.prototype;function Dl(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+""}Dl.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 CM(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Jp;function MM(e,t){var r=Ja(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(Jp=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Ja(e,Math.max(0,t+a-1))[0]}function Qp(e,t){var r=Ja(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const eh={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:TM,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)=>Qp(e*100,t),r:Qp,s:MM,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function th(e){return e}var rh=Array.prototype.map,nh=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function kM(e){var t=e.grouping===void 0||e.thousands===void 0?th:EM(rh.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?th:$M(rh.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f){f=bi(f);var d=f.fill,p=f.align,g=f.sign,h=f.symbol,v=f.zero,m=f.width,w=f.comma,x=f.precision,S=f.trim,y=f.type;y==="n"?(w=!0,y="g"):eh[y]||(x===void 0&&(x=12),S=!0,y="g"),(v||d==="0"&&p==="=")&&(v=!0,d="0",p="=");var b=h==="$"?r:h==="#"&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",A=h==="$"?n:/[%p]/.test(y)?o:"",T=eh[y],j=/[defgprs%]/.test(y);x=x===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function N(_){var E=b,k=A,M,D,L;if(y==="c")k=T(_)+k,_="";else{_=+_;var F=_<0||1/_<0;if(_=isNaN(_)?l:T(Math.abs(_),x),S&&(_=CM(_)),F&&+_==0&&g!=="+"&&(F=!1),E=(F?g==="("?g:s:g==="-"||g==="("?"":g)+E,k=(y==="s"?nh[8+Jp/3]:"")+k+(F&&g==="("?")":""),j){for(M=-1,D=_.length;++M<D;)if(L=_.charCodeAt(M),48>L||L>57){k=(L===46?i+_.slice(M+1):_.slice(M))+k,_=_.slice(0,M);break}}}w&&!v&&(_=t(_,1/0));var G=E.length+_.length+k.length,U=G<m?new Array(m-G+1).join(d):"";switch(w&&v&&(_=t(U+_,U.length?m-k.length:1/0),U=""),p){case"<":_=E+_+k+U;break;case"=":_=E+U+_+k;break;case"^":_=U.slice(0,G=U.length>>1)+E+_+k+U.slice(G);break;default:_=U+E+_+k;break}return a(_)}return N.toString=function(){return f+""},N}function c(f,d){var p=u((f=bi(f),f.type="f",f)),g=Math.max(-8,Math.min(8,Math.floor(un(d)/3)))*3,h=Math.pow(10,-g),v=nh[8+g/3];return function(m){return p(h*m)+v}}return{format:u,formatPrefix:c}}var Qa,Ll,ih;IM({thousands:",",grouping:[3],currency:["$",""]});function IM(e){return Qa=kM(e),Ll=Qa.format,ih=Qa.formatPrefix,Qa}function NM(e){return Math.max(0,-un(Math.abs(e)))}function DM(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(un(t)/3)))*3-un(Math.abs(e)))}function LM(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,un(t)-un(e))+1}function ah(e,t,r,n){var i=Al(e,t,r),a;switch(n=bi(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=DM(i,o))&&(n.precision=a),ih(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=LM(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=NM(i))&&(n.precision=a-(n.type==="%")*2);break}}return Ll(n)}function sr(e){var t=e.domain;return e.ticks=function(r){var n=t();return Ol(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return ah(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],l,u,c=10;for(s<o&&(u=o,o=s,s=u,u=i,i=a,a=u);c-- >0;){if(u=Sl(o,s,r),u===l)return n[i]=o,n[a]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function eo(){var e=Nl();return e.copy=function(){return mi(e,eo())},gt.apply(e,arguments),sr(e)}function oh(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Xa),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return oh(e).unknown(t)},e=arguments.length?Array.from(e,Xa):[0,1],sr(r)}function sh(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function lh(e){return Math.log(e)}function uh(e){return Math.exp(e)}function RM(e){return-Math.log(-e)}function BM(e){return-Math.exp(-e)}function FM(e){return isFinite(e)?+("1e"+e):e<0?0:e}function zM(e){return e===10?FM:e===Math.E?Math.exp:t=>Math.pow(e,t)}function WM(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 ch(e){return(t,r)=>-e(-t,r)}function Rl(e){const t=e(lh,uh),r=t.domain;let n=10,i,a;function o(){return i=WM(n),a=zM(n),r()[0]<0?(i=ch(i),a=ch(a),e(RM,BM)):e(lh,uh),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let u=l[0],c=l[l.length-1];const f=c<u;f&&([u,c]=[c,u]);let d=i(u),p=i(c),g,h;const v=s==null?10:+s;let m=[];if(!(n%1)&&p-d<v){if(d=Math.floor(d),p=Math.ceil(p),u>0){for(;d<=p;++d)for(g=1;g<n;++g)if(h=d<0?g/a(-d):g*a(d),!(h<u)){if(h>c)break;m.push(h)}}else for(;d<=p;++d)for(g=n-1;g>=1;--g)if(h=d>0?g/a(-d):g*a(d),!(h<u)){if(h>c)break;m.push(h)}m.length*2<v&&(m=Ol(u,c,v))}else m=Ol(d,p,Math.min(p-d,v)).map(a);return f?m.reverse():m},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=bi(l)).precision==null&&(l.trim=!0),l=Ll(l)),s===1/0)return l;const u=Math.max(1,n*s/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*n<n-.5&&(f*=n),f<=u?l(c):""}},t.nice=()=>r(sh(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function fh(){const e=Rl(Za()).domain([1,10]);return e.copy=()=>mi(e,fh()).base(e.base()),gt.apply(e,arguments),e}function dh(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function ph(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Bl(e){var t=1,r=e(dh(t),ph(t));return r.constant=function(n){return arguments.length?e(dh(t=+n),ph(t)):t},sr(r)}function hh(){var e=Bl(Za());return e.copy=function(){return mi(e,hh()).constant(e.constant())},gt.apply(e,arguments)}function vh(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function UM(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function GM(e){return e<0?-e*e:e*e}function Fl(e){var t=e(et,et),r=1;function n(){return r===1?e(et,et):r===.5?e(UM,GM):e(vh(r),vh(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},sr(t)}function zl(){var e=Fl(Za());return e.copy=function(){return mi(e,zl()).exponent(e.exponent())},gt.apply(e,arguments),e}function qM(){return zl.apply(null,arguments).exponent(.5)}function yh(e){return Math.sign(e)*e*e}function KM(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function gh(){var e=Nl(),t=[0,1],r=!1,n;function i(a){var o=KM(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(yh(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Xa)).map(yh)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return gh(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},gt.apply(i,arguments),sr(i)}function mh(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=ZC(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[ci(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(or),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return mh().domain(e).range(t).unknown(n)},gt.apply(a,arguments)}function bh(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[ci(n,l,0,r)]:a}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,s()):i.slice()},o.invertExtent=function(l){var u=i.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return bh().domain([e,t]).range(i).unknown(a)},gt.apply(sr(o),arguments)}function xh(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[ci(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return xh().domain(e).range(t).unknown(r)},gt.apply(i,arguments)}const Wl=new Date,Ul=new Date;function Ue(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let u;do l.push(u=new Date(+a)),t(a,s),e(a);while(u<a&&a<o);return l},i.filter=a=>Ue(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Wl.setTime(+a),Ul.setTime(+o),e(Wl),e(Ul),Math.floor(r(Wl,Ul))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const to=Ue(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);to.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ue(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):to),to.range;const Ht=1e3,mt=Ht*60,Vt=mt*60,Yt=Vt*24,Gl=Yt*7,wh=Yt*30,ql=Yt*365,Tr=Ue(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ht)},(e,t)=>(t-e)/Ht,e=>e.getUTCSeconds());Tr.range;const Kl=Ue(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ht)},(e,t)=>{e.setTime(+e+t*mt)},(e,t)=>(t-e)/mt,e=>e.getMinutes());Kl.range;const Hl=Ue(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*mt)},(e,t)=>(t-e)/mt,e=>e.getUTCMinutes());Hl.range;const Vl=Ue(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ht-e.getMinutes()*mt)},(e,t)=>{e.setTime(+e+t*Vt)},(e,t)=>(t-e)/Vt,e=>e.getHours());Vl.range;const Yl=Ue(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Vt)},(e,t)=>(t-e)/Vt,e=>e.getUTCHours());Yl.range;const xi=Ue(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*mt)/Yt,e=>e.getDate()-1);xi.range;const ro=Ue(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Yt,e=>e.getUTCDate()-1);ro.range;const Oh=Ue(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Yt,e=>Math.floor(e/Yt));Oh.range;function Er(e){return Ue(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*mt)/Gl)}const no=Er(0),io=Er(1),HM=Er(2),VM=Er(3),cn=Er(4),YM=Er(5),XM=Er(6);no.range,io.range,HM.range,VM.range,cn.range,YM.range,XM.range;function $r(e){return Ue(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Gl)}const ao=$r(0),oo=$r(1),ZM=$r(2),JM=$r(3),fn=$r(4),QM=$r(5),ek=$r(6);ao.range,oo.range,ZM.range,JM.range,fn.range,QM.range,ek.range;const Xl=Ue(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());Xl.range;const Zl=Ue(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());Zl.range;const Xt=Ue(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());Xt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ue(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)}),Xt.range;const Zt=Ue(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());Zt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ue(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)}),Zt.range;function Sh(e,t,r,n,i,a){const o=[[Tr,1,Ht],[Tr,5,5*Ht],[Tr,15,15*Ht],[Tr,30,30*Ht],[a,1,mt],[a,5,5*mt],[a,15,15*mt],[a,30,30*mt],[i,1,Vt],[i,3,3*Vt],[i,6,6*Vt],[i,12,12*Vt],[n,1,Yt],[n,2,2*Yt],[r,1,Gl],[t,1,wh],[t,3,3*wh],[e,1,ql]];function s(u,c,f){const d=c<u;d&&([u,c]=[c,u]);const p=f&&typeof f.range=="function"?f:l(u,c,f),g=p?p.range(u,+c+1):[];return d?g.reverse():g}function l(u,c,f){const d=Math.abs(c-u)/f,p=wl(([,,v])=>v).right(o,d);if(p===o.length)return e.every(Al(u/ql,c/ql,f));if(p===0)return to.every(Math.max(Al(u,c,f),1));const[g,h]=o[d/o[p-1][2]<o[p][2]/d?p-1:p];return g.every(h)}return[s,l]}const[tk,rk]=Sh(Zt,Zl,ao,Oh,Yl,Hl),[nk,ik]=Sh(Xt,Xl,no,xi,Vl,Kl);function Jl(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 Ql(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 wi(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function ak(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=Oi(i),c=Si(i),f=Oi(a),d=Si(a),p=Oi(o),g=Si(o),h=Oi(s),v=Si(s),m=Oi(l),w=Si(l),x={a:F,A:G,b:U,B:I,c:null,d:$h,e:$h,f:Ek,g:Rk,G:Fk,H:Pk,I:_k,j:Tk,L:jh,m:$k,M:jk,p:R,q:z,Q:Dh,s:Lh,S:Ck,u:Mk,U:kk,V:Ik,w:Nk,W:Dk,x:null,X:null,y:Lk,Y:Bk,Z:zk,"%":Nh},S={a:H,A:X,b:ee,B:te,c:null,d:Mh,e:Mh,f:qk,g:t2,G:n2,H:Wk,I:Uk,j:Gk,L:kh,m:Kk,M:Hk,p:ie,q:re,Q:Dh,s:Lh,S:Vk,u:Yk,U:Xk,V:Zk,w:Jk,W:Qk,x:null,X:null,y:e2,Y:r2,Z:i2,"%":Nh},y={a:N,A:_,b:E,B:k,c:M,d:Th,e:Th,f:wk,g:_h,G:Ph,H:Eh,I:Eh,j:gk,L:xk,m:yk,M:mk,p:j,q:vk,Q:Sk,s:Ak,S:bk,u:ck,U:fk,V:dk,w:uk,W:pk,x:D,X:L,y:_h,Y:Ph,Z:hk,"%":Ok};x.x=b(r,x),x.X=b(n,x),x.c=b(t,x),S.x=b(r,S),S.X=b(n,S),S.c=b(t,S);function b(W,Y){return function(Q){var C=[],fe=-1,K=0,ye=W.length,Oe,Fe,jt;for(Q instanceof Date||(Q=new Date(+Q));++fe<ye;)W.charCodeAt(fe)===37&&(C.push(W.slice(K,fe)),(Fe=Ah[Oe=W.charAt(++fe)])!=null?Oe=W.charAt(++fe):Fe=Oe==="e"?" ":"0",(jt=Y[Oe])&&(Oe=jt(Q,Fe)),C.push(Oe),K=fe+1);return C.push(W.slice(K,fe)),C.join("")}}function A(W,Y){return function(Q){var C=wi(1900,void 0,1),fe=T(C,W,Q+="",0),K,ye;if(fe!=Q.length)return null;if("Q"in C)return new Date(C.Q);if("s"in C)return new Date(C.s*1e3+("L"in C?C.L:0));if(Y&&!("Z"in C)&&(C.Z=0),"p"in C&&(C.H=C.H%12+C.p*12),C.m===void 0&&(C.m="q"in C?C.q:0),"V"in C){if(C.V<1||C.V>53)return null;"w"in C||(C.w=1),"Z"in C?(K=Ql(wi(C.y,0,1)),ye=K.getUTCDay(),K=ye>4||ye===0?oo.ceil(K):oo(K),K=ro.offset(K,(C.V-1)*7),C.y=K.getUTCFullYear(),C.m=K.getUTCMonth(),C.d=K.getUTCDate()+(C.w+6)%7):(K=Jl(wi(C.y,0,1)),ye=K.getDay(),K=ye>4||ye===0?io.ceil(K):io(K),K=xi.offset(K,(C.V-1)*7),C.y=K.getFullYear(),C.m=K.getMonth(),C.d=K.getDate()+(C.w+6)%7)}else("W"in C||"U"in C)&&("w"in C||(C.w="u"in C?C.u%7:"W"in C?1:0),ye="Z"in C?Ql(wi(C.y,0,1)).getUTCDay():Jl(wi(C.y,0,1)).getDay(),C.m=0,C.d="W"in C?(C.w+6)%7+C.W*7-(ye+5)%7:C.w+C.U*7-(ye+6)%7);return"Z"in C?(C.H+=C.Z/100|0,C.M+=C.Z%100,Ql(C)):Jl(C)}}function T(W,Y,Q,C){for(var fe=0,K=Y.length,ye=Q.length,Oe,Fe;fe<K;){if(C>=ye)return-1;if(Oe=Y.charCodeAt(fe++),Oe===37){if(Oe=Y.charAt(fe++),Fe=y[Oe in Ah?Y.charAt(fe++):Oe],!Fe||(C=Fe(W,Q,C))<0)return-1}else if(Oe!=Q.charCodeAt(C++))return-1}return C}function j(W,Y,Q){var C=u.exec(Y.slice(Q));return C?(W.p=c.get(C[0].toLowerCase()),Q+C[0].length):-1}function N(W,Y,Q){var C=p.exec(Y.slice(Q));return C?(W.w=g.get(C[0].toLowerCase()),Q+C[0].length):-1}function _(W,Y,Q){var C=f.exec(Y.slice(Q));return C?(W.w=d.get(C[0].toLowerCase()),Q+C[0].length):-1}function E(W,Y,Q){var C=m.exec(Y.slice(Q));return C?(W.m=w.get(C[0].toLowerCase()),Q+C[0].length):-1}function k(W,Y,Q){var C=h.exec(Y.slice(Q));return C?(W.m=v.get(C[0].toLowerCase()),Q+C[0].length):-1}function M(W,Y,Q){return T(W,t,Y,Q)}function D(W,Y,Q){return T(W,r,Y,Q)}function L(W,Y,Q){return T(W,n,Y,Q)}function F(W){return o[W.getDay()]}function G(W){return a[W.getDay()]}function U(W){return l[W.getMonth()]}function I(W){return s[W.getMonth()]}function R(W){return i[+(W.getHours()>=12)]}function z(W){return 1+~~(W.getMonth()/3)}function H(W){return o[W.getUTCDay()]}function X(W){return a[W.getUTCDay()]}function ee(W){return l[W.getUTCMonth()]}function te(W){return s[W.getUTCMonth()]}function ie(W){return i[+(W.getUTCHours()>=12)]}function re(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var Y=b(W+="",x);return Y.toString=function(){return W},Y},parse:function(W){var Y=A(W+="",!1);return Y.toString=function(){return W},Y},utcFormat:function(W){var Y=b(W+="",S);return Y.toString=function(){return W},Y},utcParse:function(W){var Y=A(W+="",!0);return Y.toString=function(){return W},Y}}}var Ah={"-":"",_:" ",0:"0"},He=/^\s*\d+/,ok=/^%/,sk=/[\\^$*+?|[\]().{}]/g;function he(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function lk(e){return e.replace(sk,"\\$&")}function Oi(e){return new RegExp("^(?:"+e.map(lk).join("|")+")","i")}function Si(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function uk(e,t,r){var n=He.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function ck(e,t,r){var n=He.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function fk(e,t,r){var n=He.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function dk(e,t,r){var n=He.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function pk(e,t,r){var n=He.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Ph(e,t,r){var n=He.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function _h(e,t,r){var n=He.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function hk(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function vk(e,t,r){var n=He.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function yk(e,t,r){var n=He.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Th(e,t,r){var n=He.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function gk(e,t,r){var n=He.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Eh(e,t,r){var n=He.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function mk(e,t,r){var n=He.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function bk(e,t,r){var n=He.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function xk(e,t,r){var n=He.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function wk(e,t,r){var n=He.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Ok(e,t,r){var n=ok.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Sk(e,t,r){var n=He.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Ak(e,t,r){var n=He.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function $h(e,t){return he(e.getDate(),t,2)}function Pk(e,t){return he(e.getHours(),t,2)}function _k(e,t){return he(e.getHours()%12||12,t,2)}function Tk(e,t){return he(1+xi.count(Xt(e),e),t,3)}function jh(e,t){return he(e.getMilliseconds(),t,3)}function Ek(e,t){return jh(e,t)+"000"}function $k(e,t){return he(e.getMonth()+1,t,2)}function jk(e,t){return he(e.getMinutes(),t,2)}function Ck(e,t){return he(e.getSeconds(),t,2)}function Mk(e){var t=e.getDay();return t===0?7:t}function kk(e,t){return he(no.count(Xt(e)-1,e),t,2)}function Ch(e){var t=e.getDay();return t>=4||t===0?cn(e):cn.ceil(e)}function Ik(e,t){return e=Ch(e),he(cn.count(Xt(e),e)+(Xt(e).getDay()===4),t,2)}function Nk(e){return e.getDay()}function Dk(e,t){return he(io.count(Xt(e)-1,e),t,2)}function Lk(e,t){return he(e.getFullYear()%100,t,2)}function Rk(e,t){return e=Ch(e),he(e.getFullYear()%100,t,2)}function Bk(e,t){return he(e.getFullYear()%1e4,t,4)}function Fk(e,t){var r=e.getDay();return e=r>=4||r===0?cn(e):cn.ceil(e),he(e.getFullYear()%1e4,t,4)}function zk(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+he(t/60|0,"0",2)+he(t%60,"0",2)}function Mh(e,t){return he(e.getUTCDate(),t,2)}function Wk(e,t){return he(e.getUTCHours(),t,2)}function Uk(e,t){return he(e.getUTCHours()%12||12,t,2)}function Gk(e,t){return he(1+ro.count(Zt(e),e),t,3)}function kh(e,t){return he(e.getUTCMilliseconds(),t,3)}function qk(e,t){return kh(e,t)+"000"}function Kk(e,t){return he(e.getUTCMonth()+1,t,2)}function Hk(e,t){return he(e.getUTCMinutes(),t,2)}function Vk(e,t){return he(e.getUTCSeconds(),t,2)}function Yk(e){var t=e.getUTCDay();return t===0?7:t}function Xk(e,t){return he(ao.count(Zt(e)-1,e),t,2)}function Ih(e){var t=e.getUTCDay();return t>=4||t===0?fn(e):fn.ceil(e)}function Zk(e,t){return e=Ih(e),he(fn.count(Zt(e),e)+(Zt(e).getUTCDay()===4),t,2)}function Jk(e){return e.getUTCDay()}function Qk(e,t){return he(oo.count(Zt(e)-1,e),t,2)}function e2(e,t){return he(e.getUTCFullYear()%100,t,2)}function t2(e,t){return e=Ih(e),he(e.getUTCFullYear()%100,t,2)}function r2(e,t){return he(e.getUTCFullYear()%1e4,t,4)}function n2(e,t){var r=e.getUTCDay();return e=r>=4||r===0?fn(e):fn.ceil(e),he(e.getUTCFullYear()%1e4,t,4)}function i2(){return"+0000"}function Nh(){return"%"}function Dh(e){return+e}function Lh(e){return Math.floor(+e/1e3)}var dn,Rh,Bh;a2({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 a2(e){return dn=ak(e),Rh=dn.format,dn.parse,Bh=dn.utcFormat,dn.utcParse,dn}function o2(e){return new Date(e)}function s2(e){return e instanceof Date?+e:+new Date(+e)}function eu(e,t,r,n,i,a,o,s,l,u){var c=Nl(),f=c.invert,d=c.domain,p=u(".%L"),g=u(":%S"),h=u("%I:%M"),v=u("%I %p"),m=u("%a %d"),w=u("%b %d"),x=u("%B"),S=u("%Y");function y(b){return(l(b)<b?p:s(b)<b?g:o(b)<b?h:a(b)<b?v:n(b)<b?i(b)<b?m:w:r(b)<b?x:S)(b)}return c.invert=function(b){return new Date(f(b))},c.domain=function(b){return arguments.length?d(Array.from(b,s2)):d().map(o2)},c.ticks=function(b){var A=d();return e(A[0],A[A.length-1],b??10)},c.tickFormat=function(b,A){return A==null?y:u(A)},c.nice=function(b){var A=d();return(!b||typeof b.range!="function")&&(b=t(A[0],A[A.length-1],b??10)),b?d(sh(A,b)):c},c.copy=function(){return mi(c,eu(e,t,r,n,i,a,o,s,l,u))},c}function l2(){return gt.apply(eu(nk,ik,Xt,Xl,no,xi,Vl,Kl,Tr,Rh).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function u2(){return gt.apply(eu(tk,rk,Zt,Zl,ao,ro,Yl,Hl,Tr,Bh).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function so(){var e=0,t=1,r,n,i,a,o=et,s=!1,l;function u(f){return f==null||isNaN(f=+f)?l:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(o=f,u):o};function c(f){return function(d){var p,g;return arguments.length?([p,g]=d,o=f(p,g),u):[o(0),o(1)]}}return u.range=c(ln),u.rangeRound=c(kl),u.unknown=function(f){return arguments.length?(l=f,u):l},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),u}}function lr(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Fh(){var e=sr(so()(et));return e.copy=function(){return lr(e,Fh())},Kt.apply(e,arguments)}function zh(){var e=Rl(so()).domain([1,10]);return e.copy=function(){return lr(e,zh()).base(e.base())},Kt.apply(e,arguments)}function Wh(){var e=Bl(so());return e.copy=function(){return lr(e,Wh()).constant(e.constant())},Kt.apply(e,arguments)}function tu(){var e=Fl(so());return e.copy=function(){return lr(e,tu()).exponent(e.exponent())},Kt.apply(e,arguments)}function c2(){return tu.apply(null,arguments).exponent(.5)}function Uh(){var e=[],t=et;function r(n){if(n!=null&&!isNaN(n=+n))return t((ci(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(or),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>XC(e,a/n))},r.copy=function(){return Uh(t).domain(e)},Kt.apply(r,arguments)}function lo(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,u=et,c,f=!1,d;function p(h){return isNaN(h=+h)?d:(h=.5+((h=+c(h))-a)*(n*h<n*a?s:l),u(f?Math.max(0,Math.min(1,h)):h))}p.domain=function(h){return arguments.length?([e,t,r]=h,i=c(e=+e),a=c(t=+t),o=c(r=+r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(h){return arguments.length?(f=!!h,p):f},p.interpolator=function(h){return arguments.length?(u=h,p):u};function g(h){return function(v){var m,w,x;return arguments.length?([m,w,x]=v,u=OM(h,[m,w,x]),p):[u(0),u(.5),u(1)]}}return p.range=g(ln),p.rangeRound=g(kl),p.unknown=function(h){return arguments.length?(d=h,p):d},function(h){return c=h,i=h(e),a=h(t),o=h(r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function Gh(){var e=sr(lo()(et));return e.copy=function(){return lr(e,Gh())},Kt.apply(e,arguments)}function qh(){var e=Rl(lo()).domain([.1,1,10]);return e.copy=function(){return lr(e,qh()).base(e.base())},Kt.apply(e,arguments)}function Kh(){var e=Bl(lo());return e.copy=function(){return lr(e,Kh()).constant(e.constant())},Kt.apply(e,arguments)}function ru(){var e=Fl(lo());return e.copy=function(){return lr(e,ru()).exponent(e.exponent())},Kt.apply(e,arguments)}function f2(){return ru.apply(null,arguments).exponent(.5)}const Hh=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:di,scaleDiverging:Gh,scaleDivergingLog:qh,scaleDivergingPow:ru,scaleDivergingSqrt:f2,scaleDivergingSymlog:Kh,scaleIdentity:oh,scaleImplicit:Pl,scaleLinear:eo,scaleLog:fh,scaleOrdinal:_l,scalePoint:pi,scalePow:zl,scaleQuantile:mh,scaleQuantize:bh,scaleRadial:gh,scaleSequential:Fh,scaleSequentialLog:zh,scaleSequentialPow:tu,scaleSequentialQuantile:Uh,scaleSequentialSqrt:c2,scaleSequentialSymlog:Wh,scaleSqrt:qM,scaleSymlog:hh,scaleThreshold:xh,scaleTime:l2,scaleUtc:u2,tickFormat:ah},Symbol.toStringTag,{value:"Module"}));var d2=Wr;function p2(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],o=t(a);if(o!=null&&(s===void 0?o===o&&!d2(o):r(o,s)))var s=o,l=a}return l}var Vh=p2;function h2(e,t){return e>t}var v2=h2,y2=Vh,g2=v2,m2=Qr;function b2(e){return e&&e.length?y2(e,m2,g2):void 0}var x2=b2;const ur=Te(x2);function w2(e,t){return e<t}var O2=w2,S2=Vh,A2=O2,P2=Qr;function _2(e){return e&&e.length?S2(e,P2,A2):void 0}var T2=_2;const uo=Te(T2);var E2=bs,$2=ir,j2=Gd,C2=rt;function M2(e,t){var r=C2(e)?E2:j2;return r(e,$2(t))}var k2=M2,I2=Wd,N2=k2;function D2(e,t){return I2(N2(e,t),1)}var L2=D2;const R2=Te(L2);var B2=il;function F2(e,t){return B2(e,t)}var z2=F2;const jr=Te(z2);var pn=1e9,W2={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},au,Ie=!0,bt="[DecimalError] ",Cr=bt+"Invalid argument: ",nu=bt+"Exponent out of range: ",hn=Math.floor,Mr=Math.pow,U2=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,lt,Ve=1e7,Ce=7,Yh=9007199254740991,co=hn(Yh/Ce),J={};J.absoluteValue=J.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},J.comparedTo=J.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1},J.decimalPlaces=J.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Ce;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r},J.dividedBy=J.div=function(e){return Jt(this,new this.constructor(e))},J.dividedToIntegerBy=J.idiv=function(e){var t=this,r=t.constructor;return Pe(Jt(t,new r(e),0,1),r.precision)},J.equals=J.eq=function(e){return!this.cmp(e)},J.exponent=function(){return Re(this)},J.greaterThan=J.gt=function(e){return this.cmp(e)>0},J.greaterThanOrEqualTo=J.gte=function(e){return this.cmp(e)>=0},J.isInteger=J.isint=function(){return this.e>this.d.length-2},J.isNegative=J.isneg=function(){return this.s<0},J.isPositive=J.ispos=function(){return this.s>0},J.isZero=function(){return this.s===0},J.lessThan=J.lt=function(e){return this.cmp(e)<0},J.lessThanOrEqualTo=J.lte=function(e){return this.cmp(e)<1},J.logarithm=J.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(lt))throw Error(bt+"NaN");if(r.s<1)throw Error(bt+(r.s?"NaN":"-Infinity"));return r.eq(lt)?new n(0):(Ie=!1,t=Jt(Ai(r,a),Ai(e,a),a),Ie=!0,Pe(t,i))},J.minus=J.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Qh(t,e):Xh(t,(e.s=-e.s,e))},J.modulo=J.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(bt+"NaN");return r.s?(Ie=!1,t=Jt(r,e,0,1).times(e),Ie=!0,r.minus(t)):Pe(new n(r),i)},J.naturalExponential=J.exp=function(){return Zh(this)},J.naturalLogarithm=J.ln=function(){return Ai(this)},J.negated=J.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},J.plus=J.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Xh(t,e):Qh(t,(e.s=-e.s,e))},J.precision=J.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Cr+e);if(t=Re(i)+1,n=i.d.length-1,r=n*Ce+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r},J.squareRoot=J.sqrt=function(){var e,t,r,n,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(bt+"NaN")}for(e=Re(s),Ie=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Lt(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=hn((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(Jt(s,a,o+2)).times(.5),Lt(a.d).slice(0,o)===(t=Lt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Pe(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return Ie=!0,Pe(n,r)},J.times=J.mul=function(e){var t,r,n,i,a,o,s,l,u,c=this,f=c.constructor,d=c.d,p=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,l=d.length,u=p.length,l<u&&(a=d,d=p,p=a,o=l,l=u,u=o),a=[],o=l+u,n=o;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+p[n]*d[i-n-1]+t,a[i--]=s%Ve|0,t=s/Ve|0;a[i]=(a[i]+t)%Ve|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Ie?Pe(e,f.precision):e},J.toDecimalPlaces=J.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Dt(e,0,pn),t===void 0?t=n.rounding:Dt(t,0,8),Pe(r,e+Re(r)+1,t))},J.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=kr(n,!0):(Dt(e,0,pn),t===void 0?t=i.rounding:Dt(t,0,8),n=Pe(new i(n),e+1,t),r=kr(n,!0,e+1)),r},J.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?kr(i):(Dt(e,0,pn),t===void 0?t=a.rounding:Dt(t,0,8),n=Pe(new a(i),e+Re(i)+1,t),r=kr(n.abs(),!1,e+Re(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)},J.toInteger=J.toint=function(){var e=this,t=e.constructor;return Pe(new t(e),Re(e)+1,t.rounding)},J.toNumber=function(){return+this},J.toPower=J.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,u=12,c=+(e=new l(e));if(!e.s)return new l(lt);if(s=new l(s),!s.s){if(e.s<1)throw Error(bt+"Infinity");return s}if(s.eq(lt))return s;if(n=l.precision,e.eq(lt))return Pe(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=c<0?-c:c)<=Yh){for(i=new l(lt),t=Math.ceil(n/Ce+4),Ie=!1;r%2&&(i=i.times(s),ev(i.d,t)),r=hn(r/2),r!==0;)s=s.times(s),ev(s.d,t);return Ie=!0,e.s<0?new l(lt).div(i):Pe(i,n)}}else if(a<0)throw Error(bt+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Ie=!1,i=e.times(Ai(s,n+u)),Ie=!0,i=Zh(i),i.s=a,i},J.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Re(i),n=kr(i,r<=a.toExpNeg||r>=a.toExpPos)):(Dt(e,1,pn),t===void 0?t=a.rounding:Dt(t,0,8),i=Pe(new a(i),e,t),r=Re(i),n=kr(i,e<=r||r<=a.toExpNeg,e)),n},J.toSignificantDigits=J.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Dt(e,1,pn),t===void 0?t=n.rounding:Dt(t,0,8)),Pe(new n(r),e,t)},J.toString=J.valueOf=J.val=J.toJSON=J[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Re(e),r=e.constructor;return kr(e,t<=r.toExpNeg||t>=r.toExpPos)};function Xh(e,t){var r,n,i,a,o,s,l,u,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),Ie?Pe(t,f):t;if(l=e.d,u=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,s=u.length):(n=u,i=o,s=l.length),o=Math.ceil(f/Ce),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=l.length,a=u.length,s-a<0&&(a=s,n=u,u=l,l=n),r=0;a;)r=(l[--a]=l[a]+u[a]+r)/Ve|0,l[a]%=Ve;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,Ie?Pe(t,f):t}function Dt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Cr+e)}function Lt(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=Ce-n.length,r&&(a+=cr(r)),a+=n;o=e[t],n=o+"",r=Ce-n.length,r&&(a+=cr(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Jt=function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%Ve|0,o=a/Ve|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,l;if(a!=o)l=a>o?1:-1;else for(s=l=0;s<a;s++)if(n[s]!=i[s]){l=n[s]>i[s]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Ve+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,l,u,c,f,d,p,g,h,v,m,w,x,S,y,b,A,T,j=n.constructor,N=n.s==i.s?1:-1,_=n.d,E=i.d;if(!n.s)return new j(n);if(!i.s)throw Error(bt+"Division by zero");for(l=n.e-i.e,A=E.length,y=_.length,p=new j(N),g=p.d=[],u=0;E[u]==(_[u]||0);)++u;if(E[u]>(_[u]||0)&&--l,a==null?w=a=j.precision:o?w=a+(Re(n)-Re(i))+1:w=a,w<0)return new j(0);if(w=w/Ce+2|0,u=0,A==1)for(c=0,E=E[0],w++;(u<y||c)&&w--;u++)x=c*Ve+(_[u]||0),g[u]=x/E|0,c=x%E|0;else{for(c=Ve/(E[0]+1)|0,c>1&&(E=e(E,c),_=e(_,c),A=E.length,y=_.length),S=A,h=_.slice(0,A),v=h.length;v<A;)h[v++]=0;T=E.slice(),T.unshift(0),b=E[0],E[1]>=Ve/2&&++b;do c=0,s=t(E,h,A,v),s<0?(m=h[0],A!=v&&(m=m*Ve+(h[1]||0)),c=m/b|0,c>1?(c>=Ve&&(c=Ve-1),f=e(E,c),d=f.length,v=h.length,s=t(f,h,d,v),s==1&&(c--,r(f,A<d?T:E,d))):(c==0&&(s=c=1),f=E.slice()),d=f.length,d<v&&f.unshift(0),r(h,f,v),s==-1&&(v=h.length,s=t(E,h,A,v),s<1&&(c++,r(h,A<v?T:E,v))),v=h.length):s===0&&(c++,h=[0]),g[u++]=c,s&&h[0]?h[v++]=_[S]||0:(h=[_[S]],v=1);while((S++<y||h[0]!==void 0)&&w--)}return g[0]||g.shift(),p.e=l,Pe(p,o?a+Re(p)+1:a)}}();function Zh(e,t){var r,n,i,a,o,s,l=0,u=0,c=e.constructor,f=c.precision;if(Re(e)>16)throw Error(nu+Re(e));if(!e.s)return new c(lt);for(Ie=!1,s=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Mr(2,u))/Math.LN10*2+5|0,s+=n,r=i=a=new c(lt),c.precision=s;;){if(i=Pe(i.times(e),s),r=r.times(++l),o=a.plus(Jt(i,r,s)),Lt(o.d).slice(0,s)===Lt(a.d).slice(0,s)){for(;u--;)a=Pe(a.times(a),s);return c.precision=f,t==null?(Ie=!0,Pe(a,f)):a}a=o}}function Re(e){for(var t=e.e*Ce,r=e.d[0];r>=10;r/=10)t++;return t}function iu(e,t,r){if(t>e.LN10.sd())throw Ie=!0,r&&(e.precision=r),Error(bt+"LN10 precision limit exceeded");return Pe(new e(e.LN10),t)}function cr(e){for(var t="";e--;)t+="0";return t}function Ai(e,t){var r,n,i,a,o,s,l,u,c,f=1,d=10,p=e,g=p.d,h=p.constructor,v=h.precision;if(p.s<1)throw Error(bt+(p.s?"NaN":"-Infinity"));if(p.eq(lt))return new h(0);if(t==null?(Ie=!1,u=v):u=t,p.eq(10))return t==null&&(Ie=!0),iu(h,u);if(u+=d,h.precision=u,r=Lt(g),n=r.charAt(0),a=Re(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=Lt(p.d),n=r.charAt(0),f++;a=Re(p),n>1?(p=new h("0."+r),a++):p=new h(n+"."+r.slice(1))}else return l=iu(h,u+2,v).times(a+""),p=Ai(new h(n+"."+r.slice(1)),u-d).plus(l),h.precision=v,t==null?(Ie=!0,Pe(p,v)):p;for(s=o=p=Jt(p.minus(lt),p.plus(lt),u),c=Pe(p.times(p),u),i=3;;){if(o=Pe(o.times(c),u),l=s.plus(Jt(o,new h(i),u)),Lt(l.d).slice(0,u)===Lt(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(iu(h,u+2,v).times(a+""))),s=Jt(s,new h(f),u),h.precision=v,t==null?(Ie=!0,Pe(s,v)):s;s=l,i+=2}}function Jh(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=hn(r/Ce),e.d=[],n=(r+1)%Ce,r<0&&(n+=Ce),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Ce;n<i;)e.d.push(+t.slice(n,n+=Ce));t=t.slice(n),n=Ce-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Ie&&(e.e>co||e.e<-co))throw Error(nu+r)}else e.s=0,e.e=0,e.d=[0];return e}function Pe(e,t,r){var n,i,a,o,s,l,u,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Ce,i=t,u=f[c=0];else{if(c=Math.ceil((n+1)/Ce),a=f.length,c>=a)return e;for(u=a=f[c],o=1;a>=10;a/=10)o++;n%=Ce,i=n-Ce+o}if(r!==void 0&&(a=Mr(10,o-i-1),s=u/a%10|0,l=t<0||f[c+1]!==void 0||u%a,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?u/Mr(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(a=Re(e),f.length=1,t=t-a-1,f[0]=Mr(10,(Ce-t%Ce)%Ce),e.e=hn(-t/Ce)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,a=1,c--):(f.length=c+1,a=Mr(10,Ce-n),f[c]=i>0?(u/Mr(10,o-i)%Mr(10,i)|0)*a:0),l)for(;;)if(c==0){(f[0]+=a)==Ve&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=Ve)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(Ie&&(e.e>co||e.e<-co))throw Error(nu+Re(e));return e}function Qh(e,t){var r,n,i,a,o,s,l,u,c,f,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Ie?Pe(t,p):t;if(l=e.d,f=t.d,n=t.e,u=e.e,l=l.slice(),o=u-n,o){for(c=o<0,c?(r=l,o=-o,s=f.length):(r=f,n=u,s=l.length),i=Math.max(Math.ceil(p/Ce),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=f.length,c=i<s,c&&(s=i),i=0;i<s;i++)if(l[i]!=f[i]){c=l[i]<f[i];break}o=0}for(c&&(r=l,l=f,f=r,t.s=-t.s),s=l.length,i=f.length-s;i>0;--i)l[s++]=0;for(i=f.length;i>o;){if(l[--i]<f[i]){for(a=i;a&&l[--a]===0;)l[a]=Ve-1;--l[a],l[i]+=Ve}l[i]-=f[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,Ie?Pe(t,p):t):new d(0)}function kr(e,t,r){var n,i=Re(e),a=Lt(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+cr(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+cr(-i-1)+a,r&&(n=r-o)>0&&(a+=cr(n))):i>=o?(a+=cr(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+cr(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=cr(n))),e.s<0?"-"+a:a}function ev(e,t){if(e.length>t)return e.length=t,!0}function tv(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Cr+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return Jh(o,a.toString())}else if(typeof a!="string")throw Error(Cr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,U2.test(a))Jh(o,a);else throw Error(Cr+a)}if(i.prototype=J,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=tv,i.config=i.set=G2,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function G2(e){if(!e||typeof e!="object")throw Error(bt+"Object expected");var t,r,n,i=["precision",1,pn,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(hn(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Cr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Cr+r+": "+n);return this}var au=tv(W2);lt=new au(1);const Ae=au;function q2(e){return Y2(e)||V2(e)||H2(e)||K2()}function K2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
58
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H2(e,t){if(e){if(typeof e=="string")return ou(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ou(e,t)}}function V2(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Y2(e){if(Array.isArray(e))return ou(e)}function ou(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var X2=function(t){return t},rv={},nv=function(t){return t===rv},iv=function(t){return function r(){return arguments.length===0||arguments.length===1&&nv(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},Z2=function e(t,r){return t===1?r:iv(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==rv}).length;return o>=t?r.apply(void 0,i):e(t-o,iv(function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var c=i.map(function(f){return nv(f)?l.shift():f});return r.apply(void 0,q2(c).concat(l))}))})},fo=function(t){return Z2(t.length,t)},su=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},J2=fo(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),Q2=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return X2;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,l){return l(s)},a.apply(void 0,arguments))}},lu=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},av=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(s,l){return s===r[l]})||(r=a,n=t.apply(void 0,a)),n}};function eI(e){var t;return e===0?t=1:t=Math.floor(new Ae(e).abs().log(10).toNumber())+1,t}function tI(e,t,r){for(var n=new Ae(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var rI=fo(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),nI=fo(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),iI=fo(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const po={rangeStep:tI,getDigitCount:eI,interpolateNumber:rI,uninterpolateNumber:nI,uninterpolateTruncation:iI};function uu(e){return sI(e)||oI(e)||ov(e)||aI()}function aI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
59
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oI(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function sI(e){if(Array.isArray(e))return cu(e)}function Pi(e,t){return cI(e)||uI(e,t)||ov(e,t)||lI()}function lI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
60
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ov(e,t){if(e){if(typeof e=="string")return cu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cu(e,t)}}function cu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function uI(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,a=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function cI(e){if(Array.isArray(e))return e}function sv(e){var t=Pi(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function lv(e,t,r){if(e.lte(0))return new Ae(0);var n=po.getDigitCount(e.toNumber()),i=new Ae(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new Ae(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?l:new Ae(Math.ceil(l))}function fI(e,t,r){var n=1,i=new Ae(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Ae(10).pow(po.getDigitCount(e)-1),i=new Ae(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Ae(Math.floor(e)))}else e===0?i=new Ae(Math.floor((t-1)/2)):r||(i=new Ae(Math.floor(e)));var o=Math.floor((t-1)/2),s=Q2(J2(function(l){return i.add(new Ae(l-o).mul(n)).toNumber()}),su);return s(0,t)}function uv(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Ae(0),tickMin:new Ae(0),tickMax:new Ae(0)};var a=lv(new Ae(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new Ae(0):(o=new Ae(e).add(t).div(2),o=o.sub(new Ae(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new Ae(t).sub(o).div(a).toNumber()),u=s+l+1;return u>r?uv(e,t,r,n,i+1):(u<r&&(l=t>0?l+(r-u):l,s=t>0?s:s+(r-u)),{step:a,tickMin:o.sub(new Ae(s).mul(a)),tickMax:o.add(new Ae(l).mul(a))})}function dI(e){var t=Pi(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=sv([r,n]),l=Pi(s,2),u=l[0],c=l[1];if(u===-1/0||c===1/0){var f=c===1/0?[u].concat(uu(su(0,i-1).map(function(){return 1/0}))):[].concat(uu(su(0,i-1).map(function(){return-1/0})),[c]);return r>n?lu(f):f}if(u===c)return fI(u,i,a);var d=uv(u,c,o,a),p=d.step,g=d.tickMin,h=d.tickMax,v=po.rangeStep(g,h.add(new Ae(.1).mul(p)),p);return r>n?lu(v):v}function pI(e,t){var r=Pi(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=sv([n,i]),s=Pi(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[n,i];if(l===u)return[l];var c=Math.max(t,2),f=lv(new Ae(u).sub(l).div(c-1),a,0),d=[].concat(uu(po.rangeStep(new Ae(l),new Ae(u).sub(new Ae(.99).mul(f)),f)),[u]);return n>i?lu(d):d}var hI=av(dI),vI=av(pI),yI=process.env.NODE_ENV==="production",fu="Invariant failed";function at(e,t){if(yI)throw new Error(fu);var r=typeof t=="function"?t():t,n=r?"".concat(fu,": ").concat(r):fu;throw new Error(n)}var gI=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function vn(e){"@babel/helpers - typeof";return vn=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},vn(e)}function ho(){return ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ho.apply(this,arguments)}function mI(e,t){return OI(e)||wI(e,t)||xI(e,t)||bI()}function bI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
61
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xI(e,t){if(e){if(typeof e=="string")return cv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cv(e,t)}}function cv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wI(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function OI(e){if(Array.isArray(e))return e}function SI(e,t){if(e==null)return{};var r=AI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function AI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function PI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _I(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pv(n.key),n)}}function TI(e,t,r){return t&&_I(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function EI(e,t,r){return t=vo(t),$I(e,fv()?Reflect.construct(t,r||[],vo(e).constructor):t.apply(e,r))}function $I(e,t){if(t&&(vn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jI(e)}function jI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fv=function(){return!!e})()}function vo(e){return vo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vo(e)}function CI(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&&du(e,t)}function du(e,t){return du=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},du(e,t)}function dv(e,t,r){return t=pv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pv(e){var t=MI(e,"string");return vn(t)=="symbol"?t:t+""}function MI(e,t){if(vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var yn=function(e){function t(){return PI(this,t),EI(this,t,arguments)}return CI(t,e),TI(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,l=n.data,u=n.dataPointFormatter,c=n.xAxis,f=n.yAxis,d=SI(n,gI),p=se(d,!1);this.props.direction==="x"&&c.type!=="number"&&(process.env.NODE_ENV!=="production"?at(!1,'ErrorBar requires Axis type property to be "number".'):at());var g=l.map(function(h){var v=u(h,s),m=v.x,w=v.y,x=v.value,S=v.errorVal;if(!S)return null;var y=[],b,A;if(Array.isArray(S)){var T=mI(S,2);b=T[0],A=T[1]}else b=A=S;if(a==="vertical"){var j=c.scale,N=w+i,_=N+o,E=N-o,k=j(x-b),M=j(x+A);y.push({x1:M,y1:_,x2:M,y2:E}),y.push({x1:k,y1:N,x2:M,y2:N}),y.push({x1:k,y1:_,x2:k,y2:E})}else if(a==="horizontal"){var D=f.scale,L=m+i,F=L-o,G=L+o,U=D(x-b),I=D(x+A);y.push({x1:F,y1:I,x2:G,y2:I}),y.push({x1:L,y1:U,x2:L,y2:I}),y.push({x1:F,y1:U,x2:G,y2:U})}return O.createElement(ve,ho({className:"recharts-errorBar",key:"bar-".concat(y.map(function(R){return"".concat(R.x1,"-").concat(R.x2,"-").concat(R.y1,"-").concat(R.y2)}))},p),y.map(function(R){return O.createElement("line",ho({},R,{key:"line-".concat(R.x1,"-").concat(R.x2,"-").concat(R.y1,"-").concat(R.y2)}))}))});return O.createElement(ve,{className:"recharts-errorBars"},g)}}])}(O.Component);dv(yn,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),dv(yn,"displayName","ErrorBar");function _i(e){"@babel/helpers - typeof";return _i=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},_i(e)}function hv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ir(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hv(Object(r),!0).forEach(function(n){kI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kI(e,t,r){return t=II(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function II(e){var t=NI(e,"string");return _i(t)=="symbol"?t:t+""}function NI(e,t){if(_i(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_i(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vv=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=st(r,tn);if(!o)return null;var s=tn.defaultProps,l=s!==void 0?Ir(Ir({},s),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:a==="children"?u=(n||[]).reduce(function(c,f){var d=f.item,p=f.props,g=p.sectors||p.data||[];return c.concat(g.map(function(h){return{type:o.props.iconType||d.props.legendType,value:h.name,color:h.fill,payload:h}}))},[]):u=(n||[]).map(function(c){var f=c.item,d=f.type.defaultProps,p=d!==void 0?Ir(Ir({},d),f.props):{},g=p.dataKey,h=p.name,v=p.legendType,m=p.hide;return{inactive:m,dataKey:g,type:l.iconType||v||"square",color:hu(f),value:h||g,payload:p}}),Ir(Ir(Ir({},l),tn.getWithHeight(o,i)),{},{payload:u,item:o})};function Ti(e){"@babel/helpers - typeof";return Ti=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},Ti(e)}function yv(e){return BI(e)||RI(e)||LI(e)||DI()}function DI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
62
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LI(e,t){if(e){if(typeof e=="string")return pu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pu(e,t)}}function RI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function BI(e){if(Array.isArray(e))return pu(e)}function pu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gv(Object(r),!0).forEach(function(n){gn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gn(e,t,r){return t=FI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FI(e){var t=zI(e,"string");return Ti(t)=="symbol"?t:t+""}function zI(e,t){if(Ti(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ti(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ge(e,t,r){return oe(e)||oe(t)?r:We(t)?pt(e,t,r):le(t)?t(e):r}function Ei(e,t,r,n){var i=R2(e,function(s){return Ge(s,t)});if(r==="number"){var a=i.filter(function(s){return V(s)||parseFloat(s)});return a.length?[uo(a),ur(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!oe(s)}):i;return o.map(function(s){return We(s)||s instanceof Date?s:""})}var WI=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,u=0;u<s;u++){var c=u>0?i[u-1].coordinate:i[s-1].coordinate,f=i[u].coordinate,d=u>=s-1?i[0].coordinate:i[u+1].coordinate,p=void 0;if(Ot(f-c)!==Ot(d-f)){var g=[];if(Ot(d-f)===Ot(l[1]-l[0])){p=d;var h=f+l[1]-l[0];g[0]=Math.min(h,(h+c)/2),g[1]=Math.max(h,(h+c)/2)}else{p=c;var v=d+l[1]-l[0];g[0]=Math.min(f,(v+f)/2),g[1]=Math.max(f,(v+f)/2)}var m=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>m[0]&&t<=m[1]||t>=g[0]&&t<=g[1]){o=i[u].index;break}}else{var w=Math.min(c,d),x=Math.max(c,d);if(t>(w+f)/2&&t<=(x+f)/2){o=i[u].index;break}}}else for(var S=0;S<s;S++)if(S===0&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S>0&&S<s-1&&t>(n[S].coordinate+n[S-1].coordinate)/2&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S===s-1&&t>(n[S].coordinate+n[S-1].coordinate)/2){o=n[S].index;break}return o},hu=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ne(Ne({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,l;switch(i){case"Line":l=o;break;case"Area":case"Radar":l=o&&o!=="none"?o:s;break;default:l=s;break}return l},UI=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),l=0,u=s.length;l<u;l++)for(var c=a[s[l]].stackGroups,f=Object.keys(c),d=0,p=f.length;d<p;d++){var g=c[f[d]],h=g.items,v=g.cateAxisId,m=h.filter(function(A){return Ut(A.type).indexOf("Bar")>=0});if(m&&m.length){var w=m[0].type.defaultProps,x=w!==void 0?Ne(Ne({},w),m[0].props):m[0].props,S=x.barSize,y=x[v];o[y]||(o[y]=[]);var b=oe(S)?r:S;o[y].push({item:m[0],stackList:m.slice(1),barSize:oe(b)?void 0:Or(b,n,0)})}}return o},GI=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var u=Or(r,i,0,!0),c,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=i/l,g=o.reduce(function(S,y){return S+y.barSize||0},0);g+=(l-1)*u,g>=i&&(g-=(l-1)*u,u=0),g>=i&&p>0&&(d=!0,p*=.9,g=l*p);var h=(i-g)/2>>0,v={offset:h-u,size:0};c=o.reduce(function(S,y){var b={item:y.item,position:{offset:v.offset+v.size+u,size:d?p:y.barSize}},A=[].concat(yv(S),[b]);return v=A[A.length-1].position,y.stackList&&y.stackList.length&&y.stackList.forEach(function(T){A.push({item:T,position:v})}),A},f)}else{var m=Or(n,i,0,!0);i-2*m-(l-1)*u<=0&&(u=0);var w=(i-2*m-(l-1)*u)/l;w>1&&(w>>=0);var x=s===+s?Math.min(w,s):w;c=o.reduce(function(S,y,b){var A=[].concat(yv(S),[{item:y.item,position:{offset:m+(w+u)*b+(w-x)/2,size:x}}]);return y.stackList&&y.stackList.length&&y.stackList.forEach(function(T){A.push({item:T,position:A[A.length-1].position})}),A},f)}return c},qI=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),u=vv({children:a,legendWidth:l});if(u){var c=i||{},f=c.width,d=c.height,p=u.align,g=u.verticalAlign,h=u.layout;if((h==="vertical"||h==="horizontal"&&g==="middle")&&p!=="center"&&V(t[p]))return Ne(Ne({},t),{},gn({},p,t[p]+(f||0)));if((h==="horizontal"||h==="vertical"&&p==="center")&&g!=="middle"&&V(t[g]))return Ne(Ne({},t),{},gn({},g,t[g]+(d||0)))}return t},KI=function(t,r,n){return oe(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},mv=function(t,r,n,i,a){var o=r.props.children,s=nt(o,yn).filter(function(u){return KI(i,a,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,c){var f=Ge(c,n);if(oe(f))return u;var d=Array.isArray(f)?[uo(f),ur(f)]:[f,f],p=l.reduce(function(g,h){var v=Ge(c,h,0),m=d[0]-Math.abs(Array.isArray(v)?v[0]:v),w=d[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(m,g[0]),Math.max(w,g[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},HI=function(t,r,n,i,a){var o=r.map(function(s){return mv(t,s,n,a,i)}).filter(function(s){return!oe(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},bv=function(t,r,n,i,a){var o=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&mv(t,l,u,i)||Ei(t,u,n,a)});if(n==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,u){for(var c=0,f=u.length;c<f;c++)s[u[c]]||(s[u[c]]=!0,l.push(u[c]));return l},[])},xv=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},wv=function(t,r,n,i){if(i)return t.map(function(l){return l.coordinate});var a,o,s=t.map(function(l){return l.coordinate===r&&(a=!0),l.coordinate===n&&(o=!0),l.coordinate});return a||s.push(r),o||s.push(n),s},Qt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/l:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Ot(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var d=a?a.indexOf(f):f;return{coordinate:i(d)+u,value:f,offset:u}});return c.filter(function(f){return!Hr(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+u,value:f,index:d,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,d){return{coordinate:i(f)+u,value:a?a[f]:f,index:d,offset:u}})},vu=new WeakMap,yo=function(t,r){if(typeof r!="function")return t;vu.has(t)||vu.set(t,new WeakMap);var n=vu.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},VI=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:di(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:eo(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:pi(),realScaleType:"point"}:a==="category"?{scale:di(),realScaleType:"band"}:{scale:eo(),realScaleType:"linear"};if(br(i)){var l="scale".concat(ga(i));return{scale:(Hh[l]||pi)(),realScaleType:Hh[l]?l:"point"}}return le(i)?{scale:i}:{scale:pi(),realScaleType:"point"}},Ov=1e-4,YI=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-Ov,o=Math.max(i[0],i[1])+Ov,s=t(r[0]),l=t(r[n-1]);(s<a||s>o||l<a||l>o)&&t.domain([r[0],r[n-1]])}},XI=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},ZI=function(t,r){if(!r||r.length!==2||!V(r[0])||!V(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!V(t[0])||t[0]<n)&&(a[0]=n),(!V(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},JI=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var l=Hr(t[s][n][1])?t[s][n][0]:t[s][n][1];l>=0?(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},QI=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=Hr(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},eN={sign:JI,expand:vO,none:Yr,silhouette:yO,wiggle:gO,positive:QI},tN=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=eN[n],o=hO().keys(i).value(function(s,l){return+Ge(s,l,0)}).order(Ws).offset(a);return o(t)},rN=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,l={},u=s.reduce(function(f,d){var p,g=(p=d.type)!==null&&p!==void 0&&p.defaultProps?Ne(Ne({},d.type.defaultProps),d.props):d.props,h=g.stackId,v=g.hide;if(v)return f;var m=g[n],w=f[m]||{hasStack:!1,stackGroups:{}};if(We(h)){var x=w.stackGroups[h]||{numericAxisId:n,cateAxisId:i,items:[]};x.items.push(d),w.hasStack=!0,w.stackGroups[h]=x}else w.stackGroups[wr("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return Ne(Ne({},f),{},gn({},m,w))},l),c={};return Object.keys(u).reduce(function(f,d){var p=u[d];if(p.hasStack){var g={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(h,v){var m=p.stackGroups[v];return Ne(Ne({},h),{},gn({},v,{numericAxisId:n,cateAxisId:i,items:m.items,stackedData:tN(t,m.items,a)}))},g)}return Ne(Ne({},f),{},gn({},d,p))},c)},nN=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var c=hI(u,a,s);return t.domain([uo(c),ur(c)]),{niceTicks:c}}if(a&&i==="number"){var f=t.domain(),d=vI(f,a,s);return{niceTicks:d}}return null};function mn(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!oe(i[t.dataKey])){var s=va(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=Ge(i,oe(o)?t.dataKey:o);return oe(l)?null:t.scale(l)}var Sv=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var l=Ge(o,r.dataKey,r.domain[s]);return oe(l)?null:r.scale(l)-a/2+i},iN=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},aN=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ne(Ne({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(We(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},oN=function(t){return t.reduce(function(r,n){return[uo(n.concat([r[0]]).filter(V)),ur(n.concat([r[1]]).filter(V))]},[1/0,-1/0])},Av=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(u,c){var f=oN(c.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Pv=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,_v=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,yu=function(t,r,n){if(le(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(V(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Pv.test(t[0])){var a=+Pv.exec(t[0])[1];i[0]=r[0]-a}else le(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(V(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(_v.test(t[1])){var o=+_v.exec(t[1])[1];i[1]=r[1]+o}else le(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},go=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=ul(r,function(f){return f.coordinate}),o=1/0,s=1,l=a.length;s<l;s++){var u=a[s],c=a[s-1];o=Math.min((u.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},Tv=function(t,r,n){return!t||!t.length||jr(t,pt(n,"type.defaultProps.domain"))?r:t},Ev=function(t,r){var n=t.type.defaultProps?Ne(Ne({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,l=n.tooltipType,u=n.chartType,c=n.hide;return Ne(Ne({},se(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:hu(t),value:Ge(r,i),type:l,payload:r,chartType:u,hide:c})};function $i(e){"@babel/helpers - typeof";return $i=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},$i(e)}function $v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$v(Object(r),!0).forEach(function(n){sN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$v(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sN(e,t,r){return t=lN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lN(e){var t=uN(e,"string");return $i(t)=="symbol"?t:t+""}function uN(e,t){if($i(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($i(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mo=Math.PI/180,cN=function(t){return t*180/Math.PI},Ye=function(t,r,n,i){return{x:t+Math.cos(-mo*i)*n,y:r+Math.sin(-mo*i)*n}},fN=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},dN=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=fN({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var l=(n-a)/s,u=Math.acos(l);return i>o&&(u=2*Math.PI-u),{radius:s,angle:cN(u),angleInRadian:u}},pN=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},hN=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},Cv=function(t,r){var n=t.x,i=t.y,a=dN({x:n,y:i},r),o=a.radius,s=a.angle,l=r.innerRadius,u=r.outerRadius;if(o<l||o>u)return!1;if(o===0)return!0;var c=pN(r),f=c.startAngle,d=c.endAngle,p=s,g;if(f<=d){for(;p>d;)p-=360;for(;p<f;)p+=360;g=p>=f&&p<=d}else{for(;p>f;)p-=360;for(;p<d;)p+=360;g=p>=d&&p<=f}return g?jv(jv({},r),{},{radius:o,angle:hN(p,r)}):null};function ji(e){"@babel/helpers - typeof";return ji=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},ji(e)}var vN=["offset"];function yN(e){return xN(e)||bN(e)||mN(e)||gN()}function gN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
63
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mN(e,t){if(e){if(typeof e=="string")return gu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gu(e,t)}}function bN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xN(e){if(Array.isArray(e))return gu(e)}function gu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wN(e,t){if(e==null)return{};var r=ON(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ON(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Mv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mv(Object(r),!0).forEach(function(n){SN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SN(e,t,r){return t=AN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AN(e){var t=PN(e,"string");return ji(t)=="symbol"?t:t+""}function PN(e,t){if(ji(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ji(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ci(){return Ci=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ci.apply(this,arguments)}var _N=function(t){var r=t.value,n=t.formatter,i=oe(t.children)?r:t.children;return le(n)?n(i):i},TN=function(t,r){var n=Ot(r-t),i=Math.min(Math.abs(r-t),360);return n*i},EN=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,l=a,u=l.cx,c=l.cy,f=l.innerRadius,d=l.outerRadius,p=l.startAngle,g=l.endAngle,h=l.clockWise,v=(f+d)/2,m=TN(p,g),w=m>=0?1:-1,x,S;i==="insideStart"?(x=p+w*o,S=h):i==="insideEnd"?(x=g-w*o,S=!h):i==="end"&&(x=g+w*o,S=h),S=m<=0?S:!S;var y=Ye(u,c,v,x),b=Ye(u,c,v,x+(S?1:-1)*359),A="M".concat(y.x,",").concat(y.y,`
64
- A`).concat(v,",").concat(v,",0,1,").concat(S?0:1,`,
65
- `).concat(b.x,",").concat(b.y),T=oe(t.id)?wr("recharts-radial-line-"):t.id;return O.createElement("text",Ci({},n,{dominantBaseline:"central",className:ce("recharts-radial-bar-label",s)}),O.createElement("defs",null,O.createElement("path",{id:T,d:A})),O.createElement("textPath",{xlinkHref:"#".concat(T)},r))},$N=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,l=a.innerRadius,u=a.outerRadius,c=a.startAngle,f=a.endAngle,d=(c+f)/2;if(i==="outside"){var p=Ye(o,s,u+n,d),g=p.x,h=p.y;return{x:g,y:h,textAnchor:g>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var v=(l+u)/2,m=Ye(o,s,v,d),w=m.x,x=m.y;return{x:w,y:x,textAnchor:"middle",verticalAnchor:"middle"}},jN=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,l=o.y,u=o.width,c=o.height,f=c>=0?1:-1,d=f*i,p=f>0?"end":"start",g=f>0?"start":"end",h=u>=0?1:-1,v=h*i,m=h>0?"end":"start",w=h>0?"start":"end";if(a==="top"){var x={x:s+u/2,y:l-f*i,textAnchor:"middle",verticalAnchor:p};return qe(qe({},x),n?{height:Math.max(l-n.y,0),width:u}:{})}if(a==="bottom"){var S={x:s+u/2,y:l+c+d,textAnchor:"middle",verticalAnchor:g};return qe(qe({},S),n?{height:Math.max(n.y+n.height-(l+c),0),width:u}:{})}if(a==="left"){var y={x:s-v,y:l+c/2,textAnchor:m,verticalAnchor:"middle"};return qe(qe({},y),n?{width:Math.max(y.x-n.x,0),height:c}:{})}if(a==="right"){var b={x:s+u+v,y:l+c/2,textAnchor:w,verticalAnchor:"middle"};return qe(qe({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:c}:{})}var A=n?{width:u,height:c}:{};return a==="insideLeft"?qe({x:s+v,y:l+c/2,textAnchor:w,verticalAnchor:"middle"},A):a==="insideRight"?qe({x:s+u-v,y:l+c/2,textAnchor:m,verticalAnchor:"middle"},A):a==="insideTop"?qe({x:s+u/2,y:l+d,textAnchor:"middle",verticalAnchor:g},A):a==="insideBottom"?qe({x:s+u/2,y:l+c-d,textAnchor:"middle",verticalAnchor:p},A):a==="insideTopLeft"?qe({x:s+v,y:l+d,textAnchor:w,verticalAnchor:g},A):a==="insideTopRight"?qe({x:s+u-v,y:l+d,textAnchor:m,verticalAnchor:g},A):a==="insideBottomLeft"?qe({x:s+v,y:l+c-d,textAnchor:w,verticalAnchor:p},A):a==="insideBottomRight"?qe({x:s+u-v,y:l+c-d,textAnchor:m,verticalAnchor:p},A):Ur(a)&&(V(a.x)||xr(a.x))&&(V(a.y)||xr(a.y))?qe({x:s+Or(a.x,u),y:l+Or(a.y,c),textAnchor:"end",verticalAnchor:"end"},A):qe({x:s+u/2,y:l+c/2,textAnchor:"middle",verticalAnchor:"middle"},A)},CN=function(t){return"cx"in t&&V(t.cx)};function Ze(e){var t=e.offset,r=t===void 0?5:t,n=wN(e,vN),i=qe({offset:r},n),a=i.viewBox,o=i.position,s=i.value,l=i.children,u=i.content,c=i.className,f=c===void 0?"":c,d=i.textBreakAll;if(!a||oe(s)&&oe(l)&&!O.isValidElement(u)&&!le(u))return null;if(O.isValidElement(u))return O.cloneElement(u,i);var p;if(le(u)){if(p=O.createElement(u,i),O.isValidElement(p))return p}else p=_N(i);var g=CN(a),h=se(i,!0);if(g&&(o==="insideStart"||o==="insideEnd"||o==="end"))return EN(i,p,h);var v=g?$N(i):jN(i);return O.createElement(Ua,Ci({className:ce("recharts-label",f)},h,v,{breakAll:d}),p)}Ze.displayName="Label";var kv=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,c=t.outerRadius,f=t.x,d=t.y,p=t.top,g=t.left,h=t.width,v=t.height,m=t.clockWise,w=t.labelViewBox;if(w)return w;if(V(h)&&V(v)){if(V(f)&&V(d))return{x:f,y:d,width:h,height:v};if(V(p)&&V(g))return{x:p,y:g,width:h,height:v}}return V(f)&&V(d)?{x:f,y:d,width:0,height:0}:V(r)&&V(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:c||l||s||0,clockWise:m}:t.viewBox?t.viewBox:{}},MN=function(t,r){return t?t===!0?O.createElement(Ze,{key:"label-implicit",viewBox:r}):We(t)?O.createElement(Ze,{key:"label-implicit",viewBox:r,value:t}):O.isValidElement(t)?t.type===Ze?O.cloneElement(t,{key:"label-implicit",viewBox:r}):O.createElement(Ze,{key:"label-implicit",content:t,viewBox:r}):le(t)?O.createElement(Ze,{key:"label-implicit",content:t,viewBox:r}):Ur(t)?O.createElement(Ze,Ci({viewBox:r},t,{key:"label-implicit"})):null:null},kN=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=kv(t),o=nt(i,Ze).map(function(l,u){return O.cloneElement(l,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var s=MN(t.label,r||a);return[s].concat(yN(o))};Ze.parseViewBox=kv,Ze.renderCallByParent=kN;function IN(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var NN=IN;const DN=Te(NN);function Mi(e){"@babel/helpers - typeof";return Mi=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},Mi(e)}var LN=["valueAccessor"],RN=["data","dataKey","clockWise","id","textBreakAll"];function BN(e){return UN(e)||WN(e)||zN(e)||FN()}function FN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
66
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zN(e,t){if(e){if(typeof e=="string")return mu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mu(e,t)}}function WN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UN(e){if(Array.isArray(e))return mu(e)}function mu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bo.apply(this,arguments)}function Iv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Iv(Object(r),!0).forEach(function(n){GN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Iv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GN(e,t,r){return t=qN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qN(e){var t=KN(e,"string");return Mi(t)=="symbol"?t:t+""}function KN(e,t){if(Mi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dv(e,t){if(e==null)return{};var r=HN(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function HN(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var VN=function(t){return Array.isArray(t.value)?DN(t.value):t.value};function Rt(e){var t=e.valueAccessor,r=t===void 0?VN:t,n=Dv(e,LN),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,u=Dv(n,RN);return!i||!i.length?null:O.createElement(ve,{className:"recharts-label-list"},i.map(function(c,f){var d=oe(a)?r(c,f):Ge(c&&c.payload,a),p=oe(s)?{}:{id:"".concat(s,"-").concat(f)};return O.createElement(Ze,bo({},se(c,!0),u,p,{parentViewBox:c.parentViewBox,value:d,textBreakAll:l,viewBox:Ze.parseViewBox(oe(o)?c:Nv(Nv({},c),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}Rt.displayName="LabelList";function YN(e,t){return e?e===!0?O.createElement(Rt,{key:"labelList-implicit",data:t}):O.isValidElement(e)||le(e)?O.createElement(Rt,{key:"labelList-implicit",data:t,content:e}):Ur(e)?O.createElement(Rt,bo({data:t},e,{key:"labelList-implicit"})):null:null}function XN(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=nt(n,Rt).map(function(o,s){return O.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=YN(e.label,t);return[a].concat(BN(i))}Rt.renderCallByParent=XN;function ki(e){"@babel/helpers - typeof";return ki=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},ki(e)}function bu(){return bu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bu.apply(this,arguments)}function Lv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lv(Object(r),!0).forEach(function(n){ZN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZN(e,t,r){return t=JN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JN(e){var t=QN(e,"string");return ki(t)=="symbol"?t:t+""}function QN(e,t){if(ki(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ki(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eD=function(t,r){var n=Ot(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},xo=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,u=t.cornerIsExternal,c=l*(s?1:-1)+i,f=Math.asin(l/c)/mo,d=u?a:a+o*f,p=Ye(r,n,c,d),g=Ye(r,n,i,d),h=u?a-o*f:a,v=Ye(r,n,c*Math.cos(f*mo),h);return{center:p,circleTangency:g,lineTangency:v,theta:f}},Bv=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,l=eD(o,s),u=o+l,c=Ye(r,n,a,o),f=Ye(r,n,a,u),d="M ".concat(c.x,",").concat(c.y,`
67
- A `).concat(a,",").concat(a,`,0,
55
+ height and width.`,M,E,o,l,c,f,r);var F=!Array.isArray(h)&&Xt(h.type).endsWith("Chart");return S.Children.map(h,function(U){return S.isValidElement(U)?S.cloneElement(U,ao({width:M,height:E},F?{style:ao({height:"100%",width:"100%",maxHeight:E,maxWidth:M},U.props.style)}:{})):U})},[r,h,l,d,f,c,$,o]);return S.createElement("div",{id:v?"".concat(v):void 0,className:pe("recharts-responsive-container",g),style:ao(ao({},A),{},{width:o,height:l,minWidth:c,minHeight:f,maxHeight:d}),ref:m},j)}),zl=function(t){return null};zl.displayName="Cell";function ma(e){"@babel/helpers - typeof";return ma=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},ma(e)}function Uh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Gl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uh(Object(r),!0).forEach(function(n){QC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QC(e,t,r){return t=eM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eM(e){var t=tM(e,"string");return ma(t)=="symbol"?t:t+""}function tM(e,t){if(ma(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ma(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yn={widthCache:{},cacheCount:0},rM=2e3,nM={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},zh="recharts_measurement_span";function aM(e){var t=Gl({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var ga=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||dr.isSsr)return{width:0,height:0};var n=aM(r),a=JSON.stringify({text:t,copyStyle:n});if(yn.widthCache[a])return yn.widthCache[a];try{var i=document.getElementById(zh);i||(i=document.createElement("span"),i.setAttribute("id",zh),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=Gl(Gl({},nM),n);Object.assign(i.style,o),i.textContent="".concat(t);var s=i.getBoundingClientRect(),l={width:s.width,height:s.height};return yn.widthCache[a]=l,++yn.cacheCount>rM&&(yn.cacheCount=0,yn.widthCache={}),l}catch{return{width:0,height:0}}},iM=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ba(e){"@babel/helpers - typeof";return ba=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},ba(e)}function io(e,t){return uM(e)||lM(e,t)||sM(e,t)||oM()}function oM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
56
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sM(e,t){if(e){if(typeof e=="string")return Gh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gh(e,t)}}function Gh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function lM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}function uM(e){if(Array.isArray(e))return e}function cM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dM(n.key),n)}}function fM(e,t,r){return t&&qh(e.prototype,t),r&&qh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dM(e){var t=hM(e,"string");return ba(t)=="symbol"?t:t+""}function hM(e,t){if(ba(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ba(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Kh=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Vh=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,pM=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,vM=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Hh={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},yM=Object.keys(Hh),mn="NaN";function mM(e,t){return e*Hh[t]}var oo=function(){function e(t,r){cM(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!pM.test(r)&&(this.num=NaN,this.unit=""),yM.includes(r)&&(this.num=mM(t,r),this.unit="px")}return fM(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.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(r){var n,a=(n=vM.exec(r))!==null&&n!==void 0?n:[],i=io(a,3),o=i[1],s=i[2];return new e(parseFloat(o),s??"")}}])}();function Yh(e){if(e.includes(mn))return mn;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Kh.exec(t))!==null&&r!==void 0?r:[],a=io(n,4),i=a[1],o=a[2],s=a[3],l=oo.parse(i??""),u=oo.parse(s??""),c=o==="*"?l.multiply(u):l.divide(u);if(c.isNaN())return mn;t=t.replace(Kh,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,d=(f=Vh.exec(t))!==null&&f!==void 0?f:[],h=io(d,4),y=h[1],p=h[2],v=h[3],g=oo.parse(y??""),O=oo.parse(v??""),x=p==="+"?g.add(O):g.subtract(O);if(x.isNaN())return mn;t=t.replace(Vh,x.toString())}return t}var Xh=/\(([^()]*)\)/;function gM(e){for(var t=e;t.includes("(");){var r=Xh.exec(t),n=io(r,2),a=n[1];t=t.replace(Xh,Yh(a))}return t}function bM(e){var t=e.replace(/\s+/g,"");return t=gM(t),t=Yh(t),t}function xM(e){try{return bM(e)}catch{return mn}}function ql(e){var t=xM(e.slice(5,-1));return t===mn?"":t}var wM=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],OM=["dx","dy","angle","className","breakAll"];function Kl(){return Kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kl.apply(this,arguments)}function Jh(e,t){if(e==null)return{};var r=SM(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function SM(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Zh(e,t){return _M(e)||PM(e,t)||TM(e,t)||AM()}function AM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TM(e,t){if(e){if(typeof e=="string")return Qh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qh(e,t)}}function Qh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function PM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}function _M(e){if(Array.isArray(e))return e}var ep=/[ \f\n\r\t\v\u2028\u2029]+/,tp=function(t){var r=t.children,n=t.breakAll,a=t.style;try{var i=[];ue(r)||(n?i=r.toString().split(""):i=r.toString().split(ep));var o=i.map(function(l){return{word:l,width:ga(l,a).width}}),s=n?0:ga(" ",a).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},EM=function(t,r,n,a,i){var o=t.maxLines,s=t.children,l=t.style,u=t.breakAll,c=X(o),f=s,d=function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return M.reduce(function(E,F){var U=F.word,k=F.width,N=E[E.length-1];if(N&&(a==null||i||N.width+k+n<Number(a)))N.words.push(U),N.width+=k+n;else{var I={words:[U],width:k};E.push(I)}return E},[])},h=d(r),y=function(M){return M.reduce(function(E,F){return E.width>F.width?E:F})};if(!c)return h;for(var p="…",v=function(M){var E=f.slice(0,M),F=tp({breakAll:u,style:l,children:E+p}).wordsWithComputedWidth,U=d(F),k=U.length>o||y(U).width>Number(a);return[k,U]},g=0,O=f.length-1,x=0,A;g<=O&&x<=f.length-1;){var m=Math.floor((g+O)/2),w=m-1,T=v(w),_=Zh(T,2),$=_[0],R=_[1],P=v(m),j=Zh(P,1),L=j[0];if(!$&&!L&&(g=m+1),$&&L&&(O=m-1),!$&&L){A=R;break}x++}return A||h},rp=function(t){var r=ue(t)?[]:t.toString().split(ep);return[{words:r}]},jM=function(t){var r=t.width,n=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!dr.isSsr){var l,u,c=tp({breakAll:o,children:a,style:i});if(c){var f=c.wordsWithComputedWidth,d=c.spaceWidth;l=f,u=d}else return rp(a);return EM({breakAll:o,children:a,maxLines:s,style:i},l,u,r,n)}return rp(a)},np="#808080",so=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,c=t.scaleToFit,f=c===void 0?!1:c,d=t.textAnchor,h=d===void 0?"start":d,y=t.verticalAnchor,p=y===void 0?"end":y,v=t.fill,g=v===void 0?np:v,O=Jh(t,wM),x=S.useMemo(function(){return jM({breakAll:O.breakAll,children:O.children,maxLines:O.maxLines,scaleToFit:f,style:O.style,width:O.width})},[O.breakAll,O.children,O.maxLines,f,O.style,O.width]),A=O.dx,m=O.dy,w=O.angle,T=O.className,_=O.breakAll,$=Jh(O,OM);if(!Ve(n)||!Ve(i))return null;var R=n+(X(A)?A:0),P=i+(X(m)?m:0),j;switch(p){case"start":j=ql("calc(".concat(u,")"));break;case"middle":j=ql("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:j=ql("calc(".concat(x.length-1," * -").concat(s,")"));break}var L=[];if(f){var B=x[0].width,M=O.width;L.push("scale(".concat((X(M)?M/B:1)/B,")"))}return w&&L.push("rotate(".concat(w,", ").concat(R,", ").concat(P,")")),L.length&&($.transform=L.join(" ")),S.createElement("text",Kl({},fe($,!0),{x:R,y:P,className:pe("recharts-text",T),textAnchor:h,fill:g.includes("url")?np:g}),x.map(function(E,F){var U=E.words.join(_?"":" ");return S.createElement("tspan",{x:R,dy:F===0?j:s,key:"".concat(U,"-").concat(F)},U)}))};function hr(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function $M(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Vl(e){let t,r,n;e.length!==2?(t=hr,r=(s,l)=>hr(e(s),l),n=(s,l)=>e(s)-l):(t=e===hr||e===$M?e:CM,r=e,n=e);function a(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<0?u=f+1:c=f}while(u<c)}return u}function i(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<=0?u=f+1:c=f}while(u<c)}return u}function o(s,l,u=0,c=s.length){const f=a(s,l,u,c-1);return f>u&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:a,center:o,right:i}}function CM(){return 0}function ap(e){return e===null?NaN:+e}function*MM(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const xa=Vl(hr).right;Vl(ap).center;class ip extends Map{constructor(t,r=DM){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,a]of t)this.set(n,a)}get(t){return super.get(op(this,t))}has(t){return super.has(op(this,t))}set(t,r){return super.set(kM(this,t),r)}delete(t){return super.delete(NM(this,t))}}function op({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function kM({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function NM({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function DM(e){return e!==null&&typeof e=="object"?e.valueOf():e}function IM(e=hr){if(e===hr)return sp;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function sp(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const LM=Math.sqrt(50),RM=Math.sqrt(10),BM=Math.sqrt(2);function lo(e,t,r){const n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),i=n/Math.pow(10,a),o=i>=LM?10:i>=RM?5:i>=BM?2:1;let s,l,u;return a<0?(u=Math.pow(10,-a)/o,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,a)*o,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=r&&r<2?lo(e,t,r*2):[s,l,u]}function Hl(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[a,i,o]=n?lo(t,e,r):lo(e,t,r);if(!(i>=a))return[];const s=i-a+1,l=new Array(s);if(n)if(o<0)for(let u=0;u<s;++u)l[u]=(i-u)/-o;else for(let u=0;u<s;++u)l[u]=(i-u)*o;else if(o<0)for(let u=0;u<s;++u)l[u]=(a+u)/-o;else for(let u=0;u<s;++u)l[u]=(a+u)*o;return l}function Yl(e,t,r){return t=+t,e=+e,r=+r,lo(e,t,r)[2]}function Xl(e,t,r){t=+t,e=+e,r=+r;const n=t<e,a=n?Yl(t,e,r):Yl(e,t,r);return(n?-1:1)*(a<0?1/-a:a)}function lp(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function up(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function cp(e,t,r=0,n=1/0,a){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(a=a===void 0?sp:IM(a);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(l-f)/l)*(u-l/2<0?-1:1),h=Math.max(r,Math.floor(t-u*f/l+d)),y=Math.min(n,Math.floor(t+(l-u)*f/l+d));cp(e,t,h,y,a)}const i=e[t];let o=r,s=n;for(wa(e,r,t),a(e[n],i)>0&&wa(e,r,n);o<s;){for(wa(e,o,s),++o,--s;a(e[o],i)<0;)++o;for(;a(e[s],i)>0;)--s}a(e[r],i)===0?wa(e,r,s):(++s,wa(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function wa(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function FM(e,t,r){if(e=Float64Array.from(MM(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return up(e);if(t>=1)return lp(e);var n,a=(n-1)*t,i=Math.floor(a),o=lp(cp(e,i).subarray(0,i+1)),s=up(e.subarray(i+1));return o+(s-o)*(a-i)}}function WM(e,t,r=ap){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e),s=+r(e[i+1],i+1,e);return o+(s-o)*(a-i)}}function UM(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(a);++n<a;)i[n]=e+n*r;return i}function At(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Qt(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 Jl=Symbol("implicit");function Zl(){var e=new ip,t=[],r=[],n=Jl;function a(i){let o=e.get(i);if(o===void 0){if(n!==Jl)return n;e.set(i,o=t.push(i)-1)}return r[o%r.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new ip;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(r=Array.from(i),a):r.slice()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return Zl(t,r).unknown(n)},At.apply(a,arguments),a}function Oa(){var e=Zl().unknown(void 0),t=e.domain,r=e.range,n=0,a=1,i,o,s=!1,l=0,u=0,c=.5;delete e.unknown;function f(){var d=t().length,h=a<n,y=h?a:n,p=h?n:a;i=(p-y)/Math.max(1,d-l+u*2),s&&(i=Math.floor(i)),y+=(p-y-i*(d-l))*c,o=i*(1-l),s&&(y=Math.round(y),o=Math.round(o));var v=UM(d).map(function(g){return y+i*g});return r(h?v.reverse():v)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,a]=d,n=+n,a=+a,f()):[n,a]},e.rangeRound=function(d){return[n,a]=d,n=+n,a=+a,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(d){return arguments.length?(s=!!d,f()):s},e.padding=function(d){return arguments.length?(l=Math.min(1,u=+d),f()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),f()):l},e.paddingOuter=function(d){return arguments.length?(u=+d,f()):u},e.align=function(d){return arguments.length?(c=Math.max(0,Math.min(1,d)),f()):c},e.copy=function(){return Oa(t(),[n,a]).round(s).paddingInner(l).paddingOuter(u).align(c)},At.apply(f(),arguments)}function fp(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return fp(t())},e}function Sa(){return fp(Oa.apply(null,arguments).paddingInner(1))}function Ql(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function dp(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Aa(){}var Ta=.7,uo=1/Ta,gn="\\s*([+-]?\\d+)\\s*",Pa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ut="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zM=/^#([0-9a-f]{3,8})$/,GM=new RegExp(`^rgb\\(${gn},${gn},${gn}\\)$`),qM=new RegExp(`^rgb\\(${Ut},${Ut},${Ut}\\)$`),KM=new RegExp(`^rgba\\(${gn},${gn},${gn},${Pa}\\)$`),VM=new RegExp(`^rgba\\(${Ut},${Ut},${Ut},${Pa}\\)$`),HM=new RegExp(`^hsl\\(${Pa},${Ut},${Ut}\\)$`),YM=new RegExp(`^hsla\\(${Pa},${Ut},${Ut},${Pa}\\)$`),hp={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};Ql(Aa,_a,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:pp,formatHex:pp,formatHex8:XM,formatHsl:JM,formatRgb:vp,toString:vp});function pp(){return this.rgb().formatHex()}function XM(){return this.rgb().formatHex8()}function JM(){return xp(this).formatHsl()}function vp(){return this.rgb().formatRgb()}function _a(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=zM.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?yp(t):r===3?new ct(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?co(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?co(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=GM.exec(e))?new ct(t[1],t[2],t[3],1):(t=qM.exec(e))?new ct(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=KM.exec(e))?co(t[1],t[2],t[3],t[4]):(t=VM.exec(e))?co(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=HM.exec(e))?bp(t[1],t[2]/100,t[3]/100,1):(t=YM.exec(e))?bp(t[1],t[2]/100,t[3]/100,t[4]):hp.hasOwnProperty(e)?yp(hp[e]):e==="transparent"?new ct(NaN,NaN,NaN,0):null}function yp(e){return new ct(e>>16&255,e>>8&255,e&255,1)}function co(e,t,r,n){return n<=0&&(e=t=r=NaN),new ct(e,t,r,n)}function ZM(e){return e instanceof Aa||(e=_a(e)),e?(e=e.rgb(),new ct(e.r,e.g,e.b,e.opacity)):new ct}function eu(e,t,r,n){return arguments.length===1?ZM(e):new ct(e,t,r,n??1)}function ct(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Ql(ct,eu,dp(Aa,{brighter(e){return e=e==null?uo:Math.pow(uo,e),new ct(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ta:Math.pow(Ta,e),new ct(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ct(kr(this.r),kr(this.g),kr(this.b),fo(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:mp,formatHex:mp,formatHex8:QM,formatRgb:gp,toString:gp}));function mp(){return`#${Nr(this.r)}${Nr(this.g)}${Nr(this.b)}`}function QM(){return`#${Nr(this.r)}${Nr(this.g)}${Nr(this.b)}${Nr((isNaN(this.opacity)?1:this.opacity)*255)}`}function gp(){const e=fo(this.opacity);return`${e===1?"rgb(":"rgba("}${kr(this.r)}, ${kr(this.g)}, ${kr(this.b)}${e===1?")":`, ${e})`}`}function fo(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function kr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Nr(e){return e=kr(e),(e<16?"0":"")+e.toString(16)}function bp(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Mt(e,t,r,n)}function xp(e){if(e instanceof Mt)return new Mt(e.h,e.s,e.l,e.opacity);if(e instanceof Aa||(e=_a(e)),!e)return new Mt;if(e instanceof Mt)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=NaN,s=i-a,l=(i+a)/2;return s?(t===i?o=(r-n)/s+(r<n)*6:r===i?o=(n-t)/s+2:o=(t-r)/s+4,s/=l<.5?i+a:2-i-a,o*=60):s=l>0&&l<1?0:o,new Mt(o,s,l,e.opacity)}function ek(e,t,r,n){return arguments.length===1?xp(e):new Mt(e,t,r,n??1)}function Mt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Ql(Mt,ek,dp(Aa,{brighter(e){return e=e==null?uo:Math.pow(uo,e),new Mt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ta:Math.pow(Ta,e),new Mt(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,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new ct(tu(e>=240?e-240:e+120,a,n),tu(e,a,n),tu(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new Mt(wp(this.h),ho(this.s),ho(this.l),fo(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=fo(this.opacity);return`${e===1?"hsl(":"hsla("}${wp(this.h)}, ${ho(this.s)*100}%, ${ho(this.l)*100}%${e===1?")":`, ${e})`}`}}));function wp(e){return e=(e||0)%360,e<0?e+360:e}function ho(e){return Math.max(0,Math.min(1,e||0))}function tu(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const ru=e=>()=>e;function tk(e,t){return function(r){return e+r*t}}function rk(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function nk(e){return(e=+e)==1?Op:function(t,r){return r-t?rk(t,r,e):ru(isNaN(t)?r:t)}}function Op(e,t){var r=t-e;return r?tk(e,r):ru(isNaN(e)?t:e)}const Sp=function e(t){var r=nk(t);function n(a,i){var o=r((a=eu(a)).r,(i=eu(i)).r),s=r(a.g,i.g),l=r(a.b,i.b),u=Op(a.opacity,i.opacity);return function(c){return a.r=o(c),a.g=s(c),a.b=l(c),a.opacity=u(c),a+""}}return n.gamma=e,n}(1);function ak(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),a;return function(i){for(a=0;a<r;++a)n[a]=e[a]*(1-i)+t[a]*i;return n}}function ik(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ok(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,a=new Array(n),i=new Array(r),o;for(o=0;o<n;++o)a[o]=bn(e[o],t[o]);for(;o<r;++o)i[o]=t[o];return function(s){for(o=0;o<n;++o)i[o]=a[o](s);return i}}function sk(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function po(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function lk(e,t){var r={},n={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?r[a]=bn(e[a],t[a]):n[a]=t[a];return function(i){for(a in r)n[a]=r[a](i);return n}}var nu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,au=new RegExp(nu.source,"g");function uk(e){return function(){return e}}function ck(e){return function(t){return e(t)+""}}function fk(e,t){var r=nu.lastIndex=au.lastIndex=0,n,a,i,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=nu.exec(e))&&(a=au.exec(t));)(i=a.index)>r&&(i=t.slice(r,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,l.push({i:o,x:po(n,a)})),r=au.lastIndex;return r<t.length&&(i=t.slice(r),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?ck(l[0].x):uk(t):(t=l.length,function(u){for(var c=0,f;c<t;++c)s[(f=l[c]).i]=f.x(u);return s.join("")})}function bn(e,t){var r=typeof t,n;return t==null||r==="boolean"?ru(t):(r==="number"?po:r==="string"?(n=_a(t))?(t=n,Sp):fk:t instanceof _a?Sp:t instanceof Date?sk:ik(t)?ak:Array.isArray(t)?ok:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?lk:po)(e,t)}function iu(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function dk(e,t){t===void 0&&(t=e,e=bn);for(var r=0,n=t.length-1,a=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(a,a=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return i[s](o-s)}}function hk(e){return function(){return e}}function vo(e){return+e}var Ap=[0,1];function ot(e){return e}function ou(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:hk(isNaN(t)?NaN:.5)}function pk(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function vk(e,t,r){var n=e[0],a=e[1],i=t[0],o=t[1];return a<n?(n=ou(a,n),i=r(o,i)):(n=ou(n,a),i=r(i,o)),function(s){return i(n(s))}}function yk(e,t,r){var n=Math.min(e.length,t.length)-1,a=new Array(n),i=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)a[o]=ou(e[o],e[o+1]),i[o]=r(t[o],t[o+1]);return function(s){var l=xa(e,s,1,n)-1;return i[l](a[l](s))}}function Ea(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function yo(){var e=Ap,t=Ap,r=bn,n,a,i,o=ot,s,l,u;function c(){var d=Math.min(e.length,t.length);return o!==ot&&(o=pk(e[0],e[d-1])),s=d>2?yk:vk,l=u=null,f}function f(d){return d==null||isNaN(d=+d)?i:(l||(l=s(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(a((u||(u=s(t,e.map(n),po)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,vo),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=iu,c()},f.clamp=function(d){return arguments.length?(o=d?!0:ot,c()):o!==ot},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(i=d,f):i},function(d,h){return n=d,a=h,c()}}function su(){return yo()(ot,ot)}function mk(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function mo(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function xn(e){return e=mo(Math.abs(e)),e?e[1]:NaN}function gk(e,t){return function(r,n){for(var a=r.length,i=[],o=0,s=e[0],l=0;a>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),i.push(r.substring(a-=s,a+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function bk(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var xk=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ja(e){if(!(t=xk.exec(e)))throw new Error("invalid format: "+e);var t;return new lu({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]})}ja.prototype=lu.prototype;function lu(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+""}lu.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 wk(e){e:for(var t=e.length,r=1,n=-1,a;r<t;++r)switch(e[r]){case".":n=a=r;break;case"0":n===0&&(n=r),a=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var Tp;function Ok(e,t){var r=mo(e,t);if(!r)return e+"";var n=r[0],a=r[1],i=a-(Tp=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+mo(e,Math.max(0,t+i-1))[0]}function Pp(e,t){var r=mo(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const _p={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:mk,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)=>Pp(e*100,t),r:Pp,s:Ok,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Ep(e){return e}var jp=Array.prototype.map,$p=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Sk(e){var t=e.grouping===void 0||e.thousands===void 0?Ep:gk(jp.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?Ep:bk(jp.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f){f=ja(f);var d=f.fill,h=f.align,y=f.sign,p=f.symbol,v=f.zero,g=f.width,O=f.comma,x=f.precision,A=f.trim,m=f.type;m==="n"?(O=!0,m="g"):_p[m]||(x===void 0&&(x=12),A=!0,m="g"),(v||d==="0"&&h==="=")&&(v=!0,d="0",h="=");var w=p==="$"?r:p==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",T=p==="$"?n:/[%p]/.test(m)?o:"",_=_p[m],$=/[defgprs%]/.test(m);x=x===void 0?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function R(P){var j=w,L=T,B,M,E;if(m==="c")L=_(P)+L,P="";else{P=+P;var F=P<0||1/P<0;if(P=isNaN(P)?l:_(Math.abs(P),x),A&&(P=wk(P)),F&&+P==0&&y!=="+"&&(F=!1),j=(F?y==="("?y:s:y==="-"||y==="("?"":y)+j,L=(m==="s"?$p[8+Tp/3]:"")+L+(F&&y==="("?")":""),$){for(B=-1,M=P.length;++B<M;)if(E=P.charCodeAt(B),48>E||E>57){L=(E===46?a+P.slice(B+1):P.slice(B))+L,P=P.slice(0,B);break}}}O&&!v&&(P=t(P,1/0));var U=j.length+P.length+L.length,k=U<g?new Array(g-U+1).join(d):"";switch(O&&v&&(P=t(k+P,k.length?g-L.length:1/0),k=""),h){case"<":P=j+P+L+k;break;case"=":P=j+k+P+L;break;case"^":P=k.slice(0,U=k.length>>1)+j+P+L+k.slice(U);break;default:P=k+j+P+L;break}return i(P)}return R.toString=function(){return f+""},R}function c(f,d){var h=u((f=ja(f),f.type="f",f)),y=Math.max(-8,Math.min(8,Math.floor(xn(d)/3)))*3,p=Math.pow(10,-y),v=$p[8+y/3];return function(g){return h(p*g)+v}}return{format:u,formatPrefix:c}}var go,uu,Cp;Ak({thousands:",",grouping:[3],currency:["$",""]});function Ak(e){return go=Sk(e),uu=go.format,Cp=go.formatPrefix,go}function Tk(e){return Math.max(0,-xn(Math.abs(e)))}function Pk(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(xn(t)/3)))*3-xn(Math.abs(e)))}function _k(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,xn(t)-xn(e))+1}function Mp(e,t,r,n){var a=Xl(e,t,r),i;switch(n=ja(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=Pk(a,o))&&(n.precision=i),Cp(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=_k(a,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=Tk(a))&&(n.precision=i-(n.type==="%")*2);break}}return uu(n)}function pr(e){var t=e.domain;return e.ticks=function(r){var n=t();return Hl(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var a=t();return Mp(a[0],a[a.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),a=0,i=n.length-1,o=n[a],s=n[i],l,u,c=10;for(s<o&&(u=o,o=s,s=u,u=a,a=i,i=u);c-- >0;){if(u=Yl(o,s,r),u===l)return n[a]=o,n[i]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function bo(){var e=su();return e.copy=function(){return Ea(e,bo())},At.apply(e,arguments),pr(e)}function kp(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,vo),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return kp(e).unknown(t)},e=arguments.length?Array.from(e,vo):[0,1],pr(r)}function Np(e,t){e=e.slice();var r=0,n=e.length-1,a=e[r],i=e[n],o;return i<a&&(o=r,r=n,n=o,o=a,a=i,i=o),e[r]=t.floor(a),e[n]=t.ceil(i),e}function Dp(e){return Math.log(e)}function Ip(e){return Math.exp(e)}function Ek(e){return-Math.log(-e)}function jk(e){return-Math.exp(-e)}function $k(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Ck(e){return e===10?$k:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Mk(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 Lp(e){return(t,r)=>-e(-t,r)}function cu(e){const t=e(Dp,Ip),r=t.domain;let n=10,a,i;function o(){return a=Mk(n),i=Ck(n),r()[0]<0?(a=Lp(a),i=Lp(i),e(Ek,jk)):e(Dp,Ip),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let u=l[0],c=l[l.length-1];const f=c<u;f&&([u,c]=[c,u]);let d=a(u),h=a(c),y,p;const v=s==null?10:+s;let g=[];if(!(n%1)&&h-d<v){if(d=Math.floor(d),h=Math.ceil(h),u>0){for(;d<=h;++d)for(y=1;y<n;++y)if(p=d<0?y/i(-d):y*i(d),!(p<u)){if(p>c)break;g.push(p)}}else for(;d<=h;++d)for(y=n-1;y>=1;--y)if(p=d>0?y/i(-d):y*i(d),!(p<u)){if(p>c)break;g.push(p)}g.length*2<v&&(g=Hl(u,c,v))}else g=Hl(d,h,Math.min(h-d,v)).map(i);return f?g.reverse():g},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=ja(l)).precision==null&&(l.trim=!0),l=uu(l)),s===1/0)return l;const u=Math.max(1,n*s/t.ticks().length);return c=>{let f=c/i(Math.round(a(c)));return f*n<n-.5&&(f*=n),f<=u?l(c):""}},t.nice=()=>r(Np(r(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function Rp(){const e=cu(yo()).domain([1,10]);return e.copy=()=>Ea(e,Rp()).base(e.base()),At.apply(e,arguments),e}function Bp(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Fp(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function fu(e){var t=1,r=e(Bp(t),Fp(t));return r.constant=function(n){return arguments.length?e(Bp(t=+n),Fp(t)):t},pr(r)}function Wp(){var e=fu(yo());return e.copy=function(){return Ea(e,Wp()).constant(e.constant())},At.apply(e,arguments)}function Up(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function kk(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Nk(e){return e<0?-e*e:e*e}function du(e){var t=e(ot,ot),r=1;function n(){return r===1?e(ot,ot):r===.5?e(kk,Nk):e(Up(r),Up(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},pr(t)}function hu(){var e=du(yo());return e.copy=function(){return Ea(e,hu()).exponent(e.exponent())},At.apply(e,arguments),e}function Dk(){return hu.apply(null,arguments).exponent(.5)}function zp(e){return Math.sign(e)*e*e}function Ik(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Gp(){var e=su(),t=[0,1],r=!1,n;function a(i){var o=Ik(e(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return e.invert(zp(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,vo)).map(zp)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return Gp(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},At.apply(a,arguments),pr(a)}function qp(){var e=[],t=[],r=[],n;function a(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=WM(e,o/s);return i}function i(o){return o==null||isNaN(o=+o)?n:t[xa(r,o)]}return i.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},i.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(hr),a()},i.range=function(o){return arguments.length?(t=Array.from(o),a()):t.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.quantiles=function(){return r.slice()},i.copy=function(){return qp().domain(e).range(t).unknown(n)},At.apply(i,arguments)}function Kp(){var e=0,t=1,r=1,n=[.5],a=[0,1],i;function o(l){return l!=null&&l<=l?a[xa(n,l,0,r)]:i}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(r=(a=Array.from(l)).length-1,s()):a.slice()},o.invertExtent=function(l){var u=a.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(l){return arguments.length&&(i=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Kp().domain([e,t]).range(a).unknown(i)},At.apply(pr(o),arguments)}function Vp(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[xa(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return Vp().domain(e).range(t).unknown(r)},At.apply(a,arguments)}const pu=new Date,vu=new Date;function He(e,t,r,n){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const l=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return l;let u;do l.push(u=new Date(+i)),t(i,s),e(i);while(u<i&&i<o);return l},a.filter=i=>He(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),r&&(a.count=(i,o)=>(pu.setTime(+i),vu.setTime(+o),e(pu),e(vu),Math.floor(r(pu,vu))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(n?o=>n(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const xo=He(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);xo.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?He(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):xo),xo.range;const er=1e3,Tt=er*60,tr=Tt*60,rr=tr*24,yu=rr*7,Hp=rr*30,mu=rr*365,Dr=He(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*er)},(e,t)=>(t-e)/er,e=>e.getUTCSeconds());Dr.range;const gu=He(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*er)},(e,t)=>{e.setTime(+e+t*Tt)},(e,t)=>(t-e)/Tt,e=>e.getMinutes());gu.range;const bu=He(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Tt)},(e,t)=>(t-e)/Tt,e=>e.getUTCMinutes());bu.range;const xu=He(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*er-e.getMinutes()*Tt)},(e,t)=>{e.setTime(+e+t*tr)},(e,t)=>(t-e)/tr,e=>e.getHours());xu.range;const wu=He(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*tr)},(e,t)=>(t-e)/tr,e=>e.getUTCHours());wu.range;const $a=He(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Tt)/rr,e=>e.getDate()-1);$a.range;const wo=He(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/rr,e=>e.getUTCDate()-1);wo.range;const Yp=He(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/rr,e=>Math.floor(e/rr));Yp.range;function Ir(e){return He(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Tt)/yu)}const Oo=Ir(0),So=Ir(1),Lk=Ir(2),Rk=Ir(3),wn=Ir(4),Bk=Ir(5),Fk=Ir(6);Oo.range,So.range,Lk.range,Rk.range,wn.range,Bk.range,Fk.range;function Lr(e){return He(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/yu)}const Ao=Lr(0),To=Lr(1),Wk=Lr(2),Uk=Lr(3),On=Lr(4),zk=Lr(5),Gk=Lr(6);Ao.range,To.range,Wk.range,Uk.range,On.range,zk.range,Gk.range;const Ou=He(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());Ou.range;const Su=He(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());Su.range;const nr=He(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());nr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:He(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)}),nr.range;const ar=He(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());ar.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:He(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)}),ar.range;function Xp(e,t,r,n,a,i){const o=[[Dr,1,er],[Dr,5,5*er],[Dr,15,15*er],[Dr,30,30*er],[i,1,Tt],[i,5,5*Tt],[i,15,15*Tt],[i,30,30*Tt],[a,1,tr],[a,3,3*tr],[a,6,6*tr],[a,12,12*tr],[n,1,rr],[n,2,2*rr],[r,1,yu],[t,1,Hp],[t,3,3*Hp],[e,1,mu]];function s(u,c,f){const d=c<u;d&&([u,c]=[c,u]);const h=f&&typeof f.range=="function"?f:l(u,c,f),y=h?h.range(u,+c+1):[];return d?y.reverse():y}function l(u,c,f){const d=Math.abs(c-u)/f,h=Vl(([,,v])=>v).right(o,d);if(h===o.length)return e.every(Xl(u/mu,c/mu,f));if(h===0)return xo.every(Math.max(Xl(u,c,f),1));const[y,p]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return y.every(p)}return[s,l]}const[qk,Kk]=Xp(ar,Su,Ao,Yp,wu,bu),[Vk,Hk]=Xp(nr,Ou,Oo,$a,xu,gu);function Au(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 Tu(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 Ca(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Yk(e){var t=e.dateTime,r=e.date,n=e.time,a=e.periods,i=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=Ma(a),c=ka(a),f=Ma(i),d=ka(i),h=Ma(o),y=ka(o),p=Ma(s),v=ka(s),g=Ma(l),O=ka(l),x={a:F,A:U,b:k,B:N,c:null,d:rv,e:rv,f:g2,g:E2,G:$2,H:v2,I:y2,j:m2,L:nv,m:b2,M:x2,p:I,q:W,Q:uv,s:cv,S:w2,u:O2,U:S2,V:A2,w:T2,W:P2,x:null,X:null,y:_2,Y:j2,Z:C2,"%":lv},A={a:z,A:V,b:Z,B:Q,c:null,d:iv,e:iv,f:D2,g:q2,G:V2,H:M2,I:k2,j:N2,L:ov,m:I2,M:L2,p:ae,q:te,Q:uv,s:cv,S:R2,u:B2,U:F2,V:W2,w:U2,W:z2,x:null,X:null,y:G2,Y:K2,Z:H2,"%":lv},m={a:R,A:P,b:j,B:L,c:B,d:ev,e:ev,f:f2,g:Qp,G:Zp,H:tv,I:tv,j:s2,L:c2,m:o2,M:l2,p:$,q:i2,Q:h2,s:p2,S:u2,u:e2,U:t2,V:r2,w:Qk,W:n2,x:M,X:E,y:Qp,Y:Zp,Z:a2,"%":d2};x.x=w(r,x),x.X=w(n,x),x.c=w(t,x),A.x=w(r,A),A.X=w(n,A),A.c=w(t,A);function w(q,Y){return function(J){var D=[],ie=-1,K=0,ee=q.length,oe,Ce,Te;for(J instanceof Date||(J=new Date(+J));++ie<ee;)q.charCodeAt(ie)===37&&(D.push(q.slice(K,ie)),(Ce=Jp[oe=q.charAt(++ie)])!=null?oe=q.charAt(++ie):Ce=oe==="e"?" ":"0",(Te=Y[oe])&&(oe=Te(J,Ce)),D.push(oe),K=ie+1);return D.push(q.slice(K,ie)),D.join("")}}function T(q,Y){return function(J){var D=Ca(1900,void 0,1),ie=_(D,q,J+="",0),K,ee;if(ie!=J.length)return null;if("Q"in D)return new Date(D.Q);if("s"in D)return new Date(D.s*1e3+("L"in D?D.L:0));if(Y&&!("Z"in D)&&(D.Z=0),"p"in D&&(D.H=D.H%12+D.p*12),D.m===void 0&&(D.m="q"in D?D.q:0),"V"in D){if(D.V<1||D.V>53)return null;"w"in D||(D.w=1),"Z"in D?(K=Tu(Ca(D.y,0,1)),ee=K.getUTCDay(),K=ee>4||ee===0?To.ceil(K):To(K),K=wo.offset(K,(D.V-1)*7),D.y=K.getUTCFullYear(),D.m=K.getUTCMonth(),D.d=K.getUTCDate()+(D.w+6)%7):(K=Au(Ca(D.y,0,1)),ee=K.getDay(),K=ee>4||ee===0?So.ceil(K):So(K),K=$a.offset(K,(D.V-1)*7),D.y=K.getFullYear(),D.m=K.getMonth(),D.d=K.getDate()+(D.w+6)%7)}else("W"in D||"U"in D)&&("w"in D||(D.w="u"in D?D.u%7:"W"in D?1:0),ee="Z"in D?Tu(Ca(D.y,0,1)).getUTCDay():Au(Ca(D.y,0,1)).getDay(),D.m=0,D.d="W"in D?(D.w+6)%7+D.W*7-(ee+5)%7:D.w+D.U*7-(ee+6)%7);return"Z"in D?(D.H+=D.Z/100|0,D.M+=D.Z%100,Tu(D)):Au(D)}}function _(q,Y,J,D){for(var ie=0,K=Y.length,ee=J.length,oe,Ce;ie<K;){if(D>=ee)return-1;if(oe=Y.charCodeAt(ie++),oe===37){if(oe=Y.charAt(ie++),Ce=m[oe in Jp?Y.charAt(ie++):oe],!Ce||(D=Ce(q,J,D))<0)return-1}else if(oe!=J.charCodeAt(D++))return-1}return D}function $(q,Y,J){var D=u.exec(Y.slice(J));return D?(q.p=c.get(D[0].toLowerCase()),J+D[0].length):-1}function R(q,Y,J){var D=h.exec(Y.slice(J));return D?(q.w=y.get(D[0].toLowerCase()),J+D[0].length):-1}function P(q,Y,J){var D=f.exec(Y.slice(J));return D?(q.w=d.get(D[0].toLowerCase()),J+D[0].length):-1}function j(q,Y,J){var D=g.exec(Y.slice(J));return D?(q.m=O.get(D[0].toLowerCase()),J+D[0].length):-1}function L(q,Y,J){var D=p.exec(Y.slice(J));return D?(q.m=v.get(D[0].toLowerCase()),J+D[0].length):-1}function B(q,Y,J){return _(q,t,Y,J)}function M(q,Y,J){return _(q,r,Y,J)}function E(q,Y,J){return _(q,n,Y,J)}function F(q){return o[q.getDay()]}function U(q){return i[q.getDay()]}function k(q){return l[q.getMonth()]}function N(q){return s[q.getMonth()]}function I(q){return a[+(q.getHours()>=12)]}function W(q){return 1+~~(q.getMonth()/3)}function z(q){return o[q.getUTCDay()]}function V(q){return i[q.getUTCDay()]}function Z(q){return l[q.getUTCMonth()]}function Q(q){return s[q.getUTCMonth()]}function ae(q){return a[+(q.getUTCHours()>=12)]}function te(q){return 1+~~(q.getUTCMonth()/3)}return{format:function(q){var Y=w(q+="",x);return Y.toString=function(){return q},Y},parse:function(q){var Y=T(q+="",!1);return Y.toString=function(){return q},Y},utcFormat:function(q){var Y=w(q+="",A);return Y.toString=function(){return q},Y},utcParse:function(q){var Y=T(q+="",!0);return Y.toString=function(){return q},Y}}}var Jp={"-":"",_:" ",0:"0"},Ze=/^\s*\d+/,Xk=/^%/,Jk=/[\\^$*+?|[\]().{}]/g;function ge(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i<r?new Array(r-i+1).join(t)+a:a)}function Zk(e){return e.replace(Jk,"\\$&")}function Ma(e){return new RegExp("^(?:"+e.map(Zk).join("|")+")","i")}function ka(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function Qk(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function e2(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function t2(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function r2(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function n2(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Zp(e,t,r){var n=Ze.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Qp(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function a2(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function i2(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function o2(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function ev(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function s2(e,t,r){var n=Ze.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function tv(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function l2(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function u2(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function c2(e,t,r){var n=Ze.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function f2(e,t,r){var n=Ze.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function d2(e,t,r){var n=Xk.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function h2(e,t,r){var n=Ze.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function p2(e,t,r){var n=Ze.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function rv(e,t){return ge(e.getDate(),t,2)}function v2(e,t){return ge(e.getHours(),t,2)}function y2(e,t){return ge(e.getHours()%12||12,t,2)}function m2(e,t){return ge(1+$a.count(nr(e),e),t,3)}function nv(e,t){return ge(e.getMilliseconds(),t,3)}function g2(e,t){return nv(e,t)+"000"}function b2(e,t){return ge(e.getMonth()+1,t,2)}function x2(e,t){return ge(e.getMinutes(),t,2)}function w2(e,t){return ge(e.getSeconds(),t,2)}function O2(e){var t=e.getDay();return t===0?7:t}function S2(e,t){return ge(Oo.count(nr(e)-1,e),t,2)}function av(e){var t=e.getDay();return t>=4||t===0?wn(e):wn.ceil(e)}function A2(e,t){return e=av(e),ge(wn.count(nr(e),e)+(nr(e).getDay()===4),t,2)}function T2(e){return e.getDay()}function P2(e,t){return ge(So.count(nr(e)-1,e),t,2)}function _2(e,t){return ge(e.getFullYear()%100,t,2)}function E2(e,t){return e=av(e),ge(e.getFullYear()%100,t,2)}function j2(e,t){return ge(e.getFullYear()%1e4,t,4)}function $2(e,t){var r=e.getDay();return e=r>=4||r===0?wn(e):wn.ceil(e),ge(e.getFullYear()%1e4,t,4)}function C2(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ge(t/60|0,"0",2)+ge(t%60,"0",2)}function iv(e,t){return ge(e.getUTCDate(),t,2)}function M2(e,t){return ge(e.getUTCHours(),t,2)}function k2(e,t){return ge(e.getUTCHours()%12||12,t,2)}function N2(e,t){return ge(1+wo.count(ar(e),e),t,3)}function ov(e,t){return ge(e.getUTCMilliseconds(),t,3)}function D2(e,t){return ov(e,t)+"000"}function I2(e,t){return ge(e.getUTCMonth()+1,t,2)}function L2(e,t){return ge(e.getUTCMinutes(),t,2)}function R2(e,t){return ge(e.getUTCSeconds(),t,2)}function B2(e){var t=e.getUTCDay();return t===0?7:t}function F2(e,t){return ge(Ao.count(ar(e)-1,e),t,2)}function sv(e){var t=e.getUTCDay();return t>=4||t===0?On(e):On.ceil(e)}function W2(e,t){return e=sv(e),ge(On.count(ar(e),e)+(ar(e).getUTCDay()===4),t,2)}function U2(e){return e.getUTCDay()}function z2(e,t){return ge(To.count(ar(e)-1,e),t,2)}function G2(e,t){return ge(e.getUTCFullYear()%100,t,2)}function q2(e,t){return e=sv(e),ge(e.getUTCFullYear()%100,t,2)}function K2(e,t){return ge(e.getUTCFullYear()%1e4,t,4)}function V2(e,t){var r=e.getUTCDay();return e=r>=4||r===0?On(e):On.ceil(e),ge(e.getUTCFullYear()%1e4,t,4)}function H2(){return"+0000"}function lv(){return"%"}function uv(e){return+e}function cv(e){return Math.floor(+e/1e3)}var Sn,fv,dv;Y2({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 Y2(e){return Sn=Yk(e),fv=Sn.format,Sn.parse,dv=Sn.utcFormat,Sn.utcParse,Sn}function X2(e){return new Date(e)}function J2(e){return e instanceof Date?+e:+new Date(+e)}function Pu(e,t,r,n,a,i,o,s,l,u){var c=su(),f=c.invert,d=c.domain,h=u(".%L"),y=u(":%S"),p=u("%I:%M"),v=u("%I %p"),g=u("%a %d"),O=u("%b %d"),x=u("%B"),A=u("%Y");function m(w){return(l(w)<w?h:s(w)<w?y:o(w)<w?p:i(w)<w?v:n(w)<w?a(w)<w?g:O:r(w)<w?x:A)(w)}return c.invert=function(w){return new Date(f(w))},c.domain=function(w){return arguments.length?d(Array.from(w,J2)):d().map(X2)},c.ticks=function(w){var T=d();return e(T[0],T[T.length-1],w??10)},c.tickFormat=function(w,T){return T==null?m:u(T)},c.nice=function(w){var T=d();return(!w||typeof w.range!="function")&&(w=t(T[0],T[T.length-1],w??10)),w?d(Np(T,w)):c},c.copy=function(){return Ea(c,Pu(e,t,r,n,a,i,o,s,l,u))},c}function Z2(){return At.apply(Pu(Vk,Hk,nr,Ou,Oo,$a,xu,gu,Dr,fv).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Q2(){return At.apply(Pu(qk,Kk,ar,Su,Ao,wo,wu,bu,Dr,dv).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Po(){var e=0,t=1,r,n,a,i,o=ot,s=!1,l;function u(f){return f==null||isNaN(f=+f)?l:o(a===0?.5:(f=(i(f)-r)*a,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=i(e=+e),n=i(t=+t),a=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(o=f,u):o};function c(f){return function(d){var h,y;return arguments.length?([h,y]=d,o=f(h,y),u):[o(0),o(1)]}}return u.range=c(bn),u.rangeRound=c(iu),u.unknown=function(f){return arguments.length?(l=f,u):l},function(f){return i=f,r=f(e),n=f(t),a=r===n?0:1/(n-r),u}}function vr(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function hv(){var e=pr(Po()(ot));return e.copy=function(){return vr(e,hv())},Qt.apply(e,arguments)}function pv(){var e=cu(Po()).domain([1,10]);return e.copy=function(){return vr(e,pv()).base(e.base())},Qt.apply(e,arguments)}function vv(){var e=fu(Po());return e.copy=function(){return vr(e,vv()).constant(e.constant())},Qt.apply(e,arguments)}function _u(){var e=du(Po());return e.copy=function(){return vr(e,_u()).exponent(e.exponent())},Qt.apply(e,arguments)}function eN(){return _u.apply(null,arguments).exponent(.5)}function yv(){var e=[],t=ot;function r(n){if(n!=null&&!isNaN(n=+n))return t((xa(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let a of n)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(hr),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,a)=>t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>FM(e,i/n))},r.copy=function(){return yv(t).domain(e)},Qt.apply(r,arguments)}function _o(){var e=0,t=.5,r=1,n=1,a,i,o,s,l,u=ot,c,f=!1,d;function h(p){return isNaN(p=+p)?d:(p=.5+((p=+c(p))-i)*(n*p<n*i?s:l),u(f?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t,r]=p,a=c(e=+e),i=c(t=+t),o=c(r=+r),s=a===i?0:.5/(i-a),l=i===o?0:.5/(o-i),n=i<a?-1:1,h):[e,t,r]},h.clamp=function(p){return arguments.length?(f=!!p,h):f},h.interpolator=function(p){return arguments.length?(u=p,h):u};function y(p){return function(v){var g,O,x;return arguments.length?([g,O,x]=v,u=dk(p,[g,O,x]),h):[u(0),u(.5),u(1)]}}return h.range=y(bn),h.rangeRound=y(iu),h.unknown=function(p){return arguments.length?(d=p,h):d},function(p){return c=p,a=p(e),i=p(t),o=p(r),s=a===i?0:.5/(i-a),l=i===o?0:.5/(o-i),n=i<a?-1:1,h}}function mv(){var e=pr(_o()(ot));return e.copy=function(){return vr(e,mv())},Qt.apply(e,arguments)}function gv(){var e=cu(_o()).domain([.1,1,10]);return e.copy=function(){return vr(e,gv()).base(e.base())},Qt.apply(e,arguments)}function bv(){var e=fu(_o());return e.copy=function(){return vr(e,bv()).constant(e.constant())},Qt.apply(e,arguments)}function Eu(){var e=du(_o());return e.copy=function(){return vr(e,Eu()).exponent(e.exponent())},Qt.apply(e,arguments)}function tN(){return Eu.apply(null,arguments).exponent(.5)}const xv=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Oa,scaleDiverging:mv,scaleDivergingLog:gv,scaleDivergingPow:Eu,scaleDivergingSqrt:tN,scaleDivergingSymlog:bv,scaleIdentity:kp,scaleImplicit:Jl,scaleLinear:bo,scaleLog:Rp,scaleOrdinal:Zl,scalePoint:Sa,scalePow:hu,scaleQuantile:qp,scaleQuantize:Kp,scaleRadial:Gp,scaleSequential:hv,scaleSequentialLog:pv,scaleSequentialPow:_u,scaleSequentialQuantile:yv,scaleSequentialSqrt:eN,scaleSequentialSymlog:vv,scaleSqrt:Dk,scaleSymlog:Wp,scaleThreshold:Vp,scaleTime:Z2,scaleUtc:Q2,tickFormat:Mp},Symbol.toStringTag,{value:"Module"}));var rN=Qr;function nN(e,t,r){for(var n=-1,a=e.length;++n<a;){var i=e[n],o=t(i);if(o!=null&&(s===void 0?o===o&&!rN(o):r(o,s)))var s=o,l=i}return l}var wv=nN;function aN(e,t){return e>t}var iN=aN,oN=wv,sN=iN,lN=fn;function uN(e){return e&&e.length?oN(e,lN,sN):void 0}var cN=uN;const yr=ke(cN);function fN(e,t){return e<t}var dN=fN,hN=wv,pN=dN,vN=fn;function yN(e){return e&&e.length?hN(e,vN,pN):void 0}var mN=yN;const Eo=ke(mN);var gN=qs,bN=fr,xN=mh,wN=lt;function ON(e,t){var r=wN(e)?gN:xN;return r(e,bN(t))}var SN=ON,AN=vh,TN=SN;function PN(e,t){return AN(TN(e,t),1)}var _N=PN;const EN=ke(_N);var jN=$l;function $N(e,t){return jN(e,t)}var CN=$N;const Rr=ke(CN);var An=1e9,MN={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Cu,Be=!0,Pt="[DecimalError] ",Br=Pt+"Invalid argument: ",ju=Pt+"Exponent out of range: ",Tn=Math.floor,Fr=Math.pow,kN=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,pt,Qe=1e7,Le=7,Ov=9007199254740991,jo=Tn(Ov/Le),ne={};ne.absoluteValue=ne.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},ne.comparedTo=ne.cmp=function(e){var t,r,n,a,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(n=i.d.length,a=e.d.length,t=0,r=n<a?n:a;t<r;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return n===a?0:n>a^i.s<0?1:-1},ne.decimalPlaces=ne.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Le;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r},ne.dividedBy=ne.div=function(e){return ir(this,new this.constructor(e))},ne.dividedToIntegerBy=ne.idiv=function(e){var t=this,r=t.constructor;return $e(ir(t,new r(e),0,1),r.precision)},ne.equals=ne.eq=function(e){return!this.cmp(e)},ne.exponent=function(){return Ge(this)},ne.greaterThan=ne.gt=function(e){return this.cmp(e)>0},ne.greaterThanOrEqualTo=ne.gte=function(e){return this.cmp(e)>=0},ne.isInteger=ne.isint=function(){return this.e>this.d.length-2},ne.isNegative=ne.isneg=function(){return this.s<0},ne.isPositive=ne.ispos=function(){return this.s>0},ne.isZero=function(){return this.s===0},ne.lessThan=ne.lt=function(e){return this.cmp(e)<0},ne.lessThanOrEqualTo=ne.lte=function(e){return this.cmp(e)<1},ne.logarithm=ne.log=function(e){var t,r=this,n=r.constructor,a=n.precision,i=a+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(pt))throw Error(Pt+"NaN");if(r.s<1)throw Error(Pt+(r.s?"NaN":"-Infinity"));return r.eq(pt)?new n(0):(Be=!1,t=ir(Na(r,i),Na(e,i),i),Be=!0,$e(t,a))},ne.minus=ne.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Pv(t,e):Sv(t,(e.s=-e.s,e))},ne.modulo=ne.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;if(e=new n(e),!e.s)throw Error(Pt+"NaN");return r.s?(Be=!1,t=ir(r,e,0,1).times(e),Be=!0,r.minus(t)):$e(new n(r),a)},ne.naturalExponential=ne.exp=function(){return Av(this)},ne.naturalLogarithm=ne.ln=function(){return Na(this)},ne.negated=ne.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},ne.plus=ne.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Sv(t,e):Pv(t,(e.s=-e.s,e))},ne.precision=ne.sd=function(e){var t,r,n,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Br+e);if(t=Ge(a)+1,n=a.d.length-1,r=n*Le+1,n=a.d[n],n){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return e&&t>r?t:r},ne.squareRoot=ne.sqrt=function(){var e,t,r,n,a,i,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Pt+"NaN")}for(e=Ge(s),Be=!1,a=Math.sqrt(+s),a==0||a==1/0?(t=Gt(s.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Tn((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(a.toString()),r=l.precision,a=o=r+3;;)if(i=n,n=i.plus(ir(s,i,o+2)).times(.5),Gt(i.d).slice(0,o)===(t=Gt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if($e(i,r+1,0),i.times(i).eq(s)){n=i;break}}else if(t!="9999")break;o+=4}return Be=!0,$e(n,r)},ne.times=ne.mul=function(e){var t,r,n,a,i,o,s,l,u,c=this,f=c.constructor,d=c.d,h=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,l=d.length,u=h.length,l<u&&(i=d,d=h,h=i,o=l,l=u,u=o),i=[],o=l+u,n=o;n--;)i.push(0);for(n=u;--n>=0;){for(t=0,a=l+n;a>n;)s=i[a]+h[n]*d[a-n-1]+t,i[a--]=s%Qe|0,t=s/Qe|0;i[a]=(i[a]+t)%Qe|0}for(;!i[--o];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,Be?$e(e,f.precision):e},ne.toDecimalPlaces=ne.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(zt(e,0,An),t===void 0?t=n.rounding:zt(t,0,8),$e(r,e+Ge(r)+1,t))},ne.toExponential=function(e,t){var r,n=this,a=n.constructor;return e===void 0?r=Wr(n,!0):(zt(e,0,An),t===void 0?t=a.rounding:zt(t,0,8),n=$e(new a(n),e+1,t),r=Wr(n,!0,e+1)),r},ne.toFixed=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?Wr(a):(zt(e,0,An),t===void 0?t=i.rounding:zt(t,0,8),n=$e(new i(a),e+Ge(a)+1,t),r=Wr(n.abs(),!1,e+Ge(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)},ne.toInteger=ne.toint=function(){var e=this,t=e.constructor;return $e(new t(e),Ge(e)+1,t.rounding)},ne.toNumber=function(){return+this},ne.toPower=ne.pow=function(e){var t,r,n,a,i,o,s=this,l=s.constructor,u=12,c=+(e=new l(e));if(!e.s)return new l(pt);if(s=new l(s),!s.s){if(e.s<1)throw Error(Pt+"Infinity");return s}if(s.eq(pt))return s;if(n=l.precision,e.eq(pt))return $e(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,i=s.s,o){if((r=c<0?-c:c)<=Ov){for(a=new l(pt),t=Math.ceil(n/Le+4),Be=!1;r%2&&(a=a.times(s),_v(a.d,t)),r=Tn(r/2),r!==0;)s=s.times(s),_v(s.d,t);return Be=!0,e.s<0?new l(pt).div(a):$e(a,n)}}else if(i<0)throw Error(Pt+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Be=!1,a=e.times(Na(s,n+u)),Be=!0,a=Av(a),a.s=i,a},ne.toPrecision=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?(r=Ge(a),n=Wr(a,r<=i.toExpNeg||r>=i.toExpPos)):(zt(e,1,An),t===void 0?t=i.rounding:zt(t,0,8),a=$e(new i(a),e,t),r=Ge(a),n=Wr(a,e<=r||r<=i.toExpNeg,e)),n},ne.toSignificantDigits=ne.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(zt(e,1,An),t===void 0?t=n.rounding:zt(t,0,8)),$e(new n(r),e,t)},ne.toString=ne.valueOf=ne.val=ne.toJSON=ne[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ge(e),r=e.constructor;return Wr(e,t<=r.toExpNeg||t>=r.toExpPos)};function Sv(e,t){var r,n,a,i,o,s,l,u,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),Be?$e(t,f):t;if(l=e.d,u=t.d,o=e.e,a=t.e,l=l.slice(),i=o-a,i){for(i<0?(n=l,i=-i,s=u.length):(n=u,a=o,s=l.length),o=Math.ceil(f/Le),s=o>s?o+1:s+1,i>s&&(i=s,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(s=l.length,i=u.length,s-i<0&&(i=s,n=u,u=l,l=n),r=0;i;)r=(l[--i]=l[i]+u[i]+r)/Qe|0,l[i]%=Qe;for(r&&(l.unshift(r),++a),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=a,Be?$e(t,f):t}function zt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Br+e)}function Gt(e){var t,r,n,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;t<a;t++)n=e[t]+"",r=Le-n.length,r&&(i+=mr(r)),i+=n;o=e[t],n=o+"",r=Le-n.length,r&&(i+=mr(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return i+o}var ir=function(){function e(n,a){var i,o=0,s=n.length;for(n=n.slice();s--;)i=n[s]*a+o,n[s]=i%Qe|0,o=i/Qe|0;return o&&n.unshift(o),n}function t(n,a,i,o){var s,l;if(i!=o)l=i>o?1:-1;else for(s=l=0;s<i;s++)if(n[s]!=a[s]){l=n[s]>a[s]?1:-1;break}return l}function r(n,a,i){for(var o=0;i--;)n[i]-=o,o=n[i]<a[i]?1:0,n[i]=o*Qe+n[i]-a[i];for(;!n[0]&&n.length>1;)n.shift()}return function(n,a,i,o){var s,l,u,c,f,d,h,y,p,v,g,O,x,A,m,w,T,_,$=n.constructor,R=n.s==a.s?1:-1,P=n.d,j=a.d;if(!n.s)return new $(n);if(!a.s)throw Error(Pt+"Division by zero");for(l=n.e-a.e,T=j.length,m=P.length,h=new $(R),y=h.d=[],u=0;j[u]==(P[u]||0);)++u;if(j[u]>(P[u]||0)&&--l,i==null?O=i=$.precision:o?O=i+(Ge(n)-Ge(a))+1:O=i,O<0)return new $(0);if(O=O/Le+2|0,u=0,T==1)for(c=0,j=j[0],O++;(u<m||c)&&O--;u++)x=c*Qe+(P[u]||0),y[u]=x/j|0,c=x%j|0;else{for(c=Qe/(j[0]+1)|0,c>1&&(j=e(j,c),P=e(P,c),T=j.length,m=P.length),A=T,p=P.slice(0,T),v=p.length;v<T;)p[v++]=0;_=j.slice(),_.unshift(0),w=j[0],j[1]>=Qe/2&&++w;do c=0,s=t(j,p,T,v),s<0?(g=p[0],T!=v&&(g=g*Qe+(p[1]||0)),c=g/w|0,c>1?(c>=Qe&&(c=Qe-1),f=e(j,c),d=f.length,v=p.length,s=t(f,p,d,v),s==1&&(c--,r(f,T<d?_:j,d))):(c==0&&(s=c=1),f=j.slice()),d=f.length,d<v&&f.unshift(0),r(p,f,v),s==-1&&(v=p.length,s=t(j,p,T,v),s<1&&(c++,r(p,T<v?_:j,v))),v=p.length):s===0&&(c++,p=[0]),y[u++]=c,s&&p[0]?p[v++]=P[A]||0:(p=[P[A]],v=1);while((A++<m||p[0]!==void 0)&&O--)}return y[0]||y.shift(),h.e=l,$e(h,o?i+Ge(h)+1:i)}}();function Av(e,t){var r,n,a,i,o,s,l=0,u=0,c=e.constructor,f=c.precision;if(Ge(e)>16)throw Error(ju+Ge(e));if(!e.s)return new c(pt);for(Be=!1,s=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Fr(2,u))/Math.LN10*2+5|0,s+=n,r=a=i=new c(pt),c.precision=s;;){if(a=$e(a.times(e),s),r=r.times(++l),o=i.plus(ir(a,r,s)),Gt(o.d).slice(0,s)===Gt(i.d).slice(0,s)){for(;u--;)i=$e(i.times(i),s);return c.precision=f,t==null?(Be=!0,$e(i,f)):i}i=o}}function Ge(e){for(var t=e.e*Le,r=e.d[0];r>=10;r/=10)t++;return t}function $u(e,t,r){if(t>e.LN10.sd())throw Be=!0,r&&(e.precision=r),Error(Pt+"LN10 precision limit exceeded");return $e(new e(e.LN10),t)}function mr(e){for(var t="";e--;)t+="0";return t}function Na(e,t){var r,n,a,i,o,s,l,u,c,f=1,d=10,h=e,y=h.d,p=h.constructor,v=p.precision;if(h.s<1)throw Error(Pt+(h.s?"NaN":"-Infinity"));if(h.eq(pt))return new p(0);if(t==null?(Be=!1,u=v):u=t,h.eq(10))return t==null&&(Be=!0),$u(p,u);if(u+=d,p.precision=u,r=Gt(y),n=r.charAt(0),i=Ge(h),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=Gt(h.d),n=r.charAt(0),f++;i=Ge(h),n>1?(h=new p("0."+r),i++):h=new p(n+"."+r.slice(1))}else return l=$u(p,u+2,v).times(i+""),h=Na(new p(n+"."+r.slice(1)),u-d).plus(l),p.precision=v,t==null?(Be=!0,$e(h,v)):h;for(s=o=h=ir(h.minus(pt),h.plus(pt),u),c=$e(h.times(h),u),a=3;;){if(o=$e(o.times(c),u),l=s.plus(ir(o,new p(a),u)),Gt(l.d).slice(0,u)===Gt(s.d).slice(0,u))return s=s.times(2),i!==0&&(s=s.plus($u(p,u+2,v).times(i+""))),s=ir(s,new p(f),u),p.precision=v,t==null?(Be=!0,$e(s,v)):s;s=l,a+=2}}function Tv(e,t){var r,n,a;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(n,a),t){if(a-=n,r=r-n-1,e.e=Tn(r/Le),e.d=[],n=(r+1)%Le,r<0&&(n+=Le),n<a){for(n&&e.d.push(+t.slice(0,n)),a-=Le;n<a;)e.d.push(+t.slice(n,n+=Le));t=t.slice(n),n=Le-t.length}else n-=a;for(;n--;)t+="0";if(e.d.push(+t),Be&&(e.e>jo||e.e<-jo))throw Error(ju+r)}else e.s=0,e.e=0,e.d=[0];return e}function $e(e,t,r){var n,a,i,o,s,l,u,c,f=e.d;for(o=1,i=f[0];i>=10;i/=10)o++;if(n=t-o,n<0)n+=Le,a=t,u=f[c=0];else{if(c=Math.ceil((n+1)/Le),i=f.length,c>=i)return e;for(u=i=f[c],o=1;i>=10;i/=10)o++;n%=Le,a=n-Le+o}if(r!==void 0&&(i=Fr(10,o-a-1),s=u/i%10|0,l=t<0||f[c+1]!==void 0||u%i,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?a>0?u/Fr(10,o-a):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(i=Ge(e),f.length=1,t=t-i-1,f[0]=Fr(10,(Le-t%Le)%Le),e.e=Tn(-t/Le)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,i=1,c--):(f.length=c+1,i=Fr(10,Le-n),f[c]=a>0?(u/Fr(10,o-a)%Fr(10,a)|0)*i:0),l)for(;;)if(c==0){(f[0]+=i)==Qe&&(f[0]=1,++e.e);break}else{if(f[c]+=i,f[c]!=Qe)break;f[c--]=0,i=1}for(n=f.length;f[--n]===0;)f.pop();if(Be&&(e.e>jo||e.e<-jo))throw Error(ju+Ge(e));return e}function Pv(e,t){var r,n,a,i,o,s,l,u,c,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Be?$e(t,h):t;if(l=e.d,f=t.d,n=t.e,u=e.e,l=l.slice(),o=u-n,o){for(c=o<0,c?(r=l,o=-o,s=f.length):(r=f,n=u,s=l.length),a=Math.max(Math.ceil(h/Le),s)+2,o>a&&(o=a,r.length=1),r.reverse(),a=o;a--;)r.push(0);r.reverse()}else{for(a=l.length,s=f.length,c=a<s,c&&(s=a),a=0;a<s;a++)if(l[a]!=f[a]){c=l[a]<f[a];break}o=0}for(c&&(r=l,l=f,f=r,t.s=-t.s),s=l.length,a=f.length-s;a>0;--a)l[s++]=0;for(a=f.length;a>o;){if(l[--a]<f[a]){for(i=a;i&&l[--i]===0;)l[i]=Qe-1;--l[i],l[a]+=Qe}l[a]-=f[a]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,Be?$e(t,h):t):new d(0)}function Wr(e,t,r){var n,a=Ge(e),i=Gt(e.d),o=i.length;return t?(r&&(n=r-o)>0?i=i.charAt(0)+"."+i.slice(1)+mr(n):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+mr(-a-1)+i,r&&(n=r-o)>0&&(i+=mr(n))):a>=o?(i+=mr(a+1-o),r&&(n=r-a-1)>0&&(i=i+"."+mr(n))):((n=a+1)<o&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-o)>0&&(a+1===o&&(i+="."),i+=mr(n))),e.s<0?"-"+i:i}function _v(e,t){if(e.length>t)return e.length=t,!0}function Ev(e){var t,r,n;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Br+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return Tv(o,i.toString())}else if(typeof i!="string")throw Error(Br+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,kN.test(i))Tv(o,i);else throw Error(Br+i)}if(a.prototype=ne,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=Ev,a.config=a.set=NN,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return a.config(e),a}function NN(e){if(!e||typeof e!="object")throw Error(Pt+"Object expected");var t,r,n,a=["precision",1,An,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((n=e[r=a[t]])!==void 0)if(Tn(n)===n&&n>=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(Br+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Br+r+": "+n);return this}var Cu=Ev(MN);pt=new Cu(1);const je=Cu;function DN(e){return BN(e)||RN(e)||LN(e)||IN()}function IN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
58
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LN(e,t){if(e){if(typeof e=="string")return Mu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mu(e,t)}}function RN(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function BN(e){if(Array.isArray(e))return Mu(e)}function Mu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var FN=function(t){return t},jv={},$v=function(t){return t===jv},Cv=function(t){return function r(){return arguments.length===0||arguments.length===1&&$v(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},WN=function e(t,r){return t===1?r:Cv(function(){for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];var o=a.filter(function(s){return s!==jv}).length;return o>=t?r.apply(void 0,a):e(t-o,Cv(function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var c=a.map(function(f){return $v(f)?l.shift():f});return r.apply(void 0,DN(c).concat(l))}))})},$o=function(t){return WN(t.length,t)},ku=function(t,r){for(var n=[],a=t;a<r;++a)n[a-t]=a;return n},UN=$o(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),zN=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return FN;var a=r.reverse(),i=a[0],o=a.slice(1);return function(){return o.reduce(function(s,l){return l(s)},i.apply(void 0,arguments))}},Nu=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Mv=function(t){var r=null,n=null;return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return r&&i.every(function(s,l){return s===r[l]})||(r=i,n=t.apply(void 0,i)),n}};function GN(e){var t;return e===0?t=1:t=Math.floor(new je(e).abs().log(10).toNumber())+1,t}function qN(e,t,r){for(var n=new je(e),a=0,i=[];n.lt(t)&&a<1e5;)i.push(n.toNumber()),n=n.add(r),a++;return i}var KN=$o(function(e,t,r){var n=+e,a=+t;return n+r*(a-n)}),VN=$o(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),HN=$o(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Co={rangeStep:qN,getDigitCount:GN,interpolateNumber:KN,uninterpolateNumber:VN,uninterpolateTruncation:HN};function Du(e){return JN(e)||XN(e)||kv(e)||YN()}function YN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
59
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XN(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function JN(e){if(Array.isArray(e))return Iu(e)}function Da(e,t){return eD(e)||QN(e,t)||kv(e,t)||ZN()}function ZN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
60
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kv(e,t){if(e){if(typeof e=="string")return Iu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Iu(e,t)}}function Iu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function QN(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,i=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){a=!0,i=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(a)throw i}}return r}}function eD(e){if(Array.isArray(e))return e}function Nv(e){var t=Da(e,2),r=t[0],n=t[1],a=r,i=n;return r>n&&(a=n,i=r),[a,i]}function Dv(e,t,r){if(e.lte(0))return new je(0);var n=Co.getDigitCount(e.toNumber()),a=new je(10).pow(n),i=e.div(a),o=n!==1?.05:.1,s=new je(Math.ceil(i.div(o).toNumber())).add(r).mul(o),l=s.mul(a);return t?l:new je(Math.ceil(l))}function tD(e,t,r){var n=1,a=new je(e);if(!a.isint()&&r){var i=Math.abs(e);i<1?(n=new je(10).pow(Co.getDigitCount(e)-1),a=new je(Math.floor(a.div(n).toNumber())).mul(n)):i>1&&(a=new je(Math.floor(e)))}else e===0?a=new je(Math.floor((t-1)/2)):r||(a=new je(Math.floor(e)));var o=Math.floor((t-1)/2),s=zN(UN(function(l){return a.add(new je(l-o).mul(n)).toNumber()}),ku);return s(0,t)}function Iv(e,t,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new je(0),tickMin:new je(0),tickMax:new je(0)};var i=Dv(new je(t).sub(e).div(r-1),n,a),o;e<=0&&t>=0?o=new je(0):(o=new je(e).add(t).div(2),o=o.sub(new je(o).mod(i)));var s=Math.ceil(o.sub(e).div(i).toNumber()),l=Math.ceil(new je(t).sub(o).div(i).toNumber()),u=s+l+1;return u>r?Iv(e,t,r,n,a+1):(u<r&&(l=t>0?l+(r-u):l,s=t>0?s:s+(r-u)),{step:i,tickMin:o.sub(new je(s).mul(i)),tickMax:o.add(new je(l).mul(i))})}function rD(e){var t=Da(e,2),r=t[0],n=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(a,2),s=Nv([r,n]),l=Da(s,2),u=l[0],c=l[1];if(u===-1/0||c===1/0){var f=c===1/0?[u].concat(Du(ku(0,a-1).map(function(){return 1/0}))):[].concat(Du(ku(0,a-1).map(function(){return-1/0})),[c]);return r>n?Nu(f):f}if(u===c)return tD(u,a,i);var d=Iv(u,c,o,i),h=d.step,y=d.tickMin,p=d.tickMax,v=Co.rangeStep(y,p.add(new je(.1).mul(h)),h);return r>n?Nu(v):v}function nD(e,t){var r=Da(e,2),n=r[0],a=r[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Nv([n,a]),s=Da(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[n,a];if(l===u)return[l];var c=Math.max(t,2),f=Dv(new je(u).sub(l).div(c-1),i,0),d=[].concat(Du(Co.rangeStep(new je(l),new je(u).sub(new je(.99).mul(f)),f)),[u]);return n>a?Nu(d):d}var aD=Mv(rD),iD=Mv(nD),oD=process.env.NODE_ENV==="production",Lu="Invariant failed";function ft(e,t){if(oD)throw new Error(Lu);var r=typeof t=="function"?t():t,n=r?"".concat(Lu,": ").concat(r):Lu;throw new Error(n)}var sD=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Pn(e){"@babel/helpers - typeof";return Pn=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},Pn(e)}function Mo(){return Mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mo.apply(this,arguments)}function lD(e,t){return dD(e)||fD(e,t)||cD(e,t)||uD()}function uD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
61
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cD(e,t){if(e){if(typeof e=="string")return Lv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lv(e,t)}}function Lv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}function dD(e){if(Array.isArray(e))return e}function hD(e,t){if(e==null)return{};var r=pD(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function vD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Fv(n.key),n)}}function mD(e,t,r){return t&&yD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gD(e,t,r){return t=ko(t),bD(e,Rv()?Reflect.construct(t,r||[],ko(e).constructor):t.apply(e,r))}function bD(e,t){if(t&&(Pn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xD(e)}function xD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rv=function(){return!!e})()}function ko(e){return ko=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ko(e)}function wD(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&&Ru(e,t)}function Ru(e,t){return Ru=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Ru(e,t)}function Bv(e,t,r){return t=Fv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fv(e){var t=OD(e,"string");return Pn(t)=="symbol"?t:t+""}function OD(e,t){if(Pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _n=function(e){function t(){return vD(this,t),gD(this,t,arguments)}return wD(t,e),mD(t,[{key:"render",value:function(){var n=this.props,a=n.offset,i=n.layout,o=n.width,s=n.dataKey,l=n.data,u=n.dataPointFormatter,c=n.xAxis,f=n.yAxis,d=hD(n,sD),h=fe(d,!1);this.props.direction==="x"&&c.type!=="number"&&(process.env.NODE_ENV!=="production"?ft(!1,'ErrorBar requires Axis type property to be "number".'):ft());var y=l.map(function(p){var v=u(p,s),g=v.x,O=v.y,x=v.value,A=v.errorVal;if(!A)return null;var m=[],w,T;if(Array.isArray(A)){var _=lD(A,2);w=_[0],T=_[1]}else w=T=A;if(i==="vertical"){var $=c.scale,R=O+a,P=R+o,j=R-o,L=$(x-w),B=$(x+T);m.push({x1:B,y1:P,x2:B,y2:j}),m.push({x1:L,y1:R,x2:B,y2:R}),m.push({x1:L,y1:P,x2:L,y2:j})}else if(i==="horizontal"){var M=f.scale,E=g+a,F=E-o,U=E+o,k=M(x-w),N=M(x+T);m.push({x1:F,y1:N,x2:U,y2:N}),m.push({x1:E,y1:k,x2:E,y2:N}),m.push({x1:F,y1:k,x2:U,y2:k})}return S.createElement(be,Mo({className:"recharts-errorBar",key:"bar-".concat(m.map(function(I){return"".concat(I.x1,"-").concat(I.x2,"-").concat(I.y1,"-").concat(I.y2)}))},h),m.map(function(I){return S.createElement("line",Mo({},I,{key:"line-".concat(I.x1,"-").concat(I.x2,"-").concat(I.y1,"-").concat(I.y2)}))}))});return S.createElement(be,{className:"recharts-errorBars"},y)}}])}(S.Component);Bv(_n,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),Bv(_n,"displayName","ErrorBar");function Ia(e){"@babel/helpers - typeof";return Ia=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},Ia(e)}function Wv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ur(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wv(Object(r),!0).forEach(function(n){SD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SD(e,t,r){return t=AD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AD(e){var t=TD(e,"string");return Ia(t)=="symbol"?t:t+""}function TD(e,t){if(Ia(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ia(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Uv=function(t){var r=t.children,n=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,o=ht(r,hn);if(!o)return null;var s=hn.defaultProps,l=s!==void 0?Ur(Ur({},s),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:i==="children"?u=(n||[]).reduce(function(c,f){var d=f.item,h=f.props,y=h.sectors||h.data||[];return c.concat(y.map(function(p){return{type:o.props.iconType||d.props.legendType,value:p.name,color:p.fill,payload:p}}))},[]):u=(n||[]).map(function(c){var f=c.item,d=f.type.defaultProps,h=d!==void 0?Ur(Ur({},d),f.props):{},y=h.dataKey,p=h.name,v=h.legendType,g=h.hide;return{inactive:g,dataKey:y,type:l.iconType||v||"square",color:Fu(f),value:p||y,payload:h}}),Ur(Ur(Ur({},l),hn.getWithHeight(o,a)),{},{payload:u,item:o})};function La(e){"@babel/helpers - typeof";return La=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},La(e)}function zv(e){return jD(e)||ED(e)||_D(e)||PD()}function PD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
62
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _D(e,t){if(e){if(typeof e=="string")return Bu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bu(e,t)}}function ED(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jD(e){if(Array.isArray(e))return Bu(e)}function Bu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Gv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gv(Object(r),!0).forEach(function(n){En(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function En(e,t,r){return t=$D(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $D(e){var t=CD(e,"string");return La(t)=="symbol"?t:t+""}function CD(e,t){if(La(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(La(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ye(e,t,r){return ue(e)||ue(t)?r:Ve(t)?xt(e,t,r):de(t)?t(e):r}function Ra(e,t,r,n){var a=EN(e,function(s){return Ye(s,t)});if(r==="number"){var i=a.filter(function(s){return X(s)||parseFloat(s)});return i.length?[Eo(i),yr(i)]:[1/0,-1/0]}var o=n?a.filter(function(s){return!ue(s)}):a;return o.map(function(s){return Ve(s)||s instanceof Date?s:""})}var MD=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var l=i.range,u=0;u<s;u++){var c=u>0?a[u-1].coordinate:a[s-1].coordinate,f=a[u].coordinate,d=u>=s-1?a[0].coordinate:a[u+1].coordinate,h=void 0;if($t(f-c)!==$t(d-f)){var y=[];if($t(d-f)===$t(l[1]-l[0])){h=d;var p=f+l[1]-l[0];y[0]=Math.min(p,(p+c)/2),y[1]=Math.max(p,(p+c)/2)}else{h=c;var v=d+l[1]-l[0];y[0]=Math.min(f,(v+f)/2),y[1]=Math.max(f,(v+f)/2)}var g=[Math.min(f,(h+f)/2),Math.max(f,(h+f)/2)];if(t>g[0]&&t<=g[1]||t>=y[0]&&t<=y[1]){o=a[u].index;break}}else{var O=Math.min(c,d),x=Math.max(c,d);if(t>(O+f)/2&&t<=(x+f)/2){o=a[u].index;break}}}else for(var A=0;A<s;A++)if(A===0&&t<=(n[A].coordinate+n[A+1].coordinate)/2||A>0&&A<s-1&&t>(n[A].coordinate+n[A-1].coordinate)/2&&t<=(n[A].coordinate+n[A+1].coordinate)/2||A===s-1&&t>(n[A].coordinate+n[A-1].coordinate)/2){o=n[A].index;break}return o},Fu=function(t){var r,n=t,a=n.type.displayName,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Fe(Fe({},t.type.defaultProps),t.props):t.props,o=i.stroke,s=i.fill,l;switch(a){case"Line":l=o;break;case"Area":case"Radar":l=o&&o!=="none"?o:s;break;default:l=s;break}return l},kD=function(t){var r=t.barSize,n=t.totalSize,a=t.stackGroups,i=a===void 0?{}:a;if(!i)return{};for(var o={},s=Object.keys(i),l=0,u=s.length;l<u;l++)for(var c=i[s[l]].stackGroups,f=Object.keys(c),d=0,h=f.length;d<h;d++){var y=c[f[d]],p=y.items,v=y.cateAxisId,g=p.filter(function(T){return Xt(T.type).indexOf("Bar")>=0});if(g&&g.length){var O=g[0].type.defaultProps,x=O!==void 0?Fe(Fe({},O),g[0].props):g[0].props,A=x.barSize,m=x[v];o[m]||(o[m]=[]);var w=ue(A)?r:A;o[m].push({item:g[0],stackList:g.slice(1),barSize:ue(w)?void 0:$r(w,n,0)})}}return o},ND=function(t){var r=t.barGap,n=t.barCategoryGap,a=t.bandSize,i=t.sizeList,o=i===void 0?[]:i,s=t.maxBarSize,l=o.length;if(l<1)return null;var u=$r(r,a,0,!0),c,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=a/l,y=o.reduce(function(A,m){return A+m.barSize||0},0);y+=(l-1)*u,y>=a&&(y-=(l-1)*u,u=0),y>=a&&h>0&&(d=!0,h*=.9,y=l*h);var p=(a-y)/2>>0,v={offset:p-u,size:0};c=o.reduce(function(A,m){var w={item:m.item,position:{offset:v.offset+v.size+u,size:d?h:m.barSize}},T=[].concat(zv(A),[w]);return v=T[T.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(_){T.push({item:_,position:v})}),T},f)}else{var g=$r(n,a,0,!0);a-2*g-(l-1)*u<=0&&(u=0);var O=(a-2*g-(l-1)*u)/l;O>1&&(O>>=0);var x=s===+s?Math.min(O,s):O;c=o.reduce(function(A,m,w){var T=[].concat(zv(A),[{item:m.item,position:{offset:g+(O+u)*w+(O-x)/2,size:x}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(_){T.push({item:_,position:T[T.length-1].position})}),T},f)}return c},DD=function(t,r,n,a){var i=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),u=Uv({children:i,legendWidth:l});if(u){var c=a||{},f=c.width,d=c.height,h=u.align,y=u.verticalAlign,p=u.layout;if((p==="vertical"||p==="horizontal"&&y==="middle")&&h!=="center"&&X(t[h]))return Fe(Fe({},t),{},En({},h,t[h]+(f||0)));if((p==="horizontal"||p==="vertical"&&h==="center")&&y!=="middle"&&X(t[y]))return Fe(Fe({},t),{},En({},y,t[y]+(d||0)))}return t},ID=function(t,r,n){return ue(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},qv=function(t,r,n,a,i){var o=r.props.children,s=ut(o,_n).filter(function(u){return ID(a,i,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,c){var f=Ye(c,n);if(ue(f))return u;var d=Array.isArray(f)?[Eo(f),yr(f)]:[f,f],h=l.reduce(function(y,p){var v=Ye(c,p,0),g=d[0]-Math.abs(Array.isArray(v)?v[0]:v),O=d[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(g,y[0]),Math.max(O,y[1])]},[1/0,-1/0]);return[Math.min(h[0],u[0]),Math.max(h[1],u[1])]},[1/0,-1/0])}return null},LD=function(t,r,n,a,i){var o=r.map(function(s){return qv(t,s,n,i,a)}).filter(function(s){return!ue(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},Kv=function(t,r,n,a,i){var o=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&qv(t,l,u,a)||Ra(t,u,n,i)});if(n==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,u){for(var c=0,f=u.length;c<f;c++)s[u[c]]||(s[u[c]]=!0,l.push(u[c]));return l},[])},Vv=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},Hv=function(t,r,n,a){if(a)return t.map(function(l){return l.coordinate});var i,o,s=t.map(function(l){return l.coordinate===r&&(i=!0),l.coordinate===n&&(o=!0),l.coordinate});return i||s.push(r),o||s.push(n),s},or=function(t,r,n){if(!t)return null;var a=t.scale,i=t.duplicateDomain,o=t.type,s=t.range,l=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,u=(r||n)&&o==="category"&&a.bandwidth?a.bandwidth()/l:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?$t(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var d=i?i.indexOf(f):f;return{coordinate:a(d)+u,value:f,offset:u}});return c.filter(function(f){return!an(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:a(f)+u,value:f,index:d,offset:u}}):a.ticks&&!n?a.ticks(t.tickCount).map(function(f){return{coordinate:a(f)+u,value:f,offset:u}}):a.domain().map(function(f,d){return{coordinate:a(f)+u,value:i?i[f]:f,index:d,offset:u}})},Wu=new WeakMap,No=function(t,r){if(typeof r!="function")return t;Wu.has(t)||Wu.set(t,new WeakMap);var n=Wu.get(t);if(n.has(r))return n.get(r);var a=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,a),a},RD=function(t,r,n){var a=t.scale,i=t.type,o=t.layout,s=t.axisType;if(a==="auto")return o==="radial"&&s==="radiusAxis"?{scale:Oa(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:bo(),realScaleType:"linear"}:i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Sa(),realScaleType:"point"}:i==="category"?{scale:Oa(),realScaleType:"band"}:{scale:bo(),realScaleType:"linear"};if(_r(a)){var l="scale".concat(Di(a));return{scale:(xv[l]||Sa)(),realScaleType:xv[l]?l:"point"}}return de(a)?{scale:a}:{scale:Sa(),realScaleType:"point"}},Yv=1e-4,BD=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,a=t.range(),i=Math.min(a[0],a[1])-Yv,o=Math.max(a[0],a[1])+Yv,s=t(r[0]),l=t(r[n-1]);(s<i||s>o||l<i||l>o)&&t.domain([r[0],r[n-1]])}},FD=function(t,r){if(!t)return null;for(var n=0,a=t.length;n<a;n++)if(t[n].item===r)return t[n].position;return null},WD=function(t,r){if(!r||r.length!==2||!X(r[0])||!X(r[1]))return t;var n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]),i=[t[0],t[1]];return(!X(t[0])||t[0]<n)&&(i[0]=n),(!X(t[1])||t[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<n&&(i[1]=n),i},UD=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n<a;++n)for(var i=0,o=0,s=0;s<r;++s){var l=an(t[s][n][1])?t[s][n][0]:t[s][n][1];l>=0?(t[s][n][0]=i,t[s][n][1]=i+l,i=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},zD=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n<a;++n)for(var i=0,o=0;o<r;++o){var s=an(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=i,t[o][n][1]=i+s,i=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},GD={sign:UD,expand:iS,none:sn,silhouette:oS,wiggle:sS,positive:zD},qD=function(t,r,n){var a=r.map(function(s){return s.props.dataKey}),i=GD[n],o=aS().keys(a).value(function(s,l){return+Ye(s,l,0)}).order(pl).offset(i);return o(t)},KD=function(t,r,n,a,i,o){if(!t)return null;var s=o?r.reverse():r,l={},u=s.reduce(function(f,d){var h,y=(h=d.type)!==null&&h!==void 0&&h.defaultProps?Fe(Fe({},d.type.defaultProps),d.props):d.props,p=y.stackId,v=y.hide;if(v)return f;var g=y[n],O=f[g]||{hasStack:!1,stackGroups:{}};if(Ve(p)){var x=O.stackGroups[p]||{numericAxisId:n,cateAxisId:a,items:[]};x.items.push(d),O.hasStack=!0,O.stackGroups[p]=x}else O.stackGroups[jr("_stackId_")]={numericAxisId:n,cateAxisId:a,items:[d]};return Fe(Fe({},f),{},En({},g,O))},l),c={};return Object.keys(u).reduce(function(f,d){var h=u[d];if(h.hasStack){var y={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(p,v){var g=h.stackGroups[v];return Fe(Fe({},p),{},En({},v,{numericAxisId:n,cateAxisId:a,items:g.items,stackedData:qD(t,g.items,i)}))},y)}return Fe(Fe({},f),{},En({},d,h))},c)},VD=function(t,r){var n=r.realScaleType,a=r.type,i=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(i&&a==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var c=aD(u,i,s);return t.domain([Eo(c),yr(c)]),{niceTicks:c}}if(i&&a==="number"){var f=t.domain(),d=iD(f,i,s);return{niceTicks:d}}return null};function jn(e){var t=e.axis,r=e.ticks,n=e.bandSize,a=e.entry,i=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ue(a[t.dataKey])){var s=ki(r,"value",a[t.dataKey]);if(s)return s.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var l=Ye(a,ue(o)?t.dataKey:o);return ue(l)?null:t.scale(l)}var Xv=function(t){var r=t.axis,n=t.ticks,a=t.offset,i=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+a:null;var l=Ye(o,r.dataKey,r.domain[s]);return ue(l)?null:r.scale(l)-i/2+a},HD=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var a=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return a<=0&&i>=0?0:i<0?i:a}return n[0]},YD=function(t,r){var n,a=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Fe(Fe({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(Ve(i)){var o=r[i];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},XD=function(t){return t.reduce(function(r,n){return[Eo(n.concat([r[0]]).filter(X)),yr(n.concat([r[1]]).filter(X))]},[1/0,-1/0])},Jv=function(t,r,n){return Object.keys(t).reduce(function(a,i){var o=t[i],s=o.stackedData,l=s.reduce(function(u,c){var f=XD(c.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],a[0]),Math.max(l[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},Zv=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Qv=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Uu=function(t,r,n){if(de(t))return t(r,n);if(!Array.isArray(t))return r;var a=[];if(X(t[0]))a[0]=n?t[0]:Math.min(t[0],r[0]);else if(Zv.test(t[0])){var i=+Zv.exec(t[0])[1];a[0]=r[0]-i}else de(t[0])?a[0]=t[0](r[0]):a[0]=r[0];if(X(t[1]))a[1]=n?t[1]:Math.max(t[1],r[1]);else if(Qv.test(t[1])){var o=+Qv.exec(t[1])[1];a[1]=r[1]+o}else de(t[1])?a[1]=t[1](r[1]):a[1]=r[1];return a},Do=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!n||a>0)return a}if(t&&r&&r.length>=2){for(var i=Dl(r,function(f){return f.coordinate}),o=1/0,s=1,l=i.length;s<l;s++){var u=i[s],c=i[s-1];o=Math.min((u.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},ey=function(t,r,n){return!t||!t.length||Rr(t,xt(n,"type.defaultProps.domain"))?r:t},ty=function(t,r){var n=t.type.defaultProps?Fe(Fe({},t.type.defaultProps),t.props):t.props,a=n.dataKey,i=n.name,o=n.unit,s=n.formatter,l=n.tooltipType,u=n.chartType,c=n.hide;return Fe(Fe({},fe(t,!1)),{},{dataKey:a,unit:o,formatter:s,name:i||a,color:Fu(t),value:Ye(r,a),type:l,payload:r,chartType:u,hide:c})};function Ba(e){"@babel/helpers - typeof";return Ba=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},Ba(e)}function ry(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ny(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ry(Object(r),!0).forEach(function(n){JD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ry(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JD(e,t,r){return t=ZD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZD(e){var t=QD(e,"string");return Ba(t)=="symbol"?t:t+""}function QD(e,t){if(Ba(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ba(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Io=Math.PI/180,eI=function(t){return t*180/Math.PI},tt=function(t,r,n,a){return{x:t+Math.cos(-Io*a)*n,y:r+Math.sin(-Io*a)*n}},tI=function(t,r){var n=t.x,a=t.y,i=r.x,o=r.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(a-o,2))},rI=function(t,r){var n=t.x,a=t.y,i=r.cx,o=r.cy,s=tI({x:n,y:a},{x:i,y:o});if(s<=0)return{radius:s};var l=(n-i)/s,u=Math.acos(l);return a>o&&(u=2*Math.PI-u),{radius:s,angle:eI(u),angleInRadian:u}},nI=function(t){var r=t.startAngle,n=t.endAngle,a=Math.floor(r/360),i=Math.floor(n/360),o=Math.min(a,i);return{startAngle:r-o*360,endAngle:n-o*360}},aI=function(t,r){var n=r.startAngle,a=r.endAngle,i=Math.floor(n/360),o=Math.floor(a/360),s=Math.min(i,o);return t+s*360},ay=function(t,r){var n=t.x,a=t.y,i=rI({x:n,y:a},r),o=i.radius,s=i.angle,l=r.innerRadius,u=r.outerRadius;if(o<l||o>u)return!1;if(o===0)return!0;var c=nI(r),f=c.startAngle,d=c.endAngle,h=s,y;if(f<=d){for(;h>d;)h-=360;for(;h<f;)h+=360;y=h>=f&&h<=d}else{for(;h>f;)h-=360;for(;h<d;)h+=360;y=h>=d&&h<=f}return y?ny(ny({},r),{},{radius:o,angle:aI(h,r)}):null};function Fa(e){"@babel/helpers - typeof";return Fa=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},Fa(e)}var iI=["offset"];function oI(e){return cI(e)||uI(e)||lI(e)||sI()}function sI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
63
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lI(e,t){if(e){if(typeof e=="string")return zu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zu(e,t)}}function uI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cI(e){if(Array.isArray(e))return zu(e)}function zu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fI(e,t){if(e==null)return{};var r=dI(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function iy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iy(Object(r),!0).forEach(function(n){hI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hI(e,t,r){return t=pI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pI(e){var t=vI(e,"string");return Fa(t)=="symbol"?t:t+""}function vI(e,t){if(Fa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wa(){return Wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wa.apply(this,arguments)}var yI=function(t){var r=t.value,n=t.formatter,a=ue(t.children)?r:t.children;return de(n)?n(a):a},mI=function(t,r){var n=$t(r-t),a=Math.min(Math.abs(r-t),360);return n*a},gI=function(t,r,n){var a=t.position,i=t.viewBox,o=t.offset,s=t.className,l=i,u=l.cx,c=l.cy,f=l.innerRadius,d=l.outerRadius,h=l.startAngle,y=l.endAngle,p=l.clockWise,v=(f+d)/2,g=mI(h,y),O=g>=0?1:-1,x,A;a==="insideStart"?(x=h+O*o,A=p):a==="insideEnd"?(x=y-O*o,A=!p):a==="end"&&(x=y+O*o,A=p),A=g<=0?A:!A;var m=tt(u,c,v,x),w=tt(u,c,v,x+(A?1:-1)*359),T="M".concat(m.x,",").concat(m.y,`
64
+ A`).concat(v,",").concat(v,",0,1,").concat(A?0:1,`,
65
+ `).concat(w.x,",").concat(w.y),_=ue(t.id)?jr("recharts-radial-line-"):t.id;return S.createElement("text",Wa({},n,{dominantBaseline:"central",className:pe("recharts-radial-bar-label",s)}),S.createElement("defs",null,S.createElement("path",{id:_,d:T})),S.createElement("textPath",{xlinkHref:"#".concat(_)},r))},bI=function(t){var r=t.viewBox,n=t.offset,a=t.position,i=r,o=i.cx,s=i.cy,l=i.innerRadius,u=i.outerRadius,c=i.startAngle,f=i.endAngle,d=(c+f)/2;if(a==="outside"){var h=tt(o,s,u+n,d),y=h.x,p=h.y;return{x:y,y:p,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var v=(l+u)/2,g=tt(o,s,v,d),O=g.x,x=g.y;return{x:O,y:x,textAnchor:"middle",verticalAnchor:"middle"}},xI=function(t){var r=t.viewBox,n=t.parentViewBox,a=t.offset,i=t.position,o=r,s=o.x,l=o.y,u=o.width,c=o.height,f=c>=0?1:-1,d=f*a,h=f>0?"end":"start",y=f>0?"start":"end",p=u>=0?1:-1,v=p*a,g=p>0?"end":"start",O=p>0?"start":"end";if(i==="top"){var x={x:s+u/2,y:l-f*a,textAnchor:"middle",verticalAnchor:h};return Xe(Xe({},x),n?{height:Math.max(l-n.y,0),width:u}:{})}if(i==="bottom"){var A={x:s+u/2,y:l+c+d,textAnchor:"middle",verticalAnchor:y};return Xe(Xe({},A),n?{height:Math.max(n.y+n.height-(l+c),0),width:u}:{})}if(i==="left"){var m={x:s-v,y:l+c/2,textAnchor:g,verticalAnchor:"middle"};return Xe(Xe({},m),n?{width:Math.max(m.x-n.x,0),height:c}:{})}if(i==="right"){var w={x:s+u+v,y:l+c/2,textAnchor:O,verticalAnchor:"middle"};return Xe(Xe({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:c}:{})}var T=n?{width:u,height:c}:{};return i==="insideLeft"?Xe({x:s+v,y:l+c/2,textAnchor:O,verticalAnchor:"middle"},T):i==="insideRight"?Xe({x:s+u-v,y:l+c/2,textAnchor:g,verticalAnchor:"middle"},T):i==="insideTop"?Xe({x:s+u/2,y:l+d,textAnchor:"middle",verticalAnchor:y},T):i==="insideBottom"?Xe({x:s+u/2,y:l+c-d,textAnchor:"middle",verticalAnchor:h},T):i==="insideTopLeft"?Xe({x:s+v,y:l+d,textAnchor:O,verticalAnchor:y},T):i==="insideTopRight"?Xe({x:s+u-v,y:l+d,textAnchor:g,verticalAnchor:y},T):i==="insideBottomLeft"?Xe({x:s+v,y:l+c-d,textAnchor:O,verticalAnchor:h},T):i==="insideBottomRight"?Xe({x:s+u-v,y:l+c-d,textAnchor:g,verticalAnchor:h},T):en(i)&&(X(i.x)||Er(i.x))&&(X(i.y)||Er(i.y))?Xe({x:s+$r(i.x,u),y:l+$r(i.y,c),textAnchor:"end",verticalAnchor:"end"},T):Xe({x:s+u/2,y:l+c/2,textAnchor:"middle",verticalAnchor:"middle"},T)},wI=function(t){return"cx"in t&&X(t.cx)};function nt(e){var t=e.offset,r=t===void 0?5:t,n=fI(e,iI),a=Xe({offset:r},n),i=a.viewBox,o=a.position,s=a.value,l=a.children,u=a.content,c=a.className,f=c===void 0?"":c,d=a.textBreakAll;if(!i||ue(s)&&ue(l)&&!S.isValidElement(u)&&!de(u))return null;if(S.isValidElement(u))return S.cloneElement(u,a);var h;if(de(u)){if(h=S.createElement(u,a),S.isValidElement(h))return h}else h=yI(a);var y=wI(i),p=fe(a,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return gI(a,h,p);var v=y?bI(a):xI(a);return S.createElement(so,Wa({className:pe("recharts-label",f)},p,v,{breakAll:d}),h)}nt.displayName="Label";var oy=function(t){var r=t.cx,n=t.cy,a=t.angle,i=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,c=t.outerRadius,f=t.x,d=t.y,h=t.top,y=t.left,p=t.width,v=t.height,g=t.clockWise,O=t.labelViewBox;if(O)return O;if(X(p)&&X(v)){if(X(f)&&X(d))return{x:f,y:d,width:p,height:v};if(X(h)&&X(y))return{x:h,y,width:p,height:v}}return X(f)&&X(d)?{x:f,y:d,width:0,height:0}:X(r)&&X(n)?{cx:r,cy:n,startAngle:i||a||0,endAngle:o||a||0,innerRadius:u||0,outerRadius:c||l||s||0,clockWise:g}:t.viewBox?t.viewBox:{}},OI=function(t,r){return t?t===!0?S.createElement(nt,{key:"label-implicit",viewBox:r}):Ve(t)?S.createElement(nt,{key:"label-implicit",viewBox:r,value:t}):S.isValidElement(t)?t.type===nt?S.cloneElement(t,{key:"label-implicit",viewBox:r}):S.createElement(nt,{key:"label-implicit",content:t,viewBox:r}):de(t)?S.createElement(nt,{key:"label-implicit",content:t,viewBox:r}):en(t)?S.createElement(nt,Wa({viewBox:r},t,{key:"label-implicit"})):null:null},SI=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var a=t.children,i=oy(t),o=ut(a,nt).map(function(l,u){return S.cloneElement(l,{viewBox:r||i,key:"label-".concat(u)})});if(!n)return o;var s=OI(t.label,r||i);return[s].concat(oI(o))};nt.parseViewBox=oy,nt.renderCallByParent=SI;function AI(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var TI=AI;const PI=ke(TI);function Ua(e){"@babel/helpers - typeof";return Ua=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},Ua(e)}var _I=["valueAccessor"],EI=["data","dataKey","clockWise","id","textBreakAll"];function jI(e){return kI(e)||MI(e)||CI(e)||$I()}function $I(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
66
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CI(e,t){if(e){if(typeof e=="string")return Gu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gu(e,t)}}function MI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kI(e){if(Array.isArray(e))return Gu(e)}function Gu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Lo(){return Lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lo.apply(this,arguments)}function sy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ly(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sy(Object(r),!0).forEach(function(n){NI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NI(e,t,r){return t=DI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DI(e){var t=II(e,"string");return Ua(t)=="symbol"?t:t+""}function II(e,t){if(Ua(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ua(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uy(e,t){if(e==null)return{};var r=LI(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function LI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var RI=function(t){return Array.isArray(t.value)?PI(t.value):t.value};function qt(e){var t=e.valueAccessor,r=t===void 0?RI:t,n=uy(e,_I),a=n.data,i=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,u=uy(n,EI);return!a||!a.length?null:S.createElement(be,{className:"recharts-label-list"},a.map(function(c,f){var d=ue(i)?r(c,f):Ye(c&&c.payload,i),h=ue(s)?{}:{id:"".concat(s,"-").concat(f)};return S.createElement(nt,Lo({},fe(c,!0),u,h,{parentViewBox:c.parentViewBox,value:d,textBreakAll:l,viewBox:nt.parseViewBox(ue(o)?c:ly(ly({},c),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}qt.displayName="LabelList";function BI(e,t){return e?e===!0?S.createElement(qt,{key:"labelList-implicit",data:t}):S.isValidElement(e)||de(e)?S.createElement(qt,{key:"labelList-implicit",data:t,content:e}):en(e)?S.createElement(qt,Lo({data:t},e,{key:"labelList-implicit"})):null:null}function FI(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,a=ut(n,qt).map(function(o,s){return S.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return a;var i=BI(e.label,t);return[i].concat(jI(a))}qt.renderCallByParent=FI;function za(e){"@babel/helpers - typeof";return za=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},za(e)}function qu(){return qu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qu.apply(this,arguments)}function cy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function fy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cy(Object(r),!0).forEach(function(n){WI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WI(e,t,r){return t=UI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UI(e){var t=zI(e,"string");return za(t)=="symbol"?t:t+""}function zI(e,t){if(za(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(za(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var GI=function(t,r){var n=$t(r-t),a=Math.min(Math.abs(r-t),359.999);return n*a},Ro=function(t){var r=t.cx,n=t.cy,a=t.radius,i=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,u=t.cornerIsExternal,c=l*(s?1:-1)+a,f=Math.asin(l/c)/Io,d=u?i:i+o*f,h=tt(r,n,c,d),y=tt(r,n,a,d),p=u?i-o*f:i,v=tt(r,n,c*Math.cos(f*Io),p);return{center:h,circleTangency:y,lineTangency:v,theta:f}},dy=function(t){var r=t.cx,n=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.startAngle,s=t.endAngle,l=GI(o,s),u=o+l,c=tt(r,n,i,o),f=tt(r,n,i,u),d="M ".concat(c.x,",").concat(c.y,`
67
+ A `).concat(i,",").concat(i,`,0,
68
68
  `).concat(+(Math.abs(l)>180),",").concat(+(o>u),`,
69
69
  `).concat(f.x,",").concat(f.y,`
70
- `);if(i>0){var p=Ye(r,n,i,o),g=Ye(r,n,i,u);d+="L ".concat(g.x,",").concat(g.y,`
71
- A `).concat(i,",").concat(i,`,0,
70
+ `);if(a>0){var h=tt(r,n,a,o),y=tt(r,n,a,u);d+="L ".concat(y.x,",").concat(y.y,`
71
+ A `).concat(a,",").concat(a,`,0,
72
72
  `).concat(+(Math.abs(l)>180),",").concat(+(o<=u),`,
73
- `).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},tD=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,f=Ot(c-u),d=xo({cx:r,cy:n,radius:a,angle:u,sign:f,cornerRadius:o,cornerIsExternal:l}),p=d.circleTangency,g=d.lineTangency,h=d.theta,v=xo({cx:r,cy:n,radius:a,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:l}),m=v.circleTangency,w=v.lineTangency,x=v.theta,S=l?Math.abs(u-c):Math.abs(u-c)-h-x;if(S<0)return s?"M ".concat(g.x,",").concat(g.y,`
73
+ `).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},qI=function(t){var r=t.cx,n=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,f=$t(c-u),d=Ro({cx:r,cy:n,radius:i,angle:u,sign:f,cornerRadius:o,cornerIsExternal:l}),h=d.circleTangency,y=d.lineTangency,p=d.theta,v=Ro({cx:r,cy:n,radius:i,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:l}),g=v.circleTangency,O=v.lineTangency,x=v.theta,A=l?Math.abs(u-c):Math.abs(u-c)-p-x;if(A<0)return s?"M ".concat(y.x,",").concat(y.y,`
74
74
  a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
75
75
  a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
76
- `):Bv({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:c});var y="M ".concat(g.x,",").concat(g.y,`
77
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,`
78
- A`).concat(a,",").concat(a,",0,").concat(+(S>180),",").concat(+(f<0),",").concat(m.x,",").concat(m.y,`
79
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(w.x,",").concat(w.y,`
80
- `);if(i>0){var b=xo({cx:r,cy:n,radius:i,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),A=b.circleTangency,T=b.lineTangency,j=b.theta,N=xo({cx:r,cy:n,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),_=N.circleTangency,E=N.lineTangency,k=N.theta,M=l?Math.abs(u-c):Math.abs(u-c)-j-k;if(M<0&&o===0)return"".concat(y,"L").concat(r,",").concat(n,"Z");y+="L".concat(E.x,",").concat(E.y,`
81
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(_.x,",").concat(_.y,`
82
- A`).concat(i,",").concat(i,",0,").concat(+(M>180),",").concat(+(f>0),",").concat(A.x,",").concat(A.y,`
83
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(T.x,",").concat(T.y,"Z")}else y+="L".concat(r,",").concat(n,"Z");return y},rD={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Fv=function(t){var r=Rv(Rv({},rD),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,u=r.cornerIsExternal,c=r.startAngle,f=r.endAngle,d=r.className;if(o<a||c===f)return null;var p=ce("recharts-sector",d),g=o-a,h=Or(s,g,0,!0),v;return h>0&&Math.abs(c-f)<360?v=tD({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(h,g/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:c,endAngle:f}):v=Bv({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:c,endAngle:f}),O.createElement("path",bu({},se(r,!0),{className:p,d:v,role:"img"}))};function Ii(e){"@babel/helpers - typeof";return Ii=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},Ii(e)}function xu(){return xu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xu.apply(this,arguments)}function zv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zv(Object(r),!0).forEach(function(n){nD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nD(e,t,r){return t=iD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iD(e){var t=aD(e,"string");return Ii(t)=="symbol"?t:t+""}function aD(e,t){if(Ii(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ii(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Uv={curveBasisClosed:nO,curveBasisOpen:iO,curveBasis:rO,curveBumpX:W1,curveBumpY:U1,curveLinearClosed:aO,curveLinear:wa,curveMonotoneX:oO,curveMonotoneY:sO,curveNatural:lO,curveStep:uO,curveStepAfter:fO,curveStepBefore:cO},wo=function(t){return t.x===+t.x&&t.y===+t.y},Ni=function(t){return t.x},Di=function(t){return t.y},oD=function(t,r){if(le(t))return t;var n="curve".concat(ga(t));return(n==="curveMonotone"||n==="curveBump")&&r?Uv["".concat(n).concat(r==="vertical"?"Y":"X")]:Uv[n]||wa},sD=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,l=t.connectNulls,u=l===void 0?!1:l,c=oD(n,s),f=u?a.filter(function(h){return wo(h)}):a,d;if(Array.isArray(o)){var p=u?o.filter(function(h){return wo(h)}):o,g=f.map(function(h,v){return Wv(Wv({},h),{},{base:p[v]})});return s==="vertical"?d=Oa().y(Di).x1(Ni).x0(function(h){return h.base.x}):d=Oa().x(Ni).y1(Di).y0(function(h){return h.base.y}),d.defined(wo).curve(c),d(g)}return s==="vertical"&&V(o)?d=Oa().y(Di).x1(Ni).x0(o):V(o)?d=Oa().x(Ni).y1(Di).y0(o):d=Ef().x(Ni).y(Di),d.defined(wo).curve(c),d(f)},Nr=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?sD(t):i;return dt.createElement("path",xu({},se(t,!1),ya(t),{className:ce("recharts-curve",r),d:o,ref:a}))},wu={exports:{}},Oo={exports:{}},be={};/** @license React v16.13.1
76
+ `):dy({cx:r,cy:n,innerRadius:a,outerRadius:i,startAngle:u,endAngle:c});var m="M ".concat(y.x,",").concat(y.y,`
77
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(h.x,",").concat(h.y,`
78
+ A`).concat(i,",").concat(i,",0,").concat(+(A>180),",").concat(+(f<0),",").concat(g.x,",").concat(g.y,`
79
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(O.x,",").concat(O.y,`
80
+ `);if(a>0){var w=Ro({cx:r,cy:n,radius:a,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),T=w.circleTangency,_=w.lineTangency,$=w.theta,R=Ro({cx:r,cy:n,radius:a,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),P=R.circleTangency,j=R.lineTangency,L=R.theta,B=l?Math.abs(u-c):Math.abs(u-c)-$-L;if(B<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(j.x,",").concat(j.y,`
81
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,`
82
+ A`).concat(a,",").concat(a,",0,").concat(+(B>180),",").concat(+(f>0),",").concat(T.x,",").concat(T.y,`
83
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(_.x,",").concat(_.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},KI={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},hy=function(t){var r=fy(fy({},KI),t),n=r.cx,a=r.cy,i=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,u=r.cornerIsExternal,c=r.startAngle,f=r.endAngle,d=r.className;if(o<i||c===f)return null;var h=pe("recharts-sector",d),y=o-i,p=$r(s,y,0,!0),v;return p>0&&Math.abs(c-f)<360?v=qI({cx:n,cy:a,innerRadius:i,outerRadius:o,cornerRadius:Math.min(p,y/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:c,endAngle:f}):v=dy({cx:n,cy:a,innerRadius:i,outerRadius:o,startAngle:c,endAngle:f}),S.createElement("path",qu({},fe(r,!0),{className:h,d:v,role:"img"}))};function Ga(e){"@babel/helpers - typeof";return Ga=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},Ga(e)}function Ku(){return Ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ku.apply(this,arguments)}function py(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function vy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?py(Object(r),!0).forEach(function(n){VI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):py(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VI(e,t,r){return t=HI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HI(e){var t=YI(e,"string");return Ga(t)=="symbol"?t:t+""}function YI(e,t){if(Ga(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ga(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yy={curveBasisClosed:VO,curveBasisOpen:HO,curveBasis:KO,curveBumpX:MO,curveBumpY:kO,curveLinearClosed:YO,curveLinear:Bi,curveMonotoneX:XO,curveMonotoneY:JO,curveNatural:ZO,curveStep:QO,curveStepAfter:tS,curveStepBefore:eS},Bo=function(t){return t.x===+t.x&&t.y===+t.y},qa=function(t){return t.x},Ka=function(t){return t.y},XI=function(t,r){if(de(t))return t;var n="curve".concat(Di(t));return(n==="curveMonotone"||n==="curveBump")&&r?yy["".concat(n).concat(r==="vertical"?"Y":"X")]:yy[n]||Bi},JI=function(t){var r=t.type,n=r===void 0?"linear":r,a=t.points,i=a===void 0?[]:a,o=t.baseLine,s=t.layout,l=t.connectNulls,u=l===void 0?!1:l,c=XI(n,s),f=u?i.filter(function(p){return Bo(p)}):i,d;if(Array.isArray(o)){var h=u?o.filter(function(p){return Bo(p)}):o,y=f.map(function(p,v){return vy(vy({},p),{},{base:h[v]})});return s==="vertical"?d=Fi().y(Ka).x1(qa).x0(function(p){return p.base.x}):d=Fi().x(qa).y1(Ka).y0(function(p){return p.base.y}),d.defined(Bo).curve(c),d(y)}return s==="vertical"&&X(o)?d=Fi().y(Ka).x1(qa).x0(o):X(o)?d=Fi().x(qa).y1(Ka).y0(o):d=td().x(qa).y(Ka),d.defined(Bo).curve(c),d(f)},zr=function(t){var r=t.className,n=t.points,a=t.path,i=t.pathRef;if((!n||!n.length)&&!a)return null;var o=n&&n.length?JI(t):a;return bt.createElement("path",Ku({},fe(t,!1),Ni(t),{className:pe("recharts-curve",r),d:o,ref:i}))},Vu={exports:{}},Fo={exports:{}},Oe={};/** @license React v16.13.1
84
84
  * react-is.production.min.js
85
85
  *
86
86
  * Copyright (c) Facebook, Inc. and its affiliates.
87
87
  *
88
88
  * This source code is licensed under the MIT license found in the
89
89
  * LICENSE file in the root directory of this source tree.
90
- */var Gv;function lD(){if(Gv)return be;Gv=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(y){if(typeof y=="object"&&y!==null){var b=y.$$typeof;switch(b){case t:switch(y=y.type,y){case l:case u:case n:case a:case i:case f:return y;default:switch(y=y&&y.$$typeof,y){case s:case c:case g:case p:case o:return y;default:return b}}case r:return b}}}function S(y){return x(y)===u}return be.AsyncMode=l,be.ConcurrentMode=u,be.ContextConsumer=s,be.ContextProvider=o,be.Element=t,be.ForwardRef=c,be.Fragment=n,be.Lazy=g,be.Memo=p,be.Portal=r,be.Profiler=a,be.StrictMode=i,be.Suspense=f,be.isAsyncMode=function(y){return S(y)||x(y)===l},be.isConcurrentMode=S,be.isContextConsumer=function(y){return x(y)===s},be.isContextProvider=function(y){return x(y)===o},be.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},be.isForwardRef=function(y){return x(y)===c},be.isFragment=function(y){return x(y)===n},be.isLazy=function(y){return x(y)===g},be.isMemo=function(y){return x(y)===p},be.isPortal=function(y){return x(y)===r},be.isProfiler=function(y){return x(y)===a},be.isStrictMode=function(y){return x(y)===i},be.isSuspense=function(y){return x(y)===f},be.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===u||y===a||y===i||y===f||y===d||typeof y=="object"&&y!==null&&(y.$$typeof===g||y.$$typeof===p||y.$$typeof===o||y.$$typeof===s||y.$$typeof===c||y.$$typeof===v||y.$$typeof===m||y.$$typeof===w||y.$$typeof===h)},be.typeOf=x,be}var xe={};/** @license React v16.13.1
90
+ */var my;function ZI(){if(my)return Oe;my=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function x(m){if(typeof m=="object"&&m!==null){var w=m.$$typeof;switch(w){case t:switch(m=m.type,m){case l:case u:case n:case i:case a:case f:return m;default:switch(m=m&&m.$$typeof,m){case s:case c:case y:case h:case o:return m;default:return w}}case r:return w}}}function A(m){return x(m)===u}return Oe.AsyncMode=l,Oe.ConcurrentMode=u,Oe.ContextConsumer=s,Oe.ContextProvider=o,Oe.Element=t,Oe.ForwardRef=c,Oe.Fragment=n,Oe.Lazy=y,Oe.Memo=h,Oe.Portal=r,Oe.Profiler=i,Oe.StrictMode=a,Oe.Suspense=f,Oe.isAsyncMode=function(m){return A(m)||x(m)===l},Oe.isConcurrentMode=A,Oe.isContextConsumer=function(m){return x(m)===s},Oe.isContextProvider=function(m){return x(m)===o},Oe.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},Oe.isForwardRef=function(m){return x(m)===c},Oe.isFragment=function(m){return x(m)===n},Oe.isLazy=function(m){return x(m)===y},Oe.isMemo=function(m){return x(m)===h},Oe.isPortal=function(m){return x(m)===r},Oe.isProfiler=function(m){return x(m)===i},Oe.isStrictMode=function(m){return x(m)===a},Oe.isSuspense=function(m){return x(m)===f},Oe.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===u||m===i||m===a||m===f||m===d||typeof m=="object"&&m!==null&&(m.$$typeof===y||m.$$typeof===h||m.$$typeof===o||m.$$typeof===s||m.$$typeof===c||m.$$typeof===v||m.$$typeof===g||m.$$typeof===O||m.$$typeof===p)},Oe.typeOf=x,Oe}var Se={};/** @license React v16.13.1
91
91
  * react-is.development.js
92
92
  *
93
93
  * Copyright (c) Facebook, Inc. and its affiliates.
94
94
  *
95
95
  * This source code is licensed under the MIT license found in the
96
96
  * LICENSE file in the root directory of this source tree.
97
- */var qv;function uD(){return qv||(qv=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(C){return typeof C=="string"||typeof C=="function"||C===n||C===u||C===a||C===i||C===f||C===d||typeof C=="object"&&C!==null&&(C.$$typeof===g||C.$$typeof===p||C.$$typeof===o||C.$$typeof===s||C.$$typeof===c||C.$$typeof===v||C.$$typeof===m||C.$$typeof===w||C.$$typeof===h)}function S(C){if(typeof C=="object"&&C!==null){var fe=C.$$typeof;switch(fe){case t:var K=C.type;switch(K){case l:case u:case n:case a:case i:case f:return K;default:var ye=K&&K.$$typeof;switch(ye){case s:case c:case g:case p:case o:return ye;default:return fe}}case r:return fe}}}var y=l,b=u,A=s,T=o,j=t,N=c,_=n,E=g,k=p,M=r,D=a,L=i,F=f,G=!1;function U(C){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(C)||S(C)===l}function I(C){return S(C)===u}function R(C){return S(C)===s}function z(C){return S(C)===o}function H(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function X(C){return S(C)===c}function ee(C){return S(C)===n}function te(C){return S(C)===g}function ie(C){return S(C)===p}function re(C){return S(C)===r}function W(C){return S(C)===a}function Y(C){return S(C)===i}function Q(C){return S(C)===f}xe.AsyncMode=y,xe.ConcurrentMode=b,xe.ContextConsumer=A,xe.ContextProvider=T,xe.Element=j,xe.ForwardRef=N,xe.Fragment=_,xe.Lazy=E,xe.Memo=k,xe.Portal=M,xe.Profiler=D,xe.StrictMode=L,xe.Suspense=F,xe.isAsyncMode=U,xe.isConcurrentMode=I,xe.isContextConsumer=R,xe.isContextProvider=z,xe.isElement=H,xe.isForwardRef=X,xe.isFragment=ee,xe.isLazy=te,xe.isMemo=ie,xe.isPortal=re,xe.isProfiler=W,xe.isStrictMode=Y,xe.isSuspense=Q,xe.isValidElementType=x,xe.typeOf=S}()),xe}var Kv;function Hv(){return Kv||(Kv=1,process.env.NODE_ENV==="production"?Oo.exports=lD():Oo.exports=uD()),Oo.exports}/*
97
+ */var gy;function QI(){return gy||(gy=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function x(D){return typeof D=="string"||typeof D=="function"||D===n||D===u||D===i||D===a||D===f||D===d||typeof D=="object"&&D!==null&&(D.$$typeof===y||D.$$typeof===h||D.$$typeof===o||D.$$typeof===s||D.$$typeof===c||D.$$typeof===v||D.$$typeof===g||D.$$typeof===O||D.$$typeof===p)}function A(D){if(typeof D=="object"&&D!==null){var ie=D.$$typeof;switch(ie){case t:var K=D.type;switch(K){case l:case u:case n:case i:case a:case f:return K;default:var ee=K&&K.$$typeof;switch(ee){case s:case c:case y:case h:case o:return ee;default:return ie}}case r:return ie}}}var m=l,w=u,T=s,_=o,$=t,R=c,P=n,j=y,L=h,B=r,M=i,E=a,F=f,U=!1;function k(D){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(D)||A(D)===l}function N(D){return A(D)===u}function I(D){return A(D)===s}function W(D){return A(D)===o}function z(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function V(D){return A(D)===c}function Z(D){return A(D)===n}function Q(D){return A(D)===y}function ae(D){return A(D)===h}function te(D){return A(D)===r}function q(D){return A(D)===i}function Y(D){return A(D)===a}function J(D){return A(D)===f}Se.AsyncMode=m,Se.ConcurrentMode=w,Se.ContextConsumer=T,Se.ContextProvider=_,Se.Element=$,Se.ForwardRef=R,Se.Fragment=P,Se.Lazy=j,Se.Memo=L,Se.Portal=B,Se.Profiler=M,Se.StrictMode=E,Se.Suspense=F,Se.isAsyncMode=k,Se.isConcurrentMode=N,Se.isContextConsumer=I,Se.isContextProvider=W,Se.isElement=z,Se.isForwardRef=V,Se.isFragment=Z,Se.isLazy=Q,Se.isMemo=ae,Se.isPortal=te,Se.isProfiler=q,Se.isStrictMode=Y,Se.isSuspense=J,Se.isValidElementType=x,Se.typeOf=A}()),Se}var by;function xy(){return by||(by=1,process.env.NODE_ENV==="production"?Fo.exports=ZI():Fo.exports=QI()),Fo.exports}/*
98
98
  object-assign
99
99
  (c) Sindre Sorhus
100
100
  @license MIT
101
- */var Ou,Vv;function cD(){if(Vv)return Ou;Vv=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ou=i()?Object.assign:function(a,o){for(var s,l=n(a),u,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var f in s)t.call(s,f)&&(l[f]=s[f]);if(e){u=e(s);for(var d=0;d<u.length;d++)r.call(s,u[d])&&(l[u[d]]=s[u[d]])}}return l},Ou}var Su,Yv;function Au(){if(Yv)return Su;Yv=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Su=e,Su}var Pu,Xv;function Zv(){return Xv||(Xv=1,Pu=Function.call.bind(Object.prototype.hasOwnProperty)),Pu}var _u,Jv;function fD(){if(Jv)return _u;Jv=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Au(),r={},n=Zv();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,l,u){if(process.env.NODE_ENV!=="production"){for(var c in a)if(n(a,c)){var f;try{if(typeof a[c]!="function"){var d=Error((l||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=a[c](o,c,l,s,null,t)}catch(g){f=g}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var p=u?u():"";e("Failed "+s+" type: "+f.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},_u=i,_u}var Tu,Qv;function dD(){if(Qv)return Tu;Qv=1;var e=Hv(),t=cD(),r=Au(),n=Zv(),i=fD(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Tu=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(I){var R=I&&(u&&I[u]||I[c]);if(typeof R=="function")return R}var d="<<anonymous>>",p={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:w(),arrayOf:x,element:S(),elementType:y(),instanceOf:b,node:N(),objectOf:T,oneOf:A,oneOfType:j,shape:E,exact:k};function g(I,R){return I===R?I!==0||1/I===1/R:I!==I&&R!==R}function h(I,R){this.message=I,this.data=R&&typeof R=="object"?R:{},this.stack=""}h.prototype=Error.prototype;function v(I){if(process.env.NODE_ENV!=="production")var R={},z=0;function H(ee,te,ie,re,W,Y,Q){if(re=re||d,Y=Y||ie,Q!==r){if(l){var C=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw C.name="Invariant Violation",C}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var fe=re+":"+ie;!R[fe]&&z<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Y+"` prop on `"+re+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),R[fe]=!0,z++)}}return te[ie]==null?ee?te[ie]===null?new h("The "+W+" `"+Y+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new h("The "+W+" `"+Y+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:I(te,ie,re,W,Y)}var X=H.bind(null,!1);return X.isRequired=H.bind(null,!0),X}function m(I){function R(z,H,X,ee,te,ie){var re=z[H],W=L(re);if(W!==I){var Y=F(re);return new h("Invalid "+ee+" `"+te+"` of type "+("`"+Y+"` supplied to `"+X+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return v(R)}function w(){return v(o)}function x(I){function R(z,H,X,ee,te){if(typeof I!="function")return new h("Property `"+te+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var ie=z[H];if(!Array.isArray(ie)){var re=L(ie);return new h("Invalid "+ee+" `"+te+"` of type "+("`"+re+"` supplied to `"+X+"`, expected an array."))}for(var W=0;W<ie.length;W++){var Y=I(ie,W,X,ee,te+"["+W+"]",r);if(Y instanceof Error)return Y}return null}return v(R)}function S(){function I(R,z,H,X,ee){var te=R[z];if(!s(te)){var ie=L(te);return new h("Invalid "+X+" `"+ee+"` of type "+("`"+ie+"` supplied to `"+H+"`, expected a single ReactElement."))}return null}return v(I)}function y(){function I(R,z,H,X,ee){var te=R[z];if(!e.isValidElementType(te)){var ie=L(te);return new h("Invalid "+X+" `"+ee+"` of type "+("`"+ie+"` supplied to `"+H+"`, expected a single ReactElement type."))}return null}return v(I)}function b(I){function R(z,H,X,ee,te){if(!(z[H]instanceof I)){var ie=I.name||d,re=U(z[H]);return new h("Invalid "+ee+" `"+te+"` of type "+("`"+re+"` supplied to `"+X+"`, expected ")+("instance of `"+ie+"`."))}return null}return v(R)}function A(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function R(z,H,X,ee,te){for(var ie=z[H],re=0;re<I.length;re++)if(g(ie,I[re]))return null;var W=JSON.stringify(I,function(Q,C){var fe=F(C);return fe==="symbol"?String(C):C});return new h("Invalid "+ee+" `"+te+"` of value `"+String(ie)+"` "+("supplied to `"+X+"`, expected one of "+W+"."))}return v(R)}function T(I){function R(z,H,X,ee,te){if(typeof I!="function")return new h("Property `"+te+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var ie=z[H],re=L(ie);if(re!=="object")return new h("Invalid "+ee+" `"+te+"` of type "+("`"+re+"` supplied to `"+X+"`, expected an object."));for(var W in ie)if(n(ie,W)){var Y=I(ie,W,X,ee,te+"."+W,r);if(Y instanceof Error)return Y}return null}return v(R)}function j(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var R=0;R<I.length;R++){var z=I[R];if(typeof z!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+G(z)+" at index "+R+"."),o}function H(X,ee,te,ie,re){for(var W=[],Y=0;Y<I.length;Y++){var Q=I[Y],C=Q(X,ee,te,ie,re,r);if(C==null)return null;C.data&&n(C.data,"expectedType")&&W.push(C.data.expectedType)}var fe=W.length>0?", expected one of type ["+W.join(", ")+"]":"";return new h("Invalid "+ie+" `"+re+"` supplied to "+("`"+te+"`"+fe+"."))}return v(H)}function N(){function I(R,z,H,X,ee){return M(R[z])?null:new h("Invalid "+X+" `"+ee+"` supplied to "+("`"+H+"`, expected a ReactNode."))}return v(I)}function _(I,R,z,H,X){return new h((I||"React class")+": "+R+" type `"+z+"."+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function E(I){function R(z,H,X,ee,te){var ie=z[H],re=L(ie);if(re!=="object")return new h("Invalid "+ee+" `"+te+"` of type `"+re+"` "+("supplied to `"+X+"`, expected `object`."));for(var W in I){var Y=I[W];if(typeof Y!="function")return _(X,ee,te,W,F(Y));var Q=Y(ie,W,X,ee,te+"."+W,r);if(Q)return Q}return null}return v(R)}function k(I){function R(z,H,X,ee,te){var ie=z[H],re=L(ie);if(re!=="object")return new h("Invalid "+ee+" `"+te+"` of type `"+re+"` "+("supplied to `"+X+"`, expected `object`."));var W=t({},z[H],I);for(var Y in W){var Q=I[Y];if(n(I,Y)&&typeof Q!="function")return _(X,ee,te,Y,F(Q));if(!Q)return new h("Invalid "+ee+" `"+te+"` key `"+Y+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(z[H],null," ")+`
102
- Valid keys: `+JSON.stringify(Object.keys(I),null," "));var C=Q(ie,Y,X,ee,te+"."+Y,r);if(C)return C}return null}return v(R)}function M(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every(M);if(I===null||s(I))return!0;var R=f(I);if(R){var z=R.call(I),H;if(R!==I.entries){for(;!(H=z.next()).done;)if(!M(H.value))return!1}else for(;!(H=z.next()).done;){var X=H.value;if(X&&!M(X[1]))return!1}}else return!1;return!0;default:return!1}}function D(I,R){return I==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function L(I){var R=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":D(R,I)?"symbol":R}function F(I){if(typeof I>"u"||I===null)return""+I;var R=L(I);if(R==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return R}function G(I){var R=F(I);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function U(I){return!I.constructor||!I.constructor.name?d:I.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},Tu}var Eu,ey;function pD(){if(ey)return Eu;ey=1;var e=Au();function t(){}function r(){}return r.resetWarningCache=t,Eu=function(){function n(o,s,l,u,c,f){if(f!==e){var d=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 d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Eu}if(process.env.NODE_ENV!=="production"){var hD=Hv(),vD=!0;wu.exports=dD()(hD.isElement,vD)}else wu.exports=pD()();var yD=wu.exports;const we=Te(yD);var gD=Object.getOwnPropertyNames,mD=Object.getOwnPropertySymbols,bD=Object.prototype.hasOwnProperty;function ty(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function So(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);var l=e(r,n,i);return a.delete(r),a.delete(n),l}}function ry(e){return gD(e).concat(mD(e))}var xD=Object.hasOwn||function(e,t){return bD.call(e,t)};function Dr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var wD="__v",OD="__o",SD="_owner",ny=Object.getOwnPropertyDescriptor,iy=Object.keys;function AD(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function PD(e,t){return Dr(e.getTime(),t.getTime())}function _D(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function TD(e,t){return e===t}function ay(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,s,l=0;(o=a.next())&&!o.done;){for(var u=t.entries(),c=!1,f=0;(s=u.next())&&!s.done;){if(i[f]){f++;continue}var d=o.value,p=s.value;if(r.equals(d[0],p[0],l,f,e,t,r)&&r.equals(d[1],p[1],d[0],p[0],e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1;l++}return!0}var ED=Dr;function $D(e,t,r){var n=iy(e),i=n.length;if(iy(t).length!==i)return!1;for(;i-- >0;)if(!sy(e,t,r,n[i]))return!1;return!0}function Li(e,t,r){var n=ry(e),i=n.length;if(ry(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=n[i],!sy(e,t,r,a)||(o=ny(e,a),s=ny(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function jD(e,t){return Dr(e.valueOf(),t.valueOf())}function CD(e,t){return e.source===t.source&&e.flags===t.flags}function oy(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,s;(o=a.next())&&!o.done;){for(var l=t.values(),u=!1,c=0;(s=l.next())&&!s.done;){if(!i[c]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=i[c]=!0;break}c++}if(!u)return!1}return!0}function MD(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function kD(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 sy(e,t,r,n){return(n===SD||n===OD||n===wD)&&(e.$$typeof||t.$$typeof)?!0:xD(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var ID="[object Arguments]",ND="[object Boolean]",DD="[object Date]",LD="[object Error]",RD="[object Map]",BD="[object Number]",FD="[object Object]",zD="[object RegExp]",WD="[object Set]",UD="[object String]",GD="[object URL]",qD=Array.isArray,ly=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,uy=Object.assign,KD=Object.prototype.toString.call.bind(Object.prototype.toString);function HD(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,s=e.areObjectsEqual,l=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,c=e.areSetsEqual,f=e.areTypedArraysEqual,d=e.areUrlsEqual;return function(g,h,v){if(g===h)return!0;if(g==null||h==null)return!1;var m=typeof g;if(m!==typeof h)return!1;if(m!=="object")return m==="number"?o(g,h,v):m==="function"?i(g,h,v):!1;var w=g.constructor;if(w!==h.constructor)return!1;if(w===Object)return s(g,h,v);if(qD(g))return t(g,h,v);if(ly!=null&&ly(g))return f(g,h,v);if(w===Date)return r(g,h,v);if(w===RegExp)return u(g,h,v);if(w===Map)return a(g,h,v);if(w===Set)return c(g,h,v);var x=KD(g);return x===DD?r(g,h,v):x===zD?u(g,h,v):x===RD?a(g,h,v):x===WD?c(g,h,v):x===FD?typeof g.then!="function"&&typeof h.then!="function"&&s(g,h,v):x===GD?d(g,h,v):x===LD?n(g,h,v):x===ID?s(g,h,v):x===ND||x===BD||x===UD?l(g,h,v):!1}}function VD(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?Li:AD,areDatesEqual:PD,areErrorsEqual:_D,areFunctionsEqual:TD,areMapsEqual:n?ty(ay,Li):ay,areNumbersEqual:ED,areObjectsEqual:n?Li:$D,arePrimitiveWrappersEqual:jD,areRegExpsEqual:CD,areSetsEqual:n?ty(oy,Li):oy,areTypedArraysEqual:n?Li:MD,areUrlsEqual:kD};if(r&&(i=uy({},i,r(i))),t){var a=So(i.areArraysEqual),o=So(i.areMapsEqual),s=So(i.areObjectsEqual),l=So(i.areSetsEqual);i=uy({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return i}function YD(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function XD(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(l,u){var c=n(),f=c.cache,d=f===void 0?t?new WeakMap:void 0:f,p=c.meta;return r(l,u,{cache:d,equals:i,meta:p,strict:a})};if(t)return function(l,u){return r(l,u,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(l,u){return r(l,u,o)}}var ZD=fr();fr({strict:!0}),fr({circular:!0}),fr({circular:!0,strict:!0}),fr({createInternalComparator:function(){return Dr}}),fr({strict:!0,createInternalComparator:function(){return Dr}}),fr({circular:!0,createInternalComparator:function(){return Dr}}),fr({circular:!0,createInternalComparator:function(){return Dr},strict:!0});function fr(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,s=VD(e),l=HD(s),u=n?n(l):YD(l);return XD({circular:r,comparator:l,createState:i,equals:u,strict:o})}function JD(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function cy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):JD(i)};requestAnimationFrame(n)}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)}function QD(e){return nL(e)||rL(e)||tL(e)||eL()}function eL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
103
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tL(e,t){if(e){if(typeof e=="string")return fy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fy(e,t)}}function fy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nL(e){if(Array.isArray(e))return e}function iL(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=QD(o),l=s[0],u=s.slice(1);if(typeof l=="number"){cy(i.bind(null,u),l);return}i(l),cy(i.bind(null,u));return}$u(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Ri(e){"@babel/helpers - typeof";return Ri=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},Ri(e)}function dy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function py(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dy(Object(r),!0).forEach(function(n){hy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hy(e,t,r){return t=aL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aL(e){var t=oL(e,"string");return Ri(t)==="symbol"?t:String(t)}function oL(e,t){if(Ri(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ri(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sL=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},lL=function(t){return t},uL=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Bi=function(t,r){return Object.keys(r).reduce(function(n,i){return py(py({},n),{},hy({},i,t(i,r[i])))},{})},vy=function(t,r,n){return t.map(function(i){return"".concat(uL(i)," ").concat(r,"ms ").concat(n)}).join(",")},cL=process.env.NODE_ENV!=="production",Ao=function(t,r,n,i,a,o,s,l){if(cL&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,a,o,s,l],c=0;console.warn(r.replace(/%s/g,function(){return u[c++]}))}};function fL(e,t){return hL(e)||pL(e,t)||yy(e,t)||dL()}function dL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
104
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pL(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function hL(e){if(Array.isArray(e))return e}function vL(e){return mL(e)||gL(e)||yy(e)||yL()}function yL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
105
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yy(e,t){if(e){if(typeof e=="string")return ju(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ju(e,t)}}function gL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mL(e){if(Array.isArray(e))return ju(e)}function ju(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Po=1e-4,gy=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},my=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},by=function(t,r){return function(n){var i=gy(t,r);return my(i,n)}},bL=function(t,r){return function(n){var i=gy(t,r),a=[].concat(vL(i.map(function(o,s){return o*s}).slice(1)),[0]);return my(a,n)}},xy=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var u=l[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),c=fL(u,4);i=c[0],a=c[1],o=c[2],s=c[3]}else Ao(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}}Ao([i,o,a,s].every(function(v){return typeof v=="number"&&v>=0&&v<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=by(i,o),d=by(a,s),p=bL(i,o),g=function(m){return m>1?1:m<0?0:m},h=function(m){for(var w=m>1?1:m,x=w,S=0;S<8;++S){var y=f(x)-w,b=p(x);if(Math.abs(y-w)<Po||b<Po)return d(x);x=g(x-y/b)}return d(x)};return h.isStepper=!1,h},xL=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,l=function(c,f,d){var p=-(c-f)*n,g=d*a,h=d+(p-g)*s/1e3,v=d*s/1e3+c;return Math.abs(v-f)<Po&&Math.abs(h)<Po?[f,0]:[v,h]};return l.isStepper=!0,l.dt=s,l},wL=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return xy(i);case"spring":return xL();default:if(i.split("(")[0]==="cubic-bezier")return xy(i);Ao(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof i=="function"?i:(Ao(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function Fi(e){"@babel/helpers - typeof";return Fi=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},Fi(e)}function wy(e){return AL(e)||SL(e)||Sy(e)||OL()}function OL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
106
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function AL(e){if(Array.isArray(e))return Mu(e)}function Oy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Oy(Object(r),!0).forEach(function(n){Cu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cu(e,t,r){return t=PL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PL(e){var t=_L(e,"string");return Fi(t)==="symbol"?t:String(t)}function _L(e,t){if(Fi(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fi(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TL(e,t){return jL(e)||$L(e,t)||Sy(e,t)||EL()}function EL(){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 Sy(e,t){if(e){if(typeof e=="string")return Mu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mu(e,t)}}function Mu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $L(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function jL(e){if(Array.isArray(e))return e}var _o=function(t,r,n){return t+(r-t)*n},ku=function(t){var r=t.from,n=t.to;return r!==n},CL=function e(t,r,n){var i=Bi(function(a,o){if(ku(o)){var s=t(o.from,o.to,o.velocity),l=TL(s,2),u=l[0],c=l[1];return Xe(Xe({},o),{},{from:u,velocity:c})}return o},r);return n<1?Bi(function(a,o){return ku(o)?Xe(Xe({},o),{},{velocity:_o(o.velocity,i[a].velocity,n),from:_o(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const ML=function(e,t,r,n,i){var a=sL(e,t),o=a.reduce(function(v,m){return Xe(Xe({},v),{},Cu({},m,[e[m],t[m]]))},{}),s=a.reduce(function(v,m){return Xe(Xe({},v),{},Cu({},m,{from:e[m],velocity:0,to:t[m]}))},{}),l=-1,u,c,f=function(){return null},d=function(){return Bi(function(m,w){return w.from},s)},p=function(){return!Object.values(s).filter(ku).length},g=function(m){u||(u=m);var w=m-u,x=w/r.dt;s=CL(r,s,x),i(Xe(Xe(Xe({},e),t),d())),u=m,p()||(l=requestAnimationFrame(f))},h=function(m){c||(c=m);var w=(m-c)/n,x=Bi(function(y,b){return _o.apply(void 0,wy(b).concat([r(w)]))},o);if(i(Xe(Xe(Xe({},e),t),x)),w<1)l=requestAnimationFrame(f);else{var S=Bi(function(y,b){return _o.apply(void 0,wy(b).concat([r(1)]))},o);i(Xe(Xe(Xe({},e),t),S))}};return f=r.isStepper?g:h,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(l)}}};function bn(e){"@babel/helpers - typeof";return bn=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},bn(e)}var kL=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function IL(e,t){if(e==null)return{};var r=NL(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function NL(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Iu(e){return BL(e)||RL(e)||LL(e)||DL()}function DL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
108
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LL(e,t){if(e){if(typeof e=="string")return Nu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nu(e,t)}}function RL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function BL(e){if(Array.isArray(e))return Nu(e)}function Nu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ay(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ay(Object(r),!0).forEach(function(n){zi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ay(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zi(e,t,r){return t=Py(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Py(n.key),n)}}function WL(e,t,r){return t&&zL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Py(e){var t=UL(e,"string");return bn(t)==="symbol"?t:String(t)}function UL(e,t){if(bn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GL(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&&Du(e,t)}function Du(e,t){return Du=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Du(e,t)}function qL(e){var t=KL();return function(){var n=To(e),i;if(t){var a=To(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Lu(this,i)}}function Lu(e,t){if(t&&(bn(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 KL(){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 To(e){return To=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},To(e)}var _t=function(e){GL(r,e);var t=qL(r);function r(n,i){var a;FL(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,l=o.attributeName,u=o.from,c=o.to,f=o.steps,d=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Ru(a)),a.changeStyle=a.changeStyle.bind(Ru(a)),!s||p<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:c}),Lu(a);if(f&&f.length)a.state={style:f[0].style};else if(u){if(typeof d=="function")return a.state={style:u},Lu(a);a.state={style:l?zi({},l,u):u}}else a.state={style:{}};return a}return WL(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,u=a.shouldReAnimate,c=a.to,f=a.from,d=this.state.style;if(s){if(!o){var p={style:l?zi({},l,c):c};this.state&&d&&(l&&d[l]!==c||!l&&d!==c)&&this.setState(p);return}if(!(ZD(i.to,c)&&i.canBegin&&i.isActive)){var g=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var h=g||u?f:i.to;if(this.state&&d){var v={style:l?zi({},l,h):h};(l&&d[l]!==h||!l&&d!==h)&&this.setState(v)}this.runAnimation(Pt(Pt({},this.props),{},{from:h,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,l=i.duration,u=i.easing,c=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,p=ML(o,s,wL(u),l,this.changeStyle),g=function(){a.stopJSAnimation=p()};this.manager.start([d,c,g,l,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,u=o[0],c=u.style,f=u.duration,d=f===void 0?0:f,p=function(h,v,m){if(m===0)return h;var w=v.duration,x=v.easing,S=x===void 0?"ease":x,y=v.style,b=v.properties,A=v.onAnimationEnd,T=m>0?o[m-1]:v,j=b||Object.keys(y);if(typeof S=="function"||S==="spring")return[].concat(Iu(h),[a.runJSAnimation.bind(a,{from:T.style,to:y,duration:w,easing:S}),w]);var N=vy(j,w,S),_=Pt(Pt(Pt({},T.style),y),{},{transition:N});return[].concat(Iu(h),[_,w,A]).filter(lL)};return this.manager.start([l].concat(Iu(o.reduce(p,[c,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=iL());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,u=i.easing,c=i.onAnimationStart,f=i.onAnimationEnd,d=i.steps,p=i.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var h=s?zi({},s,l):l,v=vy(Object.keys(h),o,u);g.start([c,a,Pt(Pt({},h),{},{transition:v}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=IL(i,kL),u=O.Children.count(a),c=this.state.style;if(typeof a=="function")return a(c);if(!s||u===0||o<=0)return a;var f=function(p){var g=p.props,h=g.style,v=h===void 0?{}:h,m=g.className,w=O.cloneElement(p,Pt(Pt({},l),{},{style:Pt(Pt({},v),c),className:m}));return w};return u===1?f(O.Children.only(a)):O.createElement("div",null,O.Children.map(a,function(d){return f(d)}))}}]),r}(O.PureComponent);_t.displayName="Animate",_t.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},_t.propTypes={from:we.oneOfType([we.object,we.string]),to:we.oneOfType([we.object,we.string]),attributeName:we.string,duration:we.number,begin:we.number,easing:we.oneOfType([we.string,we.func]),steps:we.arrayOf(we.shape({duration:we.number.isRequired,style:we.object.isRequired,easing:we.oneOfType([we.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),we.func]),properties:we.arrayOf("string"),onAnimationEnd:we.func})),children:we.oneOfType([we.node,we.func]),isActive:we.bool,canBegin:we.bool,onAnimationEnd:we.func,shouldReAnimate:we.bool,onAnimationStart:we.func,onAnimationReStart:we.func};function Wi(e){"@babel/helpers - typeof";return Wi=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},Wi(e)}function Eo(){return Eo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Eo.apply(this,arguments)}function HL(e,t){return ZL(e)||XL(e,t)||YL(e,t)||VL()}function VL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
109
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YL(e,t){if(e){if(typeof e=="string")return _y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _y(e,t)}}function _y(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function XL(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function ZL(e){if(Array.isArray(e))return e}function Ty(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ey(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ty(Object(r),!0).forEach(function(n){JL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ty(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JL(e,t,r){return t=QL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QL(e){var t=eR(e,"string");return Wi(t)=="symbol"?t:t+""}function eR(e,t){if(Wi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $y=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,l=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,c;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],d=0,p=4;d<p;d++)f[d]=a[d]>o?o:a[d];c="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+l*f[0],",").concat(r)),c+="L ".concat(t+n-l*f[1],",").concat(r),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`,
110
- `).concat(t+n,",").concat(r+s*f[1])),c+="L ".concat(t+n,",").concat(r+i-s*f[2]),f[2]>0&&(c+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`,
111
- `).concat(t+n-l*f[2],",").concat(r+i)),c+="L ".concat(t+l*f[3],",").concat(r+i),f[3]>0&&(c+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`,
112
- `).concat(t,",").concat(r+i-s*f[3])),c+="Z"}else if(o>0&&a===+a&&a>0){var g=Math.min(o,a);c="M ".concat(t,",").concat(r+s*g,`
113
- A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+l*g,",").concat(r,`
114
- L `).concat(t+n-l*g,",").concat(r,`
115
- A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*g,`
116
- L `).concat(t+n,",").concat(r+i-s*g,`
117
- A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+n-l*g,",").concat(r+i,`
118
- L `).concat(t+l*g,",").concat(r+i,`
119
- A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*g," Z")}else c="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return c},tR=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(a,a+s),c=Math.max(a,a+s),f=Math.min(o,o+l),d=Math.max(o,o+l);return n>=u&&n<=c&&i>=f&&i<=d}return!1},rR={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Bu=function(t){var r=Ey(Ey({},rR),t),n=O.useRef(),i=O.useState(-1),a=HL(i,2),o=a[0],s=a[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var S=n.current.getTotalLength();S&&s(S)}catch{}},[]);var l=r.x,u=r.y,c=r.width,f=r.height,d=r.radius,p=r.className,g=r.animationEasing,h=r.animationDuration,v=r.animationBegin,m=r.isAnimationActive,w=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||c===0||f===0)return null;var x=ce("recharts-rectangle",p);return w?O.createElement(_t,{canBegin:o>0,from:{width:c,height:f,x:l,y:u},to:{width:c,height:f,x:l,y:u},duration:h,animationEasing:g,isActive:w},function(S){var y=S.width,b=S.height,A=S.x,T=S.y;return O.createElement(_t,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:h,isActive:m,easing:g},O.createElement("path",Eo({},se(r,!0),{className:x,d:$y(A,T,y,b,d),ref:n})))}):O.createElement("path",Eo({},se(r,!0),{className:x,d:$y(l,u,c,f,d)}))};function Fu(){return Fu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fu.apply(this,arguments)}var $o=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=ce("recharts-dot",a);return r===+r&&n===+n&&i===+i?dt.createElement("circle",Fu({},se(t,!1),ya(t),{className:o,cx:r,cy:n,r:i})):null};function Ui(e){"@babel/helpers - typeof";return Ui=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},Ui(e)}var nR=["x","y","top","left","width","height","className"];function zu(){return zu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zu.apply(this,arguments)}function jy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function iR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jy(Object(r),!0).forEach(function(n){aR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aR(e,t,r){return t=oR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oR(e){var t=sR(e,"string");return Ui(t)=="symbol"?t:t+""}function sR(e,t){if(Ui(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ui(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lR(e,t){if(e==null)return{};var r=uR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var cR=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},fR=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,c=t.width,f=c===void 0?0:c,d=t.height,p=d===void 0?0:d,g=t.className,h=lR(t,nR),v=iR({x:n,y:a,top:s,left:u,width:f,height:p},h);return!V(n)||!V(a)||!V(f)||!V(p)||!V(s)||!V(u)?null:O.createElement("path",zu({},se(v,!0),{className:ce("recharts-cross",g),d:cR(n,a,f,p,s,u)}))},dR=dd,pR=dR(Object.getPrototypeOf,Object),hR=pR,vR=zt,yR=hR,gR=Wt,mR="[object Object]",bR=Function.prototype,xR=Object.prototype,Cy=bR.toString,wR=xR.hasOwnProperty,OR=Cy.call(Object);function SR(e){if(!gR(e)||vR(e)!=mR)return!1;var t=yR(e);if(t===null)return!0;var r=wR.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Cy.call(r)==OR}var AR=SR;const PR=Te(AR);var _R=zt,TR=Wt,ER="[object Boolean]";function $R(e){return e===!0||e===!1||TR(e)&&_R(e)==ER}var jR=$R;const CR=Te(jR);function Gi(e){"@babel/helpers - typeof";return Gi=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},Gi(e)}function jo(){return jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jo.apply(this,arguments)}function MR(e,t){return DR(e)||NR(e,t)||IR(e,t)||kR()}function kR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
120
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IR(e,t){if(e){if(typeof e=="string")return My(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return My(e,t)}}function My(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function NR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function DR(e){if(Array.isArray(e))return e}function ky(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Iy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ky(Object(r),!0).forEach(function(n){LR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ky(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LR(e,t,r){return t=RR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RR(e){var t=BR(e,"string");return Gi(t)=="symbol"?t:t+""}function BR(e,t){if(Gi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ny=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},FR={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},zR=function(t){var r=Iy(Iy({},FR),t),n=O.useRef(),i=O.useState(-1),a=MR(i,2),o=a[0],s=a[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&s(x)}catch{}},[]);var l=r.x,u=r.y,c=r.upperWidth,f=r.lowerWidth,d=r.height,p=r.className,g=r.animationEasing,h=r.animationDuration,v=r.animationBegin,m=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||d!==+d||c===0&&f===0||d===0)return null;var w=ce("recharts-trapezoid",p);return m?O.createElement(_t,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:u},to:{upperWidth:c,lowerWidth:f,height:d,x:l,y:u},duration:h,animationEasing:g,isActive:m},function(x){var S=x.upperWidth,y=x.lowerWidth,b=x.height,A=x.x,T=x.y;return O.createElement(_t,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:h,easing:g},O.createElement("path",jo({},se(r,!0),{className:w,d:Ny(A,T,S,y,b),ref:n})))}):O.createElement("g",null,O.createElement("path",jo({},se(r,!0),{className:w,d:Ny(l,u,c,f,d)})))},WR=["option","shapeType","propTransformer","activeClassName","isActive"];function qi(e){"@babel/helpers - typeof";return qi=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},qi(e)}function UR(e,t){if(e==null)return{};var r=GR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function GR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Dy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Co(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dy(Object(r),!0).forEach(function(n){qR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qR(e,t,r){return t=KR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KR(e){var t=HR(e,"string");return qi(t)=="symbol"?t:t+""}function HR(e,t){if(qi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VR(e,t){return Co(Co({},t),e)}function YR(e,t){return e==="symbols"}function Ly(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return O.createElement(Bu,r);case"trapezoid":return O.createElement(zR,r);case"sector":return O.createElement(Fv,r);case"symbols":if(YR(t))return O.createElement(Ta,r);break;default:return null}}function XR(e){return O.isValidElement(e)?e.props:e}function Wu(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?VR:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,l=UR(e,WR),u;if(O.isValidElement(t))u=O.cloneElement(t,Co(Co({},l),XR(t)));else if(le(t))u=t(l);else if(PR(t)&&!CR(t)){var c=i(t,l);u=O.createElement(Ly,{shapeType:r,elementProps:c})}else{var f=l;u=O.createElement(Ly,{shapeType:r,elementProps:f})}return s?O.createElement(ve,{className:o},u):u}function Mo(e,t){return t!=null&&"trapezoids"in e.props}function ko(e,t){return t!=null&&"sectors"in e.props}function Ki(e,t){return t!=null&&"points"in e.props}function ZR(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function JR(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function QR(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function e3(e,t){var r;return Mo(e,t)?r=ZR:ko(e,t)?r=JR:Ki(e,t)&&(r=QR),r}function t3(e,t){var r;return Mo(e,t)?r="trapezoids":ko(e,t)?r="sectors":Ki(e,t)&&(r="points"),r}function r3(e,t){if(Mo(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}if(ko(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}return Ki(e,t)?t.payload:{}}function n3(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=t3(r,t),a=r3(r,t),o=n.filter(function(l,u){var c=jr(a,l),f=r.props[i].filter(function(g){var h=e3(r,t);return h(g,t)}),d=r.props[i].indexOf(f[f.length-1]),p=u===d;return c&&p}),s=n.indexOf(o[o.length-1]);return s}var i3=Math.ceil,a3=Math.max;function o3(e,t,r,n){for(var i=-1,a=a3(i3((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var s3=o3,l3=cp,Ry=1/0,u3=17976931348623157e292;function c3(e){if(!e)return e===0?e:0;if(e=l3(e),e===Ry||e===-Ry){var t=e<0?-1:1;return t*u3}return e===e?e:0}var By=c3,f3=s3,d3=Da,Uu=By;function p3(e){return function(t,r,n){return n&&typeof n!="number"&&d3(t,r,n)&&(r=n=void 0),t=Uu(t),r===void 0?(r=t,t=0):r=Uu(r),n=n===void 0?t<r?1:-1:Uu(n),f3(t,r,n,e)}}var h3=p3,v3=h3,y3=v3(),g3=y3;const Io=Te(g3);function Hi(e){"@babel/helpers - typeof";return Hi=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},Hi(e)}function Fy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fy(Object(r),!0).forEach(function(n){Wy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wy(e,t,r){return t=m3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m3(e){var t=b3(e,"string");return Hi(t)=="symbol"?t:t+""}function b3(e,t){if(Hi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var x3=["Webkit","Moz","O","ms"],w3=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=x3.reduce(function(a,o){return zy(zy({},a),{},Wy({},o+n,r))},{});return i[t]=r,i};function xn(e){"@babel/helpers - typeof";return xn=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},xn(e)}function No(){return No=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},No.apply(this,arguments)}function Uy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uy(Object(r),!0).forEach(function(n){ut(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function O3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gy(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ky(n.key),n)}}function S3(e,t,r){return t&&Gy(e.prototype,t),r&&Gy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function A3(e,t,r){return t=Do(t),P3(e,qy()?Reflect.construct(t,r||[],Do(e).constructor):t.apply(e,r))}function P3(e,t){if(t&&(xn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _3(e)}function _3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qy=function(){return!!e})()}function Do(e){return Do=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Do(e)}function T3(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&&qu(e,t)}function qu(e,t){return qu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qu(e,t)}function ut(e,t,r){return t=Ky(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ky(e){var t=E3(e,"string");return xn(t)=="symbol"?t:t+""}function E3(e,t){if(xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $3=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,u=pi().domain(Io(0,l)).range([a,a+o-s]),c=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(i),scale:u,scaleValues:c}},Hy=function(t){return t.changedTouches&&!!t.changedTouches.length},wn=function(e){function t(r){var n;return O3(this,t),n=A3(this,t,[r]),ut(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),ut(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),ut(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),ut(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),ut(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),ut(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),ut(n,"handleSlideDragStart",function(i){var a=Hy(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return T3(t,e),S3(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,c=u.length-1,f=Math.min(i,a),d=Math.max(i,a),p=t.getIndexInRange(o,f),g=t.getIndexInRange(o,d);return{startIndex:p-p%l,endIndex:g===c?c:g-g%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,l=Ge(a[n],s,n);return le(o)?o(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,l=this.props,u=l.x,c=l.width,f=l.travellerWidth,d=l.startIndex,p=l.endIndex,g=l.onChange,h=n.pageX-a;h>0?h=Math.min(h,u+c-f-s,u+c-f-o):h<0&&(h=Math.max(h,u-o,u-s));var v=this.getIndex({startX:o+h,endX:s+h});(v.startIndex!==d||v.endIndex!==p)&&g&&g(v),this.setState({startX:o+h,endX:s+h,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=Hy(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,l=i.startX,u=this.state[o],c=this.props,f=c.x,d=c.width,p=c.travellerWidth,g=c.onChange,h=c.gap,v=c.data,m={startX:this.state.startX,endX:this.state.endX},w=n.pageX-a;w>0?w=Math.min(w,f+d-p-u):w<0&&(w=Math.max(w,f-u)),m[o]=u+w;var x=this.getIndex(m),S=x.startIndex,y=x.endIndex,b=function(){var T=v.length-1;return o==="startX"&&(s>l?S%h===0:y%h===0)||s<l&&y===T||o==="endX"&&(s>l?y%h===0:S%h===0)||s>l&&y===T};this.setState(ut(ut({},o,u+w),"brushMoveStartX",n.pageX),function(){g&&b()&&g(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,l=o.startX,u=o.endX,c=this.state[i],f=s.indexOf(c);if(f!==-1){var d=f+n;if(!(d===-1||d>=s.length)){var p=s[d];i==="startX"&&p>=u||i==="endX"&&p<=l||this.setState(ut({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.fill,u=n.stroke;return O.createElement("rect",{stroke:u,fill:l,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.data,u=n.children,c=n.padding,f=O.Children.only(u);return f?O.cloneElement(f,{x:i,y:a,width:o,height:s,margin:c,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,l=this.props,u=l.y,c=l.travellerWidth,f=l.height,d=l.traveller,p=l.ariaLabel,g=l.data,h=l.startIndex,v=l.endIndex,m=Math.max(n,this.props.x),w=Gu(Gu({},se(this.props,!1)),{},{x:m,y:u,width:c,height:f}),x=p||"Min value: ".concat((a=g[h])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=g[v])===null||o===void 0?void 0:o.name);return O.createElement(ve,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(y){["ArrowLeft","ArrowRight"].includes(y.key)&&(y.preventDefault(),y.stopPropagation(),s.handleTravellerMoveKeyboard(y.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,w))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,l=a.stroke,u=a.travellerWidth,c=Math.min(n,i)+u,f=Math.max(Math.abs(i-n)-u,0);return O.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:c,y:o,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,l=n.travellerWidth,u=n.stroke,c=this.state,f=c.startX,d=c.endX,p=5,g={pointerEvents:"none",fill:u};return O.createElement(ve,{className:"recharts-brush-texts"},O.createElement(Ua,No({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-p,y:o+s/2},g),this.getTextOfTick(i)),O.createElement(Ua,No({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+l+p,y:o+s/2},g),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,l=n.y,u=n.width,c=n.height,f=n.alwaysShowText,d=this.state,p=d.startX,g=d.endX,h=d.isTextActive,v=d.isSlideMoving,m=d.isTravellerMoving,w=d.isTravellerFocused;if(!i||!i.length||!V(s)||!V(l)||!V(u)||!V(c)||u<=0||c<=0)return null;var x=ce("recharts-brush",a),S=O.Children.count(o)===1,y=w3("userSelect","none");return O.createElement(ve,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:y},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(p,g),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(g,"endX"),(h||v||m||w||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,l=n.stroke,u=Math.floor(a+s/2)-1;return O.createElement(O.Fragment,null,O.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),O.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),O.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return O.isValidElement(n)?a=O.cloneElement(n,i):le(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,l=n.travellerWidth,u=n.updateId,c=n.startIndex,f=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return Gu({prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o},a&&a.length?$3({data:a,width:o,x:s,travellerWidth:l,startIndex:c,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+o-l]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var l=Math.floor((o+s)/2);n[l]>i?s=l:o=l}return i>=n[s]?s:o}}])}(O.PureComponent);ut(wn,"displayName","Brush"),ut(wn,"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 j3=sl;function C3(e,t){var r;return j3(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var M3=C3,k3=Zf,I3=ir,N3=M3,D3=rt,L3=Da;function R3(e,t,r){var n=D3(e)?k3:N3;return r&&L3(e,t,r)&&(t=void 0),n(e,I3(t))}var B3=R3;const F3=Te(B3);var Bt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Vy=Hd;function z3(e,t,r){t=="__proto__"&&Vy?Vy(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var W3=z3,U3=W3,G3=Ud,q3=ir;function K3(e,t){var r={};return t=q3(t),G3(e,function(n,i,a){U3(r,i,t(n,i,a))}),r}var H3=K3;const V3=Te(H3);function Y3(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var X3=Y3,Z3=sl;function J3(e,t){var r=!0;return Z3(e,function(n,i,a){return r=!!t(n,i,a),r}),r}var Q3=J3,eB=X3,tB=Q3,rB=ir,nB=rt,iB=Da;function aB(e,t,r){var n=nB(e)?eB:tB;return r&&iB(e,t,r)&&(t=void 0),n(e,rB(t))}var oB=aB;const Yy=Te(oB);var sB=["x","y"];function On(e){"@babel/helpers - typeof";return On=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},On(e)}function Ku(){return Ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ku.apply(this,arguments)}function Xy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xy(Object(r),!0).forEach(function(n){lB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lB(e,t,r){return t=uB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uB(e){var t=cB(e,"string");return On(t)=="symbol"?t:t+""}function cB(e,t){if(On(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(On(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fB(e,t){if(e==null)return{};var r=dB(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dB(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function pB(e,t){var r=e.x,n=e.y,i=fB(e,sB),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),u="".concat(t.height||i.height),c=parseInt(u,10),f="".concat(t.width||i.width),d=parseInt(f,10);return Vi(Vi(Vi(Vi(Vi({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:c,width:d,name:t.name,radius:t.radius})}function Zy(e){return O.createElement(Wu,Ku({shapeType:"rectangle",propTransformer:pB,activeClassName:"recharts-active-bar"},e))}var hB=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=V(n)||_w(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?at(!1,"minPointSize callback function received a value with type of ".concat(On(n),". Currently only numbers or null/undefined are supported.")):at()),r)}},vB=["value","background"],Jy;function Sn(e){"@babel/helpers - typeof";return Sn=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},Sn(e)}function yB(e,t){if(e==null)return{};var r=gB(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gB(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Lo(){return Lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lo.apply(this,arguments)}function Qy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qy(Object(r),!0).forEach(function(n){dr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rg(n.key),n)}}function bB(e,t,r){return t&&eg(e.prototype,t),r&&eg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xB(e,t,r){return t=Ro(t),wB(e,tg()?Reflect.construct(t,r||[],Ro(e).constructor):t.apply(e,r))}function wB(e,t){if(t&&(Sn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OB(e)}function OB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tg=function(){return!!e})()}function Ro(e){return Ro=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ro(e)}function SB(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&&Hu(e,t)}function Hu(e,t){return Hu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hu(e,t)}function dr(e,t,r){return t=rg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rg(e){var t=AB(e,"string");return Sn(t)=="symbol"?t:t+""}function AB(e,t){if(Sn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var An=function(e){function t(){var r;mB(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=xB(this,t,[].concat(i)),dr(r,"state",{isAnimationFinished:!1}),dr(r,"id",wr("recharts-bar-")),dr(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),dr(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return SB(t,e),bB(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,l=a.activeIndex,u=a.activeBar,c=se(this.props,!1);return n&&n.map(function(f,d){var p=d===l,g=p?u:o,h=Be(Be(Be({},c),f),{},{isActive:p,option:g,index:d,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return O.createElement(ve,Lo({className:"recharts-bar-rectangle"},Qn(i.props,f,d),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(d)}),O.createElement(Zy,h))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,l=i.animationBegin,u=i.animationDuration,c=i.animationEasing,f=i.animationId,d=this.state.prevData;return O.createElement(_t,{begin:l,duration:u,isActive:s,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var g=p.t,h=a.map(function(v,m){var w=d&&d[m];if(w){var x=De(w.x,v.x),S=De(w.y,v.y),y=De(w.width,v.width),b=De(w.height,v.height);return Be(Be({},v),{},{x:x(g),y:S(g),width:y(g),height:b(g)})}if(o==="horizontal"){var A=De(0,v.height),T=A(g);return Be(Be({},v),{},{y:v.y+v.height-T,height:T})}var j=De(0,v.width),N=j(g);return Be(Be({},v),{},{width:N})});return O.createElement(ve,null,n.renderRectanglesStatically(h))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!jr(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,l=se(this.props.background,!1);return a.map(function(u,c){u.value;var f=u.background,d=yB(u,vB);if(!f)return null;var p=Be(Be(Be(Be(Be({},d),{},{fill:"#eee"},f),l),Qn(n.props,u,c)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:c,className:"recharts-bar-background-rectangle"});return O.createElement(Zy,Lo({key:"background-bar-".concat(c),option:n.props.background,isActive:c===s},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,l=a.yAxis,u=a.layout,c=a.children,f=nt(c,yn);if(!f)return null;var d=u==="vertical"?o[0].height/2:o[0].width/2,p=function(v,m){var w=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:w,errorVal:Ge(v,m)}},g={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(ve,g,f.map(function(h){return O.cloneElement(h,{key:"error-bar-".concat(i,"-").concat(h.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,offset:d,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,l=n.yAxis,u=n.left,c=n.top,f=n.width,d=n.height,p=n.isAnimationActive,g=n.background,h=n.id;if(i||!a||!a.length)return null;var v=this.state.isAnimationFinished,m=ce("recharts-bar",o),w=s&&s.allowDataOverflow,x=l&&l.allowDataOverflow,S=w||x,y=oe(h)?this.id:h;return O.createElement(ve,{className:m},w||x?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(y)},O.createElement("rect",{x:w?u:u-f/2,y:x?c:c-d/2,width:w?f:f*2,height:x?d:d*2}))):null,O.createElement(ve,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(y,")"):null},g?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,y),(!p||v)&&Rt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])}(O.PureComponent);Jy=An,dr(An,"displayName","Bar"),dr(An,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ar.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),dr(An,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,c=e.dataStartIndex,f=e.displayedData,d=e.offset,p=XI(n,r);if(!p)return null;var g=t.layout,h=r.type.defaultProps,v=h!==void 0?Be(Be({},h),r.props):r.props,m=v.dataKey,w=v.children,x=v.minPointSize,S=g==="horizontal"?o:a,y=u?S.scale.domain():null,b=iN({numericAxis:S}),A=nt(w,gl),T=f.map(function(j,N){var _,E,k,M,D,L;u?_=ZI(u[c+N],y):(_=Ge(j,m),Array.isArray(_)||(_=[b,_]));var F=hB(x,Jy.defaultProps.minPointSize)(_[1],N);if(g==="horizontal"){var G,U=[o.scale(_[0]),o.scale(_[1])],I=U[0],R=U[1];E=Sv({axis:a,ticks:s,bandSize:i,offset:p.offset,entry:j,index:N}),k=(G=R??I)!==null&&G!==void 0?G:void 0,M=p.size;var z=I-R;if(D=Number.isNaN(z)?0:z,L={x:E,y:o.y,width:M,height:o.height},Math.abs(F)>0&&Math.abs(D)<Math.abs(F)){var H=Ot(D||F)*(Math.abs(F)-Math.abs(D));k-=H,D+=H}}else{var X=[a.scale(_[0]),a.scale(_[1])],ee=X[0],te=X[1];if(E=ee,k=Sv({axis:o,ticks:l,bandSize:i,offset:p.offset,entry:j,index:N}),M=te-ee,D=p.size,L={x:a.x,y:k,width:a.width,height:D},Math.abs(F)>0&&Math.abs(M)<Math.abs(F)){var ie=Ot(M||F)*(Math.abs(F)-Math.abs(M));M+=ie}}return Be(Be(Be({},j),{},{x:E,y:k,width:M,height:D,value:u?_:_[1],payload:j,background:L},A&&A[N]&&A[N].props),{},{tooltipPayload:[Ev(r,j)],tooltipPosition:{x:E+M/2,y:k+D/2}})});return Be({data:T,layout:g},d)});function Yi(e){"@babel/helpers - typeof";return Yi=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},Yi(e)}function PB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ng(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ag(n.key),n)}}function _B(e,t,r){return t&&ng(e.prototype,t),r&&ng(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ig(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ig(Object(r),!0).forEach(function(n){Bo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ig(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bo(e,t,r){return t=ag(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ag(e){var t=TB(e,"string");return Yi(t)=="symbol"?t:t+""}function TB(e,t){if(Yi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var EB=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.layout,u=t.children,c=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},d=!!st(u,An);return c.reduce(function(p,g){var h=r[g],v=h.orientation,m=h.domain,w=h.padding,x=w===void 0?{}:w,S=h.mirror,y=h.reversed,b="".concat(v).concat(S?"Mirror":""),A,T,j,N,_;if(h.type==="number"&&(h.padding==="gap"||h.padding==="no-gap")){var E=m[1]-m[0],k=1/0,M=h.categoricalDomain.sort(jw);if(M.forEach(function(X,ee){ee>0&&(k=Math.min((X||0)-(M[ee-1]||0),k))}),Number.isFinite(k)){var D=k/E,L=h.layout==="vertical"?n.height:n.width;if(h.padding==="gap"&&(A=D*L/2),h.padding==="no-gap"){var F=Or(t.barCategoryGap,D*L),G=D*L/2;A=G-F-(G-F)/L*F}}}i==="xAxis"?T=[n.left+(x.left||0)+(A||0),n.left+n.width-(x.right||0)-(A||0)]:i==="yAxis"?T=l==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(A||0),n.top+n.height-(x.bottom||0)-(A||0)]:T=h.range,y&&(T=[T[1],T[0]]);var U=VI(h,a,d),I=U.scale,R=U.realScaleType;I.domain(m).range(T),YI(I);var z=nN(I,Tt(Tt({},h),{},{realScaleType:R}));i==="xAxis"?(_=v==="top"&&!S||v==="bottom"&&S,j=n.left,N=f[b]-_*h.height):i==="yAxis"&&(_=v==="left"&&!S||v==="right"&&S,j=f[b]-_*h.width,N=n.top);var H=Tt(Tt(Tt({},h),z),{},{realScaleType:R,x:j,y:N,scale:I,width:i==="xAxis"?n.width:h.width,height:i==="yAxis"?n.height:h.height});return H.bandSize=go(H,z),!h.hide&&i==="xAxis"?f[b]+=(_?-1:1)*H.height:h.hide||(f[b]+=(_?-1:1)*H.width),Tt(Tt({},p),{},Bo({},g,H))},{})},og=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},$B=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return og({x:r,y:n},{x:i,y:a})},sg=function(){function e(t){PB(this,e),this.scale=t}return _B(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(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();Bo(sg,"EPS",1e-4);var Vu=function(t){var r=Object.keys(t).reduce(function(n,i){return Tt(Tt({},n),{},Bo({},i,sg.create(t[i])))},{});return Tt(Tt({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return V3(i,function(l,u){return r[u].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return Yy(i,function(a,o){return r[o].isInRange(a)})}})};function jB(e){return(e%180+180)%180}var CB=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=jB(i),o=a*Math.PI/180,s=Math.atan(n/r),l=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(l)},MB=ir,kB=ri,IB=Ma;function NB(e){return function(t,r,n){var i=Object(t);if(!kB(t)){var a=MB(r);t=IB(t),r=function(s){return a(i[s],s,i)}}var o=e(t,r,n);return o>-1?i[a?t[o]:o]:void 0}}var DB=NB,LB=By;function RB(e){var t=LB(e),r=t%1;return t===t?r?t-r:t:0}var BB=RB,FB=Cd,zB=ir,WB=BB,UB=Math.max;function GB(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:WB(r);return i<0&&(i=UB(n+i,0)),FB(e,zB(t),i)}var qB=GB,KB=DB,HB=qB,VB=KB(HB),YB=VB;const XB=Te(YB);var ZB=Mx(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("")});function Fo(e){"@babel/helpers - typeof";return Fo=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},Fo(e)}var Yu=O.createContext(void 0),Xu=O.createContext(void 0),lg=O.createContext(void 0),ug=O.createContext({}),cg=O.createContext(void 0),fg=O.createContext(0),dg=O.createContext(0),pg=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,l=t.width,u=t.height,c=ZB(a);return O.createElement(Yu.Provider,{value:n},O.createElement(Xu.Provider,{value:i},O.createElement(ug.Provider,{value:a},O.createElement(lg.Provider,{value:c},O.createElement(cg.Provider,{value:o},O.createElement(fg.Provider,{value:u},O.createElement(dg.Provider,{value:l},s)))))))},JB=function(){return O.useContext(cg)};function hg(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var vg=function(t){var r=O.useContext(Yu);r==null&&(process.env.NODE_ENV!=="production"?at(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):at());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?at(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(Fo(t),"]. ").concat(hg(r))):at()),n},QB=function(){var t=O.useContext(Yu);return nr(t)},e5=function(){var t=O.useContext(Xu),r=XB(t,function(n){return Yy(n.domain,Number.isFinite)});return r||nr(t)},yg=function(t){var r=O.useContext(Xu);r==null&&(process.env.NODE_ENV!=="production"?at(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):at());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?at(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(Fo(t),"]. ").concat(hg(r))):at()),n},t5=function(){var t=O.useContext(lg);return t},r5=function(){return O.useContext(ug)},Zu=function(){return O.useContext(dg)},Ju=function(){return O.useContext(fg)};function Pn(e){"@babel/helpers - typeof";return Pn=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},Pn(e)}function n5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i5(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xg(n.key),n)}}function a5(e,t,r){return t&&i5(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function o5(e,t,r){return t=zo(t),s5(e,gg()?Reflect.construct(t,r||[],zo(e).constructor):t.apply(e,r))}function s5(e,t){if(t&&(Pn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l5(e)}function l5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gg=function(){return!!e})()}function zo(e){return zo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zo(e)}function u5(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&&Qu(e,t)}function Qu(e,t){return Qu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qu(e,t)}function mg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mg(Object(r),!0).forEach(function(n){ec(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ec(e,t,r){return t=xg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xg(e){var t=c5(e,"string");return Pn(t)=="symbol"?t:t+""}function c5(e,t){if(Pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function f5(e,t){return v5(e)||h5(e,t)||p5(e,t)||d5()}function d5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
121
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p5(e,t){if(e){if(typeof e=="string")return wg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wg(e,t)}}function wg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h5(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function v5(e){if(Array.isArray(e))return e}function tc(){return tc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tc.apply(this,arguments)}var y5=function(t,r){var n;return O.isValidElement(t)?n=O.cloneElement(t,r):le(t)?n=t(r):n=O.createElement("line",tc({},r,{className:"recharts-reference-line-line"})),n},g5=function(t,r,n,i,a,o,s,l,u){var c=a.x,f=a.y,d=a.width,p=a.height;if(n){var g=u.y,h=t.y.apply(g,{position:o});if(Bt(u,"discard")&&!t.y.isInRange(h))return null;var v=[{x:c+d,y:h},{x:c,y:h}];return l==="left"?v.reverse():v}if(r){var m=u.x,w=t.x.apply(m,{position:o});if(Bt(u,"discard")&&!t.x.isInRange(w))return null;var x=[{x:w,y:f+p},{x:w,y:f}];return s==="top"?x.reverse():x}if(i){var S=u.segment,y=S.map(function(b){return t.apply(b,{position:o})});return Bt(u,"discard")&&F3(y,function(b){return!t.isInRange(b)})?null:y}return null};function m5(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,l=e.alwaysShow,u=JB(),c=vg(i),f=yg(a),d=t5();if(!u||!d)return null;Gt(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Vu({x:c.scale,y:f.scale}),g=We(t),h=We(r),v=n&&n.length===2,m=g5(p,g,h,v,d,e.position,c.orientation,f.orientation,e);if(!m)return null;var w=f5(m,2),x=w[0],S=x.x,y=x.y,b=w[1],A=b.x,T=b.y,j=Bt(e,"hidden")?"url(#".concat(u,")"):void 0,N=bg(bg({clipPath:j},se(e,!0)),{},{x1:S,y1:y,x2:A,y2:T});return O.createElement(ve,{className:ce("recharts-reference-line",s)},y5(o,N),Ze.renderCallByParent(e,$B({x1:S,y1:y,x2:A,y2:T})))}var rc=function(e){function t(){return n5(this,t),o5(this,t,arguments)}return u5(t,e),a5(t,[{key:"render",value:function(){return O.createElement(m5,this.props)}}])}(O.Component);ec(rc,"displayName","ReferenceLine"),ec(rc,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nc.apply(this,arguments)}function _n(e){"@babel/helpers - typeof";return _n=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},_n(e)}function Og(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Og(Object(r),!0).forEach(function(n){Uo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Og(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x5(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Pg(n.key),n)}}function w5(e,t,r){return t&&x5(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function O5(e,t,r){return t=Wo(t),S5(e,Ag()?Reflect.construct(t,r||[],Wo(e).constructor):t.apply(e,r))}function S5(e,t){if(t&&(_n(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A5(e)}function A5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ag(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ag=function(){return!!e})()}function Wo(e){return Wo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wo(e)}function P5(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&&ic(e,t)}function ic(e,t){return ic=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ic(e,t)}function Uo(e,t,r){return t=Pg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pg(e){var t=_5(e,"string");return _n(t)=="symbol"?t:t+""}function _5(e,t){if(_n(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_n(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var T5=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=Vu({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return Bt(t,"discard")&&!o.isInRange(s)?null:s},Go=function(e){function t(){return b5(this,t),O5(this,t,arguments)}return P5(t,e),w5(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,l=n.clipPathId,u=We(i),c=We(a);if(Gt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!c)return null;var f=T5(this.props);if(!f)return null;var d=f.x,p=f.y,g=this.props,h=g.shape,v=g.className,m=Bt(this.props,"hidden")?"url(#".concat(l,")"):void 0,w=Sg(Sg({clipPath:m},se(this.props,!0)),{},{cx:d,cy:p});return O.createElement(ve,{className:ce("recharts-reference-dot",v)},t.renderDot(h,w),Ze.renderCallByParent(this.props,{x:d-o,y:p-o,width:2*o,height:2*o}))}}])}(O.Component);Uo(Go,"displayName","ReferenceDot"),Uo(Go,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),Uo(Go,"renderDot",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):le(e)?r=e(t):r=O.createElement($o,nc({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ac.apply(this,arguments)}function Tn(e){"@babel/helpers - typeof";return Tn=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},Tn(e)}function _g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_g(Object(r),!0).forEach(function(n){Ko(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_g(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function E5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $5(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$g(n.key),n)}}function j5(e,t,r){return t&&$5(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function C5(e,t,r){return t=qo(t),M5(e,Eg()?Reflect.construct(t,r||[],qo(e).constructor):t.apply(e,r))}function M5(e,t){if(t&&(Tn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k5(e)}function k5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Eg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Eg=function(){return!!e})()}function qo(e){return qo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qo(e)}function I5(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&&oc(e,t)}function oc(e,t){return oc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},oc(e,t)}function Ko(e,t,r){return t=$g(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $g(e){var t=N5(e,"string");return Tn(t)=="symbol"?t:t+""}function N5(e,t){if(Tn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var D5=function(t,r,n,i,a){var o=a.x1,s=a.x2,l=a.y1,u=a.y2,c=a.xAxis,f=a.yAxis;if(!c||!f)return null;var d=Vu({x:c.scale,y:f.scale}),p={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(l,{position:"start"}):d.y.rangeMin},g={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(u,{position:"end"}):d.y.rangeMax};return Bt(a,"discard")&&(!d.isInRange(p)||!d.isInRange(g))?null:og(p,g)},Ho=function(e){function t(){return E5(this,t),C5(this,t,arguments)}return I5(t,e),j5(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,l=n.className,u=n.alwaysShow,c=n.clipPathId;Gt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=We(i),d=We(a),p=We(o),g=We(s),h=this.props.shape;if(!f&&!d&&!p&&!g&&!h)return null;var v=D5(f,d,p,g,this.props);if(!v&&!h)return null;var m=Bt(this.props,"hidden")?"url(#".concat(c,")"):void 0;return O.createElement(ve,{className:ce("recharts-reference-area",l)},t.renderRect(h,Tg(Tg({clipPath:m},se(this.props,!0)),v)),Ze.renderCallByParent(this.props,v))}}])}(O.Component);Ko(Ho,"displayName","ReferenceArea"),Ko(Ho,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),Ko(Ho,"renderRect",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):le(e)?r=e(t):r=O.createElement(Bu,ac({},t,{className:"recharts-reference-area-rect"})),r});function jg(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function L5(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return CB(n,r)}function R5(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function Vo(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function B5(e,t){return jg(e,t+1)}function F5(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,l=0,u=1,c=o,f=function(){var g=n==null?void 0:n[l];if(g===void 0)return{v:jg(n,u)};var h=l,v,m=function(){return v===void 0&&(v=r(g,h)),v},w=g.coordinate,x=l===0||Vo(e,w,m,c,s);x||(l=0,c=o,u+=1),x&&(c=w+e*(m()/2+i),l+=u)},d;u<=a.length;)if(d=f(),d)return d.v;return[]}function Xi(e){"@babel/helpers - typeof";return Xi=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},Xi(e)}function Cg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cg(Object(r),!0).forEach(function(n){z5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function z5(e,t,r){return t=W5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W5(e){var t=U5(e,"string");return Xi(t)=="symbol"?t:t+""}function U5(e,t){if(Xi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function G5(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,l=t.end,u=function(d){var p=a[d],g,h=function(){return g===void 0&&(g=r(p,d)),g};if(d===o-1){var v=e*(p.coordinate+e*h()/2-l);a[d]=p=Je(Je({},p),{},{tickCoord:v>0?p.coordinate-v*e:p.coordinate})}else a[d]=p=Je(Je({},p),{},{tickCoord:p.coordinate});var m=Vo(e,p.tickCoord,h,s,l);m&&(l=p.tickCoord-e*(h()/2+i),a[d]=Je(Je({},p),{},{isShow:!0}))},c=o-1;c>=0;c--)u(c);return a}function q5(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,l=t.start,u=t.end;if(a){var c=n[s-1],f=r(c,s-1),d=e*(c.coordinate+e*f/2-u);o[s-1]=c=Je(Je({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate});var p=Vo(e,c.tickCoord,function(){return f},l,u);p&&(u=c.tickCoord-e*(f/2+i),o[s-1]=Je(Je({},c),{},{isShow:!0}))}for(var g=a?s-1:s,h=function(w){var x=o[w],S,y=function(){return S===void 0&&(S=r(x,w)),S};if(w===0){var b=e*(x.coordinate-e*y()/2-l);o[w]=x=Je(Je({},x),{},{tickCoord:b<0?x.coordinate-b*e:x.coordinate})}else o[w]=x=Je(Je({},x),{},{tickCoord:x.coordinate});var A=Vo(e,x.tickCoord,y,l,u);A&&(l=x.tickCoord+e*(y()/2+i),o[w]=Je(Je({},x),{},{isShow:!0}))},v=0;v<g;v++)h(v);return o}function sc(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,u=e.tickFormatter,c=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(V(l)||ar.isSsr)return B5(i,typeof l=="number"&&V(l)?l:0);var d=[],p=s==="top"||s==="bottom"?"width":"height",g=c&&p==="width"?li(c,{fontSize:t,letterSpacing:r}):{width:0,height:0},h=function(x,S){var y=le(u)?u(x.value,S):x.value;return p==="width"?L5(li(y,{fontSize:t,letterSpacing:r}),g,f):li(y,{fontSize:t,letterSpacing:r})[p]},v=i.length>=2?Ot(i[1].coordinate-i[0].coordinate):1,m=R5(a,v,p);return l==="equidistantPreserveStart"?F5(v,m,h,i,o):(l==="preserveStart"||l==="preserveStartEnd"?d=q5(v,m,h,i,o,l==="preserveStartEnd"):d=G5(v,m,h,i,o),d.filter(function(w){return w.isShow}))}var K5=["viewBox"],H5=["viewBox"],V5=["ticks"];function En(e){"@babel/helpers - typeof";return En=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},En(e)}function $n(){return $n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$n.apply(this,arguments)}function Mg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mg(Object(r),!0).forEach(function(n){cc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lc(e,t){if(e==null)return{};var r=Y5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Y5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function X5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ng(n.key),n)}}function Z5(e,t,r){return t&&kg(e.prototype,t),r&&kg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function J5(e,t,r){return t=Yo(t),Q5(e,Ig()?Reflect.construct(t,r||[],Yo(e).constructor):t.apply(e,r))}function Q5(e,t){if(t&&(En(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eF(e)}function eF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ig(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ig=function(){return!!e})()}function Yo(e){return Yo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yo(e)}function tF(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&&uc(e,t)}function uc(e,t){return uc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},uc(e,t)}function cc(e,t,r){return t=Ng(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ng(e){var t=rF(e,"string");return En(t)=="symbol"?t:t+""}function rF(e,t){if(En(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(En(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var jn=function(e){function t(r){var n;return X5(this,t),n=J5(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return tF(t,e),Z5(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=lc(n,K5),s=this.props,l=s.viewBox,u=lc(s,H5);return!Vr(a,l)||!Vr(o,u)||!Vr(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.orientation,c=i.tickSize,f=i.mirror,d=i.tickMargin,p,g,h,v,m,w,x=f?-1:1,S=n.tickSize||c,y=V(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":p=g=n.coordinate,v=o+ +!f*l,h=v-x*S,w=h-x*d,m=y;break;case"left":h=v=n.coordinate,g=a+ +!f*s,p=g-x*S,m=p-x*d,w=y;break;case"right":h=v=n.coordinate,g=a+ +f*s,p=g+x*S,m=p+x*d,w=y;break;default:p=g=n.coordinate,v=o+ +f*l,h=v+x*S,w=h+x*d,m=y;break}return{line:{x1:p,y1:h,x2:g,y2:v},tick:{x:m,y:w}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.orientation,u=n.mirror,c=n.axisLine,f=Ke(Ke(Ke({},se(this.props,!1)),se(c,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var d=+(l==="top"&&!u||l==="bottom"&&u);f=Ke(Ke({},f),{},{x1:i,y1:a+d*s,x2:i+o,y2:a+d*s})}else{var p=+(l==="left"&&!u||l==="right"&&u);f=Ke(Ke({},f),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+s})}return O.createElement("line",$n({},f,{className:ce("recharts-cartesian-axis-line",pt(c,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,l=s.tickLine,u=s.stroke,c=s.tick,f=s.tickFormatter,d=s.unit,p=sc(Ke(Ke({},this.props),{},{ticks:n}),i,a),g=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),v=se(this.props,!1),m=se(c,!1),w=Ke(Ke({},v),{},{fill:"none"},se(l,!1)),x=p.map(function(S,y){var b=o.getTickLineCoord(S),A=b.line,T=b.tick,j=Ke(Ke(Ke(Ke({textAnchor:g,verticalAnchor:h},v),{},{stroke:"none",fill:u},m),T),{},{index:y,payload:S,visibleTicksCount:p.length,tickFormatter:f});return O.createElement(ve,$n({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},Qn(o.props,S,y)),l&&O.createElement("line",$n({},w,A,{className:ce("recharts-cartesian-axis-tick-line",pt(l,"className"))})),c&&t.renderTickItem(c,j,"".concat(le(f)?f(S.value,y):S.value).concat(d||"")))});return O.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,l=i.ticksGenerator,u=i.className,c=i.hide;if(c)return null;var f=this.props,d=f.ticks,p=lc(f,V5),g=d;return le(l)&&(g=d&&d.length>0?l(this.props):l(p)),o<=0||s<=0||!g||!g.length?null:O.createElement(ve,{className:ce("recharts-cartesian-axis",u),ref:function(v){n.layerReference=v}},a&&this.renderAxisLine(),this.renderTicks(g,this.state.fontSize,this.state.letterSpacing),Ze.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=ce(i.className,"recharts-cartesian-axis-tick-value");return O.isValidElement(n)?o=O.cloneElement(n,Ke(Ke({},i),{},{className:s})):le(n)?o=n(Ke(Ke({},i),{},{className:s})):o=O.createElement(Ua,$n({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(O.Component);cc(jn,"displayName","CartesianAxis"),cc(jn,"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 nF=["x1","y1","x2","y2","key"],iF=["offset"];function Lr(e){"@babel/helpers - typeof";return Lr=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},Lr(e)}function Dg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dg(Object(r),!0).forEach(function(n){aF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aF(e,t,r){return t=oF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oF(e){var t=sF(e,"string");return Lr(t)=="symbol"?t:t+""}function sF(e,t){if(Lr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rr.apply(this,arguments)}function Lg(e,t){if(e==null)return{};var r=lF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var uF=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,l=t.ry;return O.createElement("rect",{x:i,y:a,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function Rg(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(le(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,l=Lg(t,nF),u=se(l,!1);u.offset;var c=Lg(u,iF);r=O.createElement("line",Rr({},c,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function cF(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=Qe(Qe({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return Rg(i,u)});return O.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function fF(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=Qe(Qe({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return Rg(i,u)});return O.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function dF(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var c=s.map(function(d){return Math.round(d+i-i)}).sort(function(d,p){return d-p});i!==c[0]&&c.unshift(0);var f=c.map(function(d,p){var g=!c[p+1],h=g?i+o-d:c[p+1]-d;if(h<=0)return null;var v=p%t.length;return O.createElement("rect",{key:"react-".concat(p),y:d,x:n,height:h,width:a,stroke:"none",fill:t[v],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function pF(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var c=u.map(function(d){return Math.round(d+a-a)}).sort(function(d,p){return d-p});a!==c[0]&&c.unshift(0);var f=c.map(function(d,p){var g=!c[p+1],h=g?a+s-d:c[p+1]-d;if(h<=0)return null;var v=p%n.length;return O.createElement("rect",{key:"react-".concat(p),x:d,y:o,width:h,height:l,stroke:"none",fill:n[v],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var hF=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return wv(sc(Qe(Qe(Qe({},jn.defaultProps),n),{},{ticks:Qt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},vF=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return wv(sc(Qe(Qe(Qe({},jn.defaultProps),n),{},{ticks:Qt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Cn={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Bg(e){var t,r,n,i,a,o,s=Zu(),l=Ju(),u=r5(),c=Qe(Qe({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Cn.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Cn.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Cn.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Cn.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Cn.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Cn.verticalFill,x:V(e.x)?e.x:u.left,y:V(e.y)?e.y:u.top,width:V(e.width)?e.width:u.width,height:V(e.height)?e.height:u.height}),f=c.x,d=c.y,p=c.width,g=c.height,h=c.syncWithTicks,v=c.horizontalValues,m=c.verticalValues,w=QB(),x=e5();if(!V(p)||p<=0||!V(g)||g<=0||!V(f)||f!==+f||!V(d)||d!==+d)return null;var S=c.verticalCoordinatesGenerator||hF,y=c.horizontalCoordinatesGenerator||vF,b=c.horizontalPoints,A=c.verticalPoints;if((!b||!b.length)&&le(y)){var T=v&&v.length,j=y({yAxis:x?Qe(Qe({},x),{},{ticks:T?v:x.ticks}):void 0,width:s,height:l,offset:u},T?!0:h);Gt(Array.isArray(j),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Lr(j),"]")),Array.isArray(j)&&(b=j)}if((!A||!A.length)&&le(S)){var N=m&&m.length,_=S({xAxis:w?Qe(Qe({},w),{},{ticks:N?m:w.ticks}):void 0,width:s,height:l,offset:u},N?!0:h);Gt(Array.isArray(_),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Lr(_),"]")),Array.isArray(_)&&(A=_)}return O.createElement("g",{className:"recharts-cartesian-grid"},O.createElement(uF,{fill:c.fill,fillOpacity:c.fillOpacity,x:c.x,y:c.y,width:c.width,height:c.height,ry:c.ry}),O.createElement(cF,Rr({},c,{offset:u,horizontalPoints:b,xAxis:w,yAxis:x})),O.createElement(fF,Rr({},c,{offset:u,verticalPoints:A,xAxis:w,yAxis:x})),O.createElement(dF,Rr({},c,{horizontalPoints:b})),O.createElement(pF,Rr({},c,{verticalPoints:A})))}Bg.displayName="CartesianGrid";var yF=["type","layout","connectNulls","ref"],gF=["key"];function Mn(e){"@babel/helpers - typeof";return Mn=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},Mn(e)}function Fg(e,t){if(e==null)return{};var r=mF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Zi(){return Zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zi.apply(this,arguments)}function zg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ct(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zg(Object(r),!0).forEach(function(n){Et(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kn(e){return OF(e)||wF(e)||xF(e)||bF()}function bF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
122
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xF(e,t){if(e){if(typeof e=="string")return fc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fc(e,t)}}function wF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OF(e){if(Array.isArray(e))return fc(e)}function fc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function SF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Gg(n.key),n)}}function AF(e,t,r){return t&&Wg(e.prototype,t),r&&Wg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function PF(e,t,r){return t=Xo(t),_F(e,Ug()?Reflect.construct(t,r||[],Xo(e).constructor):t.apply(e,r))}function _F(e,t){if(t&&(Mn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TF(e)}function TF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ug(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ug=function(){return!!e})()}function Xo(e){return Xo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xo(e)}function EF(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&&dc(e,t)}function dc(e,t){return dc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dc(e,t)}function Et(e,t,r){return t=Gg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gg(e){var t=$F(e,"string");return Mn(t)=="symbol"?t:t+""}function $F(e,t){if(Mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ji=function(e){function t(){var r;SF(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=PF(this,t,[].concat(i)),Et(r,"state",{isAnimationFinished:!0,totalLength:0}),Et(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),Et(r,"getStrokeDasharray",function(o,s,l){var u=l.reduce(function(m,w){return m+w});if(!u)return r.generateSimpleStrokeDasharray(s,o);for(var c=Math.floor(o/u),f=o%u,d=s-o,p=[],g=0,h=0;g<l.length;h+=l[g],++g)if(h+l[g]>f){p=[].concat(kn(l.slice(0,g)),[f-h]);break}var v=p.length%2===0?[0,d]:[d];return[].concat(kn(t.repeat(l,c)),kn(p),v).map(function(m){return"".concat(m,"px")}).join(", ")}),Et(r,"id",wr("recharts-line-")),Et(r,"pathRef",function(o){r.mainCurve=o}),Et(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Et(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return EF(t,e),AF(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,s=a.xAxis,l=a.yAxis,u=a.layout,c=a.children,f=nt(c,yn);if(!f)return null;var d=function(h,v){return{x:h.x,y:h.y,value:h.value,errorVal:Ge(h.payload,v)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(ve,p,f.map(function(g){return O.cloneElement(g,{key:"bar-".concat(g.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,u=s.points,c=s.dataKey,f=se(this.props,!1),d=se(l,!0),p=u.map(function(h,v){var m=ct(ct(ct({key:"dot-".concat(v),r:3},f),d),{},{index:v,cx:h.x,cy:h.y,value:h.value,dataKey:c,payload:h.payload,points:u});return t.renderDotItem(l,m)}),g={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(ve,Zi({className:"recharts-line-dots",key:"dots"},g),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,l=s.type,u=s.layout,c=s.connectNulls;s.ref;var f=Fg(s,yF),d=ct(ct(ct({},se(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:l,layout:u,connectNulls:c});return O.createElement(Nr,Zi({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.strokeDasharray,u=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,d=o.animationEasing,p=o.animationId,g=o.animateNewValues,h=o.width,v=o.height,m=this.state,w=m.prevPoints,x=m.totalLength;return O.createElement(_t,{begin:c,duration:f,isActive:u,easing:d,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(S){var y=S.t;if(w){var b=w.length/s.length,A=s.map(function(E,k){var M=Math.floor(k*b);if(w[M]){var D=w[M],L=De(D.x,E.x),F=De(D.y,E.y);return ct(ct({},E),{},{x:L(y),y:F(y)})}if(g){var G=De(h*2,E.x),U=De(v/2,E.y);return ct(ct({},E),{},{x:G(y),y:U(y)})}return ct(ct({},E),{},{x:E.x,y:E.y})});return a.renderCurveStatically(A,n,i)}var T=De(0,x),j=T(y),N;if(l){var _="".concat(l).split(/[,\s]+/gim).map(function(E){return parseFloat(E)});N=a.getStrokeDasharray(j,x,_)}else N=a.generateSimpleStrokeDasharray(x,j);return a.renderCurveStatically(s,n,i,{strokeDasharray:N})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,s=a.isAnimationActive,l=this.state,u=l.prevPoints,c=l.totalLength;return s&&o&&o.length&&(!u&&c>0||!jr(u,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.xAxis,c=i.yAxis,f=i.top,d=i.left,p=i.width,g=i.height,h=i.isAnimationActive,v=i.id;if(a||!s||!s.length)return null;var m=this.state.isAnimationFinished,w=s.length===1,x=ce("recharts-line",l),S=u&&u.allowDataOverflow,y=c&&c.allowDataOverflow,b=S||y,A=oe(v)?this.id:v,T=(n=se(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},j=T.r,N=j===void 0?3:j,_=T.strokeWidth,E=_===void 0?2:_,k=pf(o)?o:{},M=k.clipDot,D=M===void 0?!0:M,L=N*2+E;return O.createElement(ve,{className:x},S||y?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(A)},O.createElement("rect",{x:S?d:d-p/2,y:y?f:f-g/2,width:S?p:p*2,height:y?g:g*2})),!D&&O.createElement("clipPath",{id:"clipPath-dots-".concat(A)},O.createElement("rect",{x:d-L/2,y:f-L/2,width:p+L,height:g+L}))):null,!w&&this.renderCurve(b,A),this.renderErrorBar(b,A),(w||o)&&this.renderDots(b,D,A),(!h||m)&&Rt.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(kn(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(kn(o),kn(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(O.isValidElement(n))a=O.cloneElement(n,i);else if(le(n))a=n(i);else{var o=i.key,s=Fg(i,gF),l=ce("recharts-line-dot",typeof n!="boolean"?n.className:"");a=O.createElement($o,Zi({key:o},s,{className:l}))}return a}}])}(O.PureComponent);Et(Ji,"displayName","Line"),Et(Ji,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ar.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),Et(Ji,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,l=e.displayedData,u=e.offset,c=t.layout,f=l.map(function(d,p){var g=Ge(d,o);return c==="horizontal"?{x:mn({axis:r,ticks:i,bandSize:s,entry:d,index:p}),y:oe(g)?null:n.scale(g),value:g,payload:d}:{x:oe(g)?null:r.scale(g),y:mn({axis:n,ticks:a,bandSize:s,entry:d,index:p}),value:g,payload:d}});return ct({points:f,layout:c},u)});var jF=["layout","type","stroke","connectNulls","isRange","ref"],CF=["key"],qg;function In(e){"@babel/helpers - typeof";return In=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},In(e)}function Kg(e,t){if(e==null)return{};var r=MF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function MF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Br(){return Br=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Br.apply(this,arguments)}function Hg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hg(Object(r),!0).forEach(function(n){Ft(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Xg(n.key),n)}}function IF(e,t,r){return t&&Vg(e.prototype,t),r&&Vg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function NF(e,t,r){return t=Zo(t),DF(e,Yg()?Reflect.construct(t,r||[],Zo(e).constructor):t.apply(e,r))}function DF(e,t){if(t&&(In(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return LF(e)}function LF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yg=function(){return!!e})()}function Zo(e){return Zo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zo(e)}function RF(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&&pc(e,t)}function pc(e,t){return pc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pc(e,t)}function Ft(e,t,r){return t=Xg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xg(e){var t=BF(e,"string");return In(t)=="symbol"?t:t+""}function BF(e,t){if(In(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(In(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hr=function(e){function t(){var r;kF(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=NF(this,t,[].concat(i)),Ft(r,"state",{isAnimationFinished:!0}),Ft(r,"id",wr("recharts-area-")),Ft(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),le(o)&&o()}),Ft(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),le(o)&&o()}),r}return RF(t,e),IF(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var l=this.props,u=l.dot,c=l.points,f=l.dataKey,d=se(this.props,!1),p=se(u,!0),g=c.map(function(v,m){var w=pr(pr(pr({key:"dot-".concat(m),r:3},d),p),{},{index:m,cx:v.x,cy:v.y,dataKey:f,value:v.value,payload:v.payload,points:c});return t.renderDotItem(u,w)}),h={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(ve,Br({className:"recharts-area-dots"},h),g)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].x,u=o[o.length-1].x,c=n*Math.abs(l-u),f=ur(o.map(function(d){return d.y||0}));return V(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(ur(a.map(function(d){return d.y||0})),f)),V(f)?O.createElement("rect",{x:l<u?l:l-c,y:0,width:c,height:Math.floor(f+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].y,u=o[o.length-1].y,c=n*Math.abs(l-u),f=ur(o.map(function(d){return d.x||0}));return V(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(ur(a.map(function(d){return d.x||0})),f)),V(f)?O.createElement("rect",{x:0,y:l<u?l:l-c,width:f+(s?parseInt("".concat(s),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var s=this.props,l=s.layout,u=s.type,c=s.stroke,f=s.connectNulls,d=s.isRange;s.ref;var p=Kg(s,jF);return O.createElement(ve,{clipPath:a?"url(#clipPath-".concat(o,")"):null},O.createElement(Nr,Br({},se(p,!0),{points:n,connectNulls:f,type:u,baseLine:i,layout:l,stroke:"none",className:"recharts-area-area"})),c!=="none"&&O.createElement(Nr,Br({},se(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:f,fill:"none",points:n})),c!=="none"&&d&&O.createElement(Nr,Br({},se(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:f,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.baseLine,u=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,d=o.animationEasing,p=o.animationId,g=this.state,h=g.prevPoints,v=g.prevBaseLine;return O.createElement(_t,{begin:c,duration:f,isActive:u,easing:d,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(m){var w=m.t;if(h){var x=h.length/s.length,S=s.map(function(T,j){var N=Math.floor(j*x);if(h[N]){var _=h[N],E=De(_.x,T.x),k=De(_.y,T.y);return pr(pr({},T),{},{x:E(w),y:k(w)})}return T}),y;if(V(l)&&typeof l=="number"){var b=De(v,l);y=b(w)}else if(oe(l)||Hr(l)){var A=De(v,0);y=A(w)}else y=l.map(function(T,j){var N=Math.floor(j*x);if(v[N]){var _=v[N],E=De(_.x,T.x),k=De(_.y,T.y);return pr(pr({},T),{},{x:E(w),y:k(w)})}return T});return a.renderAreaStatically(S,y,n,i)}return O.createElement(ve,null,O.createElement("defs",null,O.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(w))),O.createElement(ve,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(s,l,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,s=a.baseLine,l=a.isAnimationActive,u=this.state,c=u.prevPoints,f=u.prevBaseLine,d=u.totalLength;return l&&o&&o.length&&(!c&&d>0||!jr(c,o)||!jr(f,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.top,c=i.left,f=i.xAxis,d=i.yAxis,p=i.width,g=i.height,h=i.isAnimationActive,v=i.id;if(a||!s||!s.length)return null;var m=this.state.isAnimationFinished,w=s.length===1,x=ce("recharts-area",l),S=f&&f.allowDataOverflow,y=d&&d.allowDataOverflow,b=S||y,A=oe(v)?this.id:v,T=(n=se(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},j=T.r,N=j===void 0?3:j,_=T.strokeWidth,E=_===void 0?2:_,k=pf(o)?o:{},M=k.clipDot,D=M===void 0?!0:M,L=N*2+E;return O.createElement(ve,{className:x},S||y?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(A)},O.createElement("rect",{x:S?c:c-p/2,y:y?u:u-g/2,width:S?p:p*2,height:y?g:g*2})),!D&&O.createElement("clipPath",{id:"clipPath-dots-".concat(A)},O.createElement("rect",{x:c-L/2,y:u-L/2,width:p+L,height:g+L}))):null,w?null:this.renderArea(b,A),(o||w)&&this.renderDots(b,D,A),(!h||m)&&Rt.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])}(O.PureComponent);qg=hr,Ft(hr,"displayName","Area"),Ft(hr,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!ar.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),Ft(hr,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(V(s)&&typeof s=="number")return s;var l=i==="horizontal"?n:r,u=l.scale.domain();if(l.type==="number"){var c=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return s==="dataMin"?f:s==="dataMax"||c<0?c:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]}),Ft(hr,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,c=e.dataStartIndex,f=e.displayedData,d=e.offset,p=t.layout,g=u&&u.length,h=qg.getBaseValue(t,r,n,i),v=p==="horizontal",m=!1,w=f.map(function(S,y){var b;g?b=u[c+y]:(b=Ge(S,l),Array.isArray(b)?m=!0:b=[h,b]);var A=b[1]==null||g&&Ge(S,l)==null;return v?{x:mn({axis:n,ticks:a,bandSize:s,entry:S,index:y}),y:A?null:i.scale(b[1]),value:b,payload:S}:{x:A?null:n.scale(b[1]),y:mn({axis:i,ticks:o,bandSize:s,entry:S,index:y}),value:b,payload:S}}),x;return g||m?x=w.map(function(S){var y=Array.isArray(S.value)?S.value[0]:null;return v?{x:S.x,y:y!=null&&S.y!=null?i.scale(y):null}:{x:y!=null?n.scale(y):null,y:S.y}}):x=v?i.scale(h):n.scale(h),pr({points:w,baseLine:x,layout:p,isRange:m},d)}),Ft(hr,"renderDotItem",function(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(le(e))r=e(t);else{var n=ce("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=Kg(t,CF);r=O.createElement($o,Br({},a,{key:i,className:n}))}return r});function Nn(e){"@babel/helpers - typeof";return Nn=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},Nn(e)}function FF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Qg(n.key),n)}}function WF(e,t,r){return t&&zF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function UF(e,t,r){return t=Jo(t),GF(e,Zg()?Reflect.construct(t,r||[],Jo(e).constructor):t.apply(e,r))}function GF(e,t){if(t&&(Nn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qF(e)}function qF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zg=function(){return!!e})()}function Jo(e){return Jo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Jo(e)}function KF(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&&hc(e,t)}function hc(e,t){return hc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hc(e,t)}function Jg(e,t,r){return t=Qg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qg(e){var t=HF(e,"string");return Nn(t)=="symbol"?t:t+""}function HF(e,t){if(Nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qo=function(e){function t(){return FF(this,t),UF(this,t,arguments)}return KF(t,e),WF(t,[{key:"render",value:function(){return null}}])}(dt.Component);Jg(Qo,"displayName","ZAxis"),Jg(Qo,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var VF=["option","isActive"];function Qi(){return Qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qi.apply(this,arguments)}function YF(e,t){if(e==null)return{};var r=XF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function XF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ZF(e){var t=e.option,r=e.isActive,n=YF(e,VF);return typeof t=="string"?dt.createElement(Wu,Qi({option:dt.createElement(Ta,Qi({type:t},n)),isActive:r,shapeType:"symbols"},n)):dt.createElement(Wu,Qi({option:t,isActive:r,shapeType:"symbols"},n))}function Dn(e){"@babel/helpers - typeof";return Dn=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},Dn(e)}function ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ea.apply(this,arguments)}function em(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?em(Object(r),!0).forEach(function(n){vr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):em(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tm(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nm(n.key),n)}}function QF(e,t,r){return t&&tm(e.prototype,t),r&&tm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function e4(e,t,r){return t=es(t),t4(e,rm()?Reflect.construct(t,r||[],es(e).constructor):t.apply(e,r))}function t4(e,t){if(t&&(Dn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r4(e)}function r4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rm=function(){return!!e})()}function es(e){return es=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},es(e)}function n4(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&&vc(e,t)}function vc(e,t){return vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vc(e,t)}function vr(e,t,r){return t=nm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nm(e){var t=i4(e,"string");return Dn(t)=="symbol"?t:t+""}function i4(e,t){if(Dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ts=function(e){function t(){var r;JF(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=e4(this,t,[].concat(i)),vr(r,"state",{isAnimationFinished:!1}),vr(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),vr(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),vr(r,"id",wr("recharts-scatter-")),r}return n4(t,e),QF(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.activeShape,l=a.activeIndex,u=se(this.props,!1);return n.map(function(c,f){var d=l===f,p=d?s:o,g=xt(xt({},u),c);return O.createElement(ve,ea({className:"recharts-scatter-symbol",key:"symbol-".concat(c==null?void 0:c.cx,"-").concat(c==null?void 0:c.cy,"-").concat(c==null?void 0:c.size,"-").concat(f)},Qn(i.props,c,f),{role:"img"}),O.createElement(ZF,ea({option:p,isActive:d,key:"symbol-".concat(f)},g)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,c=i.animationId,f=this.state.prevPoints;return O.createElement(_t,{begin:s,duration:l,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var p=d.t,g=a.map(function(h,v){var m=f&&f[v];if(m){var w=De(m.cx,h.cx),x=De(m.cy,h.cy),S=De(m.size,h.size);return xt(xt({},h),{},{cx:w(p),cy:x(p),size:S(p)})}var y=De(0,h.size);return xt(xt({},h),{},{size:y(p)})});return O.createElement(ve,null,n.renderSymbolsStatically(g))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!jr(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,s=i.yAxis,l=i.children,u=nt(l,yn);return u?u.map(function(c,f){var d=c.props,p=d.direction,g=d.dataKey;return O.cloneElement(c,{key:"".concat(p,"-").concat(g,"-").concat(a[f]),data:a,xAxis:o,yAxis:s,layout:p==="x"?"vertical":"horizontal",dataPointFormatter:function(v,m){return{x:v.cx,y:v.cy,value:p==="x"?+v.node.x:+v.node.y,errorVal:Ge(v,m)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,s=n.lineJointType,l=se(this.props,!1),u=se(a,!1),c,f;if(o==="joint")c=i.map(function(x){return{x:x.cx,y:x.cy}});else if(o==="fitting"){var d=$w(i),p=d.xmin,g=d.xmax,h=d.a,v=d.b,m=function(S){return h*S+v};c=[{x:p,y:m(p)},{x:g,y:m(g)}]}var w=xt(xt(xt({},l),{},{fill:"none",stroke:l&&l.fill},u),{},{points:c});return O.isValidElement(a)?f=O.cloneElement(a,w):le(a)?f=a(w):f=O.createElement(Nr,ea({},w,{type:s})),O.createElement(ve,{className:"recharts-scatter-line",key:"recharts-scatter-line"},f)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.points,o=n.line,s=n.className,l=n.xAxis,u=n.yAxis,c=n.left,f=n.top,d=n.width,p=n.height,g=n.id,h=n.isAnimationActive;if(i||!a||!a.length)return null;var v=this.state.isAnimationFinished,m=ce("recharts-scatter",s),w=l&&l.allowDataOverflow,x=u&&u.allowDataOverflow,S=w||x,y=oe(g)?this.id:g;return O.createElement(ve,{className:m,clipPath:S?"url(#clipPath-".concat(y,")"):null},w||x?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(y)},O.createElement("rect",{x:w?c:c-d/2,y:x?f:f-p/2,width:w?d:d*2,height:x?p:p*2}))):null,o&&this.renderLine(),this.renderErrorBar(),O.createElement(ve,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!h||v)&&Rt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}}])}(O.PureComponent);vr(ts,"displayName","Scatter"),vr(ts,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!ar.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"}),vr(ts,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,s=e.yAxisTicks,l=e.offset,u=i.props.tooltipType,c=nt(i.props.children,gl),f=oe(t.dataKey)?i.props.dataKey:t.dataKey,d=oe(r.dataKey)?i.props.dataKey:r.dataKey,p=n&&n.dataKey,g=n?n.range:Qo.defaultProps.range,h=g&&g[0],v=t.scale.bandwidth?t.scale.bandwidth():0,m=r.scale.bandwidth?r.scale.bandwidth():0,w=a.map(function(x,S){var y=Ge(x,f),b=Ge(x,d),A=!oe(p)&&Ge(x,p)||"-",T=[{name:oe(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:y,payload:x,dataKey:f,type:u},{name:oe(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:b,payload:x,dataKey:d,type:u}];A!=="-"&&T.push({name:n.name||n.dataKey,unit:n.unit||"",value:A,payload:x,dataKey:p,type:u});var j=mn({axis:t,ticks:o,bandSize:v,entry:x,index:S,dataKey:f}),N=mn({axis:r,ticks:s,bandSize:m,entry:x,index:S,dataKey:d}),_=A!=="-"?n.scale(A):h,E=Math.sqrt(Math.max(_,0)/Math.PI);return xt(xt({},x),{},{cx:j,cy:N,x:j-E,y:N-E,xAxis:t,yAxis:r,zAxis:n,width:2*E,height:2*E,size:_,node:{x:y,y:b,z:A},tooltipPayload:T,tooltipPosition:{x:j,y:N},payload:x},c&&c[S]&&c[S].props)});return xt({points:w},l)});function Ln(e){"@babel/helpers - typeof";return Ln=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},Ln(e)}function a4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,om(n.key),n)}}function s4(e,t,r){return t&&o4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function l4(e,t,r){return t=rs(t),u4(e,im()?Reflect.construct(t,r||[],rs(e).constructor):t.apply(e,r))}function u4(e,t){if(t&&(Ln(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c4(e)}function c4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function im(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(im=function(){return!!e})()}function rs(e){return rs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},rs(e)}function f4(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&&yc(e,t)}function yc(e,t){return yc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yc(e,t)}function am(e,t,r){return t=om(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function om(e){var t=d4(e,"string");return Ln(t)=="symbol"?t:t+""}function d4(e,t){if(Ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function gc(){return gc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gc.apply(this,arguments)}function p4(e){var t=e.xAxisId,r=Zu(),n=Ju(),i=vg(t);return i==null?null:dt.createElement(jn,gc({},i,{className:ce("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Qt(o,!0)}}))}var ns=function(e){function t(){return a4(this,t),l4(this,t,arguments)}return f4(t,e),s4(t,[{key:"render",value:function(){return dt.createElement(p4,this.props)}}])}(dt.Component);am(ns,"displayName","XAxis"),am(ns,"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 Rn(e){"@babel/helpers - typeof";return Rn=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},Rn(e)}function h4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,um(n.key),n)}}function y4(e,t,r){return t&&v4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function g4(e,t,r){return t=is(t),m4(e,sm()?Reflect.construct(t,r||[],is(e).constructor):t.apply(e,r))}function m4(e,t){if(t&&(Rn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return b4(e)}function b4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sm=function(){return!!e})()}function is(e){return is=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},is(e)}function x4(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&&mc(e,t)}function mc(e,t){return mc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mc(e,t)}function lm(e,t,r){return t=um(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function um(e){var t=w4(e,"string");return Rn(t)=="symbol"?t:t+""}function w4(e,t){if(Rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function bc(){return bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bc.apply(this,arguments)}var O4=function(t){var r=t.yAxisId,n=Zu(),i=Ju(),a=yg(r);return a==null?null:dt.createElement(jn,bc({},a,{className:ce("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return Qt(s,!0)}}))},as=function(e){function t(){return h4(this,t),g4(this,t,arguments)}return x4(t,e),y4(t,[{key:"render",value:function(){return dt.createElement(O4,this.props)}}])}(dt.Component);lm(as,"displayName","YAxis"),lm(as,"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 cm(e){return _4(e)||P4(e)||A4(e)||S4()}function S4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
123
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A4(e,t){if(e){if(typeof e=="string")return xc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xc(e,t)}}function P4(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _4(e){if(Array.isArray(e))return xc(e)}function xc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var wc=function(t,r,n,i,a){var o=nt(t,rc),s=nt(t,Go),l=[].concat(cm(o),cm(s)),u=nt(t,Ho),c="".concat(i,"Id"),f=i[0],d=r;if(l.length&&(d=l.reduce(function(h,v){if(v.props[c]===n&&Bt(v.props,"extendDomain")&&V(v.props[f])){var m=v.props[f];return[Math.min(h[0],m),Math.max(h[1],m)]}return h},d)),u.length){var p="".concat(f,"1"),g="".concat(f,"2");d=u.reduce(function(h,v){if(v.props[c]===n&&Bt(v.props,"extendDomain")&&V(v.props[p])&&V(v.props[g])){var m=v.props[p],w=v.props[g];return[Math.min(h[0],m,w),Math.max(h[1],m,w)]}return h},d)}return a&&a.length&&(d=a.reduce(function(h,v){return V(v)?[Math.min(h[0],v),Math.max(h[1],v)]:h},d)),d},fm={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function a(l,u,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var p=new i(c,f||l,d),g=r?r+u:u;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],p]:l._events[g].push(p):(l._events[g]=p,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},s.prototype.listeners=function(u){var c=r?r+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,p=f.length,g=new Array(p);d<p;d++)g[d]=f[d].fn;return g},s.prototype.listenerCount=function(u){var c=r?r+u:u,f=this._events[c];return f?f.fn?1:f.length:0},s.prototype.emit=function(u,c,f,d,p,g){var h=r?r+u:u;if(!this._events[h])return!1;var v=this._events[h],m=arguments.length,w,x;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),m){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,c),!0;case 3:return v.fn.call(v.context,c,f),!0;case 4:return v.fn.call(v.context,c,f,d),!0;case 5:return v.fn.call(v.context,c,f,d,p),!0;case 6:return v.fn.call(v.context,c,f,d,p,g),!0}for(x=1,w=new Array(m-1);x<m;x++)w[x-1]=arguments[x];v.fn.apply(v.context,w)}else{var S=v.length,y;for(x=0;x<S;x++)switch(v[x].once&&this.removeListener(u,v[x].fn,void 0,!0),m){case 1:v[x].fn.call(v[x].context);break;case 2:v[x].fn.call(v[x].context,c);break;case 3:v[x].fn.call(v[x].context,c,f);break;case 4:v[x].fn.call(v[x].context,c,f,d);break;default:if(!w)for(y=1,w=new Array(m-1);y<m;y++)w[y-1]=arguments[y];v[x].fn.apply(v[x].context,w)}}return!0},s.prototype.on=function(u,c,f){return a(this,u,c,f,!1)},s.prototype.once=function(u,c,f){return a(this,u,c,f,!0)},s.prototype.removeListener=function(u,c,f,d){var p=r?r+u:u;if(!this._events[p])return this;if(!c)return o(this,p),this;var g=this._events[p];if(g.fn)g.fn===c&&(!d||g.once)&&(!f||g.context===f)&&o(this,p);else{for(var h=0,v=[],m=g.length;h<m;h++)(g[h].fn!==c||d&&!g[h].once||f&&g[h].context!==f)&&v.push(g[h]);v.length?this._events[p]=v.length===1?v[0]:v:o(this,p)}return this},s.prototype.removeAllListeners=function(u){var c;return u?(c=r?r+u:u,this._events[c]&&o(this,c)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(fm);var T4=fm.exports;const E4=Te(T4);var Oc=new E4,Sc="recharts.syncMouseEvents";function ta(e){"@babel/helpers - typeof";return ta=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},ta(e)}function $4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dm(n.key),n)}}function C4(e,t,r){return t&&j4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ac(e,t,r){return t=dm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dm(e){var t=M4(e,"string");return ta(t)=="symbol"?t:t+""}function M4(e,t){if(ta(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ta(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var k4=function(){function e(){$4(this,e),Ac(this,"activeIndex",0),Ac(this,"coordinateList",[]),Ac(this,"layout","horizontal")}return C4(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,l=r.layout,u=l===void 0?null:l,c=r.offset,f=c===void 0?null:c,d=r.mouseHandlerCallback,p=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.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(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,l=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,c=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+l+u,d=o+this.offset.top+s/2+c;this.mouseHandlerCallback({pageX:f,pageY:d})}}}])}();function I4(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&V(n)&&V(i))return!0}return!1}function N4(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function pm(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Ye(t,r,n,i),s=Ye(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function D4(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,u=t.innerRadius,c=t.outerRadius,f=t.angle,d=Ye(s,l,u,f),p=Ye(s,l,c,f);n=d.x,i=d.y,a=p.x,o=p.y}else return pm(t);return[{x:n,y:i},{x:a,y:o}]}function ra(e){"@babel/helpers - typeof";return ra=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},ra(e)}function hm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function os(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hm(Object(r),!0).forEach(function(n){L4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function L4(e,t,r){return t=R4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R4(e){var t=B4(e,"string");return ra(t)=="symbol"?t:t+""}function B4(e,t){if(ra(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ra(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function F4(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,l=e.offset,u=e.activeTooltipIndex,c=e.tooltipAxisBandSize,f=e.layout,d=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var g,h=Nr;if(d==="ScatterChart")g=o,h=fR;else if(d==="BarChart")g=N4(f,o,l,c),h=Bu;else if(f==="radial"){var v=pm(o),m=v.cx,w=v.cy,x=v.radius,S=v.startAngle,y=v.endAngle;g={cx:m,cy:w,startAngle:S,endAngle:y,innerRadius:x,outerRadius:x},h=Fv}else g={points:D4(f,o,l)},h=Nr;var b=os(os(os(os({stroke:"#ccc",pointerEvents:"none"},l),g),se(p,!1)),{},{payload:s,payloadIndex:u,className:ce("recharts-tooltip-cursor",p.className)});return O.isValidElement(p)?O.cloneElement(p,b):O.createElement(h,b)}var z4=["item"],W4=["children","className","width","height","style","compact","title","desc"];function Bn(e){"@babel/helpers - typeof";return Bn=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},Bn(e)}function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fn.apply(this,arguments)}function vm(e,t){return q4(e)||G4(e,t)||mm(e,t)||U4()}function U4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
124
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G4(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function q4(e){if(Array.isArray(e))return e}function ym(e,t){if(e==null)return{};var r=K4(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function K4(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function H4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xm(n.key),n)}}function Y4(e,t,r){return t&&V4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function X4(e,t,r){return t=ss(t),Z4(e,gm()?Reflect.construct(t,r||[],ss(e).constructor):t.apply(e,r))}function Z4(e,t){if(t&&(Bn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return J4(e)}function J4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gm=function(){return!!e})()}function ss(e){return ss=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ss(e)}function Q4(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&&Pc(e,t)}function Pc(e,t){return Pc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Pc(e,t)}function zn(e){return rz(e)||tz(e)||mm(e)||ez()}function ez(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
125
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mm(e,t){if(e){if(typeof e=="string")return _c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _c(e,t)}}function tz(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rz(e){if(Array.isArray(e))return _c(e)}function _c(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function B(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bm(Object(r),!0).forEach(function(n){ne(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ne(e,t,r){return t=xm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xm(e){var t=nz(e,"string");return Bn(t)=="symbol"?t:t+""}function nz(e,t){if(Bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iz={xAxis:["bottom","top"],yAxis:["left","right"]},az={width:"100%",height:"100%"},wm={x:0,y:0};function ls(e){return e}var oz=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},sz=function(t,r,n,i){var a=r.find(function(c){return c&&c.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return B(B(B({},i),Ye(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var l=a.coordinate,u=i.angle;return B(B(B({},i),Ye(i.cx,i.cy,l,u)),{},{angle:u,radius:l})}return wm},us=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,l){var u=l.props.data;return u&&u.length?[].concat(zn(s),zn(u)):s},[]);return o.length>0?o:t&&t.length&&V(i)&&V(a)?t.slice(i,a+1):[]};function Om(e){return e==="number"?[0,"auto"]:void 0}var Tc=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=us(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(l,u){var c,f=(c=u.props.data)!==null&&c!==void 0?c:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var p=f===void 0?s:f;d=va(p,o.dataKey,i)}else d=f&&f[n]||s[n];return d?[].concat(zn(l),[Ev(u,d)]):l},[])},Sm=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=oz(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,c=WI(o,s,u,l);if(c>=0&&u){var f=u[c]&&u[c].value,d=Tc(t,r,c,f),p=sz(n,s,c,a);return{activeTooltipIndex:c,activeLabel:f,activePayload:d,activeCoordinate:p}}return null},lz=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,d=t.stackOffset,p=xv(c,a);return n.reduce(function(g,h){var v,m=h.type.defaultProps!==void 0?B(B({},h.type.defaultProps),h.props):h.props,w=m.type,x=m.dataKey,S=m.allowDataOverflow,y=m.allowDuplicatedCategory,b=m.scale,A=m.ticks,T=m.includeHidden,j=m[o];if(g[j])return g;var N=us(t.data,{graphicalItems:i.filter(function(z){var H,X=o in z.props?z.props[o]:(H=z.type.defaultProps)===null||H===void 0?void 0:H[o];return X===j}),dataStartIndex:l,dataEndIndex:u}),_=N.length,E,k,M;I4(m.domain,S,w)&&(E=yu(m.domain,null,S),p&&(w==="number"||b!=="auto")&&(M=Ei(N,x,"category")));var D=Om(w);if(!E||E.length===0){var L,F=(L=m.domain)!==null&&L!==void 0?L:D;if(x){if(E=Ei(N,x,w),w==="category"&&p){var G=Ew(E);y&&G?(k=E,E=Io(0,_)):y||(E=Tv(F,E,h).reduce(function(z,H){return z.indexOf(H)>=0?z:[].concat(zn(z),[H])},[]))}else if(w==="category")y?E=E.filter(function(z){return z!==""&&!oe(z)}):E=Tv(F,E,h).reduce(function(z,H){return z.indexOf(H)>=0||H===""||oe(H)?z:[].concat(zn(z),[H])},[]);else if(w==="number"){var U=HI(N,i.filter(function(z){var H,X,ee=o in z.props?z.props[o]:(H=z.type.defaultProps)===null||H===void 0?void 0:H[o],te="hide"in z.props?z.props.hide:(X=z.type.defaultProps)===null||X===void 0?void 0:X.hide;return ee===j&&(T||!te)}),x,a,c);U&&(E=U)}p&&(w==="number"||b!=="auto")&&(M=Ei(N,x,"category"))}else p?E=Io(0,_):s&&s[j]&&s[j].hasStack&&w==="number"?E=d==="expand"?[0,1]:Av(s[j].stackGroups,l,u):E=bv(N,i.filter(function(z){var H=o in z.props?z.props[o]:z.type.defaultProps[o],X="hide"in z.props?z.props.hide:z.type.defaultProps.hide;return H===j&&(T||!X)}),w,c,!0);if(w==="number")E=wc(f,E,j,a,A),F&&(E=yu(F,E,S));else if(w==="category"&&F){var I=F,R=E.every(function(z){return I.indexOf(z)>=0});R&&(E=I)}}return B(B({},g),{},ne({},j,B(B({},m),{},{axisType:a,domain:E,categoricalDomain:M,duplicateDomain:k,originalDomain:(v=m.domain)!==null&&v!==void 0?v:D,isCategorical:p,layout:c})))},{})},uz=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,d=us(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),p=d.length,g=xv(c,a),h=-1;return n.reduce(function(v,m){var w=m.type.defaultProps!==void 0?B(B({},m.type.defaultProps),m.props):m.props,x=w[o],S=Om("number");if(!v[x]){h++;var y;return g?y=Io(0,p):s&&s[x]&&s[x].hasStack?(y=Av(s[x].stackGroups,l,u),y=wc(f,y,x,a)):(y=yu(S,bv(d,n.filter(function(b){var A,T,j=o in b.props?b.props[o]:(A=b.type.defaultProps)===null||A===void 0?void 0:A[o],N="hide"in b.props?b.props.hide:(T=b.type.defaultProps)===null||T===void 0?void 0:T.hide;return j===x&&!N}),"number",c),i.defaultProps.allowDataOverflow),y=wc(f,y,x,a)),B(B({},v),{},ne({},x,B(B({axisType:a},i.defaultProps),{},{hide:!0,orientation:pt(iz,"".concat(a,".").concat(h%2),null),domain:y,originalDomain:S,isCategorical:g,layout:c})))}return v},{})},cz=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.children,f="".concat(i,"Id"),d=nt(c,a),p={};return d&&d.length?p=lz(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(p=uz(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),p},fz=function(t){var r=nr(t),n=Qt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:ul(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:go(r,n)}},Am=function(t){var r=t.children,n=t.defaultShowTooltip,i=st(r,wn),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},dz=function(t){return!t||!t.length?!1:t.some(function(r){var n=Ut(r&&r.type);return n&&n.indexOf("Bar")>=0})},Pm=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"}},pz=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,u=n.width,c=n.height,f=n.children,d=n.margin||{},p=st(f,wn),g=st(f,tn),h=Object.keys(l).reduce(function(y,b){var A=l[b],T=A.orientation;return!A.mirror&&!A.hide?B(B({},y),{},ne({},T,y[T]+A.width)):y},{left:d.left||0,right:d.right||0}),v=Object.keys(o).reduce(function(y,b){var A=o[b],T=A.orientation;return!A.mirror&&!A.hide?B(B({},y),{},ne({},T,pt(y,"".concat(T))+A.height)):y},{top:d.top||0,bottom:d.bottom||0}),m=B(B({},v),h),w=m.bottom;p&&(m.bottom+=p.props.height||wn.defaultProps.height),g&&r&&(m=qI(m,i,n,r));var x=u-m.left-m.right,S=c-m.top-m.bottom;return B(B({brushBottom:w},m),{},{width:Math.max(x,0),height:Math.max(S,0)})},hz=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},vz=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,u=t.legendContent,c=t.formatAxisMap,f=t.defaultProps,d=function(m,w){var x=w.graphicalItems,S=w.stackGroups,y=w.offset,b=w.updateId,A=w.dataStartIndex,T=w.dataEndIndex,j=m.barSize,N=m.layout,_=m.barGap,E=m.barCategoryGap,k=m.maxBarSize,M=Pm(N),D=M.numericAxisName,L=M.cateAxisName,F=dz(x),G=[];return x.forEach(function(U,I){var R=us(m.data,{graphicalItems:[U],dataStartIndex:A,dataEndIndex:T}),z=U.type.defaultProps!==void 0?B(B({},U.type.defaultProps),U.props):U.props,H=z.dataKey,X=z.maxBarSize,ee=z["".concat(D,"Id")],te=z["".concat(L,"Id")],ie={},re=l.reduce(function(tr,ft){var aa,oa,Kn=w["".concat(ft.axisType,"Map")],sa=z["".concat(ft.axisType,"Id")];Kn&&Kn[sa]||ft.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?at(!1,"Specifying a(n) ".concat(ft.axisType,"Id requires a corresponding ").concat(ft.axisType,"Id on the targeted graphical component ").concat((aa=U==null||(oa=U.type)===null||oa===void 0?void 0:oa.displayName)!==null&&aa!==void 0?aa:"")):at());var la=Kn[sa];return B(B({},tr),{},ne(ne({},ft.axisType,la),"".concat(ft.axisType,"Ticks"),Qt(la)))},ie),W=re[L],Y=re["".concat(L,"Ticks")],Q=S&&S[ee]&&S[ee].hasStack&&aN(U,S[ee].stackGroups),C=Ut(U.type).indexOf("Bar")>=0,fe=go(W,Y),K=[],ye=F&&UI({barSize:j,stackGroups:S,totalSize:hz(re,L)});if(C){var Oe,Fe,jt=oe(X)?k:X,Ct=(Oe=(Fe=go(W,Y,!0))!==null&&Fe!==void 0?Fe:jt)!==null&&Oe!==void 0?Oe:0;K=GI({barGap:_,barCategoryGap:E,bandSize:Ct!==fe?Ct:fe,sizeList:ye[te],maxBarSize:jt}),Ct!==fe&&(K=K.map(function(tr){return B(B({},tr),{},{position:B(B({},tr.position),{},{offset:tr.position.offset-Ct/2})})}))}var qn=U&&U.type&&U.type.getComposedData;qn&&G.push({props:B(B({},qn(B(B({},re),{},{displayedData:R,props:m,dataKey:H,item:U,bandSize:fe,barPosition:K,offset:y,stackedData:Q,layout:N,dataStartIndex:A,dataEndIndex:T}))),{},ne(ne(ne({key:U.key||"item-".concat(I)},D,re[D]),L,re[L]),"animationId",b)),childIndex:zw(U,m.children),item:U})}),G},p=function(m,w){var x=m.props,S=m.dataStartIndex,y=m.dataEndIndex,b=m.updateId;if(!df({props:x}))return null;var A=x.children,T=x.layout,j=x.stackOffset,N=x.data,_=x.reverseStackOrder,E=Pm(T),k=E.numericAxisName,M=E.cateAxisName,D=nt(A,n),L=rN(N,D,"".concat(k,"Id"),"".concat(M,"Id"),j,_),F=l.reduce(function(z,H){var X="".concat(H.axisType,"Map");return B(B({},z),{},ne({},X,cz(x,B(B({},H),{},{graphicalItems:D,stackGroups:H.axisType===k&&L,dataStartIndex:S,dataEndIndex:y}))))},{}),G=pz(B(B({},F),{},{props:x,graphicalItems:D}),w==null?void 0:w.legendBBox);Object.keys(F).forEach(function(z){F[z]=c(x,F[z],G,z.replace("Map",""),r)});var U=F["".concat(M,"Map")],I=fz(U),R=d(x,B(B({},F),{},{dataStartIndex:S,dataEndIndex:y,updateId:b,graphicalItems:D,stackGroups:L,offset:G}));return B(B({formattedGraphicalItems:R,graphicalItems:D,offset:G,stackGroups:L},I),F)},g=function(v){function m(w){var x,S,y;return H4(this,m),y=X4(this,m,[w]),ne(y,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ne(y,"accessibilityManager",new k4),ne(y,"handleLegendBBoxUpdate",function(b){if(b){var A=y.state,T=A.dataStartIndex,j=A.dataEndIndex,N=A.updateId;y.setState(B({legendBBox:b},p({props:y.props,dataStartIndex:T,dataEndIndex:j,updateId:N},B(B({},y.state),{},{legendBBox:b}))))}}),ne(y,"handleReceiveSyncEvent",function(b,A,T){if(y.props.syncId===b){if(T===y.eventEmitterSymbol&&typeof y.props.syncMethod!="function")return;y.applySyncEvent(A)}}),ne(y,"handleBrushChange",function(b){var A=b.startIndex,T=b.endIndex;if(A!==y.state.dataStartIndex||T!==y.state.dataEndIndex){var j=y.state.updateId;y.setState(function(){return B({dataStartIndex:A,dataEndIndex:T},p({props:y.props,dataStartIndex:A,dataEndIndex:T,updateId:j},y.state))}),y.triggerSyncEvent({dataStartIndex:A,dataEndIndex:T})}}),ne(y,"handleMouseEnter",function(b){var A=y.getMouseInfo(b);if(A){var T=B(B({},A),{},{isTooltipActive:!0});y.setState(T),y.triggerSyncEvent(T);var j=y.props.onMouseEnter;le(j)&&j(T,b)}}),ne(y,"triggeredAfterMouseMove",function(b){var A=y.getMouseInfo(b),T=A?B(B({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};y.setState(T),y.triggerSyncEvent(T);var j=y.props.onMouseMove;le(j)&&j(T,b)}),ne(y,"handleItemMouseEnter",function(b){y.setState(function(){return{isTooltipActive:!0,activeItem:b,activePayload:b.tooltipPayload,activeCoordinate:b.tooltipPosition||{x:b.cx,y:b.cy}}})}),ne(y,"handleItemMouseLeave",function(){y.setState(function(){return{isTooltipActive:!1}})}),ne(y,"handleMouseMove",function(b){b.persist(),y.throttleTriggeredAfterMouseMove(b)}),ne(y,"handleMouseLeave",function(b){y.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};y.setState(A),y.triggerSyncEvent(A);var T=y.props.onMouseLeave;le(T)&&T(A,b)}),ne(y,"handleOuterEvent",function(b){var A=Fw(b),T=pt(y.props,"".concat(A));if(A&&le(T)){var j,N;/.*touch.*/i.test(A)?N=y.getMouseInfo(b.changedTouches[0]):N=y.getMouseInfo(b),T((j=N)!==null&&j!==void 0?j:{},b)}}),ne(y,"handleClick",function(b){var A=y.getMouseInfo(b);if(A){var T=B(B({},A),{},{isTooltipActive:!0});y.setState(T),y.triggerSyncEvent(T);var j=y.props.onClick;le(j)&&j(T,b)}}),ne(y,"handleMouseDown",function(b){var A=y.props.onMouseDown;if(le(A)){var T=y.getMouseInfo(b);A(T,b)}}),ne(y,"handleMouseUp",function(b){var A=y.props.onMouseUp;if(le(A)){var T=y.getMouseInfo(b);A(T,b)}}),ne(y,"handleTouchMove",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&y.throttleTriggeredAfterMouseMove(b.changedTouches[0])}),ne(y,"handleTouchStart",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&y.handleMouseDown(b.changedTouches[0])}),ne(y,"handleTouchEnd",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&y.handleMouseUp(b.changedTouches[0])}),ne(y,"handleDoubleClick",function(b){var A=y.props.onDoubleClick;if(le(A)){var T=y.getMouseInfo(b);A(T,b)}}),ne(y,"handleContextMenu",function(b){var A=y.props.onContextMenu;if(le(A)){var T=y.getMouseInfo(b);A(T,b)}}),ne(y,"triggerSyncEvent",function(b){y.props.syncId!==void 0&&Oc.emit(Sc,y.props.syncId,b,y.eventEmitterSymbol)}),ne(y,"applySyncEvent",function(b){var A=y.props,T=A.layout,j=A.syncMethod,N=y.state.updateId,_=b.dataStartIndex,E=b.dataEndIndex;if(b.dataStartIndex!==void 0||b.dataEndIndex!==void 0)y.setState(B({dataStartIndex:_,dataEndIndex:E},p({props:y.props,dataStartIndex:_,dataEndIndex:E,updateId:N},y.state)));else if(b.activeTooltipIndex!==void 0){var k=b.chartX,M=b.chartY,D=b.activeTooltipIndex,L=y.state,F=L.offset,G=L.tooltipTicks;if(!F)return;if(typeof j=="function")D=j(G,b);else if(j==="value"){D=-1;for(var U=0;U<G.length;U++)if(G[U].value===b.activeLabel){D=U;break}}var I=B(B({},F),{},{x:F.left,y:F.top}),R=Math.min(k,I.x+I.width),z=Math.min(M,I.y+I.height),H=G[D]&&G[D].value,X=Tc(y.state,y.props.data,D),ee=G[D]?{x:T==="horizontal"?G[D].coordinate:R,y:T==="horizontal"?z:G[D].coordinate}:wm;y.setState(B(B({},b),{},{activeLabel:H,activeCoordinate:ee,activePayload:X,activeTooltipIndex:D}))}else y.setState(b)}),ne(y,"renderCursor",function(b){var A,T=y.state,j=T.isTooltipActive,N=T.activeCoordinate,_=T.activePayload,E=T.offset,k=T.activeTooltipIndex,M=T.tooltipAxisBandSize,D=y.getTooltipEventType(),L=(A=b.props.active)!==null&&A!==void 0?A:j,F=y.props.layout,G=b.key||"_recharts-cursor";return O.createElement(F4,{key:G,activeCoordinate:N,activePayload:_,activeTooltipIndex:k,chartName:r,element:b,isActive:L,layout:F,offset:E,tooltipAxisBandSize:M,tooltipEventType:D})}),ne(y,"renderPolarAxis",function(b,A,T){var j=pt(b,"type.axisType"),N=pt(y.state,"".concat(j,"Map")),_=b.type.defaultProps,E=_!==void 0?B(B({},_),b.props):b.props,k=N&&N[E["".concat(j,"Id")]];return O.cloneElement(b,B(B({},k),{},{className:ce(j,k.className),key:b.key||"".concat(A,"-").concat(T),ticks:Qt(k,!0)}))}),ne(y,"renderPolarGrid",function(b){var A=b.props,T=A.radialLines,j=A.polarAngles,N=A.polarRadius,_=y.state,E=_.radiusAxisMap,k=_.angleAxisMap,M=nr(E),D=nr(k),L=D.cx,F=D.cy,G=D.innerRadius,U=D.outerRadius;return O.cloneElement(b,{polarAngles:Array.isArray(j)?j:Qt(D,!0).map(function(I){return I.coordinate}),polarRadius:Array.isArray(N)?N:Qt(M,!0).map(function(I){return I.coordinate}),cx:L,cy:F,innerRadius:G,outerRadius:U,key:b.key||"polar-grid",radialLines:T})}),ne(y,"renderLegend",function(){var b=y.state.formattedGraphicalItems,A=y.props,T=A.children,j=A.width,N=A.height,_=y.props.margin||{},E=j-(_.left||0)-(_.right||0),k=vv({children:T,formattedGraphicalItems:b,legendWidth:E,legendContent:u});if(!k)return null;var M=k.item,D=ym(k,z4);return O.cloneElement(M,B(B({},D),{},{chartWidth:j,chartHeight:N,margin:_,onBBoxUpdate:y.handleLegendBBoxUpdate}))}),ne(y,"renderTooltip",function(){var b,A=y.props,T=A.children,j=A.accessibilityLayer,N=st(T,It);if(!N)return null;var _=y.state,E=_.isTooltipActive,k=_.activeCoordinate,M=_.activePayload,D=_.activeLabel,L=_.offset,F=(b=N.props.active)!==null&&b!==void 0?b:E;return O.cloneElement(N,{viewBox:B(B({},L),{},{x:L.left,y:L.top}),active:F,label:D,payload:F?M:[],coordinate:k,accessibilityLayer:j})}),ne(y,"renderBrush",function(b){var A=y.props,T=A.margin,j=A.data,N=y.state,_=N.offset,E=N.dataStartIndex,k=N.dataEndIndex,M=N.updateId;return O.cloneElement(b,{key:b.key||"_recharts-brush",onChange:yo(y.handleBrushChange,b.props.onChange),data:j,x:V(b.props.x)?b.props.x:_.left,y:V(b.props.y)?b.props.y:_.top+_.height+_.brushBottom-(T.bottom||0),width:V(b.props.width)?b.props.width:_.width,startIndex:E,endIndex:k,updateId:"brush-".concat(M)})}),ne(y,"renderReferenceElement",function(b,A,T){if(!b)return null;var j=y,N=j.clipPathId,_=y.state,E=_.xAxisMap,k=_.yAxisMap,M=_.offset,D=b.type.defaultProps||{},L=b.props,F=L.xAxisId,G=F===void 0?D.xAxisId:F,U=L.yAxisId,I=U===void 0?D.yAxisId:U;return O.cloneElement(b,{key:b.key||"".concat(A,"-").concat(T),xAxis:E[G],yAxis:k[I],viewBox:{x:M.left,y:M.top,width:M.width,height:M.height},clipPathId:N})}),ne(y,"renderActivePoints",function(b){var A=b.item,T=b.activePoint,j=b.basePoint,N=b.childIndex,_=b.isRange,E=[],k=A.props.key,M=A.item.type.defaultProps!==void 0?B(B({},A.item.type.defaultProps),A.item.props):A.item.props,D=M.activeDot,L=M.dataKey,F=B(B({index:N,dataKey:L,cx:T.x,cy:T.y,r:4,fill:hu(A.item),strokeWidth:2,stroke:"#fff",payload:T.payload,value:T.value},se(D,!1)),ya(D));return E.push(m.renderActiveDot(D,F,"".concat(k,"-activePoint-").concat(N))),j?E.push(m.renderActiveDot(D,B(B({},F),{},{cx:j.x,cy:j.y}),"".concat(k,"-basePoint-").concat(N))):_&&E.push(null),E}),ne(y,"renderGraphicChild",function(b,A,T){var j=y.filterFormatItem(b,A,T);if(!j)return null;var N=y.getTooltipEventType(),_=y.state,E=_.isTooltipActive,k=_.tooltipAxis,M=_.activeTooltipIndex,D=_.activeLabel,L=y.props.children,F=st(L,It),G=j.props,U=G.points,I=G.isRange,R=G.baseLine,z=j.item.type.defaultProps!==void 0?B(B({},j.item.type.defaultProps),j.item.props):j.item.props,H=z.activeDot,X=z.hide,ee=z.activeBar,te=z.activeShape,ie=!!(!X&&E&&F&&(H||ee||te)),re={};N!=="axis"&&F&&F.props.trigger==="click"?re={onClick:yo(y.handleItemMouseEnter,b.props.onClick)}:N!=="axis"&&(re={onMouseLeave:yo(y.handleItemMouseLeave,b.props.onMouseLeave),onMouseEnter:yo(y.handleItemMouseEnter,b.props.onMouseEnter)});var W=O.cloneElement(b,B(B({},j.props),re));function Y(ft){return typeof k.dataKey=="function"?k.dataKey(ft.payload):null}if(ie)if(M>=0){var Q,C;if(k.dataKey&&!k.allowDuplicatedCategory){var fe=typeof k.dataKey=="function"?Y:"payload.".concat(k.dataKey.toString());Q=va(U,fe,D),C=I&&R&&va(R,fe,D)}else Q=U==null?void 0:U[M],C=I&&R&&R[M];if(te||ee){var K=b.props.activeIndex!==void 0?b.props.activeIndex:M;return[O.cloneElement(b,B(B(B({},j.props),re),{},{activeIndex:K})),null,null]}if(!oe(Q))return[W].concat(zn(y.renderActivePoints({item:j,activePoint:Q,basePoint:C,childIndex:M,isRange:I})))}else{var ye,Oe=(ye=y.getItemByXY(y.state.activeCoordinate))!==null&&ye!==void 0?ye:{graphicalItem:W},Fe=Oe.graphicalItem,jt=Fe.item,Ct=jt===void 0?b:jt,qn=Fe.childIndex,tr=B(B(B({},j.props),re),{},{activeIndex:qn});return[O.cloneElement(Ct,tr),null,null]}return I?[W,null,null]:[W,null]}),ne(y,"renderCustomized",function(b,A,T){return O.cloneElement(b,B(B({key:"recharts-customized-".concat(T)},y.props),y.state))}),ne(y,"renderMap",{CartesianGrid:{handler:ls,once:!0},ReferenceArea:{handler:y.renderReferenceElement},ReferenceLine:{handler:ls},ReferenceDot:{handler:y.renderReferenceElement},XAxis:{handler:ls},YAxis:{handler:ls},Brush:{handler:y.renderBrush,once:!0},Bar:{handler:y.renderGraphicChild},Line:{handler:y.renderGraphicChild},Area:{handler:y.renderGraphicChild},Radar:{handler:y.renderGraphicChild},RadialBar:{handler:y.renderGraphicChild},Scatter:{handler:y.renderGraphicChild},Pie:{handler:y.renderGraphicChild},Funnel:{handler:y.renderGraphicChild},Tooltip:{handler:y.renderCursor,once:!0},PolarGrid:{handler:y.renderPolarGrid,once:!0},PolarAngleAxis:{handler:y.renderPolarAxis},PolarRadiusAxis:{handler:y.renderPolarAxis},Customized:{handler:y.renderCustomized}}),y.clipPathId="".concat((x=w.id)!==null&&x!==void 0?x:wr("recharts"),"-clip"),y.throttleTriggeredAfterMouseMove=dp(y.triggeredAfterMouseMove,(S=w.throttleDelay)!==null&&S!==void 0?S:1e3/60),y.state={},y}return Q4(m,v),Y4(m,[{key:"componentDidMount",value:function(){var x,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,S=x.children,y=x.data,b=x.height,A=x.layout,T=st(S,It);if(T){var j=T.props.defaultIndex;if(!(typeof j!="number"||j<0||j>this.state.tooltipTicks.length-1)){var N=this.state.tooltipTicks[j]&&this.state.tooltipTicks[j].value,_=Tc(this.state,y,j,N),E=this.state.tooltipTicks[j].coordinate,k=(this.state.offset.top+b)/2,M=A==="horizontal",D=M?{x:E,y:k}:{y:E,x:k},L=this.state.formattedGraphicalItems.find(function(G){var U=G.item;return U.type.name==="Scatter"});L&&(D=B(B({},D),L.props.points[j].tooltipPosition),_=L.props.points[j].tooltipPayload);var F={activeTooltipIndex:j,isTooltipActive:!0,activeLabel:N,activePayload:_,activeCoordinate:D};this.setState(F),this.renderCursor(T),this.accessibilityManager.setIndex(j)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var y,b;this.accessibilityManager.setDetails({offset:{left:(y=this.props.margin.left)!==null&&y!==void 0?y:0,top:(b=this.props.margin.top)!==null&&b!==void 0?b:0}})}return null}},{key:"componentDidUpdate",value:function(x){Es([st(x.children,It)],[st(this.props.children,It)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=st(this.props.children,It);if(x&&typeof x.props.shared=="boolean"){var S=x.props.shared?"axis":"item";return s.indexOf(S)>=0?S:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var S=this.container,y=S.getBoundingClientRect(),b=vC(y),A={chartX:Math.round(x.pageX-b.left),chartY:Math.round(x.pageY-b.top)},T=y.width/S.offsetWidth||1,j=this.inRange(A.chartX,A.chartY,T);if(!j)return null;var N=this.state,_=N.xAxisMap,E=N.yAxisMap,k=this.getTooltipEventType(),M=Sm(this.state,this.props.data,this.props.layout,j);if(k!=="axis"&&_&&E){var D=nr(_).scale,L=nr(E).scale,F=D&&D.invert?D.invert(A.chartX):null,G=L&&L.invert?L.invert(A.chartY):null;return B(B({},A),{},{xValue:F,yValue:G},M)}return M?B(B({},A),M):null}},{key:"inRange",value:function(x,S){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,b=this.props.layout,A=x/y,T=S/y;if(b==="horizontal"||b==="vertical"){var j=this.state.offset,N=A>=j.left&&A<=j.left+j.width&&T>=j.top&&T<=j.top+j.height;return N?{x:A,y:T}:null}var _=this.state,E=_.angleAxisMap,k=_.radiusAxisMap;if(E&&k){var M=nr(E);return Cv({x:A,y:T},M)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,S=this.getTooltipEventType(),y=st(x,It),b={};y&&S==="axis"&&(y.props.trigger==="click"?b={onClick:this.handleClick}:b={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 A=ya(this.props,this.handleOuterEvent);return B(B({},A),b)}},{key:"addListener",value:function(){Oc.on(Sc,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Oc.removeListener(Sc,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,S,y){for(var b=this.state.formattedGraphicalItems,A=0,T=b.length;A<T;A++){var j=b[A];if(j.item===x||j.props.key===x.key||S===Ut(j.item.type)&&y===j.childIndex)return j}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,S=this.state.offset,y=S.left,b=S.top,A=S.height,T=S.width;return O.createElement("defs",null,O.createElement("clipPath",{id:x},O.createElement("rect",{x:y,y:b,height:A,width:T})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(S,y){var b=vm(y,2),A=b[0],T=b[1];return B(B({},S),{},ne({},A,T.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(S,y){var b=vm(y,2),A=b[0],T=b[1];return B(B({},S),{},ne({},A,T.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[x])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(x){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[x])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(x){var S=this.state,y=S.formattedGraphicalItems,b=S.activeItem;if(y&&y.length)for(var A=0,T=y.length;A<T;A++){var j=y[A],N=j.props,_=j.item,E=_.type.defaultProps!==void 0?B(B({},_.type.defaultProps),_.props):_.props,k=Ut(_.type);if(k==="Bar"){var M=(N.data||[]).find(function(G){return tR(x,G)});if(M)return{graphicalItem:j,payload:M}}else if(k==="RadialBar"){var D=(N.data||[]).find(function(G){return Cv(x,G)});if(D)return{graphicalItem:j,payload:D}}else if(Mo(j,b)||ko(j,b)||Ki(j,b)){var L=n3({graphicalItem:j,activeTooltipItem:b,itemData:E.data}),F=E.activeIndex===void 0?L:E.activeIndex;return{graphicalItem:B(B({},j),{},{childIndex:F}),payload:Ki(j,b)?E.data[L]:j.props.data[L]}}}return null}},{key:"render",value:function(){var x=this;if(!df(this))return null;var S=this.props,y=S.children,b=S.className,A=S.width,T=S.height,j=S.style,N=S.compact,_=S.title,E=S.desc,k=ym(S,W4),M=se(k,!1);if(N)return O.createElement(pg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement(js,Fn({},M,{width:A,height:T,title:_,desc:E}),this.renderClipPath(),vf(y,this.renderMap)));if(this.props.accessibilityLayer){var D,L;M.tabIndex=(D=this.props.tabIndex)!==null&&D!==void 0?D:0,M.role=(L=this.props.role)!==null&&L!==void 0?L:"application",M.onKeyDown=function(G){x.accessibilityManager.keyboardEvent(G)},M.onFocus=function(){x.accessibilityManager.focus()}}var F=this.parseEventsOfWrapper();return O.createElement(pg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement("div",Fn({className:ce("recharts-wrapper",b),style:B({position:"relative",cursor:"default",width:A,height:T},j)},F,{ref:function(U){x.container=U}}),O.createElement(js,Fn({},M,{width:A,height:T,title:_,desc:E,style:az}),this.renderClipPath(),vf(y,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(O.Component);ne(g,"displayName",r),ne(g,"defaultProps",B({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),ne(g,"getDerivedStateFromProps",function(v,m){var w=v.dataKey,x=v.data,S=v.children,y=v.width,b=v.height,A=v.layout,T=v.stackOffset,j=v.margin,N=m.dataStartIndex,_=m.dataEndIndex;if(m.updateId===void 0){var E=Am(v);return B(B(B({},E),{},{updateId:0},p(B(B({props:v},E),{},{updateId:0}),m)),{},{prevDataKey:w,prevData:x,prevWidth:y,prevHeight:b,prevLayout:A,prevStackOffset:T,prevMargin:j,prevChildren:S})}if(w!==m.prevDataKey||x!==m.prevData||y!==m.prevWidth||b!==m.prevHeight||A!==m.prevLayout||T!==m.prevStackOffset||!Vr(j,m.prevMargin)){var k=Am(v),M={chartX:m.chartX,chartY:m.chartY,isTooltipActive:m.isTooltipActive},D=B(B({},Sm(m,x,A)),{},{updateId:m.updateId+1}),L=B(B(B({},k),M),D);return B(B(B({},L),p(B({props:v},L),m)),{},{prevDataKey:w,prevData:x,prevWidth:y,prevHeight:b,prevLayout:A,prevStackOffset:T,prevMargin:j,prevChildren:S})}if(!Es(S,m.prevChildren)){var F,G,U,I,R=st(S,wn),z=R&&(F=(G=R.props)===null||G===void 0?void 0:G.startIndex)!==null&&F!==void 0?F:N,H=R&&(U=(I=R.props)===null||I===void 0?void 0:I.endIndex)!==null&&U!==void 0?U:_,X=z!==N||H!==_,ee=!oe(x),te=ee&&!X?m.updateId:m.updateId+1;return B(B({updateId:te},p(B(B({props:v},m),{},{updateId:te,dataStartIndex:z,dataEndIndex:H}),m)),{},{prevChildren:S,dataStartIndex:z,dataEndIndex:H})}return null}),ne(g,"renderActiveDot",function(v,m,w){var x;return O.isValidElement(v)?x=O.cloneElement(v,m):le(v)?x=v(m):x=O.createElement($o,m),O.createElement(ve,{className:"recharts-active-dot",key:w},x)});var h=O.forwardRef(function(m,w){return O.createElement(g,Fn({},m,{ref:w}))});return h.displayName=g.displayName,h},yz=vz({chartName:"ComposedChart",GraphicalChild:[Ji,hr,An,ts],axisComponents:[{axisType:"xAxis",AxisComp:ns},{axisType:"yAxis",AxisComp:as},{axisType:"zAxis",AxisComp:Qo}],formatAxisMap:EB});const Ec="-",gz=e=>{const t=bz(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const s=o.split(Ec);return s[0]===""&&s.length!==1&&s.shift(),_m(s,t)||mz(o)},getConflictingClassGroupIds:(o,s)=>{const l=r[o]||[];return s&&n[o]?[...l,...n[o]]:l}}},_m=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?_m(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(Ec);return(o=t.validators.find(({validator:s})=>s(a)))==null?void 0:o.classGroupId},Tm=/^\[(.+)\]$/,mz=e=>{if(Tm.test(e)){const t=Tm.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},bz=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return wz(Object.entries(e.classGroups),r).forEach(([a,o])=>{$c(o,n,a,t)}),n},$c=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:Em(t,i);a.classGroupId=r;return}if(typeof i=="function"){if(xz(i)){$c(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,o])=>{$c(o,Em(t,a),r,n)})})},Em=(e,t)=>{let r=e;return t.split(Ec).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},xz=e=>e.isThemeGetter,wz=(e,t)=>t?e.map(([r,n])=>{const i=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,s])=>[t+o,s])):a);return[r,i]}):e,Oz=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(a,o)=>{r.set(a,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let o=r.get(a);if(o!==void 0)return o;if((o=n.get(a))!==void 0)return i(a,o),o},set(a,o){r.has(a)?r.set(a,o):i(a,o)}}},$m="!",Sz=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],a=t.length,o=s=>{const l=[];let u=0,c=0,f;for(let v=0;v<s.length;v++){let m=s[v];if(u===0){if(m===i&&(n||s.slice(v,v+a)===t)){l.push(s.slice(c,v)),c=v+a;continue}if(m==="/"){f=v;continue}}m==="["?u++:m==="]"&&u--}const d=l.length===0?s:s.substring(c),p=d.startsWith($m),g=p?d.substring(1):d,h=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:h}};return r?s=>r({className:s,parseClassName:o}):o},Az=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},Pz=e=>({cache:Oz(e.cacheSize),parseClassName:Sz(e),...gz(e)}),_z=/\s+/,Tz=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(_z);let s="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:p}=r(u);let g=!!p,h=n(g?d.substring(0,p):d);if(!h){if(!g){s=u+(s.length>0?" "+s:s);continue}if(h=n(d),!h){s=u+(s.length>0?" "+s:s);continue}g=!1}const v=Az(c).join(":"),m=f?v+$m:v,w=m+h;if(a.includes(w))continue;a.push(w);const x=i(h,g);for(let S=0;S<x.length;++S){const y=x[S];a.push(m+y)}s=u+(s.length>0?" "+s:s)}return s};function Ez(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=jm(t))&&(n&&(n+=" "),n+=r);return n}const jm=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=jm(e[n]))&&(r&&(r+=" "),r+=t);return r};function $z(e,...t){let r,n,i,a=o;function o(l){const u=t.reduce((c,f)=>f(c),e());return r=Pz(u),n=r.cache.get,i=r.cache.set,a=s,s(l)}function s(l){const u=n(l);if(u)return u;const c=Tz(l,r);return i(l,c),c}return function(){return a(Ez.apply(null,arguments))}}const Me=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Cm=/^\[(?:([a-z-]+):)?(.+)\]$/i,jz=/^\d+\/\d+$/,Cz=new Set(["px","full","screen"]),Mz=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kz=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Iz=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Nz=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Dz=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,er=e=>Wn(e)||Cz.has(e)||jz.test(e),yr=e=>Un(e,"length",Gz),Wn=e=>!!e&&!Number.isNaN(Number(e)),jc=e=>Un(e,"number",Wn),na=e=>!!e&&Number.isInteger(Number(e)),Lz=e=>e.endsWith("%")&&Wn(e.slice(0,-1)),ue=e=>Cm.test(e),gr=e=>Mz.test(e),Rz=new Set(["length","size","percentage"]),Bz=e=>Un(e,Rz,Mm),Fz=e=>Un(e,"position",Mm),zz=new Set(["image","url"]),Wz=e=>Un(e,zz,Kz),Uz=e=>Un(e,"",qz),ia=()=>!0,Un=(e,t,r)=>{const n=Cm.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Gz=e=>kz.test(e)&&!Iz.test(e),Mm=()=>!1,qz=e=>Nz.test(e),Kz=e=>Dz.test(e),Hz=$z(()=>{const e=Me("colors"),t=Me("spacing"),r=Me("blur"),n=Me("brightness"),i=Me("borderColor"),a=Me("borderRadius"),o=Me("borderSpacing"),s=Me("borderWidth"),l=Me("contrast"),u=Me("grayscale"),c=Me("hueRotate"),f=Me("invert"),d=Me("gap"),p=Me("gradientColorStops"),g=Me("gradientColorStopPositions"),h=Me("inset"),v=Me("margin"),m=Me("opacity"),w=Me("padding"),x=Me("saturate"),S=Me("scale"),y=Me("sepia"),b=Me("skew"),A=Me("space"),T=Me("translate"),j=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto",ue,t],E=()=>[ue,t],k=()=>["",er,yr],M=()=>["auto",Wn,ue],D=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>["start","end","center","between","around","evenly","stretch"],U=()=>["","0",ue],I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[Wn,ue];return{cacheSize:500,separator:":",theme:{colors:[ia],spacing:[er,yr],blur:["none","",gr,ue],brightness:R(),borderColor:[e],borderRadius:["none","","full",gr,ue],borderSpacing:E(),borderWidth:k(),contrast:R(),grayscale:U(),hueRotate:R(),invert:U(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[Lz,yr],inset:_(),margin:_(),opacity:R(),padding:E(),saturate:R(),scale:R(),sepia:U(),skew:R(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",ue]}],container:["container"],columns:[{columns:[gr]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...D(),ue]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",na,ue]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ue]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",na,ue]}],"grid-cols":[{"grid-cols":[ia]}],"col-start-end":[{col:["auto",{span:["full",na,ue]},ue]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[ia]}],"row-start-end":[{row:["auto",{span:[na,ue]},ue]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ue]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...G()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...G(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...G(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ue,t]}],"min-w":[{"min-w":[ue,t,"min","max","fit"]}],"max-w":[{"max-w":[ue,t,"none","full","min","max","fit","prose",{screen:[gr]},gr]}],h:[{h:[ue,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ue,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ue,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ue,t,"auto","min","max","fit"]}],"font-size":[{text:["base",gr,yr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",jc]}],"font-family":[{font:[ia]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ue]}],"line-clamp":[{"line-clamp":["none",Wn,jc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",er,ue]}],"list-image":[{"list-image":["none",ue]}],"list-style-type":[{list:["none","disc","decimal",ue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",er,yr]}],"underline-offset":[{"underline-offset":["auto",er,ue]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...D(),Fz]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Bz]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Wz]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:L()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...L()]}],"outline-offset":[{"outline-offset":[er,ue]}],"outline-w":[{outline:[er,yr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:k()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[er,yr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",gr,Uz]}],"shadow-color":[{shadow:[ia]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",gr,ue]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ue]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",ue]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",ue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[na,ue]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[b]}],"skew-y":[{"skew-y":[b]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ue]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ue]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ue]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[er,yr,jc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function $e(...e){return Hz(ce(e))}const Vz=({className:e,width:t,height:r,rounded:n=!1})=>P.jsx("div",{className:$e("animate-pulse bg-gray-200",n?"rounded-full":"rounded",e),style:{width:typeof t=="number"?`${t}px`:t,height:typeof r=="number"?`${r}px`:r}}),Yz=({className:e,chartType:t="line",height:r=300})=>{const n=o=>{if(o.length===0)return"";let s=`M ${o[0].x} ${o[0].y}`;for(let l=1;l<o.length;l++){const u=o[l-1],c=o[l],f=u.x+(c.x-u.x)*.4,d=u.y,p=u.x+(c.x-u.x)*.6,g=c.y;s+=` C ${f} ${d} ${p} ${g} ${c.x} ${c.y}`}return s},i=(o=7)=>Array.from({length:o},(c,f)=>({x:f/(o-1)*100,y:80-Math.random()*60})),a=()=>{switch(t){case"bar":return P.jsx("div",{className:"absolute inset-0 flex items-end justify-between px-4 pb-4",children:[...Array(7)].map((v,m)=>P.jsx(Vz,{className:"w-8 bg-blue-100",height:`${Math.random()*60+20}%`},m))});case"line":const o=i(12),s=n(o),l=o[o.length-1],u=o[0],c=`${s} L ${l.x} 100 L ${u.x} 100 Z`;return P.jsx("div",{className:"absolute inset-0 p-4",children:P.jsxs("svg",{className:"w-full h-full",viewBox:"0 0 100 100",preserveAspectRatio:"none",children:[P.jsxs("defs",{children:[P.jsxs("linearGradient",{id:"skeleton-area-fill",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[P.jsx("stop",{offset:"0%",stopColor:"#8b5cf6",stopOpacity:"0.1",children:P.jsx("animate",{attributeName:"stop-opacity",values:"0.1;0.15;0.1",dur:"3s",repeatCount:"indefinite"})}),P.jsx("stop",{offset:"100%",stopColor:"#8b5cf6",stopOpacity:"0.02",children:P.jsx("animate",{attributeName:"stop-opacity",values:"0.02;0.05;0.02",dur:"3s",repeatCount:"indefinite"})})]}),P.jsxs("linearGradient",{id:"skeleton-line-shimmer",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[P.jsx("stop",{offset:"0%",stopColor:"#e2e8f0",stopOpacity:"0.3",children:P.jsx("animate",{attributeName:"stop-opacity",values:"0.3;0.6;0.3",dur:"2.5s",repeatCount:"indefinite"})}),P.jsx("stop",{offset:"50%",stopColor:"#cbd5e1",stopOpacity:"0.6",children:P.jsx("animate",{attributeName:"stop-opacity",values:"0.6;0.3;0.6",dur:"2.5s",repeatCount:"indefinite"})}),P.jsx("stop",{offset:"100%",stopColor:"#e2e8f0",stopOpacity:"0.3",children:P.jsx("animate",{attributeName:"stop-opacity",values:"0.3;0.6;0.3",dur:"2.5s",repeatCount:"indefinite"})})]})]}),P.jsx("path",{d:c,fill:"url(#skeleton-area-fill)"}),P.jsx("path",{d:s,stroke:"url(#skeleton-line-shimmer)",strokeWidth:"1.5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})]})});case"area":const f=i(),d=n(f),p=f[f.length-1],g=f[0],h=`${d} L ${p.x} 90 L ${g.x} 90 Z`;return P.jsx("div",{className:"absolute inset-0 p-4",children:P.jsxs("svg",{className:"w-full h-full",viewBox:"0 0 100 100",preserveAspectRatio:"none",children:[P.jsxs("defs",{children:[P.jsxs("linearGradient",{id:"skeleton-area-gradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[P.jsx("stop",{offset:"0%",stopColor:"#3b82f6",stopOpacity:"0.2",children:P.jsx("animate",{attributeName:"stop-opacity",values:"0.2;0.4;0.2",dur:"2s",repeatCount:"indefinite"})}),P.jsx("stop",{offset:"100%",stopColor:"#3b82f6",stopOpacity:"0.05",children:P.jsx("animate",{attributeName:"stop-opacity",values:"0.05;0.1;0.05",dur:"2s",repeatCount:"indefinite"})})]}),P.jsxs("linearGradient",{id:"skeleton-area-line",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[P.jsx("stop",{offset:"0%",stopColor:"#3b82f6",stopOpacity:"0.4",children:P.jsx("animate",{attributeName:"stop-opacity",values:"0.4;0.8;0.4",dur:"2s",repeatCount:"indefinite"})}),P.jsx("stop",{offset:"50%",stopColor:"#3b82f6",stopOpacity:"0.8",children:P.jsx("animate",{attributeName:"stop-opacity",values:"0.8;0.4;0.8",dur:"2s",repeatCount:"indefinite"})}),P.jsx("stop",{offset:"100%",stopColor:"#3b82f6",stopOpacity:"0.4",children:P.jsx("animate",{attributeName:"stop-opacity",values:"0.4;0.8;0.4",dur:"2s",repeatCount:"indefinite"})})]})]}),P.jsx("path",{d:h,fill:"url(#skeleton-area-gradient)"}),P.jsx("path",{d:n(f),stroke:"url(#skeleton-area-line)",strokeWidth:"2.5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})]})});case"pie":return P.jsx("div",{className:"absolute inset-0 flex items-center justify-center p-4",children:P.jsxs("svg",{className:"w-32 h-32",viewBox:"0 0 42 42",children:[P.jsxs("defs",{children:[P.jsx("linearGradient",{id:"skeleton-pie-gradient-1",children:P.jsx("stop",{offset:"0%",stopColor:"#3b82f6",stopOpacity:"0.3",children:P.jsx("animate",{attributeName:"stop-opacity",values:"0.3;0.6;0.3",dur:"2s",repeatCount:"indefinite"})})}),P.jsx("linearGradient",{id:"skeleton-pie-gradient-2",children:P.jsx("stop",{offset:"0%",stopColor:"#10b981",stopOpacity:"0.3",children:P.jsx("animate",{attributeName:"stop-opacity",values:"0.3;0.6;0.3",dur:"2s",repeatCount:"indefinite",begin:"0.5s"})})}),P.jsx("linearGradient",{id:"skeleton-pie-gradient-3",children:P.jsx("stop",{offset:"0%",stopColor:"#f59e0b",stopOpacity:"0.3",children:P.jsx("animate",{attributeName:"stop-opacity",values:"0.3;0.6;0.3",dur:"2s",repeatCount:"indefinite",begin:"1s"})})}),P.jsx("linearGradient",{id:"skeleton-pie-gradient-4",children:P.jsx("stop",{offset:"0%",stopColor:"#ef4444",stopOpacity:"0.3",children:P.jsx("animate",{attributeName:"stop-opacity",values:"0.3;0.6;0.3",dur:"2s",repeatCount:"indefinite",begin:"1.5s"})})})]}),P.jsx("circle",{cx:"21",cy:"21",r:"15.915",fill:"transparent",stroke:"#e5e7eb",strokeWidth:"3"}),P.jsx("circle",{cx:"21",cy:"21",r:"15.915",fill:"transparent",stroke:"url(#skeleton-pie-gradient-1)",strokeWidth:"3",strokeDasharray:"40 60",strokeDashoffset:"25"}),P.jsx("circle",{cx:"21",cy:"21",r:"15.915",fill:"transparent",stroke:"url(#skeleton-pie-gradient-2)",strokeWidth:"3",strokeDasharray:"25 75",strokeDashoffset:"65"}),P.jsx("circle",{cx:"21",cy:"21",r:"15.915",fill:"transparent",stroke:"url(#skeleton-pie-gradient-3)",strokeWidth:"3",strokeDasharray:"20 80",strokeDashoffset:"90"}),P.jsx("circle",{cx:"21",cy:"21",r:"15.915",fill:"transparent",stroke:"url(#skeleton-pie-gradient-4)",strokeWidth:"3",strokeDasharray:"15 85",strokeDashoffset:"110"})]})});default:return P.jsx("div",{className:"absolute inset-0 p-4",children:P.jsxs("div",{className:"w-full h-full relative",children:[P.jsx("div",{className:"absolute inset-0 flex items-center",children:P.jsx("div",{className:"w-full h-0.5 bg-gradient-to-r from-transparent via-gray-300 to-transparent opacity-60",children:P.jsx("div",{className:"w-full h-full bg-gradient-to-r from-transparent via-blue-400 to-transparent animate-pulse"})})}),P.jsx("div",{className:"absolute inset-0 flex items-center justify-between px-2",children:[...Array(7)].map((v,m)=>P.jsx("div",{className:"w-2 h-2 bg-blue-300 rounded-full animate-pulse",style:{animationDelay:`${m*.2}s`}},m))})]})})}};return P.jsx("div",{className:$e("w-full",e),children:P.jsxs("div",{className:"relative bg-gray-50/30 py-3",children:[P.jsxs("div",{className:"relative mb-6",style:{height:`${r}px`},children:[P.jsxs("div",{className:"absolute left-0 top-0 h-full flex flex-col justify-between items-end pr-3",children:[P.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"})]}),P.jsxs("div",{className:"ml-14 h-full relative overflow-hidden px-0 py-2 flex flex-col justify-between",children:[t!=="pie"&&P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),P.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),P.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),P.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),P.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),P.jsx("div",{className:"h-0 w-full border-t border-gray-100"})]}),a()]}),t!=="pie"&&P.jsxs("div",{className:"ml-14 flex justify-between items-center mt-3",children:[P.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"})]})]}),P.jsxs("div",{className:"flex items-center justify-between px-0 py-3 mt-2",children:[P.jsx("div",{className:"flex-1",children:P.jsx("div",{className:"bg-gray-100 h-3 rounded w-64"})}),P.jsxs("div",{className:"flex items-center gap-2 w-24 justify-center",children:[P.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded flex-1"})]})]})]})})},Xz=({active:e,payload:t,label:r,config:n})=>{var o;if(!e||!t||!t.length)return null;const i=t.filter(s=>s.name&&s.name!==""&&s.name!==s.dataKey);if(i.length===0)return null;const a=((o=n.tooltip)==null?void 0:o.style)==="dark";return P.jsxs("div",{className:$e("rounded-lg border px-3 py-2 text-sm shadow-lg",a?"bg-gray-900 border-gray-700 text-white":"bg-white border-gray-200 text-gray-900"),children:[P.jsx("div",{className:$e("font-medium mb-1",a?"text-gray-300":"text-gray-600"),children:new Date(r||"").toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}),P.jsx("div",{className:"space-y-1",children:i.map((s,l)=>P.jsxs("div",{className:"flex items-center justify-between gap-4",children:[P.jsxs("div",{className:"flex items-center gap-2",children:[P.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:s.color}}),P.jsx("span",{className:$e("text-sm",a?"text-gray-300":"text-gray-600"),children:s.name})]}),P.jsx("span",{className:$e("font-medium",a?"text-white":"text-gray-900"),children:typeof s.value=="number"?s.value.toLocaleString():s.value})]},l))})]})},Zz=({config:e,className:t,isLoading:r})=>{const{data:n,dataKey:i,color:a="#3b82f6",lines:o,dateRange:s,yAxisLabel:l,height:u=300,tooltip:c={show:!0,style:"dark"}}=e,f=h=>{const v=new Date(h);return isNaN(v.getTime())?h:v.getDate().toString()},d=h=>h>=1e3?`${(h/1e3).toFixed(0)}k`:h.toString(),g=o&&o.length>0?o:[{dataKey:i||"value",color:a,label:e.title,strokeWidth:2}];return r?(console.log("AnalyticsChart: Loading state active"),P.jsx(Yz,{className:t,chartType:e.type,height:u})):!n||n.length===0?(console.log("AnalyticsChart: No data provided",{data:n,config:e}),P.jsx("div",{className:$e("w-full",t),children:P.jsxs("div",{className:"relative bg-gray-50/30 py-6",children:[P.jsxs("div",{className:"relative h-[300px] mb-6",children:[P.jsxs("div",{className:"absolute left-0 top-0 h-full flex flex-col justify-between items-end pr-3",children:[P.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"})]}),P.jsxs("div",{className:"ml-14 h-full relative overflow-hidden px-0 py-2 flex flex-col justify-between",children:[P.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),P.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),P.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),P.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),P.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),P.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),P.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-4",children:[P.jsx("div",{className:"bg-white border border-gray-300 rounded-[10px] w-12 h-12 flex items-center justify-center",children:P.jsx("svg",{className:"w-6 h-6 text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:P.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})}),P.jsxs("div",{className:"text-center max-w-[352px]",children:[P.jsx("h3",{className:"font-semibold text-gray-900 text-base mb-1",children:"There is no data to display for this period"}),P.jsx("p",{className:"font-normal text-gray-600 text-sm leading-5",children:"Try selecting a different date range or ensure your app is deployed and receiving traffic."})]})]})]}),P.jsxs("div",{className:"ml-14 flex justify-between items-center mt-3",children:[P.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"})]})]}),P.jsxs("div",{className:"flex items-center justify-between px-0 py-3 mt-2",children:[P.jsx("div",{className:"flex-1",children:P.jsx("div",{className:"bg-gray-100 h-3 rounded w-64"})}),P.jsxs("div",{className:"flex items-center gap-2 w-24 justify-center",children:[P.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full"}),P.jsx("div",{className:"bg-gray-100 h-3 rounded flex-1"})]})]})]})})):(console.log("=== ANALYTICS CHART DEBUG ==="),console.log("AnalyticsChart config:",e),console.log("AnalyticsChart data:",JSON.stringify(n,null,2)),console.log("AnalyticsChart dataKey:",i),console.log("Chart lines configuration:",g),console.log("Sample data point:",n[0]),console.log("Data point keys:",Object.keys(n[0]||{})),console.log("=== END ANALYTICS CHART DEBUG ==="),P.jsxs("div",{className:$e("w-full",t),children:[P.jsx("div",{className:"relative bg-gray-50/30 py-6",children:P.jsx(lC,{width:"100%",height:u,children:P.jsxs(yz,{data:n,margin:{top:20,right:30,left:20,bottom:20},children:[P.jsx("defs",{children:g.map((h,v)=>P.jsxs("linearGradient",{id:`gradient-${h.dataKey}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[P.jsx("stop",{offset:"5%",stopColor:h.color,stopOpacity:.08}),P.jsx("stop",{offset:"95%",stopColor:h.color,stopOpacity:.01})]},`gradient-${v}`))}),P.jsx(Bg,{strokeDasharray:"2 2",className:"opacity-30",stroke:"#d1d5db",horizontal:!0,vertical:!1}),P.jsx(ns,{dataKey:"date",tickFormatter:f,axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"#6b7280"},tickMargin:10}),P.jsx(as,{axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"#6b7280"},tickFormatter:d,tickMargin:10,label:l?{value:l,angle:-90,position:"insideLeft",style:{textAnchor:"middle",fontSize:12,fill:"#6b7280"}}:void 0}),c.show&&P.jsx(It,{content:h=>P.jsx(Xz,{...h,config:e}),cursor:{stroke:"#d1d5db",strokeWidth:1,strokeDasharray:"4 4"},allowEscapeViewBox:{x:!1,y:!1}}),g.map(h=>P.jsx(hr,{type:"monotone",dataKey:h.dataKey,stroke:"none",fill:`url(#gradient-${h.dataKey})`,fillOpacity:1,isAnimationActive:!1,name:""},`area-${h.dataKey}`)),g.map(h=>P.jsx(Ji,{type:"monotone",dataKey:h.dataKey,stroke:h.color,strokeWidth:2.5,strokeDasharray:h.strokeDasharray,dot:!1,activeDot:{r:5,fill:h.color,stroke:h.color,strokeWidth:2},name:h.label},h.dataKey))]})})}),P.jsxs("div",{className:"mt-4 flex items-center justify-between",children:[P.jsx("div",{children:s&&P.jsxs("p",{className:"text-sm text-muted-foreground",children:["Showing data from ",new Date(s.start).toLocaleDateString("en-US",{day:"numeric",month:"short",year:"numeric"})," - ",new Date(s.end).toLocaleDateString("en-US",{day:"numeric",month:"short",year:"numeric"})]})}),P.jsx("div",{className:"flex items-center gap-4",children:P.jsx("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:g.map(h=>P.jsxs("div",{className:"flex items-center gap-2",children:[P.jsx("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:h.color}}),P.jsx("span",{children:h.label})]},h.dataKey))})})]})]}))};/**
101
+ */var Hu,wy;function eL(){if(wy)return Hu;wy=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Hu=a()?Object.assign:function(i,o){for(var s,l=n(i),u,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var f in s)t.call(s,f)&&(l[f]=s[f]);if(e){u=e(s);for(var d=0;d<u.length;d++)r.call(s,u[d])&&(l[u[d]]=s[u[d]])}}return l},Hu}var Yu,Oy;function Xu(){if(Oy)return Yu;Oy=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Yu=e,Yu}var Ju,Sy;function Ay(){return Sy||(Sy=1,Ju=Function.call.bind(Object.prototype.hasOwnProperty)),Ju}var Zu,Ty;function tL(){if(Ty)return Zu;Ty=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Xu(),r={},n=Ay();e=function(i){var o="Warning: "+i;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function a(i,o,s,l,u){if(process.env.NODE_ENV!=="production"){for(var c in i)if(n(i,c)){var f;try{if(typeof i[c]!="function"){var d=Error((l||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=i[c](o,c,l,s,null,t)}catch(y){f=y}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var h=u?u():"";e("Failed "+s+" type: "+f.message+(h??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Zu=a,Zu}var Qu,Py;function rL(){if(Py)return Qu;Py=1;var e=xy(),t=eL(),r=Xu(),n=Ay(),a=tL(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Qu=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(N){var I=N&&(u&&N[u]||N[c]);if(typeof I=="function")return I}var d="<<anonymous>>",h={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:O(),arrayOf:x,element:A(),elementType:m(),instanceOf:w,node:R(),objectOf:_,oneOf:T,oneOfType:$,shape:j,exact:L};function y(N,I){return N===I?N!==0||1/N===1/I:N!==N&&I!==I}function p(N,I){this.message=N,this.data=I&&typeof I=="object"?I:{},this.stack=""}p.prototype=Error.prototype;function v(N){if(process.env.NODE_ENV!=="production")var I={},W=0;function z(Z,Q,ae,te,q,Y,J){if(te=te||d,Y=Y||ae,J!==r){if(l){var D=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 D.name="Invariant Violation",D}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ie=te+":"+ae;!I[ie]&&W<3&&(i("You are manually calling a React.PropTypes validation function for the `"+Y+"` prop on `"+te+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),I[ie]=!0,W++)}}return Q[ae]==null?Z?Q[ae]===null?new p("The "+q+" `"+Y+"` is marked as required "+("in `"+te+"`, but its value is `null`.")):new p("The "+q+" `"+Y+"` is marked as required in "+("`"+te+"`, but its value is `undefined`.")):null:N(Q,ae,te,q,Y)}var V=z.bind(null,!1);return V.isRequired=z.bind(null,!0),V}function g(N){function I(W,z,V,Z,Q,ae){var te=W[z],q=E(te);if(q!==N){var Y=F(te);return new p("Invalid "+Z+" `"+Q+"` of type "+("`"+Y+"` supplied to `"+V+"`, expected ")+("`"+N+"`."),{expectedType:N})}return null}return v(I)}function O(){return v(o)}function x(N){function I(W,z,V,Z,Q){if(typeof N!="function")return new p("Property `"+Q+"` of component `"+V+"` has invalid PropType notation inside arrayOf.");var ae=W[z];if(!Array.isArray(ae)){var te=E(ae);return new p("Invalid "+Z+" `"+Q+"` of type "+("`"+te+"` supplied to `"+V+"`, expected an array."))}for(var q=0;q<ae.length;q++){var Y=N(ae,q,V,Z,Q+"["+q+"]",r);if(Y instanceof Error)return Y}return null}return v(I)}function A(){function N(I,W,z,V,Z){var Q=I[W];if(!s(Q)){var ae=E(Q);return new p("Invalid "+V+" `"+Z+"` of type "+("`"+ae+"` supplied to `"+z+"`, expected a single ReactElement."))}return null}return v(N)}function m(){function N(I,W,z,V,Z){var Q=I[W];if(!e.isValidElementType(Q)){var ae=E(Q);return new p("Invalid "+V+" `"+Z+"` of type "+("`"+ae+"` supplied to `"+z+"`, expected a single ReactElement type."))}return null}return v(N)}function w(N){function I(W,z,V,Z,Q){if(!(W[z]instanceof N)){var ae=N.name||d,te=k(W[z]);return new p("Invalid "+Z+" `"+Q+"` of type "+("`"+te+"` supplied to `"+V+"`, expected ")+("instance of `"+ae+"`."))}return null}return v(I)}function T(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),o;function I(W,z,V,Z,Q){for(var ae=W[z],te=0;te<N.length;te++)if(y(ae,N[te]))return null;var q=JSON.stringify(N,function(J,D){var ie=F(D);return ie==="symbol"?String(D):D});return new p("Invalid "+Z+" `"+Q+"` of value `"+String(ae)+"` "+("supplied to `"+V+"`, expected one of "+q+"."))}return v(I)}function _(N){function I(W,z,V,Z,Q){if(typeof N!="function")return new p("Property `"+Q+"` of component `"+V+"` has invalid PropType notation inside objectOf.");var ae=W[z],te=E(ae);if(te!=="object")return new p("Invalid "+Z+" `"+Q+"` of type "+("`"+te+"` supplied to `"+V+"`, expected an object."));for(var q in ae)if(n(ae,q)){var Y=N(ae,q,V,Z,Q+"."+q,r);if(Y instanceof Error)return Y}return null}return v(I)}function $(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var I=0;I<N.length;I++){var W=N[I];if(typeof W!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(W)+" at index "+I+"."),o}function z(V,Z,Q,ae,te){for(var q=[],Y=0;Y<N.length;Y++){var J=N[Y],D=J(V,Z,Q,ae,te,r);if(D==null)return null;D.data&&n(D.data,"expectedType")&&q.push(D.data.expectedType)}var ie=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new p("Invalid "+ae+" `"+te+"` supplied to "+("`"+Q+"`"+ie+"."))}return v(z)}function R(){function N(I,W,z,V,Z){return B(I[W])?null:new p("Invalid "+V+" `"+Z+"` supplied to "+("`"+z+"`, expected a ReactNode."))}return v(N)}function P(N,I,W,z,V){return new p((N||"React class")+": "+I+" type `"+W+"."+z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+V+"`.")}function j(N){function I(W,z,V,Z,Q){var ae=W[z],te=E(ae);if(te!=="object")return new p("Invalid "+Z+" `"+Q+"` of type `"+te+"` "+("supplied to `"+V+"`, expected `object`."));for(var q in N){var Y=N[q];if(typeof Y!="function")return P(V,Z,Q,q,F(Y));var J=Y(ae,q,V,Z,Q+"."+q,r);if(J)return J}return null}return v(I)}function L(N){function I(W,z,V,Z,Q){var ae=W[z],te=E(ae);if(te!=="object")return new p("Invalid "+Z+" `"+Q+"` of type `"+te+"` "+("supplied to `"+V+"`, expected `object`."));var q=t({},W[z],N);for(var Y in q){var J=N[Y];if(n(N,Y)&&typeof J!="function")return P(V,Z,Q,Y,F(J));if(!J)return new p("Invalid "+Z+" `"+Q+"` key `"+Y+"` supplied to `"+V+"`.\nBad object: "+JSON.stringify(W[z],null," ")+`
102
+ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var D=J(ae,Y,V,Z,Q+"."+Y,r);if(D)return D}return null}return v(I)}function B(N){switch(typeof N){case"number":case"string":case"undefined":return!0;case"boolean":return!N;case"object":if(Array.isArray(N))return N.every(B);if(N===null||s(N))return!0;var I=f(N);if(I){var W=I.call(N),z;if(I!==N.entries){for(;!(z=W.next()).done;)if(!B(z.value))return!1}else for(;!(z=W.next()).done;){var V=z.value;if(V&&!B(V[1]))return!1}}else return!1;return!0;default:return!1}}function M(N,I){return N==="symbol"?!0:I?I["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&I instanceof Symbol:!1}function E(N){var I=typeof N;return Array.isArray(N)?"array":N instanceof RegExp?"object":M(I,N)?"symbol":I}function F(N){if(typeof N>"u"||N===null)return""+N;var I=E(N);if(I==="object"){if(N instanceof Date)return"date";if(N instanceof RegExp)return"regexp"}return I}function U(N){var I=F(N);switch(I){case"array":case"object":return"an "+I;case"boolean":case"date":case"regexp":return"a "+I;default:return I}}function k(N){return!N.constructor||!N.constructor.name?d:N.constructor.name}return h.checkPropTypes=a,h.resetWarningCache=a.resetWarningCache,h.PropTypes=h,h},Qu}var ec,_y;function nL(){if(_y)return ec;_y=1;var e=Xu();function t(){}function r(){}return r.resetWarningCache=t,ec=function(){function n(o,s,l,u,c,f){if(f!==e){var d=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 d.name="Invariant Violation",d}}n.isRequired=n;function a(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},ec}if(process.env.NODE_ENV!=="production"){var aL=xy(),iL=!0;Vu.exports=rL()(aL.isElement,iL)}else Vu.exports=nL()();var oL=Vu.exports;const Ae=ke(oL);var sL=Object.getOwnPropertyNames,lL=Object.getOwnPropertySymbols,uL=Object.prototype.hasOwnProperty;function Ey(e,t){return function(n,a,i){return e(n,a,i)&&t(n,a,i)}}function Wo(e){return function(r,n,a){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,a);var i=a.cache,o=i.get(r),s=i.get(n);if(o&&s)return o===n&&s===r;i.set(r,n),i.set(n,r);var l=e(r,n,a);return i.delete(r),i.delete(n),l}}function jy(e){return sL(e).concat(lL(e))}var cL=Object.hasOwn||function(e,t){return uL.call(e,t)};function Gr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var fL="__v",dL="__o",hL="_owner",$y=Object.getOwnPropertyDescriptor,Cy=Object.keys;function pL(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function vL(e,t){return Gr(e.getTime(),t.getTime())}function yL(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function mL(e,t){return e===t}function My(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var a=new Array(n),i=e.entries(),o,s,l=0;(o=i.next())&&!o.done;){for(var u=t.entries(),c=!1,f=0;(s=u.next())&&!s.done;){if(a[f]){f++;continue}var d=o.value,h=s.value;if(r.equals(d[0],h[0],l,f,e,t,r)&&r.equals(d[1],h[1],d[0],h[0],e,t,r)){c=a[f]=!0;break}f++}if(!c)return!1;l++}return!0}var gL=Gr;function bL(e,t,r){var n=Cy(e),a=n.length;if(Cy(t).length!==a)return!1;for(;a-- >0;)if(!Ny(e,t,r,n[a]))return!1;return!0}function Va(e,t,r){var n=jy(e),a=n.length;if(jy(t).length!==a)return!1;for(var i,o,s;a-- >0;)if(i=n[a],!Ny(e,t,r,i)||(o=$y(e,i),s=$y(t,i),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function xL(e,t){return Gr(e.valueOf(),t.valueOf())}function wL(e,t){return e.source===t.source&&e.flags===t.flags}function ky(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var a=new Array(n),i=e.values(),o,s;(o=i.next())&&!o.done;){for(var l=t.values(),u=!1,c=0;(s=l.next())&&!s.done;){if(!a[c]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=a[c]=!0;break}c++}if(!u)return!1}return!0}function OL(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function SL(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 Ny(e,t,r,n){return(n===hL||n===dL||n===fL)&&(e.$$typeof||t.$$typeof)?!0:cL(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var AL="[object Arguments]",TL="[object Boolean]",PL="[object Date]",_L="[object Error]",EL="[object Map]",jL="[object Number]",$L="[object Object]",CL="[object RegExp]",ML="[object Set]",kL="[object String]",NL="[object URL]",DL=Array.isArray,Dy=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,Iy=Object.assign,IL=Object.prototype.toString.call.bind(Object.prototype.toString);function LL(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,a=e.areFunctionsEqual,i=e.areMapsEqual,o=e.areNumbersEqual,s=e.areObjectsEqual,l=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,c=e.areSetsEqual,f=e.areTypedArraysEqual,d=e.areUrlsEqual;return function(y,p,v){if(y===p)return!0;if(y==null||p==null)return!1;var g=typeof y;if(g!==typeof p)return!1;if(g!=="object")return g==="number"?o(y,p,v):g==="function"?a(y,p,v):!1;var O=y.constructor;if(O!==p.constructor)return!1;if(O===Object)return s(y,p,v);if(DL(y))return t(y,p,v);if(Dy!=null&&Dy(y))return f(y,p,v);if(O===Date)return r(y,p,v);if(O===RegExp)return u(y,p,v);if(O===Map)return i(y,p,v);if(O===Set)return c(y,p,v);var x=IL(y);return x===PL?r(y,p,v):x===CL?u(y,p,v):x===EL?i(y,p,v):x===ML?c(y,p,v):x===$L?typeof y.then!="function"&&typeof p.then!="function"&&s(y,p,v):x===NL?d(y,p,v):x===_L?n(y,p,v):x===AL?s(y,p,v):x===TL||x===jL||x===kL?l(y,p,v):!1}}function RL(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,a={areArraysEqual:n?Va:pL,areDatesEqual:vL,areErrorsEqual:yL,areFunctionsEqual:mL,areMapsEqual:n?Ey(My,Va):My,areNumbersEqual:gL,areObjectsEqual:n?Va:bL,arePrimitiveWrappersEqual:xL,areRegExpsEqual:wL,areSetsEqual:n?Ey(ky,Va):ky,areTypedArraysEqual:n?Va:OL,areUrlsEqual:SL};if(r&&(a=Iy({},a,r(a))),t){var i=Wo(a.areArraysEqual),o=Wo(a.areMapsEqual),s=Wo(a.areObjectsEqual),l=Wo(a.areSetsEqual);a=Iy({},a,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return a}function BL(e){return function(t,r,n,a,i,o,s){return e(t,r,s)}}function FL(e){var t=e.circular,r=e.comparator,n=e.createState,a=e.equals,i=e.strict;if(n)return function(l,u){var c=n(),f=c.cache,d=f===void 0?t?new WeakMap:void 0:f,h=c.meta;return r(l,u,{cache:d,equals:a,meta:h,strict:i})};if(t)return function(l,u){return r(l,u,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};var o={cache:void 0,equals:a,meta:void 0,strict:i};return function(l,u){return r(l,u,o)}}var WL=gr();gr({strict:!0}),gr({circular:!0}),gr({circular:!0,strict:!0}),gr({createInternalComparator:function(){return Gr}}),gr({strict:!0,createInternalComparator:function(){return Gr}}),gr({circular:!0,createInternalComparator:function(){return Gr}}),gr({circular:!0,createInternalComparator:function(){return Gr},strict:!0});function gr(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,a=e.createState,i=e.strict,o=i===void 0?!1:i,s=RL(e),l=LL(s),u=n?n(l):BL(l);return FL({circular:r,comparator:l,createState:a,equals:u,strict:o})}function UL(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Ly(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function a(i){r<0&&(r=i),i-r>t?(e(i),r=-1):UL(a)};requestAnimationFrame(n)}function tc(e){"@babel/helpers - typeof";return tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tc(e)}function zL(e){return VL(e)||KL(e)||qL(e)||GL()}function GL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
103
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qL(e,t){if(e){if(typeof e=="string")return Ry(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ry(e,t)}}function Ry(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function KL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VL(e){if(Array.isArray(e))return e}function HL(){var e={},t=function(){return null},r=!1,n=function a(i){if(!r){if(Array.isArray(i)){if(!i.length)return;var o=i,s=zL(o),l=s[0],u=s.slice(1);if(typeof l=="number"){Ly(a.bind(null,u),l);return}a(l),Ly(a.bind(null,u));return}tc(i)==="object"&&(e=i,t(e)),typeof i=="function"&&i()}};return{stop:function(){r=!0},start:function(i){r=!1,n(i)},subscribe:function(i){return t=i,function(){t=function(){return null}}}}}function Ha(e){"@babel/helpers - typeof";return Ha=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},Ha(e)}function By(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Fy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?By(Object(r),!0).forEach(function(n){Wy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):By(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wy(e,t,r){return t=YL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YL(e){var t=XL(e,"string");return Ha(t)==="symbol"?t:String(t)}function XL(e,t){if(Ha(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ha(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var JL=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,a){return n.filter(function(i){return a.includes(i)})})},ZL=function(t){return t},QL=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Ya=function(t,r){return Object.keys(r).reduce(function(n,a){return Fy(Fy({},n),{},Wy({},a,t(a,r[a])))},{})},Uy=function(t,r,n){return t.map(function(a){return"".concat(QL(a)," ").concat(r,"ms ").concat(n)}).join(",")},eR=process.env.NODE_ENV!=="production",Uo=function(t,r,n,a,i,o,s,l){if(eR&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,a,i,o,s,l],c=0;console.warn(r.replace(/%s/g,function(){return u[c++]}))}};function tR(e,t){return aR(e)||nR(e,t)||zy(e,t)||rR()}function rR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
104
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}function aR(e){if(Array.isArray(e))return e}function iR(e){return lR(e)||sR(e)||zy(e)||oR()}function oR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
105
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zy(e,t){if(e){if(typeof e=="string")return rc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rc(e,t)}}function sR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lR(e){if(Array.isArray(e))return rc(e)}function rc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var zo=1e-4,Gy=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},qy=function(t,r){return t.map(function(n,a){return n*Math.pow(r,a)}).reduce(function(n,a){return n+a})},Ky=function(t,r){return function(n){var a=Gy(t,r);return qy(a,n)}},uR=function(t,r){return function(n){var a=Gy(t,r),i=[].concat(iR(a.map(function(o,s){return o*s}).slice(1)),[0]);return qy(i,n)}},Vy=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r[0],i=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":a=0,i=0,o=1,s=1;break;case"ease":a=.25,i=.1,o=.25,s=1;break;case"ease-in":a=.42,i=0,o=1,s=1;break;case"ease-out":a=.42,i=0,o=.58,s=1;break;case"ease-in-out":a=0,i=0,o=.58,s=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var u=l[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),c=tR(u,4);a=c[0],i=c[1],o=c[2],s=c[3]}else Uo(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}}Uo([a,o,i,s].every(function(v){return typeof v=="number"&&v>=0&&v<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=Ky(a,o),d=Ky(i,s),h=uR(a,o),y=function(g){return g>1?1:g<0?0:g},p=function(g){for(var O=g>1?1:g,x=O,A=0;A<8;++A){var m=f(x)-O,w=h(x);if(Math.abs(m-O)<zo||w<zo)return d(x);x=y(x-m/w)}return d(x)};return p.isStepper=!1,p},cR=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,a=t.damping,i=a===void 0?8:a,o=t.dt,s=o===void 0?17:o,l=function(c,f,d){var h=-(c-f)*n,y=d*i,p=d+(h-y)*s/1e3,v=d*s/1e3+c;return Math.abs(v-f)<zo&&Math.abs(p)<zo?[f,0]:[v,p]};return l.isStepper=!0,l.dt=s,l},fR=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r[0];if(typeof a=="string")switch(a){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Vy(a);case"spring":return cR();default:if(a.split("(")[0]==="cubic-bezier")return Vy(a);Uo(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof a=="function"?a:(Uo(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function Xa(e){"@babel/helpers - typeof";return Xa=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},Xa(e)}function Hy(e){return pR(e)||hR(e)||Xy(e)||dR()}function dR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
106
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pR(e){if(Array.isArray(e))return ac(e)}function Yy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function rt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yy(Object(r),!0).forEach(function(n){nc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nc(e,t,r){return t=vR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vR(e){var t=yR(e,"string");return Xa(t)==="symbol"?t:String(t)}function yR(e,t){if(Xa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mR(e,t){return xR(e)||bR(e,t)||Xy(e,t)||gR()}function gR(){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 Xy(e,t){if(e){if(typeof e=="string")return ac(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ac(e,t)}}function ac(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}function xR(e){if(Array.isArray(e))return e}var Go=function(t,r,n){return t+(r-t)*n},ic=function(t){var r=t.from,n=t.to;return r!==n},wR=function e(t,r,n){var a=Ya(function(i,o){if(ic(o)){var s=t(o.from,o.to,o.velocity),l=mR(s,2),u=l[0],c=l[1];return rt(rt({},o),{},{from:u,velocity:c})}return o},r);return n<1?Ya(function(i,o){return ic(o)?rt(rt({},o),{},{velocity:Go(o.velocity,a[i].velocity,n),from:Go(o.from,a[i].from,n)}):o},r):e(t,a,n-1)};const OR=function(e,t,r,n,a){var i=JL(e,t),o=i.reduce(function(v,g){return rt(rt({},v),{},nc({},g,[e[g],t[g]]))},{}),s=i.reduce(function(v,g){return rt(rt({},v),{},nc({},g,{from:e[g],velocity:0,to:t[g]}))},{}),l=-1,u,c,f=function(){return null},d=function(){return Ya(function(g,O){return O.from},s)},h=function(){return!Object.values(s).filter(ic).length},y=function(g){u||(u=g);var O=g-u,x=O/r.dt;s=wR(r,s,x),a(rt(rt(rt({},e),t),d())),u=g,h()||(l=requestAnimationFrame(f))},p=function(g){c||(c=g);var O=(g-c)/n,x=Ya(function(m,w){return Go.apply(void 0,Hy(w).concat([r(O)]))},o);if(a(rt(rt(rt({},e),t),x)),O<1)l=requestAnimationFrame(f);else{var A=Ya(function(m,w){return Go.apply(void 0,Hy(w).concat([r(1)]))},o);a(rt(rt(rt({},e),t),A))}};return f=r.isStepper?y:p,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(l)}}};function $n(e){"@babel/helpers - typeof";return $n=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},$n(e)}var SR=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function AR(e,t){if(e==null)return{};var r=TR(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function TR(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function oc(e){return jR(e)||ER(e)||_R(e)||PR()}function PR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
108
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _R(e,t){if(e){if(typeof e=="string")return sc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sc(e,t)}}function ER(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jR(e){if(Array.isArray(e))return sc(e)}function sc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Jy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function kt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jy(Object(r),!0).forEach(function(n){Ja(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ja(e,t,r){return t=Zy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Zy(n.key),n)}}function MR(e,t,r){return t&&CR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zy(e){var t=kR(e,"string");return $n(t)==="symbol"?t:String(t)}function kR(e,t){if($n(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($n(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NR(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&&lc(e,t)}function lc(e,t){return lc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},lc(e,t)}function DR(e){var t=IR();return function(){var n=qo(e),a;if(t){var i=qo(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return uc(this,a)}}function uc(e,t){if(t&&($n(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cc(e)}function cc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IR(){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 qo(e){return qo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qo(e)}var Nt=function(e){NR(r,e);var t=DR(r);function r(n,a){var i;$R(this,r),i=t.call(this,n,a);var o=i.props,s=o.isActive,l=o.attributeName,u=o.from,c=o.to,f=o.steps,d=o.children,h=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(cc(i)),i.changeStyle=i.changeStyle.bind(cc(i)),!s||h<=0)return i.state={style:{}},typeof d=="function"&&(i.state={style:c}),uc(i);if(f&&f.length)i.state={style:f[0].style};else if(u){if(typeof d=="function")return i.state={style:u},uc(i);i.state={style:l?Ja({},l,u):u}}else i.state={style:{}};return i}return MR(r,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,o=a.canBegin;this.mounted=!0,!(!i||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,o=i.isActive,s=i.canBegin,l=i.attributeName,u=i.shouldReAnimate,c=i.to,f=i.from,d=this.state.style;if(s){if(!o){var h={style:l?Ja({},l,c):c};this.state&&d&&(l&&d[l]!==c||!l&&d!==c)&&this.setState(h);return}if(!(WL(a.to,c)&&a.canBegin&&a.isActive)){var y=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=y||u?f:a.to;if(this.state&&d){var v={style:l?Ja({},l,p):p};(l&&d[l]!==p||!l&&d!==p)&&this.setState(v)}this.runAnimation(kt(kt({},this.props),{},{from:p,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,o=a.from,s=a.to,l=a.duration,u=a.easing,c=a.begin,f=a.onAnimationEnd,d=a.onAnimationStart,h=OR(o,s,fR(u),l,this.changeStyle),y=function(){i.stopJSAnimation=h()};this.manager.start([d,c,y,l,f])}},{key:"runStepAnimation",value:function(a){var i=this,o=a.steps,s=a.begin,l=a.onAnimationStart,u=o[0],c=u.style,f=u.duration,d=f===void 0?0:f,h=function(p,v,g){if(g===0)return p;var O=v.duration,x=v.easing,A=x===void 0?"ease":x,m=v.style,w=v.properties,T=v.onAnimationEnd,_=g>0?o[g-1]:v,$=w||Object.keys(m);if(typeof A=="function"||A==="spring")return[].concat(oc(p),[i.runJSAnimation.bind(i,{from:_.style,to:m,duration:O,easing:A}),O]);var R=Uy($,O,A),P=kt(kt(kt({},_.style),m),{},{transition:R});return[].concat(oc(p),[P,O,T]).filter(ZL)};return this.manager.start([l].concat(oc(o.reduce(h,[c,Math.max(d,s)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=HL());var i=a.begin,o=a.duration,s=a.attributeName,l=a.to,u=a.easing,c=a.onAnimationStart,f=a.onAnimationEnd,d=a.steps,h=a.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof u=="function"||typeof h=="function"||u==="spring"){this.runJSAnimation(a);return}if(d.length>1){this.runStepAnimation(a);return}var p=s?Ja({},s,l):l,v=Uy(Object.keys(p),o,u);y.start([c,i,kt(kt({},p),{},{transition:v}),o,f])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var o=a.duration;a.attributeName,a.easing;var s=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var l=AR(a,SR),u=S.Children.count(i),c=this.state.style;if(typeof i=="function")return i(c);if(!s||u===0||o<=0)return i;var f=function(h){var y=h.props,p=y.style,v=p===void 0?{}:p,g=y.className,O=S.cloneElement(h,kt(kt({},l),{},{style:kt(kt({},v),c),className:g}));return O};return u===1?f(S.Children.only(i)):S.createElement("div",null,S.Children.map(i,function(d){return f(d)}))}}]),r}(S.PureComponent);Nt.displayName="Animate",Nt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},Nt.propTypes={from:Ae.oneOfType([Ae.object,Ae.string]),to:Ae.oneOfType([Ae.object,Ae.string]),attributeName:Ae.string,duration:Ae.number,begin:Ae.number,easing:Ae.oneOfType([Ae.string,Ae.func]),steps:Ae.arrayOf(Ae.shape({duration:Ae.number.isRequired,style:Ae.object.isRequired,easing:Ae.oneOfType([Ae.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Ae.func]),properties:Ae.arrayOf("string"),onAnimationEnd:Ae.func})),children:Ae.oneOfType([Ae.node,Ae.func]),isActive:Ae.bool,canBegin:Ae.bool,onAnimationEnd:Ae.func,shouldReAnimate:Ae.bool,onAnimationStart:Ae.func,onAnimationReStart:Ae.func};function Za(e){"@babel/helpers - typeof";return Za=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},Za(e)}function Ko(){return Ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ko.apply(this,arguments)}function LR(e,t){return WR(e)||FR(e,t)||BR(e,t)||RR()}function RR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
109
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BR(e,t){if(e){if(typeof e=="string")return Qy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qy(e,t)}}function Qy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}function WR(e){if(Array.isArray(e))return e}function em(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function tm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?em(Object(r),!0).forEach(function(n){UR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):em(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UR(e,t,r){return t=zR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zR(e){var t=GR(e,"string");return Za(t)=="symbol"?t:t+""}function GR(e,t){if(Za(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Za(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rm=function(t,r,n,a,i){var o=Math.min(Math.abs(n)/2,Math.abs(a)/2),s=a>=0?1:-1,l=n>=0?1:-1,u=a>=0&&n>=0||a<0&&n<0?1:0,c;if(o>0&&i instanceof Array){for(var f=[0,0,0,0],d=0,h=4;d<h;d++)f[d]=i[d]>o?o:i[d];c="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+l*f[0],",").concat(r)),c+="L ".concat(t+n-l*f[1],",").concat(r),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`,
110
+ `).concat(t+n,",").concat(r+s*f[1])),c+="L ".concat(t+n,",").concat(r+a-s*f[2]),f[2]>0&&(c+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`,
111
+ `).concat(t+n-l*f[2],",").concat(r+a)),c+="L ".concat(t+l*f[3],",").concat(r+a),f[3]>0&&(c+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`,
112
+ `).concat(t,",").concat(r+a-s*f[3])),c+="Z"}else if(o>0&&i===+i&&i>0){var y=Math.min(o,i);c="M ".concat(t,",").concat(r+s*y,`
113
+ A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+l*y,",").concat(r,`
114
+ L `).concat(t+n-l*y,",").concat(r,`
115
+ A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*y,`
116
+ L `).concat(t+n,",").concat(r+a-s*y,`
117
+ A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+n-l*y,",").concat(r+a,`
118
+ L `).concat(t+l*y,",").concat(r+a,`
119
+ A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t,",").concat(r+a-s*y," Z")}else c="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(a," h ").concat(-n," Z");return c},qR=function(t,r){if(!t||!r)return!1;var n=t.x,a=t.y,i=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(i,i+s),c=Math.max(i,i+s),f=Math.min(o,o+l),d=Math.max(o,o+l);return n>=u&&n<=c&&a>=f&&a<=d}return!1},KR={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},fc=function(t){var r=tm(tm({},KR),t),n=S.useRef(),a=S.useState(-1),i=LR(a,2),o=i[0],s=i[1];S.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var A=n.current.getTotalLength();A&&s(A)}catch{}},[]);var l=r.x,u=r.y,c=r.width,f=r.height,d=r.radius,h=r.className,y=r.animationEasing,p=r.animationDuration,v=r.animationBegin,g=r.isAnimationActive,O=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||c===0||f===0)return null;var x=pe("recharts-rectangle",h);return O?S.createElement(Nt,{canBegin:o>0,from:{width:c,height:f,x:l,y:u},to:{width:c,height:f,x:l,y:u},duration:p,animationEasing:y,isActive:O},function(A){var m=A.width,w=A.height,T=A.x,_=A.y;return S.createElement(Nt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:p,isActive:g,easing:y},S.createElement("path",Ko({},fe(r,!0),{className:x,d:rm(T,_,m,w,d),ref:n})))}):S.createElement("path",Ko({},fe(r,!0),{className:x,d:rm(l,u,c,f,d)}))};function dc(){return dc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dc.apply(this,arguments)}var Vo=function(t){var r=t.cx,n=t.cy,a=t.r,i=t.className,o=pe("recharts-dot",i);return r===+r&&n===+n&&a===+a?bt.createElement("circle",dc({},fe(t,!1),Ni(t),{className:o,cx:r,cy:n,r:a})):null};function Qa(e){"@babel/helpers - typeof";return Qa=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},Qa(e)}var VR=["x","y","top","left","width","height","className"];function hc(){return hc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hc.apply(this,arguments)}function nm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function HR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nm(Object(r),!0).forEach(function(n){YR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YR(e,t,r){return t=XR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XR(e){var t=JR(e,"string");return Qa(t)=="symbol"?t:t+""}function JR(e,t){if(Qa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZR(e,t){if(e==null)return{};var r=QR(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function QR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var e3=function(t,r,n,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(r,"h").concat(n)},t3=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,c=t.width,f=c===void 0?0:c,d=t.height,h=d===void 0?0:d,y=t.className,p=ZR(t,VR),v=HR({x:n,y:i,top:s,left:u,width:f,height:h},p);return!X(n)||!X(i)||!X(f)||!X(h)||!X(s)||!X(u)?null:S.createElement("path",hc({},fe(v,!0),{className:pe("recharts-cross",y),d:e3(n,i,f,h,s,u)}))},r3=Bd,n3=r3(Object.getPrototypeOf,Object),a3=n3,i3=Ht,o3=a3,s3=Yt,l3="[object Object]",u3=Function.prototype,c3=Object.prototype,am=u3.toString,f3=c3.hasOwnProperty,d3=am.call(Object);function h3(e){if(!s3(e)||i3(e)!=l3)return!1;var t=o3(e);if(t===null)return!0;var r=f3.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&am.call(r)==d3}var p3=h3;const v3=ke(p3);var y3=Ht,m3=Yt,g3="[object Boolean]";function b3(e){return e===!0||e===!1||m3(e)&&y3(e)==g3}var x3=b3;const w3=ke(x3);function ei(e){"@babel/helpers - typeof";return ei=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},ei(e)}function Ho(){return Ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ho.apply(this,arguments)}function O3(e,t){return P3(e)||T3(e,t)||A3(e,t)||S3()}function S3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
120
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A3(e,t){if(e){if(typeof e=="string")return im(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return im(e,t)}}function im(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function T3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}function P3(e){if(Array.isArray(e))return e}function om(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function sm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?om(Object(r),!0).forEach(function(n){_3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):om(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _3(e,t,r){return t=E3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E3(e){var t=j3(e,"string");return ei(t)=="symbol"?t:t+""}function j3(e,t){if(ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lm=function(t,r,n,a,i){var o=n-a,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+i),s+="L ".concat(t+n-o/2-a,",").concat(r+i),s+="L ".concat(t,",").concat(r," Z"),s},$3={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},C3=function(t){var r=sm(sm({},$3),t),n=S.useRef(),a=S.useState(-1),i=O3(a,2),o=i[0],s=i[1];S.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&s(x)}catch{}},[]);var l=r.x,u=r.y,c=r.upperWidth,f=r.lowerWidth,d=r.height,h=r.className,y=r.animationEasing,p=r.animationDuration,v=r.animationBegin,g=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||d!==+d||c===0&&f===0||d===0)return null;var O=pe("recharts-trapezoid",h);return g?S.createElement(Nt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:u},to:{upperWidth:c,lowerWidth:f,height:d,x:l,y:u},duration:p,animationEasing:y,isActive:g},function(x){var A=x.upperWidth,m=x.lowerWidth,w=x.height,T=x.x,_=x.y;return S.createElement(Nt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:p,easing:y},S.createElement("path",Ho({},fe(r,!0),{className:O,d:lm(T,_,A,m,w),ref:n})))}):S.createElement("g",null,S.createElement("path",Ho({},fe(r,!0),{className:O,d:lm(l,u,c,f,d)})))},M3=["option","shapeType","propTransformer","activeClassName","isActive"];function ti(e){"@babel/helpers - typeof";return ti=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},ti(e)}function k3(e,t){if(e==null)return{};var r=N3(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function N3(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function um(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Yo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?um(Object(r),!0).forEach(function(n){D3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):um(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D3(e,t,r){return t=I3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I3(e){var t=L3(e,"string");return ti(t)=="symbol"?t:t+""}function L3(e,t){if(ti(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ti(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function R3(e,t){return Yo(Yo({},t),e)}function B3(e,t){return e==="symbols"}function cm(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return S.createElement(fc,r);case"trapezoid":return S.createElement(C3,r);case"sector":return S.createElement(hy,r);case"symbols":if(B3(t))return S.createElement(qi,r);break;default:return null}}function F3(e){return S.isValidElement(e)?e.props:e}function pc(e){var t=e.option,r=e.shapeType,n=e.propTransformer,a=n===void 0?R3:n,i=e.activeClassName,o=i===void 0?"recharts-active-shape":i,s=e.isActive,l=k3(e,M3),u;if(S.isValidElement(t))u=S.cloneElement(t,Yo(Yo({},l),F3(t)));else if(de(t))u=t(l);else if(v3(t)&&!w3(t)){var c=a(t,l);u=S.createElement(cm,{shapeType:r,elementProps:c})}else{var f=l;u=S.createElement(cm,{shapeType:r,elementProps:f})}return s?S.createElement(be,{className:o},u):u}function Xo(e,t){return t!=null&&"trapezoids"in e.props}function Jo(e,t){return t!=null&&"sectors"in e.props}function ri(e,t){return t!=null&&"points"in e.props}function W3(e,t){var r,n,a=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,i=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return a&&i}function U3(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function z3(e,t){var r=e.x===t.x,n=e.y===t.y,a=e.z===t.z;return r&&n&&a}function G3(e,t){var r;return Xo(e,t)?r=W3:Jo(e,t)?r=U3:ri(e,t)&&(r=z3),r}function q3(e,t){var r;return Xo(e,t)?r="trapezoids":Jo(e,t)?r="sectors":ri(e,t)&&(r="points"),r}function K3(e,t){if(Xo(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}if(Jo(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}return ri(e,t)?t.payload:{}}function V3(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,a=q3(r,t),i=K3(r,t),o=n.filter(function(l,u){var c=Rr(i,l),f=r.props[a].filter(function(y){var p=G3(r,t);return p(y,t)}),d=r.props[a].indexOf(f[f.length-1]),h=u===d;return c&&h}),s=n.indexOf(o[o.length-1]);return s}var H3=Math.ceil,Y3=Math.max;function X3(e,t,r,n){for(var a=-1,i=Y3(H3((t-e)/(r||1)),0),o=Array(i);i--;)o[n?i:++a]=e,e+=r;return o}var J3=X3,Z3=Lh,fm=1/0,Q3=17976931348623157e292;function e5(e){if(!e)return e===0?e:0;if(e=Z3(e),e===fm||e===-fm){var t=e<0?-1:1;return t*Q3}return e===e?e:0}var dm=e5,t5=J3,r5=eo,vc=dm;function n5(e){return function(t,r,n){return n&&typeof n!="number"&&r5(t,r,n)&&(r=n=void 0),t=vc(t),r===void 0?(r=t,t=0):r=vc(r),n=n===void 0?t<r?1:-1:vc(n),t5(t,r,n,e)}}var a5=n5,i5=a5,o5=i5(),s5=o5;const Zo=ke(s5);function ni(e){"@babel/helpers - typeof";return ni=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},ni(e)}function hm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function pm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hm(Object(r),!0).forEach(function(n){vm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vm(e,t,r){return t=l5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l5(e){var t=u5(e,"string");return ni(t)=="symbol"?t:t+""}function u5(e,t){if(ni(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ni(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var c5=["Webkit","Moz","O","ms"],f5=function(t,r){var n=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=c5.reduce(function(i,o){return pm(pm({},i),{},vm({},o+n,r))},{});return a[t]=r,a};function Cn(e){"@babel/helpers - typeof";return Cn=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},Cn(e)}function Qo(){return Qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qo.apply(this,arguments)}function ym(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function yc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ym(Object(r),!0).forEach(function(n){vt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ym(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mm(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bm(n.key),n)}}function h5(e,t,r){return t&&mm(e.prototype,t),r&&mm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function p5(e,t,r){return t=es(t),v5(e,gm()?Reflect.construct(t,r||[],es(e).constructor):t.apply(e,r))}function v5(e,t){if(t&&(Cn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y5(e)}function y5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gm=function(){return!!e})()}function es(e){return es=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},es(e)}function m5(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&&mc(e,t)}function mc(e,t){return mc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},mc(e,t)}function vt(e,t,r){return t=bm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bm(e){var t=g5(e,"string");return Cn(t)=="symbol"?t:t+""}function g5(e,t){if(Cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var b5=function(t){var r=t.data,n=t.startIndex,a=t.endIndex,i=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,u=Sa().domain(Zo(0,l)).range([i,i+o-s]),c=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(a),scale:u,scaleValues:c}},xm=function(t){return t.changedTouches&&!!t.changedTouches.length},Mn=function(e){function t(r){var n;return d5(this,t),n=p5(this,t,[r]),vt(n,"handleDrag",function(a){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(a):n.state.isSlideMoving&&n.handleSlideDrag(a)}),vt(n,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&n.handleDrag(a.changedTouches[0])}),vt(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=n.props,i=a.endIndex,o=a.onDragEnd,s=a.startIndex;o==null||o({endIndex:i,startIndex:s})}),n.detachDragEndListener()}),vt(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),vt(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),vt(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),vt(n,"handleSlideDragStart",function(a){var i=xm(a)?a.changedTouches[0]:a;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return m5(t,e),h5(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var a=n.startX,i=n.endX,o=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,c=u.length-1,f=Math.min(a,i),d=Math.max(a,i),h=t.getIndexInRange(o,f),y=t.getIndexInRange(o,d);return{startIndex:h-h%l,endIndex:y===c?c:y-y%l}}},{key:"getTextOfTick",value:function(n){var a=this.props,i=a.data,o=a.tickFormatter,s=a.dataKey,l=Ye(i[n],s,n);return de(o)?o(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var a=this.state,i=a.slideMoveStartX,o=a.startX,s=a.endX,l=this.props,u=l.x,c=l.width,f=l.travellerWidth,d=l.startIndex,h=l.endIndex,y=l.onChange,p=n.pageX-i;p>0?p=Math.min(p,u+c-f-s,u+c-f-o):p<0&&(p=Math.max(p,u-o,u-s));var v=this.getIndex({startX:o+p,endX:s+p});(v.startIndex!==d||v.endIndex!==h)&&y&&y(v),this.setState({startX:o+p,endX:s+p,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,a){var i=xm(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var a=this.state,i=a.brushMoveStartX,o=a.movingTravellerId,s=a.endX,l=a.startX,u=this.state[o],c=this.props,f=c.x,d=c.width,h=c.travellerWidth,y=c.onChange,p=c.gap,v=c.data,g={startX:this.state.startX,endX:this.state.endX},O=n.pageX-i;O>0?O=Math.min(O,f+d-h-u):O<0&&(O=Math.max(O,f-u)),g[o]=u+O;var x=this.getIndex(g),A=x.startIndex,m=x.endIndex,w=function(){var _=v.length-1;return o==="startX"&&(s>l?A%p===0:m%p===0)||s<l&&m===_||o==="endX"&&(s>l?m%p===0:A%p===0)||s>l&&m===_};this.setState(vt(vt({},o,u+O),"brushMoveStartX",n.pageX),function(){y&&w()&&y(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,a){var i=this,o=this.state,s=o.scaleValues,l=o.startX,u=o.endX,c=this.state[a],f=s.indexOf(c);if(f!==-1){var d=f+n;if(!(d===-1||d>=s.length)){var h=s[d];a==="startX"&&h>=u||a==="endX"&&h<=l||this.setState(vt({},a,h),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,a=n.x,i=n.y,o=n.width,s=n.height,l=n.fill,u=n.stroke;return S.createElement("rect",{stroke:u,fill:l,x:a,y:i,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,a=n.x,i=n.y,o=n.width,s=n.height,l=n.data,u=n.children,c=n.padding,f=S.Children.only(u);return f?S.cloneElement(f,{x:a,y:i,width:o,height:s,margin:c,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,a){var i,o,s=this,l=this.props,u=l.y,c=l.travellerWidth,f=l.height,d=l.traveller,h=l.ariaLabel,y=l.data,p=l.startIndex,v=l.endIndex,g=Math.max(n,this.props.x),O=yc(yc({},fe(this.props,!1)),{},{x:g,y:u,width:c,height:f}),x=h||"Min value: ".concat((i=y[p])===null||i===void 0?void 0:i.name,", Max value: ").concat((o=y[v])===null||o===void 0?void 0:o.name);return S.createElement(be,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(m){["ArrowLeft","ArrowRight"].includes(m.key)&&(m.preventDefault(),m.stopPropagation(),s.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,a))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,O))}},{key:"renderSlide",value:function(n,a){var i=this.props,o=i.y,s=i.height,l=i.stroke,u=i.travellerWidth,c=Math.min(n,a)+u,f=Math.max(Math.abs(a-n)-u,0);return S.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:c,y:o,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,a=n.startIndex,i=n.endIndex,o=n.y,s=n.height,l=n.travellerWidth,u=n.stroke,c=this.state,f=c.startX,d=c.endX,h=5,y={pointerEvents:"none",fill:u};return S.createElement(be,{className:"recharts-brush-texts"},S.createElement(so,Qo({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-h,y:o+s/2},y),this.getTextOfTick(a)),S.createElement(so,Qo({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+l+h,y:o+s/2},y),this.getTextOfTick(i)))}},{key:"render",value:function(){var n=this.props,a=n.data,i=n.className,o=n.children,s=n.x,l=n.y,u=n.width,c=n.height,f=n.alwaysShowText,d=this.state,h=d.startX,y=d.endX,p=d.isTextActive,v=d.isSlideMoving,g=d.isTravellerMoving,O=d.isTravellerFocused;if(!a||!a.length||!X(s)||!X(l)||!X(u)||!X(c)||u<=0||c<=0)return null;var x=pe("recharts-brush",i),A=S.Children.count(o)===1,m=f5("userSelect","none");return S.createElement(be,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),A&&this.renderPanorama(),this.renderSlide(h,y),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(y,"endX"),(p||v||g||O||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var a=n.x,i=n.y,o=n.width,s=n.height,l=n.stroke,u=Math.floor(i+s/2)-1;return S.createElement(S.Fragment,null,S.createElement("rect",{x:a,y:i,width:o,height:s,fill:l,stroke:"none"}),S.createElement("line",{x1:a+1,y1:u,x2:a+o-1,y2:u,fill:"none",stroke:"#fff"}),S.createElement("line",{x1:a+1,y1:u+2,x2:a+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,a){var i;return S.isValidElement(n)?i=S.cloneElement(n,a):de(n)?i=n(a):i=t.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(n,a){var i=n.data,o=n.width,s=n.x,l=n.travellerWidth,u=n.updateId,c=n.startIndex,f=n.endIndex;if(i!==a.prevData||u!==a.prevUpdateId)return yc({prevData:i,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o},i&&i.length?b5({data:i,width:o,x:s,travellerWidth:l,startIndex:c,endIndex:f}):{scale:null,scaleValues:null});if(a.scale&&(o!==a.prevWidth||s!==a.prevX||l!==a.prevTravellerWidth)){a.scale.range([s,s+o-l]);var d=a.scale.domain().map(function(h){return a.scale(h)});return{prevData:i,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o,startX:a.scale(n.startIndex),endX:a.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,a){for(var i=n.length,o=0,s=i-1;s-o>1;){var l=Math.floor((o+s)/2);n[l]>a?s=l:o=l}return a>=n[s]?s:o}}])}(S.PureComponent);vt(Mn,"displayName","Brush"),vt(Mn,"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 x5=kl;function w5(e,t){var r;return x5(e,function(n,a,i){return r=t(n,a,i),!r}),!!r}var O5=w5,S5=Ad,A5=fr,T5=O5,P5=lt,_5=eo;function E5(e,t,r){var n=P5(e)?S5:T5;return r&&_5(e,t,r)&&(t=void 0),n(e,A5(t))}var j5=E5;const $5=ke(j5);var Kt=function(t,r){var n=t.alwaysShow,a=t.ifOverflow;return n&&(a="extendDomain"),a===r},wm=xh;function C5(e,t,r){t=="__proto__"&&wm?wm(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var M5=C5,k5=M5,N5=yh,D5=fr;function I5(e,t){var r={};return t=D5(t),N5(e,function(n,a,i){k5(r,a,t(n,a,i))}),r}var L5=I5;const R5=ke(L5);function B5(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var F5=B5,W5=kl;function U5(e,t){var r=!0;return W5(e,function(n,a,i){return r=!!t(n,a,i),r}),r}var z5=U5,G5=F5,q5=z5,K5=fr,V5=lt,H5=eo;function Y5(e,t,r){var n=V5(e)?G5:q5;return r&&H5(e,t,r)&&(t=void 0),n(e,K5(t))}var X5=Y5;const Om=ke(X5);var J5=["x","y"];function kn(e){"@babel/helpers - typeof";return kn=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},kn(e)}function gc(){return gc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gc.apply(this,arguments)}function Sm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ai(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sm(Object(r),!0).forEach(function(n){Z5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Z5(e,t,r){return t=Q5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q5(e){var t=eB(e,"string");return kn(t)=="symbol"?t:t+""}function eB(e,t){if(kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tB(e,t){if(e==null)return{};var r=rB(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rB(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function nB(e,t){var r=e.x,n=e.y,a=tB(e,J5),i="".concat(r),o=parseInt(i,10),s="".concat(n),l=parseInt(s,10),u="".concat(t.height||a.height),c=parseInt(u,10),f="".concat(t.width||a.width),d=parseInt(f,10);return ai(ai(ai(ai(ai({},t),a),o?{x:o}:{}),l?{y:l}:{}),{},{height:c,width:d,name:t.name,radius:t.radius})}function Am(e){return S.createElement(pc,gc({shapeType:"rectangle",propTransformer:nB,activeClassName:"recharts-active-bar"},e))}var aB=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,a){if(typeof t=="number")return t;var i=X(n)||y1(n);return i?t(n,a):(i||(process.env.NODE_ENV!=="production"?ft(!1,"minPointSize callback function received a value with type of ".concat(kn(n),". Currently only numbers or null/undefined are supported.")):ft()),r)}},iB=["value","background"],Tm;function Nn(e){"@babel/helpers - typeof";return Nn=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},Nn(e)}function oB(e,t){if(e==null)return{};var r=sB(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sB(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ts(){return ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ts.apply(this,arguments)}function Pm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function qe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pm(Object(r),!0).forEach(function(n){br(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jm(n.key),n)}}function uB(e,t,r){return t&&_m(e.prototype,t),r&&_m(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function cB(e,t,r){return t=rs(t),fB(e,Em()?Reflect.construct(t,r||[],rs(e).constructor):t.apply(e,r))}function fB(e,t){if(t&&(Nn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dB(e)}function dB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Em(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Em=function(){return!!e})()}function rs(e){return rs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},rs(e)}function hB(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&&bc(e,t)}function bc(e,t){return bc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},bc(e,t)}function br(e,t,r){return t=jm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jm(e){var t=pB(e,"string");return Nn(t)=="symbol"?t:t+""}function pB(e,t){if(Nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Dn=function(e){function t(){var r;lB(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=cB(this,t,[].concat(a)),br(r,"state",{isAnimationFinished:!1}),br(r,"id",jr("recharts-bar-")),br(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),br(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return hB(t,e),uB(t,[{key:"renderRectanglesStatically",value:function(n){var a=this,i=this.props,o=i.shape,s=i.dataKey,l=i.activeIndex,u=i.activeBar,c=fe(this.props,!1);return n&&n.map(function(f,d){var h=d===l,y=h?u:o,p=qe(qe(qe({},c),f),{},{isActive:h,option:y,index:d,dataKey:s,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return S.createElement(be,ts({className:"recharts-bar-rectangle"},ua(a.props,f,d),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(d)}),S.createElement(Am,p))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,a=this.props,i=a.data,o=a.layout,s=a.isAnimationActive,l=a.animationBegin,u=a.animationDuration,c=a.animationEasing,f=a.animationId,d=this.state.prevData;return S.createElement(Nt,{begin:l,duration:u,isActive:s,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var y=h.t,p=i.map(function(v,g){var O=d&&d[g];if(O){var x=We(O.x,v.x),A=We(O.y,v.y),m=We(O.width,v.width),w=We(O.height,v.height);return qe(qe({},v),{},{x:x(y),y:A(y),width:m(y),height:w(y)})}if(o==="horizontal"){var T=We(0,v.height),_=T(y);return qe(qe({},v),{},{y:v.y+v.height-_,height:_})}var $=We(0,v.width),R=$(y);return qe(qe({},v),{},{width:R})});return S.createElement(be,null,n.renderRectanglesStatically(p))})}},{key:"renderRectangles",value:function(){var n=this.props,a=n.data,i=n.isAnimationActive,o=this.state.prevData;return i&&a&&a.length&&(!o||!Rr(o,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var n=this,a=this.props,i=a.data,o=a.dataKey,s=a.activeIndex,l=fe(this.props.background,!1);return i.map(function(u,c){u.value;var f=u.background,d=oB(u,iB);if(!f)return null;var h=qe(qe(qe(qe(qe({},d),{},{fill:"#eee"},f),l),ua(n.props,u,c)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:c,className:"recharts-bar-background-rectangle"});return S.createElement(Am,ts({key:"background-bar-".concat(c),option:n.props.background,isActive:c===s},h))})}},{key:"renderErrorBar",value:function(n,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.data,s=i.xAxis,l=i.yAxis,u=i.layout,c=i.children,f=ut(c,_n);if(!f)return null;var d=u==="vertical"?o[0].height/2:o[0].width/2,h=function(v,g){var O=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:O,errorVal:Ye(v,g)}},y={clipPath:n?"url(#clipPath-".concat(a,")"):null};return S.createElement(be,y,f.map(function(p){return S.cloneElement(p,{key:"error-bar-".concat(a,"-").concat(p.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,offset:d,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,a=n.hide,i=n.data,o=n.className,s=n.xAxis,l=n.yAxis,u=n.left,c=n.top,f=n.width,d=n.height,h=n.isAnimationActive,y=n.background,p=n.id;if(a||!i||!i.length)return null;var v=this.state.isAnimationFinished,g=pe("recharts-bar",o),O=s&&s.allowDataOverflow,x=l&&l.allowDataOverflow,A=O||x,m=ue(p)?this.id:p;return S.createElement(be,{className:g},O||x?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(m)},S.createElement("rect",{x:O?u:u-f/2,y:x?c:c-d/2,width:O?f:f*2,height:x?d:d*2}))):null,S.createElement(be,{className:"recharts-bar-rectangles",clipPath:A?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(A,m),(!h||v)&&qt.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:a.curData}:n.data!==a.curData?{curData:n.data}:null}}])}(S.PureComponent);Tm=Dn,br(Dn,"displayName","Bar"),br(Dn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!dr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),br(Dn,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,a=e.bandSize,i=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,c=e.dataStartIndex,f=e.displayedData,d=e.offset,h=FD(n,r);if(!h)return null;var y=t.layout,p=r.type.defaultProps,v=p!==void 0?qe(qe({},p),r.props):r.props,g=v.dataKey,O=v.children,x=v.minPointSize,A=y==="horizontal"?o:i,m=u?A.scale.domain():null,w=HD({numericAxis:A}),T=ut(O,zl),_=f.map(function($,R){var P,j,L,B,M,E;u?P=WD(u[c+R],m):(P=Ye($,g),Array.isArray(P)||(P=[w,P]));var F=aB(x,Tm.defaultProps.minPointSize)(P[1],R);if(y==="horizontal"){var U,k=[o.scale(P[0]),o.scale(P[1])],N=k[0],I=k[1];j=Xv({axis:i,ticks:s,bandSize:a,offset:h.offset,entry:$,index:R}),L=(U=I??N)!==null&&U!==void 0?U:void 0,B=h.size;var W=N-I;if(M=Number.isNaN(W)?0:W,E={x:j,y:o.y,width:B,height:o.height},Math.abs(F)>0&&Math.abs(M)<Math.abs(F)){var z=$t(M||F)*(Math.abs(F)-Math.abs(M));L-=z,M+=z}}else{var V=[i.scale(P[0]),i.scale(P[1])],Z=V[0],Q=V[1];if(j=Z,L=Xv({axis:o,ticks:l,bandSize:a,offset:h.offset,entry:$,index:R}),B=Q-Z,M=h.size,E={x:i.x,y:L,width:i.width,height:M},Math.abs(F)>0&&Math.abs(B)<Math.abs(F)){var ae=$t(B||F)*(Math.abs(F)-Math.abs(B));B+=ae}}return qe(qe(qe({},$),{},{x:j,y:L,width:B,height:M,value:u?P:P[1],payload:$,background:E},T&&T[R]&&T[R].props),{},{tooltipPayload:[ty(r,$)],tooltipPosition:{x:j+B/2,y:L+M/2}})});return qe({data:_,layout:y},d)});function ii(e){"@babel/helpers - typeof";return ii=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},ii(e)}function vB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Mm(n.key),n)}}function yB(e,t,r){return t&&$m(e.prototype,t),r&&$m(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Dt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cm(Object(r),!0).forEach(function(n){ns(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ns(e,t,r){return t=Mm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mm(e){var t=mB(e,"string");return ii(t)=="symbol"?t:t+""}function mB(e,t){if(ii(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ii(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gB=function(t,r,n,a,i){var o=t.width,s=t.height,l=t.layout,u=t.children,c=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},d=!!ht(u,Dn);return c.reduce(function(h,y){var p=r[y],v=p.orientation,g=p.domain,O=p.padding,x=O===void 0?{}:O,A=p.mirror,m=p.reversed,w="".concat(v).concat(A?"Mirror":""),T,_,$,R,P;if(p.type==="number"&&(p.padding==="gap"||p.padding==="no-gap")){var j=g[1]-g[0],L=1/0,B=p.categoricalDomain.sort(x1);if(B.forEach(function(V,Z){Z>0&&(L=Math.min((V||0)-(B[Z-1]||0),L))}),Number.isFinite(L)){var M=L/j,E=p.layout==="vertical"?n.height:n.width;if(p.padding==="gap"&&(T=M*E/2),p.padding==="no-gap"){var F=$r(t.barCategoryGap,M*E),U=M*E/2;T=U-F-(U-F)/E*F}}}a==="xAxis"?_=[n.left+(x.left||0)+(T||0),n.left+n.width-(x.right||0)-(T||0)]:a==="yAxis"?_=l==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(T||0),n.top+n.height-(x.bottom||0)-(T||0)]:_=p.range,m&&(_=[_[1],_[0]]);var k=RD(p,i,d),N=k.scale,I=k.realScaleType;N.domain(g).range(_),BD(N);var W=VD(N,Dt(Dt({},p),{},{realScaleType:I}));a==="xAxis"?(P=v==="top"&&!A||v==="bottom"&&A,$=n.left,R=f[w]-P*p.height):a==="yAxis"&&(P=v==="left"&&!A||v==="right"&&A,$=f[w]-P*p.width,R=n.top);var z=Dt(Dt(Dt({},p),W),{},{realScaleType:I,x:$,y:R,scale:N,width:a==="xAxis"?n.width:p.width,height:a==="yAxis"?n.height:p.height});return z.bandSize=Do(z,W),!p.hide&&a==="xAxis"?f[w]+=(P?-1:1)*z.height:p.hide||(f[w]+=(P?-1:1)*z.width),Dt(Dt({},h),{},ns({},y,z))},{})},km=function(t,r){var n=t.x,a=t.y,i=r.x,o=r.y;return{x:Math.min(n,i),y:Math.min(a,o),width:Math.abs(i-n),height:Math.abs(o-a)}},bB=function(t){var r=t.x1,n=t.y1,a=t.x2,i=t.y2;return km({x:r,y:n},{x:a,y:i})},Nm=function(){function e(t){vB(this,e),this.scale=t}return yB(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(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.bandAware,i=n.position;if(r!==void 0){if(i)switch(i){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(a){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),a=n[0],i=n[n.length-1];return a<=i?r>=a&&r<=i:r>=i&&r<=a}}],[{key:"create",value:function(r){return new e(r)}}])}();ns(Nm,"EPS",1e-4);var xc=function(t){var r=Object.keys(t).reduce(function(n,a){return Dt(Dt({},n),{},ns({},a,Nm.create(t[a])))},{});return Dt(Dt({},r),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,s=i.position;return R5(a,function(l,u){return r[u].apply(l,{bandAware:o,position:s})})},isInRange:function(a){return Om(a,function(i,o){return r[o].isInRange(i)})}})};function xB(e){return(e%180+180)%180}var wB=function(t){var r=t.width,n=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=xB(a),o=i*Math.PI/180,s=Math.atan(n/r),l=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(l)},OB=fr,SB=da,AB=Xi;function TB(e){return function(t,r,n){var a=Object(t);if(!SB(t)){var i=OB(r);t=AB(t),r=function(s){return i(a[s],s,a)}}var o=e(t,r,n);return o>-1?a[i?t[o]:o]:void 0}}var PB=TB,_B=dm;function EB(e){var t=_B(e),r=t%1;return t===t?r?t-r:t:0}var jB=EB,$B=ah,CB=fr,MB=jB,kB=Math.max;function NB(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=r==null?0:MB(r);return a<0&&(a=kB(n+a,0)),$B(e,CB(t),a)}var DB=NB,IB=PB,LB=DB,RB=IB(LB),BB=RB;const FB=ke(BB);var WB=Ow(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("")});function as(e){"@babel/helpers - typeof";return as=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},as(e)}var wc=S.createContext(void 0),Oc=S.createContext(void 0),Dm=S.createContext(void 0),Im=S.createContext({}),Lm=S.createContext(void 0),Rm=S.createContext(0),Bm=S.createContext(0),Fm=function(t){var r=t.state,n=r.xAxisMap,a=r.yAxisMap,i=r.offset,o=t.clipPathId,s=t.children,l=t.width,u=t.height,c=WB(i);return S.createElement(wc.Provider,{value:n},S.createElement(Oc.Provider,{value:a},S.createElement(Im.Provider,{value:i},S.createElement(Dm.Provider,{value:c},S.createElement(Lm.Provider,{value:o},S.createElement(Rm.Provider,{value:u},S.createElement(Bm.Provider,{value:l},s)))))))},UB=function(){return S.useContext(Lm)};function Wm(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var Um=function(t){var r=S.useContext(wc);r==null&&(process.env.NODE_ENV!=="production"?ft(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):ft());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?ft(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(as(t),"]. ").concat(Wm(r))):ft()),n},zB=function(){var t=S.useContext(wc);return cr(t)},GB=function(){var t=S.useContext(Oc),r=FB(t,function(n){return Om(n.domain,Number.isFinite)});return r||cr(t)},zm=function(t){var r=S.useContext(Oc);r==null&&(process.env.NODE_ENV!=="production"?ft(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):ft());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?ft(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(as(t),"]. ").concat(Wm(r))):ft()),n},qB=function(){var t=S.useContext(Dm);return t},KB=function(){return S.useContext(Im)},Sc=function(){return S.useContext(Bm)},Ac=function(){return S.useContext(Rm)};function In(e){"@babel/helpers - typeof";return In=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},In(e)}function VB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HB(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Vm(n.key),n)}}function YB(e,t,r){return t&&HB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XB(e,t,r){return t=is(t),JB(e,Gm()?Reflect.construct(t,r||[],is(e).constructor):t.apply(e,r))}function JB(e,t){if(t&&(In(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZB(e)}function ZB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Gm=function(){return!!e})()}function is(e){return is=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},is(e)}function QB(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&&Tc(e,t)}function Tc(e,t){return Tc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Tc(e,t)}function qm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Km(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qm(Object(r),!0).forEach(function(n){Pc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pc(e,t,r){return t=Vm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vm(e){var t=e4(e,"string");return In(t)=="symbol"?t:t+""}function e4(e,t){if(In(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(In(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function t4(e,t){return i4(e)||a4(e,t)||n4(e,t)||r4()}function r4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
121
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n4(e,t){if(e){if(typeof e=="string")return Hm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hm(e,t)}}function Hm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a4(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}function i4(e){if(Array.isArray(e))return e}function _c(){return _c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_c.apply(this,arguments)}var o4=function(t,r){var n;return S.isValidElement(t)?n=S.cloneElement(t,r):de(t)?n=t(r):n=S.createElement("line",_c({},r,{className:"recharts-reference-line-line"})),n},s4=function(t,r,n,a,i,o,s,l,u){var c=i.x,f=i.y,d=i.width,h=i.height;if(n){var y=u.y,p=t.y.apply(y,{position:o});if(Kt(u,"discard")&&!t.y.isInRange(p))return null;var v=[{x:c+d,y:p},{x:c,y:p}];return l==="left"?v.reverse():v}if(r){var g=u.x,O=t.x.apply(g,{position:o});if(Kt(u,"discard")&&!t.x.isInRange(O))return null;var x=[{x:O,y:f+h},{x:O,y:f}];return s==="top"?x.reverse():x}if(a){var A=u.segment,m=A.map(function(w){return t.apply(w,{position:o})});return Kt(u,"discard")&&$5(m,function(w){return!t.isInRange(w)})?null:m}return null};function l4(e){var t=e.x,r=e.y,n=e.segment,a=e.xAxisId,i=e.yAxisId,o=e.shape,s=e.className,l=e.alwaysShow,u=UB(),c=Um(a),f=zm(i),d=qB();if(!u||!d)return null;Jt(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=xc({x:c.scale,y:f.scale}),y=Ve(t),p=Ve(r),v=n&&n.length===2,g=s4(h,y,p,v,d,e.position,c.orientation,f.orientation,e);if(!g)return null;var O=t4(g,2),x=O[0],A=x.x,m=x.y,w=O[1],T=w.x,_=w.y,$=Kt(e,"hidden")?"url(#".concat(u,")"):void 0,R=Km(Km({clipPath:$},fe(e,!0)),{},{x1:A,y1:m,x2:T,y2:_});return S.createElement(be,{className:pe("recharts-reference-line",s)},o4(o,R),nt.renderCallByParent(e,bB({x1:A,y1:m,x2:T,y2:_})))}var Ec=function(e){function t(){return VB(this,t),XB(this,t,arguments)}return QB(t,e),YB(t,[{key:"render",value:function(){return S.createElement(l4,this.props)}}])}(S.Component);Pc(Ec,"displayName","ReferenceLine"),Pc(Ec,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function jc(){return jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jc.apply(this,arguments)}function Ln(e){"@babel/helpers - typeof";return Ln=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},Ln(e)}function Ym(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Xm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ym(Object(r),!0).forEach(function(n){ss(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ym(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function u4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Zm(n.key),n)}}function f4(e,t,r){return t&&c4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function d4(e,t,r){return t=os(t),h4(e,Jm()?Reflect.construct(t,r||[],os(e).constructor):t.apply(e,r))}function h4(e,t){if(t&&(Ln(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p4(e)}function p4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jm=function(){return!!e})()}function os(e){return os=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},os(e)}function v4(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&&$c(e,t)}function $c(e,t){return $c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},$c(e,t)}function ss(e,t,r){return t=Zm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zm(e){var t=y4(e,"string");return Ln(t)=="symbol"?t:t+""}function y4(e,t){if(Ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var m4=function(t){var r=t.x,n=t.y,a=t.xAxis,i=t.yAxis,o=xc({x:a.scale,y:i.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return Kt(t,"discard")&&!o.isInRange(s)?null:s},ls=function(e){function t(){return u4(this,t),d4(this,t,arguments)}return v4(t,e),f4(t,[{key:"render",value:function(){var n=this.props,a=n.x,i=n.y,o=n.r,s=n.alwaysShow,l=n.clipPathId,u=Ve(a),c=Ve(i);if(Jt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!c)return null;var f=m4(this.props);if(!f)return null;var d=f.x,h=f.y,y=this.props,p=y.shape,v=y.className,g=Kt(this.props,"hidden")?"url(#".concat(l,")"):void 0,O=Xm(Xm({clipPath:g},fe(this.props,!0)),{},{cx:d,cy:h});return S.createElement(be,{className:pe("recharts-reference-dot",v)},t.renderDot(p,O),nt.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])}(S.Component);ss(ls,"displayName","ReferenceDot"),ss(ls,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),ss(ls,"renderDot",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):de(e)?r=e(t):r=S.createElement(Vo,jc({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Cc(){return Cc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cc.apply(this,arguments)}function Rn(e){"@babel/helpers - typeof";return Rn=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},Rn(e)}function Qm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function eg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qm(Object(r),!0).forEach(function(n){cs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rg(n.key),n)}}function x4(e,t,r){return t&&b4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function w4(e,t,r){return t=us(t),O4(e,tg()?Reflect.construct(t,r||[],us(e).constructor):t.apply(e,r))}function O4(e,t){if(t&&(Rn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S4(e)}function S4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tg=function(){return!!e})()}function us(e){return us=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},us(e)}function A4(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&&Mc(e,t)}function Mc(e,t){return Mc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Mc(e,t)}function cs(e,t,r){return t=rg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rg(e){var t=T4(e,"string");return Rn(t)=="symbol"?t:t+""}function T4(e,t){if(Rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var P4=function(t,r,n,a,i){var o=i.x1,s=i.x2,l=i.y1,u=i.y2,c=i.xAxis,f=i.yAxis;if(!c||!f)return null;var d=xc({x:c.scale,y:f.scale}),h={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(l,{position:"start"}):d.y.rangeMin},y={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:a?d.y.apply(u,{position:"end"}):d.y.rangeMax};return Kt(i,"discard")&&(!d.isInRange(h)||!d.isInRange(y))?null:km(h,y)},fs=function(e){function t(){return g4(this,t),w4(this,t,arguments)}return A4(t,e),x4(t,[{key:"render",value:function(){var n=this.props,a=n.x1,i=n.x2,o=n.y1,s=n.y2,l=n.className,u=n.alwaysShow,c=n.clipPathId;Jt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=Ve(a),d=Ve(i),h=Ve(o),y=Ve(s),p=this.props.shape;if(!f&&!d&&!h&&!y&&!p)return null;var v=P4(f,d,h,y,this.props);if(!v&&!p)return null;var g=Kt(this.props,"hidden")?"url(#".concat(c,")"):void 0;return S.createElement(be,{className:pe("recharts-reference-area",l)},t.renderRect(p,eg(eg({clipPath:g},fe(this.props,!0)),v)),nt.renderCallByParent(this.props,v))}}])}(S.Component);cs(fs,"displayName","ReferenceArea"),cs(fs,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),cs(fs,"renderRect",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):de(e)?r=e(t):r=S.createElement(fc,Cc({},t,{className:"recharts-reference-area-rect"})),r});function ng(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],a=0;a<e.length;a+=t)n.push(e[a]);return n}function _4(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return wB(n,r)}function E4(e,t,r){var n=r==="width",a=e.x,i=e.y,o=e.width,s=e.height;return t===1?{start:n?a:i,end:n?a+o:i+s}:{start:n?a+o:i+s,end:n?a:i}}function ds(e,t,r,n,a){if(e*t<e*n||e*t>e*a)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-a)<=0}function j4(e,t){return ng(e,t+1)}function $4(e,t,r,n,a){for(var i=(n||[]).slice(),o=t.start,s=t.end,l=0,u=1,c=o,f=function(){var y=n==null?void 0:n[l];if(y===void 0)return{v:ng(n,u)};var p=l,v,g=function(){return v===void 0&&(v=r(y,p)),v},O=y.coordinate,x=l===0||ds(e,O,g,c,s);x||(l=0,c=o,u+=1),x&&(c=O+e*(g()/2+a),l+=u)},d;u<=i.length;)if(d=f(),d)return d.v;return[]}function oi(e){"@babel/helpers - typeof";return oi=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},oi(e)}function ag(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function at(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ag(Object(r),!0).forEach(function(n){C4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ag(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function C4(e,t,r){return t=M4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M4(e){var t=k4(e,"string");return oi(t)=="symbol"?t:t+""}function k4(e,t){if(oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function N4(e,t,r,n,a){for(var i=(n||[]).slice(),o=i.length,s=t.start,l=t.end,u=function(d){var h=i[d],y,p=function(){return y===void 0&&(y=r(h,d)),y};if(d===o-1){var v=e*(h.coordinate+e*p()/2-l);i[d]=h=at(at({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate})}else i[d]=h=at(at({},h),{},{tickCoord:h.coordinate});var g=ds(e,h.tickCoord,p,s,l);g&&(l=h.tickCoord-e*(p()/2+a),i[d]=at(at({},h),{},{isShow:!0}))},c=o-1;c>=0;c--)u(c);return i}function D4(e,t,r,n,a,i){var o=(n||[]).slice(),s=o.length,l=t.start,u=t.end;if(i){var c=n[s-1],f=r(c,s-1),d=e*(c.coordinate+e*f/2-u);o[s-1]=c=at(at({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate});var h=ds(e,c.tickCoord,function(){return f},l,u);h&&(u=c.tickCoord-e*(f/2+a),o[s-1]=at(at({},c),{},{isShow:!0}))}for(var y=i?s-1:s,p=function(O){var x=o[O],A,m=function(){return A===void 0&&(A=r(x,O)),A};if(O===0){var w=e*(x.coordinate-e*m()/2-l);o[O]=x=at(at({},x),{},{tickCoord:w<0?x.coordinate-w*e:x.coordinate})}else o[O]=x=at(at({},x),{},{tickCoord:x.coordinate});var T=ds(e,x.tickCoord,m,l,u);T&&(l=x.tickCoord+e*(m()/2+a),o[O]=at(at({},x),{},{isShow:!0}))},v=0;v<y;v++)p(v);return o}function kc(e,t,r){var n=e.tick,a=e.ticks,i=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,u=e.tickFormatter,c=e.unit,f=e.angle;if(!a||!a.length||!n)return[];if(X(l)||dr.isSsr)return j4(a,typeof l=="number"&&X(l)?l:0);var d=[],h=s==="top"||s==="bottom"?"width":"height",y=c&&h==="width"?ga(c,{fontSize:t,letterSpacing:r}):{width:0,height:0},p=function(x,A){var m=de(u)?u(x.value,A):x.value;return h==="width"?_4(ga(m,{fontSize:t,letterSpacing:r}),y,f):ga(m,{fontSize:t,letterSpacing:r})[h]},v=a.length>=2?$t(a[1].coordinate-a[0].coordinate):1,g=E4(i,v,h);return l==="equidistantPreserveStart"?$4(v,g,p,a,o):(l==="preserveStart"||l==="preserveStartEnd"?d=D4(v,g,p,a,o,l==="preserveStartEnd"):d=N4(v,g,p,a,o),d.filter(function(O){return O.isShow}))}var I4=["viewBox"],L4=["viewBox"],R4=["ticks"];function Bn(e){"@babel/helpers - typeof";return Bn=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},Bn(e)}function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fn.apply(this,arguments)}function ig(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ig(Object(r),!0).forEach(function(n){Ic(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ig(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nc(e,t){if(e==null)return{};var r=B4(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function B4(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function F4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function og(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lg(n.key),n)}}function W4(e,t,r){return t&&og(e.prototype,t),r&&og(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function U4(e,t,r){return t=hs(t),z4(e,sg()?Reflect.construct(t,r||[],hs(e).constructor):t.apply(e,r))}function z4(e,t){if(t&&(Bn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return G4(e)}function G4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sg=function(){return!!e})()}function hs(e){return hs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hs(e)}function q4(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&&Dc(e,t)}function Dc(e,t){return Dc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Dc(e,t)}function Ic(e,t,r){return t=lg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lg(e){var t=K4(e,"string");return Bn(t)=="symbol"?t:t+""}function K4(e,t){if(Bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Wn=function(e){function t(r){var n;return F4(this,t),n=U4(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return q4(t,e),W4(t,[{key:"shouldComponentUpdate",value:function(n,a){var i=n.viewBox,o=Nc(n,I4),s=this.props,l=s.viewBox,u=Nc(s,L4);return!on(i,l)||!on(o,u)||!on(a,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var a=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,u=a.orientation,c=a.tickSize,f=a.mirror,d=a.tickMargin,h,y,p,v,g,O,x=f?-1:1,A=n.tickSize||c,m=X(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":h=y=n.coordinate,v=o+ +!f*l,p=v-x*A,O=p-x*d,g=m;break;case"left":p=v=n.coordinate,y=i+ +!f*s,h=y-x*A,g=h-x*d,O=m;break;case"right":p=v=n.coordinate,y=i+ +f*s,h=y+x*A,g=h+x*d,O=m;break;default:h=y=n.coordinate,v=o+ +f*l,p=v+x*A,O=p+x*d,g=m;break}return{line:{x1:h,y1:p,x2:y,y2:v},tick:{x:g,y:O}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,a=n.orientation,i=n.mirror,o;switch(a){case"left":o=i?"start":"end";break;case"right":o=i?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,a=n.orientation,i=n.mirror,o="end";switch(a){case"left":case"right":o="middle";break;case"top":o=i?"start":"end";break;default:o=i?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,a=n.x,i=n.y,o=n.width,s=n.height,l=n.orientation,u=n.mirror,c=n.axisLine,f=Je(Je(Je({},fe(this.props,!1)),fe(c,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var d=+(l==="top"&&!u||l==="bottom"&&u);f=Je(Je({},f),{},{x1:a,y1:i+d*s,x2:a+o,y2:i+d*s})}else{var h=+(l==="left"&&!u||l==="right"&&u);f=Je(Je({},f),{},{x1:a+h*o,y1:i,x2:a+h*o,y2:i+s})}return S.createElement("line",Fn({},f,{className:pe("recharts-cartesian-axis-line",xt(c,"className"))}))}},{key:"renderTicks",value:function(n,a,i){var o=this,s=this.props,l=s.tickLine,u=s.stroke,c=s.tick,f=s.tickFormatter,d=s.unit,h=kc(Je(Je({},this.props),{},{ticks:n}),a,i),y=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),v=fe(this.props,!1),g=fe(c,!1),O=Je(Je({},v),{},{fill:"none"},fe(l,!1)),x=h.map(function(A,m){var w=o.getTickLineCoord(A),T=w.line,_=w.tick,$=Je(Je(Je(Je({textAnchor:y,verticalAnchor:p},v),{},{stroke:"none",fill:u},g),_),{},{index:m,payload:A,visibleTicksCount:h.length,tickFormatter:f});return S.createElement(be,Fn({className:"recharts-cartesian-axis-tick",key:"tick-".concat(A.value,"-").concat(A.coordinate,"-").concat(A.tickCoord)},ua(o.props,A,m)),l&&S.createElement("line",Fn({},O,T,{className:pe("recharts-cartesian-axis-tick-line",xt(l,"className"))})),c&&t.renderTickItem(c,$,"".concat(de(f)?f(A.value,m):A.value).concat(d||"")))});return S.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var n=this,a=this.props,i=a.axisLine,o=a.width,s=a.height,l=a.ticksGenerator,u=a.className,c=a.hide;if(c)return null;var f=this.props,d=f.ticks,h=Nc(f,R4),y=d;return de(l)&&(y=d&&d.length>0?l(this.props):l(h)),o<=0||s<=0||!y||!y.length?null:S.createElement(be,{className:pe("recharts-cartesian-axis",u),ref:function(v){n.layerReference=v}},i&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),nt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,a,i){var o,s=pe(a.className,"recharts-cartesian-axis-tick-value");return S.isValidElement(n)?o=S.cloneElement(n,Je(Je({},a),{},{className:s})):de(n)?o=n(Je(Je({},a),{},{className:s})):o=S.createElement(so,Fn({},a,{className:"recharts-cartesian-axis-tick-value"}),i),o}}])}(S.Component);Ic(Wn,"displayName","CartesianAxis"),Ic(Wn,"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 V4=["x1","y1","x2","y2","key"],H4=["offset"];function qr(e){"@babel/helpers - typeof";return qr=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},qr(e)}function ug(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function it(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ug(Object(r),!0).forEach(function(n){Y4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ug(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y4(e,t,r){return t=X4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X4(e){var t=J4(e,"string");return qr(t)=="symbol"?t:t+""}function J4(e,t){if(qr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kr.apply(this,arguments)}function cg(e,t){if(e==null)return{};var r=Z4(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Z4(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Q4=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,a=t.x,i=t.y,o=t.width,s=t.height,l=t.ry;return S.createElement("rect",{x:a,y:i,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function fg(e,t){var r;if(S.isValidElement(e))r=S.cloneElement(e,t);else if(de(e))r=e(t);else{var n=t.x1,a=t.y1,i=t.x2,o=t.y2,s=t.key,l=cg(t,V4),u=fe(l,!1);u.offset;var c=cg(u,H4);r=S.createElement("line",Kr({},c,{x1:n,y1:a,x2:i,y2:o,fill:"none",key:s}))}return r}function e6(e){var t=e.x,r=e.width,n=e.horizontal,a=n===void 0?!0:n,i=e.horizontalPoints;if(!a||!i||!i.length)return null;var o=i.map(function(s,l){var u=it(it({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return fg(a,u)});return S.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function t6(e){var t=e.y,r=e.height,n=e.vertical,a=n===void 0?!0:n,i=e.verticalPoints;if(!a||!i||!i.length)return null;var o=i.map(function(s,l){var u=it(it({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return fg(a,u)});return S.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function r6(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,a=e.y,i=e.width,o=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var c=s.map(function(d){return Math.round(d+a-a)}).sort(function(d,h){return d-h});a!==c[0]&&c.unshift(0);var f=c.map(function(d,h){var y=!c[h+1],p=y?a+o-d:c[h+1]-d;if(p<=0)return null;var v=h%t.length;return S.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:p,width:i,stroke:"none",fill:t[v],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function n6(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,a=e.fillOpacity,i=e.x,o=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var c=u.map(function(d){return Math.round(d+i-i)}).sort(function(d,h){return d-h});i!==c[0]&&c.unshift(0);var f=c.map(function(d,h){var y=!c[h+1],p=y?i+s-d:c[h+1]-d;if(p<=0)return null;var v=h%n.length;return S.createElement("rect",{key:"react-".concat(h),x:d,y:o,width:p,height:l,stroke:"none",fill:n[v],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var a6=function(t,r){var n=t.xAxis,a=t.width,i=t.height,o=t.offset;return Hv(kc(it(it(it({},Wn.defaultProps),n),{},{ticks:or(n,!0),viewBox:{x:0,y:0,width:a,height:i}})),o.left,o.left+o.width,r)},i6=function(t,r){var n=t.yAxis,a=t.width,i=t.height,o=t.offset;return Hv(kc(it(it(it({},Wn.defaultProps),n),{},{ticks:or(n,!0),viewBox:{x:0,y:0,width:a,height:i}})),o.top,o.top+o.height,r)},Un={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function dg(e){var t,r,n,a,i,o,s=Sc(),l=Ac(),u=KB(),c=it(it({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Un.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Un.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Un.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:Un.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:Un.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Un.verticalFill,x:X(e.x)?e.x:u.left,y:X(e.y)?e.y:u.top,width:X(e.width)?e.width:u.width,height:X(e.height)?e.height:u.height}),f=c.x,d=c.y,h=c.width,y=c.height,p=c.syncWithTicks,v=c.horizontalValues,g=c.verticalValues,O=zB(),x=GB();if(!X(h)||h<=0||!X(y)||y<=0||!X(f)||f!==+f||!X(d)||d!==+d)return null;var A=c.verticalCoordinatesGenerator||a6,m=c.horizontalCoordinatesGenerator||i6,w=c.horizontalPoints,T=c.verticalPoints;if((!w||!w.length)&&de(m)){var _=v&&v.length,$=m({yAxis:x?it(it({},x),{},{ticks:_?v:x.ticks}):void 0,width:s,height:l,offset:u},_?!0:p);Jt(Array.isArray($),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(qr($),"]")),Array.isArray($)&&(w=$)}if((!T||!T.length)&&de(A)){var R=g&&g.length,P=A({xAxis:O?it(it({},O),{},{ticks:R?g:O.ticks}):void 0,width:s,height:l,offset:u},R?!0:p);Jt(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(qr(P),"]")),Array.isArray(P)&&(T=P)}return S.createElement("g",{className:"recharts-cartesian-grid"},S.createElement(Q4,{fill:c.fill,fillOpacity:c.fillOpacity,x:c.x,y:c.y,width:c.width,height:c.height,ry:c.ry}),S.createElement(e6,Kr({},c,{offset:u,horizontalPoints:w,xAxis:O,yAxis:x})),S.createElement(t6,Kr({},c,{offset:u,verticalPoints:T,xAxis:O,yAxis:x})),S.createElement(r6,Kr({},c,{horizontalPoints:w})),S.createElement(n6,Kr({},c,{verticalPoints:T})))}dg.displayName="CartesianGrid";var o6=["type","layout","connectNulls","ref"],s6=["key"];function zn(e){"@babel/helpers - typeof";return zn=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},zn(e)}function hg(e,t){if(e==null)return{};var r=l6(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function l6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function si(){return si=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},si.apply(this,arguments)}function pg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function yt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pg(Object(r),!0).forEach(function(n){It(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gn(e){return d6(e)||f6(e)||c6(e)||u6()}function u6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
122
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c6(e,t){if(e){if(typeof e=="string")return Lc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lc(e,t)}}function f6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function d6(e){if(Array.isArray(e))return Lc(e)}function Lc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mg(n.key),n)}}function p6(e,t,r){return t&&vg(e.prototype,t),r&&vg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function v6(e,t,r){return t=ps(t),y6(e,yg()?Reflect.construct(t,r||[],ps(e).constructor):t.apply(e,r))}function y6(e,t){if(t&&(zn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m6(e)}function m6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yg=function(){return!!e})()}function ps(e){return ps=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ps(e)}function g6(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&&Rc(e,t)}function Rc(e,t){return Rc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Rc(e,t)}function It(e,t,r){return t=mg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mg(e){var t=b6(e,"string");return zn(t)=="symbol"?t:t+""}function b6(e,t){if(zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var li=function(e){function t(){var r;h6(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=v6(this,t,[].concat(a)),It(r,"state",{isAnimationFinished:!0,totalLength:0}),It(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),It(r,"getStrokeDasharray",function(o,s,l){var u=l.reduce(function(g,O){return g+O});if(!u)return r.generateSimpleStrokeDasharray(s,o);for(var c=Math.floor(o/u),f=o%u,d=s-o,h=[],y=0,p=0;y<l.length;p+=l[y],++y)if(p+l[y]>f){h=[].concat(Gn(l.slice(0,y)),[f-p]);break}var v=h.length%2===0?[0,d]:[d];return[].concat(Gn(t.repeat(l,c)),Gn(h),v).map(function(g){return"".concat(g,"px")}).join(", ")}),It(r,"id",jr("recharts-line-")),It(r,"pathRef",function(o){r.mainCurve=o}),It(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),It(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return g6(t,e),p6(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.points,s=i.xAxis,l=i.yAxis,u=i.layout,c=i.children,f=ut(c,_n);if(!f)return null;var d=function(p,v){return{x:p.x,y:p.y,value:p.value,errorVal:Ye(p.payload,v)}},h={clipPath:n?"url(#clipPath-".concat(a,")"):null};return S.createElement(be,h,f.map(function(y){return S.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,a,i){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,u=s.points,c=s.dataKey,f=fe(this.props,!1),d=fe(l,!0),h=u.map(function(p,v){var g=yt(yt(yt({key:"dot-".concat(v),r:3},f),d),{},{index:v,cx:p.x,cy:p.y,value:p.value,dataKey:c,payload:p.payload,points:u});return t.renderDotItem(l,g)}),y={clipPath:n?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return S.createElement(be,si({className:"recharts-line-dots",key:"dots"},y),h)}},{key:"renderCurveStatically",value:function(n,a,i,o){var s=this.props,l=s.type,u=s.layout,c=s.connectNulls;s.ref;var f=hg(s,o6),d=yt(yt(yt({},fe(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:a?"url(#clipPath-".concat(i,")"):null,points:n},o),{},{type:l,layout:u,connectNulls:c});return S.createElement(zr,si({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,a){var i=this,o=this.props,s=o.points,l=o.strokeDasharray,u=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,d=o.animationEasing,h=o.animationId,y=o.animateNewValues,p=o.width,v=o.height,g=this.state,O=g.prevPoints,x=g.totalLength;return S.createElement(Nt,{begin:c,duration:f,isActive:u,easing:d,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(A){var m=A.t;if(O){var w=O.length/s.length,T=s.map(function(j,L){var B=Math.floor(L*w);if(O[B]){var M=O[B],E=We(M.x,j.x),F=We(M.y,j.y);return yt(yt({},j),{},{x:E(m),y:F(m)})}if(y){var U=We(p*2,j.x),k=We(v/2,j.y);return yt(yt({},j),{},{x:U(m),y:k(m)})}return yt(yt({},j),{},{x:j.x,y:j.y})});return i.renderCurveStatically(T,n,a)}var _=We(0,x),$=_(m),R;if(l){var P="".concat(l).split(/[,\s]+/gim).map(function(j){return parseFloat(j)});R=i.getStrokeDasharray($,x,P)}else R=i.generateSimpleStrokeDasharray(x,$);return i.renderCurveStatically(s,n,a,{strokeDasharray:R})})}},{key:"renderCurve",value:function(n,a){var i=this.props,o=i.points,s=i.isAnimationActive,l=this.state,u=l.prevPoints,c=l.totalLength;return s&&o&&o.length&&(!u&&c>0||!Rr(u,o))?this.renderCurveWithAnimation(n,a):this.renderCurveStatically(o,n,a)}},{key:"render",value:function(){var n,a=this.props,i=a.hide,o=a.dot,s=a.points,l=a.className,u=a.xAxis,c=a.yAxis,f=a.top,d=a.left,h=a.width,y=a.height,p=a.isAnimationActive,v=a.id;if(i||!s||!s.length)return null;var g=this.state.isAnimationFinished,O=s.length===1,x=pe("recharts-line",l),A=u&&u.allowDataOverflow,m=c&&c.allowDataOverflow,w=A||m,T=ue(v)?this.id:v,_=(n=fe(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},$=_.r,R=$===void 0?3:$,P=_.strokeWidth,j=P===void 0?2:P,L=Ff(o)?o:{},B=L.clipDot,M=B===void 0?!0:B,E=R*2+j;return S.createElement(be,{className:x},A||m?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(T)},S.createElement("rect",{x:A?d:d-h/2,y:m?f:f-y/2,width:A?h:h*2,height:m?y:y*2})),!M&&S.createElement("clipPath",{id:"clipPath-dots-".concat(T)},S.createElement("rect",{x:d-E/2,y:f-E/2,width:h+E,height:y+E}))):null,!O&&this.renderCurve(w,T),this.renderErrorBar(w,T),(O||o)&&this.renderDots(w,M,T),(!p||g)&&qt.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:a.curPoints}:n.points!==a.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,a){for(var i=n.length%2!==0?[].concat(Gn(n),[0]):n,o=[],s=0;s<a;++s)o=[].concat(Gn(o),Gn(i));return o}},{key:"renderDotItem",value:function(n,a){var i;if(S.isValidElement(n))i=S.cloneElement(n,a);else if(de(n))i=n(a);else{var o=a.key,s=hg(a,s6),l=pe("recharts-line-dot",typeof n!="boolean"?n.className:"");i=S.createElement(Vo,si({key:o},s,{className:l}))}return i}}])}(S.PureComponent);It(li,"displayName","Line"),It(li,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!dr.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),It(li,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,a=e.xAxisTicks,i=e.yAxisTicks,o=e.dataKey,s=e.bandSize,l=e.displayedData,u=e.offset,c=t.layout,f=l.map(function(d,h){var y=Ye(d,o);return c==="horizontal"?{x:jn({axis:r,ticks:a,bandSize:s,entry:d,index:h}),y:ue(y)?null:n.scale(y),value:y,payload:d}:{x:ue(y)?null:r.scale(y),y:jn({axis:n,ticks:i,bandSize:s,entry:d,index:h}),value:y,payload:d}});return yt({points:f,layout:c},u)});var x6=["layout","type","stroke","connectNulls","isRange","ref"],w6=["key"],gg;function qn(e){"@babel/helpers - typeof";return qn=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},qn(e)}function bg(e,t){if(e==null)return{};var r=O6(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function O6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Vr(){return Vr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vr.apply(this,arguments)}function xg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function xr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xg(Object(r),!0).forEach(function(n){Vt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Sg(n.key),n)}}function A6(e,t,r){return t&&wg(e.prototype,t),r&&wg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function T6(e,t,r){return t=vs(t),P6(e,Og()?Reflect.construct(t,r||[],vs(e).constructor):t.apply(e,r))}function P6(e,t){if(t&&(qn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _6(e)}function _6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Og(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Og=function(){return!!e})()}function vs(e){return vs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vs(e)}function E6(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&&Bc(e,t)}function Bc(e,t){return Bc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Bc(e,t)}function Vt(e,t,r){return t=Sg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sg(e){var t=j6(e,"string");return qn(t)=="symbol"?t:t+""}function j6(e,t){if(qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wr=function(e){function t(){var r;S6(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=T6(this,t,[].concat(a)),Vt(r,"state",{isAnimationFinished:!0}),Vt(r,"id",jr("recharts-area-")),Vt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),de(o)&&o()}),Vt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),de(o)&&o()}),r}return E6(t,e),A6(t,[{key:"renderDots",value:function(n,a,i){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var l=this.props,u=l.dot,c=l.points,f=l.dataKey,d=fe(this.props,!1),h=fe(u,!0),y=c.map(function(v,g){var O=xr(xr(xr({key:"dot-".concat(g),r:3},d),h),{},{index:g,cx:v.x,cy:v.y,dataKey:f,value:v.value,payload:v.payload,points:c});return t.renderDotItem(u,O)}),p={clipPath:n?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return S.createElement(be,Vr({className:"recharts-area-dots"},p),y)}},{key:"renderHorizontalRect",value:function(n){var a=this.props,i=a.baseLine,o=a.points,s=a.strokeWidth,l=o[0].x,u=o[o.length-1].x,c=n*Math.abs(l-u),f=yr(o.map(function(d){return d.y||0}));return X(i)&&typeof i=="number"?f=Math.max(i,f):i&&Array.isArray(i)&&i.length&&(f=Math.max(yr(i.map(function(d){return d.y||0})),f)),X(f)?S.createElement("rect",{x:l<u?l:l-c,y:0,width:c,height:Math.floor(f+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var a=this.props,i=a.baseLine,o=a.points,s=a.strokeWidth,l=o[0].y,u=o[o.length-1].y,c=n*Math.abs(l-u),f=yr(o.map(function(d){return d.x||0}));return X(i)&&typeof i=="number"?f=Math.max(i,f):i&&Array.isArray(i)&&i.length&&(f=Math.max(yr(i.map(function(d){return d.x||0})),f)),X(f)?S.createElement("rect",{x:0,y:l<u?l:l-c,width:f+(s?parseInt("".concat(s),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(n){var a=this.props.layout;return a==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,a,i,o){var s=this.props,l=s.layout,u=s.type,c=s.stroke,f=s.connectNulls,d=s.isRange;s.ref;var h=bg(s,x6);return S.createElement(be,{clipPath:i?"url(#clipPath-".concat(o,")"):null},S.createElement(zr,Vr({},fe(h,!0),{points:n,connectNulls:f,type:u,baseLine:a,layout:l,stroke:"none",className:"recharts-area-area"})),c!=="none"&&S.createElement(zr,Vr({},fe(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:f,fill:"none",points:n})),c!=="none"&&d&&S.createElement(zr,Vr({},fe(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:f,fill:"none",points:a})))}},{key:"renderAreaWithAnimation",value:function(n,a){var i=this,o=this.props,s=o.points,l=o.baseLine,u=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,d=o.animationEasing,h=o.animationId,y=this.state,p=y.prevPoints,v=y.prevBaseLine;return S.createElement(Nt,{begin:c,duration:f,isActive:u,easing:d,from:{t:0},to:{t:1},key:"area-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var O=g.t;if(p){var x=p.length/s.length,A=s.map(function(_,$){var R=Math.floor($*x);if(p[R]){var P=p[R],j=We(P.x,_.x),L=We(P.y,_.y);return xr(xr({},_),{},{x:j(O),y:L(O)})}return _}),m;if(X(l)&&typeof l=="number"){var w=We(v,l);m=w(O)}else if(ue(l)||an(l)){var T=We(v,0);m=T(O)}else m=l.map(function(_,$){var R=Math.floor($*x);if(v[R]){var P=v[R],j=We(P.x,_.x),L=We(P.y,_.y);return xr(xr({},_),{},{x:j(O),y:L(O)})}return _});return i.renderAreaStatically(A,m,n,a)}return S.createElement(be,null,S.createElement("defs",null,S.createElement("clipPath",{id:"animationClipPath-".concat(a)},i.renderClipRect(O))),S.createElement(be,{clipPath:"url(#animationClipPath-".concat(a,")")},i.renderAreaStatically(s,l,n,a)))})}},{key:"renderArea",value:function(n,a){var i=this.props,o=i.points,s=i.baseLine,l=i.isAnimationActive,u=this.state,c=u.prevPoints,f=u.prevBaseLine,d=u.totalLength;return l&&o&&o.length&&(!c&&d>0||!Rr(c,o)||!Rr(f,s))?this.renderAreaWithAnimation(n,a):this.renderAreaStatically(o,s,n,a)}},{key:"render",value:function(){var n,a=this.props,i=a.hide,o=a.dot,s=a.points,l=a.className,u=a.top,c=a.left,f=a.xAxis,d=a.yAxis,h=a.width,y=a.height,p=a.isAnimationActive,v=a.id;if(i||!s||!s.length)return null;var g=this.state.isAnimationFinished,O=s.length===1,x=pe("recharts-area",l),A=f&&f.allowDataOverflow,m=d&&d.allowDataOverflow,w=A||m,T=ue(v)?this.id:v,_=(n=fe(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},$=_.r,R=$===void 0?3:$,P=_.strokeWidth,j=P===void 0?2:P,L=Ff(o)?o:{},B=L.clipDot,M=B===void 0?!0:B,E=R*2+j;return S.createElement(be,{className:x},A||m?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(T)},S.createElement("rect",{x:A?c:c-h/2,y:m?u:u-y/2,width:A?h:h*2,height:m?y:y*2})),!M&&S.createElement("clipPath",{id:"clipPath-dots-".concat(T)},S.createElement("rect",{x:c-E/2,y:u-E/2,width:h+E,height:y+E}))):null,O?null:this.renderArea(w,T),(o||O)&&this.renderDots(w,M,T),(!p||g)&&qt.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:a.curPoints,prevBaseLine:a.curBaseLine}:n.points!==a.curPoints||n.baseLine!==a.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])}(S.PureComponent);gg=wr,Vt(wr,"displayName","Area"),Vt(wr,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!dr.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),Vt(wr,"getBaseValue",function(e,t,r,n){var a=e.layout,i=e.baseValue,o=t.props.baseValue,s=o??i;if(X(s)&&typeof s=="number")return s;var l=a==="horizontal"?n:r,u=l.scale.domain();if(l.type==="number"){var c=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return s==="dataMin"?f:s==="dataMax"||c<0?c:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]}),Vt(wr,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,a=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,c=e.dataStartIndex,f=e.displayedData,d=e.offset,h=t.layout,y=u&&u.length,p=gg.getBaseValue(t,r,n,a),v=h==="horizontal",g=!1,O=f.map(function(A,m){var w;y?w=u[c+m]:(w=Ye(A,l),Array.isArray(w)?g=!0:w=[p,w]);var T=w[1]==null||y&&Ye(A,l)==null;return v?{x:jn({axis:n,ticks:i,bandSize:s,entry:A,index:m}),y:T?null:a.scale(w[1]),value:w,payload:A}:{x:T?null:n.scale(w[1]),y:jn({axis:a,ticks:o,bandSize:s,entry:A,index:m}),value:w,payload:A}}),x;return y||g?x=O.map(function(A){var m=Array.isArray(A.value)?A.value[0]:null;return v?{x:A.x,y:m!=null&&A.y!=null?a.scale(m):null}:{x:m!=null?n.scale(m):null,y:A.y}}):x=v?a.scale(p):n.scale(p),xr({points:O,baseLine:x,layout:h,isRange:g},d)}),Vt(wr,"renderDotItem",function(e,t){var r;if(S.isValidElement(e))r=S.cloneElement(e,t);else if(de(e))r=e(t);else{var n=pe("recharts-area-dot",typeof e!="boolean"?e.className:""),a=t.key,i=bg(t,w6);r=S.createElement(Vo,Vr({},i,{key:a,className:n}))}return r});function Kn(e){"@babel/helpers - typeof";return Kn=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},Kn(e)}function $6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Pg(n.key),n)}}function M6(e,t,r){return t&&C6(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function k6(e,t,r){return t=ys(t),N6(e,Ag()?Reflect.construct(t,r||[],ys(e).constructor):t.apply(e,r))}function N6(e,t){if(t&&(Kn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D6(e)}function D6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ag(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ag=function(){return!!e})()}function ys(e){return ys=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ys(e)}function I6(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&&Fc(e,t)}function Fc(e,t){return Fc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Fc(e,t)}function Tg(e,t,r){return t=Pg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pg(e){var t=L6(e,"string");return Kn(t)=="symbol"?t:t+""}function L6(e,t){if(Kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ms=function(e){function t(){return $6(this,t),k6(this,t,arguments)}return I6(t,e),M6(t,[{key:"render",value:function(){return null}}])}(bt.Component);Tg(ms,"displayName","ZAxis"),Tg(ms,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var R6=["option","isActive"];function ui(){return ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ui.apply(this,arguments)}function B6(e,t){if(e==null)return{};var r=F6(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function F6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function W6(e){var t=e.option,r=e.isActive,n=B6(e,R6);return typeof t=="string"?bt.createElement(pc,ui({option:bt.createElement(qi,ui({type:t},n)),isActive:r,shapeType:"symbols"},n)):bt.createElement(pc,ui({option:t,isActive:r,shapeType:"symbols"},n))}function Vn(e){"@babel/helpers - typeof";return Vn=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},Vn(e)}function ci(){return ci=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ci.apply(this,arguments)}function _g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function _t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_g(Object(r),!0).forEach(function(n){Or(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_g(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function U6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Eg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$g(n.key),n)}}function z6(e,t,r){return t&&Eg(e.prototype,t),r&&Eg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function G6(e,t,r){return t=gs(t),q6(e,jg()?Reflect.construct(t,r||[],gs(e).constructor):t.apply(e,r))}function q6(e,t){if(t&&(Vn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return K6(e)}function K6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jg=function(){return!!e})()}function gs(e){return gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gs(e)}function V6(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&&Wc(e,t)}function Wc(e,t){return Wc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Wc(e,t)}function Or(e,t,r){return t=$g(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $g(e){var t=H6(e,"string");return Vn(t)=="symbol"?t:t+""}function H6(e,t){if(Vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bs=function(e){function t(){var r;U6(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=G6(this,t,[].concat(a)),Or(r,"state",{isAnimationFinished:!1}),Or(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),Or(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),Or(r,"id",jr("recharts-scatter-")),r}return V6(t,e),z6(t,[{key:"renderSymbolsStatically",value:function(n){var a=this,i=this.props,o=i.shape,s=i.activeShape,l=i.activeIndex,u=fe(this.props,!1);return n.map(function(c,f){var d=l===f,h=d?s:o,y=_t(_t({},u),c);return S.createElement(be,ci({className:"recharts-scatter-symbol",key:"symbol-".concat(c==null?void 0:c.cx,"-").concat(c==null?void 0:c.cy,"-").concat(c==null?void 0:c.size,"-").concat(f)},ua(a.props,c,f),{role:"img"}),S.createElement(W6,ci({option:h,isActive:d,key:"symbol-".concat(f)},y)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,a=this.props,i=a.points,o=a.isAnimationActive,s=a.animationBegin,l=a.animationDuration,u=a.animationEasing,c=a.animationId,f=this.state.prevPoints;return S.createElement(Nt,{begin:s,duration:l,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var h=d.t,y=i.map(function(p,v){var g=f&&f[v];if(g){var O=We(g.cx,p.cx),x=We(g.cy,p.cy),A=We(g.size,p.size);return _t(_t({},p),{},{cx:O(h),cy:x(h),size:A(h)})}var m=We(0,p.size);return _t(_t({},p),{},{size:m(h)})});return S.createElement(be,null,n.renderSymbolsStatically(y))})}},{key:"renderSymbols",value:function(){var n=this.props,a=n.points,i=n.isAnimationActive,o=this.state.prevPoints;return i&&a&&a.length&&(!o||!Rr(o,a))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(a)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var a=this.props,i=a.points,o=a.xAxis,s=a.yAxis,l=a.children,u=ut(l,_n);return u?u.map(function(c,f){var d=c.props,h=d.direction,y=d.dataKey;return S.cloneElement(c,{key:"".concat(h,"-").concat(y,"-").concat(i[f]),data:i,xAxis:o,yAxis:s,layout:h==="x"?"vertical":"horizontal",dataPointFormatter:function(v,g){return{x:v.cx,y:v.cy,value:h==="x"?+v.node.x:+v.node.y,errorVal:Ye(v,g)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,a=n.points,i=n.line,o=n.lineType,s=n.lineJointType,l=fe(this.props,!1),u=fe(i,!1),c,f;if(o==="joint")c=a.map(function(x){return{x:x.cx,y:x.cy}});else if(o==="fitting"){var d=b1(a),h=d.xmin,y=d.xmax,p=d.a,v=d.b,g=function(A){return p*A+v};c=[{x:h,y:g(h)},{x:y,y:g(y)}]}var O=_t(_t(_t({},l),{},{fill:"none",stroke:l&&l.fill},u),{},{points:c});return S.isValidElement(i)?f=S.cloneElement(i,O):de(i)?f=i(O):f=S.createElement(zr,ci({},O,{type:s})),S.createElement(be,{className:"recharts-scatter-line",key:"recharts-scatter-line"},f)}},{key:"render",value:function(){var n=this.props,a=n.hide,i=n.points,o=n.line,s=n.className,l=n.xAxis,u=n.yAxis,c=n.left,f=n.top,d=n.width,h=n.height,y=n.id,p=n.isAnimationActive;if(a||!i||!i.length)return null;var v=this.state.isAnimationFinished,g=pe("recharts-scatter",s),O=l&&l.allowDataOverflow,x=u&&u.allowDataOverflow,A=O||x,m=ue(y)?this.id:y;return S.createElement(be,{className:g,clipPath:A?"url(#clipPath-".concat(m,")"):null},O||x?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(m)},S.createElement("rect",{x:O?c:c-d/2,y:x?f:f-h/2,width:O?d:d*2,height:x?h:h*2}))):null,o&&this.renderLine(),this.renderErrorBar(),S.createElement(be,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!p||v)&&qt.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:a.curPoints}:n.points!==a.curPoints?{curPoints:n.points}:null}}])}(S.PureComponent);Or(bs,"displayName","Scatter"),Or(bs,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!dr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"}),Or(bs,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,a=e.item,i=e.displayedData,o=e.xAxisTicks,s=e.yAxisTicks,l=e.offset,u=a.props.tooltipType,c=ut(a.props.children,zl),f=ue(t.dataKey)?a.props.dataKey:t.dataKey,d=ue(r.dataKey)?a.props.dataKey:r.dataKey,h=n&&n.dataKey,y=n?n.range:ms.defaultProps.range,p=y&&y[0],v=t.scale.bandwidth?t.scale.bandwidth():0,g=r.scale.bandwidth?r.scale.bandwidth():0,O=i.map(function(x,A){var m=Ye(x,f),w=Ye(x,d),T=!ue(h)&&Ye(x,h)||"-",_=[{name:ue(t.dataKey)?a.props.name:t.name||t.dataKey,unit:t.unit||"",value:m,payload:x,dataKey:f,type:u},{name:ue(r.dataKey)?a.props.name:r.name||r.dataKey,unit:r.unit||"",value:w,payload:x,dataKey:d,type:u}];T!=="-"&&_.push({name:n.name||n.dataKey,unit:n.unit||"",value:T,payload:x,dataKey:h,type:u});var $=jn({axis:t,ticks:o,bandSize:v,entry:x,index:A,dataKey:f}),R=jn({axis:r,ticks:s,bandSize:g,entry:x,index:A,dataKey:d}),P=T!=="-"?n.scale(T):p,j=Math.sqrt(Math.max(P,0)/Math.PI);return _t(_t({},x),{},{cx:$,cy:R,x:$-j,y:R-j,xAxis:t,yAxis:r,zAxis:n,width:2*j,height:2*j,size:P,node:{x:m,y:w,z:T},tooltipPayload:_,tooltipPosition:{x:$,y:R},payload:x},c&&c[A]&&c[A].props)});return _t({points:O},l)});function Hn(e){"@babel/helpers - typeof";return Hn=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},Hn(e)}function Y6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kg(n.key),n)}}function J6(e,t,r){return t&&X6(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Z6(e,t,r){return t=xs(t),Q6(e,Cg()?Reflect.construct(t,r||[],xs(e).constructor):t.apply(e,r))}function Q6(e,t){if(t&&(Hn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eF(e)}function eF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Cg=function(){return!!e})()}function xs(e){return xs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xs(e)}function tF(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&&Uc(e,t)}function Uc(e,t){return Uc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Uc(e,t)}function Mg(e,t,r){return t=kg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kg(e){var t=rF(e,"string");return Hn(t)=="symbol"?t:t+""}function rF(e,t){if(Hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function zc(){return zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zc.apply(this,arguments)}function nF(e){var t=e.xAxisId,r=Sc(),n=Ac(),a=Um(t);return a==null?null:bt.createElement(Wn,zc({},a,{className:pe("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return or(o,!0)}}))}var ws=function(e){function t(){return Y6(this,t),Z6(this,t,arguments)}return tF(t,e),J6(t,[{key:"render",value:function(){return bt.createElement(nF,this.props)}}])}(bt.Component);Mg(ws,"displayName","XAxis"),Mg(ws,"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 Yn(e){"@babel/helpers - typeof";return Yn=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},Yn(e)}function aF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ig(n.key),n)}}function oF(e,t,r){return t&&iF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sF(e,t,r){return t=Os(t),lF(e,Ng()?Reflect.construct(t,r||[],Os(e).constructor):t.apply(e,r))}function lF(e,t){if(t&&(Yn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uF(e)}function uF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ng(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ng=function(){return!!e})()}function Os(e){return Os=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Os(e)}function cF(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&&Gc(e,t)}function Gc(e,t){return Gc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Gc(e,t)}function Dg(e,t,r){return t=Ig(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ig(e){var t=fF(e,"string");return Yn(t)=="symbol"?t:t+""}function fF(e,t){if(Yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function qc(){return qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qc.apply(this,arguments)}var dF=function(t){var r=t.yAxisId,n=Sc(),a=Ac(),i=zm(r);return i==null?null:bt.createElement(Wn,qc({},i,{className:pe("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:a},ticksGenerator:function(s){return or(s,!0)}}))},Ss=function(e){function t(){return aF(this,t),sF(this,t,arguments)}return cF(t,e),oF(t,[{key:"render",value:function(){return bt.createElement(dF,this.props)}}])}(bt.Component);Dg(Ss,"displayName","YAxis"),Dg(Ss,"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 Lg(e){return yF(e)||vF(e)||pF(e)||hF()}function hF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
123
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pF(e,t){if(e){if(typeof e=="string")return Kc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kc(e,t)}}function vF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yF(e){if(Array.isArray(e))return Kc(e)}function Kc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Vc=function(t,r,n,a,i){var o=ut(t,Ec),s=ut(t,ls),l=[].concat(Lg(o),Lg(s)),u=ut(t,fs),c="".concat(a,"Id"),f=a[0],d=r;if(l.length&&(d=l.reduce(function(p,v){if(v.props[c]===n&&Kt(v.props,"extendDomain")&&X(v.props[f])){var g=v.props[f];return[Math.min(p[0],g),Math.max(p[1],g)]}return p},d)),u.length){var h="".concat(f,"1"),y="".concat(f,"2");d=u.reduce(function(p,v){if(v.props[c]===n&&Kt(v.props,"extendDomain")&&X(v.props[h])&&X(v.props[y])){var g=v.props[h],O=v.props[y];return[Math.min(p[0],g,O),Math.max(p[1],g,O)]}return p},d)}return i&&i.length&&(d=i.reduce(function(p,v){return X(v)?[Math.min(p[0],v),Math.max(p[1],v)]:p},d)),d},Rg={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function i(l,u,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var h=new a(c,f||l,d),y=r?r+u:u;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],h]:l._events[y].push(h):(l._events[y]=h,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},s.prototype.listeners=function(u){var c=r?r+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,y=new Array(h);d<h;d++)y[d]=f[d].fn;return y},s.prototype.listenerCount=function(u){var c=r?r+u:u,f=this._events[c];return f?f.fn?1:f.length:0},s.prototype.emit=function(u,c,f,d,h,y){var p=r?r+u:u;if(!this._events[p])return!1;var v=this._events[p],g=arguments.length,O,x;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),g){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,c),!0;case 3:return v.fn.call(v.context,c,f),!0;case 4:return v.fn.call(v.context,c,f,d),!0;case 5:return v.fn.call(v.context,c,f,d,h),!0;case 6:return v.fn.call(v.context,c,f,d,h,y),!0}for(x=1,O=new Array(g-1);x<g;x++)O[x-1]=arguments[x];v.fn.apply(v.context,O)}else{var A=v.length,m;for(x=0;x<A;x++)switch(v[x].once&&this.removeListener(u,v[x].fn,void 0,!0),g){case 1:v[x].fn.call(v[x].context);break;case 2:v[x].fn.call(v[x].context,c);break;case 3:v[x].fn.call(v[x].context,c,f);break;case 4:v[x].fn.call(v[x].context,c,f,d);break;default:if(!O)for(m=1,O=new Array(g-1);m<g;m++)O[m-1]=arguments[m];v[x].fn.apply(v[x].context,O)}}return!0},s.prototype.on=function(u,c,f){return i(this,u,c,f,!1)},s.prototype.once=function(u,c,f){return i(this,u,c,f,!0)},s.prototype.removeListener=function(u,c,f,d){var h=r?r+u:u;if(!this._events[h])return this;if(!c)return o(this,h),this;var y=this._events[h];if(y.fn)y.fn===c&&(!d||y.once)&&(!f||y.context===f)&&o(this,h);else{for(var p=0,v=[],g=y.length;p<g;p++)(y[p].fn!==c||d&&!y[p].once||f&&y[p].context!==f)&&v.push(y[p]);v.length?this._events[h]=v.length===1?v[0]:v:o(this,h)}return this},s.prototype.removeAllListeners=function(u){var c;return u?(c=r?r+u:u,this._events[c]&&o(this,c)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(Rg);var mF=Rg.exports;const gF=ke(mF);var Hc=new gF,Yc="recharts.syncMouseEvents";function fi(e){"@babel/helpers - typeof";return fi=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},fi(e)}function bF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Bg(n.key),n)}}function wF(e,t,r){return t&&xF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xc(e,t,r){return t=Bg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bg(e){var t=OF(e,"string");return fi(t)=="symbol"?t:t+""}function OF(e,t){if(fi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var SF=function(){function e(){bF(this,e),Xc(this,"activeIndex",0),Xc(this,"coordinateList",[]),Xc(this,"layout","horizontal")}return wF(e,[{key:"setDetails",value:function(r){var n,a=r.coordinateList,i=a===void 0?null:a,o=r.container,s=o===void 0?null:o,l=r.layout,u=l===void 0?null:l,c=r.offset,f=c===void 0?null:c,d=r.mouseHandlerCallback,h=d===void 0?null:d;this.coordinateList=(n=i??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=h??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(r){if(this.coordinateList.length!==0)switch(r.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(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var a=this.container.getBoundingClientRect(),i=a.x,o=a.y,s=a.height,l=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,c=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=i+l+u,d=o+this.offset.top+s/2+c;this.mouseHandlerCallback({pageX:f,pageY:d})}}}])}();function AF(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],a=e==null?void 0:e[1];if(n&&a&&X(n)&&X(a))return!0}return!1}function TF(e,t,r,n){var a=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-a,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function Fg(e){var t=e.cx,r=e.cy,n=e.radius,a=e.startAngle,i=e.endAngle,o=tt(t,r,n,a),s=tt(t,r,n,i);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:a,endAngle:i}}function PF(e,t,r){var n,a,i,o;if(e==="horizontal")n=t.x,i=n,a=r.top,o=r.top+r.height;else if(e==="vertical")a=t.y,o=a,n=r.left,i=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,u=t.innerRadius,c=t.outerRadius,f=t.angle,d=tt(s,l,u,f),h=tt(s,l,c,f);n=d.x,a=d.y,i=h.x,o=h.y}else return Fg(t);return[{x:n,y:a},{x:i,y:o}]}function di(e){"@babel/helpers - typeof";return di=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},di(e)}function Wg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function As(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wg(Object(r),!0).forEach(function(n){_F(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _F(e,t,r){return t=EF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EF(e){var t=jF(e,"string");return di(t)=="symbol"?t:t+""}function jF(e,t){if(di(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(di(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $F(e){var t,r,n=e.element,a=e.tooltipEventType,i=e.isActive,o=e.activeCoordinate,s=e.activePayload,l=e.offset,u=e.activeTooltipIndex,c=e.tooltipAxisBandSize,f=e.layout,d=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!i||!o||d!=="ScatterChart"&&a!=="axis")return null;var y,p=zr;if(d==="ScatterChart")y=o,p=t3;else if(d==="BarChart")y=TF(f,o,l,c),p=fc;else if(f==="radial"){var v=Fg(o),g=v.cx,O=v.cy,x=v.radius,A=v.startAngle,m=v.endAngle;y={cx:g,cy:O,startAngle:A,endAngle:m,innerRadius:x,outerRadius:x},p=hy}else y={points:PF(f,o,l)},p=zr;var w=As(As(As(As({stroke:"#ccc",pointerEvents:"none"},l),y),fe(h,!1)),{},{payload:s,payloadIndex:u,className:pe("recharts-tooltip-cursor",h.className)});return S.isValidElement(h)?S.cloneElement(h,w):S.createElement(p,w)}var CF=["item"],MF=["children","className","width","height","style","compact","title","desc"];function Xn(e){"@babel/helpers - typeof";return Xn=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},Xn(e)}function Jn(){return Jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jn.apply(this,arguments)}function Ug(e,t){return DF(e)||NF(e,t)||qg(e,t)||kF()}function kF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
124
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NF(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}function DF(e){if(Array.isArray(e))return e}function zg(e,t){if(e==null)return{};var r=IF(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function IF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function LF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Vg(n.key),n)}}function BF(e,t,r){return t&&RF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function FF(e,t,r){return t=Ts(t),WF(e,Gg()?Reflect.construct(t,r||[],Ts(e).constructor):t.apply(e,r))}function WF(e,t){if(t&&(Xn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UF(e)}function UF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Gg=function(){return!!e})()}function Ts(e){return Ts=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ts(e)}function zF(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&&Jc(e,t)}function Jc(e,t){return Jc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Jc(e,t)}function Zn(e){return KF(e)||qF(e)||qg(e)||GF()}function GF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
125
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qg(e,t){if(e){if(typeof e=="string")return Zc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zc(e,t)}}function qF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KF(e){if(Array.isArray(e))return Zc(e)}function Zc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Kg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kg(Object(r),!0).forEach(function(n){se(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function se(e,t,r){return t=Vg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vg(e){var t=VF(e,"string");return Xn(t)=="symbol"?t:t+""}function VF(e,t){if(Xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HF={xAxis:["bottom","top"],yAxis:["left","right"]},YF={width:"100%",height:"100%"},Hg={x:0,y:0};function Ps(e){return e}var XF=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},JF=function(t,r,n,a){var i=r.find(function(c){return c&&c.index===n});if(i){if(t==="horizontal")return{x:i.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:i.coordinate};if(t==="centric"){var o=i.coordinate,s=a.radius;return G(G(G({},a),tt(a.cx,a.cy,s,o)),{},{angle:o,radius:s})}var l=i.coordinate,u=a.angle;return G(G(G({},a),tt(a.cx,a.cy,l,u)),{},{angle:u,radius:l})}return Hg},_s=function(t,r){var n=r.graphicalItems,a=r.dataStartIndex,i=r.dataEndIndex,o=(n??[]).reduce(function(s,l){var u=l.props.data;return u&&u.length?[].concat(Zn(s),Zn(u)):s},[]);return o.length>0?o:t&&t.length&&X(a)&&X(i)?t.slice(a,i+1):[]};function Yg(e){return e==="number"?[0,"auto"]:void 0}var Qc=function(t,r,n,a){var i=t.graphicalItems,o=t.tooltipAxis,s=_s(r,t);return n<0||!i||!i.length||n>=s.length?null:i.reduce(function(l,u){var c,f=(c=u.props.data)!==null&&c!==void 0?c:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var h=f===void 0?s:f;d=ki(h,o.dataKey,a)}else d=f&&f[n]||s[n];return d?[].concat(Zn(l),[ty(u,d)]):l},[])},Xg=function(t,r,n,a){var i=a||{x:t.chartX,y:t.chartY},o=XF(i,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,c=MD(o,s,u,l);if(c>=0&&u){var f=u[c]&&u[c].value,d=Qc(t,r,c,f),h=JF(n,s,c,i);return{activeTooltipIndex:c,activeLabel:f,activePayload:d,activeCoordinate:h}}return null},ZF=function(t,r){var n=r.axes,a=r.graphicalItems,i=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,d=t.stackOffset,h=Vv(c,i);return n.reduce(function(y,p){var v,g=p.type.defaultProps!==void 0?G(G({},p.type.defaultProps),p.props):p.props,O=g.type,x=g.dataKey,A=g.allowDataOverflow,m=g.allowDuplicatedCategory,w=g.scale,T=g.ticks,_=g.includeHidden,$=g[o];if(y[$])return y;var R=_s(t.data,{graphicalItems:a.filter(function(W){var z,V=o in W.props?W.props[o]:(z=W.type.defaultProps)===null||z===void 0?void 0:z[o];return V===$}),dataStartIndex:l,dataEndIndex:u}),P=R.length,j,L,B;AF(g.domain,A,O)&&(j=Uu(g.domain,null,A),h&&(O==="number"||w!=="auto")&&(B=Ra(R,x,"category")));var M=Yg(O);if(!j||j.length===0){var E,F=(E=g.domain)!==null&&E!==void 0?E:M;if(x){if(j=Ra(R,x,O),O==="category"&&h){var U=g1(j);m&&U?(L=j,j=Zo(0,P)):m||(j=ey(F,j,p).reduce(function(W,z){return W.indexOf(z)>=0?W:[].concat(Zn(W),[z])},[]))}else if(O==="category")m?j=j.filter(function(W){return W!==""&&!ue(W)}):j=ey(F,j,p).reduce(function(W,z){return W.indexOf(z)>=0||z===""||ue(z)?W:[].concat(Zn(W),[z])},[]);else if(O==="number"){var k=LD(R,a.filter(function(W){var z,V,Z=o in W.props?W.props[o]:(z=W.type.defaultProps)===null||z===void 0?void 0:z[o],Q="hide"in W.props?W.props.hide:(V=W.type.defaultProps)===null||V===void 0?void 0:V.hide;return Z===$&&(_||!Q)}),x,i,c);k&&(j=k)}h&&(O==="number"||w!=="auto")&&(B=Ra(R,x,"category"))}else h?j=Zo(0,P):s&&s[$]&&s[$].hasStack&&O==="number"?j=d==="expand"?[0,1]:Jv(s[$].stackGroups,l,u):j=Kv(R,a.filter(function(W){var z=o in W.props?W.props[o]:W.type.defaultProps[o],V="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return z===$&&(_||!V)}),O,c,!0);if(O==="number")j=Vc(f,j,$,i,T),F&&(j=Uu(F,j,A));else if(O==="category"&&F){var N=F,I=j.every(function(W){return N.indexOf(W)>=0});I&&(j=N)}}return G(G({},y),{},se({},$,G(G({},g),{},{axisType:i,domain:j,categoricalDomain:B,duplicateDomain:L,originalDomain:(v=g.domain)!==null&&v!==void 0?v:M,isCategorical:h,layout:c})))},{})},QF=function(t,r){var n=r.graphicalItems,a=r.Axis,i=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,d=_s(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),h=d.length,y=Vv(c,i),p=-1;return n.reduce(function(v,g){var O=g.type.defaultProps!==void 0?G(G({},g.type.defaultProps),g.props):g.props,x=O[o],A=Yg("number");if(!v[x]){p++;var m;return y?m=Zo(0,h):s&&s[x]&&s[x].hasStack?(m=Jv(s[x].stackGroups,l,u),m=Vc(f,m,x,i)):(m=Uu(A,Kv(d,n.filter(function(w){var T,_,$=o in w.props?w.props[o]:(T=w.type.defaultProps)===null||T===void 0?void 0:T[o],R="hide"in w.props?w.props.hide:(_=w.type.defaultProps)===null||_===void 0?void 0:_.hide;return $===x&&!R}),"number",c),a.defaultProps.allowDataOverflow),m=Vc(f,m,x,i)),G(G({},v),{},se({},x,G(G({axisType:i},a.defaultProps),{},{hide:!0,orientation:xt(HF,"".concat(i,".").concat(p%2),null),domain:m,originalDomain:A,isCategorical:y,layout:c})))}return v},{})},e8=function(t,r){var n=r.axisType,a=n===void 0?"xAxis":n,i=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.children,f="".concat(a,"Id"),d=ut(c,i),h={};return d&&d.length?h=ZF(t,{axes:d,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(h=QF(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),h},t8=function(t){var r=cr(t),n=or(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Dl(n,function(a){return a.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Do(r,n)}},Jg=function(t){var r=t.children,n=t.defaultShowTooltip,a=ht(r,Mn),i=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(o=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},r8=function(t){return!t||!t.length?!1:t.some(function(r){var n=Xt(r&&r.type);return n&&n.indexOf("Bar")>=0})},Zg=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"}},n8=function(t,r){var n=t.props,a=t.graphicalItems,i=t.xAxisMap,o=i===void 0?{}:i,s=t.yAxisMap,l=s===void 0?{}:s,u=n.width,c=n.height,f=n.children,d=n.margin||{},h=ht(f,Mn),y=ht(f,hn),p=Object.keys(l).reduce(function(m,w){var T=l[w],_=T.orientation;return!T.mirror&&!T.hide?G(G({},m),{},se({},_,m[_]+T.width)):m},{left:d.left||0,right:d.right||0}),v=Object.keys(o).reduce(function(m,w){var T=o[w],_=T.orientation;return!T.mirror&&!T.hide?G(G({},m),{},se({},_,xt(m,"".concat(_))+T.height)):m},{top:d.top||0,bottom:d.bottom||0}),g=G(G({},v),p),O=g.bottom;h&&(g.bottom+=h.props.height||Mn.defaultProps.height),y&&r&&(g=DD(g,a,n,r));var x=u-g.left-g.right,A=c-g.top-g.bottom;return G(G({brushBottom:O},g),{},{width:Math.max(x,0),height:Math.max(A,0)})},a8=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},i8=function(t){var r=t.chartName,n=t.GraphicalChild,a=t.defaultTooltipEventType,i=a===void 0?"axis":a,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,u=t.legendContent,c=t.formatAxisMap,f=t.defaultProps,d=function(g,O){var x=O.graphicalItems,A=O.stackGroups,m=O.offset,w=O.updateId,T=O.dataStartIndex,_=O.dataEndIndex,$=g.barSize,R=g.layout,P=g.barGap,j=g.barCategoryGap,L=g.maxBarSize,B=Zg(R),M=B.numericAxisName,E=B.cateAxisName,F=r8(x),U=[];return x.forEach(function(k,N){var I=_s(g.data,{graphicalItems:[k],dataStartIndex:T,dataEndIndex:_}),W=k.type.defaultProps!==void 0?G(G({},k.type.defaultProps),k.props):k.props,z=W.dataKey,V=W.maxBarSize,Z=W["".concat(M,"Id")],Q=W["".concat(E,"Id")],ae={},te=l.reduce(function(Rt,gt){var Si,Ai,ra=O["".concat(gt.axisType,"Map")],Ti=W["".concat(gt.axisType,"Id")];ra&&ra[Ti]||gt.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?ft(!1,"Specifying a(n) ".concat(gt.axisType,"Id requires a corresponding ").concat(gt.axisType,"Id on the targeted graphical component ").concat((Si=k==null||(Ai=k.type)===null||Ai===void 0?void 0:Ai.displayName)!==null&&Si!==void 0?Si:"")):ft());var Pi=ra[Ti];return G(G({},Rt),{},se(se({},gt.axisType,Pi),"".concat(gt.axisType,"Ticks"),or(Pi)))},ae),q=te[E],Y=te["".concat(E,"Ticks")],J=A&&A[Z]&&A[Z].hasStack&&YD(k,A[Z].stackGroups),D=Xt(k.type).indexOf("Bar")>=0,ie=Do(q,Y),K=[],ee=F&&kD({barSize:$,stackGroups:A,totalSize:a8(te,E)});if(D){var oe,Ce,Te=ue(V)?L:V,Ee=(oe=(Ce=Do(q,Y,!0))!==null&&Ce!==void 0?Ce:Te)!==null&&oe!==void 0?oe:0;K=ND({barGap:P,barCategoryGap:j,bandSize:Ee!==ie?Ee:ie,sizeList:ee[Q],maxBarSize:Te}),Ee!==ie&&(K=K.map(function(Rt){return G(G({},Rt),{},{position:G(G({},Rt.position),{},{offset:Rt.position.offset-Ee/2})})}))}var et=k&&k.type&&k.type.getComposedData;et&&U.push({props:G(G({},et(G(G({},te),{},{displayedData:I,props:g,dataKey:z,item:k,bandSize:ie,barPosition:K,offset:m,stackedData:J,layout:R,dataStartIndex:T,dataEndIndex:_}))),{},se(se(se({key:k.key||"item-".concat(N)},M,te[M]),E,te[E]),"animationId",w)),childIndex:C1(k,g.children),item:k})}),U},h=function(g,O){var x=g.props,A=g.dataStartIndex,m=g.dataEndIndex,w=g.updateId;if(!Bf({props:x}))return null;var T=x.children,_=x.layout,$=x.stackOffset,R=x.data,P=x.reverseStackOrder,j=Zg(_),L=j.numericAxisName,B=j.cateAxisName,M=ut(T,n),E=KD(R,M,"".concat(L,"Id"),"".concat(B,"Id"),$,P),F=l.reduce(function(W,z){var V="".concat(z.axisType,"Map");return G(G({},W),{},se({},V,e8(x,G(G({},z),{},{graphicalItems:M,stackGroups:z.axisType===L&&E,dataStartIndex:A,dataEndIndex:m}))))},{}),U=n8(G(G({},F),{},{props:x,graphicalItems:M}),O==null?void 0:O.legendBBox);Object.keys(F).forEach(function(W){F[W]=c(x,F[W],U,W.replace("Map",""),r)});var k=F["".concat(B,"Map")],N=t8(k),I=d(x,G(G({},F),{},{dataStartIndex:A,dataEndIndex:m,updateId:w,graphicalItems:M,stackGroups:E,offset:U}));return G(G({formattedGraphicalItems:I,graphicalItems:M,offset:U,stackGroups:E},N),F)},y=function(v){function g(O){var x,A,m;return LF(this,g),m=FF(this,g,[O]),se(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),se(m,"accessibilityManager",new SF),se(m,"handleLegendBBoxUpdate",function(w){if(w){var T=m.state,_=T.dataStartIndex,$=T.dataEndIndex,R=T.updateId;m.setState(G({legendBBox:w},h({props:m.props,dataStartIndex:_,dataEndIndex:$,updateId:R},G(G({},m.state),{},{legendBBox:w}))))}}),se(m,"handleReceiveSyncEvent",function(w,T,_){if(m.props.syncId===w){if(_===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(T)}}),se(m,"handleBrushChange",function(w){var T=w.startIndex,_=w.endIndex;if(T!==m.state.dataStartIndex||_!==m.state.dataEndIndex){var $=m.state.updateId;m.setState(function(){return G({dataStartIndex:T,dataEndIndex:_},h({props:m.props,dataStartIndex:T,dataEndIndex:_,updateId:$},m.state))}),m.triggerSyncEvent({dataStartIndex:T,dataEndIndex:_})}}),se(m,"handleMouseEnter",function(w){var T=m.getMouseInfo(w);if(T){var _=G(G({},T),{},{isTooltipActive:!0});m.setState(_),m.triggerSyncEvent(_);var $=m.props.onMouseEnter;de($)&&$(_,w)}}),se(m,"triggeredAfterMouseMove",function(w){var T=m.getMouseInfo(w),_=T?G(G({},T),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var $=m.props.onMouseMove;de($)&&$(_,w)}),se(m,"handleItemMouseEnter",function(w){m.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),se(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),se(m,"handleMouseMove",function(w){w.persist(),m.throttleTriggeredAfterMouseMove(w)}),se(m,"handleMouseLeave",function(w){m.throttleTriggeredAfterMouseMove.cancel();var T={isTooltipActive:!1};m.setState(T),m.triggerSyncEvent(T);var _=m.props.onMouseLeave;de(_)&&_(T,w)}),se(m,"handleOuterEvent",function(w){var T=$1(w),_=xt(m.props,"".concat(T));if(T&&de(_)){var $,R;/.*touch.*/i.test(T)?R=m.getMouseInfo(w.changedTouches[0]):R=m.getMouseInfo(w),_(($=R)!==null&&$!==void 0?$:{},w)}}),se(m,"handleClick",function(w){var T=m.getMouseInfo(w);if(T){var _=G(G({},T),{},{isTooltipActive:!0});m.setState(_),m.triggerSyncEvent(_);var $=m.props.onClick;de($)&&$(_,w)}}),se(m,"handleMouseDown",function(w){var T=m.props.onMouseDown;if(de(T)){var _=m.getMouseInfo(w);T(_,w)}}),se(m,"handleMouseUp",function(w){var T=m.props.onMouseUp;if(de(T)){var _=m.getMouseInfo(w);T(_,w)}}),se(m,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),se(m,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&m.handleMouseDown(w.changedTouches[0])}),se(m,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&m.handleMouseUp(w.changedTouches[0])}),se(m,"handleDoubleClick",function(w){var T=m.props.onDoubleClick;if(de(T)){var _=m.getMouseInfo(w);T(_,w)}}),se(m,"handleContextMenu",function(w){var T=m.props.onContextMenu;if(de(T)){var _=m.getMouseInfo(w);T(_,w)}}),se(m,"triggerSyncEvent",function(w){m.props.syncId!==void 0&&Hc.emit(Yc,m.props.syncId,w,m.eventEmitterSymbol)}),se(m,"applySyncEvent",function(w){var T=m.props,_=T.layout,$=T.syncMethod,R=m.state.updateId,P=w.dataStartIndex,j=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)m.setState(G({dataStartIndex:P,dataEndIndex:j},h({props:m.props,dataStartIndex:P,dataEndIndex:j,updateId:R},m.state)));else if(w.activeTooltipIndex!==void 0){var L=w.chartX,B=w.chartY,M=w.activeTooltipIndex,E=m.state,F=E.offset,U=E.tooltipTicks;if(!F)return;if(typeof $=="function")M=$(U,w);else if($==="value"){M=-1;for(var k=0;k<U.length;k++)if(U[k].value===w.activeLabel){M=k;break}}var N=G(G({},F),{},{x:F.left,y:F.top}),I=Math.min(L,N.x+N.width),W=Math.min(B,N.y+N.height),z=U[M]&&U[M].value,V=Qc(m.state,m.props.data,M),Z=U[M]?{x:_==="horizontal"?U[M].coordinate:I,y:_==="horizontal"?W:U[M].coordinate}:Hg;m.setState(G(G({},w),{},{activeLabel:z,activeCoordinate:Z,activePayload:V,activeTooltipIndex:M}))}else m.setState(w)}),se(m,"renderCursor",function(w){var T,_=m.state,$=_.isTooltipActive,R=_.activeCoordinate,P=_.activePayload,j=_.offset,L=_.activeTooltipIndex,B=_.tooltipAxisBandSize,M=m.getTooltipEventType(),E=(T=w.props.active)!==null&&T!==void 0?T:$,F=m.props.layout,U=w.key||"_recharts-cursor";return S.createElement($F,{key:U,activeCoordinate:R,activePayload:P,activeTooltipIndex:L,chartName:r,element:w,isActive:E,layout:F,offset:j,tooltipAxisBandSize:B,tooltipEventType:M})}),se(m,"renderPolarAxis",function(w,T,_){var $=xt(w,"type.axisType"),R=xt(m.state,"".concat($,"Map")),P=w.type.defaultProps,j=P!==void 0?G(G({},P),w.props):w.props,L=R&&R[j["".concat($,"Id")]];return S.cloneElement(w,G(G({},L),{},{className:pe($,L.className),key:w.key||"".concat(T,"-").concat(_),ticks:or(L,!0)}))}),se(m,"renderPolarGrid",function(w){var T=w.props,_=T.radialLines,$=T.polarAngles,R=T.polarRadius,P=m.state,j=P.radiusAxisMap,L=P.angleAxisMap,B=cr(j),M=cr(L),E=M.cx,F=M.cy,U=M.innerRadius,k=M.outerRadius;return S.cloneElement(w,{polarAngles:Array.isArray($)?$:or(M,!0).map(function(N){return N.coordinate}),polarRadius:Array.isArray(R)?R:or(B,!0).map(function(N){return N.coordinate}),cx:E,cy:F,innerRadius:U,outerRadius:k,key:w.key||"polar-grid",radialLines:_})}),se(m,"renderLegend",function(){var w=m.state.formattedGraphicalItems,T=m.props,_=T.children,$=T.width,R=T.height,P=m.props.margin||{},j=$-(P.left||0)-(P.right||0),L=Uv({children:_,formattedGraphicalItems:w,legendWidth:j,legendContent:u});if(!L)return null;var B=L.item,M=zg(L,CF);return S.cloneElement(B,G(G({},M),{},{chartWidth:$,chartHeight:R,margin:P,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),se(m,"renderTooltip",function(){var w,T=m.props,_=T.children,$=T.accessibilityLayer,R=ht(_,Wt);if(!R)return null;var P=m.state,j=P.isTooltipActive,L=P.activeCoordinate,B=P.activePayload,M=P.activeLabel,E=P.offset,F=(w=R.props.active)!==null&&w!==void 0?w:j;return S.cloneElement(R,{viewBox:G(G({},E),{},{x:E.left,y:E.top}),active:F,label:M,payload:F?B:[],coordinate:L,accessibilityLayer:$})}),se(m,"renderBrush",function(w){var T=m.props,_=T.margin,$=T.data,R=m.state,P=R.offset,j=R.dataStartIndex,L=R.dataEndIndex,B=R.updateId;return S.cloneElement(w,{key:w.key||"_recharts-brush",onChange:No(m.handleBrushChange,w.props.onChange),data:$,x:X(w.props.x)?w.props.x:P.left,y:X(w.props.y)?w.props.y:P.top+P.height+P.brushBottom-(_.bottom||0),width:X(w.props.width)?w.props.width:P.width,startIndex:j,endIndex:L,updateId:"brush-".concat(B)})}),se(m,"renderReferenceElement",function(w,T,_){if(!w)return null;var $=m,R=$.clipPathId,P=m.state,j=P.xAxisMap,L=P.yAxisMap,B=P.offset,M=w.type.defaultProps||{},E=w.props,F=E.xAxisId,U=F===void 0?M.xAxisId:F,k=E.yAxisId,N=k===void 0?M.yAxisId:k;return S.cloneElement(w,{key:w.key||"".concat(T,"-").concat(_),xAxis:j[U],yAxis:L[N],viewBox:{x:B.left,y:B.top,width:B.width,height:B.height},clipPathId:R})}),se(m,"renderActivePoints",function(w){var T=w.item,_=w.activePoint,$=w.basePoint,R=w.childIndex,P=w.isRange,j=[],L=T.props.key,B=T.item.type.defaultProps!==void 0?G(G({},T.item.type.defaultProps),T.item.props):T.item.props,M=B.activeDot,E=B.dataKey,F=G(G({index:R,dataKey:E,cx:_.x,cy:_.y,r:4,fill:Fu(T.item),strokeWidth:2,stroke:"#fff",payload:_.payload,value:_.value},fe(M,!1)),Ni(M));return j.push(g.renderActiveDot(M,F,"".concat(L,"-activePoint-").concat(R))),$?j.push(g.renderActiveDot(M,G(G({},F),{},{cx:$.x,cy:$.y}),"".concat(L,"-basePoint-").concat(R))):P&&j.push(null),j}),se(m,"renderGraphicChild",function(w,T,_){var $=m.filterFormatItem(w,T,_);if(!$)return null;var R=m.getTooltipEventType(),P=m.state,j=P.isTooltipActive,L=P.tooltipAxis,B=P.activeTooltipIndex,M=P.activeLabel,E=m.props.children,F=ht(E,Wt),U=$.props,k=U.points,N=U.isRange,I=U.baseLine,W=$.item.type.defaultProps!==void 0?G(G({},$.item.type.defaultProps),$.item.props):$.item.props,z=W.activeDot,V=W.hide,Z=W.activeBar,Q=W.activeShape,ae=!!(!V&&j&&F&&(z||Z||Q)),te={};R!=="axis"&&F&&F.props.trigger==="click"?te={onClick:No(m.handleItemMouseEnter,w.props.onClick)}:R!=="axis"&&(te={onMouseLeave:No(m.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:No(m.handleItemMouseEnter,w.props.onMouseEnter)});var q=S.cloneElement(w,G(G({},$.props),te));function Y(gt){return typeof L.dataKey=="function"?L.dataKey(gt.payload):null}if(ae)if(B>=0){var J,D;if(L.dataKey&&!L.allowDuplicatedCategory){var ie=typeof L.dataKey=="function"?Y:"payload.".concat(L.dataKey.toString());J=ki(k,ie,M),D=N&&I&&ki(I,ie,M)}else J=k==null?void 0:k[B],D=N&&I&&I[B];if(Q||Z){var K=w.props.activeIndex!==void 0?w.props.activeIndex:B;return[S.cloneElement(w,G(G(G({},$.props),te),{},{activeIndex:K})),null,null]}if(!ue(J))return[q].concat(Zn(m.renderActivePoints({item:$,activePoint:J,basePoint:D,childIndex:B,isRange:N})))}else{var ee,oe=(ee=m.getItemByXY(m.state.activeCoordinate))!==null&&ee!==void 0?ee:{graphicalItem:q},Ce=oe.graphicalItem,Te=Ce.item,Ee=Te===void 0?w:Te,et=Ce.childIndex,Rt=G(G(G({},$.props),te),{},{activeIndex:et});return[S.cloneElement(Ee,Rt),null,null]}return N?[q,null,null]:[q,null]}),se(m,"renderCustomized",function(w,T,_){return S.cloneElement(w,G(G({key:"recharts-customized-".concat(_)},m.props),m.state))}),se(m,"renderMap",{CartesianGrid:{handler:Ps,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:Ps},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:Ps},YAxis:{handler:Ps},Brush:{handler:m.renderBrush,once:!0},Bar:{handler:m.renderGraphicChild},Line:{handler:m.renderGraphicChild},Area:{handler:m.renderGraphicChild},Radar:{handler:m.renderGraphicChild},RadialBar:{handler:m.renderGraphicChild},Scatter:{handler:m.renderGraphicChild},Pie:{handler:m.renderGraphicChild},Funnel:{handler:m.renderGraphicChild},Tooltip:{handler:m.renderCursor,once:!0},PolarGrid:{handler:m.renderPolarGrid,once:!0},PolarAngleAxis:{handler:m.renderPolarAxis},PolarRadiusAxis:{handler:m.renderPolarAxis},Customized:{handler:m.renderCustomized}}),m.clipPathId="".concat((x=O.id)!==null&&x!==void 0?x:jr("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=Bh(m.triggeredAfterMouseMove,(A=O.throttleDelay)!==null&&A!==void 0?A:1e3/60),m.state={},m}return zF(g,v),BF(g,[{key:"componentDidMount",value:function(){var x,A;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,A=x.children,m=x.data,w=x.height,T=x.layout,_=ht(A,Wt);if(_){var $=_.props.defaultIndex;if(!(typeof $!="number"||$<0||$>this.state.tooltipTicks.length-1)){var R=this.state.tooltipTicks[$]&&this.state.tooltipTicks[$].value,P=Qc(this.state,m,$,R),j=this.state.tooltipTicks[$].coordinate,L=(this.state.offset.top+w)/2,B=T==="horizontal",M=B?{x:j,y:L}:{y:j,x:L},E=this.state.formattedGraphicalItems.find(function(U){var k=U.item;return k.type.name==="Scatter"});E&&(M=G(G({},M),E.props.points[$].tooltipPosition),P=E.props.points[$].tooltipPayload);var F={activeTooltipIndex:$,isTooltipActive:!0,activeLabel:R,activePayload:P,activeCoordinate:M};this.setState(F),this.renderCursor(_),this.accessibilityManager.setIndex($)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,A){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==A.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var m,w;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(x){el([ht(x.children,Wt)],[ht(this.props.children,Wt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=ht(this.props.children,Wt);if(x&&typeof x.props.shared=="boolean"){var A=x.props.shared?"axis":"item";return s.indexOf(A)>=0?A:i}return i}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var A=this.container,m=A.getBoundingClientRect(),w=iM(m),T={chartX:Math.round(x.pageX-w.left),chartY:Math.round(x.pageY-w.top)},_=m.width/A.offsetWidth||1,$=this.inRange(T.chartX,T.chartY,_);if(!$)return null;var R=this.state,P=R.xAxisMap,j=R.yAxisMap,L=this.getTooltipEventType(),B=Xg(this.state,this.props.data,this.props.layout,$);if(L!=="axis"&&P&&j){var M=cr(P).scale,E=cr(j).scale,F=M&&M.invert?M.invert(T.chartX):null,U=E&&E.invert?E.invert(T.chartY):null;return G(G({},T),{},{xValue:F,yValue:U},B)}return B?G(G({},T),B):null}},{key:"inRange",value:function(x,A){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,T=x/m,_=A/m;if(w==="horizontal"||w==="vertical"){var $=this.state.offset,R=T>=$.left&&T<=$.left+$.width&&_>=$.top&&_<=$.top+$.height;return R?{x:T,y:_}:null}var P=this.state,j=P.angleAxisMap,L=P.radiusAxisMap;if(j&&L){var B=cr(j);return ay({x:T,y:_},B)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,A=this.getTooltipEventType(),m=ht(x,Wt),w={};m&&A==="axis"&&(m.props.trigger==="click"?w={onClick:this.handleClick}:w={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 T=Ni(this.props,this.handleOuterEvent);return G(G({},T),w)}},{key:"addListener",value:function(){Hc.on(Yc,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Hc.removeListener(Yc,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,A,m){for(var w=this.state.formattedGraphicalItems,T=0,_=w.length;T<_;T++){var $=w[T];if($.item===x||$.props.key===x.key||A===Xt($.item.type)&&m===$.childIndex)return $}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,A=this.state.offset,m=A.left,w=A.top,T=A.height,_=A.width;return S.createElement("defs",null,S.createElement("clipPath",{id:x},S.createElement("rect",{x:m,y:w,height:T,width:_})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(A,m){var w=Ug(m,2),T=w[0],_=w[1];return G(G({},A),{},se({},T,_.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(A,m){var w=Ug(m,2),T=w[0],_=w[1];return G(G({},A),{},se({},T,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var A;return(A=this.state.xAxisMap)===null||A===void 0||(A=A[x])===null||A===void 0?void 0:A.scale}},{key:"getYScaleByAxisId",value:function(x){var A;return(A=this.state.yAxisMap)===null||A===void 0||(A=A[x])===null||A===void 0?void 0:A.scale}},{key:"getItemByXY",value:function(x){var A=this.state,m=A.formattedGraphicalItems,w=A.activeItem;if(m&&m.length)for(var T=0,_=m.length;T<_;T++){var $=m[T],R=$.props,P=$.item,j=P.type.defaultProps!==void 0?G(G({},P.type.defaultProps),P.props):P.props,L=Xt(P.type);if(L==="Bar"){var B=(R.data||[]).find(function(U){return qR(x,U)});if(B)return{graphicalItem:$,payload:B}}else if(L==="RadialBar"){var M=(R.data||[]).find(function(U){return ay(x,U)});if(M)return{graphicalItem:$,payload:M}}else if(Xo($,w)||Jo($,w)||ri($,w)){var E=V3({graphicalItem:$,activeTooltipItem:w,itemData:j.data}),F=j.activeIndex===void 0?E:j.activeIndex;return{graphicalItem:G(G({},$),{},{childIndex:F}),payload:ri($,w)?j.data[E]:$.props.data[E]}}}return null}},{key:"render",value:function(){var x=this;if(!Bf(this))return null;var A=this.props,m=A.children,w=A.className,T=A.width,_=A.height,$=A.style,R=A.compact,P=A.title,j=A.desc,L=zg(A,MF),B=fe(L,!1);if(R)return S.createElement(Fm,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement(rl,Jn({},B,{width:T,height:_,title:P,desc:j}),this.renderClipPath(),Uf(m,this.renderMap)));if(this.props.accessibilityLayer){var M,E;B.tabIndex=(M=this.props.tabIndex)!==null&&M!==void 0?M:0,B.role=(E=this.props.role)!==null&&E!==void 0?E:"application",B.onKeyDown=function(U){x.accessibilityManager.keyboardEvent(U)},B.onFocus=function(){x.accessibilityManager.focus()}}var F=this.parseEventsOfWrapper();return S.createElement(Fm,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement("div",Jn({className:pe("recharts-wrapper",w),style:G({position:"relative",cursor:"default",width:T,height:_},$)},F,{ref:function(k){x.container=k}}),S.createElement(rl,Jn({},B,{width:T,height:_,title:P,desc:j,style:YF}),this.renderClipPath(),Uf(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(S.Component);se(y,"displayName",r),se(y,"defaultProps",G({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),se(y,"getDerivedStateFromProps",function(v,g){var O=v.dataKey,x=v.data,A=v.children,m=v.width,w=v.height,T=v.layout,_=v.stackOffset,$=v.margin,R=g.dataStartIndex,P=g.dataEndIndex;if(g.updateId===void 0){var j=Jg(v);return G(G(G({},j),{},{updateId:0},h(G(G({props:v},j),{},{updateId:0}),g)),{},{prevDataKey:O,prevData:x,prevWidth:m,prevHeight:w,prevLayout:T,prevStackOffset:_,prevMargin:$,prevChildren:A})}if(O!==g.prevDataKey||x!==g.prevData||m!==g.prevWidth||w!==g.prevHeight||T!==g.prevLayout||_!==g.prevStackOffset||!on($,g.prevMargin)){var L=Jg(v),B={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},M=G(G({},Xg(g,x,T)),{},{updateId:g.updateId+1}),E=G(G(G({},L),B),M);return G(G(G({},E),h(G({props:v},E),g)),{},{prevDataKey:O,prevData:x,prevWidth:m,prevHeight:w,prevLayout:T,prevStackOffset:_,prevMargin:$,prevChildren:A})}if(!el(A,g.prevChildren)){var F,U,k,N,I=ht(A,Mn),W=I&&(F=(U=I.props)===null||U===void 0?void 0:U.startIndex)!==null&&F!==void 0?F:R,z=I&&(k=(N=I.props)===null||N===void 0?void 0:N.endIndex)!==null&&k!==void 0?k:P,V=W!==R||z!==P,Z=!ue(x),Q=Z&&!V?g.updateId:g.updateId+1;return G(G({updateId:Q},h(G(G({props:v},g),{},{updateId:Q,dataStartIndex:W,dataEndIndex:z}),g)),{},{prevChildren:A,dataStartIndex:W,dataEndIndex:z})}return null}),se(y,"renderActiveDot",function(v,g,O){var x;return S.isValidElement(v)?x=S.cloneElement(v,g):de(v)?x=v(g):x=S.createElement(Vo,g),S.createElement(be,{className:"recharts-active-dot",key:O},x)});var p=S.forwardRef(function(g,O){return S.createElement(y,Jn({},g,{ref:O}))});return p.displayName=y.displayName,p},o8=i8({chartName:"ComposedChart",GraphicalChild:[li,wr,Dn,bs],axisComponents:[{axisType:"xAxis",AxisComp:ws},{axisType:"yAxis",AxisComp:Ss},{axisType:"zAxis",AxisComp:ms}],formatAxisMap:gB});const ef="-",s8=e=>{const t=u8(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const s=o.split(ef);return s[0]===""&&s.length!==1&&s.shift(),Qg(s,t)||l8(o)},getConflictingClassGroupIds:(o,s)=>{const l=r[o]||[];return s&&n[o]?[...l,...n[o]]:l}}},Qg=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),a=n?Qg(e.slice(1),n):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(ef);return(o=t.validators.find(({validator:s})=>s(i)))==null?void 0:o.classGroupId},eb=/^\[(.+)\]$/,l8=e=>{if(eb.test(e)){const t=eb.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},u8=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return f8(Object.entries(e.classGroups),r).forEach(([i,o])=>{tf(o,n,i,t)}),n},tf=(e,t,r,n)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:tb(t,a);i.classGroupId=r;return}if(typeof a=="function"){if(c8(a)){tf(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([i,o])=>{tf(o,tb(t,i),r,n)})})},tb=(e,t)=>{let r=e;return t.split(ef).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},c8=e=>e.isThemeGetter,f8=(e,t)=>t?e.map(([r,n])=>{const a=n.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,s])=>[t+o,s])):i);return[r,a]}):e,d8=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const a=(i,o)=>{r.set(i,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let o=r.get(i);if(o!==void 0)return o;if((o=n.get(i))!==void 0)return a(i,o),o},set(i,o){r.has(i)?r.set(i,o):a(i,o)}}},rb="!",h8=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,a=t[0],i=t.length,o=s=>{const l=[];let u=0,c=0,f;for(let v=0;v<s.length;v++){let g=s[v];if(u===0){if(g===a&&(n||s.slice(v,v+i)===t)){l.push(s.slice(c,v)),c=v+i;continue}if(g==="/"){f=v;continue}}g==="["?u++:g==="]"&&u--}const d=l.length===0?s:s.substring(c),h=d.startsWith(rb),y=h?d.substring(1):d,p=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:y,maybePostfixModifierPosition:p}};return r?s=>r({className:s,parseClassName:o}):o},p8=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},v8=e=>({cache:d8(e.cacheSize),parseClassName:h8(e),...s8(e)}),y8=/\s+/,m8=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a}=t,i=[],o=e.trim().split(y8);let s="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:h}=r(u);let y=!!h,p=n(y?d.substring(0,h):d);if(!p){if(!y){s=u+(s.length>0?" "+s:s);continue}if(p=n(d),!p){s=u+(s.length>0?" "+s:s);continue}y=!1}const v=p8(c).join(":"),g=f?v+rb:v,O=g+p;if(i.includes(O))continue;i.push(O);const x=a(p,y);for(let A=0;A<x.length;++A){const m=x[A];i.push(g+m)}s=u+(s.length>0?" "+s:s)}return s};function g8(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=nb(t))&&(n&&(n+=" "),n+=r);return n}const nb=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=nb(e[n]))&&(r&&(r+=" "),r+=t);return r};function b8(e,...t){let r,n,a,i=o;function o(l){const u=t.reduce((c,f)=>f(c),e());return r=v8(u),n=r.cache.get,a=r.cache.set,i=s,s(l)}function s(l){const u=n(l);if(u)return u;const c=m8(l,r);return a(l,c),c}return function(){return i(g8.apply(null,arguments))}}const Re=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},ab=/^\[(?:([a-z-]+):)?(.+)\]$/i,x8=/^\d+\/\d+$/,w8=new Set(["px","full","screen"]),O8=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,S8=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,A8=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,T8=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,P8=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,sr=e=>Qn(e)||w8.has(e)||x8.test(e),Sr=e=>ea(e,"length",N8),Qn=e=>!!e&&!Number.isNaN(Number(e)),rf=e=>ea(e,"number",Qn),hi=e=>!!e&&Number.isInteger(Number(e)),_8=e=>e.endsWith("%")&&Qn(e.slice(0,-1)),he=e=>ab.test(e),Ar=e=>O8.test(e),E8=new Set(["length","size","percentage"]),j8=e=>ea(e,E8,ib),$8=e=>ea(e,"position",ib),C8=new Set(["image","url"]),M8=e=>ea(e,C8,I8),k8=e=>ea(e,"",D8),pi=()=>!0,ea=(e,t,r)=>{const n=ab.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},N8=e=>S8.test(e)&&!A8.test(e),ib=()=>!1,D8=e=>T8.test(e),I8=e=>P8.test(e),L8=b8(()=>{const e=Re("colors"),t=Re("spacing"),r=Re("blur"),n=Re("brightness"),a=Re("borderColor"),i=Re("borderRadius"),o=Re("borderSpacing"),s=Re("borderWidth"),l=Re("contrast"),u=Re("grayscale"),c=Re("hueRotate"),f=Re("invert"),d=Re("gap"),h=Re("gradientColorStops"),y=Re("gradientColorStopPositions"),p=Re("inset"),v=Re("margin"),g=Re("opacity"),O=Re("padding"),x=Re("saturate"),A=Re("scale"),m=Re("sepia"),w=Re("skew"),T=Re("space"),_=Re("translate"),$=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto",he,t],j=()=>[he,t],L=()=>["",sr,Sr],B=()=>["auto",Qn,he],M=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],E=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>["start","end","center","between","around","evenly","stretch"],k=()=>["","0",he],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>[Qn,he];return{cacheSize:500,separator:":",theme:{colors:[pi],spacing:[sr,Sr],blur:["none","",Ar,he],brightness:I(),borderColor:[e],borderRadius:["none","","full",Ar,he],borderSpacing:j(),borderWidth:L(),contrast:I(),grayscale:k(),hueRotate:I(),invert:k(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[_8,Sr],inset:P(),margin:P(),opacity:I(),padding:j(),saturate:I(),scale:I(),sepia:k(),skew:I(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",he]}],container:["container"],columns:[{columns:[Ar]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...M(),he]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",hi,he]}],basis:[{basis:P()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",he]}],grow:[{grow:k()}],shrink:[{shrink:k()}],order:[{order:["first","last","none",hi,he]}],"grid-cols":[{"grid-cols":[pi]}],"col-start-end":[{col:["auto",{span:["full",hi,he]},he]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[pi]}],"row-start-end":[{row:["auto",{span:[hi,he]},he]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",he]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",he]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...U()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...U(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...U(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[O]}],px:[{px:[O]}],py:[{py:[O]}],ps:[{ps:[O]}],pe:[{pe:[O]}],pt:[{pt:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",he,t]}],"min-w":[{"min-w":[he,t,"min","max","fit"]}],"max-w":[{"max-w":[he,t,"none","full","min","max","fit","prose",{screen:[Ar]},Ar]}],h:[{h:[he,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[he,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[he,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[he,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ar,Sr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",rf]}],"font-family":[{font:[pi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",he]}],"line-clamp":[{"line-clamp":["none",Qn,rf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",sr,he]}],"list-image":[{"list-image":["none",he]}],"list-style-type":[{list:["none","disc","decimal",he]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...E(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",sr,Sr]}],"underline-offset":[{"underline-offset":["auto",sr,he]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",he]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...M(),$8]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",j8]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},M8]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...E(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:E()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...E()]}],"outline-offset":[{"outline-offset":[sr,he]}],"outline-w":[{outline:[sr,Sr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[sr,Sr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ar,k8]}],"shadow-color":[{shadow:[pi]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ar,he]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[m]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[m]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",he]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",he]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",he]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[hi,he]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[w]}],"skew-y":[{"skew-y":[w]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",he]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",he]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",he]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[sr,Sr,rf]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function ce(...e){return L8(pe(e))}const vi=({className:e,width:t,height:r,rounded:n=!1})=>b.jsx("div",{className:ce("animate-pulse bg-gray-200",n?"rounded-full":"rounded",e),style:{width:typeof t=="number"?`${t}px`:t,height:typeof r=="number"?`${r}px`:r}}),Es=({className:e})=>b.jsxs("div",{className:ce("rounded-lg border border-gray-200 bg-white p-4",e),children:[b.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[b.jsx(vi,{className:"h-4 w-16"}),b.jsx(vi,{className:"h-4 w-4",rounded:!0})]}),b.jsxs("div",{className:"flex items-baseline gap-3",children:[b.jsx(vi,{className:"h-8 w-20"}),b.jsx(vi,{className:"h-6 w-12 rounded-md"})]})]}),R8=({className:e,chartType:t="line",height:r=300})=>{const n=o=>{if(o.length===0)return"";let s=`M ${o[0].x} ${o[0].y}`;for(let l=1;l<o.length;l++){const u=o[l-1],c=o[l],f=u.x+(c.x-u.x)*.4,d=u.y,h=u.x+(c.x-u.x)*.6,y=c.y;s+=` C ${f} ${d} ${h} ${y} ${c.x} ${c.y}`}return s},a=(o=7)=>Array.from({length:o},(c,f)=>({x:f/(o-1)*100,y:80-Math.random()*60})),i=()=>{switch(t){case"bar":return b.jsx("div",{className:"absolute inset-0 flex items-end justify-between px-4 pb-4",children:[...Array(7)].map((v,g)=>b.jsx(vi,{className:"w-8 bg-blue-100",height:`${Math.random()*60+20}%`},g))});case"line":const o=a(12),s=n(o),l=o[o.length-1],u=o[0],c=`${s} L ${l.x} 100 L ${u.x} 100 Z`;return b.jsx("div",{className:"absolute inset-0 p-4",children:b.jsxs("svg",{className:"w-full h-full",viewBox:"0 0 100 100",preserveAspectRatio:"none",children:[b.jsxs("defs",{children:[b.jsxs("linearGradient",{id:"skeleton-area-fill",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[b.jsx("stop",{offset:"0%",stopColor:"#8b5cf6",stopOpacity:"0.1",children:b.jsx("animate",{attributeName:"stop-opacity",values:"0.1;0.15;0.1",dur:"3s",repeatCount:"indefinite"})}),b.jsx("stop",{offset:"100%",stopColor:"#8b5cf6",stopOpacity:"0.02",children:b.jsx("animate",{attributeName:"stop-opacity",values:"0.02;0.05;0.02",dur:"3s",repeatCount:"indefinite"})})]}),b.jsxs("linearGradient",{id:"skeleton-line-shimmer",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[b.jsx("stop",{offset:"0%",stopColor:"#e2e8f0",stopOpacity:"0.3",children:b.jsx("animate",{attributeName:"stop-opacity",values:"0.3;0.6;0.3",dur:"2.5s",repeatCount:"indefinite"})}),b.jsx("stop",{offset:"50%",stopColor:"#cbd5e1",stopOpacity:"0.6",children:b.jsx("animate",{attributeName:"stop-opacity",values:"0.6;0.3;0.6",dur:"2.5s",repeatCount:"indefinite"})}),b.jsx("stop",{offset:"100%",stopColor:"#e2e8f0",stopOpacity:"0.3",children:b.jsx("animate",{attributeName:"stop-opacity",values:"0.3;0.6;0.3",dur:"2.5s",repeatCount:"indefinite"})})]})]}),b.jsx("path",{d:c,fill:"url(#skeleton-area-fill)"}),b.jsx("path",{d:s,stroke:"url(#skeleton-line-shimmer)",strokeWidth:"1.5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})]})});case"area":const f=a(),d=n(f),h=f[f.length-1],y=f[0],p=`${d} L ${h.x} 90 L ${y.x} 90 Z`;return b.jsx("div",{className:"absolute inset-0 p-4",children:b.jsxs("svg",{className:"w-full h-full",viewBox:"0 0 100 100",preserveAspectRatio:"none",children:[b.jsxs("defs",{children:[b.jsxs("linearGradient",{id:"skeleton-area-gradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[b.jsx("stop",{offset:"0%",stopColor:"#3b82f6",stopOpacity:"0.2",children:b.jsx("animate",{attributeName:"stop-opacity",values:"0.2;0.4;0.2",dur:"2s",repeatCount:"indefinite"})}),b.jsx("stop",{offset:"100%",stopColor:"#3b82f6",stopOpacity:"0.05",children:b.jsx("animate",{attributeName:"stop-opacity",values:"0.05;0.1;0.05",dur:"2s",repeatCount:"indefinite"})})]}),b.jsxs("linearGradient",{id:"skeleton-area-line",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[b.jsx("stop",{offset:"0%",stopColor:"#3b82f6",stopOpacity:"0.4",children:b.jsx("animate",{attributeName:"stop-opacity",values:"0.4;0.8;0.4",dur:"2s",repeatCount:"indefinite"})}),b.jsx("stop",{offset:"50%",stopColor:"#3b82f6",stopOpacity:"0.8",children:b.jsx("animate",{attributeName:"stop-opacity",values:"0.8;0.4;0.8",dur:"2s",repeatCount:"indefinite"})}),b.jsx("stop",{offset:"100%",stopColor:"#3b82f6",stopOpacity:"0.4",children:b.jsx("animate",{attributeName:"stop-opacity",values:"0.4;0.8;0.4",dur:"2s",repeatCount:"indefinite"})})]})]}),b.jsx("path",{d:p,fill:"url(#skeleton-area-gradient)"}),b.jsx("path",{d:n(f),stroke:"url(#skeleton-area-line)",strokeWidth:"2.5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})]})});case"pie":return b.jsx("div",{className:"absolute inset-0 flex items-center justify-center p-4",children:b.jsxs("svg",{className:"w-32 h-32",viewBox:"0 0 42 42",children:[b.jsxs("defs",{children:[b.jsx("linearGradient",{id:"skeleton-pie-gradient-1",children:b.jsx("stop",{offset:"0%",stopColor:"#3b82f6",stopOpacity:"0.3",children:b.jsx("animate",{attributeName:"stop-opacity",values:"0.3;0.6;0.3",dur:"2s",repeatCount:"indefinite"})})}),b.jsx("linearGradient",{id:"skeleton-pie-gradient-2",children:b.jsx("stop",{offset:"0%",stopColor:"#10b981",stopOpacity:"0.3",children:b.jsx("animate",{attributeName:"stop-opacity",values:"0.3;0.6;0.3",dur:"2s",repeatCount:"indefinite",begin:"0.5s"})})}),b.jsx("linearGradient",{id:"skeleton-pie-gradient-3",children:b.jsx("stop",{offset:"0%",stopColor:"#f59e0b",stopOpacity:"0.3",children:b.jsx("animate",{attributeName:"stop-opacity",values:"0.3;0.6;0.3",dur:"2s",repeatCount:"indefinite",begin:"1s"})})}),b.jsx("linearGradient",{id:"skeleton-pie-gradient-4",children:b.jsx("stop",{offset:"0%",stopColor:"#ef4444",stopOpacity:"0.3",children:b.jsx("animate",{attributeName:"stop-opacity",values:"0.3;0.6;0.3",dur:"2s",repeatCount:"indefinite",begin:"1.5s"})})})]}),b.jsx("circle",{cx:"21",cy:"21",r:"15.915",fill:"transparent",stroke:"#e5e7eb",strokeWidth:"3"}),b.jsx("circle",{cx:"21",cy:"21",r:"15.915",fill:"transparent",stroke:"url(#skeleton-pie-gradient-1)",strokeWidth:"3",strokeDasharray:"40 60",strokeDashoffset:"25"}),b.jsx("circle",{cx:"21",cy:"21",r:"15.915",fill:"transparent",stroke:"url(#skeleton-pie-gradient-2)",strokeWidth:"3",strokeDasharray:"25 75",strokeDashoffset:"65"}),b.jsx("circle",{cx:"21",cy:"21",r:"15.915",fill:"transparent",stroke:"url(#skeleton-pie-gradient-3)",strokeWidth:"3",strokeDasharray:"20 80",strokeDashoffset:"90"}),b.jsx("circle",{cx:"21",cy:"21",r:"15.915",fill:"transparent",stroke:"url(#skeleton-pie-gradient-4)",strokeWidth:"3",strokeDasharray:"15 85",strokeDashoffset:"110"})]})});default:return b.jsx("div",{className:"absolute inset-0 p-4",children:b.jsxs("div",{className:"w-full h-full relative",children:[b.jsx("div",{className:"absolute inset-0 flex items-center",children:b.jsx("div",{className:"w-full h-0.5 bg-gradient-to-r from-transparent via-gray-300 to-transparent opacity-60",children:b.jsx("div",{className:"w-full h-full bg-gradient-to-r from-transparent via-blue-400 to-transparent animate-pulse"})})}),b.jsx("div",{className:"absolute inset-0 flex items-center justify-between px-2",children:[...Array(7)].map((v,g)=>b.jsx("div",{className:"w-2 h-2 bg-blue-300 rounded-full animate-pulse",style:{animationDelay:`${g*.2}s`}},g))})]})})}};return b.jsx("div",{className:ce("w-full",e),children:b.jsxs("div",{className:"relative bg-gray-50/30 py-3",children:[b.jsxs("div",{className:"relative mb-6",style:{height:`${r}px`},children:[b.jsxs("div",{className:"absolute left-0 top-0 h-full flex flex-col justify-between items-end pr-3",children:[b.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"})]}),b.jsxs("div",{className:"ml-14 h-full relative overflow-hidden px-0 py-2 flex flex-col justify-between",children:[t!=="pie"&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),b.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),b.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),b.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),b.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),b.jsx("div",{className:"h-0 w-full border-t border-gray-100"})]}),i()]}),t!=="pie"&&b.jsxs("div",{className:"ml-14 flex justify-between items-center mt-3",children:[b.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"})]})]}),b.jsxs("div",{className:"flex items-center justify-between px-0 py-3 mt-2",children:[b.jsx("div",{className:"flex-1",children:b.jsx("div",{className:"bg-gray-100 h-3 rounded w-64"})}),b.jsxs("div",{className:"flex items-center gap-2 w-24 justify-center",children:[b.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded flex-1"})]})]})]})})},B8=({active:e,payload:t,label:r,config:n})=>{var o;if(!e||!t||!t.length)return null;const a=t.filter(s=>s.name&&s.name!==""&&s.name!==s.dataKey);if(a.length===0)return null;const i=((o=n.tooltip)==null?void 0:o.style)==="dark";return b.jsxs("div",{className:ce("rounded-lg border px-3 py-2 text-sm shadow-lg",i?"bg-gray-900 border-gray-700 text-white":"bg-white border-gray-200 text-gray-900"),children:[b.jsx("div",{className:ce("font-medium mb-1",i?"text-gray-300":"text-gray-600"),children:new Date(r||"").toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}),b.jsx("div",{className:"space-y-1",children:a.map((s,l)=>b.jsxs("div",{className:"flex items-center justify-between gap-4",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:s.color}}),b.jsx("span",{className:ce("text-sm",i?"text-gray-300":"text-gray-600"),children:s.name})]}),b.jsx("span",{className:ce("font-medium",i?"text-white":"text-gray-900"),children:typeof s.value=="number"?s.value.toLocaleString():s.value})]},l))})]})},ob=({config:e,className:t,isLoading:r})=>{const{data:n,dataKey:a,color:i="#3b82f6",lines:o,dateRange:s,yAxisLabel:l,height:u=300,tooltip:c={show:!0,style:"dark"}}=e,f=p=>{const v=new Date(p);return isNaN(v.getTime())?p:v.getDate().toString()},d=p=>p>=1e3?`${(p/1e3).toFixed(0)}k`:p.toString(),y=o&&o.length>0?o:[{dataKey:a||"value",color:i,label:e.title,strokeWidth:2}];return r?(console.log("AnalyticsChart: Loading state active"),b.jsx(R8,{className:t,chartType:e.type,height:u})):!n||n.length===0?(console.log("AnalyticsChart: No data provided",{data:n,config:e}),b.jsx("div",{className:ce("w-full",t),children:b.jsxs("div",{className:"relative bg-gray-50/30 py-6",children:[b.jsxs("div",{className:"relative h-[300px] mb-6",children:[b.jsxs("div",{className:"absolute left-0 top-0 h-full flex flex-col justify-between items-end pr-3",children:[b.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded w-10"})]}),b.jsxs("div",{className:"ml-14 h-full relative overflow-hidden px-0 py-2 flex flex-col justify-between",children:[b.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),b.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),b.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),b.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),b.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),b.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),b.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-4",children:[b.jsx("div",{className:"bg-white border border-gray-300 rounded-[10px] w-12 h-12 flex items-center justify-center",children:b.jsx("svg",{className:"w-6 h-6 text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})}),b.jsxs("div",{className:"text-center max-w-[352px]",children:[b.jsx("h3",{className:"font-semibold text-gray-900 text-base mb-1",children:"There is no data to display for this period"}),b.jsx("p",{className:"font-normal text-gray-600 text-sm leading-5",children:"Try selecting a different date range or ensure your app is deployed and receiving traffic."})]})]})]}),b.jsxs("div",{className:"ml-14 flex justify-between items-center mt-3",children:[b.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded w-4"})]})]}),b.jsxs("div",{className:"flex items-center justify-between px-0 py-3 mt-2",children:[b.jsx("div",{className:"flex-1",children:b.jsx("div",{className:"bg-gray-100 h-3 rounded w-64"})}),b.jsxs("div",{className:"flex items-center gap-2 w-24 justify-center",children:[b.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full"}),b.jsx("div",{className:"bg-gray-100 h-3 rounded flex-1"})]})]})]})})):(console.log("=== ANALYTICS CHART DEBUG ==="),console.log("AnalyticsChart config:",e),console.log("AnalyticsChart data:",JSON.stringify(n,null,2)),console.log("AnalyticsChart dataKey:",a),console.log("Chart lines configuration:",y),console.log("Sample data point:",n[0]),console.log("Data point keys:",Object.keys(n[0]||{})),console.log("=== END ANALYTICS CHART DEBUG ==="),b.jsxs("div",{className:ce("w-full",t),children:[b.jsx("div",{className:"relative bg-gray-50/30 py-6",children:b.jsx(ZC,{width:"100%",height:u,children:b.jsxs(o8,{data:n,margin:{top:20,right:30,left:20,bottom:20},children:[b.jsx("defs",{children:y.map((p,v)=>b.jsxs("linearGradient",{id:`gradient-${p.dataKey}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[b.jsx("stop",{offset:"5%",stopColor:p.color,stopOpacity:.08}),b.jsx("stop",{offset:"95%",stopColor:p.color,stopOpacity:.01})]},`gradient-${v}`))}),b.jsx(dg,{strokeDasharray:"2 2",className:"opacity-30",stroke:"#d1d5db",horizontal:!0,vertical:!1}),b.jsx(ws,{dataKey:"date",tickFormatter:f,axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"#6b7280"},tickMargin:10}),b.jsx(Ss,{axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"#6b7280"},tickFormatter:d,tickMargin:10,label:l?{value:l,angle:-90,position:"insideLeft",style:{textAnchor:"middle",fontSize:12,fill:"#6b7280"}}:void 0}),c.show&&b.jsx(Wt,{content:p=>b.jsx(B8,{...p,config:e}),cursor:{stroke:"#d1d5db",strokeWidth:1,strokeDasharray:"4 4"},allowEscapeViewBox:{x:!1,y:!1}}),y.map(p=>b.jsx(wr,{type:"monotone",dataKey:p.dataKey,stroke:"none",fill:`url(#gradient-${p.dataKey})`,fillOpacity:1,isAnimationActive:!1,name:""},`area-${p.dataKey}`)),y.map(p=>b.jsx(li,{type:"monotone",dataKey:p.dataKey,stroke:p.color,strokeWidth:2.5,strokeDasharray:p.strokeDasharray,dot:!1,activeDot:{r:5,fill:p.color,stroke:p.color,strokeWidth:2},name:p.label},p.dataKey))]})})}),b.jsxs("div",{className:"mt-4 flex items-center justify-between",children:[b.jsx("div",{children:s&&b.jsxs("p",{className:"text-sm text-muted-foreground",children:["Showing data from ",new Date(s.start).toLocaleDateString("en-US",{day:"numeric",month:"short",year:"numeric"})," - ",new Date(s.end).toLocaleDateString("en-US",{day:"numeric",month:"short",year:"numeric"})]})}),b.jsx("div",{className:"flex items-center gap-4",children:b.jsx("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:y.map(p=>b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:p.color}}),b.jsx("span",{children:p.label})]},p.dataKey))})})]})]}))};/**
126
126
  * @license lucide-react v0.294.0 - ISC
127
127
  *
128
128
  * This source code is licensed under the ISC license.
129
129
  * See the LICENSE file in the root directory of this source tree.
130
- */var Jz={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
130
+ */var F8={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
131
131
  * @license lucide-react v0.294.0 - ISC
132
132
  *
133
133
  * This source code is licensed under the ISC license.
134
134
  * See the LICENSE file in the root directory of this source tree.
135
- */const Qz=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),Cc=(e,t)=>{const r=O.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:s="",children:l,...u},c)=>O.createElement("svg",{ref:c,...Jz,width:i,height:i,stroke:n,strokeWidth:o?Number(a)*24/Number(i):a,className:["lucide",`lucide-${Qz(e)}`,s].join(" "),...u},[...t.map(([f,d])=>O.createElement(f,d)),...Array.isArray(l)?l:[l]]));return r.displayName=`${e}`,r};/**
135
+ */const W8=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),mt=(e,t)=>{const r=S.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:s="",children:l,...u},c)=>S.createElement("svg",{ref:c,...F8,width:a,height:a,stroke:n,strokeWidth:o?Number(i)*24/Number(a):i,className:["lucide",`lucide-${W8(e)}`,s].join(" "),...u},[...t.map(([f,d])=>S.createElement(f,d)),...Array.isArray(l)?l:[l]]));return r.displayName=`${e}`,r};/**
136
136
  * @license lucide-react v0.294.0 - ISC
137
137
  *
138
138
  * This source code is licensed under the ISC license.
139
139
  * See the LICENSE file in the root directory of this source tree.
140
- */const Mc=Cc("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
140
+ */const U8=mt("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
141
141
  * @license lucide-react v0.294.0 - ISC
142
142
  *
143
143
  * This source code is licensed under the ISC license.
144
144
  * See the LICENSE file in the root directory of this source tree.
145
- */const km=Cc("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
145
+ */const sb=mt("Calendar",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",ry:"2",key:"eu3xkr"}],["line",{x1:"16",x2:"16",y1:"2",y2:"6",key:"m3sa8f"}],["line",{x1:"8",x2:"8",y1:"2",y2:"6",key:"18kwsl"}],["line",{x1:"3",x2:"21",y1:"10",y2:"10",key:"xt86sb"}]]);/**
146
146
  * @license lucide-react v0.294.0 - ISC
147
147
  *
148
148
  * This source code is licensed under the ISC license.
149
149
  * See the LICENSE file in the root directory of this source tree.
150
- */const Im=Cc("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),e6=({config:e,className:t})=>{const{title:r,data:n,columns:i,pagination:a={enabled:!0,pageSize:10},sorting:o={enabled:!0},filtering:s={enabled:!0,searchable:!0}}=e,[l,u]=O.useState(o.defaultSort||null),[c,f]=O.useState(""),[d,p]=O.useState(1),g=O.useMemo(()=>{let y=[...n];return s.searchable&&c&&(y=y.filter(b=>i.some(A=>{const T=b[A.key];return T==null?void 0:T.toString().toLowerCase().includes(c.toLowerCase())}))),l&&y.sort((b,A)=>{const T=b[l.key],j=A[l.key];if(typeof T=="number"&&typeof j=="number")return l.order==="asc"?T-j:j-T;const N=(T==null?void 0:T.toString())||"",_=(j==null?void 0:j.toString())||"",E=N.localeCompare(_);return l.order==="asc"?E:-E}),y},[n,i,c,l,s.searchable]),h=a.enabled?Math.ceil(g.length/a.pageSize):1,v=a.enabled?g.slice((d-1)*a.pageSize,d*a.pageSize):g,m=y=>{!o.enabled||!y.sortable||u(b=>(b==null?void 0:b.key)===y.key?b.order==="asc"?{key:y.key,order:"desc"}:null:{key:y.key,order:"asc"})},w=y=>{f(y),p(1)},x=(y,b,A)=>b.render?b.render(y,A):b.formatter?b.formatter(y,A):typeof y=="number"?y.toLocaleString():(y==null?void 0:y.toString())||"-",S=y=>!o.enabled||!y.sortable?null:(l==null?void 0:l.key)===y.key?l.order==="asc"?P.jsx(km,{className:"w-4 h-4"}):P.jsx(Mc,{className:"w-4 h-4"}):P.jsxs("div",{className:"flex flex-col",children:[P.jsx(km,{className:"w-3 h-3 opacity-30"}),P.jsx(Mc,{className:"w-3 h-3 opacity-30 -mt-1"})]});return P.jsxs("div",{className:$e("w-full",t),children:[P.jsxs("div",{className:"flex items-center justify-between mb-4",children:[P.jsx("h3",{className:"text-lg font-semibold",children:r}),s.enabled&&s.searchable&&P.jsxs("div",{className:"relative",children:[P.jsx(Im,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"}),P.jsx("input",{type:"text",placeholder:"Search...",value:c,onChange:y=>w(y.target.value),className:"pl-10 pr-4 py-2 border border-gray-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"})]})]}),P.jsx("div",{className:"overflow-x-auto border border-gray-200 rounded-lg",children:P.jsxs("table",{className:"w-full",children:[P.jsx("thead",{className:"bg-gray-50",children:P.jsx("tr",{children:i.map(y=>P.jsx("th",{className:$e("px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",y.sortable&&o.enabled&&"cursor-pointer hover:bg-gray-100",y.align==="center"&&"text-center",y.align==="right"&&"text-right"),style:{width:y.width},onClick:()=>m(y),children:P.jsxs("div",{className:"flex items-center gap-2",children:[P.jsx("span",{children:y.title}),S(y)]})},y.key))})}),P.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:v.map((y,b)=>P.jsx("tr",{className:"hover:bg-gray-50 transition-colors",children:i.map(A=>P.jsx("td",{className:$e("px-4 py-3 text-sm text-gray-900",A.align==="center"&&"text-center",A.align==="right"&&"text-right"),children:x(y[A.key],A,y)},A.key))},b))})]})}),a.enabled&&h>1&&P.jsxs("div",{className:"flex items-center justify-between mt-4",children:[P.jsxs("div",{className:"text-sm text-gray-500",children:["Showing ",(d-1)*a.pageSize+1," to"," ",Math.min(d*a.pageSize,g.length)," of"," ",g.length," results"]}),P.jsxs("div",{className:"flex items-center gap-2",children:[P.jsx("button",{onClick:()=>p(y=>Math.max(1,y-1)),disabled:d===1,className:"px-3 py-1 text-sm border border-gray-200 rounded hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",children:"Previous"}),Array.from({length:Math.min(5,h)},(y,b)=>{const A=Math.max(1,Math.min(h-4,d-2))+b;return A>h?null:P.jsx("button",{onClick:()=>p(A),className:$e("px-3 py-1 text-sm border rounded",d===A?"bg-blue-500 text-white border-blue-500":"border-gray-200 hover:bg-gray-50"),children:A},A)}),P.jsx("button",{onClick:()=>p(y=>Math.min(h,y+1)),disabled:d===h,className:"px-3 py-1 text-sm border border-gray-200 rounded hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",children:"Next"})]})]}),v.length===0&&P.jsx("div",{className:"text-center py-8 text-gray-500",children:c?"No results found for your search.":"No data available."})]})},t6=(e,t)=>{switch(e){case"human":return t==="agent"?"agent-avatars":"avatars";case"logo":return"profileLogos";case"icon":case"inlineTool":case"toolLibrary":case"KNOWLEDGE":case"MCP":return"profileIcons";default:return t==="agent"?"agent-avatars":"avatars"}},Nm=e=>{if(!e)return null;if(typeof e=="string")try{return JSON.parse(e)}catch{return{name:e,type:"human"}}return e},Dm=(e,t)=>{const r=["#3B82F6","#EF4444","#10B981","#F59E0B","#8B5CF6","#EC4899","#06B6D4","#84CC16"],n=e.split("").reduce((i,a)=>i+a.charCodeAt(0),0)%r.length;if(t==="workflowtool"){const i=e.toLowerCase();let a="toolLibrary";return i.includes("code")||i.includes("inline")||i.includes("calculate")?a="inlineTool":i.includes("knowledge")||i.includes("document")||i.includes("fetch")?a="KNOWLEDGE":(i.includes("mcp")||i.includes("protocol"))&&(a="MCP"),{name:"fallback",type:a,color:r[n]}}return{name:"fallback",type:t==="agent"?"human":"icon",color:r[n]}},r6=(e,t)=>{if(!(e!=null&&e.name))return"";if(t==="url")return e.name;const r=window.location.origin,n=t6(e.type||"human",t);return`${r}/agenticai/assets/${n}/${e.name}.svg`},n6={xs:"w-6 h-6 text-xs",small:"w-8 h-8 text-sm",medium:"w-10 h-10 text-base",large:"w-12 h-12 text-lg"},$t={inlineTool:`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_3533_7514)">
150
+ */const js=mt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
151
+ * @license lucide-react v0.294.0 - ISC
152
+ *
153
+ * This source code is licensed under the ISC license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */const z8=mt("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
156
+ * @license lucide-react v0.294.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const G8=mt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
161
+ * @license lucide-react v0.294.0 - ISC
162
+ *
163
+ * This source code is licensed under the ISC license.
164
+ * See the LICENSE file in the root directory of this source tree.
165
+ */const lb=mt("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
166
+ * @license lucide-react v0.294.0 - ISC
167
+ *
168
+ * This source code is licensed under the ISC license.
169
+ * See the LICENSE file in the root directory of this source tree.
170
+ */const q8=mt("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
171
+ * @license lucide-react v0.294.0 - ISC
172
+ *
173
+ * This source code is licensed under the ISC license.
174
+ * See the LICENSE file in the root directory of this source tree.
175
+ */const K8=mt("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
176
+ * @license lucide-react v0.294.0 - ISC
177
+ *
178
+ * This source code is licensed under the ISC license.
179
+ * See the LICENSE file in the root directory of this source tree.
180
+ */const V8=mt("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
181
+ * @license lucide-react v0.294.0 - ISC
182
+ *
183
+ * This source code is licensed under the ISC license.
184
+ * See the LICENSE file in the root directory of this source tree.
185
+ */const ub=mt("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
186
+ * @license lucide-react v0.294.0 - ISC
187
+ *
188
+ * This source code is licensed under the ISC license.
189
+ * See the LICENSE file in the root directory of this source tree.
190
+ */const H8=mt("Table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]);/**
191
+ * @license lucide-react v0.294.0 - ISC
192
+ *
193
+ * This source code is licensed under the ISC license.
194
+ * See the LICENSE file in the root directory of this source tree.
195
+ */const Y8=mt("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/**
196
+ * @license lucide-react v0.294.0 - ISC
197
+ *
198
+ * This source code is licensed under the ISC license.
199
+ * See the LICENSE file in the root directory of this source tree.
200
+ */const X8=mt("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]),cb=({config:e,className:t})=>{const{title:r,data:n,columns:a,pagination:i={enabled:!0,pageSize:10},sorting:o={enabled:!0},filtering:s={enabled:!0,searchable:!0}}=e,[l,u]=S.useState(o.defaultSort||null),[c,f]=S.useState(""),[d,h]=S.useState(1),y=S.useMemo(()=>{let m=[...n];return s.searchable&&c&&(m=m.filter(w=>a.some(T=>{const _=w[T.key];return _==null?void 0:_.toString().toLowerCase().includes(c.toLowerCase())}))),l&&m.sort((w,T)=>{const _=w[l.key],$=T[l.key];if(typeof _=="number"&&typeof $=="number")return l.order==="asc"?_-$:$-_;const R=(_==null?void 0:_.toString())||"",P=($==null?void 0:$.toString())||"",j=R.localeCompare(P);return l.order==="asc"?j:-j}),m},[n,a,c,l,s.searchable]),p=i.enabled?Math.ceil(y.length/i.pageSize):1,v=i.enabled?y.slice((d-1)*i.pageSize,d*i.pageSize):y,g=m=>{!o.enabled||!m.sortable||u(w=>(w==null?void 0:w.key)===m.key?w.order==="asc"?{key:m.key,order:"desc"}:null:{key:m.key,order:"asc"})},O=m=>{f(m),h(1)},x=(m,w,T)=>w.render?w.render(m,T):w.formatter?w.formatter(m,T):typeof m=="number"?m.toLocaleString():(m==null?void 0:m.toString())||"-",A=m=>!o.enabled||!m.sortable?null:(l==null?void 0:l.key)===m.key?l.order==="asc"?b.jsx(lb,{className:"w-4 h-4"}):b.jsx(js,{className:"w-4 h-4"}):b.jsxs("div",{className:"flex flex-col",children:[b.jsx(lb,{className:"w-3 h-3 opacity-30"}),b.jsx(js,{className:"w-3 h-3 opacity-30 -mt-1"})]});return b.jsxs("div",{className:ce("w-full",t),children:[b.jsxs("div",{className:"flex items-center justify-between mb-4",children:[b.jsx("h3",{className:"text-lg font-semibold",children:r}),s.enabled&&s.searchable&&b.jsxs("div",{className:"relative",children:[b.jsx(ub,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"}),b.jsx("input",{type:"text",placeholder:"Search...",value:c,onChange:m=>O(m.target.value),className:"pl-10 pr-4 py-2 border border-gray-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"})]})]}),b.jsx("div",{className:"overflow-x-auto border border-gray-200 rounded-lg",children:b.jsxs("table",{className:"w-full",children:[b.jsx("thead",{className:"bg-gray-50",children:b.jsx("tr",{children:a.map(m=>b.jsx("th",{className:ce("px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",m.sortable&&o.enabled&&"cursor-pointer hover:bg-gray-100",m.align==="center"&&"text-center",m.align==="right"&&"text-right"),style:{width:m.width},onClick:()=>g(m),children:b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{children:m.title}),A(m)]})},m.key))})}),b.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:v.map((m,w)=>b.jsx("tr",{className:"hover:bg-gray-50 transition-colors",children:a.map(T=>b.jsx("td",{className:ce("px-4 py-3 text-sm text-gray-900",T.align==="center"&&"text-center",T.align==="right"&&"text-right"),children:x(m[T.key],T,m)},T.key))},w))})]})}),i.enabled&&p>1&&b.jsxs("div",{className:"flex items-center justify-between mt-4",children:[b.jsxs("div",{className:"text-sm text-gray-500",children:["Showing ",(d-1)*i.pageSize+1," to"," ",Math.min(d*i.pageSize,y.length)," of"," ",y.length," results"]}),b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("button",{onClick:()=>h(m=>Math.max(1,m-1)),disabled:d===1,className:"px-3 py-1 text-sm border border-gray-200 rounded hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",children:"Previous"}),Array.from({length:Math.min(5,p)},(m,w)=>{const T=Math.max(1,Math.min(p-4,d-2))+w;return T>p?null:b.jsx("button",{onClick:()=>h(T),className:ce("px-3 py-1 text-sm border rounded",d===T?"bg-blue-500 text-white border-blue-500":"border-gray-200 hover:bg-gray-50"),children:T},T)}),b.jsx("button",{onClick:()=>h(m=>Math.min(p,m+1)),disabled:d===p,className:"px-3 py-1 text-sm border border-gray-200 rounded hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",children:"Next"})]})]}),v.length===0&&b.jsx("div",{className:"text-center py-8 text-gray-500",children:c?"No results found for your search.":"No data available."})]})},J8=(e,t)=>{switch(e){case"human":return t==="agent"?"agent-avatars":"avatars";case"logo":return"profileLogos";case"icon":case"inlineTool":case"toolLibrary":case"KNOWLEDGE":case"MCP":return"profileIcons";default:return t==="agent"?"agent-avatars":"avatars"}},fb=e=>{if(!e)return null;if(typeof e=="string")try{return JSON.parse(e)}catch{return{name:e,type:"human"}}return e},db=(e,t)=>{const r=["#3B82F6","#EF4444","#10B981","#F59E0B","#8B5CF6","#EC4899","#06B6D4","#84CC16"],n=e.split("").reduce((a,i)=>a+i.charCodeAt(0),0)%r.length;if(t==="workflowtool"){const a=e.toLowerCase();let i="toolLibrary";return a.includes("code")||a.includes("inline")||a.includes("calculate")?i="inlineTool":a.includes("knowledge")||a.includes("document")||a.includes("fetch")?i="KNOWLEDGE":(a.includes("mcp")||a.includes("protocol"))&&(i="MCP"),{name:"fallback",type:i,color:r[n]}}return{name:"fallback",type:t==="agent"?"human":"icon",color:r[n]}},Z8=(e,t)=>{if(!(e!=null&&e.name))return"";if(t==="url")return e.name;const r=window.location.origin,n=J8(e.type||"human",t);return`${r}/agenticai/assets/${n}/${e.name}.svg`},Q8={xs:"w-6 h-6 text-xs",small:"w-8 h-8 text-sm",medium:"w-10 h-10 text-base",large:"w-12 h-12 text-lg"},Lt={inlineTool:`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_3533_7514)">
151
201
  <path d="M8.5 8.5L11 6L8.5 3.5M3.5 3.5L1 6L3.5 8.5M7 1.5L5 10.5" stroke="#EF6820" stroke-width="1.33" stroke-linecap="round" stroke-linejoin="round"/></g>
152
202
  <defs><clipPath id="clip0_3533_7514"><rect width="12" height="12" fill="white"/></clipPath></defs>
153
203
  </svg>`,toolLibrary:`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -156,4 +206,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
156
206
  <path d="M6 5.5H3M4 7.5H3M7 3.5H3M9 3.4V8.6C9 9.44008 9 9.86012 8.83651 10.181C8.6927 10.4632 8.46323 10.6927 8.18099 10.8365C7.86012 11 7.44008 11 6.6 11H3.4C2.55992 11 2.13988 11 1.81901 10.8365C1.53677 10.6927 1.3073 10.4632 1.16349 10.181C1 9.86012 1 9.44008 1 8.6V3.4C1 2.55992 1 2.13988 1.16349 1.81901C1.3073 1.53677 1.53677 1.3073 1.81901 1.16349C2.13988 1 2.55992 1 3.4 1H6.6C7.44008 1 7.86012 1 8.18099 1.16349C8.46323 1.3073 8.6927 1.53677 8.83651 1.81901C9 2.13988 9 2.55992 9 3.4Z" stroke="#7A5AF8" stroke-width="1.33" stroke-linecap="round" stroke-linejoin="round"/>
157
207
  </svg>`,MCP:`<svg width="14" height="14" viewBox="0 0 22 23" fill="none" xmlns="http://www.w3.org/2000/svg">
158
208
  <path d="M1.8125 10.7455L10.647 1.91124C11.8411 0.717087 13.7773 0.717087 14.9714 1.91124C16.1655 3.10539 16.1655 5.0415 14.9714 6.23565M14.9714 6.23565L8.29911 12.9077M14.9714 6.23565C16.1655 5.0415 18.1018 5.0415 19.2958 6.23565C20.4899 7.4298 20.4899 9.36593 19.2958 10.56L11.7665 18.0893C11.3443 18.5115 11.3443 19.1961 11.7665 19.6182L13.164 21.0158M16.9479 8.58236L10.2756 15.2547C9.08153 16.4488 7.1453 16.4488 5.95123 15.2547C4.75716 14.0605 4.75716 12.1244 5.95123 10.9303L12.6234 4.25814" stroke="#101828" stroke-width="2.00016" stroke-linecap="round" stroke-linejoin="round"/>
159
- </svg>`},i6=(e,t)=>{const r=e.toLowerCase();if(r.includes("code"))return $t.inlineTool;if(r.includes("workflow")||r.includes("library"))return $t.toolLibrary;if(r.includes("knowledge"))return $t.KNOWLEDGE;if(r.includes("mcp"))return $t.MCP;if($t[e])return $t[e];const n=t.toLowerCase();return n.includes("code")||n.includes("inline")||n.includes("calculate")?$t.inlineTool:n.includes("library")||n.includes("workflow")?$t.toolLibrary:n.includes("knowledge")||n.includes("document")||n.includes("fetch")?$t.KNOWLEDGE:n.includes("mcp")||n.includes("protocol")?$t.MCP:$t.toolLibrary},cs=({icon:e,iconSource:t="agent",size:r="small",className:n="",name:i="Unknown",toolType:a})=>{const[o,s]=O.useState(!1),[l,u]=O.useState(!1),c=Nm(e),f=n6[r];if(c!=null&&c.name&&c.name!=="fallback"&&!o){const g=r6(c,t),h=()=>{s(!0)};return P.jsx("img",{src:g,alt:i,className:`${f} rounded-full object-cover ${n}`,onError:h})}if(o&&!l&&t==="agent"){const g=`${window.location.origin}/agenticai/assets/agent-avatars/agent1.svg`,h=()=>{u(!0)};return P.jsx("img",{src:g,alt:i,className:`${f} rounded-full object-cover ${n}`,onError:h})}const d=c||Dm(i,t);if(t==="workflowtool"){const g=a||d.type||"toolLibrary",h=i6(g,i);return P.jsx("div",{className:`${f} rounded-full flex items-center justify-center bg-gray-100 ${n}`,children:P.jsx("div",{dangerouslySetInnerHTML:{__html:h}})})}return P.jsx("img",{src:"https://api.dicebear.com/7.x/avataaars/svg?seed=default-agent&backgroundColor=b6e3f4,c0aede,d1d4f9&backgroundType=solid",alt:i,className:`${f} rounded-full object-cover ${n}`})},a6=({data:e,className:t})=>{const[r,n]=O.useState(5),i=()=>{n(o=>Math.min(o+10,e.length))},a=o=>o>=1e3?`${Math.floor(o/1e3)}k`:o.toString();return P.jsxs("div",{className:$e("w-full",t),children:[P.jsxs("div",{className:"grid grid-cols-4 gap-4 px-4 py-3 bg-gray-50 border-b border-gray-200 text-sm font-medium text-gray-700",children:[P.jsx("div",{className:"text-left",children:"Name"}),P.jsx("div",{className:"text-right",children:"Runs"}),P.jsx("div",{className:"text-right",children:"Response Time"}),P.jsx("div",{className:"text-right",children:"Tokens"})]}),P.jsx("div",{className:"divide-y divide-gray-100",children:e.slice(0,r).map((o,s)=>P.jsxs("div",{className:"grid grid-cols-4 gap-4 px-4 py-4 hover:bg-gray-50 transition-colors duration-150",children:[P.jsxs("div",{className:"flex items-center space-x-3",children:[P.jsx("div",{className:"flex-shrink-0",children:P.jsx(cs,{icon:o.icon,iconSource:"agent",size:"small",name:o.name||"Unknown Agent"})}),P.jsx("div",{className:"min-w-0 flex-1",children:P.jsx("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.name||"Unknown Agent"})})]}),P.jsx("div",{className:"text-right text-sm text-gray-900",children:o.runs?a(o.runs):"-"}),P.jsx("div",{className:"text-right text-sm text-gray-900",children:o.responseTime||"-"}),P.jsx("div",{className:"text-right text-sm text-gray-900",children:o.tokens?a(o.tokens):"-"})]},o.id||s))}),r<e.length&&P.jsx("div",{className:"flex justify-center py-6",children:P.jsx("button",{onClick:i,className:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 transition-colors duration-150",children:"Load 10 more"})})]})},o6=e=>{switch(e.toLowerCase()){case"code tool":case"inlinetool":return"bg-orange-100 text-orange-800 border-orange-200";case"workflow tool":case"toollibrary":return"bg-blue-100 text-blue-800 border-blue-200";case"mcp tool":case"mcp":return"bg-green-100 text-green-800 border-green-200";case"knowledge":case"knowledge tool":return"bg-purple-100 text-purple-800 border-purple-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}},s6=({data:e,className:t})=>{const[r,n]=O.useState(5),i=()=>{n(o=>Math.min(o+10,e.length))},a=o=>o>=1e3?`${Math.floor(o/1e3)}k`:o.toString();return P.jsxs("div",{className:$e("w-full",t),children:[P.jsxs("div",{className:"grid grid-cols-4 gap-4 px-4 py-3 bg-gray-50 border-b border-gray-200 text-sm font-medium text-gray-700",children:[P.jsx("div",{className:"text-left",children:"Name"}),P.jsx("div",{className:"text-left",children:"Type"}),P.jsx("div",{className:"text-right",children:"Runs"}),P.jsx("div",{className:"text-right",children:"Response Time"})]}),P.jsx("div",{className:"divide-y divide-gray-100",children:e.slice(0,r).map((o,s)=>P.jsxs("div",{className:"grid grid-cols-4 gap-4 px-4 py-4 hover:bg-gray-50 transition-colors duration-150",children:[P.jsxs("div",{className:"flex items-center space-x-3",children:[P.jsx("div",{className:"flex-shrink-0",children:P.jsx(cs,{icon:o.icon,iconSource:"workflowtool",size:"small",name:o.name||"Unknown Tool",toolType:o.type})}),P.jsx("div",{className:"min-w-0 flex-1",children:P.jsx("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.name||"Unknown Tool"})})]}),P.jsx("div",{className:"flex items-center",children:P.jsx("span",{className:$e("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium border",o6(o.type||"Default")),children:o.type||"Tool"})}),P.jsx("div",{className:"text-right text-sm text-gray-900",children:o.runs?a(o.runs):"-"}),P.jsx("div",{className:"text-right text-sm text-gray-900",children:o.responseTime||"-"})]},o.id||s))}),r<e.length&&P.jsx("div",{className:"flex justify-center py-6",children:P.jsx("button",{onClick:i,className:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 transition-colors duration-150",children:"Load 10 more"})})]})},l6=e=>{const t=e.toLowerCase();return t.includes("gpt")||t.includes("openai")?P.jsx("div",{className:"w-6 h-6 rounded-full bg-gray-900 flex items-center justify-center",children:P.jsx("span",{className:"text-white text-xs font-bold",children:"⚡"})}):t.includes("claude")||t.includes("anthropic")?P.jsx("div",{className:"w-6 h-6 rounded-full bg-orange-500 flex items-center justify-center",children:P.jsx("span",{className:"text-white text-xs font-bold",children:"A"})}):t.includes("gemini")||t.includes("google")?P.jsx("div",{className:"w-6 h-6 rounded-full bg-blue-500 flex items-center justify-center",children:P.jsx("span",{className:"text-white text-xs font-bold",children:"G"})}):t.includes("llama")||t.includes("meta")?P.jsx("div",{className:"w-6 h-6 rounded-full bg-blue-600 flex items-center justify-center",children:P.jsx("span",{className:"text-white text-xs font-bold",children:"M"})}):P.jsx("div",{className:"w-6 h-6 rounded-full bg-gray-500 flex items-center justify-center",children:P.jsx("span",{className:"text-white text-xs font-bold",children:"🤖"})})},u6=({data:e,className:t})=>{const[r,n]=O.useState(5),i=()=>{n(o=>Math.min(o+10,e.length))},a=o=>o>=1e3?`${Math.floor(o/1e3)}k`:o.toString();return P.jsxs("div",{className:$e("w-full",t),children:[P.jsxs("div",{className:"grid grid-cols-4 gap-4 px-4 py-3 bg-gray-50 border-b border-gray-200 text-sm font-medium text-gray-700",children:[P.jsx("div",{className:"text-left",children:"Model Name"}),P.jsx("div",{className:"text-right",children:"Runs"}),P.jsx("div",{className:"text-right",children:"Tokens"}),P.jsx("div",{className:"text-right",children:"Response Time"})]}),P.jsx("div",{className:"divide-y divide-gray-100",children:e.slice(0,r).map((o,s)=>P.jsxs("div",{className:"grid grid-cols-4 gap-4 px-4 py-4 hover:bg-gray-50 transition-colors duration-150",children:[P.jsxs("div",{className:"flex items-center space-x-3",children:[P.jsx("div",{className:"flex-shrink-0",children:l6(o.name||"Unknown")}),P.jsx("div",{className:"min-w-0 flex-1",children:P.jsx("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.name||"Unknown Model"})})]}),P.jsx("div",{className:"text-right text-sm text-gray-900",children:a(o.runs||0)}),P.jsx("div",{className:"text-right text-sm text-gray-900",children:a(o.tokens||0)}),P.jsx("div",{className:"text-right text-sm text-gray-900",children:o.responseTime})]},o.id||s))}),r<e.length&&P.jsx("div",{className:"flex justify-center py-6",children:P.jsx("button",{onClick:i,className:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 transition-colors duration-150",children:"Load 10 more"})})]})},Lm=O.forwardRef(({className:e,variant:t="default",size:r="md",children:n,...i},a)=>{const o="inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",s={default:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground"},l={sm:"h-9 px-3",md:"h-10 px-4 py-2",lg:"h-11 px-8"};return P.jsx("button",{className:$e(o,s[t],l[r],e),ref:a,...i,children:n})});Lm.displayName="Button";const c6=({options:e,value:t,defaultValue:r,placeholder:n="Select...",multiSelect:i=!1,searchable:a=!1,onChange:o,className:s,iconSource:l="app",maxItems:u=100,maxLabelLength:c=30})=>{const[f,d]=O.useState(!1),[p,g]=O.useState(""),[h,v]=O.useState(()=>{const _=t||r;return i?Array.isArray(_)?_:_?[_]:[]:_?[Array.isArray(_)?_[0]:_]:[]}),m=O.useRef(null);O.useEffect(()=>{const _=E=>{m.current&&!m.current.contains(E.target)&&d(!1)};return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[]);const w=(_,E=c)=>_.length<=E?_:_.substring(0,E)+"...",x=a?e.filter(_=>_.label.toLowerCase().includes(p.toLowerCase())):e,S=x.slice(0,u),y=x.length>u,b=_=>{let E;if(i){if(_==="all"){T();return}if(h.includes(_))E=h.filter(M=>M!==_),E=E.filter(M=>M!=="all");else{E=h.filter(L=>L!=="all"),E=[...E,_];const M=x.filter(L=>L.value!=="all").map(L=>L.value),D=E.filter(L=>L!=="all");D.length===M.length&&(E=["all",...D])}}else E=[_],d(!1);v(E);const k=i?E:E[0]||"";o==null||o(k)},A=()=>{if(!i)return{checked:!1,indeterminate:!1};const _=x.filter(k=>k.value!=="all").map(k=>k.value),E=h.filter(k=>k!=="all"&&_.includes(k));return h.includes("all")&&E.length===0?{checked:!1,indeterminate:!1}:E.length===0?{checked:!1,indeterminate:!1}:E.length===_.length?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}},T=()=>{if(!i)return;const _=A(),E=x.filter(k=>k.value!=="all").map(k=>k.value);if(_.checked)v(["all"]),o==null||o(["all"]);else{const k=["all",...E];v(k),o==null||o(k)}},j=()=>{v(["all"]),o==null||o(i?["all"]:"all")},N=()=>{if(!i){if(h.length===0)return n;const M=e.find(D=>D.value===h[0]);return(M==null?void 0:M.label)||n}const _=h.filter(M=>M!=="all"),E=h.includes("all");if(_.length===0)return n;if(_.length===1){const M=e.find(D=>D.value===_[0]);return(M==null?void 0:M.label)||n}const k=e.filter(M=>M.value!=="all").length;return _.length===k?"All selected":`${_.length} selected`};return P.jsxs("div",{className:$e("relative",s),ref:m,children:[P.jsxs("button",{type:"button",onClick:()=>d(!f),className:$e("w-full flex items-center justify-between px-3 py-2 text-left text-sm","border border-gray-300 rounded-md bg-white hover:bg-gray-50","focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500","transition-colors duration-150"),children:[P.jsx("span",{className:$e("truncate",h.length===0&&"text-gray-500"),children:N()}),P.jsx(Mc,{className:$e("w-4 h-4 text-gray-400 transition-transform duration-150",f&&"transform rotate-180")})]}),f&&P.jsxs("div",{className:"absolute z-50 min-w-[300px] w-max max-w-lg mt-1 bg-white border border-gray-200 rounded-md shadow-lg max-h-80 overflow-hidden",children:[a&&P.jsx("div",{className:"p-3 border-b border-gray-100",children:P.jsxs("div",{className:"relative",children:[P.jsx(Im,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"}),P.jsx("input",{type:"text",placeholder:`Search ${n.toLowerCase()}...`,value:p,onChange:_=>g(_.target.value),className:"w-full pl-10 pr-4 py-2 text-sm border border-gray-200 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"})]})}),i&&P.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-gray-100 bg-gray-50",children:[P.jsxs("button",{type:"button",onClick:T,className:"flex items-center text-sm font-medium text-gray-700 hover:text-gray-900",children:[P.jsx("div",{className:$e("flex items-center justify-center w-4 h-4 mr-2 border rounded transition-colors duration-150",(()=>{const _=A();return _.indeterminate||_.checked?"bg-blue-600 border-blue-600 text-white":"border-gray-300 bg-white"})()),children:(()=>{const _=A();return _.indeterminate?P.jsx("div",{className:"w-2 h-0.5 bg-white rounded"}):_.checked?P.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:P.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}):null})()}),"Select all"]}),P.jsx("button",{type:"button",onClick:j,className:"text-sm font-medium text-blue-600 hover:text-blue-800",children:"Clear"})]}),P.jsxs("div",{className:"max-h-60 overflow-y-auto",children:[S.length===0?P.jsx("div",{className:"px-3 py-4 text-sm text-gray-500 text-center",children:"No options found"}):S.map(_=>{let E;return _.value==="all"?null:(E=h.includes(_.value),P.jsxs("div",{className:"relative group",children:[P.jsxs("div",{onClick:()=>b(_.value),className:$e("flex items-center px-3 py-2 cursor-pointer hover:bg-gray-50","transition-colors duration-150",E&&"bg-blue-50"),children:[i?P.jsx("div",{className:$e("flex items-center justify-center w-4 h-4 mr-3 border rounded","transition-colors duration-150",E?"bg-blue-600 border-blue-600 text-white":"border-gray-300 bg-white"),children:E&&P.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:P.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}):P.jsx("div",{className:$e("w-4 h-4 mr-3 rounded-full border-2 transition-colors duration-150",E?"border-blue-600 bg-blue-600":"border-gray-300"),children:E&&P.jsx("div",{className:"w-full h-full rounded-full bg-white scale-50"})}),(_.avatar||_.icon)&&P.jsx("div",{className:"mr-3",children:P.jsx(cs,{icon:_.icon,iconSource:l,size:"xs",name:_.label,toolType:_.type})}),P.jsx("span",{className:$e("flex-1 text-sm whitespace-nowrap",E?"font-medium text-gray-900":"text-gray-700"),children:w(_.label)})]}),_.label.length>c&&P.jsx("div",{className:"absolute left-full top-1/2 transform -translate-y-1/2 ml-2 z-[80] opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none",children:P.jsxs("div",{className:"bg-gray-900 text-white text-xs rounded-md px-3 py-2 shadow-lg max-w-xs break-words whitespace-normal",children:[_.label,P.jsx("div",{className:"absolute left-0 top-1/2 transform -translate-x-full -translate-y-1/2 w-0 h-0 border-t-4 border-b-4 border-r-4 border-transparent border-r-gray-900"})]})})]},_.value))}),y&&P.jsxs("div",{className:"px-3 py-2 text-xs text-gray-500 bg-gray-50 border-t border-gray-100",children:[P.jsxs("div",{className:"text-center font-medium",children:["+",x.length-u," more items"]}),a&&P.jsx("div",{className:"text-center mt-1 text-gray-400",children:"Use search above to find specific items"})]})]})]})]})};class f6{constructor(t=""){Mt(this,"API_PATH","/tracing/api/trpc/metrics.getMetrics");Mt(this,"baseUrl","");Mt(this,"endpoints",{});this.baseUrl=t,this.initializeEndpoints()}setBaseUrl(t){this.baseUrl=t,this.initializeEndpoints()}getEndpoint(t){return this.endpoints[t]||{endpoint:"",method:"GET"}}getBaseUrl(){return this.baseUrl}initializeEndpoints(){const t=`${this.baseUrl}${this.API_PATH}`;this.endpoints["usage-analytics.cards"]={endpoint:t,method:"GET",baseEndpoint:this.API_PATH},this.endpoints["usage-analytics.sessions.timeseries"]={endpoint:t,method:"GET",baseEndpoint:this.API_PATH},this.endpoints["usage-analytics.messages.timeseries"]={endpoint:t,method:"GET",baseEndpoint:this.API_PATH},this.endpoints["usage-analytics.users.timeseries"]={endpoint:t,method:"GET",baseEndpoint:this.API_PATH},this.endpoints["usage-analytics.tokens.timeseries"]={endpoint:t,method:"GET",baseEndpoint:this.API_PATH},this.endpoints["runs.cards"]={endpoint:t,method:"GET",baseEndpoint:this.API_PATH},this.endpoints["runs.agent-runs.timeseries"]={endpoint:t,method:"GET",baseEndpoint:this.API_PATH},this.endpoints["runs.model-runs.timeseries"]={endpoint:t,method:"GET",baseEndpoint:this.API_PATH},this.endpoints["runs.tool-runs.timeseries"]={endpoint:t,method:"GET",baseEndpoint:this.API_PATH}}getAvailableEndpoints(){return Object.keys(this.endpoints)}hasEndpoint(t){return t in this.endpoints}}class Rm{constructor(t){Mt(this,"endpointsService");Mt(this,"defaultHeaders");Mt(this,"timeout");this.endpointsService=new f6(t.baseUrl),this.defaultHeaders={"Content-Type":"application/json",...t.defaultHeaders},this.timeout=t.timeout||3e4}updateConfig(t){t.baseUrl&&this.endpointsService.setBaseUrl(t.baseUrl),t.defaultHeaders&&(this.defaultHeaders={...this.defaultHeaders,...t.defaultHeaders}),t.timeout&&(this.timeout=t.timeout)}async invoke(t,r,n,i){const a=this.endpointsService.getEndpoint(t);if(!a.endpoint)throw new Error(`Endpoint not found for service: ${t}`);const o=this.prepareRequest(a,r,n);try{const s=new AbortController,l=setTimeout(()=>s.abort(),(i==null?void 0:i.timeout)||this.timeout),u=await fetch(o.url,{method:o.method,headers:o.headers,body:o.body,signal:(i==null?void 0:i.signal)||s.signal});if(clearTimeout(l),!u.ok)throw new Error(`HTTP Error: ${u.status} ${u.statusText}`);return await u.json()}catch(s){throw s instanceof Error?s.name==="AbortError"?new Error("Request timeout"):s:new Error("Unknown error occurred during API call")}}prepareRequest(t,r,n){const i={...this.defaultHeaders,...n},a={};Object.entries(i).forEach(([l,u])=>{u!==void 0&&(a[l]=u)});let o=t.endpoint,s;if(t.method==="GET"&&r){const l=this.buildQueryParams(r);o+=`?${l}`}else r&&(s=JSON.stringify(r));return{url:o,method:t.method,headers:a,body:s}}buildQueryParams(t){const r={json:t},n=new URLSearchParams;return n.append("input",JSON.stringify(r)),n.append("rnd",Math.random().toString(36).substring(7)),n.toString()}getBaseUrl(){return this.endpointsService.getBaseUrl()}hasEndpoint(t){return this.endpointsService.hasEndpoint(t)}getAvailableEndpoints(){return this.endpointsService.getAvailableEndpoints()}}class Gn{constructor(t){Mt(this,"apiInvoker");Mt(this,"projectId");Mt(this,"environment");Mt(this,"defaultTimeRange");const r={baseUrl:t.baseUrl,defaultHeaders:t.headers,timeout:3e4};this.apiInvoker=new Rm(r),this.projectId=t.projectId,this.environment=t.environment,this.defaultTimeRange=t.defaultTimeRange}updateConfig(t){(t.baseUrl||t.headers)&&this.apiInvoker.updateConfig({baseUrl:t.baseUrl,defaultHeaders:t.headers}),t.projectId&&(this.projectId=t.projectId),t.environment&&(this.environment=t.environment),t.defaultTimeRange&&(this.defaultTimeRange=t.defaultTimeRange,console.log("🔄 API Service: Updated defaultTimeRange:",this.defaultTimeRange))}getDefaultTimeRange(){return this.defaultTimeRange||Gn.getDateRange(30)}async fetchEnvironments(){try{const r=`${this.apiInvoker.getBaseUrl()}/aaa/api/v1/apps/${this.projectId}/environments?rnd=${Math.random().toString(36).substring(2,8)}`;console.log("🌍 Fetching environments for project:",this.projectId),console.log("🔗 Environment API URL:",r);const n=await fetch(r,{method:"GET",headers:{"Content-Type":"application/json",...this.apiInvoker.defaultHeaders}});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const i=await n.json();return console.log("✅ Environments fetched successfully:",i.map(a=>({name:a.envName,enabled:a.isEnabled,status:a.status}))),i}catch(t){throw console.error("❌ Error fetching environments:",t),t}}async fetchUsageAnalyticsCards(t,r,n,i=[]){const a=n||Gn.getTimeDimension(t,r);console.log("📊 Fetching usage analytics cards:",{dateRange:{fromTimestamp:t,toTimestamp:r},providedTimeDimension:n,resolvedTimeDimension:a});const o={projectId:this.projectId,type:"cards",category:"usage-analytics",envId:this.environment,fromTimestamp:t,toTimestamp:r,filter:i,includeTrends:!0,timeDimension:a};return(await this.apiInvoker.invoke("usage-analytics.cards",o)).result.data.json}async fetchRunsCards(t,r,n,i=[]){const a=n||Gn.getTimeDimension(t,r);console.log("📊 Fetching runs cards:",{dateRange:{fromTimestamp:t,toTimestamp:r},providedTimeDimension:n,resolvedTimeDimension:a});const o={projectId:this.projectId,type:"cards",category:"runs",envId:this.environment,fromTimestamp:t,toTimestamp:r,filter:i,includeTrends:!0,timeDimension:a};return(await this.apiInvoker.invoke("runs.cards",o)).result.data.json}async fetchTimeSeriesData(t,r,n,i,a,o=[]){const s=a||Gn.getTimeDimension(n,i);console.log("📊 Fetching time series data:",{metric:t,category:r,dateRange:{fromTimestamp:n,toTimestamp:i},providedTimeDimension:a,resolvedTimeDimension:s});const l=`${r}.${t}.timeseries`,u={projectId:this.projectId,type:"time-series",category:r,envId:this.environment,fromTimestamp:n,toTimestamp:i,filter:o,metric:t,timeDimension:s};return(await this.apiInvoker.invoke(l,u)).result.data.json}transformUsageAnalyticsCards(t){const r=t.data.trends;console.log("Transforming usage analytics cards with trends:",r);const n=i=>i>0?"increase":"decrease";return[{title:"Users",value:t.data.users,metricType:"users",icon:"users",highlighted:!0,change:r!=null&&r.users?{value:Math.abs(r.users.changePercent),type:n(r.users.changePercent)}:void 0},{title:"Sessions",value:t.data.sessions,metricType:"sessions",icon:"activity",highlighted:!1,change:r!=null&&r.sessions?{value:Math.abs(r.sessions.changePercent),type:n(r.sessions.changePercent)}:void 0},{title:"Messages",value:t.data.messages.total,metricType:"messages",icon:"message-circle",info:`Input: ${t.data.messages.input}, Output: ${t.data.messages.output}`,highlighted:!1,change:r!=null&&r.messages?{value:Math.abs(r.messages.changePercent.total),type:n(r.messages.changePercent.total)}:void 0},{title:"Tokens",value:t.data.tokens.total,metricType:"tokens",icon:"coins",info:`Input: ${t.data.tokens.input}, Output: ${t.data.tokens.output}`,highlighted:!1,change:r!=null&&r.tokens?{value:Math.abs(r.tokens.changePercent.total),type:n(r.tokens.changePercent.total)}:void 0}]}transformRunsCards(t){const r=t.data.trends;console.log("Transforming runs cards with trends:",r);const n=i=>i>0?"increase":"decrease";return[{title:"Agent Runs",value:t.data.agentRuns,metricType:"agentRuns",icon:"bot",highlighted:!0,change:r!=null&&r.agentRuns?{value:Math.abs(r.agentRuns.changePercent),type:n(r.agentRuns.changePercent)}:void 0},{title:"Tool Runs",value:t.data.toolRuns.total,metricType:"toolRuns",icon:"wrench",info:`Code: ${t.data.toolRuns.codeTools}, Library: ${t.data.toolRuns.libraryTools}, Knowledge: ${t.data.toolRuns.knowledgeTools}, MCP: ${t.data.toolRuns.mcpTools}`,highlighted:!1,change:r!=null&&r.toolRuns?{value:Math.abs(r.toolRuns.changePercent.total),type:n(r.toolRuns.changePercent.total)}:void 0},{title:"Model Runs",value:t.data.modelRuns,metricType:"modelRuns",icon:"cpu",highlighted:!1,change:r!=null&&r.modelRuns?{value:Math.abs(r.modelRuns.changePercent),type:n(r.modelRuns.changePercent)}:void 0}]}transformTimeSeriesDataForMetric(t,r){var i;if(console.log("=== METRIC-SPECIFIC TRANSFORM DEBUG ==="),console.log("Raw TimeSeriesResponse:",JSON.stringify(t,null,2)),console.log("Metric type:",r),!t||!t.data||!Array.isArray(t.data))return console.error("Invalid time series data structure:",t),[];const n=t.data.map((a,o)=>{console.log(`Processing point ${o}:`,a);const s=new Date(a.timestamp),l=s.toISOString().split("T")[0],u=s.toLocaleDateString("en-US",{month:"short",day:"numeric"}),c={date:l,timestamp:u,formattedDate:u,count:a.count||0,value:a.count||0,input_tokens:a.input_tokens||0,output_tokens:a.output_tokens||0,total_tokens:(a.input_tokens||0)+(a.output_tokens||0),inputTokens:a.input_tokens||0,outputTokens:a.output_tokens||0,totalTokens:(a.input_tokens||0)+(a.output_tokens||0),listView:a.listView||[],index:o};switch(r){case"users":c.users=a.count||0;break;case"sessions":c.sessions=a.count||0;break;case"messages":c.messages=a.count||0;break;case"tokens":c.tokens=a.count||0,a.input_tokens||a.output_tokens?c.totalTokens=(a.input_tokens||0)+(a.output_tokens||0):c.totalTokens=a.count||0;break;case"agentRuns":c.agentRuns=a.count||0;break;case"toolRuns":c.toolRuns=a.count||0;break;case"modelRuns":c.modelRuns=a.count||0;break;default:c.users=a.count||0,c.sessions=a.count||0,c.messages=a.count||0,c.tokens=a.count||0,c.agentRuns=a.count||0,c.toolRuns=a.count||0,c.modelRuns=a.count||0}return console.log(`Transformed point ${o} for metric ${r}:`,c),c});return console.log("Final transformed data array:",JSON.stringify(n,null,2)),console.log("Sample transformed point for chart:",n[0]),console.log("Populated metric property:",r,"=",(i=n[0])==null?void 0:i[r||"count"]),console.log("=== END METRIC-SPECIFIC TRANSFORM DEBUG ==="),n}transformTimeSeriesData(t){return this.transformTimeSeriesDataForMetric(t)}transformAgentsListViewToTable(t){return Array.isArray(t)?t.map((r,n)=>{var o,s;let i="",a=null;if(r.icon)try{if(a=typeof r.icon=="string"?JSON.parse(r.icon):r.icon,a.name){const l=((o=r.agentName)==null?void 0:o.replace(/\s+/g,""))||`agent${n}`,u=((s=a.color)==null?void 0:s.replace("#",""))||"b6e3f4";i=`https://api.dicebear.com/7.x/avataaars/svg?seed=${l}&backgroundColor=${u}&backgroundType=solid`}}catch{console.warn("Failed to parse icon data:",r.icon)}return{id:`agent-${n+1}`,name:r.agentName||`Agent ${n+1}`,runs:r.count||0,responseTime:r.avgResponseTime?`${Math.round(r.avgResponseTime)}s`:"0s",tokens:r.tokens||Math.floor((r.count||0)*150),successRate:r.successRate?`${Math.round(r.successRate)}%`:"95%",lastRun:r.lastRun||new Date(Date.now()-Math.random()*7*24*60*60*1e3).toLocaleDateString(),avatar:i||`https://api.dicebear.com/7.x/avataaars/svg?seed=agent${n}&backgroundColor=b6e3f4,c0aede,d1d4f9&backgroundType=solid`,icon:r.icon||void 0}}):(console.warn("Invalid listView data for agents:",t),[])}transformToolsListViewToTable(t){if(!Array.isArray(t))return console.warn("Invalid listView data for tools:",t),[];const r=n=>{const i=n.toLowerCase();return i.includes("calculate")||i.includes("compute")?"Code Tool":i.includes("workflow")||i.includes("process")?"Workflow Tool":i.includes("mcp")||i.includes("protocol")?"MCP Tool":i.includes("knowledge")||i.includes("search")||i.includes("fetch")?"Knowledge":"Code Tool"};return t.map((n,i)=>({id:`tool-${i+1}`,name:n.toolName||`Tool ${i+1}`,type:n.type||r(n.toolName||""),runs:n.count||0,responseTime:n.avgResponseTime?`${Math.round(n.avgResponseTime)}s`:"0s",tokens:n.tokens||Math.floor((n.count||0)*50),successRate:n.successRate?`${Math.round(n.successRate)}%`:"92%",lastRun:n.lastRun||new Date(Date.now()-Math.random()*7*24*60*60*1e3).toLocaleDateString(),icon:n.icon||void 0}))}transformModelsListViewToTable(t){if(!Array.isArray(t))return console.warn("Invalid listView data for models:",t),[];const r=n=>{const i=n.toLowerCase();return i.includes("gpt")||i.includes("openai")?"⚡":i.includes("claude")||i.includes("anthropic")?"A":i.includes("gemini")||i.includes("google")?"G":i.includes("llama")||i.includes("meta")?"M":"🤖"};return t.map((n,i)=>({id:`model-${i+1}`,name:n.modelName||`Model ${i+1}`,runs:n.count||0,responseTime:n.avgResponseTime?`${Math.round(n.avgResponseTime)}s`:"0s",tokens:n.tokens||Math.floor((n.count||0)*300),successRate:n.successRate?`${Math.round(n.successRate)}%`:"98%",lastRun:n.lastRun||new Date(Date.now()-Math.random()*7*24*60*60*1e3).toLocaleDateString(),icon:r(n.modelName||"")}))}extractAgentControlOptions(t){if(!Array.isArray(t))return[{label:"All Agents",value:"all"}];const r=[{label:"All Agents",value:"all"}];return t.forEach(n=>{var i;if(n.agentName){let a="";try{if(n.icon){const o=typeof n.icon=="string"?JSON.parse(n.icon):n.icon;if(o.name){const s=n.agentName.replace(/\s+/g,""),l=((i=o.color)==null?void 0:i.replace("#",""))||"b6e3f4";a=`https://api.dicebear.com/7.x/avataaars/svg?seed=${s}&backgroundColor=${l}&backgroundType=solid`}}}catch{console.warn("Failed to parse icon data for control:",n.icon)}r.push({label:n.agentName,value:n.agentName.replace(/\s+/g,"").toLowerCase(),avatar:a||`https://api.dicebear.com/7.x/avataaars/svg?seed=${n.agentName.replace(/\s+/g,"")}&backgroundColor=b6e3f4,c0aede,d1d4f9&backgroundType=solid`})}}),r}extractToolControlOptions(t){if(!Array.isArray(t))return[{label:"All Tools",value:"all"}];const r=[{label:"All Tools",value:"all"}];return t.forEach(n=>{if(n.toolName){const i=a=>{const o=a.toLowerCase();return o.includes("calculate")||o.includes("compute")?"Code Tool":o.includes("workflow")||o.includes("process")?"Workflow Tool":o.includes("mcp")||o.includes("protocol")?"MCP Tool":o.includes("knowledge")||o.includes("search")||o.includes("fetch")?"Knowledge":"Code Tool"};r.push({label:n.toolName,value:n.toolName.replace(/[-]/g,""),icon:n.icon||void 0,type:n.type||i(n.toolName)})}}),r}extractModelControlOptions(t){if(!Array.isArray(t))return[{label:"All Models",value:"all"}];const r=[{label:"All Models",value:"all"}],n=i=>{const a=i.toLowerCase();return a.includes("gpt")||a.includes("openai")?"⚡":a.includes("claude")||a.includes("anthropic")?"A":a.includes("gemini")||a.includes("google")?"G":a.includes("llama")||a.includes("meta")?"M":"🤖"};return t.forEach(i=>{i.modelName&&r.push({label:i.modelName,value:i.modelName.replace(/[-\.]/g,""),icon:n(i.modelName)})}),r}async fetchTimeSeriesDataWithTableData(t,r,n,i,a,o=[]){const s=await this.fetchTimeSeriesData(t,r,n,i,a,o);let l=[];s.data.forEach(d=>{d.listView&&Array.isArray(d.listView)&&(l=[...l,...d.listView])});const u=this.aggregateListViewItems(l);let c=[],f=[];return t==="agent-runs"?(c=this.transformAgentsListViewToTable(u),f=this.extractAgentControlOptions(u)):t==="tool-runs"?(c=this.transformToolsListViewToTable(u),f=this.extractToolControlOptions(u)):t==="model-runs"&&(c=this.transformModelsListViewToTable(u),f=this.extractModelControlOptions(u)),{chartData:this.transformTimeSeriesDataForMetric(s,t.replace("-","")),tableData:c,controlOptions:f}}aggregateListViewItems(t){const r=new Map;return t.forEach(n=>{const i=n.agentName||n.toolName||n.modelName||"unknown";if(r.has(i)){const a=r.get(i);a.count=(a.count||0)+(n.count||0),a.avgResponseTime=a.avgResponseTime&&n.avgResponseTime?(a.avgResponseTime+n.avgResponseTime)/2:a.avgResponseTime||n.avgResponseTime,a.tokens=(a.tokens||0)+(n.tokens||0)}else r.set(i,{...n})}),Array.from(r.values())}async fetchEnhancedMetricsData(t,r,n,i=[]){try{const[a,o,s]=await Promise.all([this.fetchTimeSeriesDataWithTableData("agent-runs","runs",t,r,n,i),this.fetchTimeSeriesDataWithTableData("tool-runs","runs",t,r,n,i),this.fetchTimeSeriesDataWithTableData("model-runs","runs",t,r,n,i)]);return{agents:a,tools:o,models:s}}catch(a){throw console.error("Error fetching enhanced metrics data:",a),a}}async transformRunsCardsWithEnhancedData(t,r,n,i,a=[]){const o=t.data.trends,s=p=>p>0?"increase":"decrease",[l,u,c,f]=await Promise.all([this.fetchTimeSeriesDataWithTableData("agent-runs","runs",r,n,i,a),this.fetchTimeSeriesDataWithTableData("tool-runs","runs",r,n,i,a),this.fetchTimeSeriesDataWithTableData("model-runs","runs",r,n,i,a),this.fetchTimeSeriesData("tool-runs","runs",r,n,i,a)]),d=this.transformTimeSeriesDataForToolRuns(f);return[{title:"Agent Runs",value:t.data.agentRuns,metricType:"agentRuns",icon:"bot",highlighted:!0,info:"Number of agent executions",change:o!=null&&o.agentRuns?{value:Math.abs(o.agentRuns.changePercent),type:s(o.agentRuns.changePercent)}:void 0,view:{type:"chart",chart:{type:"line",title:"Agent Runs",data:l.chartData,dataKey:"agentRuns",color:"#0BA5EC",yAxisLabel:"Number of Agent Runs",height:300,showGrid:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:r.split("T")[0],end:n.split("T")[0]}},table:{title:"Agent Runs",data:l.tableData,columns:[{key:"name",title:"Name",width:200,align:"left"},{key:"runs",title:"Runs",width:100,align:"right",formatter:p=>`${Math.floor(p/1e3)}k`},{key:"responseTime",title:"Response Time",width:120,align:"right"},{key:"tokens",title:"Tokens",width:100,align:"right",formatter:p=>`${Math.floor(p/1e3)}k`}]}},controls:{dropdown:{label:"All Agents",options:l.controlOptions,defaultValue:["all"],multiSelect:!0,searchable:!0},toggle:{chartView:!0,tableView:!0}}},{title:"Tool Runs",value:t.data.toolRuns.total,metricType:"toolRuns",icon:"wrench",info:`Code: ${t.data.toolRuns.codeTools}, Library: ${t.data.toolRuns.libraryTools}, Knowledge: ${t.data.toolRuns.knowledgeTools}, MCP: ${t.data.toolRuns.mcpTools}`,highlighted:!1,change:o!=null&&o.toolRuns?{value:Math.abs(o.toolRuns.changePercent.total),type:s(o.toolRuns.changePercent.total)}:void 0,view:{type:"chart",chart:{type:"line",title:"Tool Runs",data:d,yAxisLabel:"Number of Tool Runs",lines:[{dataKey:"toolRuns",color:"#667085",label:"Tool Runs"},{dataKey:"codeTools",color:"#F38744",label:"Code Tools"},{dataKey:"workflowTools",color:"#2970FF",label:"Workflow Tools"},{dataKey:"knowledgeTools",color:"#7A5AF8",label:"Knowledge"},{dataKey:"mcpTools",color:"#47CD89",label:"MCP Tools"}],height:300,showGrid:!0,showLegend:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:r.split("T")[0],end:n.split("T")[0]}},table:{title:"Tool Runs",data:u.tableData,columns:[{key:"name",title:"Name",width:200,align:"left"},{key:"type",title:"Type",width:150,align:"left"},{key:"runs",title:"Runs",width:100,align:"right",formatter:p=>`${Math.floor(p/1e3)}k`},{key:"responseTime",title:"Response Time",width:120,align:"right"}]}},controls:{dropdown:{label:"All Tools",options:u.controlOptions,defaultValue:["all"],multiSelect:!0,searchable:!0},toggle:{chartView:!0,tableView:!0}}},{title:"Model Runs",value:t.data.modelRuns,metricType:"modelRuns",icon:"cpu",highlighted:!1,info:"Number of model inferences",change:o!=null&&o.modelRuns?{value:Math.abs(o.modelRuns.changePercent),type:s(o.modelRuns.changePercent)}:void 0,view:{type:"chart",chart:{type:"line",title:"Model Runs",data:c.chartData,dataKey:"modelRuns",color:"#47CD89",yAxisLabel:"Number of Model Runs",height:300,showGrid:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:r.split("T")[0],end:n.split("T")[0]}},table:{title:"Model Runs",data:c.tableData,columns:[{key:"name",title:"Model Name",width:200,align:"left"},{key:"runs",title:"Runs",width:100,align:"right",formatter:p=>`${Math.floor(p/1e3)}k`},{key:"tokens",title:"Tokens",width:120,align:"right",formatter:p=>`${Math.floor(p/1e3)}k`},{key:"responseTime",title:"Response Time",width:120,align:"right"}]}},controls:{dropdown:{label:"All Models",options:c.controlOptions,defaultValue:["all"],multiSelect:!0,searchable:!0},toggle:{chartView:!0,tableView:!0}}}]}async transformUsageAnalyticsCardsWithEnhancedData(t,r,n,i,a=[]){const o=t.data.trends,s=d=>d>0?"increase":"decrease",[l,u,c,f]=await Promise.all([this.fetchTimeSeriesData("users","usage-analytics",r,n,i,a),this.fetchTimeSeriesData("sessions","usage-analytics",r,n,i,a),this.fetchTimeSeriesData("messages","usage-analytics",r,n,i,a),this.fetchTimeSeriesData("tokens","usage-analytics",r,n,i,a)]);return[{title:"Users",value:t.data.users,metricType:"users",icon:"users",highlighted:!0,info:"Total number of unique users",change:o!=null&&o.users?{value:Math.abs(o.users.changePercent),type:s(o.users.changePercent)}:void 0,view:{type:"chart",chart:{type:"line",title:"Total Users",data:this.transformTimeSeriesDataForMetric(l,"users"),dataKey:"users",color:"#4E5BA6",yAxisLabel:"Number of Users",height:300,showGrid:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:r.split("T")[0],end:n.split("T")[0]}}}},{title:"Sessions",value:t.data.sessions,metricType:"sessions",icon:"activity",highlighted:!1,info:"Total number of user sessions",change:o!=null&&o.sessions?{value:Math.abs(o.sessions.changePercent),type:s(o.sessions.changePercent)}:void 0,view:{type:"chart",chart:{type:"line",title:"Total Sessions",data:this.transformTimeSeriesDataForMetric(u,"sessions"),dataKey:"sessions",color:"#0BA5EC",yAxisLabel:"Number of Sessions",height:300,showGrid:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:r.split("T")[0],end:n.split("T")[0]}}}},{title:"Messages",value:t.data.messages.total,metricType:"messages",icon:"message-circle",info:`Input: ${t.data.messages.input}, Output: ${t.data.messages.output}`,highlighted:!1,change:o!=null&&o.messages?{value:Math.abs(o.messages.changePercent.total),type:s(o.messages.changePercent.total)}:void 0,view:{type:"chart",chart:{type:"line",title:"Total Messages",data:this.transformTimeSeriesDataForMetric(c,"messages"),dataKey:"messages",color:"#E478FA",yAxisLabel:"Number of Messages",height:300,showGrid:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:r.split("T")[0],end:n.split("T")[0]}}}},{title:"Tokens",value:t.data.tokens.total,metricType:"tokens",icon:"coins",info:`Input: ${t.data.tokens.input}, Output: ${t.data.tokens.output}`,highlighted:!1,change:o!=null&&o.tokens?{value:Math.abs(o.tokens.changePercent.total),type:s(o.tokens.changePercent.total)}:void 0,view:{type:"chart",chart:{type:"line",title:"Token Usage Breakdown",data:this.transformTimeSeriesDataForMetric(f,"tokens"),yAxisLabel:"Number of Tokens",lines:[{dataKey:"totalTokens",color:"#FF692E",label:"Total Tokens"},{dataKey:"inputTokens",color:"#5925DC",label:"Input Tokens"},{dataKey:"outputTokens",color:"#E478FA",label:"Output Tokens"}],height:300,showGrid:!0,showLegend:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:r.split("T")[0],end:n.split("T")[0]}}}}]}transformTimeSeriesDataForToolRuns(t){if(console.log("=== TOOL RUNS SPECIFIC TRANSFORM DEBUG ==="),console.log("Raw TimeSeriesResponse for tool runs:",JSON.stringify(t,null,2)),!t||!t.data||!Array.isArray(t.data))return console.error("Invalid time series data structure:",t),[];const r=t.data.map((n,i)=>{console.log(`Processing point ${i}:`,n);const a=new Date(n.timestamp),o=a.toISOString().split("T")[0],s=a.toLocaleDateString("en-US",{month:"short",day:"numeric"}),l=n.count||0;let u=0,c=0,f=0,d=0;if(n.listView&&Array.isArray(n.listView)){n.listView.forEach(h=>{const v=h.count||0,m=(h.toolType||"").toLowerCase(),w=(h.toolName||"").toLowerCase();console.log("Processing listView item:",{toolType:m,toolName:w,count:v}),m==="tool"||m==="code"||m==="codetool"?u+=v:m==="workflow"||m==="workflowtool"||w.includes("workflow")?c+=v:m==="knowledge"||m==="knowledgetool"||w.includes("knowledge")||w.includes("search")||w.includes("fetch")?f+=v:m==="mcp"||m==="mcptool"||w.includes("mcp")?d+=v:(console.log(`Unknown tool type '${m}' for tool '${w}', defaulting to code tools`),u+=v)}),console.log(`Calculated breakdown for point ${i}:`,{codeTools:u,workflowTools:c,knowledgeTools:f,mcpTools:d,total:u+c+f+d,expectedTotal:l});const g=u+c+f+d;if(Math.abs(g-l)>1){console.warn(`Breakdown total (${g}) doesn't match expected total (${l}) for point ${i}`);const h=l-g;u+=h,console.log(`Adjusted codeTools by ${h} to balance total`)}}else console.log(`No listView data for point ${i}, assigning all ${l} to codeTools`),u=l;const p={date:o,timestamp:s,formattedDate:s,toolRuns:l,value:l,count:l,codeTools:u,workflowTools:c,knowledgeTools:f,mcpTools:d,input_tokens:n.input_tokens||0,output_tokens:n.output_tokens||0,total_tokens:(n.input_tokens||0)+(n.output_tokens||0),inputTokens:n.input_tokens||0,outputTokens:n.output_tokens||0,totalTokens:(n.input_tokens||0)+(n.output_tokens||0),listView:n.listView||[],index:i};return console.log(`Transformed tool runs point ${i}:`,p),p});return console.log("Final tool runs transformed data:",JSON.stringify(r,null,2)),console.log("=== END TOOL RUNS SPECIFIC TRANSFORM DEBUG ==="),r}async fetchAllCardsData(t,r,n=[]){try{const[i,a]=await Promise.all([this.fetchUsageAnalyticsCards(t,r,void 0,n),this.fetchRunsCards(t,r,void 0,n)]);return{usageAnalytics:this.transformUsageAnalyticsCards(i),runs:this.transformRunsCards(a)}}catch(i){throw console.error("Error fetching cards data:",i),i}}async fetchAllCardsDataWithEnhancedViews(t,r,n,i=[]){try{const[a,o]=await Promise.all([this.fetchUsageAnalyticsCards(t,r,n,i),this.fetchRunsCards(t,r,n,i)]),[s,l]=await Promise.all([this.transformUsageAnalyticsCardsWithEnhancedData(a,t,r,n,i),this.transformRunsCardsWithEnhancedData(o,t,r,n,i)]);return{usageAnalytics:s,runs:l}}catch(a){throw console.error("Error fetching enhanced cards data:",a),a}}async fetchDefaultTimeSeriesData(t,r,n,i=[]){try{const[a,o]=await Promise.all([this.fetchTimeSeriesData("sessions","usage-analytics",t,r,n,i),this.fetchTimeSeriesData("agent-runs","runs",t,r,n,i)]);return{sessions:this.transformTimeSeriesData(a),agentRuns:this.transformTimeSeriesData(o)}}catch(a){throw console.error("Error fetching default time series data:",a),a}}static getDateRange(t=30){const r=new Date,n=new Date;return n.setDate(r.getDate()-t),{fromTimestamp:n.toISOString(),toTimestamp:r.toISOString()}}static getTimeDimension(t,r){const n=new Date(t),i=new Date(r),a=new Date(n.getFullYear(),n.getMonth(),n.getDate()),o=new Date(i.getFullYear(),i.getMonth(),i.getDate()),s=o.getTime()-a.getTime(),l=s/(1e3*60*60*24),u=a.toISOString().split("T")[0],c=o.toISOString().split("T")[0],f=u===c,d=new Date(n.getFullYear(),n.getMonth(),n.getDate()),p=f&&Math.abs(n.getTime()-d.getTime())<1e3,g=Math.abs(i.getTime()-n.getTime()),h=g<60*1e3;return console.log("🕐 TimeDimension calculation:",{fromTimestamp:t,toTimestamp:r,fromDateStr:u,toDateStr:c,diffInMs:s,diffInDays:l,isSameCalendarDay:f,isTodayPattern:p,timeDiffInMs:g,isVeryClose:h,fromStartOfDay:d.toISOString(),recommended:f||p||h||l<=1?"hour":l<=31?"day":l<=90?"week":"month"}),f||p||h||l<=1?"hour":"day"}getAvailableMetrics(){return{"usage-analytics":["sessions","messages","users","tokens"],runs:["agent-runs","model-runs","tool-runs"]}}}ke.AgentListView=a6,ke.AnalyticsChart=Zz,ke.AnalyticsTable=e6,ke.ApiInvokerService=Rm,ke.Button=Lm,ke.DashboardApiService=Gn,ke.IconPreview=cs,ke.ModelListView=u6,ke.MultiSelect=c6,ke.ToolListView=s6,ke.createFallbackIcon=Dm,ke.parseIconData=Nm,Object.defineProperty(ke,Symbol.toStringTag,{value:"Module"})});
209
+ </svg>`},eW=(e,t)=>{const r=e.toLowerCase();if(r.includes("code"))return Lt.inlineTool;if(r.includes("workflow")||r.includes("library"))return Lt.toolLibrary;if(r.includes("knowledge"))return Lt.KNOWLEDGE;if(r.includes("mcp"))return Lt.MCP;if(Lt[e])return Lt[e];const n=t.toLowerCase();return n.includes("code")||n.includes("inline")||n.includes("calculate")?Lt.inlineTool:n.includes("library")||n.includes("workflow")?Lt.toolLibrary:n.includes("knowledge")||n.includes("document")||n.includes("fetch")?Lt.KNOWLEDGE:n.includes("mcp")||n.includes("protocol")?Lt.MCP:Lt.toolLibrary},$s=({icon:e,iconSource:t="agent",size:r="small",className:n="",name:a="Unknown",toolType:i})=>{const[o,s]=S.useState(!1),[l,u]=S.useState(!1),c=fb(e),f=Q8[r];if(c!=null&&c.name&&c.name!=="fallback"&&!o){const y=Z8(c,t),p=()=>{s(!0)};return b.jsx("img",{src:y,alt:a,className:`${f} rounded-full object-cover ${n}`,onError:p})}if(o&&!l&&t==="agent"){const y=`${window.location.origin}/agenticai/assets/agent-avatars/agent1.svg`,p=()=>{u(!0)};return b.jsx("img",{src:y,alt:a,className:`${f} rounded-full object-cover ${n}`,onError:p})}const d=c||db(a,t);if(t==="workflowtool"){const y=i||d.type||"toolLibrary",p=eW(y,a);return b.jsx("div",{className:`${f} rounded-full flex items-center justify-center bg-gray-100 ${n}`,children:b.jsx("div",{dangerouslySetInnerHTML:{__html:p}})})}return b.jsx("img",{src:"https://api.dicebear.com/7.x/avataaars/svg?seed=default-agent&backgroundColor=b6e3f4,c0aede,d1d4f9&backgroundType=solid",alt:a,className:`${f} rounded-full object-cover ${n}`})},hb=({data:e,className:t})=>{const[r,n]=S.useState(5),a=()=>{n(o=>Math.min(o+10,e.length))},i=o=>o>=1e3?`${Math.floor(o/1e3)}k`:o.toString();return b.jsxs("div",{className:ce("w-full",t),children:[b.jsxs("div",{className:"grid grid-cols-4 gap-4 px-4 py-3 bg-gray-50 border-b border-gray-200 text-sm font-medium text-gray-700",children:[b.jsx("div",{className:"text-left",children:"Name"}),b.jsx("div",{className:"text-right",children:"Runs"}),b.jsx("div",{className:"text-right",children:"Response Time"}),b.jsx("div",{className:"text-right",children:"Tokens"})]}),b.jsx("div",{className:"divide-y divide-gray-100",children:e.slice(0,r).map((o,s)=>b.jsxs("div",{className:"grid grid-cols-4 gap-4 px-4 py-4 hover:bg-gray-50 transition-colors duration-150",children:[b.jsxs("div",{className:"flex items-center space-x-3",children:[b.jsx("div",{className:"flex-shrink-0",children:b.jsx($s,{icon:o.icon,iconSource:"agent",size:"small",name:o.name||"Unknown Agent"})}),b.jsx("div",{className:"min-w-0 flex-1",children:b.jsx("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.name||"Unknown Agent"})})]}),b.jsx("div",{className:"text-right text-sm text-gray-900",children:o.runs?i(o.runs):"-"}),b.jsx("div",{className:"text-right text-sm text-gray-900",children:o.responseTime||"-"}),b.jsx("div",{className:"text-right text-sm text-gray-900",children:o.tokens?i(o.tokens):"-"})]},o.id||s))}),r<e.length&&b.jsx("div",{className:"flex justify-center py-6",children:b.jsx("button",{onClick:a,className:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 transition-colors duration-150",children:"Load 10 more"})})]})},tW=e=>{switch(e.toLowerCase()){case"code tool":case"inlinetool":return"bg-orange-100 text-orange-800 border-orange-200";case"workflow tool":case"toollibrary":return"bg-blue-100 text-blue-800 border-blue-200";case"mcp tool":case"mcp":return"bg-green-100 text-green-800 border-green-200";case"knowledge":case"knowledge tool":return"bg-purple-100 text-purple-800 border-purple-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}},pb=({data:e,className:t})=>{const[r,n]=S.useState(5),a=()=>{n(o=>Math.min(o+10,e.length))},i=o=>o>=1e3?`${Math.floor(o/1e3)}k`:o.toString();return b.jsxs("div",{className:ce("w-full",t),children:[b.jsxs("div",{className:"grid grid-cols-4 gap-4 px-4 py-3 bg-gray-50 border-b border-gray-200 text-sm font-medium text-gray-700",children:[b.jsx("div",{className:"text-left",children:"Name"}),b.jsx("div",{className:"text-left",children:"Type"}),b.jsx("div",{className:"text-right",children:"Runs"}),b.jsx("div",{className:"text-right",children:"Response Time"})]}),b.jsx("div",{className:"divide-y divide-gray-100",children:e.slice(0,r).map((o,s)=>b.jsxs("div",{className:"grid grid-cols-4 gap-4 px-4 py-4 hover:bg-gray-50 transition-colors duration-150",children:[b.jsxs("div",{className:"flex items-center space-x-3",children:[b.jsx("div",{className:"flex-shrink-0",children:b.jsx($s,{icon:o.icon,iconSource:"workflowtool",size:"small",name:o.name||"Unknown Tool",toolType:o.type})}),b.jsx("div",{className:"min-w-0 flex-1",children:b.jsx("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.name||"Unknown Tool"})})]}),b.jsx("div",{className:"flex items-center",children:b.jsx("span",{className:ce("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium border",tW(o.type||"Default")),children:o.type||"Tool"})}),b.jsx("div",{className:"text-right text-sm text-gray-900",children:o.runs?i(o.runs):"-"}),b.jsx("div",{className:"text-right text-sm text-gray-900",children:o.responseTime||"-"})]},o.id||s))}),r<e.length&&b.jsx("div",{className:"flex justify-center py-6",children:b.jsx("button",{onClick:a,className:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 transition-colors duration-150",children:"Load 10 more"})})]})},rW=e=>{const t=e.toLowerCase();return t.includes("gpt")||t.includes("openai")?b.jsx("div",{className:"w-6 h-6 rounded-full bg-gray-900 flex items-center justify-center",children:b.jsx("span",{className:"text-white text-xs font-bold",children:"⚡"})}):t.includes("claude")||t.includes("anthropic")?b.jsx("div",{className:"w-6 h-6 rounded-full bg-orange-500 flex items-center justify-center",children:b.jsx("span",{className:"text-white text-xs font-bold",children:"A"})}):t.includes("gemini")||t.includes("google")?b.jsx("div",{className:"w-6 h-6 rounded-full bg-blue-500 flex items-center justify-center",children:b.jsx("span",{className:"text-white text-xs font-bold",children:"G"})}):t.includes("llama")||t.includes("meta")?b.jsx("div",{className:"w-6 h-6 rounded-full bg-blue-600 flex items-center justify-center",children:b.jsx("span",{className:"text-white text-xs font-bold",children:"M"})}):b.jsx("div",{className:"w-6 h-6 rounded-full bg-gray-500 flex items-center justify-center",children:b.jsx("span",{className:"text-white text-xs font-bold",children:"🤖"})})},vb=({data:e,className:t})=>{const[r,n]=S.useState(5),a=()=>{n(o=>Math.min(o+10,e.length))},i=o=>o>=1e3?`${Math.floor(o/1e3)}k`:o.toString();return b.jsxs("div",{className:ce("w-full",t),children:[b.jsxs("div",{className:"grid grid-cols-4 gap-4 px-4 py-3 bg-gray-50 border-b border-gray-200 text-sm font-medium text-gray-700",children:[b.jsx("div",{className:"text-left",children:"Model Name"}),b.jsx("div",{className:"text-right",children:"Runs"}),b.jsx("div",{className:"text-right",children:"Tokens"}),b.jsx("div",{className:"text-right",children:"Response Time"})]}),b.jsx("div",{className:"divide-y divide-gray-100",children:e.slice(0,r).map((o,s)=>b.jsxs("div",{className:"grid grid-cols-4 gap-4 px-4 py-4 hover:bg-gray-50 transition-colors duration-150",children:[b.jsxs("div",{className:"flex items-center space-x-3",children:[b.jsx("div",{className:"flex-shrink-0",children:rW(o.name||"Unknown")}),b.jsx("div",{className:"min-w-0 flex-1",children:b.jsx("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.name||"Unknown Model"})})]}),b.jsx("div",{className:"text-right text-sm text-gray-900",children:i(o.runs||0)}),b.jsx("div",{className:"text-right text-sm text-gray-900",children:i(o.tokens||0)}),b.jsx("div",{className:"text-right text-sm text-gray-900",children:o.responseTime})]},o.id||s))}),r<e.length&&b.jsx("div",{className:"flex justify-center py-6",children:b.jsx("button",{onClick:a,className:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 transition-colors duration-150",children:"Load 10 more"})})]})},nW=({data:e,className:t,onClick:r})=>{const{title:n,value:a,change:i,info:o,highlighted:s}=e,l=f=>typeof f=="number"?f.toLocaleString():f.toString(),u=f=>`${f}%`,c=()=>{r&&r(e)};return b.jsxs("div",{className:ce("rounded-lg border p-4 transition-all duration-200 bg-white",!s&&"border-gray-200 shadow-sm",s&&["!border-[#84adff]"],r&&"cursor-pointer",t),onClick:c,children:[b.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[b.jsx("span",{className:"text-sm font-medium text-gray-600",children:n}),o&&b.jsxs("div",{className:"relative group",children:[b.jsx(K8,{className:"h-4 w-4 text-gray-400 cursor-help"}),b.jsxs("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-3 py-2 text-xs text-white bg-gray-900 rounded-md opacity-0 group-hover:!opacity-100 transition-opacity duration-200 whitespace-nowrap z-10 shadow-lg",children:[o,b.jsx("div",{className:"absolute top-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-l-4 border-r-4 border-t-4 border-transparent border-t-gray-900"})]})]})]}),b.jsxs("div",{className:"flex items-baseline gap-3",children:[b.jsx("span",{className:"text-2xl font-semibold text-gray-900",children:l(a)}),i&&b.jsxs("div",{className:ce("flex items-center gap-1 px-2 py-1 text-sm font-medium",(i.type==="increase","")),style:i.type==="increase"?{color:"rgb(21 128 61 / var(--tw-text-opacity, 1))",border:"1px solid #ABEFC6",borderRadius:"150px",background:"rgba(16, 185, 129, 0.10)"}:{color:"rgb(185 28 28 / var(--tw-text-opacity, 1))",border:"1px solid #FCA5A5",borderRadius:"150px",background:"rgba(239, 68, 68, 0.10)"},children:[i.type==="increase"?b.jsx(X8,{className:"h-3 w-3"}):b.jsx(Y8,{className:"h-3 w-3"}),b.jsx("span",{children:u(i.value)})]})]})]})},aW=({config:e,className:t,isLoading:r,context:n})=>{const{type:a,chart:i,table:o,layout:s="vertical"}=e,l=()=>i?(console.log("ViewRenderer - Chart config:",i),console.log("ViewRenderer - Chart data:",i.data),console.log("ViewRenderer - Context:",n),b.jsx("div",{className:"flex-1",children:b.jsx(ob,{config:i,isLoading:r})})):null,u=()=>o?(n==null?void 0:n.metricType)==="agentRuns"?b.jsx("div",{className:"flex-1 min-h-[380px]",children:b.jsx(hb,{data:o.data})}):(n==null?void 0:n.metricType)==="toolRuns"?b.jsx("div",{className:"flex-1 min-h-[380px]",children:b.jsx(pb,{data:o.data})}):(n==null?void 0:n.metricType)==="modelRuns"?b.jsx("div",{className:"flex-1 min-h-[380px]",children:b.jsx(vb,{data:o.data})}):b.jsx("div",{className:"flex-1 min-h-[380px]",children:b.jsx(cb,{config:o})}):null,c=()=>{switch(a){case"chart":return l();case"table":return u();case"mixed":return b.jsxs("div",{className:ce("flex gap-6",s==="horizontal"?"flex-row":"flex-col"),children:[l(),u()]});default:return b.jsxs("div",{className:"p-4 text-center text-gray-500",children:["Unsupported view type: ",a]})}};return b.jsx("div",{className:ce("w-full",t),children:c()})},nf=({options:e,value:t,placeholder:r="Select an option",onChange:n,className:a,disabled:i=!1})=>{const[o,s]=S.useState(!1),[l,u]=S.useState(t||""),c=S.useRef(null),f=e.find(y=>y.value===l);S.useEffect(()=>{const y=p=>{c.current&&!c.current.contains(p.target)&&s(!1)};return o&&document.addEventListener("mousedown",y),()=>{document.removeEventListener("mousedown",y)}},[o]);const d=y=>{i||(u(y),s(!1),n==null||n(y))},h=()=>{i||s(!o)};return b.jsxs("div",{ref:c,className:ce("relative min-w-[200px]",a),children:[b.jsxs("button",{type:"button",className:ce("flex h-10 w-full min-w-[200px] items-center justify-between rounded-md border border-gray-300 bg-white px-3 py-2 text-sm shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 disabled:cursor-not-allowed disabled:opacity-50 transition-colors",a),onClick:h,disabled:i,children:[b.jsx("span",{className:ce("truncate",!f&&"text-gray-500"),children:f?f.label:r}),b.jsx(js,{className:ce("h-4 w-4 text-gray-400 transition-transform duration-200",o&&"rotate-180")})]}),o&&!i&&b.jsx("div",{className:"absolute top-full left-0 z-50 mt-1 min-w-[300px] w-max max-w-lg rounded-md border border-gray-200 bg-white shadow-lg max-h-60 overflow-y-auto",children:e.map(y=>{const p=l===y.value;return b.jsxs("div",{className:"relative group",children:[b.jsx("button",{className:ce("relative flex w-full cursor-pointer select-none items-center px-3 py-2 text-sm text-left outline-none transition-colors",y.disabled?"opacity-50 cursor-not-allowed text-gray-400":p?"bg-blue-50 text-blue-900 font-medium":"text-gray-900 hover:bg-gray-100"),onClick:()=>!y.disabled&&d(y.value),disabled:y.disabled,children:b.jsx("span",{className:"block whitespace-nowrap",children:y.label})}),y.label.length>25&&b.jsx("div",{className:"absolute left-full top-0 ml-2 z-[60] opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none",children:b.jsxs("div",{className:"bg-gray-900 text-white text-xs rounded-md px-3 py-2 whitespace-nowrap shadow-lg",children:[y.label,b.jsx("div",{className:"absolute left-0 top-1/2 transform -translate-x-full -translate-y-1/2 w-0 h-0 border-t-4 border-b-4 border-r-4 border-transparent border-r-gray-900"})]})})]},y.value)})})]})},yb=({options:e,value:t,defaultValue:r,placeholder:n="Select...",multiSelect:a=!1,searchable:i=!1,onChange:o,className:s,iconSource:l="app",maxItems:u=100,maxLabelLength:c=30})=>{const[f,d]=S.useState(!1),[h,y]=S.useState(""),[p,v]=S.useState(()=>{const P=t||r;return a?Array.isArray(P)?P:P?[P]:[]:P?[Array.isArray(P)?P[0]:P]:[]}),g=S.useRef(null);S.useEffect(()=>{const P=j=>{g.current&&!g.current.contains(j.target)&&d(!1)};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[]);const O=(P,j=c)=>P.length<=j?P:P.substring(0,j)+"...",x=i?e.filter(P=>P.label.toLowerCase().includes(h.toLowerCase())):e,A=x.slice(0,u),m=x.length>u,w=P=>{let j;if(a){if(P==="all"){_();return}if(p.includes(P))j=p.filter(B=>B!==P),j=j.filter(B=>B!=="all");else{j=p.filter(E=>E!=="all"),j=[...j,P];const B=x.filter(E=>E.value!=="all").map(E=>E.value),M=j.filter(E=>E!=="all");M.length===B.length&&(j=["all",...M])}}else j=[P],d(!1);v(j);const L=a?j:j[0]||"";o==null||o(L)},T=()=>{if(!a)return{checked:!1,indeterminate:!1};const P=x.filter(L=>L.value!=="all").map(L=>L.value),j=p.filter(L=>L!=="all"&&P.includes(L));return p.includes("all")&&j.length===0?{checked:!1,indeterminate:!1}:j.length===0?{checked:!1,indeterminate:!1}:j.length===P.length?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}},_=()=>{if(!a)return;const P=T(),j=x.filter(L=>L.value!=="all").map(L=>L.value);if(P.checked)v(["all"]),o==null||o(["all"]);else{const L=["all",...j];v(L),o==null||o(L)}},$=()=>{v(["all"]),o==null||o(a?["all"]:"all")},R=()=>{if(!a){if(p.length===0)return n;const B=e.find(M=>M.value===p[0]);return(B==null?void 0:B.label)||n}const P=p.filter(B=>B!=="all"),j=p.includes("all");if(P.length===0)return n;if(P.length===1){const B=e.find(M=>M.value===P[0]);return(B==null?void 0:B.label)||n}const L=e.filter(B=>B.value!=="all").length;return P.length===L?"All selected":`${P.length} selected`};return b.jsxs("div",{className:ce("relative",s),ref:g,children:[b.jsxs("button",{type:"button",onClick:()=>d(!f),className:ce("w-full flex items-center justify-between px-3 py-2 text-left text-sm","border border-gray-300 rounded-md bg-white hover:bg-gray-50","focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500","transition-colors duration-150"),children:[b.jsx("span",{className:ce("truncate",p.length===0&&"text-gray-500"),children:R()}),b.jsx(js,{className:ce("w-4 h-4 text-gray-400 transition-transform duration-150",f&&"transform rotate-180")})]}),f&&b.jsxs("div",{className:"absolute z-50 min-w-[300px] w-max max-w-lg mt-1 bg-white border border-gray-200 rounded-md shadow-lg max-h-80 overflow-hidden",children:[i&&b.jsx("div",{className:"p-3 border-b border-gray-100",children:b.jsxs("div",{className:"relative",children:[b.jsx(ub,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"}),b.jsx("input",{type:"text",placeholder:`Search ${n.toLowerCase()}...`,value:h,onChange:P=>y(P.target.value),className:"w-full pl-10 pr-4 py-2 text-sm border border-gray-200 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"})]})}),a&&b.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-gray-100 bg-gray-50",children:[b.jsxs("button",{type:"button",onClick:_,className:"flex items-center text-sm font-medium text-gray-700 hover:text-gray-900",children:[b.jsx("div",{className:ce("flex items-center justify-center w-4 h-4 mr-2 border rounded transition-colors duration-150",(()=>{const P=T();return P.indeterminate||P.checked?"bg-blue-600 border-blue-600 text-white":"border-gray-300 bg-white"})()),children:(()=>{const P=T();return P.indeterminate?b.jsx("div",{className:"w-2 h-0.5 bg-white rounded"}):P.checked?b.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:b.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}):null})()}),"Select all"]}),b.jsx("button",{type:"button",onClick:$,className:"text-sm font-medium text-blue-600 hover:text-blue-800",children:"Clear"})]}),b.jsxs("div",{className:"max-h-60 overflow-y-auto",children:[A.length===0?b.jsx("div",{className:"px-3 py-4 text-sm text-gray-500 text-center",children:"No options found"}):A.map(P=>{let j;return P.value==="all"?null:(j=p.includes(P.value),b.jsxs("div",{className:"relative group",children:[b.jsxs("div",{onClick:()=>w(P.value),className:ce("flex items-center px-3 py-2 cursor-pointer hover:bg-gray-50","transition-colors duration-150",j&&"bg-blue-50"),children:[a?b.jsx("div",{className:ce("flex items-center justify-center w-4 h-4 mr-3 border rounded","transition-colors duration-150",j?"bg-blue-600 border-blue-600 text-white":"border-gray-300 bg-white"),children:j&&b.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:b.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}):b.jsx("div",{className:ce("w-4 h-4 mr-3 rounded-full border-2 transition-colors duration-150",j?"border-blue-600 bg-blue-600":"border-gray-300"),children:j&&b.jsx("div",{className:"w-full h-full rounded-full bg-white scale-50"})}),(P.avatar||P.icon)&&b.jsx("div",{className:"mr-3",children:b.jsx($s,{icon:P.icon,iconSource:l,size:"xs",name:P.label,toolType:P.type})}),b.jsx("span",{className:ce("flex-1 text-sm whitespace-nowrap",j?"font-medium text-gray-900":"text-gray-700"),children:O(P.label)})]}),P.label.length>c&&b.jsx("div",{className:"absolute left-full top-1/2 transform -translate-y-1/2 ml-2 z-[80] opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none",children:b.jsxs("div",{className:"bg-gray-900 text-white text-xs rounded-md px-3 py-2 shadow-lg max-w-xs break-words whitespace-normal",children:[P.label,b.jsx("div",{className:"absolute left-0 top-1/2 transform -translate-x-full -translate-y-1/2 w-0 h-0 border-t-4 border-b-4 border-r-4 border-transparent border-r-gray-900"})]})})]},P.value))}),m&&b.jsxs("div",{className:"px-3 py-2 text-xs text-gray-500 bg-gray-50 border-t border-gray-100",children:[b.jsxs("div",{className:"text-center font-medium",children:["+",x.length-u," more items"]}),i&&b.jsx("div",{className:"text-center mt-1 text-gray-400",children:"Use search above to find specific items"})]})]})]})]})},iW=({config:e,className:t})=>{var s;const{dropdown:r,buttons:n,toggle:a}=e,i=l=>{const u=l.toLowerCase();return u.includes("agent")?"agent":u.includes("tool")?"workflowtool":"app"},o=l=>{const u=l.toLowerCase();return u.includes("agent")?{maxItems:50,maxLabelLength:25}:u.includes("tool")?{maxItems:30,maxLabelLength:20}:{maxItems:40,maxLabelLength:25}};return b.jsxs("div",{className:ce("flex items-center gap-3",t),children:[r&&b.jsx(b.Fragment,{children:r.multiSelect?b.jsx(yb,{options:r.options,value:r.defaultValue,placeholder:r.label,multiSelect:r.multiSelect,searchable:r.searchable,onChange:r.onChange,className:"w-48",iconSource:i(r.label),maxItems:o(r.label).maxItems,maxLabelLength:o(r.label).maxLabelLength}):b.jsx(nf,{options:r.options,value:Array.isArray(r.defaultValue)?r.defaultValue[0]:r.defaultValue||((s=r.options[0])==null?void 0:s.value),placeholder:r.label,onChange:l=>{var u;return(u=r.onChange)==null?void 0:u.call(r,l)},className:"w-48"})}),n&&n.length>0&&b.jsx("div",{className:"flex items-center border border-gray-200 rounded-lg overflow-hidden",children:n.map((l,u)=>b.jsxs("button",{onClick:()=>{var c;return(c=l.onClick)==null?void 0:c.call(l,l.value)},className:ce("px-3 py-2 text-sm font-medium transition-colors","hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-inset",l.active?"bg-blue-50 text-blue-700 border-blue-200":"text-gray-700 bg-white",u>0&&"border-l border-gray-200"),children:[l.icon&&b.jsx("span",{className:"mr-2",children:l.icon}),l.label]},l.value))}),a&&b.jsxs("div",{className:"flex items-center border border-gray-200 rounded-lg overflow-hidden",children:[b.jsxs("button",{onClick:()=>{var l;return(l=a.onToggle)==null?void 0:l.call(a,"chart")},className:ce("px-3 py-2 text-sm font-medium transition-colors flex items-center gap-2","hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-inset",a.chartView?"bg-blue-50 text-blue-700 border-blue-200":"text-gray-700 bg-white"),children:[b.jsx(U8,{className:"w-4 h-4"}),"Chart"]}),b.jsxs("button",{onClick:()=>{var l;return(l=a.onToggle)==null?void 0:l.call(a,"table")},className:ce("px-3 py-2 text-sm font-medium transition-colors flex items-center gap-2","hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-inset","border-l border-gray-200",a.tableView?"bg-blue-50 text-blue-700 border-blue-200":"text-gray-700 bg-white"),children:[b.jsx(H8,{className:"w-4 h-4"}),"Table"]})]})]})},mb=({section:e,className:t,isLoading:r,isChartLoading:n,onMetricClick:a})=>{const{id:i,title:o,description:s,metrics:l,view:u,controls:c,layout:f}=e,[d,h]=S.useState(u.type),[y,p]=S.useState("chart"),v=()=>i==="usage-analytics"?"users":i==="runs"?"agentRuns":"users",[g,O]=S.useState(v()),[x,A]=S.useState("all"),m=k=>{var I,W,z,V,Z;const N=_();(I=N==null?void 0:N.controls)!=null&&I.toggle?(p(k),(z=(W=N.controls.toggle).onToggle)==null||z.call(W,k)):(h(k),(Z=(V=c==null?void 0:c.toggle)==null?void 0:V.onToggle)==null||Z.call(V,k))},w=k=>{var W,z;const N=k.metricType||k.title.toLowerCase();O(N);const I=l.find(V=>(V.metricType||V.title.toLowerCase())===N);(z=(W=I==null?void 0:I.controls)==null?void 0:W.dropdown)!=null&&z.multiSelect?A(["all"]):A("all"),a==null||a(k)},T=k=>{var I,W,z;A(k);const N=l.find(V=>(V.metricType||V.title.toLowerCase())===g);(z=(W=(I=N==null?void 0:N.controls)==null?void 0:I.dropdown)==null?void 0:W.onChange)==null||z.call(W,k)},_=()=>l.find(k=>(k.metricType||k.title.toLowerCase())===g)||null,$=k=>Array.isArray(k)?k.filter(I=>I!=="all").length>0:k!=="all",R=k=>Array.isArray(k)?k.filter(N=>N!=="all"):k!=="all"?[k]:[],P=k=>{var z,V,Z,Q,ae,te,q,Y,J;const N=((V=(z=k.view)==null?void 0:z.chart)==null?void 0:V.data)||((Z=u.chart)==null?void 0:Z.data)||[];if(!$(x))return N;const I=k.metricType,W=R(x);if(W.length===1){const D=W[0],ie=_(),K=(te=(ae=(Q=ie==null?void 0:ie.controls)==null?void 0:Q.dropdown)==null?void 0:ae.options)==null?void 0:te.find(oe=>oe.value===D),ee=K==null?void 0:K.label;return console.log("🔍 Filtering chart data:",{metricType:I,singleFilter:D,selectedLabel:ee,baseDataSample:N[0]}),N.map(oe=>{let Ce=0;return oe.listView&&Array.isArray(oe.listView)&&(Ce=oe.listView.filter(et=>I==="agentRuns"&&et.agentName?et.agentName===ee||et.agentName.toLowerCase()===(ee==null?void 0:ee.toLowerCase()):I==="toolRuns"&&et.toolName?et.toolName===ee||et.toolName.toLowerCase()===(ee==null?void 0:ee.toLowerCase()):I==="modelRuns"&&et.modelName?et.modelName===ee||et.modelName.toLowerCase()===(ee==null?void 0:ee.toLowerCase()):!1).reduce((et,Rt)=>et+(Rt.count||0),0)),console.log("📊 Filtered value for",ee,":",Ce),{...oe,[I]:Ce}})}if(W.length>1){const D=_(),K=(((J=(Y=(q=D==null?void 0:D.controls)==null?void 0:q.dropdown)==null?void 0:Y.options)==null?void 0:J.filter(ee=>W.includes(ee.value)))||[]).map(ee=>ee.label);return N.map(ee=>{let oe=0;return ee.listView&&Array.isArray(ee.listView)&&(oe=ee.listView.filter(Te=>I==="agentRuns"&&Te.agentName?K.some(Ee=>Te.agentName===Ee||Te.agentName.toLowerCase()===(Ee==null?void 0:Ee.toLowerCase())):I==="toolRuns"&&Te.toolName?K.some(Ee=>Te.toolName===Ee||Te.toolName.toLowerCase()===(Ee==null?void 0:Ee.toLowerCase())):I==="modelRuns"&&Te.modelName?K.some(Ee=>Te.modelName===Ee||Te.modelName.toLowerCase()===(Ee==null?void 0:Ee.toLowerCase())):!1).reduce((Te,Ee)=>Te+(Ee.count||0),0)),{...ee,[I]:oe}})}return N},j=k=>{var z;if(!((z=k.view)!=null&&z.chart))return null;const N=P(k),I=()=>{var Z,Q,ae,te,q,Y;if(!$(x)||!((Z=k.controls)!=null&&Z.dropdown))return((ae=(Q=k.view)==null?void 0:Q.chart)==null?void 0:ae.title)||k.title;const V=R(x);if(V.length===1){const J=(te=k.controls.dropdown.options)==null?void 0:te.find(D=>D.value===V[0]);return J?`${J.label}`:((Y=(q=k.view)==null?void 0:q.chart)==null?void 0:Y.title)||k.title}return`${V.length} selected`},W=R(x);return k.metricType==="toolRuns"&&W.length===1?{...k.view.chart,data:N,title:I(),lines:void 0,dataKey:"toolRuns",color:"#f97316",showLegend:!1}:k.metricType==="modelRuns"&&W.length===1?{...k.view.chart,data:N,title:I(),dataKey:"modelRuns",color:"#10b981",showLegend:!1}:{...k.view.chart,data:N,title:I()}},L=(k,N)=>{if(!$(x))return k;const I=R(x);if(I.length===1){const W=I[0];if(i==="runs"&&N==="agentRuns")return k.map(z=>({...z,agentRuns:z[W]||0}));if(i==="runs"&&N==="toolRuns")return k.map(z=>({...z,toolRuns:z[W.replace(/[-]/g,"")]||0}));if(i==="runs"&&N==="modelRuns")return k.map(z=>({...z,modelRuns:z[W.replace(/[-\.]/g,"")]||0}))}return k},B=k=>{var z;const N=((z=u.chart)==null?void 0:z.data)||[],I=L(N,k),W=V=>{var Q,ae;if(!$(x))return V;const Z=R(x);if(Z.length===1){const te=(ae=(Q=c==null?void 0:c.dropdown)==null?void 0:Q.options)==null?void 0:ae.find(q=>q.value===Z[0]);return te?`${te.label}`:V}return`${Z.length} selected`};switch(k){case"users":return{type:"line",title:"Total Users",data:N,dataKey:"users",color:"#8b5cf6",yAxisLabel:"Number of Users",height:300,showGrid:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:"2025-05-06",end:"2025-06-05"}};case"sessions":return{type:"line",title:"Total Sessions",data:N,dataKey:"sessions",color:"#06b6d4",yAxisLabel:"Number of Sessions",height:300,showGrid:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:"2025-05-06",end:"2025-06-05"}};case"messages":return{type:"line",title:"Total Messages",data:N,dataKey:"messages",color:"#ec4899",yAxisLabel:"Number of Messages",height:300,showGrid:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:"2025-05-06",end:"2025-06-05"}};case"tokens":return{type:"line",title:"Token Usage Breakdown",data:N,yAxisLabel:"Number of Tokens",lines:[{dataKey:"totalTokens",color:"#f59e0b",label:"Total Tokens"},{dataKey:"inputTokens",color:"#3b82f6",label:"Input Tokens"},{dataKey:"outputTokens",color:"#ec4899",label:"Output Tokens"}],height:300,showGrid:!0,showLegend:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:"2025-05-06",end:"2025-06-05"}};case"agentRuns":return{type:"line",title:W("Agent Runs"),data:I,dataKey:"agentRuns",color:"#06b6d4",yAxisLabel:"Number of Agent Runs",height:300,showGrid:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:"2025-05-06",end:"2025-06-05"}};case"toolRuns":return R(x).length===1?{type:"line",title:W("Tool Runs"),data:L(N,"toolRuns"),dataKey:"toolRuns",color:"#f97316",yAxisLabel:"Number of Tool Runs",height:300,showGrid:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:"2025-05-06",end:"2025-06-05"}}:{type:"line",title:"Tool Runs",data:I,yAxisLabel:"Number of Tool Runs",lines:[{dataKey:"toolRuns",color:"#06b6d4",label:"Tool Runs"},{dataKey:"codeTools",color:"#f97316",label:"Code Tools"},{dataKey:"workflowTools",color:"#10b981",label:"Workflow Tools"},{dataKey:"knowledgeTools",color:"#8b5cf6",label:"Knowledge"},{dataKey:"mcpTools",color:"#ef4444",label:"MCP Tools"}],height:300,showGrid:!0,showLegend:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:"2025-05-06",end:"2025-06-05"}};case"modelRuns":return R(x).length===1?{type:"line",title:W("Model Runs"),data:L(N,"modelRuns"),dataKey:"modelRuns",color:"#10b981",yAxisLabel:"Number of Model Runs",height:300,showGrid:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:"2025-05-06",end:"2025-06-05"}}:{type:"line",title:W("Model Runs"),data:I,dataKey:"modelRuns",color:"#10b981",yAxisLabel:"Number of Model Runs",height:300,showGrid:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:"2025-05-06",end:"2025-06-05"}};default:return null}},M=(()=>{const k=_();return k!=null&&k.controls?{...k.controls,dropdown:k.controls.dropdown?{...k.controls.dropdown,onChange:T}:void 0,toggle:k.controls.toggle?{...k.controls.toggle,chartView:y==="chart",tableView:y==="table",onToggle:m}:void 0}:c?{...c,dropdown:c.dropdown?{...c.dropdown,onChange:T}:void 0,toggle:c.toggle?{...c.toggle,chartView:d==="chart",tableView:d==="table",onToggle:m}:void 0}:void 0})(),F=(()=>{var I,W,z,V,Z,Q,ae,te,q,Y;const k=_();if(k!=null&&k.view){if((I=k.controls)!=null&&I.toggle){if(y==="table"&&k.view.table){let D=k.view.table.data;if(k.metricType==="agentRuns"&&$(x)){const ie=R(x);if(ie.length>0){const K=((V=(z=(W=k.controls)==null?void 0:W.dropdown)==null?void 0:z.options)==null?void 0:V.filter(ee=>ie.includes(ee.value)))||[];K.length>0&&(D=D.filter(ee=>K.some(oe=>ee.name===oe.label||ee.name&&ee.name.toLowerCase().includes(oe.label.toLowerCase()))))}}if(k.metricType==="toolRuns"&&$(x)){const ie=R(x);if(ie.length>0){const K=((ae=(Q=(Z=k.controls)==null?void 0:Z.dropdown)==null?void 0:Q.options)==null?void 0:ae.filter(ee=>ie.includes(ee.value)))||[];K.length>0&&(D=D.filter(ee=>K.some(oe=>ee.name===oe.label||ee.name&&ee.name.toLowerCase().includes(oe.label.toLowerCase()))))}}if(k.metricType==="modelRuns"&&$(x)){const ie=R(x);if(ie.length>0){const K=((Y=(q=(te=k.controls)==null?void 0:te.dropdown)==null?void 0:q.options)==null?void 0:Y.filter(ee=>ie.includes(ee.value)))||[];K.length>0&&(D=D.filter(ee=>K.some(oe=>ee.name===oe.label||ee.name&&ee.name.toLowerCase().includes(oe.label.toLowerCase()))))}}return{type:"table",table:{...k.view.table,data:D}}}else if(y==="chart"&&k.view.chart)return{type:"chart",chart:j(k)||k.view.chart}}const J=j(k);return J?{...k.view,chart:J}:k.view}const N=B(g);return N?{type:"chart",chart:N}:{...u,type:d}})(),U=()=>l.map(k=>{const N=k.metricType||k.title.toLowerCase();return{...k,highlighted:k.highlighted||N===g}});return b.jsxs("div",{className:ce("bg-white rounded-lg border border-gray-200 p-6",t),style:{gridColumn:f!=null&&f.span?`span ${f.span}`:void 0,order:f==null?void 0:f.order},children:[b.jsxs("div",{className:"mb-6",children:[b.jsxs("div",{className:"flex items-center justify-between mb-4",children:[b.jsxs("div",{children:[b.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:o}),s&&b.jsx("p",{className:"text-sm text-gray-600 mt-1",children:s})]}),M&&b.jsx(iW,{config:M})]}),b.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:r?b.jsxs(b.Fragment,{children:[b.jsx(Es,{}),b.jsx(Es,{}),b.jsx(Es,{}),b.jsx(Es,{})]}):U().map((k,N)=>b.jsx(nW,{data:k,onClick:w},`${i}-metric-${N}`))})]}),b.jsx(aW,{config:F,className:"mt-6",isLoading:r||n,context:{sectionId:i,metricType:g}})]})},Cs=S.forwardRef(({className:e,variant:t="default",size:r="md",children:n,...a},i)=>{const o="inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",s={default:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground"},l={sm:"h-9 px-3",md:"h-10 px-4 py-2",lg:"h-11 px-8"};return b.jsx("button",{className:ce(o,s[t],l[r],e),ref:i,...a,children:n})});Cs.displayName="Button";function Ms(e){"@babel/helpers - typeof";return Ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ms(e)}function Et(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function De(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Ue(e){De(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Ms(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function oW(e,t){De(2,arguments);var r=Ue(e),n=Et(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function af(e,t){De(2,arguments);var r=Ue(e),n=Et(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var a=r.getDate(),i=new Date(r.getTime());i.setMonth(r.getMonth()+n+1,0);var o=i.getDate();return a>=o?i:(r.setFullYear(i.getFullYear(),i.getMonth(),a),r)}function sW(e,t){De(2,arguments);var r=Ue(e).getTime(),n=Et(t);return new Date(r+n)}var lW={};function yi(){return lW}function uW(e,t){var r,n,a,i,o,s;De(1,arguments);var l=yi(),u=Et((r=(n=(a=(i=void 0)!==null&&i!==void 0?i:void 0)!==null&&a!==void 0?a:l.weekStartsOn)!==null&&n!==void 0?n:(o=l.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&r!==void 0?r:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=Ue(e),f=c.getDay(),d=(f<u?7:0)+f-u;return c.setDate(c.getDate()-d),c.setHours(0,0,0,0),c}function cW(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Hr(e){De(1,arguments);var t=Ue(e);return t.setHours(0,0,0,0),t}function mi(e,t){De(2,arguments);var r=Hr(e),n=Hr(t);return r.getTime()===n.getTime()}function fW(e){return De(1,arguments),e instanceof Date||Ms(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function dW(e){if(De(1,arguments),!fW(e)&&typeof e!="number")return!1;var t=Ue(e);return!isNaN(Number(t))}function hW(e){De(1,arguments);var t=Ue(e);return t.setHours(23,59,59,999),t}function pW(e){De(1,arguments);var t=Ue(e);return t.setDate(1),t.setHours(0,0,0,0),t}function vW(e,t){De(2,arguments);var r=Et(t);return sW(e,-r)}var yW=864e5;function mW(e){De(1,arguments);var t=Ue(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),a=r-n;return Math.floor(a/yW)+1}function ks(e){De(1,arguments);var t=1,r=Ue(e),n=r.getUTCDay(),a=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-a),r.setUTCHours(0,0,0,0),r}function gb(e){De(1,arguments);var t=Ue(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var a=ks(n),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var o=ks(i);return t.getTime()>=a.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function gW(e){De(1,arguments);var t=gb(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=ks(r);return n}var bW=6048e5;function xW(e){De(1,arguments);var t=Ue(e),r=ks(t).getTime()-gW(t).getTime();return Math.round(r/bW)+1}function Ns(e,t){var r,n,a,i,o,s,l,u;De(1,arguments);var c=yi(),f=Et((r=(n=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&n!==void 0?n:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Ue(e),h=d.getUTCDay(),y=(h<f?7:0)+h-f;return d.setUTCDate(d.getUTCDate()-y),d.setUTCHours(0,0,0,0),d}function bb(e,t){var r,n,a,i,o,s,l,u;De(1,arguments);var c=Ue(e),f=c.getUTCFullYear(),d=yi(),h=Et((r=(n=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:d.firstWeekContainsDate)!==null&&n!==void 0?n:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(f+1,0,h),y.setUTCHours(0,0,0,0);var p=Ns(y,t),v=new Date(0);v.setUTCFullYear(f,0,h),v.setUTCHours(0,0,0,0);var g=Ns(v,t);return c.getTime()>=p.getTime()?f+1:c.getTime()>=g.getTime()?f:f-1}function wW(e,t){var r,n,a,i,o,s,l,u;De(1,arguments);var c=yi(),f=Et((r=(n=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&n!==void 0?n:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=bb(e,t),h=new Date(0);h.setUTCFullYear(d,0,f),h.setUTCHours(0,0,0,0);var y=Ns(h,t);return y}var OW=6048e5;function SW(e,t){De(1,arguments);var r=Ue(e),n=Ns(r,t).getTime()-wW(r,t).getTime();return Math.round(n/OW)+1}function _e(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var Tr={y:function(t,r){var n=t.getUTCFullYear(),a=n>0?n:1-n;return _e(r==="yy"?a%100:a,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):_e(n+1,2)},d:function(t,r){return _e(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return _e(t.getUTCHours()%12||12,r.length)},H:function(t,r){return _e(t.getUTCHours(),r.length)},m:function(t,r){return _e(t.getUTCMinutes(),r.length)},s:function(t,r){return _e(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,a=t.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,n-3));return _e(i,r.length)}},ta={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},AW={G:function(t,r,n){var a=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var a=t.getUTCFullYear(),i=a>0?a:1-a;return n.ordinalNumber(i,{unit:"year"})}return Tr.y(t,r)},Y:function(t,r,n,a){var i=bb(t,a),o=i>0?i:1-i;if(r==="YY"){var s=o%100;return _e(s,2)}return r==="Yo"?n.ordinalNumber(o,{unit:"year"}):_e(o,r.length)},R:function(t,r){var n=gb(t);return _e(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return _e(n,r.length)},Q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(a);case"QQ":return _e(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(a);case"qq":return _e(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,r,n){var a=t.getUTCMonth();switch(r){case"M":case"MM":return Tr.M(t,r);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(t,r,n){var a=t.getUTCMonth();switch(r){case"L":return String(a+1);case"LL":return _e(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(t,r,n,a){var i=SW(t,a);return r==="wo"?n.ordinalNumber(i,{unit:"week"}):_e(i,r.length)},I:function(t,r,n){var a=xW(t);return r==="Io"?n.ordinalNumber(a,{unit:"week"}):_e(a,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):Tr.d(t,r)},D:function(t,r,n){var a=mW(t);return r==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):_e(a,r.length)},E:function(t,r,n){var a=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(t,r,n,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return _e(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,r,n,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return _e(o,r.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,r,n){var a=t.getUTCDay(),i=a===0?7:a;switch(r){case"i":return String(i);case"ii":return _e(i,r.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(t,r,n){var a=t.getUTCHours(),i=a/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,r,n){var a=t.getUTCHours(),i;switch(a===12?i=ta.noon:a===0?i=ta.midnight:i=a/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,r,n){var a=t.getUTCHours(),i;switch(a>=17?i=ta.evening:a>=12?i=ta.afternoon:a>=4?i=ta.morning:i=ta.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var a=t.getUTCHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return Tr.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Tr.H(t,r)},K:function(t,r,n){var a=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(a,{unit:"hour"}):_e(a,r.length)},k:function(t,r,n){var a=t.getUTCHours();return a===0&&(a=24),r==="ko"?n.ordinalNumber(a,{unit:"hour"}):_e(a,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Tr.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Tr.s(t,r)},S:function(t,r){return Tr.S(t,r)},X:function(t,r,n,a){var i=a._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(r){case"X":return wb(o);case"XXXX":case"XX":return Yr(o);case"XXXXX":case"XXX":default:return Yr(o,":")}},x:function(t,r,n,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(r){case"x":return wb(o);case"xxxx":case"xx":return Yr(o);case"xxxxx":case"xxx":default:return Yr(o,":")}},O:function(t,r,n,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+xb(o,":");case"OOOO":default:return"GMT"+Yr(o,":")}},z:function(t,r,n,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+xb(o,":");case"zzzz":default:return"GMT"+Yr(o,":")}},t:function(t,r,n,a){var i=a._originalDate||t,o=Math.floor(i.getTime()/1e3);return _e(o,r.length)},T:function(t,r,n,a){var i=a._originalDate||t,o=i.getTime();return _e(o,r.length)}};function xb(e,t){var r=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),i=n%60;if(i===0)return r+String(a);var o=t;return r+String(a)+o+_e(i,2)}function wb(e,t){if(e%60===0){var r=e>0?"-":"+";return r+_e(Math.abs(e)/60,2)}return Yr(e,t)}function Yr(e,t){var r=t||"",n=e>0?"-":"+",a=Math.abs(e),i=_e(Math.floor(a/60),2),o=_e(a%60,2);return n+i+r+o}var Ob=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},Sb=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},TW=function(t,r){var n=t.match(/(P+)(p+)?/)||[],a=n[1],i=n[2];if(!i)return Ob(t,r);var o;switch(a){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",Ob(a,r)).replace("{{time}}",Sb(i,r))},PW={p:Sb,P:TW},_W=["D","DD"],EW=["YY","YYYY"];function jW(e){return _W.indexOf(e)!==-1}function $W(e){return EW.indexOf(e)!==-1}function Ab(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var CW={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},MW=function(t,r,n){var a,i=CW[t];return typeof i=="string"?a=i:r===1?a=i.one:a=i.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};function of(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var kW={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},NW={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},DW={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},IW={date:of({formats:kW,defaultWidth:"full"}),time:of({formats:NW,defaultWidth:"full"}),dateTime:of({formats:DW,defaultWidth:"full"})},LW={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},RW=function(t,r,n,a){return LW[t]};function gi(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):i;a=e.formattingValues[o]||e.formattingValues[i]}else{var s=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[l]||e.values[s]}var u=e.argumentCallback?e.argumentCallback(t):t;return a[u]}}var BW={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},FW={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},WW={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},UW={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},zW={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},GW={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},qW=function(t,r){var n=Number(t),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},KW={ordinalNumber:qW,era:gi({values:BW,defaultWidth:"wide"}),quarter:gi({values:FW,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:gi({values:WW,defaultWidth:"wide"}),day:gi({values:UW,defaultWidth:"wide"}),dayPeriod:gi({values:zW,defaultWidth:"wide",formattingValues:GW,defaultFormattingWidth:"wide"})};function bi(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var o=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?HW(s,function(f){return f.test(o)}):VW(s,function(f){return f.test(o)}),u;u=e.valueCallback?e.valueCallback(l):l,u=r.valueCallback?r.valueCallback(u):u;var c=t.slice(o.length);return{value:u,rest:c}}}function VW(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function HW(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function YW(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var a=n[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;var s=t.slice(a.length);return{value:o,rest:s}}}var XW=/^(\d+)(th|st|nd|rd)?/i,JW=/\d+/i,ZW={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},QW={any:[/^b/i,/^(a|c)/i]},eU={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},tU={any:[/1/i,/2/i,/3/i,/4/i]},rU={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},nU={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},aU={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},iU={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},oU={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},sU={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},lU={ordinalNumber:YW({matchPattern:XW,parsePattern:JW,valueCallback:function(t){return parseInt(t,10)}}),era:bi({matchPatterns:ZW,defaultMatchWidth:"wide",parsePatterns:QW,defaultParseWidth:"any"}),quarter:bi({matchPatterns:eU,defaultMatchWidth:"wide",parsePatterns:tU,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:bi({matchPatterns:rU,defaultMatchWidth:"wide",parsePatterns:nU,defaultParseWidth:"any"}),day:bi({matchPatterns:aU,defaultMatchWidth:"wide",parsePatterns:iU,defaultParseWidth:"any"}),dayPeriod:bi({matchPatterns:oU,defaultMatchWidth:"any",parsePatterns:sU,defaultParseWidth:"any"})},uU={code:"en-US",formatDistance:MW,formatLong:IW,formatRelative:RW,localize:KW,match:lU,options:{weekStartsOn:0,firstWeekContainsDate:1}},cU=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,fU=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,dU=/^'([^]*?)'?$/,hU=/''/g,pU=/[a-zA-Z]/;function Ds(e,t,r){var n,a,i,o,s,l,u,c,f,d,h,y,p,v;De(2,arguments);var g=String(t),O=yi(),x=(n=(a=void 0)!==null&&a!==void 0?a:O.locale)!==null&&n!==void 0?n:uU,A=Et((i=(o=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:O.firstWeekContainsDate)!==null&&o!==void 0?o:(u=O.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=Et((f=(d=(h=(y=void 0)!==null&&y!==void 0?y:void 0)!==null&&h!==void 0?h:O.weekStartsOn)!==null&&d!==void 0?d:(p=O.locale)===null||p===void 0||(v=p.options)===null||v===void 0?void 0:v.weekStartsOn)!==null&&f!==void 0?f:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!x.localize)throw new RangeError("locale must contain localize property");if(!x.formatLong)throw new RangeError("locale must contain formatLong property");var w=Ue(e);if(!dW(w))throw new RangeError("Invalid time value");var T=cW(w),_=vW(w,T),$={firstWeekContainsDate:A,weekStartsOn:m,locale:x,_originalDate:w},R=g.match(fU).map(function(P){var j=P[0];if(j==="p"||j==="P"){var L=PW[j];return L(P,x.formatLong)}return P}).join("").match(cU).map(function(P){if(P==="''")return"'";var j=P[0];if(j==="'")return vU(P);var L=AW[j];if(L)return $W(P)&&Ab(P,t,String(e)),jW(P)&&Ab(P,t,String(e)),L(_,P,x.localize,$);if(j.match(pU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+j+"`");return P}).join("");return R}function vU(e){var t=e.match(dU);return t?t[1].replace(hU,"'"):e}function Tb(e,t){De(2,arguments);var r=Ue(e),n=Ue(t);return r.getTime()<n.getTime()}function yU(e,t){De(2,arguments);var r=Ue(e).getTime(),n=Ue(t.start).getTime(),a=Ue(t.end).getTime();if(!(n<=a))throw new RangeError("Invalid interval");return r>=n&&r<=a}function Is(e,t){De(2,arguments);var r=Et(t);return oW(e,-r)}function Pb(e,t){De(2,arguments);var r=Et(t);return af(e,-r)}const mU=({children:e})=>{const[t,r]=S.useState(!1);return S.useEffect(()=>(r(!0),()=>r(!1)),[]),t?Zr.createPortal(e,document.body):null};function gU({className:e,defaultValue:t,onDateRangeChange:r}){console.log("🗓️ DateRangePicker component rendered with props:",{className:e,defaultValue:t,hasCallback:!!r});const n=[{label:"Today",value:"today",dateRange:{from:Hr(new Date),to:new Date}},{label:"Yesterday",value:"yesterday",dateRange:{from:Hr(Is(new Date,1)),to:hW(Is(new Date,1))}},{label:"This week",value:"thisWeek",dateRange:{from:uW(new Date),to:new Date}},{label:"Last 7 days",value:"7d",dateRange:{from:Hr(Is(new Date,6)),to:new Date}},{label:"This month",value:"thisMonth",dateRange:{from:pW(new Date),to:new Date}},{label:"Last 30 days",value:"30d",dateRange:{from:Hr(Is(new Date,29)),to:new Date}},{label:"Last 3 months",value:"90d",dateRange:{from:Hr(Pb(new Date,3)),to:new Date}}],a=t?n.find(E=>E.value===t):null;console.log("📅 DateRangePicker initialization:",{defaultValue:t,defaultPreset:a==null?void 0:a.label,hasDateRange:!!(a!=null&&a.dateRange),allPresetValues:n.map(E=>E.value),foundPreset:!!a});const[i,o]=S.useState(a==null?void 0:a.dateRange),[s,l]=S.useState(a==null?void 0:a.dateRange),[u,c]=S.useState(!1),[f,d]=S.useState((a==null?void 0:a.label)||null),[h,y]=S.useState((a==null?void 0:a.label)||null),[p,v]=S.useState(new Date),[g,O]=S.useState(null),[x,A]=S.useState({top:0,left:0}),m=S.useRef(null),w=S.useRef(null);S.useEffect(()=>{var E,F;console.log("📅 DateRangePicker useEffect running:",{hasDefaultPreset:!!a,hasOnDateRangeChange:!!r,currentDate:i,currentLabel:f,defaultValue:t,defaultPresetLabel:a==null?void 0:a.label,defaultPresetValue:a==null?void 0:a.value}),a!=null&&a.dateRange&&r?(console.log("📅 DateRangePicker: Setting initial default value:",{label:a.label,dateRange:a.dateRange,from:(E=a.dateRange.from)==null?void 0:E.toLocaleDateString(),to:(F=a.dateRange.to)==null?void 0:F.toLocaleDateString()}),r(a.dateRange)):console.log("📅 DateRangePicker: NOT setting initial value because:",{hasDefaultPreset:!!a,hasDateRange:!!(a!=null&&a.dateRange),hasCallback:!!r,presetLabelsAvailable:n.map(U=>`${U.value}:${U.label}`)})},[]),S.useEffect(()=>{t&&(a!=null&&a.dateRange)&&(console.log("📅 DateRangePicker: DefaultValue changed, updating state:",{defaultValue:t,label:a.label}),o(a.dateRange),d(a.label),l(a.dateRange),y(a.label))},[t]);const T=()=>{if(!w.current)return;const E=w.current.getBoundingClientRect(),F=window.scrollY,U=window.scrollX,k=window.innerWidth,N=window.innerHeight,I=720,W=450;let z=E.bottom+F+8,V=E.left+U;V+I>k&&(V=E.right+U-I),V+I>k&&(V=k-I-20),z+W>N&&(z=E.top+F-W-8),V<20&&(V=20),z<20&&(z=20),A({top:z,left:V})};S.useEffect(()=>{const E=()=>{u&&T()};return u&&(window.addEventListener("resize",E),window.addEventListener("scroll",E)),()=>{window.removeEventListener("resize",E),window.removeEventListener("scroll",E)}},[u]);const _=(E,F)=>{if(l(E),y(F),O(null),E.from){const U=new Date(E.from.getFullYear(),E.from.getMonth(),1);v(U)}},$=E=>{if(!g)O(E),l({from:E,to:E}),y(null);else{const F=Tb(E,g)?E:g,U=Tb(E,g)?g:E;l({from:F,to:U}),O(null),y(null)}},R=()=>{o(s),d(h),r==null||r(s),c(!1),O(null)},P=()=>{l(void 0),y(null),o(void 0),d(null),r==null||r(void 0),c(!1),O(null)},j=E=>{E?(l(i),y(f),O(null),setTimeout(T,0)):(l(i),y(f),O(null)),c(E)},L=(E,F)=>(console.log("📅 formatDateRange called with:",{presetLabel:F,hasDateRange:!!(E!=null&&E.from)}),F||(E!=null&&E.from?!E.to||mi(E.from,E.to)?Ds(E.from,"MMM dd, yyyy"):`${Ds(E.from,"MMM dd, yyyy")} - ${Ds(E.to,"MMM dd, yyyy")}`:"Pick a date range")),B=(E=0)=>{const F=af(p,E),U=F.getFullYear(),k=F.getMonth(),N=new Date(U,k,1),W=new Date(U,k+1,0).getDate(),z=N.getDay(),V=["January","February","March","April","May","June","July","August","September","October","November","December"],Z=["Su","Mo","Tu","We","Th","Fr","Sa"],Q=[],te=new Date(U,k-1,0).getDate();for(let J=z-1;J>=0;J--){const D=te-J,ie=new Date(U,k-1,D);Q.push(b.jsx("button",{onClick:()=>$(ie),className:"h-8 w-8 text-xs text-gray-400 hover:bg-gray-100 rounded flex items-center justify-center",children:D},`prev-${D}`))}for(let J=1;J<=W;J++){const D=new Date(U,k,J),ie=mi(D,new Date),K=(s==null?void 0:s.from)&&(s==null?void 0:s.to)&&yU(D,{start:s.from,end:s.to}),ee=(s==null?void 0:s.from)&&mi(D,s.from),oe=(s==null?void 0:s.to)&&mi(D,s.to),Ce=g&&mi(D,g);let Te="h-8 w-8 text-xs hover:bg-gray-100 rounded flex items-center justify-center transition-colors ";ie&&(Te+="font-semibold "),Ce||ee||oe?Te+="bg-blue-500 text-white hover:bg-blue-600 ":K&&(Te+="bg-blue-100 text-blue-900 "),Q.push(b.jsx("button",{onClick:()=>$(D),className:Te,children:J},`current-${J}`))}const Y=Math.ceil((z+W)/7)*7-z-W;for(let J=1;J<=Y;J++){const D=new Date(U,k+1,J);Q.push(b.jsx("button",{onClick:()=>$(D),className:"h-8 w-8 text-xs text-gray-400 hover:bg-gray-100 rounded flex items-center justify-center",children:J},`next-${J}`))}return b.jsxs("div",{className:"p-3",children:[b.jsxs("div",{className:"flex items-center justify-between mb-3",children:[E===0&&b.jsx("button",{onClick:()=>v(Pb(p,1)),className:"p-1 hover:bg-gray-100 rounded",children:b.jsx(z8,{className:"h-4 w-4"})}),b.jsxs("div",{className:"font-medium text-sm",children:[V[k]," ",U]}),E===1&&b.jsx("button",{onClick:()=>v(af(p,1)),className:"p-1 hover:bg-gray-100 rounded",children:b.jsx(G8,{className:"h-4 w-4"})})]}),b.jsx("div",{className:"grid grid-cols-7 gap-1 mb-2",children:Z.map(J=>b.jsx("div",{className:"h-8 flex items-center justify-center text-xs font-medium text-gray-500",children:J},J))}),b.jsx("div",{className:"grid grid-cols-7 gap-1",children:Q})]})},M=()=>"fixed bg-white border border-gray-200 rounded-lg shadow-xl z-[99999]";return b.jsxs("div",{className:`relative ${e}`,children:[b.jsxs("button",{ref:w,onClick:()=>j(!u),className:`min-w-[200px] px-3 py-2 text-left border border-gray-300 rounded-md shadow-sm bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 flex items-center ${i?"text-gray-900":"text-gray-500"}`,children:[b.jsx(sb,{className:"mr-2 h-4 w-4"}),(()=>{const E=L(i,f);return console.log("📅 Button display text:",{displayText:E,date:i,selectedPresetLabel:f}),E})()]}),u&&b.jsxs(mU,{children:[b.jsx("div",{className:"fixed inset-0 z-[99998] bg-black bg-opacity-10",onClick:()=>j(!1)}),b.jsxs("div",{ref:m,className:M(),style:{top:x.top,left:x.left,width:"720px",minWidth:"720px",maxHeight:"90vh"},onClick:E=>E.stopPropagation(),children:[b.jsxs("div",{className:"flex",children:[b.jsxs("div",{className:"flex flex-col gap-1 p-3 border-r border-gray-200 w-[160px] flex-shrink-0",children:[b.jsx("div",{className:"text-sm font-medium text-gray-500 mb-2",children:"Presets"}),n.map(E=>b.jsx("button",{onClick:()=>_(E.dateRange,E.label),className:`text-left px-2 py-1.5 text-sm rounded hover:bg-gray-100 transition-colors ${h===E.label?"bg-gray-100":""}`,children:E.label},E.label))]}),b.jsxs("div",{className:"flex flex-1",children:[B(0),B(1)]})]}),b.jsxs("div",{className:"border-t border-gray-200 p-3 flex justify-end gap-2",children:[b.jsx("button",{onClick:P,className:"px-3 py-1.5 text-sm border border-gray-300 rounded hover:bg-gray-50 transition-colors",children:"Clear"}),b.jsx("button",{onClick:R,disabled:!(s!=null&&s.from),className:"px-3 py-1.5 text-sm bg-blue-600 text-white rounded hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:"Apply"})]})]})]})]})}class bU{constructor(t=""){Bt(this,"API_PATH","/tracing/api/trpc/metrics.getMetrics");Bt(this,"baseUrl","");Bt(this,"endpoints",{});this.baseUrl=t,this.initializeEndpoints()}setBaseUrl(t){this.baseUrl=t,this.initializeEndpoints()}getEndpoint(t){return this.endpoints[t]||{endpoint:"",method:"GET"}}getBaseUrl(){return this.baseUrl}initializeEndpoints(){const t=`${this.baseUrl}${this.API_PATH}`;this.endpoints["usage-analytics.cards"]={endpoint:t,method:"GET",baseEndpoint:this.API_PATH},this.endpoints["usage-analytics.sessions.timeseries"]={endpoint:t,method:"GET",baseEndpoint:this.API_PATH},this.endpoints["usage-analytics.messages.timeseries"]={endpoint:t,method:"GET",baseEndpoint:this.API_PATH},this.endpoints["usage-analytics.users.timeseries"]={endpoint:t,method:"GET",baseEndpoint:this.API_PATH},this.endpoints["usage-analytics.tokens.timeseries"]={endpoint:t,method:"GET",baseEndpoint:this.API_PATH},this.endpoints["runs.cards"]={endpoint:t,method:"GET",baseEndpoint:this.API_PATH},this.endpoints["runs.agent-runs.timeseries"]={endpoint:t,method:"GET",baseEndpoint:this.API_PATH},this.endpoints["runs.model-runs.timeseries"]={endpoint:t,method:"GET",baseEndpoint:this.API_PATH},this.endpoints["runs.tool-runs.timeseries"]={endpoint:t,method:"GET",baseEndpoint:this.API_PATH}}getAvailableEndpoints(){return Object.keys(this.endpoints)}hasEndpoint(t){return t in this.endpoints}}class _b{constructor(t){Bt(this,"endpointsService");Bt(this,"defaultHeaders");Bt(this,"timeout");this.endpointsService=new bU(t.baseUrl),this.defaultHeaders={"Content-Type":"application/json",...t.defaultHeaders},this.timeout=t.timeout||3e4}updateConfig(t){t.baseUrl&&this.endpointsService.setBaseUrl(t.baseUrl),t.defaultHeaders&&(this.defaultHeaders={...this.defaultHeaders,...t.defaultHeaders}),t.timeout&&(this.timeout=t.timeout)}async invoke(t,r,n,a){const i=this.endpointsService.getEndpoint(t);if(!i.endpoint)throw new Error(`Endpoint not found for service: ${t}`);const o=this.prepareRequest(i,r,n);try{const s=new AbortController,l=setTimeout(()=>s.abort(),(a==null?void 0:a.timeout)||this.timeout),u=await fetch(o.url,{method:o.method,headers:o.headers,body:o.body,signal:(a==null?void 0:a.signal)||s.signal});if(clearTimeout(l),!u.ok)throw new Error(`HTTP Error: ${u.status} ${u.statusText}`);return await u.json()}catch(s){throw s instanceof Error?s.name==="AbortError"?new Error("Request timeout"):s:new Error("Unknown error occurred during API call")}}prepareRequest(t,r,n){const a={...this.defaultHeaders,...n},i={};Object.entries(a).forEach(([l,u])=>{u!==void 0&&(i[l]=u)});let o=t.endpoint,s;if(t.method==="GET"&&r){const l=this.buildQueryParams(r);o+=`?${l}`}else r&&(s=JSON.stringify(r));return{url:o,method:t.method,headers:i,body:s}}buildQueryParams(t){const r={json:t},n=new URLSearchParams;return n.append("input",JSON.stringify(r)),n.append("rnd",Math.random().toString(36).substring(7)),n.toString()}getBaseUrl(){return this.endpointsService.getBaseUrl()}hasEndpoint(t){return this.endpointsService.hasEndpoint(t)}getAvailableEndpoints(){return this.endpointsService.getAvailableEndpoints()}}class lr{constructor(t){Bt(this,"apiInvoker");Bt(this,"projectId");Bt(this,"environment");Bt(this,"defaultTimeRange");const r={baseUrl:t.baseUrl,defaultHeaders:t.headers,timeout:3e4};this.apiInvoker=new _b(r),this.projectId=t.projectId,this.environment=t.environment,this.defaultTimeRange=t.defaultTimeRange}updateConfig(t){(t.baseUrl||t.headers)&&this.apiInvoker.updateConfig({baseUrl:t.baseUrl,defaultHeaders:t.headers}),t.projectId&&(this.projectId=t.projectId),t.environment&&(this.environment=t.environment),t.defaultTimeRange&&(this.defaultTimeRange=t.defaultTimeRange,console.log("🔄 API Service: Updated defaultTimeRange:",this.defaultTimeRange))}getDefaultTimeRange(){return this.defaultTimeRange||lr.getDateRange(30)}async fetchEnvironments(){try{const r=`${this.apiInvoker.getBaseUrl()}/aaa/api/v1/apps/${this.projectId}/environments?rnd=${Math.random().toString(36).substring(2,8)}`;console.log("🌍 Fetching environments for project:",this.projectId),console.log("🔗 Environment API URL:",r);const n=await fetch(r,{method:"GET",headers:{"Content-Type":"application/json",...this.apiInvoker.defaultHeaders}});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const a=await n.json();return console.log("✅ Environments fetched successfully:",a.map(i=>({name:i.envName,enabled:i.isEnabled,status:i.status}))),a}catch(t){throw console.error("❌ Error fetching environments:",t),t}}async fetchUsageAnalyticsCards(t,r,n,a=[]){const i=n||lr.getTimeDimension(t,r);console.log("📊 Fetching usage analytics cards:",{dateRange:{fromTimestamp:t,toTimestamp:r},providedTimeDimension:n,resolvedTimeDimension:i});const o={projectId:this.projectId,type:"cards",category:"usage-analytics",envId:this.environment,fromTimestamp:t,toTimestamp:r,filter:a,includeTrends:!0,timeDimension:i};return(await this.apiInvoker.invoke("usage-analytics.cards",o)).result.data.json}async fetchRunsCards(t,r,n,a=[]){const i=n||lr.getTimeDimension(t,r);console.log("📊 Fetching runs cards:",{dateRange:{fromTimestamp:t,toTimestamp:r},providedTimeDimension:n,resolvedTimeDimension:i});const o={projectId:this.projectId,type:"cards",category:"runs",envId:this.environment,fromTimestamp:t,toTimestamp:r,filter:a,includeTrends:!0,timeDimension:i};return(await this.apiInvoker.invoke("runs.cards",o)).result.data.json}async fetchTimeSeriesData(t,r,n,a,i,o=[]){const s=i||lr.getTimeDimension(n,a);console.log("📊 Fetching time series data:",{metric:t,category:r,dateRange:{fromTimestamp:n,toTimestamp:a},providedTimeDimension:i,resolvedTimeDimension:s});const l=`${r}.${t}.timeseries`,u={projectId:this.projectId,type:"time-series",category:r,envId:this.environment,fromTimestamp:n,toTimestamp:a,filter:o,metric:t,timeDimension:s};return(await this.apiInvoker.invoke(l,u)).result.data.json}transformUsageAnalyticsCards(t){const r=t.data.trends;console.log("Transforming usage analytics cards with trends:",r);const n=a=>a>0?"increase":"decrease";return[{title:"Users",value:t.data.users,metricType:"users",icon:"users",highlighted:!0,change:r!=null&&r.users?{value:Math.abs(r.users.changePercent),type:n(r.users.changePercent)}:void 0},{title:"Sessions",value:t.data.sessions,metricType:"sessions",icon:"activity",highlighted:!1,change:r!=null&&r.sessions?{value:Math.abs(r.sessions.changePercent),type:n(r.sessions.changePercent)}:void 0},{title:"Messages",value:t.data.messages.total,metricType:"messages",icon:"message-circle",info:`Input: ${t.data.messages.input}, Output: ${t.data.messages.output}`,highlighted:!1,change:r!=null&&r.messages?{value:Math.abs(r.messages.changePercent.total),type:n(r.messages.changePercent.total)}:void 0},{title:"Tokens",value:t.data.tokens.total,metricType:"tokens",icon:"coins",info:`Input: ${t.data.tokens.input}, Output: ${t.data.tokens.output}`,highlighted:!1,change:r!=null&&r.tokens?{value:Math.abs(r.tokens.changePercent.total),type:n(r.tokens.changePercent.total)}:void 0}]}transformRunsCards(t){const r=t.data.trends;console.log("Transforming runs cards with trends:",r);const n=a=>a>0?"increase":"decrease";return[{title:"Agent Runs",value:t.data.agentRuns,metricType:"agentRuns",icon:"bot",highlighted:!0,change:r!=null&&r.agentRuns?{value:Math.abs(r.agentRuns.changePercent),type:n(r.agentRuns.changePercent)}:void 0},{title:"Tool Runs",value:t.data.toolRuns.total,metricType:"toolRuns",icon:"wrench",info:`Code: ${t.data.toolRuns.codeTools}, Library: ${t.data.toolRuns.libraryTools}, Knowledge: ${t.data.toolRuns.knowledgeTools}, MCP: ${t.data.toolRuns.mcpTools}`,highlighted:!1,change:r!=null&&r.toolRuns?{value:Math.abs(r.toolRuns.changePercent.total),type:n(r.toolRuns.changePercent.total)}:void 0},{title:"Model Runs",value:t.data.modelRuns,metricType:"modelRuns",icon:"cpu",highlighted:!1,change:r!=null&&r.modelRuns?{value:Math.abs(r.modelRuns.changePercent),type:n(r.modelRuns.changePercent)}:void 0}]}transformTimeSeriesDataForMetric(t,r){var a;if(console.log("=== METRIC-SPECIFIC TRANSFORM DEBUG ==="),console.log("Raw TimeSeriesResponse:",JSON.stringify(t,null,2)),console.log("Metric type:",r),!t||!t.data||!Array.isArray(t.data))return console.error("Invalid time series data structure:",t),[];const n=t.data.map((i,o)=>{console.log(`Processing point ${o}:`,i);const s=new Date(i.timestamp),l=s.toISOString().split("T")[0],u=s.toLocaleDateString("en-US",{month:"short",day:"numeric"}),c={date:l,timestamp:u,formattedDate:u,count:i.count||0,value:i.count||0,input_tokens:i.input_tokens||0,output_tokens:i.output_tokens||0,total_tokens:(i.input_tokens||0)+(i.output_tokens||0),inputTokens:i.input_tokens||0,outputTokens:i.output_tokens||0,totalTokens:(i.input_tokens||0)+(i.output_tokens||0),listView:i.listView||[],index:o};switch(r){case"users":c.users=i.count||0;break;case"sessions":c.sessions=i.count||0;break;case"messages":c.messages=i.count||0;break;case"tokens":c.tokens=i.count||0,i.input_tokens||i.output_tokens?c.totalTokens=(i.input_tokens||0)+(i.output_tokens||0):c.totalTokens=i.count||0;break;case"agentRuns":c.agentRuns=i.count||0;break;case"toolRuns":c.toolRuns=i.count||0;break;case"modelRuns":c.modelRuns=i.count||0;break;default:c.users=i.count||0,c.sessions=i.count||0,c.messages=i.count||0,c.tokens=i.count||0,c.agentRuns=i.count||0,c.toolRuns=i.count||0,c.modelRuns=i.count||0}return console.log(`Transformed point ${o} for metric ${r}:`,c),c});return console.log("Final transformed data array:",JSON.stringify(n,null,2)),console.log("Sample transformed point for chart:",n[0]),console.log("Populated metric property:",r,"=",(a=n[0])==null?void 0:a[r||"count"]),console.log("=== END METRIC-SPECIFIC TRANSFORM DEBUG ==="),n}transformTimeSeriesData(t){return this.transformTimeSeriesDataForMetric(t)}transformAgentsListViewToTable(t){return Array.isArray(t)?t.map((r,n)=>{var o,s;let a="",i=null;if(r.icon)try{if(i=typeof r.icon=="string"?JSON.parse(r.icon):r.icon,i.name){const l=((o=r.agentName)==null?void 0:o.replace(/\s+/g,""))||`agent${n}`,u=((s=i.color)==null?void 0:s.replace("#",""))||"b6e3f4";a=`https://api.dicebear.com/7.x/avataaars/svg?seed=${l}&backgroundColor=${u}&backgroundType=solid`}}catch{console.warn("Failed to parse icon data:",r.icon)}return{id:`agent-${n+1}`,name:r.agentName||`Agent ${n+1}`,runs:r.count||0,responseTime:r.avgResponseTime?`${Math.round(r.avgResponseTime)}s`:"0s",tokens:r.tokens||Math.floor((r.count||0)*150),successRate:r.successRate?`${Math.round(r.successRate)}%`:"95%",lastRun:r.lastRun||new Date(Date.now()-Math.random()*7*24*60*60*1e3).toLocaleDateString(),avatar:a||`https://api.dicebear.com/7.x/avataaars/svg?seed=agent${n}&backgroundColor=b6e3f4,c0aede,d1d4f9&backgroundType=solid`,icon:r.icon||void 0}}):(console.warn("Invalid listView data for agents:",t),[])}transformToolsListViewToTable(t){if(!Array.isArray(t))return console.warn("Invalid listView data for tools:",t),[];const r=n=>{const a=n.toLowerCase();return a.includes("calculate")||a.includes("compute")?"Code Tool":a.includes("workflow")||a.includes("process")?"Workflow Tool":a.includes("mcp")||a.includes("protocol")?"MCP Tool":a.includes("knowledge")||a.includes("search")||a.includes("fetch")?"Knowledge":"Code Tool"};return t.map((n,a)=>({id:`tool-${a+1}`,name:n.toolName||`Tool ${a+1}`,type:n.type||r(n.toolName||""),runs:n.count||0,responseTime:n.avgResponseTime?`${Math.round(n.avgResponseTime)}s`:"0s",tokens:n.tokens||Math.floor((n.count||0)*50),successRate:n.successRate?`${Math.round(n.successRate)}%`:"92%",lastRun:n.lastRun||new Date(Date.now()-Math.random()*7*24*60*60*1e3).toLocaleDateString(),icon:n.icon||void 0}))}transformModelsListViewToTable(t){if(!Array.isArray(t))return console.warn("Invalid listView data for models:",t),[];const r=n=>{const a=n.toLowerCase();return a.includes("gpt")||a.includes("openai")?"⚡":a.includes("claude")||a.includes("anthropic")?"A":a.includes("gemini")||a.includes("google")?"G":a.includes("llama")||a.includes("meta")?"M":"🤖"};return t.map((n,a)=>({id:`model-${a+1}`,name:n.modelName||`Model ${a+1}`,runs:n.count||0,responseTime:n.avgResponseTime?`${Math.round(n.avgResponseTime)}s`:"0s",tokens:n.tokens||Math.floor((n.count||0)*300),successRate:n.successRate?`${Math.round(n.successRate)}%`:"98%",lastRun:n.lastRun||new Date(Date.now()-Math.random()*7*24*60*60*1e3).toLocaleDateString(),icon:r(n.modelName||"")}))}extractAgentControlOptions(t){if(!Array.isArray(t))return[{label:"All Agents",value:"all"}];const r=[{label:"All Agents",value:"all"}];return t.forEach(n=>{var a;if(n.agentName){let i="";try{if(n.icon){const o=typeof n.icon=="string"?JSON.parse(n.icon):n.icon;if(o.name){const s=n.agentName.replace(/\s+/g,""),l=((a=o.color)==null?void 0:a.replace("#",""))||"b6e3f4";i=`https://api.dicebear.com/7.x/avataaars/svg?seed=${s}&backgroundColor=${l}&backgroundType=solid`}}}catch{console.warn("Failed to parse icon data for control:",n.icon)}r.push({label:n.agentName,value:n.agentName.replace(/\s+/g,"").toLowerCase(),avatar:i||`https://api.dicebear.com/7.x/avataaars/svg?seed=${n.agentName.replace(/\s+/g,"")}&backgroundColor=b6e3f4,c0aede,d1d4f9&backgroundType=solid`})}}),r}extractToolControlOptions(t){if(!Array.isArray(t))return[{label:"All Tools",value:"all"}];const r=[{label:"All Tools",value:"all"}];return t.forEach(n=>{if(n.toolName){const a=i=>{const o=i.toLowerCase();return o.includes("calculate")||o.includes("compute")?"Code Tool":o.includes("workflow")||o.includes("process")?"Workflow Tool":o.includes("mcp")||o.includes("protocol")?"MCP Tool":o.includes("knowledge")||o.includes("search")||o.includes("fetch")?"Knowledge":"Code Tool"};r.push({label:n.toolName,value:n.toolName.replace(/[-]/g,""),icon:n.icon||void 0,type:n.type||a(n.toolName)})}}),r}extractModelControlOptions(t){if(!Array.isArray(t))return[{label:"All Models",value:"all"}];const r=[{label:"All Models",value:"all"}],n=a=>{const i=a.toLowerCase();return i.includes("gpt")||i.includes("openai")?"⚡":i.includes("claude")||i.includes("anthropic")?"A":i.includes("gemini")||i.includes("google")?"G":i.includes("llama")||i.includes("meta")?"M":"🤖"};return t.forEach(a=>{a.modelName&&r.push({label:a.modelName,value:a.modelName.replace(/[-\.]/g,""),icon:n(a.modelName)})}),r}async fetchTimeSeriesDataWithTableData(t,r,n,a,i,o=[]){const s=await this.fetchTimeSeriesData(t,r,n,a,i,o);let l=[];s.data.forEach(d=>{d.listView&&Array.isArray(d.listView)&&(l=[...l,...d.listView])});const u=this.aggregateListViewItems(l);let c=[],f=[];return t==="agent-runs"?(c=this.transformAgentsListViewToTable(u),f=this.extractAgentControlOptions(u)):t==="tool-runs"?(c=this.transformToolsListViewToTable(u),f=this.extractToolControlOptions(u)):t==="model-runs"&&(c=this.transformModelsListViewToTable(u),f=this.extractModelControlOptions(u)),{chartData:this.transformTimeSeriesDataForMetric(s,t.replace("-","")),tableData:c,controlOptions:f}}aggregateListViewItems(t){const r=new Map;return t.forEach(n=>{const a=n.agentName||n.toolName||n.modelName||"unknown";if(r.has(a)){const i=r.get(a);i.count=(i.count||0)+(n.count||0),i.avgResponseTime=i.avgResponseTime&&n.avgResponseTime?(i.avgResponseTime+n.avgResponseTime)/2:i.avgResponseTime||n.avgResponseTime,i.tokens=(i.tokens||0)+(n.tokens||0)}else r.set(a,{...n})}),Array.from(r.values())}async fetchEnhancedMetricsData(t,r,n,a=[]){try{const[i,o,s]=await Promise.all([this.fetchTimeSeriesDataWithTableData("agent-runs","runs",t,r,n,a),this.fetchTimeSeriesDataWithTableData("tool-runs","runs",t,r,n,a),this.fetchTimeSeriesDataWithTableData("model-runs","runs",t,r,n,a)]);return{agents:i,tools:o,models:s}}catch(i){throw console.error("Error fetching enhanced metrics data:",i),i}}async transformRunsCardsWithEnhancedData(t,r,n,a,i=[]){const o=t.data.trends,s=h=>h>0?"increase":"decrease",[l,u,c,f]=await Promise.all([this.fetchTimeSeriesDataWithTableData("agent-runs","runs",r,n,a,i),this.fetchTimeSeriesDataWithTableData("tool-runs","runs",r,n,a,i),this.fetchTimeSeriesDataWithTableData("model-runs","runs",r,n,a,i),this.fetchTimeSeriesData("tool-runs","runs",r,n,a,i)]),d=this.transformTimeSeriesDataForToolRuns(f);return[{title:"Agent Runs",value:t.data.agentRuns,metricType:"agentRuns",icon:"bot",highlighted:!0,info:"Number of agent executions",change:o!=null&&o.agentRuns?{value:Math.abs(o.agentRuns.changePercent),type:s(o.agentRuns.changePercent)}:void 0,view:{type:"chart",chart:{type:"line",title:"Agent Runs",data:l.chartData,dataKey:"agentRuns",color:"#0BA5EC",yAxisLabel:"Number of Agent Runs",height:300,showGrid:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:r.split("T")[0],end:n.split("T")[0]}},table:{title:"Agent Runs",data:l.tableData,columns:[{key:"name",title:"Name",width:200,align:"left"},{key:"runs",title:"Runs",width:100,align:"right",formatter:h=>`${Math.floor(h/1e3)}k`},{key:"responseTime",title:"Response Time",width:120,align:"right"},{key:"tokens",title:"Tokens",width:100,align:"right",formatter:h=>`${Math.floor(h/1e3)}k`}]}},controls:{dropdown:{label:"All Agents",options:l.controlOptions,defaultValue:["all"],multiSelect:!0,searchable:!0},toggle:{chartView:!0,tableView:!0}}},{title:"Tool Runs",value:t.data.toolRuns.total,metricType:"toolRuns",icon:"wrench",info:`Code: ${t.data.toolRuns.codeTools}, Library: ${t.data.toolRuns.libraryTools}, Knowledge: ${t.data.toolRuns.knowledgeTools}, MCP: ${t.data.toolRuns.mcpTools}`,highlighted:!1,change:o!=null&&o.toolRuns?{value:Math.abs(o.toolRuns.changePercent.total),type:s(o.toolRuns.changePercent.total)}:void 0,view:{type:"chart",chart:{type:"line",title:"Tool Runs",data:d,yAxisLabel:"Number of Tool Runs",lines:[{dataKey:"toolRuns",color:"#667085",label:"Tool Runs"},{dataKey:"codeTools",color:"#F38744",label:"Code Tools"},{dataKey:"workflowTools",color:"#2970FF",label:"Workflow Tools"},{dataKey:"knowledgeTools",color:"#7A5AF8",label:"Knowledge"},{dataKey:"mcpTools",color:"#47CD89",label:"MCP Tools"}],height:300,showGrid:!0,showLegend:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:r.split("T")[0],end:n.split("T")[0]}},table:{title:"Tool Runs",data:u.tableData,columns:[{key:"name",title:"Name",width:200,align:"left"},{key:"type",title:"Type",width:150,align:"left"},{key:"runs",title:"Runs",width:100,align:"right",formatter:h=>`${Math.floor(h/1e3)}k`},{key:"responseTime",title:"Response Time",width:120,align:"right"}]}},controls:{dropdown:{label:"All Tools",options:u.controlOptions,defaultValue:["all"],multiSelect:!0,searchable:!0},toggle:{chartView:!0,tableView:!0}}},{title:"Model Runs",value:t.data.modelRuns,metricType:"modelRuns",icon:"cpu",highlighted:!1,info:"Number of model inferences",change:o!=null&&o.modelRuns?{value:Math.abs(o.modelRuns.changePercent),type:s(o.modelRuns.changePercent)}:void 0,view:{type:"chart",chart:{type:"line",title:"Model Runs",data:c.chartData,dataKey:"modelRuns",color:"#47CD89",yAxisLabel:"Number of Model Runs",height:300,showGrid:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:r.split("T")[0],end:n.split("T")[0]}},table:{title:"Model Runs",data:c.tableData,columns:[{key:"name",title:"Model Name",width:200,align:"left"},{key:"runs",title:"Runs",width:100,align:"right",formatter:h=>`${Math.floor(h/1e3)}k`},{key:"tokens",title:"Tokens",width:120,align:"right",formatter:h=>`${Math.floor(h/1e3)}k`},{key:"responseTime",title:"Response Time",width:120,align:"right"}]}},controls:{dropdown:{label:"All Models",options:c.controlOptions,defaultValue:["all"],multiSelect:!0,searchable:!0},toggle:{chartView:!0,tableView:!0}}}]}async transformUsageAnalyticsCardsWithEnhancedData(t,r,n,a,i=[]){const o=t.data.trends,s=d=>d>0?"increase":"decrease",[l,u,c,f]=await Promise.all([this.fetchTimeSeriesData("users","usage-analytics",r,n,a,i),this.fetchTimeSeriesData("sessions","usage-analytics",r,n,a,i),this.fetchTimeSeriesData("messages","usage-analytics",r,n,a,i),this.fetchTimeSeriesData("tokens","usage-analytics",r,n,a,i)]);return[{title:"Users",value:t.data.users,metricType:"users",icon:"users",highlighted:!0,info:"Total number of unique users",change:o!=null&&o.users?{value:Math.abs(o.users.changePercent),type:s(o.users.changePercent)}:void 0,view:{type:"chart",chart:{type:"line",title:"Total Users",data:this.transformTimeSeriesDataForMetric(l,"users"),dataKey:"users",color:"#4E5BA6",yAxisLabel:"Number of Users",height:300,showGrid:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:r.split("T")[0],end:n.split("T")[0]}}}},{title:"Sessions",value:t.data.sessions,metricType:"sessions",icon:"activity",highlighted:!1,info:"Total number of user sessions",change:o!=null&&o.sessions?{value:Math.abs(o.sessions.changePercent),type:s(o.sessions.changePercent)}:void 0,view:{type:"chart",chart:{type:"line",title:"Total Sessions",data:this.transformTimeSeriesDataForMetric(u,"sessions"),dataKey:"sessions",color:"#0BA5EC",yAxisLabel:"Number of Sessions",height:300,showGrid:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:r.split("T")[0],end:n.split("T")[0]}}}},{title:"Messages",value:t.data.messages.total,metricType:"messages",icon:"message-circle",info:`Input: ${t.data.messages.input}, Output: ${t.data.messages.output}`,highlighted:!1,change:o!=null&&o.messages?{value:Math.abs(o.messages.changePercent.total),type:s(o.messages.changePercent.total)}:void 0,view:{type:"chart",chart:{type:"line",title:"Total Messages",data:this.transformTimeSeriesDataForMetric(c,"messages"),dataKey:"messages",color:"#E478FA",yAxisLabel:"Number of Messages",height:300,showGrid:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:r.split("T")[0],end:n.split("T")[0]}}}},{title:"Tokens",value:t.data.tokens.total,metricType:"tokens",icon:"coins",info:`Input: ${t.data.tokens.input}, Output: ${t.data.tokens.output}`,highlighted:!1,change:o!=null&&o.tokens?{value:Math.abs(o.tokens.changePercent.total),type:s(o.tokens.changePercent.total)}:void 0,view:{type:"chart",chart:{type:"line",title:"Token Usage Breakdown",data:this.transformTimeSeriesDataForMetric(f,"tokens"),yAxisLabel:"Number of Tokens",lines:[{dataKey:"totalTokens",color:"#FF692E",label:"Total Tokens"},{dataKey:"inputTokens",color:"#5925DC",label:"Input Tokens"},{dataKey:"outputTokens",color:"#E478FA",label:"Output Tokens"}],height:300,showGrid:!0,showLegend:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:r.split("T")[0],end:n.split("T")[0]}}}}]}transformTimeSeriesDataForToolRuns(t){if(console.log("=== TOOL RUNS SPECIFIC TRANSFORM DEBUG ==="),console.log("Raw TimeSeriesResponse for tool runs:",JSON.stringify(t,null,2)),!t||!t.data||!Array.isArray(t.data))return console.error("Invalid time series data structure:",t),[];const r=t.data.map((n,a)=>{console.log(`Processing point ${a}:`,n);const i=new Date(n.timestamp),o=i.toISOString().split("T")[0],s=i.toLocaleDateString("en-US",{month:"short",day:"numeric"}),l=n.count||0;let u=0,c=0,f=0,d=0;if(n.listView&&Array.isArray(n.listView)){n.listView.forEach(p=>{const v=p.count||0,g=(p.toolType||"").toLowerCase(),O=(p.toolName||"").toLowerCase();console.log("Processing listView item:",{toolType:g,toolName:O,count:v}),g==="tool"||g==="code"||g==="codetool"?u+=v:g==="workflow"||g==="workflowtool"||O.includes("workflow")?c+=v:g==="knowledge"||g==="knowledgetool"||O.includes("knowledge")||O.includes("search")||O.includes("fetch")?f+=v:g==="mcp"||g==="mcptool"||O.includes("mcp")?d+=v:(console.log(`Unknown tool type '${g}' for tool '${O}', defaulting to code tools`),u+=v)}),console.log(`Calculated breakdown for point ${a}:`,{codeTools:u,workflowTools:c,knowledgeTools:f,mcpTools:d,total:u+c+f+d,expectedTotal:l});const y=u+c+f+d;if(Math.abs(y-l)>1){console.warn(`Breakdown total (${y}) doesn't match expected total (${l}) for point ${a}`);const p=l-y;u+=p,console.log(`Adjusted codeTools by ${p} to balance total`)}}else console.log(`No listView data for point ${a}, assigning all ${l} to codeTools`),u=l;const h={date:o,timestamp:s,formattedDate:s,toolRuns:l,value:l,count:l,codeTools:u,workflowTools:c,knowledgeTools:f,mcpTools:d,input_tokens:n.input_tokens||0,output_tokens:n.output_tokens||0,total_tokens:(n.input_tokens||0)+(n.output_tokens||0),inputTokens:n.input_tokens||0,outputTokens:n.output_tokens||0,totalTokens:(n.input_tokens||0)+(n.output_tokens||0),listView:n.listView||[],index:a};return console.log(`Transformed tool runs point ${a}:`,h),h});return console.log("Final tool runs transformed data:",JSON.stringify(r,null,2)),console.log("=== END TOOL RUNS SPECIFIC TRANSFORM DEBUG ==="),r}async fetchAllCardsData(t,r,n=[]){try{const[a,i]=await Promise.all([this.fetchUsageAnalyticsCards(t,r,void 0,n),this.fetchRunsCards(t,r,void 0,n)]);return{usageAnalytics:this.transformUsageAnalyticsCards(a),runs:this.transformRunsCards(i)}}catch(a){throw console.error("Error fetching cards data:",a),a}}async fetchAllCardsDataWithEnhancedViews(t,r,n,a=[]){try{const[i,o]=await Promise.all([this.fetchUsageAnalyticsCards(t,r,n,a),this.fetchRunsCards(t,r,n,a)]),[s,l]=await Promise.all([this.transformUsageAnalyticsCardsWithEnhancedData(i,t,r,n,a),this.transformRunsCardsWithEnhancedData(o,t,r,n,a)]);return{usageAnalytics:s,runs:l}}catch(i){throw console.error("Error fetching enhanced cards data:",i),i}}async fetchDefaultTimeSeriesData(t,r,n,a=[]){try{const[i,o]=await Promise.all([this.fetchTimeSeriesData("sessions","usage-analytics",t,r,n,a),this.fetchTimeSeriesData("agent-runs","runs",t,r,n,a)]);return{sessions:this.transformTimeSeriesData(i),agentRuns:this.transformTimeSeriesData(o)}}catch(i){throw console.error("Error fetching default time series data:",i),i}}static getDateRange(t=30){const r=new Date,n=new Date;return n.setDate(r.getDate()-t),{fromTimestamp:n.toISOString(),toTimestamp:r.toISOString()}}static getTimeDimension(t,r){const n=new Date(t),a=new Date(r),i=new Date(n.getFullYear(),n.getMonth(),n.getDate()),o=new Date(a.getFullYear(),a.getMonth(),a.getDate()),s=o.getTime()-i.getTime(),l=s/(1e3*60*60*24),u=i.toISOString().split("T")[0],c=o.toISOString().split("T")[0],f=u===c,d=new Date(n.getFullYear(),n.getMonth(),n.getDate()),h=f&&Math.abs(n.getTime()-d.getTime())<1e3,y=Math.abs(a.getTime()-n.getTime()),p=y<60*1e3;return console.log("🕐 TimeDimension calculation:",{fromTimestamp:t,toTimestamp:r,fromDateStr:u,toDateStr:c,diffInMs:s,diffInDays:l,isSameCalendarDay:f,isTodayPattern:h,timeDiffInMs:y,isVeryClose:p,fromStartOfDay:d.toISOString(),recommended:f||h||p||l<=1?"hour":l<=31?"day":l<=90?"week":"month"}),f||h||p||l<=1?"hour":"day"}getAvailableMetrics(){return{"usage-analytics":["sessions","messages","users","tokens"],runs:["agent-runs","model-runs","tool-runs"]}}}const xU=({config:e,appConfig:t,className:r,onExport:n,onDraftChange:a,onTimeRangeChange:i})=>{var B;const{title:o,subtitle:s,sections:l,globalControls:u,layout:c={columns:12,gap:24,responsive:!0}}=e,[f,d]=S.useState(!1),[h,y]=S.useState({}),[p,v]=S.useState(l),[g,O]=S.useState([]),[x,A]=S.useState(!1),m=S.useRef(null);S.useEffect(()=>{if(t)try{m.current=new lr(t),w(),T()}catch(M){console.error("Failed to initialize API service:",M)}},[t]);const w=async()=>{if(!(!m.current||!t)){A(!0);try{const M=await m.current.fetchEnvironments();O(M),console.log("🌍 Environments loaded:",M.map(E=>E.envName))}catch(M){console.error("Error loading environments:",M)}finally{A(!1)}}},T=async()=>{if(!(!m.current||!t)){d(!0);try{const M=m.current.getDefaultTimeRange();console.log("📊 Loading dashboard data with date range:",{fromTimestamp:M.fromTimestamp,toTimestamp:M.toTimestamp,fromDate:new Date(M.fromTimestamp).toLocaleDateString(),toDate:new Date(M.toTimestamp).toLocaleDateString()});const E=await m.current.fetchAllCardsDataWithEnhancedViews(M.fromTimestamp,M.toTimestamp);console.log("✅ Enhanced cards data loaded successfully:",E),console.log("📈 Data covers period:",{from:new Date(M.fromTimestamp).toLocaleDateString(),to:new Date(M.toTimestamp).toLocaleDateString()});const F=l.map(U=>U.id==="usage-analytics"?(console.log("Updating usage-analytics section with enhanced data"),{...U,metrics:E.usageAnalytics}):U.id==="runs"?(console.log("Updating runs section with enhanced data including table and controls"),{...U,metrics:E.runs}):U);v(F)}catch(M){console.error("Error loading initial data:",M),v(l)}finally{d(!1)}}},_=async(M,E)=>{if(!(!m.current||!t||!E.metricType)){v(F=>F.map(U=>U.id===M?{...U,metrics:U.metrics.map(k=>({...k,highlighted:k.metricType===E.metricType}))}:U)),y(F=>({...F,[M]:!0}));try{const F=t.defaultTimeRange||lr.getDateRange(30);let U,k;if(["users","sessions","messages","tokens"].includes(E.metricType))U="usage-analytics",k=E.metricType;else if(["agentRuns","toolRuns","modelRuns"].includes(E.metricType))U="runs",k=E.metricType==="agentRuns"?"agent-runs":E.metricType==="toolRuns"?"tool-runs":"model-runs";else return;const N=await m.current.fetchTimeSeriesData(k,U,F.fromTimestamp,F.toTimestamp),I=m.current.transformTimeSeriesDataForMetric(N,E.metricType);console.log("Time series response for",E.title,":",N),console.log("Transformed data for",E.title,":",I),console.log("Metric type used for transformation:",E.metricType);const z=(V=>({users:"users",sessions:"sessions",messages:"messages",tokens:"totalTokens",agentRuns:"agentRuns",toolRuns:"toolRuns",modelRuns:"modelRuns"})[V]||"count")(E.metricType||"count");console.log("Using dataKey for metric",E.metricType,":",z),v(V=>V.map(Z=>{if(Z.id===M){const Q={...Z,view:{...Z.view,chart:Z.view.chart?{...Z.view.chart,data:I,dataKey:z,lines:[{dataKey:z,color:Z.view.chart.color||"#3b82f6",label:E.title,strokeWidth:2}]}:{type:"line",data:I,dataKey:z,lines:[{dataKey:z,color:"#3b82f6",label:E.title,strokeWidth:2}],yAxisLabel:E.title}}};return console.log("Updated section for",M,":",Q),console.log("Chart config set:",Q.view.chart),Q}return Z}))}catch(F){console.error("Error loading metric data:",F)}finally{y(F=>({...F,[M]:!1}))}}},$=M=>{var E,F;if((F=(E=u==null?void 0:u.draft)==null?void 0:E.onChange)==null||F.call(E,M),a==null||a(M),t&&m.current){const U={...t,environment:M};m.current.updateConfig(U),T()}},R=M=>{var E,F;if(console.log("🗓️ Time range change requested:",M),typeof M=="string"&&((F=(E=u==null?void 0:u.timeRange)==null?void 0:E.onChange)==null||F.call(E,M)),i==null||i(M),t&&m.current){let U=null;if(typeof M=="object"&&M.from&&M.to)U={fromTimestamp:M.from.toISOString(),toTimestamp:M.to.toISOString()},console.log("📅 Converting DateRange to API format:",U);else if(typeof M=="string"){const N={"24h":1,"7d":7,"30d":30,"90d":90}[M];N&&(U=lr.getDateRange(N),console.log(`📅 Converting preset "${M}" (${N} days) to API format:`,U))}if(U){const k={...t,defaultTimeRange:U};console.log("🔄 Updating API configuration with new date range:",k.defaultTimeRange),m.current.updateConfig(k),console.log("🚀 Reloading dashboard data with new date range..."),T()}else console.warn("⚠️ Unable to convert time range value to API format:",M)}},P=(M="csv")=>{var E,F;(F=(E=u==null?void 0:u.export)==null?void 0:E.onExport)==null||F.call(E,M),n==null||n()},j=()=>{t&&m.current&&T()},L=Object.values(h).some(M=>M);return b.jsxs("div",{className:ce("mx-auto p-6",r),children:[b.jsx("div",{className:"mb-8",children:b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("div",{children:[b.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:o}),s&&b.jsx("p",{className:"text-gray-600 mt-2",children:s})]}),b.jsxs("div",{className:"flex items-center gap-3",children:[t&&b.jsxs(Cs,{variant:"outline",onClick:j,disabled:f||L,className:"gap-2",children:[b.jsx(V8,{className:ce("h-4 w-4",(f||L)&&"animate-spin")}),"Refresh"]}),u&&b.jsxs(b.Fragment,{children:[u.draft&&b.jsx(nf,{options:g.length>0?g.map(M=>({label:M.envName.charAt(0).toUpperCase()+M.envName.slice(1),value:M.envName})):u.draft.options,value:u.draft.defaultValue,placeholder:x?"Loading environments...":u.draft.label,onChange:$,className:"min-w-[200px]",disabled:f||L||x}),u.timeRange&&(u.timeRange.useDatePicker?(console.log("🗓️ Dashboard: Rendering DateRangePicker with defaultValue:",u.timeRange.defaultValue),b.jsx(gU,{defaultValue:u.timeRange.defaultValue,onDateRangeChange:M=>{console.log("🗓️ Dashboard: DateRangePicker callback received:",M),M&&R(M)}})):b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(sb,{className:"h-4 w-4 text-gray-500"}),b.jsx(nf,{options:u.timeRange.options||[],value:u.timeRange.defaultValue,placeholder:u.timeRange.label,onChange:R,className:"min-w-[200px]",disabled:f||L})]})),((B=u.export)==null?void 0:B.enabled)&&b.jsxs(Cs,{variant:"outline",onClick:()=>P(),className:"gap-2",disabled:f||L,children:[b.jsx(q8,{className:"h-4 w-4"}),"Export"]})]})]})]})}),b.jsx("div",{className:ce("grid gap-6",c.responsive&&"grid-cols-1 lg:grid-cols-12"),style:{gridTemplateColumns:c.responsive?void 0:`repeat(${c.columns}, minmax(0, 1fr))`,gap:c.gap?`${c.gap}px`:void 0},children:p.map(M=>{var E,F,U,k;return b.jsx(mb,{section:M,isLoading:f,isChartLoading:h[M.id]||!1,onMetricClick:N=>_(M.id,N),className:ce(c.responsive&&((E=M.layout)==null?void 0:E.span)===12&&"lg:col-span-12",c.responsive&&((F=M.layout)==null?void 0:F.span)===6&&"lg:col-span-6",c.responsive&&((U=M.layout)==null?void 0:U.span)===4&&"lg:col-span-4",c.responsive&&((k=M.layout)==null?void 0:k.span)===3&&"lg:col-span-3")},M.id)})})]})};new Date(Date.now()-30*24*60*60*1e3).toISOString(),new Date().toISOString();const wU={id:"agentic-analytics-dashboard",title:"Dashboard",subtitle:"Monitor and review the usage of your agentic app.",sections:[{id:"usage-analytics",title:"Sessions",metrics:[{title:"Users",value:0,metricType:"users",highlighted:!0},{title:"Sessions",value:0,metricType:"sessions",highlighted:!1},{title:"Messages",value:0,metricType:"messages",highlighted:!1},{title:"Tokens",value:0,metricType:"tokens",highlighted:!1}],view:{type:"chart",chart:{type:"line",title:"Usage Over Time",data:[],lines:[{dataKey:"count",color:"#3B82F6",label:"Count",strokeWidth:2}],xAxisLabel:"Date",yAxisLabel:"Count",tooltip:{show:!0,formatter:(e,t)=>[`${e}`,t]}}},layout:{span:12}},{id:"runs",title:"Runs",metrics:[{title:"Agent Runs",value:0,metricType:"agentRuns",highlighted:!0},{title:"Tool Runs",value:0,metricType:"toolRuns",highlighted:!1},{title:"Model Runs",value:0,metricType:"modelRuns",highlighted:!1}],view:{type:"chart",chart:{type:"line",title:"Execution Runs Over Time",data:[],lines:[{dataKey:"count",color:"#10B981",label:"Runs",strokeWidth:2}],xAxisLabel:"Date",yAxisLabel:"Count",tooltip:{show:!0,formatter:(e,t)=>[`${e}`,t]}}},layout:{span:12}}],globalControls:{draft:{label:"Environment",options:[{label:"Draft",value:"draft"},{label:"Production",value:"production"},{label:"Staging",value:"staging"}],defaultValue:"draft"},timeRange:{label:"Time Range",useDatePicker:!0,options:[{label:"Last 7 days",value:"7d"},{label:"Last 30 days",value:"30d"},{label:"Last 90 days",value:"90d"}],defaultValue:"30d"},export:{enabled:!1,formats:["csv","json"],onExport:e=>{console.log(`Exporting in ${e} format`)}}},layout:{columns:12,gap:24,responsive:!0}},xi=["Portfolio Analysis Expert","Mortgage Evaluator","Credit Risk Specialist","Asset Valuation Analyst","Liability Assessment Advisor"],wi=["calculate-creditScore","calculate-risk","calculate-mortgage","analyse-expenses","fetch-statement"],Oi=["gpt-4o","gpt-4o-mini","gpt-3.5-turbo","claude-3-5-sonnet","claude-3-5-haiku","claude-3-opus","gemini-1.5-pro","gemini-1.5-flash","llama-3.1-405b","llama-3.1-70b"],OU=(e=30)=>{const t=[],r=new Date;for(let n=e-1;n>=0;n--){const a=new Date(r);a.setDate(r.getDate()-n);const i=600+Math.sin(n*.1)*100,o=Math.floor(i+Math.random()*100),s=Math.floor(o*3.5+Math.random()*200),l=Math.floor(s*2.9+Math.random()*500),u=Math.floor(l*.9+Math.random()*300),c=Math.floor(u*.6),f=u-c,d=Math.floor(s*.8+Math.random()*100),h=Math.floor(d*12+Math.random()*500),y=Math.floor(d*8+Math.random()*300),p=Math.floor(h*.3+Math.random()*100),v=Math.floor(h*.25+Math.random()*80),g=Math.floor(h*.2+Math.random()*60),O=Math.floor(h*.15+Math.random()*50),x={};xi.forEach(w=>{const T=w.replace(/\s+/g,"").toLowerCase(),_=Math.floor(d/xi.length);x[T]=Math.floor(_+Math.random()*(_*.5))});const A={};wi.forEach(w=>{const T=w.replace(/[-]/g,""),_=Math.floor(h/wi.length);A[T]=Math.floor(_+Math.random()*(_*.8))});const m={};Oi.forEach(w=>{const T=w.replace(/[-\.]/g,""),_=Math.floor(y/Oi.length);m[T]=Math.floor(_+Math.random()*(_*.6))}),t.push({date:a.toISOString().split("T")[0],users:o,sessions:s,messages:l,totalTokens:u,inputTokens:c,outputTokens:f,agentRuns:d,toolRuns:h,modelRuns:y,codeTools:p,workflowTools:v,knowledgeTools:g,mcpTools:O,...x,...A,...m,value:o})}return t},SU=()=>{const e=[],t=['{"name":"avatar14","color":"#F6D0FE","type":"human"}','{"name":"avatar2","color":"#3B82F6","type":"human"}','{"name":"avatar7","color":"#EF4444","type":"human"}','{"name":"avatar12","color":"#10B981","type":"human"}','{"name":"avatar8","color":"#F59E0B","type":"human"}'];return xi.forEach((r,n)=>{e.push({id:`agent-${n+1}`,name:r,runs:Math.floor(Math.random()*8e3)+4e3,responseTime:`${Math.floor(Math.random()*120)+15}s`,tokens:Math.floor(Math.random()*4e5)+1e5,successRate:`${Math.floor(Math.random()*20)+80}%`,lastRun:new Date(Date.now()-Math.random()*7*24*60*60*1e3).toLocaleDateString(),avatar:`https://api.dicebear.com/7.x/avataaars/svg?seed=${r.replace(/\s+/g,"")}&backgroundColor=b6e3f4,c0aede,d1d4f9&backgroundType=solid`,icon:t[n]||t[0]})}),e},AU=()=>{const e=r=>r.includes("calculate-creditscore")?"Code Tool":r.includes("calculate-risk")?"Workflow Tool":r.includes("calculate-mortgage")?"MCP Tool":r.includes("analyse-expenses")?"Workflow Tool":r.includes("fetch-statement")?"Knowledge":"Code Tool",t=['{"name":"calculator","color":"#EF6820","type":"inlineTool"}','{"name":"workflow","color":"#155EEF","type":"toolLibrary"}','{"name":"mcptool","color":"#101828","type":"MCP"}','{"name":"expenses","color":"#155EEF","type":"toolLibrary"}','{"name":"knowledge","color":"#7A5AF8","type":"KNOWLEDGE"}'];return wi.map((r,n)=>({id:`tool-${n+1}`,name:r,type:e(r),runs:Math.floor(Math.random()*8e3)+4e3,responseTime:`${Math.floor(Math.random()*90)+15}s`,tokens:Math.floor(Math.random()*2e4)+5e3,successRate:`${Math.floor(Math.random()*15)+85}%`,lastRun:new Date(Date.now()-Math.random()*7*24*60*60*1e3).toLocaleDateString(),icon:t[n]||t[0]}))},TU=()=>Oi.map((e,t)=>({id:`model-${t+1}`,name:e,runs:Math.floor(Math.random()*8e3)+4e3,responseTime:`${Math.floor(Math.random()*120)+15}s`,tokens:Math.floor(Math.random()*5e5)+1e5,successRate:`${Math.floor(Math.random()*15)+85}%`,lastRun:new Date(Date.now()-Math.random()*7*24*60*60*1e3).toLocaleDateString()})),Xr=OU(),PU=SU(),_U=AU(),EU=TU(),jU={id:"main-dashboard",title:"Dashboard",subtitle:"Monitor and review the usage of your agentic app.",version:"1.0.0",globalControls:{draft:{label:"Draft",options:[{label:"Current Draft",value:"current"},{label:"Previous Draft",value:"previous"},{label:"All Drafts",value:"all"}],defaultValue:"current"},timeRange:{label:"Time Range",options:[{label:"This month",value:"month"},{label:"Last 7 days",value:"week"},{label:"Last 30 days",value:"30days"},{label:"Last 90 days",value:"90days"}],defaultValue:"month"},export:{enabled:!0,formats:["csv","json","pdf"]}},layout:{columns:12,gap:24,responsive:!0},sections:[{id:"sessions",title:"Sessions",description:"User engagement and session analytics",metrics:[{title:"Users",value:3384,change:{value:6,type:"increase"},info:"Total number of unique users",metricType:"users",view:{type:"chart",chart:{type:"line",title:"Total Users",data:Xr,dataKey:"users",color:"#8b5cf6",yAxisLabel:"Number of Users",height:300,showGrid:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:"2025-05-06",end:"2025-06-05"}}}},{title:"Sessions",value:11847,change:{value:18,type:"increase"},info:"Total number of user sessions",metricType:"sessions",view:{type:"chart",chart:{type:"line",title:"Total Sessions",data:Xr,dataKey:"sessions",color:"#06b6d4",yAxisLabel:"Number of Sessions",height:300,showGrid:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:"2025-05-06",end:"2025-06-05"}}}},{title:"Messages",value:34563,change:{value:5,type:"increase"},info:"Total messages exchanged",metricType:"messages",view:{type:"chart",chart:{type:"line",title:"Total Messages",data:Xr,dataKey:"messages",color:"#e879f9",yAxisLabel:"Number of Messages",height:300,showGrid:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:"2025-05-06",end:"2025-06-05"}}}},{title:"Tokens",value:32044,change:{value:44,type:"increase"},info:"Total tokens processed",metricType:"tokens",view:{type:"chart",chart:{type:"line",title:"Token Usage Breakdown",data:Xr,yAxisLabel:"Number of Tokens",lines:[{dataKey:"totalTokens",color:"#f97316",label:"Total Tokens"},{dataKey:"inputTokens",color:"#3b82f6",label:"Input Tokens"},{dataKey:"outputTokens",color:"#e879f9",label:"Output Tokens"}],height:300,showGrid:!0,showLegend:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:"2025-05-06",end:"2025-06-05"}}}}],view:{type:"chart"},layout:{span:12,order:1}},{id:"runs",title:"Runs",description:"Agent, tool, and model execution analytics",metrics:[{title:"Agent Runs",value:3384,change:{value:6,type:"increase"},info:"Number of agent executions",metricType:"agentRuns",view:{type:"chart",chart:{type:"line",title:"Agent Runs",data:Xr,dataKey:"agentRuns",color:"#06b6d4",yAxisLabel:"Number of Agent Runs",height:300,showGrid:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:"2025-05-06",end:"2025-06-05"}},table:{title:"Agent Runs",data:PU,columns:[{key:"name",title:"Name",width:200,align:"left"},{key:"runs",title:"Runs",width:100,align:"right",formatter:e=>`${Math.floor(e/1e3)}k`},{key:"responseTime",title:"Response Time",width:120,align:"right"},{key:"tokens",title:"Tokens",width:100,align:"right",formatter:e=>`${Math.floor(e/1e3)}k`}]}},controls:{dropdown:{label:"All Agents",options:[{label:"All Agents",value:"all"},...xi.map(e=>({label:e,value:e.replace(/\s+/g,"").toLowerCase(),avatar:`https://api.dicebear.com/7.x/avataaars/svg?seed=${e.replace(/\s+/g,"")}&backgroundColor=b6e3f4,c0aede,d1d4f9&backgroundType=solid`}))],defaultValue:["all"],multiSelect:!0,searchable:!0},toggle:{chartView:!0,tableView:!0}}},{title:"Tool Runs",value:34563,change:{value:5,type:"increase"},info:"Number of tool executions",metricType:"toolRuns",view:{type:"chart",chart:{type:"line",title:"Tool Runs",data:Xr,yAxisLabel:"Number of Tool Runs",lines:[{dataKey:"toolRuns",color:"#06b6d4",label:"Tool Runs"},{dataKey:"codeTools",color:"#f97316",label:"Code Tools"},{dataKey:"workflowTools",color:"#10b981",label:"Workflow Tools"},{dataKey:"knowledgeTools",color:"#8b5cf6",label:"Knowledge"},{dataKey:"mcpTools",color:"#ef4444",label:"MCP Tools"}],height:300,showGrid:!0,showLegend:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:"2025-05-06",end:"2025-06-05"}},table:{title:"Tool Runs",data:_U,columns:[{key:"name",title:"Name",width:200,align:"left"},{key:"type",title:"Type",width:150,align:"left"},{key:"runs",title:"Runs",width:100,align:"right",formatter:e=>`${Math.floor(e/1e3)}k`},{key:"responseTime",title:"Response Time",width:120,align:"right"}]}},controls:{dropdown:{label:"All Tools",options:[{label:"All Tools",value:"all"},...wi.map((e,t)=>{const r=['{"name":"calculator","color":"#EF6820","type":"inlineTool"}','{"name":"workflow","color":"#155EEF","type":"toolLibrary"}','{"name":"mcptool","color":"#101828","type":"MCP"}','{"name":"expenses","color":"#155EEF","type":"toolLibrary"}','{"name":"knowledge","color":"#7A5AF8","type":"KNOWLEDGE"}'],n=a=>a.includes("calculate-creditscore")?"Code Tool":a.includes("calculate-risk")?"Workflow Tool":a.includes("calculate-mortgage")?"MCP Tool":a.includes("analyse-expenses")?"Workflow Tool":a.includes("fetch-statement")?"Knowledge":"Code Tool";return{label:e,value:e.replace(/[-]/g,""),icon:r[t]||r[0],type:n(e)}})],defaultValue:["all"],multiSelect:!0,searchable:!0},toggle:{chartView:!0,tableView:!0}}},{title:"Model Runs",value:32044,change:{value:44,type:"increase"},info:"Number of model inferences",metricType:"modelRuns",view:{type:"chart",chart:{type:"line",title:"Model Runs",data:Xr,dataKey:"modelRuns",color:"#10b981",yAxisLabel:"Number of Model Runs",height:300,showGrid:!0,curve:"monotone",tooltip:{show:!0,style:"dark"},dateRange:{start:"2025-05-06",end:"2025-06-05"}},table:{title:"Model Runs",data:EU,columns:[{key:"name",title:"Model Name",width:200,align:"left"},{key:"runs",title:"Runs",width:100,align:"right",formatter:e=>`${Math.floor(e/1e3)}k`},{key:"tokens",title:"Tokens",width:120,align:"right",formatter:e=>`${Math.floor(e/1e3)}k`},{key:"responseTime",title:"Response Time",width:120,align:"right"}]}},controls:{dropdown:{label:"All Models",options:[{label:"All Models",value:"all"},...Oi.map(e=>{const t=r=>{const n=r.toLowerCase();return n.includes("gpt")||n.includes("openai")?"⚡":n.includes("claude")||n.includes("anthropic")?"A":n.includes("gemini")||n.includes("google")?"G":n.includes("llama")||n.includes("meta")?"M":"🤖"};return{label:e,value:e.replace(/[-\.]/g,""),icon:t(e)}})],defaultValue:["all"],multiSelect:!0,searchable:!0},toggle:{chartView:!0,tableView:!0}}}],view:{type:"chart"},layout:{span:12,order:2}}]};me.AGENTS_LIST=xi,me.AgentListView=hb,me.AnalyticsChart=ob,me.AnalyticsTable=cb,me.ApiInvokerService=_b,me.Button=Cs,me.Dashboard=xU,me.DashboardApiService=lr,me.DashboardSection=mb,me.IconPreview=$s,me.MODELS_LIST=Oi,me.ModelListView=vb,me.MultiSelect=yb,me.TOOLS_LIST=wi,me.ToolListView=pb,me.apiEnabledDashboardConfig=wU,me.createFallbackIcon=db,me.parseIconData=fb,me.sampleDashboardConfig=jU,Object.defineProperty(me,Symbol.toStringTag,{value:"Module"})});